Lightweight Perception Distillation and Hierarchical Agent Caching for Budget-Efficient Dexterous Program Synthesis
Replace heavy test-time foundation segmentation with distilled lightweight vision modules and use hierarchical agent caching to cut coding-agent synthesis costs.
Time
Compute level
Resources
What the paper used
Prerequisites
Scope
The Gap
Appendix A and Appendix C report that developing PyRUA-Dex across 26 Bench2Dex tasks required 18.3B tokens of GPT-6 Astra (median 641M tokens and 36.4 agent hours per task) on B200 GPU nodes where every simulator shares a GPU with a SAM 3 worker. Although frozen programs make zero LLM calls at test time, they still depend on SAM 3 for object segmentation inside codebox.segment, imposing high test-time GPU memory overhead and fragility under viewpoint randomization (such as DexJoCo Click mouse dropping to 0.0% without a fixed-camera fallback).
“Exploration ran 208 agent sessions, 11.7B tokens and 615 agent hours over the 26 tasks, a median of 427M tokens and 21.6 agent hours per task.”
Limitation
Program synthesis incurs prohibitive frontier-model token costs, while deployed frozen programs remain dependent on heavyweight foundation segmentation inference with brittle multi-camera fallback behavior.
Proposed Solution
During Stage 2 refinement, harvest RGB-D frames and SAM 3 pseudo-labels generated across successful randomized rollouts to distill a compact, task-specific segmentation and 3D keypoint network (such as a MobileSAM or lightweight ViT-tiny head) with learned multi-view confidence weighting, replacing SAM 3 in the deployed codebox. Simultaneously, introduce a two-tier coding-agent router during exploration and refinement that delegates syntax fixes, replay parsing, and routine primitive edits to a smaller open-weight coding model while reserving frontier reasoning models exclusively for high-level bottleneck planning.
Why This Matters
Expected to significantly reduce test-time compute footprint and inference latency for edge deployment while lowering per-task development token costs without degrading benchmark robustness.
How to Get Started
How to test it: Test the hypothesis that distilled per-task vision detectors and two-tier agent routing match the 72.9 Bench2Dex Score and 81.0% DexJoCo rand-full success rate while cutting test-time perception VRAM by at least 5x and development frontier tokens by 50%; stop if distilled vision degrades Bench2Dex four-channel SR by more than 3 points.
- Profile the VRAM consumption and per-frame latency of SAM 3 inside codebox.segment on five representative Bench2Dex tasks and DexJoCo Click mouse.
- Log camera observations and SAM 3 masks from Stage 2 validation rollouts to train a compact student segmentation and keypoint network per task with multi-camera confidence fusion.
- Substitute the distilled student model into the frozen codebox runner and benchmark four-channel SR on Bench2Dex and rand-full SR on DexJoCo.
- Implement a hierarchical two-tier LLM router in the Codex CLI harness for Stage 2 refinement and compare total token cost and Bench2Dex Score against Table 4.
Suggested by AI. Adapt it to your setup.
Has This Been Done?
The provided literature covers knowledge distillation and agent surveys [7, 8], but none of the listed papers address the specific distillation of SAM 3 pseudo-labels into a lightweight ViT-tiny head combined with a hierarchical coding-agent router for dexterous program synthesis.
- Adaptive and Resource-efficient Agentic AI Systems for Mobile and Embedded Devices: A Survey · 2025 · 8 citations
- Adaptation of Agentic AI: A Survey of Post-Training, Memory, and Skills · 2025 · 56 citations
We searched OpenAlex and arXiv for “perception distillation token efficient LLM robot synthesis” and “Lightweight Perception Distillation and Hierarchical Agent Caching for Budget-Efficient Dexterous Program Synthesis” and an AI compared the idea with the top 10 results. A small search can miss relevant work.
Source Paper
PyRUA-Dex: Learning Programmatic Policies for Dexterous Bimanual Manipulation with Coding AgentsFeixiang Ruan, Guodong Lv, Kewei Zhang +17 more · 2026
PyRUA-Dex introduces a demonstration-free framework in which coding agents synthesize and iteratively refine Python programmatic policies for dexterous bimanual manipulation in simulation, achieving state-of-the-art performance on Bench2Dex (72.9 score) and DexJoCo (81.0% full-randomization success). At test time, the resulting frozen programs run at the robot control rate with zero language-model calls, and transfer to a physical bimanual 22-DoF platform via calibrated real-to-sim-to-real refinement rounds.
Related Ideas
- Physically Simulated Continuous-Time Web Environments for Spatiotemporal GeneralizationTuringSpace: Grounding Spatial Intelligence in Action with Interactive CAPTCHAs🔴Hard
- Trajectory Distillation of Closed-Loop VLM 3D Part Refinement AgentsPartAgent: Agentic 3D Part Segmentation via Expert Integration and Closed-Loop Refinement🟠Medium
- Decoupled 4D Perception-to-Code Pipeline Using Geometric and Body Reconstruction PriorsVibePrevisBench: Evaluating Agentic Coding for 4D Scene Generation in Blender🔴Hard
- DAgger Distillation and State-Grounded Rationale Synthesis for Privileged-Teacher TransferGame2Player: Scaling Gameplay Experience for Visual Agents through Environment-Player Co-Development🟠Medium
- Joint Vision-Language Adaptation with Auxiliary 3D Geometric Supervision for Spatial GUI AgentsTuringSpace: Grounding Spatial Intelligence in Action with Interactive CAPTCHAs🟠Medium