Associative Transformer

Yuwei Sun, H. Ochiai, Zhirong Wu, Stephen Lin, Ryota Kanai
2/14/2026

No official code found. Best implementation: yuweisunn/associative-transformer (5 stars, MIT, last commit 2024-03-27).

Abstract

Emerging from the pairwise attention in conventional Transformers, there is a growing interest in sparse attention mechanisms that align more closely with localized, contextual learning in the biological brain. Existing studies such as the Coordination method employ iterative cross-attention mechanisms with a bottleneck to enable the sparse association of inputs. However, these methods are parameter inefficient and fail in more complex relational reasoning tasks. To this end, we propose Associative Transformer (AiT) to enhance the association among sparsely attended input tokens, improving parameter efficiency and performance in various vision tasks such as classification and relational reasoning. AiT leverages a learnable explicit memory comprising specialized priors that guide bottleneck attentions to facilitate the extraction of diverse localized tokens. Moreover, AiT employs an associative memory-based token reconstruction using a Hopfield energy function. The extensive empirical experiments demonstrate that AiT requires significantly fewer parameters and attention layers outperforming a broad range of sparse Transformer models. Additionally, AiT outperforms the SOTA sparse Transformer models including the Coordination method on the Sort-of-CLEVR dataset.

View on arXivView PDF

Code Implementations(1)

MIT
51PythonNov 2, 20232 years agoMIT

Similar Papers

Cite this paper

@article{sun2026associative,
  title  = {Associative Transformer},
  author = {Yuwei Sun and H. Ochiai and Zhirong Wu and Stephen Lin and Ryota Kanai},
  year   = {2026},
  eprint = {2309.12862},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2309.12862},
  journal = {CVPR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2309.12862.svg)](https://codeofpaper.com/paper/2309.12862)

Discussion