延续引导的LLM在Craftax中程序策略与目标编译器的演化

·

研究论文 · 2026/11/17

该论文提出一个框架,通过反馈级联(从回合回报到分层目标与信念更新)来优化程序策略,从而在Craftax游戏中将最终关卡到达率从不足1%提升至50%(最终Boss击败率28%)。进一步,将控制器分解为环境解释器I和规则程序p0,并利用编码智能体优化可重用的目标编译器C_θ,将结构化任务g映射为新规则程序p_g。在五个独立编译器搜索中(仅用短任务训练),编译器能零样本迁移到更长任务,无需任务特定调优或推理时LLM调用。

该研究解决了长视野任务中程序策略优化的两个关键挑战:局部改进损害最终成功和切换目标需重新合成。提出的反馈级联和目标编译器方法在Craftax上取得显著效果,且编译器能零样本迁移,为可重用程序策略提供了新思路,具有重要的实践价值。

Coding agents can synthesize and optimize code-based policies from simulator feedback, allowing the resulting program to act with zero inference model calls. But for long horizon tasks, two challenges arise: local improvements can hurt final success and switching to a new objective requires another expensive synthesis run. We propose a framework that first develops competence by refining the policy through a feedback cascade, moving from episode returns to hierarchical goals and belief updates which can be scored densely from simulator. In the Craftax game, a partially observed and procedurally generated environment, refinements via episode level feedback stall at <1% final-level arrival, whereas with the feedback cascade the optimized policy reaches the final stage 50% of time (28% final boss defeats). Furthermore, to make this competence reusable towards new goals, we factor the previous controller into an environment interpreter I (models, memory, skills) and a rule program p_0, and we show that coding agents can optimize a reusable goal compiler C_θ that maps structured tasks g into new rule programs p_g. Across five independent compiler searches trained only on short tasks, the resulting compilers successfully transfer zero-shot to longer tasks without any task-specific tuning nor inference-time LLM calls: continuation-scored feedback and a fixed machine with an editable program together turn a single-task competent policy into a reusable one. Code at: https://github.com/vicgalle/craftax-program-policies

阅读原文

参与讨论