Write the Network, Not the Code: Vision-Language Models that Write Visual Manipulation Policies

Wenzhen Li1,2,*,†Haojian Huang3,4,*Xiaofang Wu5,*Chenxu Zhang6Yunlong Jia7 Weitao Ma8Xinjie Zhi9Peiwen Wu9Ming Li10Dongfu Yin11,†
1University of Macau2Qwen Team, Alibaba Group3The University of Hong Kong4The Hong Kong University of Science and Technology (GZ)5Hunan University6Imperial College London 7University of Southern California8City University of Hong Kong9Southern University of Science and Technology 10The Hong Kong University of Science and Technology11Guangdong Laboratory of Artificial Intelligence and Digital Economy (SZ)
*Equal contribution†Corresponding authorProject lead: Wenzhen Li
arXiv (soon) Code Weights Data Video
NetScribe writes policy networks for manipulation tasks it has never seen
NetScribe writes policy networks for manipulation tasks it has never seen. Left: seen (training) tasks from three benchmarks. Center: inference on an unseen task. From a language instruction and scene images alone, the vision-language model writes a sequence of weight tokens; decoded and added to a base network shared by all tasks, they form the written network, which controls the robot in closed loop, zero-shot. Right: unseen (held-out) tasks. Bottom left: the average success rate on unseen tasks scales with the number of expert networks used for training. Bottom right: zero-shot success rate on the unseen tasks of all three benchmarks. All thumbnails are simulator frames.
93.2%
success of written networks on seen tasks
29.2%
zero-shot success on unseen tasks (π0.5 fine-tuned: 18.4%)
+30
points over code-writing LLMs on dynamic and fine-grained manipulation
3
benchmarks: Meta-World, ManiSkill3 and RoboDojo

Abstract

Large language models (LLMs) can now control robots without task-specific training: given a language instruction, they either generate a program for the task or directly output end-effector poses. Both approaches work well for static pick-and-place, but they struggle on dynamic and fine-grained manipulation, where the robot must react to visual observations at every control step: a generated program commits to its motions before execution, and an LLM is too slow to be queried at control frequency. Learned visuomotor policies provide this closed-loop control, but they generalize poorly: every new task or scene requires retraining. We ask whether a language model can instead write the network itself. We present NetScribe, a vision-language model (VLM) 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, these weights yield a policy for the new task, which runs in closed loop without further training. Two designs make this learnable. First, a writable policy format, in which all tasks share one network on top of a frozen visual encoder and differ only in this small set of weights. Second, supervision from networks rather than trajectories: for each training task, an automatic factory starts from a scripted controller that a frontier LLM writes and refines over several rounds, distills it into a state-based policy with DAgger, fine-tunes that policy with PPO, and distills the result into a vision-based expert network in the writable format. On Meta-World, ManiSkill3 and RoboDojo, written networks achieve a success rate of 93.2% on seen tasks and, zero-shot, 29.2% on unseen tasks, whereas π0.5 fine-tuned on the same training tasks achieves 18.4% and a frontier LLM that directly controls the end effector achieves 25.5%. Compared with LLMs that generate code from the same visual observations, written networks are more than 30 points better on dynamic and fine-grained manipulation. Performance scales with the expert library: the success rate on unseen tasks keeps increasing as the number of expert networks grows.

Video

Method

A writable policy formatAll tasks share one network on top of a frozen visual encoder and differ only in a small low-rank task delta, so a new policy is a short sequence of weight tokens that a vision-language model can write.
Supervision from networksFor each training task, an automatic factory turns a scripted controller written by a frontier LLM into a state-based expert (DAgger, then PPO) and distills it into a vision-based expert network in the writable format; these networks are the writer's labels.
Overview of NetScribe
Overview of NetScribe. Left: training. The expert network factory (bottom) turns each simulated training task into expert networks: a scripted controller written by a frontier LLM is distilled into a state-based expert with DAgger, fine-tuned with PPO, and distilled into a vision-based expert. Every expert is parameterized in the writable format, a shared base plus a low-rank task delta. The writer, a vision-language model with LoRA, takes the language instruction and scene images and writes the network as a sequence of weight tokens; it is trained with a next-token loss on the tokens of the expert's task delta. Right: an unseen task. The trained writer is queried once; the written weight tokens are decoded into a delta, which is added to the shared base, and the resulting network controls the robot in closed loop, mapping observations to actions at every step. All scenes are simulator frames.

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}
}