cs.CLMar 19, 2026

UT-ACA: Uncertainty-Triggered Adaptive Context Allocation for Long-Context Inference

Authors: Lang Zhou, Shuxuan Li, Zhuohao Li, Shi Liu, Wei-Shi Zheng, Zhilin Zhao

Organizations: School of Computer Science and Engineering, Sun Yat-sen University · Shenzhen Loop Area Institute · Southern University of Science and Technology

Abstract

Long-context inference remains challenging for large language models due to attention dilution and out-of-distribution degradation. Context selection mitigates this limitation by attending to a subset of key-value cache entries, yet most methods allocate a fixed context budget throughout decoding despite highly non-uniform token-level contextual demands. To address this issue, we propose Uncertainty-Triggered Adaptive Context Allocation (UT-ACA), an inference-time framework that dynamically adjusts the context window based on token-wise uncertainty. UT-ACA learns an uncertainty detector that combines semantic embeddings with logit-based confidence while accounting for uncertainty accumulation across decoding steps. When insufficient evidence is indicated, UT-ACA selectively rolls back, expands the context window, and regenerates the token with additional support. Experiments show that UT-ACA substantially reduces average context usage while preserving generation quality in long-context settings. Code and dataset are available at https://github.com/Tommy307/UT-ACA.

Figures & tables

Appendix figures & tables15 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. DySCO: Dynamic Attention-Scaling Decoding for Long-Context Language Models

    Feb 25, 2026Xi Ye, Wuwei Zhang, Fangcong Yin +2Long-Context Reasoning in Language ModelsLanguage Model Decoding

  2. Training-Inference Consistent Segmented Execution for Long-Context LLMs

    May 12, 2026Xianpeng Shang, Jiang Li, Zehua Duo +2Self-AttentionLong-Context Language Modeling

  3. EndPrompt: Efficient Long-Context Extension via Terminal Anchoring

    May 14, 2026Han Tian, Luxuan Chen, Xinran Chen +10Long-Context Language ModelingLLM Fine-Tuning