Search

Search papers and lessons

Learning Fine-Grained Bimanual Manipulation with Low-Cost Hardware

Tony Z. Zhao, Vikash Kumar, Sergey Levine et al. · 2023

A low-cost arm rig and a chunked transformer policy learn delicate two-handed tasks from about ten minutes of human demonstrations, reaching 84 to 96 percent success on several of them.

On this page

  • Colour = topic mix
  • Probability
  • Calculus
  • Discrete math
  • Architectures
  • Neural network basics
  • Linear algebra
  • ReadReady to readNot yet

TL;DR

This paper shows that cheap robot arms and cameras can learn delicate two-handed tasks from about ten minutes of human demonstrations. It introduces ALOHA, a leader-and-follower teleoperation rig built from off-the-shelf robots and 3D-printed parts for under 20,000 dollars, and ACT, a policy that predicts short sequences of future joint positions and is trained as a conditional variational autoencoder. ACT reached 88 percent final success on Slide Ziploc, 96 percent on Slot Battery and 84 percent on opening a condiment cup.

Builds on: Action Chunking, Behavior Cloning, Variational Autoencoder, Transformer, Convolutional Neural Network · Leads to: mobile ALOHA

Why it mattered

The paper made a point about cost. Before it, fine manipulation such as threading a cable tie or slotting a battery was usually shown on expensive robots with high-end sensors and careful calibration. This paper showed that a rig costing under 20,000 dollars, with a learned policy and only camera images, could do several of those tasks. The method, ACT, is the reference for the action-chunking family of policies, as the Action Chunking lesson records.

The paper also shows how much data it takes. Each real task used 50 demonstrations, or 100 for one task, and the whole training set for a task was 10 to 20 minutes of robot motion. That makes it practical for a lab to teach a new skill in an afternoon, which is one reason the approach spread to later bimanual work such as the mobile ALOHA follow-up.

The problem

Fine manipulation needs three things at once. The robot must be precise, often to a few millimetres. It must correct itself using the camera while it moves, because a small error early in a task grows later. And it must use both hands, since many steps, such as holding a bag open while the other hand inserts something, need coordination.

The standard way to teach a robot is imitation learning, where a model learns to copy recorded demonstrations. It has two known problems. The first is compounding errors: one small mistake leads the robot to a state the demonstrations never showed, and the next prediction is worse, so the error grows. The second is noise in human demonstrations: a person does the same task in different ways, and the same picture of the scene can be followed by several correct actions. A model that averages these actions produces a motion that is correct for none of them.

How it works

The system has two parts, a teleoperation rig and a policy, and they run in this order.

  1. Teleoperate and record. A person moves a pair of leader arms, and two follower arms copy the motion. The leader joint positions are recorded as the actions, at 50 Hz. Recording the leader rather than the follower matters because the force the follower applies is set by the gap between the two, through its low-level controller.
  2. Observe. At each step the robot records four colour camera images at 480 by 640 pixels, plus the follower's joint positions for both arms, 7 per arm, 14 numbers in total.
  3. Predict a chunk. The policy takes the current observation and outputs the next kk actions at once, a block of kk target positions for the 14 joints. Grouping actions this way means the policy makes one decision per chunk instead of one per 20-millisecond step.
  4. Train with a latent style variable. During training a second network, the encoder, sees the true chunk and the joint positions and produces a small code zz. The policy then predicts the chunk from the images, the joints and zz. Because the code can absorb the way a particular demonstration was done, the policy learns the average shape of the motion without being pulled between different ways of doing it.
  5. Run with a temporal ensemble. At test time zz is set to zero and the policy is queried at every step, so chunks overlap. Tiny instance: suppose three chunks, made at three different times, all predict the joint position for the same moment. They give 1.0 (oldest), 1.2 and 1.4 (newest). The robot moves to a weighted average that counts the older predictions more, and the result is 1.085.
  6. Track. The chosen target positions go to the motors' built-in controller, which moves each joint toward its target at high frequency.
flowchart LR
  A["Human moves leader arms"] --> B["Record leader joints at 50 Hz"]
  C["Four cameras and follower joints"] --> D["Policy predicts k-step chunk"]
  B --> E["Train with encoder code z"]
  E --> D
  D --> F["Overlapping chunks, temporal ensemble"]
  F --> G["Motors track target positions"]
