PhysCaP: Grounding Code-as-Policy Agent with Physics-Informed Exploration

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 SunarXiv 2026

TL;DR

PhysCaP introduces a physics-informed active perception framework that empowers Code-as-Policy (CaP) robotic agents to interactively infer hidden physical properties like mass and stiffness using only standard robot proprioception. By employing a dual-agent architecture—a Planner to identify missing information and a Prioritizer to rank interactions using visual heuristics—PhysCaP achieves high task success rates with significantly fewer physical interactions and reduced execution time compared to naive baselines.

What Problem Does This Paper Address?

Modern vision-language-action (VLA) policies and Code-as-Policy (CaP) frameworks excel at imitating demonstrations and performing semantic reasoning. However, they are fundamentally limited by passive perception. They assume all task-relevant information is visually accessible.

In the real world, critical object properties are often latent or hidden—such as whether a soda can is empty or full, or whether an avocado is ripe or rock-hard. Monolithic VLA models cannot explicitly reason about what information is missing or how to actively acquire it. While reinforcement learning can discover information-seeking behaviors, it is notoriously sample-inefficient and hard to interpret. This paper tackles the challenge of enabling structured, efficient, and sensor-free active physical exploration in LLM-driven robotic agents.

Methods

PhysCaP augments existing CaP frameworks with a physics-informed exploration layer consisting of two primary components:

  1. Physical Property Extraction (PhysX) Modules: Training-free, sensor-free routines that leverage standard robot proprioception:
  2. Object Mass Measurement (get_mass): Infers mass by executing a fixed lift trajectory and measuring differential joint torques ($\Delta\tau = \tau_{\text{loaded}} - \tau_{\text{empty}}$) projected onto the end-effector Jacobian.
  3. Object Stiffness Measurement (get_stiffness): Quantifies rigidity via a two-phase controlled squeeze routine. It utilizes a brief "backoff" test to isolate true contact from internal mechanical gripper friction, measuring jaw displacement against motor effort.
  4. Dual-Agent Exploration Architecture:
  5. The Planner: Evaluates whether current visual observations are sufficient to complete the task. If information is missing, it generates a JSON-formatted list of task-relevant exploration candidates and acts as a dynamic stopping criterion once enough data is gathered.
  6. The Prioritizer: Optimizes exploration efficiency. It uses visual heuristics to filter out implausible actions (e.g., ignoring sealed cans when looking for an empty one) and assigns a priority score to rank the remaining candidates.

An downstream Coding Agent then translates the prioritized plan into executable Python code that invokes the low-level control APIs and PhysX modules.

PhysCaP Architecture Overview

Datasets

The framework was evaluated across three custom real-world tabletop manipulation tasks using a 7-DoF AgileX PiPER robot arm, alongside a simulated environment:

  • Task 1: Find Blue Cube: Locating a hidden cube under cups of varying sizes (testing geometric reasoning).
  • Task 2: Identify Empty Can: Finding a single empty can among four candidates, where some are sealed and some have straws (testing semantic priors + mass estimation).
  • Task 3: Pick Ripe Avocado: Selecting a ripe avocado based on color cues and stiffness.
  • Simulation (LIBERO Benchmark): A replicated version of the empty can task implemented within the LIBERO simulation environment to benchmark against standard VLA models.

Key Insights and Ideas

  • Decoupling Planning from Prioritization: Merging the Planner and Prioritizer into a single LLM prompt (the PhysCaP-joint baseline) causes the model's reasoning to collapse into unstructured, exhaustive execution plans. Separating them enforces structured, multi-objective reasoning and efficient interaction sequencing.
  • Visual Cues as Hypotheses: Instead of blindly testing every object in a scene, an intelligent agent must use visual heuristics (like the presence of a straw or the size of a container) to form hypotheses before committing to physical measurements.
  • Sensor-Free Physical Grounding: Robust physical property estimation does not strictly require specialized hardware like tactile or force-torque sensors; standard motor current and joint torque feedback are highly reliable when paired with physics-informed differential filtering.
Proprioceptive Mass and Stiffness Accuracy

Key Results

  • Real-World Efficiency: In the Identify Empty Can task, PhysCaP achieved an 8/10 success rate while averaging only 2.5 object interactions, compared to the CaP+PhysX baseline which required an exhaustive 3.9 interactions.
  • Reduced Execution Time: Across all real-world tasks, PhysCaP significantly cut down total robotic execution time (e.g., 300.47 seconds vs 515.61 seconds in the avocado task compared to naive physical exploration) by avoiding unnecessary object contact.
  • VLA Failure in Simulation: When tested in the LIBERO simulation environment, state-of-the-art passive VLAs like OpenVLA (0% success) and $\pi_{0.5}$ (4% success) failed completely because they cannot handle partial observability. In contrast, PhysCaP achieved a 78% success rate.

Limitations and Future Work

The authors note three primary limitations:

  1. API Latency: Relying on commercial VLM APIs (like Gemini) introduces unpredictable latency and reasoning variability. Transitioning to locally hosted open-source models is a key next step.
  2. 2D-to-3D Localization Errors: Object localization depends on 2D pixel predictions mapped to single-camera depth maps, meaning 2D errors directly degrade 3D manipulation precision. Future iterations will explore multi-view or 3D-native models.
  3. Hardware Communication Lags: Latency between the high-level code execution and the low-level PiPER arm controller occasionally caused physical trajectories to diverge from the generated code, highlighting a need for tighter real-time control integration.

Summary updated

BibTeX
@misc{lin2026physcap,
  author = {Chen-Yu Lin and Jing-Wen Chen and Hsueh-En Chang and Hung-An Chen and Sheng-Hsun Chang and Chi-Pin Huang and Fu-En Yang and Min-Hung Chen and Yi-Ting Chen and Yu-Chiang Frank Wang and Shao-Hua Sun},
  title = {{PhysCaP: Grounding Code-as-Policy Agent with Physics-Informed Exploration}},
  year = {2026},
  eprint = {2608.21031},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.21031},
}
Figure