Shanghai Jiao Tong University and Xiaomi Introduce COMPASS to Bridge Large Model Planning and Robotic Arm Execution

Shanghai Jiao Tong University and Xiaomi have introduced COMPASS, a framework that compiles large model plans into computable task fields to guide robotic arm execution. This approach improves real-robot task success by correcting actions in real time, avoiding the target errors of text-only visuomotor policies and the latency of step-by-step vision-language model checks.

Once the large model determines the operation sequence for the robot, how does the robotic arm execute each step according to plan?

Relying solely on text instructions to guide a visuomotor policy can still lead the robotic arm to grasp the wrong target, while having a vision-language model (VLM) verify the process segment by segment slows down the operation.

On November 27, researchers from Shanghai Jiao Tong University and Xiaomi Robotics published COMPASS: Bridging Agentic Reasoning and Dexterous Policies via Compiled Task Fields. They introduced COMPASS, a robotic control framework that bridges vision-language agents and visuomotor policies. The large model plans the task before the robotic arm begins to move, and the system translates this plan into computable constraints to verify actions during execution. Fine motor skills such as grasping, aligning, and inserting remain the responsibility of the underlying visuomotor policy.

The paper's first author is Xiaoshen Han, a Ph.D. student at Shanghai Jiao Tong University and a research intern at Xiaomi Robotics. The co-corresponding authors are Hang Lai from Xiaomi Robotics and Weinan Zhang, a professor at the School of Computer Science at Shanghai Jiao Tong University.

The team tasked a dual-arm robot with four operations: sequential boxing, earphone case matching, quantity-based fruit packing, and puzzle assembly. Both experimental groups for each task used the same motion policy without any further training during testing. The baseline group directly executed the actions generated by the policy, while the COMPASS group verified the robotic arm's actions as it approached the target, correcting any deviations. This approach raised the average success rate across the four tasks from 6.7% to 76.7%.

The same motion policy successfully completed more tasks because it gained a directional reference when reaching out. While the large model can specify "which object to pick up next," how is this instruction translated into a condition the robotic arm can use to evaluate its actions?

Compiling tasks into task fields

COMPASS uses task fields to score candidate actions and shift targets as the task progresses. Translating the large model's judgments into such computational rules is what the authors refer to as "compiling."

To apply these rules to the robotic arms, the first step is to localize objects from the camera feed into the robot's coordinate frame. The team posed the arms in several different configurations, marked visible gripper keypoints in the head camera images, and used the robot's measured poses to compute the transformations between the camera and the bases of the two arms. This calibration is performed once per robot, so rearranging the desktop setup does not require recalibration.

The system also prepares a reusable skill document for each task category. The agent derives stage templates, vocabulary compatible with the motion policy, and completion conditions for each step from the task description, a few demonstrations, and brief real-robot exploration. In a box-packing task, for instance, the sequence "pick up the object, confirm a secure grasp, place it in the bin" is reusable, whereas the specific target object and the bin's location must be re-determined from the initial camera frame.

Upon receiving a new instruction, the agent first sequences the stages and generates a short prompt for each stage that aligns with the motion policy's training format. It then performs instance binding, mapping the names or descriptions in the instruction to specific physical objects in the scene. Even if two pairs of earbuds are similar in color, the system must first identify which pair belongs to which box before deciding which one the gripper should reach for.

The real-robot experiments rely exclusively on RGB camera feeds. The agent first identifies objects, components, and containers in the initial frame from the head camera, and SAM 3 segments the corresponding pixel regions. Depth Anything 3 then estimates depth from the single color image, assigning a distance to the camera for each of these pixels.

Monocular depth provides the system with the distance from the object to the camera, while camera calibration transforms this position into the robotic arm's coordinate frame. Together, they supply the task field with the 3D positions required to score actions. This geometric information is sufficient to guide the robotic arm toward the target, while the final alignment and contact are left to the motion policy to adjust based on new camera frames.

Following compilation, the system projects these 3D targets and constraints back onto the original image from the head camera. Before the robotic arm moves, the agent can verify whether the target was mistakenly assigned to a nearby object or whether the planned approach direction would result in a collision.

Figure | Left: Compiling the task field; Right: Checking actions and updating progress

The 3D positions derived from compilation cannot directly answer whether a specific action should be executed. Instead, the task field uses a scalar potential to convert the gripper's position, orientation, and opening width into a single score. The closer the gripper state aligns with the current stage's requirements, the lower the potential value typically is; deviating from the approach direction or moving closer to an obstacle increases the potential value. This metric evaluates whether an action satisfies the constraints, rather than representing the probability of task success.

The potential function incorporates up to five types of constraints: approaching the target, maintaining clearance from obstacles, avoiding non-target objects, adjusting pose, and adjusting gripper opening. The two avoidance requirements also differ: physical clearance must be maintained from table and container edges; for visually similar earbuds, getting too close might lead to a misgrasp even if they do not block the path.

For the latter, the system only establishes a local region of high potential around the distractor. Once the gripper leaves this region, the distractor no longer affects the action score. The agent also dynamically enables or disables these constraints based on the task phase; for example, after the correct object is grasped, the similar earbud nearby no longer needs to constrain the gripper's path.

