Skip to main content
QUICK REVIEW

[Paper Review] Temporal Latent Bottleneck: Synthesis of Fast and Slow Processing Mechanisms in Sequence Learning

Aniket Didolkar, Kshitij Gupta|arXiv (Cornell University)|May 30, 2022
Advanced Image and Video Retrieval TechniquesComputer Science5 citations
TL;DR

This paper proposes the Temporal Latent Bottleneck (TLB), a two-stream architecture that combines a fast Transformer-based perceptual stream with a slow recurrent stream to learn compressed, high-level representations of sequences. By forcing information from fixed-length chunks into a compressed bottleneck state and using it to condition the fast stream, the model achieves improved sample efficiency and generalization in sequence learning tasks, outperforming strong baselines on visual perception and decision-making benchmarks, including perfect accuracy on long-sequence copying tasks.

ABSTRACT

Recurrent neural networks have a strong inductive bias towards learning temporally compressed representations, as the entire history of a sequence is represented by a single vector. By contrast, Transformers have little inductive bias towards learning temporally compressed representations, as they allow for attention over all previously computed elements in a sequence. Having a more compressed representation of a sequence may be beneficial for generalization, as a high-level representation may be more easily re-used and re-purposed and will contain fewer irrelevant details. At the same time, excessive compression of representations comes at the cost of expressiveness. We propose a solution which divides computation into two streams. A slow stream that is recurrent in nature aims to learn a specialized and compressed representation, by forcing chunks of $K$ time steps into a single representation which is divided into multiple vectors. At the same time, a fast stream is parameterized as a Transformer to process chunks consisting of $K$ time-steps conditioned on the information in the slow-stream. In the proposed approach we hope to gain the expressiveness of the Transformer, while encouraging better compression and structuring of representations in the slow stream. We show the benefits of the proposed method in terms of improved sample efficiency and generalization performance as compared to various competitive baselines for visual perception and sequential decision making tasks.

Motivation & Objective

  • To address the lack of inductive bias for temporal compression in standard Transformers, which leads to poor sample efficiency and overfitting.
  • To integrate fast, high-capacity processing (like Transformers) with slow, compressed, long-term memory (like RNNs) inspired by cognitive science.
  • To improve generalization and sample efficiency in sequence modeling by introducing selective, hierarchical attention through a learnable bottleneck.
  • To reduce computational complexity by limiting pairwise attention to within-chunk and between-chunk bottleneck interactions instead of full sequence attention.

Proposed method

  • The input sequence is divided into fixed-size chunks of K time steps.
  • A fast stream, implemented as a standard Transformer, processes each chunk independently to capture fine-grained, local representations.
  • A slow stream, implemented as a recurrent network, updates once per chunk to maintain a compressed, high-level representation of the sequence history.
  • The slow stream's hidden state acts as a temporal latent bottleneck (TLB), summarizing long-range dependencies across chunks.
  • The fast stream attends to the current TLB state via cross-attention, enabling context-aware processing conditioned on long-term memory.
  • Top-down feedback from the TLB to the fast stream enhances contextual modeling, improving performance on long-range tasks.

Experimental results

Research questions

  • RQ1Can a two-stream architecture that combines fast, local processing with slow, compressed representation learning improve sample efficiency in sequence modeling?
  • RQ2Does introducing a learnable, recurrent bottleneck for long-term memory enhance generalization on out-of-distribution and long-horizon tasks?
  • RQ3How does the TLB mechanism compare to full-attention Transformers and other efficient attention variants in terms of performance and computational cost?
  • RQ4To what extent does top-down attention from the bottleneck to the fast stream improve model performance?
  • RQ5Can the TLB mechanism maintain perfect accuracy on long-sequence copying tasks where standard Transformers fail?

Key findings

  • The proposed Transformer + TLB model achieved 38.20 ± 0.0001% accuracy on the ListOps task, significantly outperforming a baseline that attends to previous chunks (32.10 ± 0.019%), demonstrating the TLB's ability to capture long-term dependencies.
  • The model achieved perfect accuracy on the copying task for sequence lengths up to 600, while the Feedback Transformer baseline began to fail beyond 400 tokens, showing superior long-context generalization.
  • The TLB model was more sample efficient than the Feedback Transformer, requiring fewer unique samples to reach perfect accuracy on the copying task across all sequence lengths.
  • Removing top-down attention from the TLB to the fast stream reduced performance to 37.57 ± 0.003%, confirming the importance of high-level feedback for optimal performance.
  • The TLB model showed consistent improvements in generalization and sample efficiency across diverse tasks in visual perception and sequential decision-making.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.