Abstract
Autoregressive models are powerful but struggle with high-frequency data like images or audio due to extreme sequence lengths. This paper introduces the Hierarchical Attention Encoder-Decoder (HAED) architecture and the Implicit Embedding Matrix (IEM) training algorithm. HAED processes data at multiple frequencies, while IEM allows training the model's core logic without its most compute-intensive part—the high-frequency decoder. This approach significantly reduces training time and memory requirements while maintaining high performance.
Introduction: The Scaling Challenge
Autoregressive models like GPT-4 generate sequences one token at a time. While effective for text, this becomes computationally prohibitive for high-frequency data such as pixels in an image or waveforms in audio. Existing hierarchical models attempt to compress this data, but they typically rely on a "high-frequency decoder" to map compressed representations back to the original space. This decoder often becomes the primary computational bottleneck, consuming the vast majority of memory and training time.
Architecture and Methodology
The authors propose two major innovations to address these bottlenecks: the HAED architecture and the IEM training algorithm.
HAED Architecture
HAED evolves from the Hierarchical Recurrent Encoder-Decoder (HRED) by replacing slow recurrent units with more efficient components. It uses MLPs in the encoder to independently process sub-sequences (e.g., groups of pixels) into single vectors. These vectors are then processed by a central Transformer at a much lower frequency.
Implicit Embedding Matrix (IEM) Algorithm
The IEM algorithm is the core efficiency driver. By viewing the encoder as an implicitly defined embedding matrix, the model can learn to predict the next "compressed" vector directly using sampled softmax. This allows the main Transformer to learn complex sequence dependencies without running the expensive high-frequency decoder during the initial training phase. The decoder is only introduced during a brief final fine-tuning stage.
Experimental Setup
The model was evaluated on two challenging high-frequency benchmarks:
- WikiText-103: Character-level language modeling.
- ImageNet-32: Pixel-level autoregressive generation on 32x32 images.
Fixed window sizes (e.g., grouping 12 tokens/pixels) were used to isolate the architectural benefits from the complexities of learned hierarchies.
Analysis of Bottlenecks
Empirical analysis revealed critical insights into model scaling:
- Encoder Capacity Plateau: Increasing encoder size quickly yields diminishing returns. Once the encoder can represent the sub-sequence, additional parameters do not improve performance, justifying the use of simple MLPs.
- The Decoder Bottleneck: In contrast, the decoder consistently benefits from more capacity but is the most expensive component to run. As shown in the figure below, the fraction of compute spent in the decoder grows significantly with the number of units.
Key Results
- Performance: Transitioning from HRED to the Transformer-based HAED improved bits-per-token on WikiText-103 from 1.52 to 1.37.
- Efficiency: The IEM algorithm significantly outperformed standard end-to-end training in terms of wall-clock time. For a fixed time budget, IEM-trained models achieved lower loss by processing more data faster.
- Memory Savings: Omitting the high-frequency decoder during primary training drastically reduces the memory footprint, enabling the use of larger main models on standard hardware.
Conclusion and Future Work
While HAED and IEM show great promise for 10M-parameter models, future research is needed to determine if these efficiencies scale to billion-parameter models. Additionally, integrating learned hierarchies and exploring multi-level architectures could further enhance performance on extremely high-frequency data like high-resolution video.
Summary updated