These constraints can be adjusted as the task progresses. A task ledger records the pending targets, the required quantity for each object category, the completed count, and the remaining retry attempts. Taking count-based bagging as an example, an item is only counted after its release is confirmed; once enough fruits of a certain category are bagged, the remaining fruits of that same category transition from candidate targets to objects to avoid.

As the task advances to the next step, the constraints the robotic arm must follow also change. Once the policy proposes the next action segment, the system evaluates it against the current step's requirements.

Segment-by-segment correction and close-range handover

The robotic arm executes only a short motion segment at a time. The visuomotor policy generates this motion segment based on camera feeds and measured states, and the potential field checks it before execution.

The continuous actions predicted by the policy in a single step are called an action chunk. On this platform, each chunk spans approximately one second; the system executes part or all of it, then generates a new prediction based on fresh images from the head camera and the two wrist cameras, along with the robotic arm's state. The potential field checks the actions of the two robotic arms separately, without combining their potential values into a single total score; bimanual coordination tasks such as holding a bag open and depositing items are still generated by the policy.

When the gripper is not yet near the target, the potential field first compares the potential values at the start and end of the action chunk. As long as the endpoint potential value does not exceed the starting value beyond an allowable threshold, it passes this check. This allows the robotic arm to lift upward before approaching, without needing to move directly toward the target at every frame.

Although the endpoint is valid, the trajectory might pass near a puzzle piece that is easy to grasp by mistake. To prevent this, the system densely samples the trajectory to check whether the motion penetrates a non-target region. If the gripper starts within this region, any candidate motion must at least move it outward rather than deeper. The original motion segment is retained only if it passes the checks for the start point, endpoint, and intermediate path.

If the check fails, the potential field generates an alternative motion. It employs bounded gradient descent, starting from the measured gripper state to adjust position, orientation, and aperture in the direction of decreasing potential, while constraining the maximum change per motion segment. If a single adjustment step is too large, the system reduces the step size and tries again.

Sometimes, descending directly toward the target causes the arm to get stuck in an interference region. To resolve this, the system sets a temporary waypoint outside the region, guiding the robotic arm to bypass the obstacle from above or the side before returning to the original target. These calculations are performed in real time during execution, eliminating the need for the large model to re-evaluate each segment.

Figure | Puzzle experiment: the red line points to the interfering puzzle piece, and the blue line points to the target piece

The potential field guides the gripper to the vicinity of the target, at which point the system switches back to the original policy upon object contact. The system defines a policy workspace around the target, with boundaries that account for perception errors. Once inside this workspace, the policy determines how the robotic arm fine-tunes its pose, closes the gripper, or inserts the object into a slot, all based on camera feedback.

The potential field continues to monitor boundaries within this area. For minor boundary violations, the system nudges the motion back into the workspace; for significant deviations, it defers to the policy to generate a new action. This approach preserves the original fine-grained movements while preventing the gripper from leaving the designated operational range.

After handing control back to the policy, the system must still determine when to transition to the next step. Transition predicates rely on measurable feedback: for instance, confirming that the gripper is closed and the object is briefly lifted during a grasp, or that the gripper opens within a designated area during placement. When target identification is required, the system also processes feeds from the wrist or head cameras.

Reaching a predetermined position does not equate to task completion. If the evidence is insufficient, the system will not mark the current step as successful. Upon detecting a failed grasp, an incorrect grasp, or a timeout, it can retreat to the pre-grasp position and retry until the task is completed or the maximum number of retries is exhausted.

A potential field can continuously correct the trajectory as the robotic arm approaches its target. How much difference would it make if the arm were only instructed where to go at the start of each step?

The Same Plan, Three Handoff Methods

The team kept the planning and action policies fixed across two real-robot tasks—boxing and fruit loading—and only varied how the plan was handed off.

Text subgoals are updated only at phase transitions, with the policy's generated actions executed directly. Waypoints provide the robotic arm with an intermediate position to reach first and hand control back to the policy once the arm is near the target. In contrast, a task potential field continuously evaluates actions throughout the approach to the target.

The fruit-loading task best illustrates the differences among the three handoff methods. One robotic arm holds open a deep bag while the other must load a specified number of fruits and vegetables according to the instructions. Once an object falls into the bag, it disappears from the three-camera view; the newly emptied space in front of the arm cannot directly inform the policy of how many items have been loaded.

The task ledger updates its count only after a release is confirmed. Once a specific type of fruit reaches its quota, the potential field adds the remaining items of that type to an avoidance zone. Consequently, "already loaded enough" acts as more than just a task log entry; it actively restricts the set of executable actions the next time the arm reaches out.

Across 15 identical fruit-loading setups, the text subgoal method never completed the full task, the waypoint approach succeeded 4 times, and the task potential field succeeded 12 times. During sequential boxing, the performance gap between the waypoint and potential field methods was much smaller: as long as the arm reached the correct object first, the original policy could execute many pick-and-place actions. For fruit loading, however, even if the previous grasp was correct, the choice of the next target still depends on what is already inside the bag.

