Fibottention: Inceptive Visual Representation Learning with Diverse Attention Across Heads
Ali K. Rahimian, Manish K. Govind, Subhajit Maity, Dominick Reilly, Christian Kümmerle, Srijan Das, Aritra Dutta
TL;DR
Fibottention introduces a fixed, head-diverse sparse self-attention mechanism for Vision Transformers that reduces self-attention complexity from $O(N^2)$ to $O(N \log N)$ by using Fibonacci-based dilations drawn from the Wythoff array. Each attention head uses a distinct, non-overlapping sparsity pattern across heads, promoting diverse and complementary feature representations and enabling efficient inference with minimal loss (or even gains) in accuracy across image, video, and robotics tasks. Empirical results show Fibottention achieves competitive performance with only a few percent of token interactions compared to dense MHSA, and outperforms several sparse-attention baselines on multiple datasets and backbones, while offering robustness to corruptions. The work also provides thorough ablations on head diversity, inductive bias, and dilation choices, highlighting the practical impact of structured, head-wise diversity for efficient representation learning in visual domains with limited data. Overall, Fibottention offers a scalable, architecture-agnostic approach to efficient visual Transformers with potential applicability to larger-scale models and other domains requiring causal or long-range attention.
Abstract
Vision Transformers and their variants have achieved remarkable success in diverse visual perception tasks. Despite their effectiveness, they suffer from two significant limitations. First, the quadratic computational complexity of multi-head self-attention (MHSA), which restricts scalability to large token counts, and second, a high dependency on large-scale training data to attain competitive performance. In this paper, to address these challenges, we propose a novel sparse self-attention mechanism named Fibottention. Fibottention employs structured sparsity patterns derived from the Wythoff array, enabling an $\mathcal{O}(N \log N)$ computational complexity in self-attention. By design, its sparsity patterns vary across attention heads, which provably reduces redundant pairwise interactions while ensuring sufficient and diverse coverage. This leads to an \emph{inception-like functional diversity} in the attention heads, and promotes more informative and disentangled representations. We integrate Fibottention into standard Transformer architectures and conduct extensive experiments across multiple domains, including image classification, video understanding, and robot learning. Results demonstrate that models equipped with Fibottention either significantly outperform or achieve on-par performance with their dense MHSA counterparts, while leveraging only $2\%$ of all pairwise interactions across self-attention heads in typical settings, $2-6\%$ of the pairwise interactions in self-attention heads, resulting in substantial computational savings. Moreover, when compared to existing sparse attention mechanisms, Fibottention consistently achieves superior results on a FLOP-equivalency basis. Finally, we provide an in-depth analysis of the enhanced feature diversity resulting from our attention design and discuss its implications for efficient representation learning.
