AI
New Training Method Helps Transformers Solve Harder Planning Problems
Researchers tackle a fundamental weakness in transformer models for automated planning by using contrastive learning to make them aware of problem symmetries.
Transformer models have shown impressive capabilities across many domains, yet their use in automated planning remains constrained. A significant barrier has been their struggle to generalize from simpler planning tasks to harder ones—a limitation that researchers now attribute to how the models handle problem symmetries.
The Core Challenge#
Planning problems can be described using any arbitrary variable names, which function purely as identifiers with no intrinsic meaning. This flexibility in representation creates an enormous number of mathematically equivalent formulations of the same problem. Standard transformers, trained on raw input without special consideration for these symmetries, face a combinatorial explosion of different ways to encode identical planning challenges. This makes it difficult for the models to learn efficiently and to transfer knowledge from easier to harder problem instances.
A Symmetry-Aware Solution#
Researchers have introduced a novel approach built around contrastive learning—a technique that trains models to recognize which representations are equivalent despite superficial differences. By making transformers explicitly aware of problem symmetries during training, the method compensates for the models' natural lack of structural bias toward these invariances. Coupled with targeted architectural refinements, this approach enables transformers to be trained effectively for both generating plans and making heuristic predictions.
Validation Across Domains#
Testing on multiple planning domains shows that the symmetry-aware training successfully overcomes the limitations of PlanGPT, an earlier state-of-the-art decoder-only transformer for planning. The results suggest that with the right inductive framework, transformers can become viable tools for automated planning tasks that previously exceeded their reach.

