NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

FIT: Far-reaching Interleaved Transformers

Ting Chen, Lala LiarXiv 2023 · DOI

Abstract

The "Transformer tax"—the quadratic scaling of self-attention—presents a significant barrier to processing long-sequence data such as high-resolution images or long-form text. We present Far-reaching Interleaved Transformers (FIT), an architecture that overcomes this bottleneck by interleaving local group-based attention with global processing via a small set of "latent tokens." FIT achieves an optimal complexity of $O(L^{4/3})$, enabling the training of massive models on gigapixel-scale data (e.g., $6400 \times 6400$ images) within a standard 16GB memory footprint.

Introduction

Standard Transformers excel at capturing long-range dependencies but suffer from a self-attention mechanism that scales quadratically ($O(L^2)$) with sequence length $L$. This scaling makes them prohibitively expensive for high-fidelity modalities. Existing solutions often trade off expressiveness for efficiency, using windowed attention that loses global context or sparse patterns that are difficult to optimize on modern hardware. FIT introduces a mechanism that maintains high-bandwidth local communication while efficiently coordinating global information across the entire sequence.

Architecture

FIT introduces a hierarchical, interleaved approach to attention that balances local detail with global context.

The FIT architecture alternates between local group-based attention and global attention across latent tokens.

The architecture operates through several key stages:

  1. Grouping: The input sequence is divided into $t$ groups, each containing $n$ tokens.
  2. Latent Tokens: For each group, the model introduces a small set of "latent tokens" ($m \ll n$) that act as a compressed summary.
  3. Interleaved Layers: The model alternates between Local Layers (standard self-attention within each group) and Global Layers (self-attention across all latent tokens from all groups).
  4. Cross-Attention Bridge: Information is routed between data and latent tokens using cross-attention, where data tokens "push" information to latents and "pull" context back after global processing.

For generative tasks, FIT-AR utilizes "shifted latents" to ensure causality, allowing data tokens to receive information only from latent tokens representing past groups.

Complexity and Scaling

By offloading global communication to a streamlined "express lane" of latent tokens, FIT performs adaptive computation. The authors mathematically demonstrate that by balancing group size and latent token count, the global complexity is reduced from $O(L^2)$ to $O(L^{4/3})$.

FLOPs scaling comparison showing FIT's near-linear scaling compared to the quadratic growth of standard Transformers.

Unlike sparse attention methods requiring custom kernels, FIT utilizes standard dense attention operations, making it highly efficient on standard TPUs and GPUs. This efficiency allows FIT to handle a $6400 \times 6400$ image—roughly 1GB of raw data—on a single 16GB device without specialized memory optimizations.

Experimental Results

FIT was evaluated across multiple modalities, including high-resolution image understanding (Objects365) and pixel-based generation (ImageNet).

  • Efficiency: In Pix2Seq tasks, FIT-Base was 1.4x faster than a standard ViT-Base while achieving superior negative log-likelihood (Nll).
  • Scalability: At $2048 \times 2048$ resolution, standard ViT models encountered out-of-memory (OOM) errors, while FIT operated efficiently with a massive reduction in FLOPs (3627G vs 12840G).
  • Generative Performance: In diffusion modeling, FIT increased training speed by up to 1.8x. On ImageNet-64 autoregressive generation, FIT (153M parameters) outperformed the much larger Perceiver AR (770M parameters).

Conclusion

FIT represents a significant step toward scaling Transformers to extremely long sequences. By leveraging latent tokens as a global communication hub, it achieves a favorable complexity-performance trade-off. Future work will explore expanding FIT to long-form text and video, as well as optimizing autoregressive decoding speeds.

Summary updated

BibTeX
@misc{chen2023fit,
  author = {Ting Chen and Lala Li},
  title = {{FIT: Far-reaching Interleaved Transformers}},
  year = {2023},
  eprint = {2305.12689},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.12689},
}
Figure