mlsanityData to 14 Oct 2026

Achieving and Understanding Out-of-Distribution Generalization in Systematic Reasoning in Small-Scale Transformers

arXiv 2210.03275 ↗First posted 7 Oct 2022cs.LGcited by 2

On the map: LLM reasoning → Mathematical reasoning

Abstract (arXiv)

Out-of-distribution generalization (OODG) is a longstanding challenge for neural networks. This challenge is quite apparent in tasks with well-defined variables and rules, where explicit use of the rules could solve problems independently of the particular values of the variables, but networks tend to be tied to the range of values sampled in their training data. Large transformer-based language models have pushed the boundaries on how well neural networks can solve previously unseen problems, but their complexity and lack of clarity about the relevant content in their training data obfuscates how they achieve such robustness. As a step toward understanding how transformer-based systems generalize, we explore the question of OODG in small scale transformers trained with examples from a known distribution. Using a reasoning task based on the puzzle Sudoku, we show that OODG can occur on a complex problem if the training set includes examples sampled from the whole distribution of simpler component tasks. Successful generalization depends on carefully managing positional alignment when absolute position encoding is used, but we find that suppressing sensitivity to absolute positions overcomes this limitation. Taken together our results represent a small step toward understanding and promoting systematic generalization in transformers.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Mathematical reasoning, one of 17 directions in LLM reasoning. Builds on 14 of its 17 references that are in the map. First posted on arXiv 7 Oct 2022.

Builds on

14 of 17 references.

Closest ancestors · 1

Same direction, newest first

  1. 2022Solving Quantitative Reasoning Problems with Language Models29 Jun

Other references · 13

  1. 2017Attention Is All You Needcited by 60,361
  2. 2014Adam: A Method for Stochastic Optimizationcited by 37,240
  3. 2020Language Models are Few-Shot Learnerscited by 32,419
  4. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  5. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  6. 2021On the Opportunities and Risks of Foundation Modelscited by 4,033
  7. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,434
  8. 2018Relational inductive biases, deep learning, and graph networkscited by 1,360
  9. 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
  10. 2021Do Prompt-Based Models Really Understand the Meaning of their Prompts?cited by 326
  11. 2022Transformer Language Models without Positional Encodings Still Learn Positional Informationcited by 150
  12. 2017Recurrent Relational Networkscited by 72
1 more
  1. 2022Systematic Generalization and Emergent Structures in Transformers Trained on Structured Taskscited by 19

Built on by

Cited by year (2026 to 14 Oct)

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

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Unlocking Out-of-Distribution Generalization in Transformers via Recursive Latent Space Reasoning
  2. 2024Out-of-distribution generalization via composition: a lens through induction heads in Transformers
  3. 2024Principled Understanding of Generalization for Generative Transformer Models in Arithmetic Reasoning Tasks
  4. 2024Grokked Transformers are Implicit Reasoners: A Mechanistic Journey to the Edge of Generalization
  5. 2026At the Edge of Understanding: Sparse Autoencoders Trace The Limits of Transformer Generalization
  6. 2024Learning interpretable positional encodings in transformers depends on initialization
  7. 2025Generalization or Hallucination? Understanding Out-of-Context Reasoning in Transformers
  8. 2026Loop, Think, & Generalize: Implicit Reasoning in Recurrent-Depth Transformers