AI
LLMs Struggle With Complex Planning Until Given Higher-Order Programming
New research shows that using language models to formalize natural language into planning problems fails at scale—unless the LLM first generates an abstract program.
Language models can translate everyday descriptions into formal planning representations, but a new study reveals significant limitations when real-world complexity enters the picture.
The Formalization Gap#
Researchers found that existing benchmarks may overstate how well LLM-based formalizers work. Traditional planning domains feature a neat correspondence between how humans describe a problem and its formal representation in languages like PDDL (Planning Domain Definition Language). Real scenarios rarely align so cleanly. When researchers tested what they call "unraveling problems"—where a natural description maps to a vastly larger formal representation—standard LLM formalizers hit a wall.
Why Scale Matters#
The core issue stems from how LLMs generate solutions token by token. As planning problems grow more intricate, the formal output explodes in size, forcing the model to produce increasingly long sequences. This combinatorial expansion quickly overwhelms current models, even those specifically trained to produce longer reasoning traces.
A New Approach: Higher-Order Formalization#
To address this bottleneck, the team proposes treating LLMs as higher-order formalizers. Rather than directly outputting massive PDDL representations, the LLM instead generates an abstract high-level program that encodes the repetitive logic within the problem. This intermediate program then generates the full formal representation programmatically—sidestepping the need for the model to output every token itself.
By decoupling LLM token generation from the underlying search space explosion, this method achieves measurably better performance on complex planning tasks. Testing across four standard planning domains revealed that the higher-order approach scales where direct formalization fails, suggesting a practical path forward for using language models in sophisticated reasoning workflows.

