Learning how to Forget: Fine-tuning for Long-Context Sparse Attention
Seeger, Matthias, Zhang, Zeyu, Patil, Vihang, Benidis, Konstantinos, Schelter, Sebastian
–arXiv.org Artificial Intelligence
Modern large language models need to process very long contexts (i.e., number of tokens) for calling many tools with sizable outputs [47, 15], running chain of thought reasoning [62], or sustaining multi-turn conversations. While naive transformer implementations scale quadratically in compute and linearly in memory with context width, a lot of progress has been made on approximations with essentially linear time and constant memory scaling. A particularly fruitful direction is sparse attention, where key-value (KV) information is stored in a fixed-size KV cache, slots of which are evicted once it is full. In this paper, we address the open problem of how to post-train a transformer language model with sparse attention on a moderate hardware budget. Our novel method works for any KV cache policy and requires no further approximations beyond sparse attention.
arXiv.org Artificial Intelligence
Nov-24-2026
- Country:
- North America > United States > Massachusetts > Middlesex County (0.28)
- Genre:
- Research Report (1.00)
- Technology: