Skip to content

Research Articles

Context Budgets for Foundation Model Inference: Uneven Workloads

Imani Vesperwick (Machine Learning Laboratory, Thornmere Polytechnic)

Vol. 10 No. 1 (2026) · pp. 167–181 · Published 24 November 2026

Abstract

The comparison uses a workload with many common cases and a small set of recurring high-cost cases to evaluate two choices: allocating context according to estimated relevance and position and retaining the first tokens up to a fixed limit. All outcomes are synthetic. Each configuration is evaluated on the same 256 cases. In the 64 stress cases, needed evidence must appear late and compete with near duplicates; the rare cases are assessed separately so that the dominant group does not hide their behavior. 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. The comparator passes 189 of 256 cases and the alternative passes 189. For the 64 stress cases alone, the counts are 33 and 26, respectively. The aggregate count does not establish that the alternative is preferable at every operating point. The practical trade-off is that aggressive selection can drop premises that are individually uninformative. The result describes the chosen case mix. Before applying the finding, a follow-up benchmark would need to vary the share of difficult cases without relaxing the acceptance criteria.

Keywords: foundation models, attention, long context, uneven workloads, synthetic evaluation

References

  1. Aminabadi, R. Y., et al. (2022). DeepSpeed-Inference: Enabling efficient inference of transformer models at unprecedented scale. Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis, Article 46.
  2. Chen, S., Wong, S., Chen, L., & Tian, Y. (2023). Extending context window of large language models via positional interpolation. arXiv:2306.15595.
  3. Chen, Y., et al. (2023). LongLoRA: Efficient fine-tuning of long-context large language models. arXiv:2309.12307.
  4. Creswell, A., Shanahan, M., & Higgins, I. (2022). Selection-inference: Exploiting large language models for interpretable logical reasoning. arXiv:2205.09712.
  5. Dai, D., et al. (2023). Why can GPT learn in-context? Language models implicitly perform gradient descent as meta-optimizers. Findings of ACL.
  6. De, S., et al. (2024). Griffin: Mixing gated linear recurrences with local attention for efficient language models. arXiv:2402.19427.
  7. Hsieh, C.-P., et al. (2024). RULER: What's the real context size of your long-context language models? arXiv:2404.06654.
  8. Li, Y., Wei, F., Zhang, C., & Zhang, H. (2024). EAGLE-2: Faster inference of language models with dynamic draft trees. arXiv:2406.16858.
  9. 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
  10. Peng, B., Quesnelle, J., Fan, H., & Shippole, E. (2023). YaRN: Efficient context window extension of large language models. arXiv:2309.00071.
  11. Ram, O., et al. (2023). In-context retrieval-augmented language models. Transactions of the Association for Computational Linguistics, 11, 1316–1331.
  12. Shi, F., et al. (2023). Large language models can be easily distracted by irrelevant context. International Conference on Machine Learning.
  13. Wei, J., et al. (2024). Long-form factuality in large language models. arXiv:2403.18802.
  14. 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.
  15. Xiao, G., Tian, Y., Chen, B., Han, S., & Lewis, M. (2023). Efficient streaming language models with attention sinks. arXiv:2309.17453.