Research
PhysCaP: Grounding Code-as-Policy Agent with Physics-Informed Exploration
Modern vision-language-action policies learn by imitating demonstrations and mostly observe passively, so they struggle when a task depends on a property that cannot be seen — whether a can is empty…

- arXiv
- 2608.21031 · Preprint · not peer-reviewed
- Published
- 2026-08-21 · revised · 2026-10-05
- Authors
- Chen-Yu Lin, Jing-Wen Chen, Hsueh-En Chang, Hung-An Chen, Sheng-Hsun Chang, Chi-Pin Huang, Fu-En Yang, Min-Hung Chen, Yi-Ting Chen, Yu-Chiang Frank Wang, Shao-Hua Sun
In plain words
Modern vision-language-action policies learn by imitating demonstrations and mostly observe passively, so they struggle when a task depends on a property that cannot be seen — whether a can is empty, whether an avocado is ripe, or which block is heavy and stiff.
AI summary
Overview
Research area: Robotics — agentic robot learning, code-as-policy (CaP) agents, active perception, and physical property estimation for manipulation.
Technical level: Advanced. Familiarity with vision-language-action (VLA) policies, vision-language models (VLMs), code-as-policy architectures, and manipulation evaluation metrics will help, though the core idea is explained accessibly.
Scope (one sentence): The paper proposes PhysCaP, a code-as-policy agent system that adds training-free, proprioception-based modules for measuring object mass and stiffness plus a Planner/Prioritizer pair that decides when and what to physically explore, evaluated on three real-world tabletop tasks and one simulated LIBERO task.
What This Paper Is About
Modern vision-language-action policies learn by imitating demonstrations and mostly observe passively, so they struggle when a task depends on a property that cannot be seen — whether a can is empty, whether an avocado is ripe, or which block is heavy and stiff. The goal of this work is to make information-seeking an explicit part of the robot's decision-making: the agent should recognize what physical quantity is missing, actively measure it by interacting, and then stop exploring once the evidence is sufficient. PhysCaP does this by extending a code-as-policy agent (CaP-Agent0) with measurement modules and two coordinating agents that keep the cost of exploration low.
Key Contributions
- Training-free physical property extraction (PhysX) modules. Two modules,
get_massandget_stiffness, estimate latent object properties from robot proprioception and standard gripper hardware, requiring no additional training, no tactile sensors, and no extra sensing hardware. Mass is computed from differential joint torques during a fixed 15 cm lift; stiffness from gripper force–displacement data via ordinary least squares. - A Planner/Prioritizer multi-agent split for exploration control. The Planner decides when exploration is necessary and when to stop, while the Prioritizer filters implausible or redundant interactions and ranks the remainder by a VLM-assigned heuristic priority score — separating "when to explore" from "what to explore."
- An empirical demonstration that VLMs cannot substitute for measurement. Ablation studies show that progressively adding a reference image, raw joint torque, and object identity does not significantly improve a VLM's mass estimates, motivating dedicated measurement modules.
- Evaluation across real and simulated manipulation tasks. Three real-world tabletop tasks on a 6-DoF AgileX PiPER arm plus a simulated empty-can task in LIBERO, compared against three progressively capable code-as-policy baselines and three VLA policies, with ablations on measurement accuracy and VLM backbone choice.
Main Findings
- Fewest interactions across all real-world tasks. PhysCaP achieved the lowest or tied interaction count on all three tasks: 2.00 objects interacted (OI) on Identify Empty Can, 2.00 on Pick Ripe Avocado, and 5.50 on Pack Grocery Bag, versus 4.00, 4.00, and 9.17 respectively for the CaP+PhysX baseline.
- Shortest execution time on two of three real-world tasks. PhysCaP took 256.57 ± 62 s on Identify Empty Can (versus 222.11 ± 2 s for the PhysCaP-joint variant), 300.47 ± 53 s on Pick Ripe Avocado, and 572.79 ± 61 s on Pack Grocery Bag. On Pack Grocery Bag the exhaustive baseline took 1019.32 ± 376 s.
- Vision-only baselines fail under hidden properties. The plain CaP baseline performs poorly because it lacks access to hidden physical properties; success rates for the real-world tasks are shown in Figure 5(a) rather than stated numerically in the text.
- Stopping alone is not enough. Adding only a Planner reduced interactions on some tasks (3.75 on Empty Can, 7.80 on Grocery) but did not consistently improve efficiency, and on Pick Ripe Avocado it slightly increased OI to 4.13 and time to 563.29 ± 76 s, because interactions remained unprioritized and localization ambiguity could trigger redundant measurements.
- Joint single-call reasoning is inconsistent. The PhysCaP-joint variant, where one VLM call decides both when to stop and what to inspect, was more efficient than the Planner alone (2.00 OI on Empty Can, 2.71 on Avocado, 6.50 on Grocery) but behaved inconsistently across trials, sometimes relying on visual cues and otherwise exploring nearly exhaustively.
- Simulation results mirror real-world trends. In LIBERO's Identify Empty Can task, PhysCaP reached 78% success rate with 1.44 OI and 71.24 ± 18.63 s, versus 74% / 2.16 / 70.81 ± 32.50 s for CaP+PhysX and 62% / 1.45 / 79.55 ± 44.49 s for CaP+PhysX+Planner.
- VLA policies largely fail on the simulated task. OpenVLA achieved 0% success, π0.5 achieved 4%, and MolmoAct2 achieved 23%. OI and Time are reported only for successful episodes across 50 trials, so they are undefined for OpenVLA.
- VLM mass estimates are too coarse to be useful. With an image alone, VLM mass MAE was 151.5 ± 182.5 g (n = 755); adding torque gave 193.0 ± 189.7 g, object identity 217.4 ± 155.8 g, and both 134.5 ± 148.4 g, with no significant improvement over the image alone (t = 0.93). In contrast, the PhysX mass module achieved 38.1 ± 26.0 g MAE across five reference objects spanning 13 g to 963 g (n = 250 in the text; Figure 7's label states n = 256), outperforming the best VLM condition (t = 5.6). The empty and lightest full can in Task 1 differ by 193 g, so VLM-level errors make identification unreliable.
- Stiffness levels separate cleanly. Using a calibrated 3D-printed button with interchangeable springs of known stiffness (k = 420 N/m each) to define four boundaries and five levels from Ultra-Soft (1) to Rigid (5), squeezing three avocados 50 times each placed the ripe avocado at Level 2 and the unripe ones at Levels 4 and 5, with no overlap between ripe and unripe measurements — a single squeeze suffices.
- Efficiency gains come from the architecture, not the backbone. With Gemini 3.1 Pro, Claude Fable 5, and GPT-6 Astra as backbones for the Planner, Prioritizer, and coding agent, all configurations reached 100% success on Identify Empty Can, and PhysCaP consistently used fewer interactions and less time than CaP+PhysX. Gemini 3.1 Pro achieved OI 2.0, compared with 4.1 and 3.3 for CaP+PhysX using GPT-6 Astra and Claude Fable 5.
- No penalty on vision-only tasks. On an added Find Blue Cube task — solvable by geometric reasoning alone, where one of three cups is too small to hide the cube — PhysCaP performed on par with vision-only baselines, ruling out infeasible cups instead of measuring unnecessarily.
Methodology in Plain English
The system starts from an existing code-as-policy agent that writes and executes robot programs using modular APIs (get_object_pose, goto_pose, open_gripper, close_gripper). Object localization uses Molmo2 for 2D pointing, back-projected through a ZED 2i depth map into 3D world coordinates.
Two new measurement "tools" are added to that API surface:
- Weighing an object (
get_mass). The robot lifts the object a fixed 15 cm, pausing briefly to reduce vibration, and records joint torques both with an empty gripper and while holding the object. Subtracting the two isolates the object's gravity contribution, and a formula using the vertically projected end-effector Jacobian and g = 9.8 m/s² converts that into a mass estimate. Because it uses the Jacobian rather than a fixed direction, it is robust to how the object sits in the gripper. - Squeezing an object (
get_stiffness). The gripper closes incrementally until contact, then briefly backs off; a drop in force on reopening confirms contact and records a reference displacement. It then closes to a target force while logging displacement–force pairs, fits stiffness as force change over displacement in N/m by least squares, and maps the result to one of five levels. Each object is measured five times and the majority level is used.
Above these tools sit two reasoning agents. The Planner looks at the scene and the task, decides whether the visible information is enough, identifies which physical quantity is missing, and proposes candidate interactions — and crucially decides when to stop exploring and hand off to code generation. The Prioritizer then cleans up the Planner's candidate list: it discards implausible or redundant interactions (for example, ignoring visibly unopened cans when only open ones can be empty) and ranks the rest with a priority score plus a short justification. Measurements update the agent's belief about the scene, which feeds back into the Planner for another round if needed.
Evaluation uses 10 trials per real-world task and three metrics: success rate, objects interacted (counting repeat interactions with the same object), and total execution time, with the latter two reported only for successful episodes. All baselines share the same backbone for fairness, and the simulated task enforces genuine physical exploration by revealing mass only after a verified grasp of at least 0.5 s and a 3 cm lift held for 0.5 s.
Why This Matters
Impact on research. The paper makes a clean argument that the bottleneck for physically grounded manipulation is not missing information in the VLM's input but the VLM's inability to convert physical measurements into accurate quantitative estimates — even raw torque readings did not help significantly. It also shows that separating "when to stop" from "what to inspect next" across two agents beats merging them into one prompt, which is a useful design lesson for agentic robotics generally. The measurement modules are training-free and hardware-light, so they can be bolted onto existing code-as-policy stacks without retraining.
Real-world applications:
- Recycling and waste sorting: determining whether containers are empty before sorting or disposal.
- Produce handling and quality grading: distinguishing ripe from unripe fruit by stiffness rather than skin color alone.
- Warehouse pick-and-pack: selecting heavy, rigid items as a stable base for a grocery or shipping bag.
- Table clearing and household tidying: lifting or shaking containers to infer contents, as in the paper's motivating example of checking whether cans are empty.
Industry relevance. The approach targets settings where dedicated tactile sensing or per-task retraining is impractical and where every extra interaction costs cycle time — logistics, food processing, and service robotics. The robustness check across three commercial VLM backbones (Gemini 3.1 Pro, Claude Fable 5, GPT-6 Astra) matters for deployment, since it indicates the architecture's efficiency advantage is not tied to one vendor's model.
Future Directions
- Extending the property library beyond mass and stiffness. The current implementation covers only two quantities; friction, center of mass, or fill level would broaden the class of tasks the agent can ground.
- Improving perception and 3D precision. The authors identify 2D localization mapped onto single-camera depth, commercial VLM API variability, and communication latency with the PiPER arm as the main limitations affecting end-effector precision, reasoning consistency, and trajectory execution.
- Making the Planner and Prioritizer more consistent. The PhysCaP-joint variant applied its own heuristics inconsistently across trials; understanding when a single joint call suffices versus when role separation is required remains open.
- Scaling to longer horizons and more objects. Pack Grocery Bag, the longest-horizon task, is where the exhaustive baseline lost track of prior measurements and needed remeasurement or failed, suggesting state tracking across many measurements is a live issue.
Target Audience
Robotics researchers and graduate students working on manipulation, agentic robot learning, and active perception; engineers building code-as-policy or VLM-driven robot stacks who need physical grounding without new sensors; and practitioners in warehouse automation or food handling evaluating whether explicit information-seeking beats end-to-end VLA policies in settings with hidden object properties.
Authors’ abstract
We present PhysCaP, a Physics-Informed Code-as-Policy agent system for active perception in robotic manipulation. While vision-language-action policies excel at imitating demonstrations, they rely on passive observation and fail to infer latent physical properties critical for manipulation. PhysCaP augments code-as-policy frameworks with a physics-informed exploration layer that enables explicit information-seeking through interaction. Our method introduces training-free…
The full abstract on arXivRelated papers
- ThinkWorld: World Imagination Reinforces Chain-of-Dynamics Reasoning 2026-10-27 · cs.RO · Also by Chi-Pin Huang, Fu-En Yang +2
- MAWAM: A Multi-Agent World-Action Model for Coordinated Manipulation 2026-11-18 · cs.RO · Also by Chi-Pin Huang, Fu-En Yang +1
- AquaCap: A Training-Free Underwater Embodied Agent with Code-as-Policy 2026-09-19 · cs.RO · Key terms of the title in common
- CodeActionBench: Evaluating Agentic Code-as-Policy for Embodied Manipulation 2026-09-27 · cs.RO · Key terms of the title in common
- Beyond the Current Scene: Event-Referential Grasping with Active View Selection 2026-09-30 · cs.RO · Also by Yu-Chiang Frank Wang