Research Articles
Token Budgeting in Attention Models: Baseline Load
Edda Brookvala (Machine Learning Laboratory, Pinewick School of Engineering), Nerea Kestrelby (Machine Learning Laboratory, Valehart Institute of Computational Science), Lina-Mae Larkmere (Machine Learning Laboratory, Eastmarsh Institute for Applied Computing), Lina Northfen (Machine Learning Laboratory, Thornmere Polytechnic)
Vol. 5 No. 1 (2021) · pp. 143–156 · Published 15 July 2021
Abstract
Under steady demand with isolated exceptions, 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; difficult cases are separated by ordinary intervals rather than grouped into bursts. 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 255 of 320 cases, versus 244 for the comparator. In the stress subset, the respective counts are 47 and 40 of 80. The alternative exceeds the comparator overall by 3.4 percentage points. 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, baseline load, synthetic evaluation
References
- Ainslie, J., et al. (2020). ETC: Encoding long and structured inputs in transformers. Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing, 268–284.
- Dai, Z., Yang, Z., Yang, Y., Carbonell, J., Le, Q. V., & Salakhutdinov, R. (2019). Transformer-XL: Attentive language models beyond a fixed-length context. Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, 2978–2988.
- Dodge, J., Ilharco, G., Schwartz, R., Farhadi, A., Hajishirzi, H., & Smith, N. (2020). Fine-tuning pretrained language models: Weight initializations, data orders, and early stopping. arXiv:2002.06305.
- Gao, T., Fisch, A., & Chen, D. (2020). Making pre-trained language models better few-shot learners. arXiv:2012.15723.
- Gururangan, S., et al. (2020). Don't stop pretraining: Adapt language models to domains and tasks. Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, 8342–8360.
- Ippolito, D., Kriz, R., Sedoc, J., Kustikova, M., & Callison-Burch, C. (2019). Comparison of diverse decoding methods from conditional language models. Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, 3752–3762.
- 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.
- Kaplan, J., et al. (2020). Scaling laws for neural language models. arXiv:2001.08361.
- Radford, A., Wu, J., Child, R., Luan, D., Amodei, D., & Sutskever, I. (2019). Language models are unsupervised multitask learners (Technical report). OpenAI.
- See, A., Pappu, A., Saxena, R., Yerukola, A., & Manning, C. D. (2019). Do massively pretrained language models make better storytellers? Proceedings of the 23rd Conference on Computational Natural Language Learning, 843–861.
- 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.
- Solaiman, I., et al. (2019). Release strategies and the social impacts of language models. arXiv:1908.09203.
- Tancik, M., et al. (2020). Fourier features let networks learn high frequency functions in low dimensional domains. Advances in Neural Information Processing Systems, 33, 7537–7547.