01234500.20.40.60.81index i (0 is the oldest prediction)weight w_i
  • m = 0.5
  • m = 1
The ensemble weight falls as i grows, so the oldest prediction counts most. A larger m makes the newer predictions count much less than the oldest one, and the average leans toward the older chunks.

The math

Write oto_t for the observation at step tt (images plus joint positions), at:t+ka_{t:t+k} for the chunk of the next kk actions, and zz for the style code. The policy is πθ(at:t+k∣ot)\pi_\theta(a_{t:t+k} \mid o_t).

Definition: ACT training objective

Training minimises a conditional variational objective with two parts,

L=Lreconst+β Lreg,\mathcal{L} = \mathcal{L}_{\text{reconst}} + \beta\,\mathcal{L}_{\text{reg}},

where Lreconst\mathcal{L}_{\text{reconst}} measures how well the decoder reproduces the chunk, Lreg\mathcal{L}_{\text{reg}} is the KL divergence between the encoder's distribution for zz and a standard normal distribution, and β\beta sets how strongly the code is regularised.

Step 1 in symbols: the chunk policy

With chunk size kk the policy outputs a k×14k \times 14 array, so the effective length of a demonstration of TT steps falls to about T/kT/k decisions. The paper's chunk-size ablation reports 44 percent success at k=100k = 100 (see Results), which is the empirical side of this.

Step 2 in symbols: the code and its penalty

The encoder outputs a mean μ\mu and variance σ2\sigma^2 for each dimension of zz, a diagonal Gaussian. Its penalty against the standard normal N(0,I)\mathcal{N}(0, I) has a closed form,

Lreg=12∑j(σj2+μj2−1−ln⁡σj2).\mathcal{L}_{\text{reg}} = \frac{1}{2}\sum_j \left(\sigma_j^2 + \mu_j^2 - 1 - \ln \sigma_j^2\right).

Tiny instance: one dimension with μ=0.5\mu = 0.5 and σ2=0.25\sigma^2 = 0.25 gives 12(0.25+0.25−1−ln⁡0.25)=12(−0.5+1.3863)≈0.443\tfrac12(0.25 + 0.25 - 1 - \ln 0.25) = \tfrac12(-0.5 + 1.3863) \approx 0.443. The paper's text says the reconstruction term is an L1 loss, which it found gives more precise action sequences than squared error; its pseudocode writes the reconstruction term as MSE.

Step 3 in symbols: the temporal ensemble

Let At[i]A_t[i] be the prediction for step tt made ii steps earlier, with i=0i = 0 the oldest. The weights are wi=exp⁡(−m i)w_i = \exp(-m\,i), and the action is

at=∑iwiAt[i]∑iwi.a_t = \frac{\sum_i w_i A_t[i]}{\sum_i w_i}.

Check the tiny instance with m=1m = 1: the weights are 11, e−1≈0.368e^{-1} \approx 0.368 and e−2≈0.135e^{-2} \approx 0.135, with sum 1.5031.503. The numerator is 1×1.0+0.368×1.2+0.135×1.4=1.6311 \times 1.0 + 0.368 \times 1.2 + 0.135 \times 1.4 = 1.631. The ratio is 1.631/1.503≈1.0851.631 / 1.503 \approx 1.085.

Step 4 in symbols: inference

At test time z=0z = 0, so the policy is deterministic: a^t:t+k=πθ(ot,0)\hat a_{t:t+k} = \pi_\theta(o_t, 0). Each step writes its chunk into a buffer slot for each future time, and step 3 reads all the slots for the current time.

Results

