Research Articles
Context Budgets for Foundation Model Inference: Clustered Exceptions
Idris Pinewick (Machine Learning Laboratory, Ivermere University), Ravi Brookvala (Machine Learning Laboratory, Valehart Institute of Computational Science), Amari Wrenford (Machine Learning Laboratory, Kestrelby Institute of Technology), Imani Asherwick (Machine Learning Laboratory, Valehart Institute of Computational Science), Rowan Ravenmere (Machine Learning Laboratory, Glenwick University), Saira Saltmere (Machine Learning Laboratory, Glenwick University)
Vol. 9 No. 1 (2025) · pp. 149–161 · Published 26 September 2025
Abstract
This synthetic study compares allocating context according to estimated relevance and position with retaining the first tokens up to a fixed limit under a burst of exceptions concentrated in a short interval. Each configuration is evaluated on the same 120 cases. In the 30 stress cases, needed evidence must appear late and compete with near duplicates; the difficult conditions occur in contiguous runs rather than being spread across cases. A case counts as a pass only if it meets this criterion: the model must answer the held-out question with the correct supporting span. The comparison holds the training and selection splits fixed across alternatives; evaluation cases are not reused for tuning. Compute or memory assigned to an alternative counts toward its budget even if training does not finish. Across the full set, 93 cases meet the criterion with the first configuration and 88 with the second. The stress cases account for 21 and 19 passes, respectively. The stress results should be read alongside the full-set results rather than treated as a general performance guarantee. The practical trade-off is that aggressive selection can drop premises that are individually uninformative. The paired design makes the comparison interpretable within the fixture. It does not establish the size of the effect in an independent deployment.
Keywords: foundation models, attention, long context, clustered exceptions, synthetic evaluation
References
- Chen, Y., et al. (2023). LongLoRA: Efficient fine-tuning of long-context large language models. arXiv:2309.12307.
- Dai, D., et al. (2023). Why can GPT learn in-context? Language models implicitly perform gradient descent as meta-optimizers. Findings of ACL.
- De, S., et al. (2024). Griffin: Mixing gated linear recurrences with local attention for efficient language models. arXiv:2402.19427.
- Hsieh, C.-P., et al. (2024). RULER: What's the real context size of your long-context language models? arXiv:2404.06654.
- Li, Y., Wei, F., Zhang, C., & Zhang, H. (2024). EAGLE-2: Faster inference of language models with dynamic draft trees. arXiv:2406.16858.
- Liu, N. F., Lin, K., Hewitt, J., Paranjape, A., Bevilacqua, M., Petroni, F., & Liang, P. (2024). Lost in the middle: How language models use long contexts. Transactions of the Association for Computational Linguistics, 12, 157–173. DOI: 10.1162/tacl_a_00638. Source
- Peng, B., Quesnelle, J., Fan, H., & Shippole, E. (2023). YaRN: Efficient context window extension of large language models. arXiv:2309.00071.
- Ram, O., et al. (2023). In-context retrieval-augmented language models. Transactions of the Association for Computational Linguistics, 11, 1316–1331.
- Sheng, Y., et al. (2023). FlexGen: High-throughput generative inference of large language models with a single GPU. Proceedings of the 40th International Conference on Machine Learning, 31094–31116.
- Shi, F., et al. (2023). Large language models can be easily distracted by irrelevant context. International Conference on Machine Learning.
- Wei, J., et al. (2023). Larger language models do in-context learning differently. arXiv:2303.03846.
- Wei, J., et al. (2024). Long-form factuality in large language models. arXiv:2403.18802.
- Wu, Y., Sun, Z., Li, S., Welleck, S., & Yang, Y. (2024). Inference scaling laws: An empirical analysis of compute-optimal inference for problem-solving with language models. arXiv:2408.00724.
