mlsanityData to 14 Oct 2026

Generalization in LLM Problem Solving: The Case of the Shortest Path

arXiv 2604.15306 ↗First posted 16 Apr 2026cs.AI cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Whether language models can systematically generalize remains actively debated. Yet empirical performance is jointly shaped by multiple factors such as training data, training paradigms, and inference-time strategies, making failures difficult to interpret. We introduce a controlled synthetic environment based on shortest-path planning, a canonical composable sequential optimization problem. The setup enables clean separation of these factors and supports two orthogonal axes of generalization: spatial transfer to unseen maps and length scaling to longer-horizon problems. We find that models exhibit strong spatial transfer but consistently fail under length scaling due to recursive instability. We further analyze how distinct stages of the learning pipeline influence systematic problem-solving: for example, data coverage sets capability limits; reinforcement learning improves training stability but does not expand those limits; and inference-time scaling enhances performance but cannot rescue length-scaling failures.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 69 of its 85 references that are in the map. First posted on arXiv 16 Apr 2026.

Builds on

69 of 85 references.

References · 69

  1. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  2. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
  3. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
  4. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
  5. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
  6. 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,211
  7. 2023GPQA: A Graduate-Level Google-Proof Q&A Benchmarkcited by 2,879
  8. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 2,004
  9. 2025Understanding R1-Zero-Like Training: A Critical Perspectivecited by 1,345
  10. 2024Large Language Monkeys: Scaling Inference Compute with Repeated Samplingcited by 991
  11. 2025Does Reinforcement Learning Really Incentivize Reasoning Capacity in LLMs Beyond the Base Model?cited by 982
  12. 2021Measuring Coding Challenge Competence With APPScited by 902
38 more
  1. 2023Instruction Tuning with GPT-4cited by 686
  2. 2025SFT Memorizes, RL Generalizes: A Comparative Study of Foundation Model Post-trainingcited by 672
  3. 2025Vision-R1: Incentivizing Reasoning Capability in Multimodal Large Language Modelscited by 665
  4. 2019MathQA: Towards Interpretable Math Word Problem Solving with Operation-Based Formalismscited by 662
  5. 2022Contrastive Decoding: Open-ended Text Generation as Optimizationcited by 609
  6. 2023Faith and Fate: Limits of Transformers on Compositionalitycited by 503
  7. 2022Emergent World Representations: Exploring a Sequence Model Trained on a Synthetic Taskcited by 431
  8. 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 327
  9. 2025MathArena: Evaluating LLMs on Uncontaminated Math Competitionscited by 297
  10. 2019Measuring Compositional Generalization: A Comprehensive Method on Realistic Datacited by 284
  11. 2019Compositionality decomposed: how do neural networks generalise?cited by 265
  12. 2020COGS: A Compositional Generalization Challenge Based on Semantic Interpretationcited by 263
  13. 2025SFT or RL? An Early Investigation into Training R1-Like Reasoning Large Vision-Language Modelscited by 212
  14. 2022Exploring Length Generalization in Large Language Modelscited by 206
  15. 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 199
  16. 2025ProRL: Prolonged Reinforcement Learning Expands Reasoning Boundaries in Large Language Modelscited by 194
  17. 2022Diverse Demonstrations Improve In-context Compositional Generalizationcited by 139
  18. 2023Controlled Decoding from Language Modelscited by 135
  19. 2020From Local Structures to Size Generalization in Graph Neural Networkscited by 124
  20. 2024An analytic theory of creativity in convolutional diffusion modelscited by 104
  21. 2022Does CLIP Bind Concepts? Probing Compositionality in Large Image Modelscited by 102
  22. 2024Looped Transformers for Length Generalizationcited by 99
  23. 2024Arithmetic Without Algorithms: Language Models Solve Math With a Bag of Heuristicscited by 97
  24. 2025Learning What Reinforcement Learning Can't: Interleaved Online Fine-Tuning for Hardest Questionscited by 97
  25. 2020Compositional Generalization in Semantic Parsing: Pre-training vs. Specialized Architecturescited by 95
  26. 2023Compositional Abilities Emerge Multiplicatively: Exploring Diffusion Models on a Synthetic Taskcited by 93
  27. 2021Making Transformers Solve Compositional Taskscited by 72
  28. 2023How Deep Neural Networks Learn Compositional Data: The Random Hierarchy Modelcited by 71
  29. 2023Length Generalization in Arithmetic Transformerscited by 66
  30. 2023Compositional Generalization from First Principlescited by 64
  31. 2021The paradox of the compositionality of natural language: a neural machine translation case studycited by 59
  32. 2025All Roads Lead to Likelihood: The Value of Reinforcement Learning in Fine-Tuningcited by 59
  33. 2018Rearranging the Familiar: Testing Compositional Generalization in Recurrent Networkscited by 51
  34. 2024Can LLM Graph Reasoning Generalize beyond Pattern Memorization?cited by 47
  35. 2020The EOS Decision and Length Extrapolationcited by 46
  36. 2023Break It Down: Evidence for Structural Compositionality in Neural Networkscited by 44
  37. 2025Graph Foundation Models: A Comprehensive Surveycited by 44
  38. 2018Memorize or generalize? Searching for a compositional RNN in a haystackcited by 41

50 most cited of 69 All 69 (JSON)

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025How and Why LLMs Generalize: A Fine-Grained Analysis of LLM Reasoning from Cognitive Behaviors to Low-Level Patterns
  2. 2026Rethinking Generalization in Reasoning SFT: A Conditional Analysis on Optimization, Data, and Model Capability
  3. 2025Does Learning Mathematical Problem-Solving Generalize to Broader Reasoning?
  4. 2025PLAN-TUNING: Post-Training Language Models to Learn Step-by-Step Planning for Complex Problem Solving
  5. 2025Scaling Up RL: Unlocking Diverse Reasoning in LLMs via Prolonged Training
  6. 2026What Makes an LLM a Good Optimizer? A Trajectory Analysis of LLM-Guided Evolutionary Search
  7. 2026Can Large Language Models Generalize Procedures Across Representations?
  8. 2025Are Language Models Up to Sequential Optimization Problems? From Evaluation to a Hegelian-Inspired Enhancement