Towards recursive self-improvement in humanoid control. Making the next robot skill easier to learn than the last.
The architecture (Figure 2 of the technical report). A shared registry connects the LLM planner, skill acquisition and ORCHESTRA execution; a newly trained tracker is promoted automatically, by fixed rules. Videos of the factory learning a climb no registered skill could do, of a whole simulated work day and of one policy in four simulators are in the v1.0.0 release.
Robot Skill Factory turns motion data, interaction demonstrations and videos of people into skills: registered, tested units of robot behavior. ORCHESTRA runs those skills one after another in one continuously running physics simulation. A language-model planner turns requests in plain English into plans. When a request needs a skill the robot does not have, the factory learns it, checks that nothing the robot could already do got worse, and the planner tries again. While the robot has no task, it watches people on video and learns their motions.
Everything here runs in simulation: a Unitree G1 humanoid in MuJoCo Warp / mjlab. This is research code. The technical report describes the system and every result, with the seeds and limits of each:
Di Yang. Robot Skill Factory: Towards Recursive Self-Improvement in Humanoid Control. Technical report v1.0, 2026. (PDF)
Work extending the factory to manipulation policies is under way, led by Junzhou Chen. Stay tuned.
An early release. This is our first open version of a long-term project, and much of it is still rough. We welcome suggestions and issues, and we are looking for people who would like to build it together: other robot embodiments, other policy families such as VLAs and WAMs, and running the loop on real robots.
request in English ──▶ planner (Claude Haiku 5.5, tool calls) ──▶ plan ──▶ ORCHESTRA: one simulation, no resets,
▲ │ a skill is missing 32 randomized worlds per run
│ tries again ▼ ▲
└──────────── Skill Factory: search ─▶ probe ─▶ train if needed ─▶ check for regressions ─▶ register
▲ ▲ ▲
motion library (BONES-SEED, interaction library videos of people (GEM-X ─▶ SOMA
LAFAN1) (OmniRetarget) ─▶ soma-retargeter ─▶ G1)
- Body skills are clips tracked by one motion-tracking policy (InstantTrack v1.3). Learning a new body skill means probing that tracker on the new motion and, if needed, fine-tuning it with replay of what it already knows. Each robot has one current tracker, named in
registry/tracker.json; a newly trained tracker replaces it only after a regression gate (below). It covers body skills only: walking is a separate policy, and every interaction skill has its own policy. - Interaction skills (carrying a box, climbing onto blocks) have their own policies, trained on the interaction clip and handed over to and from the walking policy.
- ORCHESTRA composes a plan: tracker skills, walking (a separate walking policy, closed-loop
walk_to) and interaction steps. Each world is placed once at the start; after that no reset and no state write is allowed, and every run counts them.
Numbers are in randomized worlds (mass, friction, gains), from one seed unless noted. "New" means the motion was never in the tracker's training set. The letter is the experiment's: docs/reproduce.md has the commands for each, and the technical report the details.
| what | result | exp. |
|---|---|---|
| Motion tracker on 40 LAFAN1 clips (RTX 4090) | return ≥ 0.82 after about 3 min of training, about 0.86 at the end, 0 of 40 clips failed | A |
| Plans of registered skills in one continuous run | 896/896 worlds completed over 7 plans of 3–16 steps, up to 100 s; 0 resets, 0 state writes | E |
| Any skill after any other (16 skills, 256 ordered pairs, 32 worlds each) | 8192/8192 completed | F |
| Hand-over between the tracker and a walking policy (skill → walk, turn, stop → skill) | 448/448 worlds completed, 0 falls | D, G |
| Plain English → plan (Claude Haiku 5.5) | 60 sessions: the right kind of outcome in 59/60 (requests it cannot serve get no plan 6/6); 424/424 planned runs completed; $0.20 in total | I |
| A large motion library (BONES-SEED, 129,485 clips) | tracker fine-tuned in 13 shards of 0.1 h: held-out kinds of motion 0.827 → 0.901 | L |
| Self-improvement: request → missing skill → learn → plan again | "stand up from kneeling": trained 6.6 min, held-out actors 0.734 → 0.817, 0 falls; the plan then ran 32/32, 11 min 46 s from request to execution | M |
| Bigger library, new skills | at fixed training, zero-shot return on 112 held-out kinds rises with library size (1k → 60k clips: 0.840 → 0.908) | O |
| Kinds of motion vs clips, each at a fixed size (2 seeds) | at 10,000 clips, 500 → 935 kinds: 0.851 → 0.900, then flat up to 3,376 kinds; at 1,000 kinds, 3k → 10k → 30k clips: 0.884 → 0.902 → 0.905 | U5 |
| Real cost of a new skill (30 new kinds, the factory's own procedure) | 4.2 min per kind from a tracker trained on 40 clips, 2.7 min from one trained on 127k: more kinds need no training (19 → 23 of 30); a training takes about 10.5 min either way | U3 |
| Replaying earlier acquisitions (controlled, 3 seeds) | the earliest acquisition ends at 0.826–0.833 with replay, 0.722–0.800 without; unrelated held-out kinds unchanged | U2 |
| Box carrying (6 skills) | walk to the box, carry, put down, walk back: 32/32 worlds; box 5–8 cm from its target | N, S |
| Interaction self-improvement: a wall no registered skill was made for | the factory learns the climb in stages and the same plan runs again after each: 7/32 → 30/32 successes, 76 min from the request, no person involved (a harder platform with a jump stayed at 0/32) | S |
| A work day: 7 requests and an idle hour, run back to back | 7/7 tasks done (each 32/32 worlds); 7 new skills during the day (5 from videos watched while idle, 1 gesture from the motion library in 51 s, 1 climb learned in stages); planner $0.08 | S |
| Climbing (5 skills, from OmniRetarget's terrain clips) | walk to the terrain, climb (step over, climb on, vault, jump down), stand: each 32/32 worlds with two seeds (320/320) | T |
| Sim-to-sim, same policy and deployment code | return on 108 clips the tracker never trained on: training simulator 0.926, MuJoCo CPU 0.925, Genesis 0.926, Isaac Sim 0.920; also a second robot (Unitree H1-2) | P |
| Video of a person → G1 skill | 5 Creative Commons web videos → 5 skills, 6–8 min each, each 32/32 in ORCHESTRA | Q |
| System benchmark (rsf-bench v0, 37 requests) | frozen planner 21/37, factory 31/37, factory that keeps what it learned 30/37; a request reusing earlier acquisitions 688 s → 27 s | U6 |
| Automatic promotion in a chain of 7 planner requests | 4 trackers promoted, 1 rejected because it had forgotten the previous request's skill (28/32 → 0/32 worlds) | U7 |
The rules behind these numbers:
- No reset, no teleport during a run. After the start, nothing writes the robot's or an object's state; every summary counts resets and state writes, and both must be 0.
- Failures are counted, not dropped. Statistics and videos include failed trials; a video says which world it shows and that it was not picked.
- Trained and new motions are reported apart. Every evaluation says whether a motion was in the tracker's training set.
- Code is separate from data and weights. Datasets, checkpoints and videos are not in git; the registry records paths and licenses.
Requirements: Linux x86_64, an NVIDIA GPU with 24 GB or more (developed on an RTX 4090), driver 570 or newer (CUDA 12.8), git, uv, curl, ffmpeg, and about 30 GB of disk. The unit tests also run without a GPU.
git clone https://github.com/IoET-y/robot-skill-factory.git
cd robot-skill-factory
# 1. The two motion trackers at the tested commits (BlinkMimic d264658, InstantTrack 9474e74) in third_party/, their
# environments exactly as their lock files pin them (mjlab 1.6.0, MuJoCo Warp, torch 2.9.0; about 8 GB), and the G1
# model with 40 LAFAN1 clips retargeted to the G1 (about 110 MB).
scripts/setup.sh
# 2. The trained policies of the GitHub release (WEIGHTS.md), checked against its SHA256SUMS. The current tracker, the
# walking policy and the interaction skills use them when their local checkpoints are not there.
scripts/download_weights.sh
# 3. The smoke test: stand -> walk -> walk -> run, registered skills in one continuous run, 16 worlds, about 20 s of GPU.
# Writes runs/smoke-<time>/summary.json and smoke.mp4; passes when both red-line counters are 0.
make smoke
# 4. The interaction skills' data: the OmniRetarget dataset (MIT, about 340 MB, every file checked against the
# dataset's own hashes), its index, and the clips of the 12 registered interaction skills converted for ORCHESTRA.
# CPU, about 2 minutes.
python3 scripts/interaction_data.py
# 5. One box plan and one climbing plan, 32 randomized worlds each, with a video of world 0.
OUT=runs/box scripts/orchestra.sh plans/n_box_carry.json -- --worlds 32 --offset 1 --dr --seed 0
OUT=runs/climb scripts/t_orchestra.sh plans/t_climb_high_c26.json -- --worlds 32 --offset 1 --dr --seed 0
# The unit tests (CPU; tests whose data is not here skip themselves). CI runs them on every push.
scripts/rsf-run --with pytest python -m pytest tests/On a fresh clone of this repository with the release's files, these steps gave: the smoke test PASS, 16/16 worlds, body error per step 1.8 / 1.7 / 2.1 cm; the box plan 32/32 worlds, the box carried in 32/32; the climb 32/32; no reset, robot state write or object state write in any run; the unit tests 165 passed and 1 skipped (it needs the walking policy's training run). With nothing but step 1 and no GPU, as CI runs them: 154 passed, 12 skipped.
Our code runs inside the tracker's environment (scripts/rsf-run python ...), and every GPU job takes a file lock (flock /tmp/rsf-gpu.lock ...), so several jobs can be queued on one GPU.
Red line 3 holds with the released weights too: weights/g1_tracker.lineage.json.gz names every motion file the tracker was trained on (127,355 files of a chain of 20 training runs), so every run reports which motions were in the tracker's training set. scripts/rsf-run python -m rsf.lineage show prints the tracker's whole lineage.
| to run | you need |
|---|---|
| the smoke test, the 22 body skills made from LAFAN1, the registry's plans | steps 1-3 |
| the 12 interaction skills (6 box, 6 climbing) | step 4 |
| the 11 body skills made from BONES-SEED, the motion library, the factory's training | BONES-SEED (request access on Hugging Face; Bones Studio's terms), then its conversion (docs/reproduce.md, L). A plan that uses a skill whose motion is missing stops before it runs and names the dataset. |
| the 6 body skills made from videos of people | their motions are not distributed; docs/reproduce.md (Q) makes them again from the videos (GEM-X, SOMA, soma-retargeter) |
| the planner (plain English to plans) | an Anthropic API key: export ANTHROPIC_API_KEY=..., read from the environment only |
| sim-to-sim in Genesis and Isaac Sim | their environments (docs/reproduce.md, P); Isaac Sim under NVIDIA's license, accepted by you |
The released trackers hold the policy only, not the optimizer state, so the factory cannot warm-start training from them; it trains from a checkpoint of your own training run (scripts/a_train_eval.sh instanttrack 0 trains a LAFAN1 tracker in about 5 minutes on an RTX 4090).
# A request in plain English -> plan -> ORCHESTRA -> video (needs ANTHROPIC_API_KEY)
scripts/i_plan_run.sh "Walk forward two meters, then jump once."
# The self-improvement loop (needs ANTHROPIC_API_KEY and BONES-SEED): plan, learn what is missing, check, plan again, run
scripts/rsf-run --with anthropic python -m rsf.factory loop "Kneel down, then stand up and walk two meters."
# Idle-time learning from videos of people (needs GEM-X): download, convert, learn, check, demo video
python3 scripts/q_watch.py examples/watch_list.json --out runs/watch
# A whole work day: requests, learning and watching, joined into one video (needs all of the above). Events that name
# an earlier run with "from" reuse it when it is here and run for real otherwise.
python3 scripts/s_workday.py examples/workday.json --out runs/workday
# The system benchmark: three systems on the same 37 requests (bench/README.md)
python3 scripts/u_bench.py prep && scripts/rsf-run python scripts/u_bench.py labelEach robot has one current tracker (registry/tracker.json). When a request of the self-improvement loop trains it, the loop checks the new tracker against the current one and promotes it automatically if it passes (--no-auto-promote leaves it a candidate). Both trackers run the same worlds and clips:
- the registry's plans and every registered body skill alone in ORCHESTRA (32 randomized worlds): each plan may complete at most 1 world fewer, all of them together at most 2 fewer, and no reset or state write is allowed;
- the forgetting sets (shard 0 and the held-out kinds of the motion library, LAFAN1) and the held-back performers of every earlier acquisition: the return may drop at most 0.02 and the share of failed rollouts rise at most 1 percentage point;
- the held-back performers of the new motions: the same rule, so no worse.
A tracker that passes replaces the pointer in one atomic step. One that does not leaves the pointer as it is, and the skills that came with it are withheld from the registry, so the registered skills always run with the current tracker. Every promotion, rejection and rollback is recorded in registry/promotions.jsonl with both trackers' numbers and the time it took. In a chain of seven planner requests on an RTX 4090 (experiment U7), the gate promoted four trackers and rejected one that had forgotten the skill of the request before; it took 11.6 minutes the first time and 6.6–6.8 minutes after that, since a tracker's results are kept and reused.
scripts/rsf-run python -m rsf.factory acquire <kind> --auto-promote # one acquisition, then the same gate
scripts/rsf-run python -m rsf.promote auto <checkpoint> # the gate for any tracker
scripts/rsf-run python -m rsf.promote status
scripts/rsf-run python -m rsf.promote rollback --reason "<why>" # also withdraws the skills that came with itrsf/ our code: skills and registry, ORCHESTRA, planner, factory, interaction tasks, sim-to-sim, real-to-sim,
checkpoint lineage (lineage.py) and tracker promotion (promote.py)
scripts/ entry points (prefix = the experiment's letter), setup.sh, download_weights.sh, interaction_data.py, rsf-run
registry/ registered skills: body skills (skills/) and interaction skills (interactions/), as JSON manifests;
each robot's current tracker (tracker.json) and its promotions (promotions.jsonl)
plans/ plan files for ORCHESTRA
examples/ the web videos the idle-time learner watched, a work day for scripts/s_workday.py
bench/ rsf-bench v0, a system-level benchmark: requests, protocol and metrics
docs/ reproduce.md: the commands behind every result; demo caption labels; the README image
tests/ unit tests (CPU): scripts/rsf-run --with pytest python -m pytest tests/; .github/workflows/ runs them
release/ the list of released weights (scripts/release_weights.py stages them)
patches/ two small patches to InstantTrack (multi-GPU evaluation probe, experiment R)
third_party/ data/ runs/ weights/ upstream clones, data, logs, checkpoints, videos, downloaded weights (not in git)
CONTRIBUTING.md says what the code expects when you add a robot, a motion dataset, a policy backend or a way to acquire skills, and what to run before sending a change. The technical report's last chapter lists open directions, and the early-release note at the top says where we would most like help.
- This repository's code: Apache License 2.0. Files derived from InstantTrack (MIT) and Uni-SuperMimic (Apache-2.0) are listed in THIRD_PARTY_NOTICES.md.
- Trained weights are published with the GitHub release. Each file's license follows from its training data (the trackers are for non-commercial research only); see WEIGHTS.md.
- Data and models are not included. You download them under their own terms:
| data or model | license | used for |
|---|---|---|
| LAFAN1, retargeted to the G1 | CC BY-NC-ND 4.0; trackers trained on it are for non-commercial research only | the first tracker and its skills |
| BONES-SEED (Bones Studio) | on request via Hugging Face: academic or qualifying startups, no redistribution | the large motion library |
| OmniRetarget dataset | MIT | box and climbing skills |
| Unitree G1 and H1-2 descriptions | BSD-3-Clause | the robots |
| GEM-X weights (NVIDIA) | NVIDIA Open Model License (allows commercial use; not OSI open source); its person detector was trained on data for non-commercial use | videos of people |
| Isaac Sim | NVIDIA's license, accepted by you | sim-to-sim |
| Web videos (experiment Q) | each video's own license. The five watched while idle are CC BY and are credited in the demo. The first video (a dance, video_dribble_dance) is linked only. |
motions from videos |
@techreport{yang2026robotskillfactory,
title = {Robot Skill Factory: Towards Recursive Self-Improvement in Humanoid Control},
author = {Yang, Di},
institution = {Technical report v1.0},
year = {2026},
url = {https://github.com/IoET-y/robot-skill-factory}
}This work builds on InstantTrack and BlinkMimic for motion tracking; mjlab, MuJoCo and MuJoCo Warp for simulation; Genesis and Isaac Lab for sim-to-sim; the LAFAN1, BONES-SEED and OmniRetarget datasets; GEM-X, SOMA and soma-retargeter for motions from video; Uni-SuperMimic's BONES-SEED pipeline; and Unitree's robot descriptions.
