Structure-aware Attention based on Vector Symbolic Architectures

Calvin Yeung, Zhuowen Zou, Wenjun Huang, SungHeon Jeong, Hamza Errahmouni Barkam, Yang Ni, Hanning Chen, Alvaro Velasquez, Mohsen ImaniOpenReview 2025 · Submission to ICLR 2025 · Rejected

Abstract

The introduction of the Transformer has brought about a revolution in AI. Central to the success of the Transformer architecture is the self-attention mechanism, enabling context dependence and long-range dependencies between tokens. Recent work has drawn an equivalence between Hopfield networks, a kind of associative memory model, and Transformers. In this work, we leverage this bridge, using Vector Symbolic Architectures (VSA), a brain-inspired computational paradigm capable of representing and implementing data structures, including associative memory models, to define a broad class of attention mechanisms catered for complex data types. In particular, we use Generalized Holographic Reduced Representations (GHRR), an implementation of a VSA, as the foundation for our proposed class of attention mechanisms. We show that GHRR is capable of implementing attention and design a GHRR Transformer encoder architecture based on the demonstrated mathematical equivalence. We propose a new kind of binding-based positional encoding based on methods used in VSAs for encoding sequential information. We extend the attention mechanism in our architecture to support graphs, inspired by techniques used in VSAs to encode graph representations. We evaluate the GHRR Transformer on language modeling, vertex classification, and graph classification tasks. Results suggest that our approach provides benefits in language modeling and graph classification tasks compared to baseline models.
BibTeX
@misc{yeung2025structure,
  author = {Calvin Yeung and Zhuowen Zou and Wenjun Huang and SungHeon Jeong and Hamza Errahmouni Barkam and Yang Ni and Hanning Chen and Alvaro Velasquez and Mohsen Imani},
  title = {{Structure-aware Attention based on Vector Symbolic Architectures}},
  year = {2025},
  url = {https://openreview.net/forum?id=zET0Zg71WT},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2025},
}

Loading related content...

Figure