Skip to content

Research Articles

Token Budgeting in Attention Models: Concurrent Changes

Lina Iverford (Machine Learning Laboratory, Glenwick University), Elena Merevale (Machine Learning Laboratory, Ravenmere Technical University), Nerea Bellwarden (Machine Learning Laboratory, Cairnwell Research Institute), Soraya Merevale (Machine Learning Laboratory, Ivermere University), Devon Ivermere (Machine Learning Laboratory, Ravenmere Technical University), Mara Larkmere (Machine Learning Laboratory, Eastmarsh Institute for Applied Computing)

Vol. 3 No. 1 (2019) · pp. 54–69 · Published 12 July 2019

Abstract

For a test fixture with overlapping transitions, 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 240 cases. In the 60 stress cases, relevant clues must appear outside the first input segment; both changes are replayed together as well as separately to distinguish an interaction from an isolated error. 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 163 of 240 cases and the alternative passes 180. For the 60 stress cases alone, the counts are 29 and 44, 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, concurrent changes, synthetic evaluation

References

  1. Chua, K., Calandra, R., McAllister, R., & Levine, S. (2018). Deep reinforcement learning in a handful of trials using probabilistic dynamics models. Advances in Neural Information Processing Systems, 31, 4754–4765.
  2. Hitaj, B., Ateniese, G., & Perez-Cruz, F. (2017). Deep models under the GAN: Information leakage from collaborative deep learning. Proceedings of the 2017 ACM SIGSAC Conference on Computer and Communications Security, 603–618.
  3. Ishakian, V., Muthusamy, V., & Slominski, A. (2018). Serving deep learning models in a serverless platform. Proceedings of the IEEE International Conference on Cloud Engineering, 257–262.
  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. Kudo, T., & Richardson, J. (2018). SentencePiece: A simple and language independent subword tokenizer and detokenizer for neural text processing. Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, 66–71.
  6. Luong, M.-T., & Manning, C. D. (2016). Achieving open vocabulary neural machine translation with hybrid word-character models. Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics, 1054–1063.
  7. Madry, A., Makelov, A., Schmidt, L., Tsipras, D., & Vladu, A. (2017). Towards deep learning models resistant to adversarial attacks. arXiv:1706.06083.
  8. 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.
  9. Merity, S., Keskar, N. S., & Socher, R. (2017). Regularizing and optimizing LSTM language models. arXiv:1708.02182.
  10. Purushotham, S., Meng, C., Che, Z., & Liu, Y. (2018). Benchmarking deep learning models on large healthcare datasets. Journal of Biomedical Informatics, 83, 112–134.
  11. Radford, A., Narasimhan, K., Salimans, T., & Sutskever, I. (2018). Improving language understanding by generative pre-training (Technical report). OpenAI.
  12. 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.
  13. Schwenk, H. (2007). Continuous space language models. Computer Speech & Language, 21(3), 492–518.
  14. 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.
  15. Yang, Z., He, X., Gao, J., Deng, L., & Smola, A. (2015). Stacked attention networks for image question answering. arXiv:1511.02274.
  16. Zhong, V., Xiong, C., & Socher, R. (2017). Seq2SQL: Generating structured queries from natural language using reinforcement learning. arXiv:1709.00103.