Long-Context Language Model Inference
Overview
Long-context language model inference studies how to process lengthy prompts and generate responses without excessive latency, memory use, or loss of relevant information. Approaches include sparse attention and block selection, KV-cache eviction, quantization and offloading, context compression and retrieval, and speculative decoding. Evaluations commonly use long-document question answering, multi-needle retrieval, and reasoning benchmarks such as LongBench, RULER, and Needle-in-a-Haystack, alongside measures like time to first token and decoding throughput. The central tension is that aggressive reduction of computation and memory can miss important evidence, while practical speedups depend on hardware, workload, and whether selection overhead is included.
Latest papers
227 papers35 papers in the last four weeks, up 21% on the four weeks before. 0.2% of all new papers.
LKV: End-to-End Learning of Head-wise Budgets and Token Selection for LLM KV Cache Eviction
Simplified Sparse Attention via Gist Tokens
Absorber LLM: Harnessing Causal Synchronization for Test-Time Training
DASH-KV: Accelerating Long-Context LLM Inference via Asymmetric KV Cache Hashing
AQPIM: Breaking the PIM Capacity Wall for LLMs with In-Memory Activation Quantization
Stability Implies Redundancy: Delta Attention Selective Halting for Efficient Long-Context Prefilling
Open-TQ-Metal: Fused Compressed-Domain Attention for Long-Context LLM Inference on Apple Silicon
SinkRouter: Sink-Aware Routing for Efficient Long-Context Decoding in Large Language and Multimodal Models
ART: Attention Run-time Termination for Efficient Large Language Model Decoding
IceCache: Memory-efficient KV-cache Management for Long-Sequence LLMs
AsyncTLS: Efficient Generative LLM Inference with Asynchronous Two-level Sparse Attention
SepSeq: A Training-Free Framework for Long Numerical Sequence Processing in LLMs
Flux Attention: Context-Aware Hybrid Attention for Efficient LLMs Inference
StructKV: Preserving the Structural Skeleton for Scalable Long-Context Inference
In-Place Test-Time Training
train then deploy" paradigm fundamentally limits Large Language Models (LLMs) from dynamically adapting their weights in response to continuous streams of new information inherent in real-world tasks. Test-Time Training (TTT) offers a compelling alternative by updating a subset of model parameters (fast weights) at inference time, yet its potential in the current LLM ecosystem is hindered by critical barriers including architectural incompatibility, computational inefficiency and misaligned fast weight objectives for language modeling. In this work, we introduce In-Place Test-Time Training (In-Place TTT), a framework that seamlessly endows LLMs with Test-Time Training ability. In-Place TTT treats the final projection matrix of the ubiquitous MLP blocks as its adaptable fast weights, enabling a drop-in" enhancement for LLMs without costly retraining from scratch. Furthermore, we replace TTT's generic reconstruction objective with a tailored, theoretically-grounded objective explicitly aligned with the Next-Token-Prediction task governing autoregressive language modeling. This principled objective, combined with an efficient chunk-wise update mechanism, results in a highly scalable algorithm compatible with context parallelism. Extensive experiments validate our framework's effectiveness: as an in-place enhancement, it enables a 4B-parameter model to achieve superior performance on tasks with contexts up to 128k, and when pretrained from scratch, it consistently outperforms competitive TTT-related approaches. Ablation study results further provide deeper insights on our design choices. Collectively, our results establish In-Place TTT as a promising step towards a paradigm of continual learning in LLMs.