Projects

Research · UC Berkeley · ICON Lab · Berkeley AI Research

ArmSkillComp

Closed-loop skill selection for a simulated robot arm

Code on GitHub

Abstract

I trained a goal-conditioned policy to select one manipulation skill at a time in a MuJoCo workcell. A symbolic planner supplies shortest-path labels during training. At runtime, the policy re-scores its options after each move using the arm’s measured state. It completed 1,021 of 1,024 seeded tasks.

Demos

The workcell has a Panda arm, an optical reader, and an interlocked rotary fixture. Goals can specify inspections, index counts, final carrier locations, and the order of operations across carriers.

Same goal, different starting states. The policy selects seven skills from the feed station and six when the carrier is already loaded. Both runs index carrier B once and return it to feed.
Inspect A before indexing B. In this 11-skill rollout, the arm reads and sorts carrier A by grade, indexes B by 90°, and returns B to feed with the enclosure open and unlocked.

Method

Closed-loop skill selection

Each skill–carrier pair has 34 features covering measured and desired state, the candidate skill, ordering constraints, and fixture occupancy.

  1. Observe the cellCurrent state and target outcome
  2. Score candidates12 skills × 4 carriers
  3. Run one skillScripted MuJoCo controller
  4. Check the outcomeMeasure the state after motion

A shared PyTorch MLP scores all 48 candidates with three 64-unit SiLU layers and 10,625 parameters. It executes the highest-scoring pair given measured state st, goal g, and features ϕ.

at= arg maxa∈𝒜 fθ(ϕ(st,g,a))

All candidates compete at inference time without a planner-provided action mask. The simulator checks preconditions and stops the rollout on a failed skill.

First-decision scores
  • Load B+7.46
  • Load B into reader−4.45
  • Reseat B−11.43
  • Close enclosure+10.29
  • Unload B−4.08
  • Reseat B−12.55
The top three of 48 raw scores from each rollout in the opening video. The center line marks zero.

Training from a symbolic planner

I used breadth-first search over discrete skill effects to label every action that starts a shortest path to the goal. The planner only permits an index operation when the enclosure is latched and any required inspection has happened.

Let dg(s) be the fewest skills needed to reach goal g from state s, and Tg(s, a) the predicted state after a valid skill a. A skill is optimal if it reduces the remaining path by exactly one step.

dg(Tg(s,a)) =dg(s)−1

Several skills can satisfy that condition at the same state. The ranking term puts probability mass on the full set of optimal actions 𝒜*. With za as the network’s raw score for candidate a, the loss is the negative log of their combined softmax probability.

ℒrank= log∑a∈𝒜eza − log∑a∈𝒜∗eza

The training objective averages this term across the batch and adds a binary term weighted by 0.2. It averages softplus(−za) over optimal choices and softplus(za) over the other choices, then adds the two means.

Results

All three methods used the same 1,024 seeded MuJoCo resets. The planner replans after each skill. The fixed plan assumes all carriers start at feed, so it fails every already-loaded start.

Completed tasks by benchmark suite out of 256 cases per suite
Test suiteLearnedPlannerFixed plan
Novel goal combinations255255124
Three goal carriers254253115
Ordering constraints256256256
Partial starts2562560
Overall success99.7%1,021 / 1,02499.6%1,020 / 1,02448.3%495 / 1,024
Each bar shows completed tasks out of 256 matched starts for its suite.

Carrier seating failures

The transfer controller uses the measured grasp transform to align the carrier with the slot. A successful seat requires position error below 3.8 mm, rotation error below 0.14 rad (about 8°), and contact with the slot floor. The controller can make one guarded recentering pass before releasing the carrier.

The policy made zero invalid skill requests. All three failures were feed-slot seating failures. In one replay, a valid reseat action hit the slot wall at about 9.2° of rotation error.