mlsanityData to 14 Oct 2026

Recasting Self-Attention with Holographic Reduced Representations

arXiv 2305.19534 ↗First posted 31 May 2023cs.LG cs.AI stat.MLcited by 14

Not on the map. Why?

Abstract (arXiv)

In recent years, self-attention has become the dominant paradigm for sequence modeling in a variety of domains. However, in domains with very long sequence lengths the O(T2) memory and O(T2 H) compute costs can make using transformers infeasible. Motivated by problems in malware detection, where sequence lengths of T ≥ 100,000 are a roadblock to deep learning, we re-cast self-attention using the neuro-symbolic approach of Holographic Reduced Representations (HRR). In doing so we perform the same high-level strategy of the standard self-attention: a set of queries matching against a set of keys, and returning a weighted response of the values for each key. Implemented as a ``Hrrformer'' we obtain several benefits including O(T H log H) time complexity, O(T H) space complexity, and convergence in 10× fewer epochs. Nevertheless, the Hrrformer achieves near state-of-the-art accuracy on LRA benchmarks and we are able to learn with just a single layer. Combined, these benefits make our Hrrformer the first viable Transformer for such long malware classification sequences and up to 280× faster to train on the Long Range Arena benchmark. Code is available at urlhttps://github.com/NeuromorphicComputationResearchProgram/Hrrformer

Key facts. Cited by 14 papers in the map (data through 14 Oct 2026). Builds on 35 of its 72 references that are in the map. First posted on arXiv 31 May 2023.

Builds on

35 of 72 references.

References · 35

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020Longformer: The Long-Document Transformercited by 3,413
  3. 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,465
  4. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
  5. 2020Big Bird: Transformers for Longer Sequencescited by 1,684
  6. 2020Reformer: The Efficient Transformercited by 1,668
  7. 2020Rethinking Attention with Performerscited by 1,601
  8. 2019Generating Long Sequences with Sparse Transformerscited by 1,546
  9. 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
  10. 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 700
  11. 2021Combining Recurrent, Convolutional, and Continuous-time Models with Linear State-Space Layerscited by 608
  12. 2020HiPPO: Recurrent Memory with Optimal Polynomial Projectionscited by 605
23 more
  1. 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 471
  2. 2021FNet: Mixing Tokens with Fourier Transformscited by 347
  3. 2020Sparse Sinkhorn Attentioncited by 251
  4. 2020Synthesizer: Rethinking Self-Attention in Transformer Modelscited by 205
  5. 2015Holographic Embeddings of Knowledge Graphscited by 181
  6. 2022It's Raw! Audio Generation with State-Space Modelscited by 171
  7. 2018EMBER: An Open Dataset for Training Static PE Malware Machine Learning Modelscited by 165
  8. 2019Adaptive Attention Span in Transformerscited by 149
  9. 2017Malware Detection by Eating a Whole EXEcited by 115
  10. 2018Learning long-range spatial dependencies with horizontal gated-recurrent unitscited by 98
  11. 2021H-Transformer-1D: Fast One-Dimensional Hierarchical Attention for Sequencescited by 47
  12. 2016Associative Long Short-Term Memorycited by 37
  13. 2020Self-Attentive Associative Memorycited by 33
  14. 2018Learning to Reason with Third-Order Tensor Productscited by 27
  15. 2021Learning with Holographic Reduced Representationscited by 25
  16. 2020Classifying Sequences of Extreme Length with Constant Memory Applied to Malware Detectioncited by 24
  17. 2019KiloGrams: Very Large N-Grams for Malware Classificationcited by 9
  18. 2013Scaling SVM and Least Absolute Deviations via Exact Data Reductioncited by 6
  19. 2019A New Burrows Wheeler Transform Markov Distancecited by 6
  20. 2022Transformers for End-to-End InfoSec Tasks: A Feasibility Studycited by 6
  21. 2015On Normalized Compression Distance and Large Malwarecited by 5
  22. 2020Training Transformers for Information Security Tasks: A Case Study on Malicious URL Predictioncited by 3
  23. 2018IGLOO: Slicing the Features Space to Represent Sequencescited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 2; 2024: 4; 2025: 4; 2026: 4.

14 papers.

Sort:

By area: