MATCH: Modulating Attention via In-Context Retrieval for Long-Context Transformers

Linrui Ma, Chun Hei Lo, Xinyu Wang, Peng Lu, Xihao Yuan +10 more
6/29/2026
cs.CLcs.AIcs.LG

No confident code implementation found for this paper.

Abstract

The quadratic computational cost of traditional attention mechanisms poses a major bottleneck to the scalability and practical deployment of large language models (LLMs), particularly in long-context scenarios. To improve efficiency, existing approaches often enforce rigid structural constraints such as local attention windows. However, these strategies typically lead to substantial performance degradation on tasks requiring precise long-range recall. In this work, we propose MATCH, a scalable and efficient framework that augments sparsified attention mechanisms with dynamically integrated in-context information through an efficient retrieval system. Empirical results show that MATCH significantly improves the performance of sparse-attention models on both synthetic and real-world natural-language tasks. These findings highlight the versatility of MATCH as a general approach for enhancing in-context retrieval capabilities while maintaining the efficiency benefits of sparse attention architectures.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{ma2026match,
  title  = {MATCH: Modulating Attention via In-Context Retrieval for Long-Context Transformers},
  author = {Linrui Ma and Chun Hei Lo and Xinyu Wang and Peng Lu and Xihao Yuan and Hanting Chen and Kai Han and Xinghao Chen and Chengjun Zhan and Hanlin Xu and Yichun Yin and Lifeng Shang and Feng Wen and Boxing Chen and Yufei Cui},
  year   = {2026},
  eprint = {2606.29844},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.29844v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.29844.svg)](https://codeofpaper.com/paper/2606.29844)

Discussion