TL;DR
This paper introduces the Temporal Latent Bottleneck (TLB) model, which combines the strengths of Transformers and recurrent neural networks to achieve more efficient and generalizable sequence learning. By splitting processing into a fast, Transformer-based stream and a slow, recurrent stream, TLB learns compressed representations that improve sample efficiency and performance across various tasks.
What Problem Does This Paper Address?
Modern sequence learning models, particularly Transformers, excel at capturing complex dependencies but often lack an inductive bias for temporal compression. This can lead to them being data-hungry and computationally expensive, as they attend to all past information equally, even irrelevant details. Traditional Recurrent Neural Networks (RNNs) offer temporal compression but can struggle with long-range dependencies and are less expressive than Transformers. The authors aim to bridge this gap by creating a model that leverages the expressiveness of Transformers while incorporating the benefits of temporal compression and hierarchical processing, inspired by human cognitive mechanisms of fast and slow memory.
Methods
The core innovation is the Temporal Latent Bottleneck (TLB) model, which splits computation into two parallel streams:
- Fast Stream (Perceptual Module): This is a standard Transformer that processes input sequences in chunks. It uses self-attention and cross-attention layers. Crucially, the cross-attention layers allow it to incorporate information from the slow stream.
- Slow Stream (Temporal Latent Bottleneck): This is a recurrent module that maintains a compressed, summarized representation of the sequence history. It updates its state only once per chunk processed by the fast stream. This module acts as a bottleneck, forcing the model to distill essential information.
The two streams interact via attentional bottleneck: the fast stream uses information from the slow stream (top-down feedback), and the slow stream's state is updated based on the fast stream's output. This creates an information asymmetry, where the fast stream has a fine-grained view of recent inputs, while the slow stream has a coarse-grained, consolidated view of the past. This architecture is designed to improve generalization by focusing on salient information and reducing computational complexity from $O(T^2)$ to $O(K^2 + KN)$, where $K$ is the chunk size and $N$ is the size of the bottleneck state.
Datasets
The paper evaluates the proposed model on a variety of datasets across different domains:
- Image Classification: CIFAR-10, CIFAR-100.
- Self-Supervised Learning: STL-10, CIFAR-10.
- Sequential Decision Making:
- BabyAI: A benchmark for instruction-based navigation and interaction.
- Atari: A suite of classic video games.
- Long Range Dependencies: ListOps, Text Classification, Retrieval, Image Classification, PathFinder (from the Long Range Arena benchmark).
- Copying Task: A task designed to test memory over long sequences.
No new benchmarks were introduced; existing ones were used to demonstrate the model's versatility.
Key Insights and Ideas
- Bridging Fast and Slow Processing: The model explicitly mimics the cognitive idea of fast (reactive) and slow (consolidating) memory systems, showing that this architectural division can be beneficial for AI.
- Information Asymmetry for Generalization: By creating a bottleneck that forces compression in the slow stream, the model learns to prioritize important information, leading to better generalization, especially to unseen scenarios.
- Computational Efficiency: The chunking mechanism and bottleneck significantly reduce computational complexity compared to standard Transformers, making it more scalable for long sequences.
- Top-Down Feedback is Crucial: Ablation studies show that the top-down communication from the slow stream to the fast stream is vital for performance, not just the past information itself.
Key Results
The TLB model consistently outperformed competitive baselines across various tasks:
- Image Classification: Achieved competitive performance with state-of-the-art models like Swin Transformer V2 on CIFAR-10 and CIFAR-100, showing improved generalization to higher resolutions.
- Self-Supervised Learning: Outperformed the SiT model on STL-10 and CIFAR-10 datasets, indicating better learned representations.
- Sequential Decision Making:
- BabyAI: Converged faster and achieved better or comparable performance to standard Transformers on various tasks, including the complex BossLevel.
- Atari: Showed improved performance over the Decision Transformer across multiple games.
- Long Range Dependencies: Outperformed efficient Transformer baselines on ListOps and Text Classification, demonstrating its ability to handle very long sequences.
- Sample Efficiency: In tasks like BabyAI and ListOps, the TLB model converged significantly faster, requiring fewer training steps or samples. For instance, on the Copying Task, it achieved perfect accuracy for longer sequence lengths where other models failed.
Limitations and Future Work
- Fixed Chunk Size: The paper acknowledges that the chunk size ($K$) is a fixed hyperparameter that requires domain knowledge.
- Future Work: The authors suggest exploring methods for dynamic chunking, where the chunk size can adapt automatically based on the input or task. They also mention that future work could explore methods for dynamic chunking.
Summary updated