On The Adaptation of Unlimiformer for Decoder-Only Transformers
Kian Ahrabian, Alon Benhaim, Barun Patra, Jay Pujara, Saksham Singhal,, Xia Song

TL;DR
This paper adapts the Unlimiformer vector-retrieval method for decoder-only transformers, enhancing their context length capabilities and demonstrating improved summarization performance with potential applications in Q&A and instruction-tuned models.
Contribution
The work introduces practical modifications to make Unlimiformer compatible with decoder-only transformers and expands experimental evaluation to new tasks and models.
Findings
Modified Unlimiformer performs on par with models twice its context length in summarization.
Adaptations enable effective use of Unlimiformer in decoder-only transformer architectures.
Discussed limitations and future directions for free-form Q&A and instruction-tuned models.
Abstract
One of the prominent issues stifling the current generation of large language models is their limited context length. Recent proprietary models such as GPT-4 and Claude 2 have introduced longer context lengths, 8k/32k and 100k, respectively; however, despite the efforts in the community, most common models, such as LLama-2, have a context length of 4k or less. Unlimiformer (Bertsch et al., 2023) is a recently popular vector-retrieval augmentation method that offloads cross-attention computations to a kNN index. However, its main limitation is incompatibility with decoder-only transformers out of the box. In this work, we explore practical considerations of adapting Unlimiformer to decoder-only transformers and introduce a series of modifications to overcome this limitation. Moreover, we expand the original experimental setup on summarization to include a new task (i.e., free-form Q&A)…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
MethodsRefunds@Expedia|||How do I get a full refund from Expedia? · Attention Is All You Need · Linear Layer · Residual Connection · Position-Wise Feed-Forward Layer · Label Smoothing · Cosine Annealing · Byte Pair Encoding · Absolute Position Encodings · Softmax
