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