File size: 7,448 Bytes
e860e39 d45c758 e860e39 57b173a e860e39 96e9536 e860e39 d28fc55 4709cd6 d45c758 4709cd6 d45c758 4709cd6 d45c758 4709cd6 d45c758 4709cd6 e860e39 d45c758 4709cd6 e860e39 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 | ---
pipeline_tag: robotics
tags:
- robotics
- vision-language-model
- weight-generation
- manipulation
- zero-shot
---
<p align="center">
<img src="https://primorlee.github.io/NetScribe/static/images/logo.png" height="90" alt="NetScribe">
</p>
# Write the Network, Not the Code: Vision-Language Models that Write Visual Manipulation Policies
**Model weights of NetScribe. Released so far: state-based expert networks for 177 tasks, one expert per task (see below). The vision-based experts in the writable format and the writer are in preparation.**
[Project Page](https://primorlee.github.io/NetScribe/) · [Code](https://github.com/primorLee/NetScribe) · [Data](https://huggingface.co/datasets/wenqqqq/NetScribe) · arXiv (coming soon)
Wenzhen Li<sup>1,2,\*,†</sup>, Haojian Huang<sup>3,4,\*</sup>, Xiaofang Wu<sup>5,\*</sup>, Chenxu Zhang<sup>6</sup>, Yunlong Jia<sup>7</sup>, Weitao Ma<sup>8</sup>, Xinjie Zhi<sup>9</sup>, Peiwen Wu<sup>9</sup>, Ming Li<sup>10</sup>, Dongfu Yin<sup>11,†</sup>
<sup>1</sup>University of Macau, <sup>2</sup>Qwen Team, Alibaba Group, <sup>3</sup>The University of Hong Kong, <sup>4</sup>The Hong Kong University of Science and Technology (GZ), <sup>5</sup>Hunan University, <sup>6</sup>Imperial College London, <sup>7</sup>University of Southern California, <sup>8</sup>City University of Hong Kong, <sup>9</sup>Southern University of Science and Technology, <sup>10</sup>The Hong Kong University of Science and Technology, <sup>11</sup>Guangdong Laboratory of Artificial Intelligence and Digital Economy (SZ)
<br><sup>\*</sup>Equal contribution · <sup>†</sup>Corresponding author · Project lead: Wenzhen Li

## Overview
NetScribe is a vision-language model that takes a language instruction and a few scene images and writes, token by
token, a small set of weights; added to a base network shared by all tasks, they yield a closed-loop visual policy for
the new task, with no further training. On Meta-World, ManiSkill3 and RoboDojo, written networks reach 93.2% success
on seen tasks and 29.2% zero-shot on unseen tasks.
## State experts
These are state-based expert policies produced by the expert network factory (scripted controller, DAgger,
PPO). We release **one expert per task**, the one with the highest recorded success rate: 177 tasks over seven
simulators. 163 of them have a closed-loop evaluation, all with a success rate of at least 0.9. For 14 tasks
(13 RoboDojo, 1 Isaac Lab) only a training statistic was recorded; `eval_criterion` names it, and
`success_once` then holds that statistic.
| Simulator | Tasks (one expert each) | With closed-loop evaluation | Success rate (closed-loop, mean) | Network types | File in `experts/state/` |
|---|---|---|---|---|---|
| ManiSkill3 | 72 | 72 | 0.991 | `mlp_tanh`, `residual` (1) | `ManiSkill3.safetensors` |
| Meta-World | 41 | 41 | 0.979 | `mlp_tanh` | `Meta-World.safetensors` |
| RoboDojo | 31 | 18 | 0.940 | `dagger_layernorm_mlp`, `residual` (13) | `RoboDojo.safetensors` |
| Isaac Lab | 16 | 15 | 0.971 | `rsl_rl_mlp`, `rl_games_lstm` | `IsaacLab.safetensors` |
| dm_control | 14 | 14 | 0.975 | `mlp_tanh` | `dm_control.safetensors` |
| robosuite | 2 | 2 | 0.984 | `mlp_tanh` | `robosuite.safetensors` |
| Gymnasium-Robotics | 1 | 1 | 1.000 | `mlp_tanh` | `Gymnasium-Robotics.safetensors` |
| **Total** | **177** | **163** | **0.979** | | 0.7 GB |
The success rate is `success_once`: the fraction of evaluation episodes in which the task's success condition holds
at some step; `success_at_end` is the fraction in which it holds at the last step. ManiSkill3 tasks have many
variants (object size, density, damping, friction, speed, goal tolerance, goal range, robot); the released expert
is for the variant given by the `args.set` overrides in the manifest. Eight further Meta-World tasks have a
qualified expert in our records but no stored weights, so they are not included.
**Files.** Each `.safetensors` file holds the experts of one simulator; tensor keys are `<tag>/<parameter>`
(actor weights fp16, normaliser statistics fp32). `experts/state/manifest.jsonl` has one line per expert: `tag`,
`simulator`, `env_id`, `args` (what is needed to rebuild the task: env id, robot, control mode, `--set` overrides,
or benchmark/task/controller), `obs_dim`, `act_dim`, `act_low`, `act_high`, `network` (type, sizes, normaliser,
output), `success_once`, `success_at_end`, `eval_episodes`, `eval_criterion`, `train_steps` (null when not
recorded), `file`.
**Networks.** `experts/state/forward.py` implements every network type in numpy and is the reference for what
each type computes; all return the deterministic action.
| Type | Used by | Computation |
|---|---|---|
| `mlp_tanh` | PPO actors (ManiSkill3, Meta-World, dm_control, robosuite, Gymnasium-Robotics) | optional normaliser `clip((obs - mean) / sqrt(var + 1e-8), -10, 10)`; tanh MLP `actor_mean.*`; output = action mean |
| `dagger_layernorm_mlp` | RoboDojo DAgger students | `clip((obs - obs_mean) / obs_std, -10, 10)`; [Linear, LayerNorm, ReLU] blocks `net.*`; output clipped to [-1, 1], grippers binarised |
| `rsl_rl_mlp` | Isaac Lab rsl-rl actors | optional normaliser `(obs - mean) / (std + 0.01)`; ELU MLP `mlp.*`; output not clipped |
| `rl_games_lstm` | Isaac Lab Factory, Forge, AutoMate | normaliser `clip((obs - mean) / sqrt(var + 1e-5), -5, 5)`; LSTM (state reset at every episode start), LayerNorm, ELU MLP; output clipped to [-1, 1] |
| `residual` | ManiSkill3 ShootHoop, RoboDojo PPO experts | a frozen base (`base.*`) plus `residual_scale` (0.25) times a residual policy (`residual.*`); the composition is in `network` |
```python
import importlib.util, json
from huggingface_hub import hf_hub_download
repo = "wenqqqq/NetScribe"
path = lambda f: hf_hub_download(repo, f"experts/state/{f}")
spec = importlib.util.spec_from_file_location("forward", path("forward.py"))
forward = importlib.util.module_from_spec(spec)
spec.loader.exec_module(forward)
manifest = [json.loads(l) for l in open(path("manifest.jsonl"))]
e = next(m for m in manifest if m["env_id"] == "PushT-v1")
params, _ = forward.load_expert(path(e["file"]), path("manifest.jsonl"), e["tag"]) # reads only this expert
policy = forward.ExpertPolicy(params, e["network"])
policy.reset(num_envs=1)
action = policy(obs) # obs: (num_envs, obs_dim); for rl_games_lstm call policy.reset_envs(done) after resets
```
The custom ManiSkill3 tasks (`KMN-Dyn-*`) and the training code are in the
[code repository](https://github.com/primorLee/NetScribe); Meta-World, RoboDojo, Isaac Lab, dm_control, robosuite
and Gymnasium-Robotics tasks come from those benchmarks.
## Release plan
- [x] State experts, one per task (177 tasks, this repository, `experts/state/`)
- [ ] Vision-based experts in the writable format
- [ ] Writer checkpoint (vision-language model with LoRA), shared base network and weight-token decoder
## Citation
```bibtex
@article{li2026netscribe,
title = {Write the Network, Not the Code: Vision-Language Models
that Write Visual Manipulation Policies},
author = {Li, Wenzhen and Huang, Haojian and Wu, Xiaofang and Zhang, Chenxu
and Jia, Yunlong and Ma, Weitao and Zhi, Xinjie and Wu, Peiwen
and Li, Ming and Yin, Dongfu},
journal = {arXiv preprint},
year = {2026}
}
```
|