Research Articles
Token Budgeting in Attention Models: Clustered Exceptions
Omar Dovemere (Machine Learning Laboratory, Cairnwell Research Institute), Mara Pinewick (Machine Learning Laboratory, Eastmarsh Institute for Applied Computing)
Vol. 6 No. 1 (2022) · pp. 166–179 · Published 24 November 2022
Abstract
The comparison uses a burst of exceptions concentrated in a short interval to evaluate two choices: reserving input capacity for low-frequency but relevant evidence and truncating from the end of every input. All outcomes are synthetic. Each configuration is evaluated on the same 144 cases. In the 36 stress cases, relevant clues must appear outside the first input segment; 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 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 first configuration passes 95 of 144 cases, versus 95 for the comparator. In the stress subset, the respective counts are 20 and 15 of 36. The alternative matches the comparator overall. The practical trade-off is that retaining low-frequency content can reduce space for local context. A subsequent evaluation should set tolerances independently and repeat the comparison on workloads not used to select the configuration.
Keywords: attention, long inputs, language models, clustered exceptions, synthetic evaluation
References
- Bender, E. M., Gebru, T., McMillan-Major, A., & Shmitchell, S. (2021). On the dangers of stochastic parrots: Can language models be too big? Proceedings of the 2021 ACM Conference on Fairness, Accountability, and Transparency, 610–623.
- Carlini, N., et al. (2021). Extracting training data from large language models. Proceedings of the 30th USENIX Security Symposium, 2633–2650.
- Hase, P., Diab, M., Celikyilmaz, A., Li, X., Kozareva, Z., Stoyanov, V., Bansal, M., & Iyer, S. (2021). Do language models have beliefs? Methods for detecting, updating, and visualizing model beliefs. arXiv:2111.13654.
- Hu, E. J., et al. (2021). LoRA: Low-rank adaptation of large language models. arXiv:2106.09685.
- Jiang, Z., Xu, F. F., Araki, J., & Neubig, G. (2020). How can we know what language models know? Transactions of the Association for Computational Linguistics, 8, 423–438.
- Kakwani, D., et al. (2020). IndicNLPSuite: Monolingual corpora, evaluation benchmarks and pre-trained multilingual language models for Indian languages. Findings of EMNLP.
- Lazaridou, A., et al. (2021). Mind the gap: Assessing temporal generalization in neural language models. Advances in Neural Information Processing Systems, 34, 29348–29363.
- 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.
- Rae, J. W., et al. (2021). Scaling language models: Methods, analysis & insights from training Gopher. arXiv:2112.11446.
- Shin, T., Razeghi, Y., Logan, R. L., IV, Wallace, E., & Singh, S. (2020). AutoPrompt: Eliciting knowledge from language models with automatically generated prompts. Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing, 4222–4235.
- Tsimpoukelli, M., Menick, J., Cabi, S., Eslami, S. M. A., Vinyals, O., & Hill, F. (2021). Multimodal few-shot learning with frozen language models. Advances in Neural Information Processing Systems, 34, 200–212.
- Wei, J., et al. (2021). Finetuned language models are zero-shot learners. arXiv:2109.01652.
- Weidinger, L., et al. (2021). Ethical and social risks of harm from language models. arXiv:2112.04359.
- Zhou, K., Yang, J., Loy, C. C., & Liu, Z. (2021). Learning to prompt for vision-language models. arXiv:2109.01134.
