Manuscript Offprint

arXiv:2609.31337

Representation-Guided Generation and Integration of Executable Programs for Robot Manipulation

Ruixiao Yang, Mingxin Yu, Chuchu Fan

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Ruixiao Yang 1^{1}, Mingxin Yu 1^{1}, and Chuchu Fan 1^{1}

Abstract—Building a robotic manipulation system requires connecting perception, planning, and control through carefully designed representations and interfaces. VLM code generation offers a way to automate this construction, but independently generated components may operate on incompatible geometric and task-level information. We present Representation-guided Integration of VLM-generated Executable Task programs (RIVET), a framework for generating complete manipulation systems around a shared object-centric representation. The representation combines per-object 6D poses, which preserve the metric information required for action grounding, with a relation graph that exposes the task-level structure required for planning. Guided by this representation, a VLM generates cooperating perception, rendering, relation-inference, and planning programs, each combining task-specific computation with available packages where useful. The resulting programs are authored once for a manipulation domain and reused on unseen start and goal configurations without code regeneration. We evaluate RIVET on cube stacking, tangram rearrangement, and three-dimensional assembly in simulation and on a physical robot, where we achieve 83% overall success rate in the real world by reusing offline-generated systems. Our results demonstrate that representation-guided program generation can adapt a common manipulation framework to tasks with different geometric, relational, and sequential requirements.

Index Terms—Manipulation, Vision-Language Models

I. INTRODUCTION

Vision-language models (VLMs) are becoming increasingly capable and useful for robotic manipulation. Their ability to reason about task requirements and visual observations makes them a strong fit to bridge high-level task specifications and robot behavior [2], [3], [8]. However, using VLMs directly as planners makes it hard to know when and why VLMs succeed or fail. Errors in scene understanding and action reasoning can remain implicit in model responses, making failures difficult to diagnose and correct without being explicitly grounded in robotic knowledge [4], [13]. Moreover, using VLM-based planner directly inside the loop can introduce substantial computational cost and high inference latency during execution.

On the other hand, traditional robotic manipulation provides useful tools within a sense-plan-act structure [18], from decades of effort in computer vision and planning. In this structure, each component solves a well-defined problem, making its behavior easier to verify and diagnose. Once suitable tools are connected through well-specified representations, the resulting system can work reliably across different initial and goal configurations at a lower cost than VLM-based planners. However, selecting these tools and designing their connections requires substantial human effort and domain expertise for each new task.

The code-generation capability of VLMs suggests a way to automate the construction of manipulation systems. Prior work has used language models to compose perception and control APIs into robot programs [10], [15], as well as to generate plans or planning models over symbolic representations [7], [19]. However, generating individual program components does not by itself determine how a complete system should represent, exchange scene information and be constructed. Perception produces geometric quantities such as masks and object poses, whereas planning often depends on task-level relationships and constraints. And execution requires the planned actions to be grounded back into metric poses. If these components are generated independently, they may disagree on object identities, coordinate conventions, relation semantics, or action effects. The central challenge is therefore to provide a structure that connects visual observations, task-level reasoning, and executions while leaving the task-specific algorithms and their composition as a system to be generated.

To address this challenge, we present Representation-guided Integration of VLM-generated Executable Task programs (RIVET). Our key design is an object-centric scene representation that combines per-object 6D poses with a task-relevant relation graph. The poses preserve the metric information needed to reconstruct scenes and ground actions, while the graph exposes the structural information needed to reason about task constraints and action order. Because both components refer to the same object instances, the representation provides a common interface across perception, relational reasoning, and planning. Guided by this representation, the VLM generates the algorithms implementing each module, combining task-specific computation with available packages where useful. The resulting modules form an executable system that is authored once for a task domain and reused across new start and goal configurations.

Concretely, RIVET first defines a scene representation containing both object poses and an object relation graph, then generates four cooperating functions: perceive, render, relate, and plan. perceive combines vision tools with generated code to recover object poses. render reconstructs represented scenes for inspection and facilitates the generation of relate, which infers task-relevant relationships. plan uses these representations to define action preconditions and state transitions, then searches for an action sequence with concrete placement targets. The functions are generated sequentially by the VLM using the shared scene representation,

1^{1}Department of Aeronautics and Astronautics, Massachusetts Institute of Technology, USA, {ruixiao, yumx35, chuchu}@mit.edu

Figure

Fig. 1: Pipeline of RIVET. The system works under the guidance of an object-centric representation combining metric information from per-object 6D poses and structural information from a relation graph, which specifies the dependency of object arrangement. At Offline stage (A), a VLM uses task examples, object meshes, and available tools to write reusable functions: perceive and relate transform image observations into scene representations, plan generates position-grounded plans to accomplish the task, and render maps the representation back to an image to facilitate the generation of the other functions. At Online stage (B), the offline-generated perceive, relate, and plan functions process a new start-goal instance to generate a grounded, executable plan. The authored functions are reused across instances without instance-specific rewriting.

and each function is provided with the generated code of the earlier functions on which it depends. This helps them maintain consistent meanings for object identities, poses, and relationships. The same VLM and authoring procedure can construct the complete task-specific system across different manipulation domains. Adapting RIVET to a new domain requires only a task description, reference observations, object geometry, camera information, and access to available computational packages; it does not require a human to implement or connect new perception, relation-inference, and planning algorithms. Within each domain, the generated programs are further reused across new initial and goal configurations without another round of VLM generation. Their explicit intermediate representations and planning rules support inspection and programmatic testing. When scene interpretation and planning are fully implemented as local programs, repeated task solving requires no runtime VLM queries.

We evaluate RIVET on three tasks: cube stacking, tangram rearrangement, and three-dimensional assembly. These tasks span different geometric relationships, and planning constraints, allowing us to examine whether the VLM can construct reusable planning systems that solve a range of task instances. In simulation, systems generated by RIVET achieve more reliable task completion than the baselines. By retaining both object poses and task-relevant relationships, the generated systems connect symbolic action sequences to concrete placement targets, supporting more reliable execution when all baselines fail on two sets of tasks. We further demonstrate the approach on a physical robot with all three tasks, where the same generated programs remain effective across different initial and goal configurations within each task domain, and even under a change of camera view.

Our contributions are summarized as follows:

• We introduce RIVET, a representation-guided architecture that connects VLM-generated perception and planning through a shared geometric–relational scene representation.

• We develop an automated authoring procedure that enables the same VLM to instantiate complete executable systems across manipulation domains without manual task-specific programming, and to reuse the generated programs across new configurations within each domain.

• We evaluate RIVET on cube stacking, tangram rearrangement, and three-dimensional assembly in simulation and on a physical robot, demonstrating cross-domain system generation and within-domain program reuse.

References (29)