Byte-Level Recursive Convolutional Auto-Encoder for Text

Xiang Zhang, Yann LeCunarXiv 2018

Introduction

Traditional natural language processing (NLP) models typically operate on word-level tokens and generate text sequentially, predicting one word at a time. While effective, this approach faces challenges with rare words, requires complex language-specific tokenization, and is prone to computational bottlenecks and long-range dependency issues.

Researchers have proposed a novel architecture: the Byte-Level Recursive Convolutional Auto-Encoder. This model treats text as a raw stream of bytes and generates entire sequences non-sequentially. By bypassing tokenization and sequential constraints, the model achieves significantly higher reconstruction accuracy than standard LSTMs and demonstrates a truly language-agnostic approach to text processing.

Architecture and Methodology

The core of the system is a deep recursive convolutional network designed to scale its depth dynamically based on input length. The architecture is divided into three primary module groups: Prefix, Recursion, and Postfix.

The Byte-Level Recursive Convolutional Auto-Encoder architecture, showing the symmetric encoder and decoder structures with shared recursive modules.

Key Technical Features

  • Byte-Level Input: Text is processed as a sequence of UTF-8 bytes, represented as one-hot vectors. This makes the model entirely independent of specific languages or alphabets.
  • Recursive Structure: The "Recursion" group is applied repeatedly to compress the input in the encoder and expand it in the decoder. This allows the network to handle varying text lengths while maintaining a compact set of parameters.
  • Residual Connections: To facilitate the training of extremely deep networks (up to 320 layers), the authors utilized residual "skip" connections. These are essential for preventing the vanishing gradient problem in such deep hierarchies.
  • Sub-pixel Convolution for Text: Borrowing from image super-resolution techniques, the decoder uses a "pixel shuffling" process to transform high-dimensional feature vectors into long sequences of bytes.

Non-Sequential Decoding

A major departure from traditional RNN-based models is the use of non-sequential generation. Instead of predicting the next byte based on previous ones, the decoder takes a fixed-length "thought vector" and expands it into the full text sequence simultaneously.

Comparison between (a) sequential generation, where each output depends on the previous state, and (b) the proposed non-sequential generation, where all outputs are derived from a central representation.

This approach captures the mutual dependence of bytes through an internal hierarchy rather than a linear chain. The results suggest that for auto-encoding tasks, this global structural awareness is superior to step-by-step prediction.

Experimental Evaluation

The model was evaluated on six massive paragraph-level datasets spanning English, Chinese, and Arabic, including Wikipedia and Gigaword corpora. The "allgiga" dataset alone contained over 182 million paragraphs, providing a rigorous test for the model's scalability.

Key Results

  • Accuracy: The convolutional model achieved byte-level error rates between 2.08% and 5.24%. In comparison, a "vanilla" LSTM baseline failed to converge effectively, with error rates remaining between 60-70%.
  • Impact of Depth: Performance improved consistently with increased depth. The 320-layer model outperformed shallower versions, highlighting the benefits of deep hierarchical representations.
  • Language Agnosticism: The model maintained nearly identical error rates across all three languages using the same architecture, proving its universality.
  • Length Prediction: Despite its non-sequential nature, the model was 99.63% accurate at predicting the "null" byte that marks the end of a string, effectively learning the boundaries of messages.

Conclusion and Future Directions

The Byte-Level Recursive Convolutional Auto-Encoder demonstrates that treating text as raw bytes and generating it non-sequentially is a powerful alternative to traditional word-level sequential models. While the current model excels at reconstruction, it is not yet a strong denoiser, often passing input noise through to the output.

Future work will focus on extending this architecture to generative tasks such as machine translation and text synthesis. The non-sequential nature of the decoder offers significant potential for parallelization, which could lead to more efficient large-scale language models.

Summary updated

BibTeX
@misc{zhang2018byte,
  author = {Xiang Zhang and Yann LeCun},
  title = {{Byte-Level Recursive Convolutional Auto-Encoder for Text}},
  year = {2018},
  eprint = {1802.01817},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1802.01817},
}
Figure