On the Ability of Transformers to Verify Plans

arXiv cs.AI / 3/23/2026

📰 NewsIdeas & Deep AnalysisModels & Research

Key Points

  • The authors study whether decoder-only transformers can verify if a given plan solves a planning problem, addressing generalization beyond fixed input sizes.
  • They introduce C*-RASP, an extension of C-RASP, to provide length generalization guarantees as both sequence length and vocabulary size grow at test time.
  • The work identifies a large class of classical planning domains where transformers can provably learn to verify long plans and highlights structural properties that influence the learnability of length-generalizable solutions.
  • Empirical experiments corroborate the theory, showing alignment between analytical results and observed performance on planning verification tasks.

Abstract

Transformers have shown inconsistent success in AI planning tasks, and theoretical understanding of when generalization should be expected has been limited. We take important steps towards addressing this gap by analyzing the ability of decoder-only models to verify whether a given plan correctly solves a given planning instance. To analyse the general setting where the number of objects -- and thus the effective input alphabet -- grows at test time, we introduce C*-RASP, an extension of C-RASP designed to establish length generalization guarantees for transformers under the simultaneous growth in sequence length and vocabulary size. Our results identify a large class of classical planning domains for which transformers can provably learn to verify long plans, and structural properties that significantly affects the learnability of length generalizable solutions. Empirical experiments corroborate our theory.