mlsanityData to 7 Oct 2026

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

arXiv 2308.08268 ↗First posted 16 Aug 2023cs.LG cs.AIcited by 2

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 23 of its 34 references that are in the map. First posted on arXiv 16 Aug 2023.

Builds on

23 of 34 references.

References · 23

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  4. 2023GPT-4 Technical Reportcited by 18,132
  5. 2022Training language models to follow instructions with human feedbackcited by 15,712
  6. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  7. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  8. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  9. 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,579
  10. 2022Towards Understanding Grokking: An Effective Theory of Representation Learningcited by 229
  11. 2020XGNN: Towards Model-Level Explanations of Graph Neural Networkscited by 211
  12. 2022Exploring Length Generalization in Large Language Modelscited by 204
11 more
  1. 2023The Clock and the Pizza: Two Stories in Mechanistic Explanation of Neural Networkscited by 153
  2. 2021Investigating the Limitations of Transformers with Simple Arithmetic Taskscited by 136
  3. 2023Teaching Arithmetic to Small Transformerscited by 121
  4. 2022Limitations of Language Models in Arithmetic and Symbolic Inductioncited by 71
  5. 2023Length Generalization in Arithmetic Transformerscited by 64
  6. 2021Entropy-based Logic Explanations of Neural Networkscited by 51
  7. 2019Relative Attributing Propagation: Interpreting the Comparative Contributions of Individual Units in Deep Neural Networkscited by 49
  8. 2019Location Attention for Extrapolation to Longer Sequencescited by 33
  9. 2023Large Language Models as Annotators: Enhancing Generalization of NLP Models at Minimal Costcited by 33
  10. 2022Global Concept-Based Interpretability for Graph Neural Networks via Neuron Analysiscited by 32
  11. 2023Limits for Learning with Language Modelscited by 17

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 1; 2026: 1.

2 papers.