Language Models, Graph Searching, and Supervision Adulteration: When More Supervision is Less and How to Make More More
Arvid Frydenlund
TL;DR
The Path-Star Task (PST) tests graph-search ability for decoder-only language models under next-token prediction and reveals a CHC shortcut that causes failure at baseline $1/D$. The authors show PST learnability is possible when supervision is structured to induce subtask decomposition, using methods such as token masking, Ranking-into-the-Future (RITF), scratchpads, topology shifts to tree-star, generalized queries, and length variation. Key contributions include introducing RITF, demonstrating decomposition as essential for learnability, and showing that graph topology and online data generation significantly influence outcomes. The work highlights practical implications for planning and graph reasoning in LMs, while candidly acknowledging limitations in scaling to larger graphs and the need for decomposition-guided supervision to avoid spurious shortcuts.
Abstract
This work concerns the path-star task, a minimal example of searching over a graph. The graph, $G$, is star-shaped with $D$ arms radiating from a start node, $s$. A language model (LM) is given $G$, $s$, and a target node $t$, which ends one of the arms and is tasked with generating the arm containing $t$. The minimal nature of this task means only a single choice needs to be made: which of the $D$ arms contains $t$? Decoder-only LMs fail to solve this elementary task above $1/D$ chance due to a learned shortcut that absorbs training supervision. We show how this pathology is caused by excess supervision and we present a series of solutions demonstrating that the task is solvable via decoder-only LMs. We find that the task's minimal nature causes its difficulty, as it prevents task decomposition. Our solutions provide insight into the pathology and its implications for LMs trained via next-token prediction.
