[Paper Review] Variational Autoencoders for Semi-supervised Text Classification
This paper proposes Semi-supervised Sequential Variational Autoencoder (SSVAE), which enhances text classification by conditioning the decoder LSTM on class labels at each time step, enabling effective use of unlabeled data. The method achieves state-of-the-art performance on IMDB and AG’s News by combining conditional LSTMs with a sampling-based optimization strategy that reduces variance and computational cost.
Although semi-supervised variational autoencoder (SemiVAE) works in image classification task, it fails in text classification task if using vanilla LSTM as its decoder. From a perspective of reinforcement learning, it is verified that the decoder's capability to distinguish between different categorical labels is essential. Therefore, Semi-supervised Sequential Variational Autoencoder (SSVAE) is proposed, which increases the capability by feeding label into its decoder RNN at each time-step. Two specific decoder structures are investigated and both of them are verified to be effective. Besides, in order to reduce the computational complexity in training, a novel optimization method is proposed, which estimates the gradient of the unlabeled objective function by sampling, along with two variance reduction techniques. Experimental results on Large Movie Review Dataset (IMDB) and AG's News corpus show that the proposed approach significantly improves the classification accuracy compared with pure-supervised classifiers, and achieves competitive performance against previous advanced methods. State-of-the-art results can be obtained by integrating other pretraining-based methods.
Motivation & Objective
- To address the failure of vanilla semi-supervised variational autoencoders (SemiVAE) in text classification when using standard LSTMs as decoders.
- To improve the decoder's ability to distinguish between correct and incorrect labels by incorporating label information at each decoding step.
- To reduce computational complexity in training by proposing a sampling-based gradient estimation method for the unlabeled objective function.
- To stabilize training through variance reduction using baseline methods from reinforcement learning.
- To demonstrate that the proposed model achieves competitive and state-of-the-art performance on benchmark text classification datasets.
Proposed method
- Introduces a conditional LSTM decoder that receives the categorical label at every time step, enhancing label discrimination.
- Proposes two specific conditional LSTM structures—CLSTM-I and CLSTM-II—where label information is integrated into the cell state and input gate, respectively.
- Develops a sampling-based optimization method to estimate the gradient of the unlabeled objective function, reducing computational cost.
- Applies two variance reduction techniques based on baseline methods from reinforcement learning to stabilize training.
- Uses a variational autoencoder framework with a Seq2Seq structure and a sequential classifier, where the latent variable is shared between reconstruction and classification.
- Employs a reparameterization trick to enable backpropagation through the stochastic latent variable, enabling end-to-end training.
Experimental results
Research questions
- RQ1Why does the vanilla SemiVAE fail in text classification when using standard LSTMs as decoders?
- RQ2How can the decoder’s capability to distinguish between different labels be enhanced in a semi-supervised setting?
- RQ3Can a sampling-based optimization method reduce training complexity without sacrificing accuracy in semi-supervised text classification?
- RQ4Does incorporating label information at each decoding step lead to improved classification performance on real-world text datasets?
- RQ5Can the proposed method achieve state-of-the-art results when combined with pretraining techniques?
Key findings
- The proposed SSVAE model achieves a 10.3% classification error rate on the IMDB dataset using only 2.5K labeled samples, outperforming a supervised LSTM by 7.7 percentage points.
- Both CLSTM-I and CLSTM-II structures significantly improve performance over vanilla LSTM decoders, with both achieving strong results on IMDB and AG’s News.
- The model achieves state-of-the-art performance on the IMDB dataset when combined with pretraining-based methods.
- The KL divergence analysis shows that approximately 10 out of 50 latent units retain non-zero values, indicating effective information encoding in the latent space.
- t-SNE visualization confirms that sentences with similar syntactic and lexical structures cluster together in the latent space, demonstrating disentanglement of semantic and label information.
- Generated sentences from the same latent code but different labels show consistent syntactic structure with contrasting sentiment, indicating the model learns to condition generation on label.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.