mlsanityData to 26 Nov 2026

Learning When to Abort in Transformer Planning: A Mechanistic Study

arXiv 2610.25300 ↗Submitted 18 Oct 2026cs.LG cs.AI cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

Planning does not by itself imply the ability to recognise errors, but recognising errors can improve planning capacity. In this paper, we study this phenomenon in Transformer planning. To analyze the inner mechanism, we follow the approach of Wang et al. (2024) and abstract planning as path-finding in graphs. In this setting, we train the model to detect the error of invalid transitions, i.e., after the model generates a next node that is not adjacent with the current node, the model should then generate a special abort token x. For expressiveness, we construct a Transformer with feed-forward width O(|V|) for any fixed graph with node set V. It can detect all possible invalid transitions, and select a valid next node if the prefix is valid. We then propose a worst-case lower bound on feed-forward width, which makes the detector's linear width near-optimal up to logarithmic factors. In trained models, we demonstrate that invalid-transition detection increases previous-node attention, and most of the valid--invalid separation locates in the feed-forward network's output. This accords with our theoretical insights. Finally, we use this error detection to improve the model's performance: at inference, generating the abort token x will directly cause an external procedure to discard the attempt and restart from the original prompt. Experiments show that error detection combined with retry improves model's planning reliability on graphs, Countdown, and mazes.

Key facts. No citing papers in the map yet (data through 26 Nov 2026). Builds on 14 of its 18 references that are in the map. Submitted 18 Oct 2026.

Builds on

14 of 18 references.

References · 14

  1. 2021Training Verifiers to Solve Math Word Problemscited by 11,055
  2. 2023Let's Verify Step by Stepcited by 4,259
  3. 2017Nearly-tight VC-dimension and pseudodimension bounds for piecewise linear neural networkscited by 320
  4. 2024Stream of Search (SoS): Learning to Search in Languagecited by 156
  5. 2024Beyond A*: Better Planning with Transformers via Search Dynamics Bootstrappingcited by 101
  6. 2024Learning to Route LLMs with Confidence Tokenscited by 78
  7. 2024ALPINE: Unveiling the Planning Capability of Autoregressive Learning in Language Modelscited by 19
  8. 2025Taming Imperfect Process Verifiers: A Sampling Perspective on Backtrackingcited by 17
  9. 2024Chasing Progress, Not Perfection: Revisiting Strategies for End-to-End LLM Plan Generationcited by 13
  10. 2025On the Query Complexity of Verifier-Assisted Language Generationcited by 13
  11. 2023Learning and Leveraging Verifiers to Improve Planning Capabilities of Pre-trained Language Modelscited by 11
  12. 2025Understanding and Enhancing the Planning Capability of Language Models via Multi-Token Predictioncited by 7
2 more
  1. 2025Benefits and Pitfalls of Reinforcement Learning for Language Model Planning: A Theoretical Perspectivecited by 5
  2. 2026Can Transformers Learn to Verify During Backtracking Search?cited by 1

Built on by

Not cited yet.