Abstract
The Adversarially-Trained Normalized Noisy-Feature Auto-Encoder (ATNNFAE) is a novel framework designed for non-sequential, byte-level text generation. By integrating a recursive convolutional auto-encoder with an adversarial discriminator and a normalized, noisy latent space, the model bypasses the differentiability issues typical of discrete text data while effectively preventing the "mode collapse" common in Generative Adversarial Networks (GANs).
Introduction
Generating text with GANs is notoriously difficult because text is discrete. Standard GANs rely on backpropagating gradients from a discriminator to a generator; however, gradients cannot be backpropagated through discrete tokens like words or bytes. While common solutions involve Reinforcement Learning or the Gumbel-softmax trick, these often struggle to scale or produce diverse results.
Furthermore, most text models are sequential, generating one token at a time. This paper explores non-sequential generation, where an entire block of text is generated from a single latent vector. To evaluate these models, the authors introduce new metrics to handle the mathematical intractability of standard perplexity in non-sequential contexts.
Methods
The ATNNFAE architecture consists of three primary components designed to maintain differentiability and robustness:
- The NNFAE (Normalized Noisy-Feature Auto-Encoder): This is a byte-level recursive convolutional auto-encoder. It utilizes shared convolutional layers repeatedly to compress input into a latent code. This code is normalized to a unit sphere and corrupted with additive Gaussian noise, forcing the model to learn a robust, spread-out representation.
- The Generator: The generator is a replica of the auto-encoder's decoder. Instead of receiving a code from the encoder, it is fed random vectors sampled from the unit sphere.
- The Discriminator: To enable adversarial training, a discriminator is trained to distinguish between reconstructions of real text from the auto-encoder and fake text produced by the generator.
By comparing reconstructions to generated samples rather than raw data, the entire training path remains differentiable, allowing for standard gradient-based optimization using a Hinge loss variant.
Datasets and Evaluation
The model was evaluated on six large-scale paragraph-level datasets across English (enwiki, engiga), Chinese (hudong, zhgiga), and Arabic (argiga), as well as a multi-lingual set (allgiga).
To measure performance, the authors introduced n-Gram Total Variation Distance (NGTVD). This metric uses a hashing trick to compare the frequency distribution of byte-level n-grams in generated text versus real validation data, capturing both quality and diversity in a single score.
Key Results
Experimental results demonstrate that ATNNFAE outperforms traditional sequential models and n-gram baselines at the byte level. As shown in the performance table, the ATNNFAE (with $k=8$) achieved an NGTVD of 0.0913, significantly better than the complex n-gram baseline (0.1013) and the best GRU model (0.1688).
Key Insights
- Noise Regularization: Ablation studies identified a "Goldilocks zone" for noise ($\sigma \approx 0.1$). Insufficient noise leads to mode collapse, while excessive noise results in blurry reconstructions that hinder the discriminator.
- Byte-Level Universality: Operating on bytes allows the same architecture to function across multiple languages without specialized tokenization.
- Latent Manifold: Interpolation between latent vectors produced smooth transitions in generated text (e.g., changing a subject's profession or date of birth), indicating the model learned a meaningful data manifold.
Conclusion and Future Work
While ATNNFAE shows promise in non-sequential generation, it occasionally "hallucinates" non-existent words due to its byte-level nature, requiring post-processing correction. Future research will focus on extending this framework to conditional generation tasks, such as machine translation and dialogue systems, to enhance its practical utility.
Summary updated