Skip to content

Research Articles

Token Budgeting in Attention Models: Cold Versus Warm Runs

Lina-Mae Oakmarsh (Machine Learning Laboratory, Ivermere University), Elena Valehart (Machine Learning Laboratory, Glenwick University), Dario Crestmere (Machine Learning Laboratory, Ivermere University), Dario Pinewick (Machine Learning Laboratory, Valehart Institute of Computational Science)

Vol. 4 No. 1 (2020) · pp. 68–82 · Published 30 May 2020

Abstract

We ask whether reserving input capacity for low-frequency but relevant evidence performs better than truncating from the end of every input in a mix of fresh-start and steady-state trials. The evaluation is synthetic. Each configuration is evaluated on the same 180 cases. In the 45 stress cases, relevant clues must appear outside the first input segment; initialization cost is kept in the comparison instead of discarding the first completed trial. 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 151 of 180 cases, versus 142 for the comparator. In the stress subset, the respective counts are 35 and 27 of 45. The alternative exceeds the comparator overall by 5.0 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, cold versus warm runs, synthetic evaluation

References

  1. 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.
  2. Dathathri, S., et al. (2019). Plug and play language models: A simple approach to controlled text generation. arXiv:1912.02164.
  3. 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.
  4. Kim, Y., Jernite, Y., Sontag, D., & Rush, A. M. (2016). Character-aware neural language models. Proceedings of the 30th AAAI Conference on Artificial Intelligence, 2741–2749.
  5. Marvin, R., & Linzen, T. (2018). Targeted syntactic evaluation of language models. Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, 1192–1202.
  6. Merity, S., Keskar, N. S., & Socher, R. (2017). Regularizing and optimizing LSTM language models. arXiv:1708.02182.
  7. Niven, T., & Kao, H.-Y. (2019). Probing neural network comprehension of natural language arguments. Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, 4658–4664.
  8. Petroni, F., et al. (2019). Language models as knowledge bases? Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing, 2463–2473.
  9. Radford, A., Wu, J., Child, R., Luan, D., Amodei, D., & Sutskever, I. (2019). Language models are unsupervised multitask learners (Technical report). OpenAI.
  10. Raychev, V., Vechev, M., & Yahav, E. (2014). Code completion with statistical language models. Proceedings of the 35th ACM SIGPLAN Conference on Programming Language Design and Implementation, 419–428.
  11. Rush, A. M., Chopra, S., & Weston, J. (2015). A neural attention model for abstractive sentence summarization. Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing, 379–389.
  12. Schwenk, H. (2007). Continuous space language models. Computer Speech & Language, 21(3), 492–518.
  13. 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.
  14. Shoeybi, M., Patwary, M., Puri, R., LeGresley, P., Casper, J., & Catanzaro, B. (2019). Megatron-LM: Training multi-billion parameter language models using model parallelism. arXiv:1909.08053.
  15. Solaiman, I., et al. (2019). Release strategies and the social impacts of language models. arXiv:1908.09203.
  16. Vaswani, A., Zhao, Y., Fossum, V., & Chiang, D. (2013). Decoding with large-scale neural language models improves translation. Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing, 1387–1392.
  17. Ziegler, D. M., et al. (2019). Fine-tuning language models from human preferences. arXiv:1909.08593.