Abstract
Hongyin Tang, Miao Li, Beihong Jin. Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP).
2019.
Introduction
Generating high-quality text that maintains both grammatical integrity and semantic coherence is a fundamental challenge in Natural Language Processing. While Variational Autoencoders (VAEs) have become a standard tool for this task, they frequently suffer from two critical issues: latent variable collapse, where the decoder ignores the latent representation in favor of local word correlations, and feature entanglement, where semantic and structural information are conflated into a single, uninterpretable latent vector.
To address these limitations, researchers have developed the Topic Augmented Text Generation Model (TATGM). TATGM explicitly decouples a document's semantic content from its linguistic structure, enabling finer control over the generation process and facilitating novel applications such as topic transfer.
Methodology: The TATGM Framework
The core of TATGM is a hybrid autoencoder architecture that processes text through two specialized branches:
- Neural Topic Modeling (NTM): This component extracts semantic features ($z_t$). Unlike traditional multinomial-based models like Latent Dirichlet Allocation (LDA), TATGM utilizes a Gaussian-based topic model. This approach allows the model to leverage pre-trained word embeddings, capturing nuanced relationships between words (e.g., "dog" and "puppy") more effectively.
- Sequence Modeling: This branch employs a Bi-directional Gated Recurrent Unit (Bi-GRU) to capture structural features ($z_s$), such as syntax and word order.
The final latent representation is formed by concatenating these two codes: $z = [z_t; z_s]$.
The Topic Discriminator
A key innovation in TATGM is the use of a topic discriminator to combat latent variable collapse. By repurposing the topic encoder as a discriminator and employing the Gumbel-Softmax trick for differentiability, the model penalizes the generator if the produced text deviates from the intended topic distribution. This ensures the decoder remains faithful to the semantic instructions provided by the encoder.
Experimental Evaluation
TATGM was evaluated across five diverse benchmark datasets: APNEWS, BNC, IMDB, Yelp15, and Yahoo Answer. Performance was measured using Perplexity (PPL) for language modeling, Normalized Pointwise Mutual Information (NPMI) for topic coherence, and classification accuracy on the 20NEWS dataset to assess the quality of latent representations.
Key Results
- Language Modeling Performance: TATGM consistently achieved lower PPL than state-of-the-art baselines like TGVAE and DVAE. For example, on the IMDB dataset, TATGM reached a PPL of 52.01, a significant improvement over TGVAE's 57.11.
- Latent Feature Quality: In document classification tasks on 20NEWS, TATGM's latent codes yielded 61.47% accuracy, outperforming both standard VAEs (52.29%) and TDLM (60.6%), confirming that the decoupled features are highly salient.
- Topic Coherence: The model demonstrated superior topic coherence (NPMI), indicating that its learned topics are more logically consistent.
Structural Preservation and Topic Transfer
The decoupling of $z_t$ and $z_s$ allows for "topic transfer"—altering the subject matter of a sentence while preserving its grammatical structure. By swapping the topic code while keeping the structural code constant, the model can adapt a known conversational pattern to a new domain.
Conclusion
TATGM represents a significant step forward in controllable text generation. By explicitly separating "what" is being said from "how" it is said, the model achieves superior performance and enables structural preservation across topics. Future work will explore more complex structural features to further enhance the versatility of this hybrid framework.
Summary updated