Research Articles
Token Budgeting in Attention Models: Uneven Workloads
Farah Merevale (Machine Learning Laboratory, Kestrelby Institute of Technology), Amina Eastmarsh (Machine Learning Laboratory, Kestrelby Institute of Technology), Soraya Alderwick (Machine Learning Laboratory, Thornmere Polytechnic), Amina Valehart (Machine Learning Laboratory, Eastmarsh Institute for Applied Computing), Tomas Northmere (Machine Learning Laboratory, Valehart Institute of Computational Science)
Vol. 7 No. 1 (2023) · pp. 1–16 · Published 22 January 2023
Abstract
For a workload with many common cases and a small set of recurring high-cost cases, we construct a synthetic comparison between reserving input capacity for low-frequency but relevant evidence and truncating from the end of every input. Each configuration is evaluated on the same 320 cases. In the 80 stress cases, relevant clues must appear outside the first input segment; 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 held-out prediction must meet its accuracy criterion under the token limit. 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 208 of 320 cases and the alternative passes 214. For the 80 stress cases alone, the counts are 32 and 38, respectively. The aggregate count does not establish that the alternative is preferable at every operating point. The practical trade-off is that retaining low-frequency content can reduce space for local context. 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: attention, long inputs, language models, uneven workloads, synthetic evaluation
References
- Alabi, J. O., Adelani, D. I., Mosbach, M., & Klakow, D. (2022). Adapting pre-trained language models to African languages via multilingual adaptive fine-tuning. Proceedings of COLING.
- Borgeaud, S., et al. (2022). Improving language models by retrieving from trillions of tokens. Proceedings of the 39th International Conference on Machine Learning, PMLR 162, 2206–2240. Source
- Burns, C., Ye, H., Klein, D., & Steinhardt, J. (2022). Discovering latent knowledge in language models without supervision. arXiv:2212.03827.
- De Cao, N., Aziz, W., & Titov, I. (2021). Editing factual knowledge in language models. Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, 6491–6506.
- Du, N., et al. (2022). GLaM: Efficient scaling of language models with mixture-of-experts. Proceedings of the 39th International Conference on Machine Learning, PMLR 162, 5547–5569. Source
- Ganguli, D., et al. (2022). Red teaming language models to reduce harms: Methods, scaling behaviors, and lessons learned. arXiv:2209.07858.
- Gehman, S., Gururangan, S., Sap, M., Choi, Y., & Smith, N. A. (2020). RealToxicityPrompts: Evaluating neural toxic degeneration in language models. Findings of the Association for Computational Linguistics: EMNLP 2020, 3356–3369.
- Honovich, O., Scialom, T., Levy, O., & Schick, T. (2022). Unnatural instructions: Tuning language models with (almost) no human labor. arXiv:2212.09689.
- Hu, E. J., et al. (2021). LoRA: Low-rank adaptation of large language models. arXiv:2106.09685.
- Huang, W., Abbeel, P., Pathak, D., & Mordatch, I. (2022). Language models as zero-shot planners: Extracting actionable knowledge for embodied agents. Proceedings of the 39th International Conference on Machine Learning, 9118–9147.
- Kandpal, N., Deng, H., Roberts, A., Wallace, E., & Raffel, C. (2022). Large language models struggle to learn long-tail knowledge. arXiv:2211.08411.
- Ogueji, K., Zhu, Y., & Lin, J. (2021). Small data? No problem! Exploring the viability of pretrained multilingual language models for low-resourced languages. Proceedings of the Workshop on Multilingual Representation Learning.
- Wang, Y., et al. (2022). Self-Instruct: Aligning language models with self-generated instructions. arXiv:2212.10560.
- Wei, J., et al. (2022). Chain-of-thought prompting elicits reasoning in large language models. Advances in Neural Information Processing Systems, 35, 24824–24837.
