Learning Abstractions for Hierarchical Planning in Program-Synthesis Agents

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Ahmed, Zergham, Irie, Kazuki, Tenenbaum, Joshua B., Bates, Christopher J., Gershman, Samuel J.
Format: Preprint
Publié: 2026
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866911413580070912
author Ahmed, Zergham
Irie, Kazuki
Tenenbaum, Joshua B.
Bates, Christopher J.
Gershman, Samuel J.
author_facet Ahmed, Zergham
Irie, Kazuki
Tenenbaum, Joshua B.
Bates, Christopher J.
Gershman, Samuel J.
contents Humans learn abstractions and use them to plan efficiently to quickly generalize across tasks -- an ability that remains challenging for state-of-the-art large language model (LLM) agents and deep reinforcement learning (RL) systems. Inspired by the cognitive science of how people form abstractions and intuitive theories of their world knowledge, Theory-Based RL (TBRL) systems, such as TheoryCoder, exhibit strong generalization through effective use of abstractions. However, they heavily rely on human-provided abstractions and sidestep the abstraction-learning problem. We introduce TheoryCoder-2, a new TBRL agent that leverages LLMs' in-context learning ability to actively learn reusable abstractions rather than relying on hand-specified ones, by synthesizing abstractions from experience and integrating them into a hierarchical planning process. We conduct experiments on diverse environments, including BabyAI, Minihack and VGDL games like Sokoban. We find that TheoryCoder-2 is significantly more sample-efficient than baseline LLM agents augmented with classical planning domain construction, reasoning-based planning, and prior program-synthesis agents such as WorldCoder. TheoryCoder-2 is able to solve complex tasks that the baselines fail, while only requiring minimal human prompts, unlike prior TBRL systems.
format Preprint
id arxiv_https___arxiv_org_abs_2602_00929
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Learning Abstractions for Hierarchical Planning in Program-Synthesis Agents
Ahmed, Zergham
Irie, Kazuki
Tenenbaum, Joshua B.
Bates, Christopher J.
Gershman, Samuel J.
Artificial Intelligence
Humans learn abstractions and use them to plan efficiently to quickly generalize across tasks -- an ability that remains challenging for state-of-the-art large language model (LLM) agents and deep reinforcement learning (RL) systems. Inspired by the cognitive science of how people form abstractions and intuitive theories of their world knowledge, Theory-Based RL (TBRL) systems, such as TheoryCoder, exhibit strong generalization through effective use of abstractions. However, they heavily rely on human-provided abstractions and sidestep the abstraction-learning problem. We introduce TheoryCoder-2, a new TBRL agent that leverages LLMs' in-context learning ability to actively learn reusable abstractions rather than relying on hand-specified ones, by synthesizing abstractions from experience and integrating them into a hierarchical planning process. We conduct experiments on diverse environments, including BabyAI, Minihack and VGDL games like Sokoban. We find that TheoryCoder-2 is significantly more sample-efficient than baseline LLM agents augmented with classical planning domain construction, reasoning-based planning, and prior program-synthesis agents such as WorldCoder. TheoryCoder-2 is able to solve complex tasks that the baselines fail, while only requiring minimal human prompts, unlike prior TBRL systems.
title Learning Abstractions for Hierarchical Planning in Program-Synthesis Agents
topic Artificial Intelligence
url https://arxiv.org/abs/2602.00929