FoldingACT

Teaching two dexterous hands to fold a paper airplane

FoldingACT is an end-to-end visuomotor policy for the IROS 2026 Robotic Origami Challenge. A bimanual robot with two 22-joint Sharpa hands must fold a paper airplane in six folds, from four cameras, ten fingertip tactile sensors and 65 joints of proprioception. I built the whole stack: data pipeline, a multimodal action-chunking transformer, ten trained versions, an Isaac Sim mirror, and a hardened Docker inference service that the organizers ran on their real robot.

Left: a held-out human demonstration. Right: the robot model in Isaac Sim executing what FoldingACT predicts from the left side's cameras, tactile and joint state, re-planned every frame. Played at 4× speed.
65-Djoint targets, 45-step chunks (1.5 s)
849 demos45 h of teleoperation, 398 GB downloaded
10 versionsv1 → v10 in ten weeks on 2× RTX 5070 Ti
0.0100 radmean simulated joint error (v6 mirror)
2 of 6 foldsby v10 at the IROS 2026 venue · 5th place, Team PixelPaper
1 · The task

Six folds, under ten minutes, judged by an origami master

Each attempt starts from a flat 15 × 15 cm sheet. An Origami Grand Master from the Nippon Origami Association judges pass or fail on whether the result is a recognizable plane; faster passes rank higher. Teams don't bring hardware: the organizers run every submission remotely on their own robot. That meant no robot in the loop for development, and evaluation only through a Docker image they execute.

A human-teleoperated demonstration from the training set, head camera, cropped to the workspace. Stage boundaries are my hand labels. They seeded the automatic labelling of all 582 training episodes.

2 · Data

Six synchronized streams, 30 Hz, three-minute episodes

The dataset is a gated LeRobot v3.0 corpus recorded by teleoperation. Every 33 ms it holds four RGB views, two tactile image streams, 10 fingertip 6-axis force/torque readings, 58 joint torques and the 65-D joint state and action. Episodes run 131–314 s (mean 176 s, ~5,300 control steps). That horizon is the main modelling challenge: an action-chunking policy must keep its place over hundreds of chunks.

Data engineering that mattered. I decoded the frames into a 14.8 M-key LMDB (94 GB). That took the loader from 34 to 1,430 samples/s (42×), so training became GPU-bound. Mid-collection the task itself changed (printed guide lines, folding flat on the table instead of in the air). I found the shift and trained only on the 582 post-change episodes. A DTW template transfer from two hand-labelled demos labelled all six fold stages automatically (leave-one-out boundary error 2.6–2.8 s).

SplitSeasonsEpisodesHours
Downloaded (stratified sample)6084945.2
Training regime (post-change)3858228.5
  train / val524 / 58
Competition-paper finetune set (v9+)38610≈25.8
Ten tactile fingertip marker pads in a 2 by 5 grid
The ten fingertip marker pads (tactile_raw), cropped into the tiles fed to the tactile encoder.
3 · Model

FoldingACT: a multimodal action-chunking transformer

Reinforcement learning was ruled out on day one: there is no tractable reward for deformable paper and no task simulator. I chose imitation learning with an ACT-style conditional VAE. Every modality enters one transformer as tokens. The decoder emits 45 future joint targets at once, which smooths the motion and cuts the number of decisions over a three-minute task.

ComponentDesignWhy
VisionDINOv3 ViT-S/16, fine-tuned, gradient-checkpointed. One trunk shared by the two head views, one by the two wrist views; 4 × 196 tokensStrong dense features at 21.6 M params per trunk fit the 16 GB budget
TouchSparsh ViT-B on 10 fingertip tiles (temporal pair 167 ms apart), contact gate, decoder cross-attentionFolding is contact-rich: tactile cut validation error 12.8 % (v2) and the ablation gap grew to 44.7 % (v3)
Proprioception153-D: joint state 65 + joint torque 58 + fingertip forces 30Torque and force carry pinch and press information that the cameras can't see
Fold phase6-way stage token. At serve time a FoldTracker sets it, with dwell, sustain and wall-clock budgets; v8 added a separate causal-TCN StageNetDisambiguates visually similar moments in a long, repetitive task
TempoTempo token for 1.0× / 1.25× / 1.5×, trained by contact-aware time warpingFaster passes rank higher
Transformerd=512, 8 heads, 4 encoder / 3 decoder layers, 32-D latent (z = 0 at inference), masked L1 + KLACT recipe, deepened after a review found the 1-layer decoder underbuilt
TrainingAdamW, cosine schedule, bf16, DDP on 2 GPUs. Serve-matched corruption: tactile dropout, torque dropout, observation noise, 0–4 frame latency jitterTrain on exactly what the server will see
DINOv3 feature magnitude and PCA maps for head and wrist cameras
What the fine-tuned vision trunk responds to. Feature magnitude and a 3-component PCA of the DINOv3 patch tokens, for a head view and a wrist view. The paper and the fingertips separate cleanly from the table and the robot body.
4 · Iterations