The paper compares ACT with four prior methods on two simulated tasks and two real ones, and reports the rest of the real tasks against the best baseline.

  • Simulated tasks, scripted data then human data, averaged over 3 seeds with 50 trials each. ACT reaches 97 and 82 percent on touching the cube, 86 and 50 percent on transferring it, and 32 and 20 percent on the final insertion of the bimanual task, with scripted data first and human data second.
  • Real Slide Ziploc, 25 evaluations, one seed: 88 percent final success. Real Slot Battery: 96 percent final success. Prior methods made no progress past their first stage on these two tasks.
  • Remaining real tasks, compared only with the best baseline, BeT, which had zero final success on each of them: Open Cup 84 percent, Thread Velcro 20 percent, Prep Tape 64 percent and Put On Shoe 92 percent.
  • Ablation on chunk size, on the two simulated tasks: success rises from 1 percent at k=1k = 1 to 44 percent at k=100k = 100, then tapers at larger kk.
  • Ablation on the CVAE, on human simulated data: success drops from 35.3 to 2 percent when the code is removed.
  • User study on frequency: lowering teleoperation from 50 Hz to 5 Hz made two tasks take 62 percent longer. Threading a zip tie took 33 seconds at 5 Hz and 20 seconds at 50 Hz; separating cups took 16 seconds and 10 seconds.

The limits are clear in the paper. The real results come from a single seed and 25 trials, and the Thread Velcro task failed mostly because the low-contrast black cable tie is hard to locate in the images. The simulated human-data results show the method is still hurt by human variability. The conclusion lists tasks beyond reach, such as buttoning a dress shirt.

Reading guide

  • Abstract and Section I state the problem of fine manipulation. Read them with the Problem section above in mind.
  • Section II, related work covers imitation learning and compounding errors. Prepare with Behavior Cloning and DAgger, which the paper cites on that issue.
  • Section III, ALOHA describes the rig: two leader arms that a person backdrives, and two follower arms that copy them. The joint positions it records are the actions for the policy. For background on how arm joints map to positions of the hand, see Robot Kinematics.
  • Section IV, ACT is the method. Prepare with Action Chunking, Variational Autoencoder, Transformer, Convolutional Neural Network for the ResNet image encoders, positional embeddings for the image tokens, and Kullback–Leibler Divergence for the code penalty.
  • Section V, experiments names four baselines. Markov Decision Process explains why a single-step policy can be confused by pauses in demonstrations, which the paper calls non-Markovian behaviour.
  • Section VI, ablations tests chunking, the ensemble, the CVAE and the control frequency. Each ablation matches one design choice in Section IV.
  • Appendices give architecture diagrams and hyperparameters, which are useful once the method is clear.

Check yourself

QuestionRecall. What does ACT's policy output at each decision, and what is the gain from that choice?Show answer
It outputs a chunk of kk future target joint positions for both arms, a k×14k \times 14 array, from one observation. Making one decision per chunk shortens the effective horizon by a factor of kk, which the paper shows reduces compounding errors.
QuestionCompute. In an ensemble with m=0.5m = 0.5, three predictions of the same joint have ages i=0i = 0, 11, 22 and values 1.01.0, 1.21.2, 1.41.4. What is the ensemble action?Show answer
The weights are 11, e−0.5≈0.607e^{-0.5} \approx 0.607 and e−1≈0.368e^{-1} \approx 0.368, with sum 1.9741.974. The numerator is 1.0+0.607×1.2+0.368×1.4=1.0+0.728+0.515=2.2431.0 + 0.607 \times 1.2 + 0.368 \times 1.4 = 1.0 + 0.728 + 0.515 = 2.243. The ensemble action is 2.243/1.974≈1.1362.243 / 1.974 \approx 1.136.
QuestionWhy. Why does the paper remove the style code at test time and set zz to zero?Show answer
At training time the code absorbs how a particular demonstration was carried out. Setting it to its prior mean, zero, makes the policy output the typical motion instead of a random sample from one demonstration, so the deterministic policy is the average behaviour the training data supports.
QuestionApplied. A lab wants to copy ACT for a task whose demonstrations vary a lot in how the object is handed over. It removes the CVAE term to simplify the code. What result from the paper should worry it, and why?Show answer
The paper's ablation on human simulated data drops from 35.3 to 2 percent success when the CVAE objective is removed, so the simpler model would likely fail on exactly this kind of variable human data. Scripted data showed almost no change, which is why the effect only appears with human demonstrations.

Sources

Read the full paper

Tony Z. Zhao, Vikash Kumar, Sergey Levine et al., 2023. arXiv:2304.13705