Figure | Real-robot performance of the three handoff methods under the same plan

These two comparisons address the question of "how to hand off the plan." The main evaluation also added earphone case packing and puzzle assembly to check whether the same method can handle similar objects and spatial combinations. The team used two ARX X5 robot arms, parallel grippers, and three cameras. π₀.₅ was used for box packing and fruit packing, while XR1 was used for earphone case packing and puzzle assembly; both policies were post-trained with teleoperation demonstrations for their respective tasks and kept frozen during testing.

Figure | Four dual-arm real-robot tasks: box packing, earphone case packing, fruit packing, and puzzle assembly

Each task used 15 setups, with one trial per setup. The tests included both seen and unseen target combinations, and varied the desktop conditions across different stations. Metrics were recorded separately: the number of correct sub-steps completed was counted as task completion progress, and achieving all sub-goals was required for the entire round to be considered a success. Each round also had a 20-minute time limit; placing an earphone in the wrong case or putting an extra fruit in the bag would terminate the trial.

Across all four tasks, the baseline policy fully completed 4 trials, while COMPASS completed 46, with each group running 60 trials in total. In the puzzle task, the baseline policy often tried to fit together puzzle pieces that could not be joined; after adding the potential field, the robot arm selected components that could be joined with the reference piece at each stage, succeeding in 11 out of 15 trials.

Earphone case packing tests another type of deviation: the robot arm has already been guided near the correct target, but it may still reach for an adjacent earphone of the same color. Handing off waypoints only once per stage resulted in 1 success out of 15 trials; switching to a task potential field that continuously checks actions resulted in 11 successes.

In this set of trials, the potential field intercepted 62 motion segments directed toward another set of earphones of the same color. Fruit packing tests the ability to remember what has already been packed, while earphone case packing highlights another distinction: even when a target is specified, the robot arm must not be distracted by similar objects during the reaching process.

Figure | Number of successes and average completion progress across the four real-robot tasks

The task potential field can guide the gripper toward the correct object. Once near the target, whether it can grasp securely, align accurately, and place it properly still depends on the action policy itself.

Planning and manipulation

With the handoff mechanism fixed, the team repeated the fruit packing and earphone boxing tasks, this time varying only the action policy. Each policy was post-trained using the same task demonstrations. During evaluation, the team kept the same agent and the same compiled task potential field.

In the fruit packing task, π₀ paired with COMPASS achieved 7 successes, whereas switching to either π₀.₅ or XR1 yielded 12 successes. Earphone boxing is more sensitive to the end-effector pose: during fruit packing, the gripper can approach the object from various directions, but earphones must be inserted into a narrow slot at the precise angle. For this latter task, only XR1 paired with COMPASS achieved more than one success.

Figure | Comparing different action policies with a fixed task potential field

When paired with the same potential field, ACT failed both tasks. Failures occurred primarily during grasping and insertion—precisely after the potential field handed over fine manipulation to the policy. The team notes that XR1 underwent more extensive pre-training on similar robotic hardware and control configurations, which may explain its superior performance in earphone boxing. The potential field can correct where the robotic arm reaches, but it cannot execute the gripper's contact actions on behalf of the policy.

Conversely, even with a highly capable action policy, the task plan can still fail. The team kept XR1 fixed and only swapped the large model responsible for compiling the potential field. Some models consistently generated correctly formatted potential fields but mislabeled positions or mismatched the earphones and boxes. During the insertion phase, even a minor upstream positioning error could cause the entire task to fail.

Removing the large model from the execution loop also shifts a portion of the workload to before physical execution begins. When using the default GPT-6-Astra for earphone boxing, the process from the robotic arm returning to its initial pose to completing perception, model invocation, and visual verification took an average of approximately 339 seconds. This duration is excluded from the subsequent robotic arm execution time. Furthermore, if the objects in the scene undergo significant displacement, the potential field must be recompiled.

In contrast, the online baseline waits for the large model's judgment during each motion segment. In the fruit packing task alone, a single invocation takes about 25 seconds; within the original 20-minute time limit, its task progress reaches only 4%. By pre-compiling these judgments, the robotic arm no longer needs to repeatedly wait for responses during operation.

However, eliminating wait times during execution does not guarantee shorter overall episode durations. In the fruit-loading task, incorporating a potential field and a baseline strategy took an average of 17.7 seconds and 18.3 seconds per subgoal, respectively—figures that are quite close. Although COMPASS completed more subgoals, its total episode time was actually longer. Comparing the speeds of these two approaches requires decoupling the pre-execution preparation time, the time required to complete each individual step, and the overall task completion progress.

The large model completes its reasoning before the robotic arm begins moving. Once manipulation starts, the task potential field continuously evaluates actions based on feedback, updating the goal for the next step only after confirming that the current step is complete.

As a result, the large model only needs to plan once prior to execution. The robotic arm can then correct deviating actions according to the plan as it approaches the target, eliminating the need to stop and wait for the large model to re-evaluate.