[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-109706":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":23,"topics":25,"createdAt":10,"pushedAt":26,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":16,"starSnapshotCount":16,"syncStatus":15,"lastSyncTime":30,"discoverSource":31},109706,"ODE-POLICY","NTUMARS\u002FODE-POLICY","NTUMARS","ODE Policy: Robot Learning via Action Dynamics, Not Actions (arXiv:2611.01729)","https:\u002F\u002Fntumars.github.io\u002FODE\u002F",null,"Python",150,6,1,2,0,4,23,76,27,69.43,"Apache License 2.0",false,"main",[],"2026-11-21 03:27:45","2026-11-23 17:01:38","# ODE Policy: Robot Learning via Action Dynamics, Not Actions\n\n*Natura non facit saltus. Actions should not jump either.*\n\n[Project page](https:\u002F\u002Fntumars.github.io\u002FODE\u002F) · [Paper (arXiv:2611.01729)](https:\u002F\u002Farxiv.org\u002Fabs\u002F2611.01729)\n\nA direct-action policy predicts each action chunk independently, so the motion jumps where\nchunks meet. **ODE policy** replaces only the action head: it learns how the action changes\nover the robot's physical time, a velocity field\n\n```\nda\u002Fdt = f(c, s, a)\n```\n\nand integrates it, so every action follows from the previous one.\n\n- **a**: the action state, i.e. the reference the controller tracks. On LIBERO this is the\n  end-effector pose the controller is aiming at (the *virtual target*, see\n  [docs\u002FMETHOD_NOTES.md](docs\u002FMETHOD_NOTES.md)).\n- **c**: the observation condition (8 frames of images + the language instruction).\n- **s**: proprioception, given to the vector field only.\n\n**One decision (every H = 8 control steps).**\n1. Read the observation once and encode the condition `c`; `c` and `s` stay fixed for the chunk.\n2. Integrate the field with Euler for 8 steps (one field call per step), starting from the last\n   integrated action (not the measured pose), so consecutive chunks join without a jump. The\n   paper used RK4; RK4, RK2 and Euler learn about equally well.\n3. Track the 8 integrated references with the robot's controller.\n\n**Training.** Integrate the field from the demonstrated action for 8 steps and match the\nwhole path to the demonstration (MSE), backpropagating through the solver. No velocity labels,\nno differencing. A contractive start perturbation (start shifted by δ, target offset shrinking\nby ρ^k) teaches the field to pull drift back to the demonstration.\n\n**Optional diversity head.** A small head reads the field's (detached) features at the chunk\nstart and samples a direction ε from a learned mixture, added to the velocity with a learned\nper-step rate. The field and its gradients are untouched; with ε = 0 the policy is exactly the\nplain ODE.\n\n## What is in this repository\n\n| Branch | Contents |\n|---|---|\n| `main` | ODE policy, the imitation-learning baselines of the paper, LIBERO (+ LIBERO-plus) training \u002F evaluation, the 2D multimodal navigation task |\n| `real-r1lite` | Real-robot code for the Galaxea R1 Lite (two arms, joint space): data conversion, training, deployment |\n| `vla-pi05` | ODE action head for the π0.5 VLA (openpi), replacing its flow-matching action expert |\n\nMethods on `main` (`\u003Cpolicy>` names for the scripts below):\n\n| Policy | Name | Action head |\n|---|---|---|\n| **ODE-MLP** (ours) | `ode` | velocity field = FiLM residual MLP, integrated with Euler |\n| **ODE-DiT** (ours) | `ode_dit` | velocity field = adaLN DiT blocks, integrated with Euler |\n| FM-DiT | `fm_dit` | conditional flow matching, DiT |\n| FM-UNet | `fm_unet` | conditional flow matching, 1D UNet |\n| A2A-DiT | `a2a_dit` | flow from the action history, DiT |\n| A2A | `a2a` | flow from the action history, MLP |\n| DDPM-DiT | `ddpm_dit` | diffusion, DiT |\n| DDPM-UNet | `ddpm_unet` | diffusion, 1D UNet (Diffusion Policy) |\n| DDIM-UNet | `ddim_unet` | DDIM sampling, 1D UNet |\n| MARS | `mars` | flow matching with a learned history \u002F noise router |\n| ACT | `act` | CVAE + transformer decoder |\n\nAll methods share the same observation encoder (ResNet18 with GroupNorm, randomly initialised,\n8 frames + a frozen CLIP embedding of the instruction) and, on LIBERO, about 24M parameters\noutside the encoder.\n\n## Installation\n\nLinux with an NVIDIA GPU and conda. One script sets up everything, with the exact versions the\npaper's results were produced with (Python 3.10, PyTorch 2.5.1 + CUDA 12.1, robosuite 1.4.1,\nMuJoCo 2.3.5, LIBERO at a pinned commit):\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002FJIAjindou\u002FODE-POLICY.git && cd ODE-POLICY\nbash scripts\u002Fsetup_env.sh          # creates the conda env \"ode_policy\"\nconda activate ode_policy\n```\n\nOptions (environment variables): `ENV_NAME`, `ENV_PREFIX` (env at a path), `TORCH_CUDA`\n(`cu118` \u002F `cu121` \u002F `cpu`). LIBERO's path config is written to `third_party\u002Flibero_config\u002F`\nand selected through `LIBERO_CONFIG_PATH`, set for this conda env only (`~\u002F.libero` is not\ntouched). Rendering uses EGL (`MUJOCO_GL=egl`, set by the scripts).\n\n## Quick start: 2D navigation (minutes)\n\nA circle agent passes one of four gaps in a wall; all four routes are demonstrated equally\noften. A quick check that the installation works, and the multimodality experiment of the paper:\n\n```bash\nbash scripts\u002Frun_nav2d.sh ode        # also: fm_dit | a2a_dit | mars;  optional 2nd arg: seed\n```\n\nIt generates 200 demonstrations, trains for 20 epochs and evaluates 100 rollouts at epochs\n1 \u002F 3 \u002F 5 \u002F 10 \u002F 20: success rate, how often each route is taken, and the mode balance γ\n(1 = all four routes equally often). Results and trajectory plots are written to\n`il_outputs\u002Fode_nav2d_s42\u002Fnav2d\u002Feval\u002F`.\n\n## LIBERO\n\n**Data** (≈34 GB download):\n\n```bash\nbash scripts\u002Fprepare_libero_data.sh\n```\n\nThis downloads the official demonstrations, converts each suite to zarr with a CLIP embedding\nof every instruction, merges the four suites into one training set\n(`data_policy\u002Flibero_4suite_50demo.zarr`, 40 tasks, 2000 demonstrations) and derives the ODE\npolicy's virtual-target version (`data_policy\u002Flibero_4suite_50demo_ode_vt.zarr`; images are\nsymlinked, so it costs megabytes).\n\n**Train** one model on all four suites (100-epoch cosine schedule, batch 32, seed 42):\n\n```bash\nbash scripts\u002Ftrain_libero.sh ode\nbash scripts\u002Ftrain_libero.sh fm_dit            # any policy name from the table above\nbash scripts\u002Ftrain_libero.sh ode libero_4suite train_config.training_params.checkpoint_epochs=[1,10,100]\n```\n\nCheckpoints are written to `il_outputs\u002F\u003Cpolicy>\u002Flibero_4suite\u002Fcheckpoints\u002F\u003Cepoch>.ckpt`.\nThe configuration in [`ode.yaml`](ode_policy\u002Fconfigs\u002Fpolicy_config\u002Fode.yaml) is the one used in\nthe paper except the solver, which defaults to Euler; add `policy_config.solver=rk4` to reproduce\nthe paper's runs exactly.\n\n**Evaluate** on the four suites (10 tasks × 20 episodes each, LIBERO's fixed initial states):\n\n```bash\nbash scripts\u002Feval_libero.sh il_outputs\u002Fode\u002Flibero_4suite\u002Fcheckpoints\u002F100.ckpt\nbash scripts\u002Feval_libero.sh il_outputs\u002Fode\u002Flibero_4suite\u002Fcheckpoints\u002F100.ckpt libero_object\n```\n\nThe ODE evaluator defaults to the paper's protocol (8 steps per inference, carried execution,\ntracker gain 1, centre of the diversity head's mixture component). Every evaluation also\nrecords execution quality: completion time, end-effector jerk, command smoothness inside and\nacross chunks, and inference time (`__exec__` in the result json).\n\nTo reproduce the paper's experiments (data efficiency, network size, chunk length, integrator,\nLIBERO-plus zero-shot generalisation, inference speed), see\n[docs\u002FREPRODUCE.md](docs\u002FREPRODUCE.md).\n\n## Using ODE policy on your own robot or dataset\n\nThe one step that matters is choosing the action state `a` so that the controller reproduces\nthe demonstration from it: [docs\u002FPORTING.md](docs\u002FPORTING.md) covers the virtual target for\ndelta controllers, absolute and joint-space control, the pose representation, and the settings\nthat must stay aligned between training and execution. [docs\u002FMETHOD_NOTES.md](docs\u002FMETHOD_NOTES.md)\ncollects what we learned along the way, including what did not work.\n\n## Repository layout\n\n```\node_policy\u002F\n├── policies\u002Fode\u002Fode_image_policy.py   # the ODE policy: vector fields, integration, loss, diversity head\n├── policies\u002F{fm,a2a,dp,mars,act}\u002F     # baselines\n├── configs\u002Fpolicy_config\u002F             # one yaml per policy (ode.yaml = the paper's configuration)\n├── libero\u002F                            # LIBERO: data conversion, env wrapper, training runner, evaluators\n│   ├── build_ode_zarr.py              #   demonstrations -> virtual-target poses for the ODE policy\n│   ├── pose.py                        #   pose representation and the pose -> OSC command tracker\n│   ├── eval_ode_policy.py             #   ODE evaluator\n│   ├── libero_eval_runner.py          #   evaluator for every other policy\n│   └── libero_plus_eval_runner.py     #   LIBERO-plus zero-shot evaluation\n├── nav2d\u002F                             # 2D multimodal navigation task\n├── datasets\u002F utils\u002F runners\u002F          # zarr datasets, encoders, normalizers, checkpointing\n└── train.py                           # Hydra training entry point\nscripts\u002F                               # setup, data, train, eval\ndocs\u002F                                  # reproduction guide, porting guide, method notes\n```\n\n## Citation\n\n```bibtex\n@article{jia2026ode,\n  title   = {{ODE} Policy: Robot Learning via Action Dynamics, Not Actions},\n  author  = {Jia, Jindou and Li, Jingliang and Zuo, Kuangji and An, Tuo and Hu, Yuxuan and Zhao, Mengfei\n             and Lyu, Bofan and Bai, Jiaqi and Zhu, Daoyuan and Dai, Hengyu and Zhang, Junpeng and Yang, Jianfei},\n  journal = {arXiv preprint arXiv:2611.01729},\n  year    = {2026}\n}\n```\n\n## License and acknowledgments\n\nApache License 2.0, see [LICENSE](LICENSE). The training and policy infrastructure descends from\n[RoboVerse](https:\u002F\u002Fgithub.com\u002FRoboVerseOrg\u002FRoboVerse) and\n[Diffusion Policy](https:\u002F\u002Fgithub.com\u002Freal-stanford\u002Fdiffusion_policy); the ACT baseline builds on\n[ACT](https:\u002F\u002Fgithub.com\u002Ftonyzhaozh\u002Fact) (DETR). We thank the authors of\n[LIBERO](https:\u002F\u002Fgithub.com\u002FLifelong-Robot-Learning\u002FLIBERO) and\n[LIBERO-plus](https:\u002F\u002Fgithub.com\u002Fsylvestf\u002FLIBERO-plus) for the benchmarks and demonstrations.\n","ODE Policy 是一种面向机器人模仿学习的动作生成方法，通过建模动作状态随时间演化的微分方程（da\u002Fdt = f(c, s, a)）替代传统离散动作预测，实现平滑、连续的控制信号输出。其核心是仅替换策略网络的动作头，引入可微分的数值积分（如Euler或RK4），结合视觉-语言观测条件与本体感知输入，确保动作块间无缝衔接；支持可选多样性头以增强泛化能力。项目已在LIBERO仿真基准和真实机械臂（Galaxea R1 Lite）上验证，适用于需要高连续性、低抖动控制的灵巧操作任务，如具身导航、多步装配与指令驱动的端到端机器人控制。","2026-11-24 04:37:12","CREATED_QUERY"]