Abstract
Standard text autoencoders often suffer from "disorganized" latent spaces where similar sentences are mapped to wildly different locations. This paper introduces the Denoising Adversarial Autoencoder (DAAE), which uses a simple denoising objective to force the model to group semantically similar texts together. This geometric regularization enables smooth sentence interpolation and zero-shot style transfer through basic vector arithmetic.
Introduction
In the field of controllable text generation, a "well-behaved" latent space is essential—a continuous vector space where directional movement corresponds to consistent attribute changes, such as sentiment or tense. However, existing models like Adversarial Autoencoders (AAEs) often fail to achieve this. Due to the high capacity of modern neural networks, they can learn to map training sentences to a latent prior (like a Gaussian distribution) in an arbitrary, "shuffled" manner while maintaining perfect reconstruction. In such disorganized spaces, small latent perturbations result in random output changes rather than meaningful semantic shifts. This paper provides a theoretical explanation for this phenomenon and proposes a practical solution.
Methodology: Denoising as Geometric Regularization
The proposed Denoising Adversarial Autoencoder (DAAE) addresses latent disorganization by incorporating a denoising objective into the standard AAE framework. The process involves three key steps:
- Perturbation: The input sentence $x$ is corrupted into a noisy version $\tilde{x}$ (e.g., via random word deletion).
- Reconstruction: The encoder maps the noisy $\tilde{x}$ to a latent code $z$, and the decoder must reconstruct the original, clean $x$.
- Geometric Constraint: This objective forces the model to map similar sentences—specifically those that can be "noised" into the same version—to nearby points in the latent space.
Experimental Evaluation
The authors evaluated DAAE on synthetic toy data, Yelp reviews, and Yahoo Answers. A key metric for assessing latent organization was "Recall"—the percentage of a sentence's textual neighbors (defined by edit distance) that remain neighbors in the latent space. DAAE consistently outperformed generative baselines like VAEs and AAEs, often by a factor of 2x.
Latent Space Visualization
On a synthetic dataset consisting of 500 binary sequences from five underlying clusters, the difference in latent organization is stark. While the standard AAE "mixes" clusters arbitrarily to fit the prior distribution, DAAE preserves the underlying cluster structure, demonstrating its ability to capture the data's natural geometry.
Key Results and Applications
- Zero-Shot Style Transfer: DAAE's structured latent space allows for "style math." By calculating a "tense vector" (the average difference between past and present tense sentences) and adding it to a new sentence's latent code, the model can change its tense without explicit parallel training data. DAAE achieved 50.3% accuracy in unsupervised tense transfer, significantly outperforming the standard AAE (9.7%).
- Sentiment Transfer: Scaling "sentiment vectors" in DAAE leads to smooth transitions in output text, whereas standard AAEs quickly produce nonsensical or "garbage" text as the vector magnitude increases.
- Generation-Reconstruction Trade-off: DAAE achieved a superior Pareto frontier, maintaining high reconstruction accuracy (BLEU) while producing more fluent and diverse generated text (lower Perplexity) compared to VAEs.
Conclusion
Denoising serves as a powerful geometric regularizer for text autoencoders. By defining similarity through the perturbation process, DAAE creates a semantically structured latent space that facilitates advanced text manipulation tasks without the need for labeled pairs. Future research may explore more complex noise processes, such as synonym swapping or syntactic shuffling, to capture finer semantic nuances for specific downstream tasks.
Summary updated