English

On Difficulties of Attention Factorization through Shared Memory

Machine Learning 2024-04-02 v1

Abstract

Transformers have revolutionized deep learning in numerous fields, including natural language processing, computer vision, and audio processing. Their strength lies in their attention mechanism, which allows for the discovering of complex input relationships. However, this mechanism's quadratic time and memory complexity pose challenges for larger inputs. Researchers are now investigating models like Linear Unified Nested Attention (Luna) or Memory Augmented Transformer, which leverage external learnable memory to either reduce the attention computation complexity down to linear, or to propagate information between chunks in chunk-wise processing. Our findings challenge the conventional thinking on these models, revealing that interfacing with the memory directly through an attention operation is suboptimal, and that the performance may be considerably improved by filtering the input signal before communicating with memory.

Keywords

Cite

@article{arxiv.2404.00798,
  title  = {On Difficulties of Attention Factorization through Shared Memory},
  author = {Uladzislau Yorsh and Martin Holeňa and Ondřej Bojar and David Herel},
  journal= {arXiv preprint arXiv:2404.00798},
  year   = {2024}
}

Comments

2 pages of main content, 8 pages in total, published as a Tiny Paper at ICLR 2024

R2 v1 2026-06-28T15:39:46.096Z