Abstract
The Associative Transformer (AiT) introduces a Global Workspace Layer (GWL) that incorporates a sparse bottleneck and associative memory via Hopfield networks. Inspired by Global Workspace Theory in neuroscience, AiT forces competition among tokens for a limited set of learned priors, fostering abstract representations. Experimental results demonstrate that AiT outperforms standard Vision Transformers (ViT) in classification and relational reasoning tasks while significantly reducing parameter count and computational overhead.
Introduction
Standard Transformer architectures rely on exhaustive pairwise attention, which, while effective, is computationally expensive and lacks the inductive biases characteristic of biological neural systems. In neuroscience, Global Workspace Theory (GWT) posits a communication bottleneck where specialized modules compete to broadcast information into a shared workspace, facilitating the formation of abstract, generalized representations. The Associative Transformer (AiT) operationalizes this concept to improve efficiency and relational reasoning in computer vision.
Methodology: The Global Workspace Layer
The core innovation of AiT is the Global Workspace Layer (GWL), which can be integrated into standard Transformer blocks. The GWL architecture consists of three primary components:
- Low-rank Explicit Memory: Tokens attend to a small set of learnable "priors" rather than the entire sequence. These priors represent general data assumptions and guide the selection of salient information.
- Top-k Bottleneck Attention: A competitive mechanism limits the number of tokens attended to at any given time, forcing the model to prioritize the most relevant features. A Bottleneck Attention Balance Loss is employed to prevent collapse into a single prior.
- Associative Memory (Hopfield Networks): Following the bottleneck, a continuous Hopfield Network reconstructs input tokens using the learned priors as "attractors." This step refines sparse representations, ensuring global coherence before subsequent processing.
Experimental Results
AiT was evaluated across various benchmarks, including CIFAR, ImageNet100, and Sort-of-CLEVR. A key finding is the model's remarkable parameter efficiency. For instance, a 6-layer AiT-Medium architecture can outperform a 12-layer ViT-Base model.
Large-scale Classification
On the ImageNet100 dataset, AiT-Medium achieved superior accuracy compared to the significantly larger ViT-Base model, demonstrating the power of the global workspace bottleneck in learning robust features with fewer parameters.
Relational Reasoning
In the Sort-of-CLEVR benchmark, which tests the ability to reason about object relationships, AiT-Base achieved 80.03% accuracy. This significantly exceeds the performance of standard ViT-Base (63.35%) and previous state-of-the-art methods like Coordination (73.43%).
Discussion and Conclusion
The Associative Transformer demonstrates that biological constraints, such as the global workspace bottleneck, can be effectively translated into architectural improvements for deep learning. By leveraging sparsity and associative memory, AiT achieves a superior balance between performance and computational cost. Future work will focus on adaptive hyperparameter tuning for the Hopfield components and exploring the model's robustness to adversarial inputs.
Summary updated