Skip to main content
QUICK REVIEW

[论文解读] Learning Abstractions for Hierarchical Planning in Program-Synthesis Agents

Ahmed, Zergham, Kazuki Irie|arXiv (Cornell University)|Jan 31, 2026
AI-based Problem Solving and PlanningComputer Science被引用 0
一句话总结

TheoryCoder-2 通过上下文学习自动学习可重复使用的抽象,从而实现分层规划,在不同环境中提高样本效率和泛化能力。

ABSTRACT

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.

研究动机与目标

  • 需要人类级抽象学习来提高 AI 代理的规划效率和泛化能力的动机。
  • 开发一个基于理论的强化学习代理(TheoryCoder-2),自主合成高层抽象(PDDL 操作符)并以低层世界模型进行 grounding。
  • 通过课程驱动的学习实现跨多个环境的学习抽象的再利用。
  • 在包括 LLM 辅助规划和 WorldCoder 的基线之上,展示样本效率和任务成功率的提升。

提出的方法

  • 在 LLM 的上下文学习下扩展 TheoryCoder,自动合成高层抽象。
  • 将抽象表示为用于分层规划器(Fast Downward)的 PDDL 域和问题文件,并以基于 Python 的世界模型对其进行 grounding。
  • 使用一个双层规划循环,其中高层规划器选择抽象算子,低层规划器通过学习的迁移函数执行落地的动作序列。
  • 用从环境数据中学习的 Python 谓词分类器对谓词语义进行 grounding。
  • 通过对预测误差和规划结果进行提示,迭代地改进世界模型和抽象。
  • 通过将类似环境归入 episodic 课程来扩展抽象库,促进学习算子和谓词的再使用。
Figure 1 : Comparison of agent–environment interaction between methods. WorldCoder and LLM + P both fall under the LLM + Planner category.
Figure 1 : Comparison of agent–environment interaction between methods. WorldCoder and LLM + P both fall under the LLM + Planner category.

实验结果

研究问题

  • RQ1TheoryCoder-2 是否能够自主学习可在不同环境之间迁移的抽象状态和动作?
  • RQ2在新任务中重复使用已学习的抽象是否能提高样本效率?
  • RQ3TheoryCoder-2 在 VGDL、BabyAI、Minihack 等多域中,与基线相比在令牌消耗、计算时间和解题率方面表现如何?

主要发现

  • TheoryCoder-2 学习核心抽象(如 move_to),并在 Labyrinth、Maze、Sokoban 中实现复用。
  • TheoryCoder-2 学到的抽象能够迁移到更难的任务(如 BabyAI Boss),并使基线难以解决的问题变得可解。
  • TheoryCoder-2 相较于基于 LLM 的基线和 WorldCoder,达到更高的样本效率与具竞争力或更优的解题率,同时具备更低的令牌成本和更快的规划速度。
  • TheoryCoder-2 学到的抽象在性能上已接近手工设计的 Oracle 抽象。
  • 以课程驱动的学习与基于代码的 grounding 抽象相比,能更快地完成综合与规划,优于基于提示的抽象。
  • 在 Minihack 中观察到零-shot 迁移:学习到的 move_to 抽象能迅速解决后续任务。
Figure 2 : An illustration of the curriculum used in our experiments. A curriculum is a sequence of episodes in which each episode contains one or more environments/games. The sequence of the first episode (Labyrinth) and the second one (Maze, and Sokoban) is studied in Experiment 1 (Sec. 4.1 ), whi
Figure 2 : An illustration of the curriculum used in our experiments. A curriculum is a sequence of episodes in which each episode contains one or more environments/games. The sequence of the first episode (Labyrinth) and the second one (Maze, and Sokoban) is studied in Experiment 1 (Sec. 4.1 ), whi

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。