Building a 250M-Grasp Data Flywheel: PPO Reward Shaping & Tiny-Object Synthesis
Why data quality beat parameter count in dexterous manipulation—and the two engines (reward-shaped PPO + 0-to-1 antipodal/cuRobo) we scaled across 280 GPUs.
Under behavior cloning for cross-embodiment manipulation, making the model bigger barely moved real-world success; fixing what the training data actually teaches did. I inherited and upgraded our Isaac Gym PPO grasp pipeline via friction-cone reward shaping (cutting convergence from >10M to ~3M steps and lifting hard pairs from <0.2 to >0.5), built a 0-to-1 analytic antipodal/tripod + batched cuRobo pipeline for cm-scale tiny objects (10.63M+ Isaac SimFilter grasps down to 1 cm³), and orchestrated both across a fault-tolerant 35-node / 280-GPU cluster (250.2M+ samples).
Five-Stage Closed-Loop Data Flywheel
Real-robot and simulation failure audits drive targeted RL and analytic generation rather than blind dataset scaling.
Per-hand, scale, and grasp-taxonomy audits from sim + real rollouts.
Hold-stability × friction-cone antipodal rewards (~3M steps, 3× faster).
12k contacts → batched cuRobo IK → Isaac SimFilter (10.63M+ grasps, ≥1 cm³).
Atomic mkdir claims, heartbeats, content-verified completion across 35 nodes.
What Broke When Scaling Inherited PPO to Five New Hands
We inherited an Isaac Gym floating-hand PPO pipeline (2,048 parallel environments per GPU, one policy per hand × object shard) built around a two-phase baseline reward: dense distance progress minus a joint-prior penalty during approach (t < Tg), followed by a residual distance penalty plus a terminal bonus during grasp (t >= Tg).
Bringing five new hands into production (right_hand_xg, finger_eyes, Wuji, XHand Pro, and xhand_3eye) exposed three distinct failure modes that quietly corrupted both cluster throughput and dataset contact fidelity.
- 1. Physics blow-ups poisoned vectorized PPO batches (51.7% collapse): Auditing 123.96M raw grasps traced mid-run collapse to asset defects—faulty index-rotation limits, zeroed effort/velocity limits (
0 → 1.1 / 8.63), and out-of-range prior poses. When even a few of the 2,048 parallel envs exploded, extreme returns corrupted advantage normalization across the entire batch. - 2. Loose wraps & the "coupled-but-not-pinched" reward hack: Baseline distance rewards rewarded hovering near the surface without firm enclosure. Adding a naive hold-stability bonus created a classic RL exploit: keeping the object moving with the palm via light friction or wedging without genuinely opposing finger forces.
- 3. Precision tasks flatlining under shared power priors: On Wuji, power tokens climbed to
0.37–0.46within ~2M steps while precision tokens flatlined at0.001–0.018after ~14M steps—power wraps and fingertip pinches have incompatible kinematic priors and contact geometry.
Friction-Cone Antipodal Shaping, Multiplicative Gates, and 3× Faster Convergence
First, we cleaned parallel training: clamping every URDF and prior limit, fixing async reset and perturbation-force bugs, and adding explicit crash detection with a −2.0 terminal penalty and immediate reset so physics blow-ups never poison healthy rollouts. Next, we redesigned the reward structure from first principles of grasp mechanics:
- Separated power vs. precision priors & strict gates: Each embodiment received tuned enveloping vs. precision-claw
PRIOR_HAND_JOINT_VALS, YAML-exposed side-grasp initialization, and a dedicatedmetrics/strict_success_rateexport gate requiring verified antipodal stability. - Measured impact: PPO convergence dropped from >10M to ~3M steps (revised power tokens hitting
0.35–0.45by ~2M vs.<0.08through 13M previously), and hard hand–object precision runs climbed from <0.2 to >0.5 (0.37–0.51steady /~0.55peak on XHand Pro precision shards in under 50 minutes).
Why PPO Fails at 1 cm³—and How Analytic Antipodal + cuRobo Solved It
Even after fixing PPO, reinforcement learning remained fundamentally ill-suited to centimeter-scale objects down to ~1 × 1 × 1 cm³. When the entire target object is smaller than a single fingertip phalanx, stochastic RL exploration almost never discovers delicate two-finger pinches or three-finger tripods without bumping the table or flicking the object away.
Rather than fighting reward sparsity at millimeter tolerances, I built an end-to-end analytic grasp synthesis pipeline from scratch covering 5+ end-effector embodiments (XHand, XHand Pro, LEAP Hand, xHand-3eye, xArm Gripper, plus Wuji). The pipeline produced 10.63M+ Isaac SimFilter-verified grasps so the downstream diffusion policy could acquire cm-scale precision grasping via imitation.
- Stage 1–2 · Stable Poses & NNLS Friction-Cone Contacts: Drop meshes into self-stable tabletop poses in Isaac, sample 12,000 surface points above a
0.7 mmtable floor, and solve a regularized non-negative least-squares wrench problem (scipy.optimize.nnls) verifying that 2-finger antipodal or 3-finger tripod forces balance gravity. - Stage 3–4 · Never Trust feasible=True Alone + Sphere Sculpting: Early cuRobo runs reported
feasible=Truealongside 12.3 mm fingertip errors because default collision spheres blocked fingertips from touching 1 cm meshes. Sculpting a dense 117-sphere model (dual fingertip guards atr=5.2/8.0 mm,+0.9 mmfinger expansion) and selectively pruning 4–9 contact-zone spheres turned12.3 mmfailure into0.0000–0.0002 mmpinch accuracy on the exact same object. - Stage 5 · Unblocking 93% GPU Idle & Isaac SimFilter Export: Profiling 127 live GPU slots revealed serial cuRobo took 85–91% of wall time while GPUs sat 93% idle under 11.4M CPU ctx-switches/s. Replacing the loop with dual-stage batched cuRobo IK + recursive OOM chunk-splitting and thread-capped workers unlocked cluster throughput before Isaac SimFilter physics validation and
.pth/Zarr export.
Orchestrating 35 Nodes / 280 GPUs Without Silent Failures
Running both RL synthesis (plus Stage 1–3 tabletop/shelf/box scene filtering) and tiny-object generation across 35 nodes / 280 GPUs (224× A100 + 56× A800) meant dealing with silent exits, 12-hour wedged Isaac Gym PIDs, and cross-node JIT compilation races.
I built a zero-dependency shared-filesystem queue scheduler (todo / claimed / done / failed) using atomic mkdir task claiming, content-verified FINAL META completion (never trusting exit code 0 alone), background heartbeats + stale-claim reclamation, --per-gpu N worker packing, node-local gymtorch JIT caches, and audited lifecycle cleanup that purged 41.57 TiB / 781,112 Stage 1–3 intermediates with zero residual.
Production Data Flywheel Quantitative Summary
| Track / Subsystem | Before / Baseline | Shipped Production Result |
|---|---|---|
| Track 1 · Isaac Gym PPO | >10M steps (<0.08 @ 13M) · 51.7% Batch 1 collapse · <0.2 hard pairs | ~3M steps (3× faster) · −2.0 crash reset · >0.5 hard precision pairs (0.37–0.55) |
| Track 2 · 0-to-1 Tiny Pipeline | PPO unable to synthesize cm-scale pinches · 12.3 mm IK · 93% GPU idle | 10.63M+ Isaac SimFilter grasps (5+ hands, ≥1 cm³) · 0.0000–0.0002 mm IK · batched cuRobo |
| Backbone · 280-GPU Cluster | Manual single-node scripts · wedged PIDs · cross-node JIT races | 35 nodes / 280 GPUs · 250.2M+ samples · 46,532/46,532 Stage-3 tasks · 41.57 TiB purged |