Proceedings

It Ain’t That Bad: Understanding the Mysterious Performance Drop in OOD Generalization for Generative Transformer Models

Download BibTeX Cite

Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence. Main Track. Pages 6578-6586.

https://doi.org/10.24963/ijcai.2024/727

Abstract

Large language models (LLMs) have achieved remarkable proficiency on solving diverse problems. However, their generalization ability is not always satisfying and the generalization problem is common for generative transformer models in general. Researchers take basic mathematical tasks like n-digit addition or multiplication as important perspectives for investigating their generalization behaviors. It is observed that when training models on n-digit operations (e.g., additions) in which both input operands are n-digit in length, models generalize successfully on unseen n-digit inputs (in-distribution (ID) generalization), but fail miserably on longer, unseen cases (out-of-distribution (OOD) generalization). We bring this unexplained performance drop into attention and ask whether there is systematic OOD generalization. Towards understanding LLMs, we train various smaller language models which may share the same underlying mechanism. We discover that the strong ID generalization stems from structured representations, while behind the unsatisfying OOD performance, the models still exhibit clear learned algebraic structures. Specifically, these models map unseen OOD inputs to outputs with learned equivalence relations in the ID domain, which we call the equivalence generalization. These findings deepen our knowledge regarding the generalizability of generative models including LLMs, and provide insights into potential avenues for improvement.

  1. Nadeem Akhtar and U Ragavendran. Interpretation of intelli- gence in cnn-pooling processes: a methodological survey. Neural computing and applications, 32(3):879-898, 2020.
  2. Cem Anil, Yuhuai Wu, Anders Andreassen, Aitor Lewkowycz, Vedant Misra, Vinay Ramasesh, Ambrose Slone, Guy Gur-Ari, Ethan Dyer, and Behnam Neyshabur. Exploring length generalization in large language models. Advances in Neural Information Processing Systems, 35:38546-38556, 2022.
  3. Anthropic. Model card and evaluations for claude models. 2023.
  4. Pietro Barbiero, Gabriele Ciravegna, Francesco Giannini, Pietro Lió, Marco Gori, and Stefano Melacci. Entropy- based logic explanations of neural networks. In Proceed- ings of the AAAI Conference on Artificial Intelligence, vol- ume 36, pages 6046-6054, 2022.
  5. Emily M Bender, Timnit Gebru, Angelina McMillan-Major, and Shmargaret Shmitchell. On the dangers of stochastic parrots: Can language models be too big? In Proceedings of the 2021 ACM conference on fairness, accountability, and transparency, pages 610-623, 2021.
  6. Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Lan- guage models are few-shot learners. Advances in neural information processing systems, 33:1877-1901, 2020.
  7. Sébastien Bubeck, Varun Chandrasekaran, Ronen Eldan, Johannes Gehrke, Eric Horvitz, Ece Kamar, Peter Lee, Yin Tat Lee, Yuanzhi Li, Scott Lundberg, et al. Sparks of artificial general intelligence: Early experiments with gpt-4. arXiv preprint arXiv:2303.12712, 2023.
  8. Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, et al. Palm: Scaling language modeling with pathways. Journal of Machine Learning Research, 24(240):1-113, 2023.
  9. Yann Dubois, Gautier Dagan, Dieuwke Hupkes, and Elia Bruni. Location attention for extrapolation to longer se- quences. arXiv preprint arXiv:1911.03872, 2019.
  10. Samy Jelassi, Stéphane d'Ascoli, Carles Domingo-Enrich, Yuhuai Wu, Yuanzhi Li, and Franc ¸ois Charton. Length generalization in arithmetic transformers. arXiv preprint arXiv:2306.15400, 2023.
  11. Andrej Karpathy. A minimal pytorch re-implementation of the openai gpt (generative pretrained transformer) training. GitHub https://github.com/karpathy/minGPT, 2022. Link
  12. Nayoung Lee, Kartik Sreenivasan, Jason D Lee, Kangwook Lee, and Dimitris Papailiopoulos. Teaching arithmetic to small transformers. arXiv preprint arXiv:2307.03381, 2023.
  13. Ziming Liu, Ouail Kitouni, Niklas S Nolte, Eric Michaud, Max Tegmark, and Mike Williams. Towards understand- ing grokking: An effective theory of representation learn- ing. Advances in Neural Information Processing Systems, 35:34651-34663, 2022.
  14. Woo-Jeoung Nam, Shir Gur, Jaesik Choi, Lior Wolf, and Seong-Whan Lee. Relative attributing propagation: Inter- preting the comparative contributions of individual units in deep neural networks. In Proceedings of the AAAI con- ference on artificial intelligence, volume 34, pages 2501- 2508, 2020.
  15. Neel Nanda and Tom Lieberum. A mechanistic interpretabil- ity analysis of grokking. In Alignment Forum, 2022.
  16. Rodrigo Nogueira, Zhiying Jiang, and Jimmy Lin. Investigat- ing the limitations of transformers with simple arithmetic tasks. arXiv preprint arXiv:2102.13019, 2021.
  17. OpenAI. Gpt-4 technical report. ArXiv, abs/2303.08774, 2023.
  18. Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Car- roll Wainwright, Pamela Mishkin, Chong Zhang, Sand- hini Agarwal, Katarina Slama, Alex Ray, et al. Training language models to follow instructions with human feed- back. Advances in Neural Information Processing Systems, 35:27730-27744, 2022.
  19. Jing Qian, Hong Wang, Zekun Li, Shiyang Li, and Xifeng Yan. Limitations of language models in arithmetic and symbolic induction. arXiv preprint arXiv:2208.05051, 2022.
  20. Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Mar- tinet, Marie-Anne Lachaux, Timothée Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, et al. Llama: Open and efficient foundation language models. arXiv preprint arXiv:2302.13971, 2023.
  21. Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, et al. Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288, 2023.
  22. Immanuel Trummer. Codexdb: Synthesizing code for query processing from natural language instructions us- ing gpt-3 codex. Proceedings of the VLDB Endowment, 15(11):2921-2928, 2022.
  23. Han Xuanyuan, Pietro Barbiero, Dobrik Georgiev, Lu- cie Charlotte Magister, and Pietro Lió. Global concept- based interpretability for graph neural networks via neuron analysis. In Proceedings of the AAAI Conference on Artifi- cial Intelligence, volume 37, pages 10675-10683, 2023.
  24. Hao Yuan, Yongjun Chen, Xia Hu, and Shuiwang Ji. Inter- preting deep models for text analysis via optimization and regularization methods. In Proceedings of the AAAI Con- ference on Artificial Intelligence, volume 33, pages 5717- 5724, 2019.
  25. Hao Yuan, Jiliang Tang, Xia Hu, and Shuiwang Ji. Xgnn: Towards model-level explanations of graph neural net- works. In Proceedings of the 26th ACM SIGKDD Interna- tional Conference on Knowledge Discovery & Data Min- ing, pages 430-438, 2020.
  26. Ziqian Zhong, Ziming Liu, Max Tegmark, and Jacob An- dreas. The clock and the pizza: Two stories in mech- anistic explanation of neural networks. arXiv preprint arXiv:2306.17844, 2023.
  27. Mingyu Zong and Bhaskar Krishnamachari. Solving math word problems concerning systems of equations with gpt- 3. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 37, pages 15972-15979, 2023.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards