paper-with-me

홈 › Papers

$\infty$-former: Infinite Memory Transformer

2021-09-01 · Pedro Henrique Martins, Zita Marinho, André F. T. Martins

Transformers are unable to model long-term memories effectively, since the amount of computation they need to perform grows with the context length. While variations of efficient transformers have been proposed, they all have a finite memory capacity and are forced to drop old information. In this paper, we propose the $\infty$-former, which extends the vanilla transformer with an unbounded long-term memory. By making use of a continuous-space attention mechanism to attend over the long-term memory, the $\infty$-former's attention complexity becomes independent of the context length, trading off memory length with precision. In order to control where precision is more important, $\infty$-former maintains "sticky memories" being able to model arbitrarily long contexts while keeping the computation budget fixed. Experiments on a synthetic sorting task, language modeling, and document grounded dialogue generation demonstrate the $\infty$-former's ability to retain information from long sequences.

📄 PDF Abstract BibTeX arXiv:2109.00301

Code (1)

deep-spin/infinite-former 공식 구현 jax

Tasks

Dialogue GenerationLanguage ModelingLanguage Modelling

Methods 이 논문이 사용한 방법론

Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Position-Wise Feed-Forward Layer 설명 없음
Residual Connection 설명 없음
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Adam 설명 없음

Similar Papers 제목 키워드 기반

\infty-former: Infinite Memory Transformer

2022-05-01 · ACL 2022 5 · Pedro Henrique Martins, Zita Marinho, Andre Martins

Transformers are unable to model long-term memories effectively, since the amount of computation they need to perform grows with the context length. While variations of efficient transformers have been proposed, they all…

Dialogue GenerationLanguage ModelingLanguage Modelling

SLAMFormer-$\infty$: Infinite SLAM Transformer for Unbounded Frontend and Backend Processing

2026-08-04 · Zhijian Fang, Weicheng Zheng, Yijun Yuan, Weibang Wang 외 arxiv

We introduce the Infinite SLAM Transformer (SLAMFormer-$\infty$), the first geometric transformer capable of supporting both long-range frontend and backend processing without an explicit distance bound. Instead of relyi…

EdgeInfinite: A Memory-Efficient Infinite-Context Transformer for Edge Devices

2025-03-28 · Jiyu Chen, Shuang Peng, Daxiong Luo, Fan Yang 외

Transformer-based large language models (LLMs) encounter challenges in processing long sequences on edge devices due to the quadratic complexity of attention mechanisms and growing memory demands from Key-Value (KV) cach…

Understanding Transformer from the Perspective of Associative Memory

2025-05-26 · Shu Zhong, Mingyu Xu, Tenglong Ao, Guang Shi

In this paper, we share our reflections and insights on understanding Transformer architectures through the lens of associative memory--a classic psychological concept inspired by human cognition. We start with the basic…

Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attention

2024-04-10 · Tsendsuren Munkhdalai, Manaal Faruqui, Siddharth Gopal

This work introduces an efficient method to scale Transformer-based Large Language Models (LLMs) to infinitely long inputs with bounded memory and computation. A key component in our proposed approach is a new attention …

Book summarizationLanguage ModelingLanguage ModellingRetrieval