Ten versions, each gated before it shipped

Every candidate went through a fixed gate battery before it could replace the submission. The battery covered held-out validation L1, live-server replay of three held-out episodes through the actual serving stack, closed-loop stability proxies and tempo obedience. From v9 it added visual grounding and closed-loop drift.

    Live-server replay error

    Mean |predicted − demonstrated| joint target over 3 held-out episodes (15,773 frames), fed through the real policy server with real tactile input. Lower is better.

    Training curves

    Serve-matched validation L1 (normalized) every 1,000 steps. v9 and v10 are finetunes on a new paper corpus, so their numbers aren't comparable with the from-scratch runs.

    5 · Simulation

    An Isaac Sim mirror of the real robot

    No task simulator exists for this challenge, and simulating paper is out of reach anyway. So I built a kinematic mirror: held-out demonstrations stream through the live policy server, and the predicted joint targets drive the robot's USD model in Isaac Sim 5.1, filmed by a virtual head camera that I calibrated against the real one. It can't show a fold succeed, but it exercises the exact deployment path and makes motion errors visible at a glance.

    Held-out episode 5 (187 s, 4× speed): real demonstration and v6 mirror.

    Mirror tracking error by version

    Mean |pred − demo| over all 65 joints, averaged over 3 held-out episodes (radians).

    Per-frame mirror error over episode 5 with fold stages shaded
    Per-frame error across episode 5, with the six fold stages shaded. The serve-matched versions (v5b, v6) sit below v4 for 96 % of the episode. The spikes cluster at stage transitions and at the hand-off to the final refine.

    Passing the organizers' safety checker: 308 violations → 0

    Before any live run, the organizers replay a submission against a URDF "Shadow" checker. v8 came back with 308 violations from two independent mechanisms:

    • 281 finger lower_limit violations. The training data hard-clips finger joints at exactly 0, and predictions straddled that floor.
    • 27 velocity jumps, all at chunk boundaries.

    I reproduced the checker locally, then added a per-joint clamp and a 10-step continuity ramp on the first action. Together they remove every violation and improved one-step replay error (0.0246 → 0.0216). The first attempt (v8.1) widened a finger ceiling and failed live with 210 new violations once the fingers curled. Since then every bounds change is validated on both a hands-open and a hands-flexed fixture.

    6 · Real robot

    Live sessions: two v9 failures, then two folds with v10 at IROS 2026

    The organizers ran the v9 policy on their robot twice. Neither session folded the paper. The hands moved purposefully for a few seconds, then slowed, closed into fists and pressed the sheet into a tent until a protective stop or the operator ended the episode. These are the organizers' head-camera recordings, cropped, at 2× speed.

    Session 2 (2026-09-29), episode 4, sync mode, 65 s. The fingers close and stay closed.
    Session 1 (2026-09-01), episode 7, 42 s. The paper is pushed aside while the hands keep folding air.
    SessionPolicyEpisodes runDurationHow episodes endedFolds
    2026-09-01v9.2 · sync10 (+5 not started)11–43 s6 protective stops, 4 operator stops0
    2026-09-29v9.2 · async ×3, sync ×2536–65 s4 protective stops, 1 operator stop0

    The finger that locked

    The logs show the mechanism clearly. Pick an episode below. The left middle-finger DIP joint is commanded to the joint ceiling and held there, far beyond anything in the demonstrations; the measured angle even settles above the command. In the long session-2 episodes it is pinned for 84–96 % of all steps. The effect is progressive, which is why the shorter session-1 episodes looked different.

    Episode table
    7 · Diagnosis & fix

    The policy had learned to replay its own state

    In the demonstrations, the commanded action is roughly one servo step ahead of the measured state (correlation 0.984). So action ≈ f(state) is a near-perfect solution to the training loss, and vision gets demoted. This is the classic causal confusion failure of behaviour cloning. On the robot, the command sat 0.013 rad from the measured state (0.021 in demos), so small errors integrated with no visual restoring force, and any posture reached was held.

    I measured it directly with two new gates:

    • Visual grounding builds 112 observations where the camera and the joint state disagree, and measures whose trajectory the policy follows.
    • Closed-loop drift rolls the policy against a fitted first-order model of the robot.

    v9 followed the joint state in 94 % of conflicts.

    I ruled out the other suspects one by one with measurements:

    • sync vs. async execution: both locked;
    • the organizers' 224 → 480 px camera patch: 0.0023 rad;
    • colour cast in the finetune corpus: +1.6 %;
    • serving latency: 36–76 ms with zero errors.

    The v10 fix. I finetuned v9 with the joint state masked on 50 % of samples (a sentinel outside the normalized range) and 0.10 rad of noise on the rest, keeping clean targets. The images now have to carry the trajectory.

    The gains grow with augmentation strength: a milder arm (30 % / 0.05 rad) lands halfway. So the effect comes from the shortcut-breaking, not from anything else in the recipe.

    v10 was the final submission. Run by the organizers on the challenge rig at the IROS 2026 venue (not recorded, no log shared), it completed the first two of the six folds; the airplane was not finished. Team PixelPaper placed 5th in the final ranking.

    v9 (failed live) vs. v10 (final submission)

    The cost is honest and expected. Once it can't copy the state, v10 reproduces demonstrated actions less precisely in teacher-forced evaluation. But that is the same metric on which v9 looked best before failing twice. Every closed-loop and grounding measure moves the right way.

    8 · Deployment

    A sealed inference service the organizers can run blind

    The submission is a self-contained Docker image, exported as a .tar.zst with a sha256. Their sandbox runs it read-only, non-root and offline, so it has to work first time with no debugging access. It dials out as a Zenoh client and answers metadata, reset and infer queries. Each infer takes the 4 camera images, tactile, torque and joint state, and returns a float32 [45 × 65] chunk of absolute joint targets.

    The interface changed twice during the challenge: websocket → Zenoh, then sync → async execution. I reworked the server, the transport equivalence tests and the submission builder each time.

    Inference latency (v10, organizer validator)median 45.8 ms · max 73.6 ms
    Latency on the real robot36–76 ms, 0 errors
    Cold start≈ 35 s
    Runtime1 GPU ≥ 3.5 GB, ≤ 16 GB RAM
    Sandboxread-only rootfs, UID 65532, cap-drop ALL, no network, digest-pinned base
    Robustness checksreset determinism, SIGTERM exit in 1.2 s, fail-fast without config, 0 Shadow violations
    Serving safetyper-joint clamp, continuity ramp, tactile-pair interpolation, confidence-gated fold budget
    9 · Lessons

    What I would tell myself on day one

    1. Teacher-forced metrics can certify a policy that fails closed-loop.v9 had the best offline error of any version (0.0143 rad) and failed both live sessions, because every gate fed it demo states and demo images.
    2. Measure modality authority directly.With absolute-position targets and action ≈ state, the shortcut is the default. A 112-pair conflict test exposed it (vision won 6 %); masking the state fixed it (97 %).
    3. Offline closed-loop tests must not leak the oracle.Feeding demo images while the simulated robot drifts supplies exactly the correction the real robot never gets. It made async look best offline; async then locked the hands live.
    4. Train on exactly what you serve.Serve-matched corruption (tactile/torque dropout, latency jitter, observation noise) took replay error from 0.0254 (v4) to 0.0159 (v6).
    5. Validate limits on data that actually reaches them.v8.1 passed on an open-hand fixture and failed live once the fingers curled. Two fixtures now gate every bounds change.
    6. Make serving logic independent of call rate.Step-count budgets expired 3× late at 10 Hz, and a tactile temporal pair collapsed to zero at 0.6 Hz. Wall-clock budgets and interpolation fixed both.
    7. Check alignment before trusting a discrepancy.An apparent 0.034 rad camera effect was misaligned frames: LeRobot v3 concatenates episodes into one video file. The true effect was 0.0023.
    8. Long data jobs need bounded memory and isolation.An unbounded futures queue reached about 39 GB and took the desktop down. Bounded in-flight windows and detached systemd units fixed it.
    10 · Code

    Repository map

    policy/
      model/        FoldingACT (folding_act.py), v3 decoder with tactile cross-attention, StageNet
      data/         LeRobot v3 → LMDB loaders, fold auto-labelling, retiming, normalization stats
      serve/        Zenoh policy service, FoldTracker, replay / transport-equivalence tests
      sim/          Isaac Sim mirror (mirror_episode.py), joint-order mapping
      train_full.py           DDP training with serve-matched corruption
      eval_gate_battery.py    offline gates · eval_visual_grounding.py · eval_closed_loop.py
    scripts/        dataset download + predecode, clamp-bound fitting, submission image builder
    docs/           this page, results summary, data notes

    The organizers' inference kit and robot description files are not redistributed here. The dataset is gated on Hugging Face (SharpaIT/Robotic_Origami_Challenge).