--- pipeline_tag: robotics tags: - robotics - vision-language-model - weight-generation - manipulation - zero-shot ---

NetScribe

# 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 Li1,2,\*,†, Haojian Huang3,4,\*, Xiaofang Wu5,\*, Chenxu Zhang6, Yunlong Jia7, Weitao Ma8, Xinjie Zhi9, Peiwen Wu9, Ming Li10, Dongfu Yin11,† 1University of Macau, 2Qwen Team, Alibaba Group, 3The University of Hong Kong, 4The Hong Kong University of Science and Technology (GZ), 5Hunan University, 6Imperial College London, 7University of Southern California, 8City University of Hong Kong, 9Southern University of Science and Technology, 10The Hong Kong University of Science and Technology, 11Guangdong Laboratory of Artificial Intelligence and Digital Economy (SZ)
\*Equal contribution · †Corresponding author · Project lead: Wenzhen Li ![NetScribe writes policy networks for manipulation tasks it has never seen](https://primorlee.github.io/NetScribe/static/images/teaser.jpg) ## 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 `/` (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} } ```