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

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Tong, Yao, Ye, Jiayuan, Borovykh, Anastasia, Shokri, Reza
Format: Preprint
Publié: 2026
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866913038537326592
author Tong, Yao
Ye, Jiayuan
Borovykh, Anastasia
Shokri, Reza
author_facet Tong, Yao
Ye, Jiayuan
Borovykh, Anastasia
Shokri, Reza
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2604_15306
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Generalization in LLM Problem Solving: The Case of the Shortest Path
Tong, Yao
Ye, Jiayuan
Borovykh, Anastasia
Shokri, Reza
Artificial Intelligence
Machine Learning
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.
title Generalization in LLM Problem Solving: The Case of the Shortest Path
topic Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2604.15306