InstructFlow: Adaptive Symbolic Constraint-Guided Code Generation for Long-Horizon Planning

Haotian Chi, Ze-Yu Feng, Yueming Lyu, Cheng-Qi Zheng, Lin-Bo Luo +5 more
1/1/2025

No official code found. Best implementation: chiht21/InstructFlow (7 stars, Python, last commit 2025-12-23).

Abstract

Long-horizon planning in robotic manipulation tasks requires translating under-specified, symbolic goals into executable control programs satisfying spatial, temporal, and physical constraints. However, language model-based planners often struggle with long-horizon task decomposition, robust constraint satisfaction, and adaptive failure recovery.

Show full abstract

We introduce InstructFlow , a multi-agent framework that establishes a symbolic, feedback-driven flow of information for code generation in robotic manipulation tasks. In-structFlow employs a InstructFlow Planner to construct and traverse a hierarchical instruction graph that decomposes goals into semantically meaningful subtasks, while a Code Generator generates executable code snippets conditioned on this graph. Crucially, when execution failures occur, a Constraint Generator analyzes feed-back and induces symbolic constraints, which are propagated back into the instruction graph to guide targeted code refinement without regenerating from scratch. This dynamic, graph-guided flow enables structured, interpretable, and failure-resilient planning, significantly improving task success rates and robustness across diverse manipulation benchmarks, especially in constraint-sensitive and long-horizon scenarios.

DOISemantic Scholar

Code Implementations(1)

Official implementation of "InstructFlow: Adaptive Symbolic Constraint-Guided Code Generation for Long-Horizon Planning" in NeurIPS'25

71PythonOct 13, 202511 months ago

Similar Papers

Cite this paper

@article{chi2025instructflow,
  title  = {InstructFlow: Adaptive Symbolic Constraint-Guided Code Generation for Long-Horizon Planning},
  author = {Haotian Chi and Ze-Yu Feng and Yueming Lyu and Cheng-Qi Zheng and Lin-Bo Luo and Y. Ong and I. Tsang and Hechang Chen and Yi Chang and Hai-Yan Yin},
  year   = {2025},
  doi    = {10.52202/085713-0092},
  url    = {https://doi.org/10.52202/085713-0092},
  journal = {Neural Information Processing Systems}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/c8eff337919d63a3e348dbcc4708042c77645ce9.svg)](https://codeofpaper.com/paper/c8eff337919d63a3e348dbcc4708042c77645ce9)

Discussion