Parvulus / README.md
aasivas's picture
Add arXiv:2611.37870 preprint citation and HF arXiv tag to README.md
35b7a34 verified
|
Raw History Blame Contribute Delete
21 kB
---
language:
- en
license: apache-2.0
tags:
- robotics
- flow-matching
- world-models
- imitation-learning
- libero
- action-chunking
- pytorch
- safetensors
- arxiv:2611.37870
pipeline_tag: robotics
---
# PARVULUS: 10M-Scale World Action Model for Robot Manipulation
**PARVULUS** is an ultra-efficient 10M-parameter Flow Matching World Action Model (WAM) designed for continuous robot manipulation. Trained on the canonical [LIBERO](https://github.com/Lifelong-Robot-Learning/LIBERO) benchmark, Parvulus achieves a **90.88% average success rate across all 40 tasks** while running at real-time control frequencies (>100 Hz in C++/CUDA, sub-40ms with PyTorch KV-caching).
---
## Update: `Parvulus-Post` Release
We are releasing **`Parvulus-Post`** (`parvulus-post/`), a post-trained checkpoint of the same **9.97M-parameter** (`~38 MB` FP32) Parvulus architecture, drop-in compatible with the existing PyTorch and C++/CUDA inference runtimes with **no code modifications**. Across **LIBERO-40**, `Parvulus-Post` reaches **98.85% ± 0.25%** average success (and **97.78% ± 0.22%** across all **130 LIBERO tasks**), remaining competitive with the strongest published 2B–7B VLAs and WAMs (98.5%–99.9%) at **200×–700× smaller scale** and without any pretrained VLM or video foundation backbone, while also improving visual, kinematic, and layout generalization over base `Parvulus`.
### Quickstart (`Parvulus-Post`, No Code Changes)
```python
from infer import ParvulusInference
# Drop-in compatible with the existing ParvulusInference client
infer = ParvulusInference.from_pretrained(
"parvulus-post",
scale_path="parvulus-post/action_scale.json",
device="cuda",
use_kv_cache=True,
num_ode_steps=10,
)
```
For the standalone C++/CUDA engine:
```bash
python3 c_engine/export_from_safetensors.py \
--weights parvulus-post/parvulus.safetensors \
--scale_json parvulus-post/action_scale.json
```
### LIBERO-40 Competitiveness vs. Published VLAs & WAMs
| Model | Params | Type | Pretraining / Source Model | Spatial | Object | Goal | Long (L10) | **Avg** |
| :--- | :---: | :---: | :--- | :---: | :---: | :---: | :---: | :---: |
| **LaST-R1** *(arXiv:2604.28192)* | ~4B+ | VLA + Latent WAM | Fine-tuned from `Qwen3-VL-4B` + robot pretraining | 99.8% | 100.0% | 100.0% | 99.8% | **99.9%** |
| **Online SRPO** *(arXiv:2511.15605)* | 7.0B | VLA | Fine-tuned from `OpenVLA-OFT` (`Llama-2-7B`) | 98.8% | 100.0% | 99.4% | 98.6% | **99.2%** |
| **SimpleVLA-RL** *(arXiv:2509.09674)* | 7.0B | VLA | Fine-tuned from `OpenVLA-OFT` (`Llama-2-7B`) | 99.4% | 99.1% | 99.2% | 98.5% | **99.1%** |
| **π₀.₅ + MoH** *(arXiv:2511.19433)* | 3.0B | VLA (Flow) | Fine-tuned from `π₀.₅` (`PaliGemma-3B` + robot pretraining) | 98.8% | 100.0% | 98.8% | 98.4% | **99.0%** |
| **LaST 1.0** *(arXiv:2611.23974)* | >1.7B (MoE) | WAM (Latent) | Initialized from `Qwen3-1.7B` + robot pretraining | 98.5% | 99.8% | 99.1% | 98.5% | **99.0%** |
| **SaiVLA-0** *(arXiv:2603.08124)* | ~3.0B | VLA | Frozen `GR00T-N1.5 / Eagle2.5` VLM backbone | 99.8% | 100.0% | 98.2% | 97.8% | **99.0%** |
| **DreamWAM** *(arXiv:2608.04996)* | ~5B+ | WAM (Video Diff.) | Fine-tuned from `Wan2.2-5B` (+ `RAFT`/`DA3`/`DINOv2` targets) | 99.60% | 99.80% | 98.60% | 97.60% | **98.90%** |
| **`Parvulus-Post` (Ours)** | **9.97M** | **WAM (Flow)** | **From scratch** (post-trained from `Parvulus`, no VLM/video backbone) | **99.20%** | **100.00%** | **99.00%** | **97.20%** | **98.85%** |
| **OpenWAM-VTA** *(arXiv:2610.07922)* | ~5B+ | WAM (Video Diff.) | Fine-tuned from `Wan2.2-5B` + 10k-hr robot video pretraining | 98.6% | 99.4% | 98.4% | 97.8% | 98.6% |
| **Cosmos-Policy** *(arXiv:2601.16163)* | 2.0B | WAM (Video Diff.) | Fine-tuned from `Cosmos-Predict2-2B` | 98.1% | 100.0% | 98.2% | 97.6% | 98.5% |
| **LingBot-VA** *(arXiv:2601.21998)* | 5.3B | WAM (Video Diff.) | Fine-tuned from `Wan2.2-5B` (MoT) | 98.5% | 99.6% | 97.2% | 98.5% | 98.5% |
| **π_RL** *(arXiv:2510.25889)* | 3.3B | VLA (Flow) | Fine-tuned from `π₀.₅` (`PaliGemma-3B` + robot pretraining) | 99.6% | 100.0% | 99.6% | 94.0% | 98.3% |
| **X-VLA** *(arXiv:2510.10274)* | 0.9B | VLA (Flow) | Fine-tuned from `Florence-2` + robot pretraining | 98.2% | 98.6% | 97.8% | 97.6% | 98.1% |
| **Fast-WAM** *(arXiv:2603.16666)* | ~5B+ | WAM (Video + Flow) | Fine-tuned from `Wan2.2-5B` | 98.2% | 100.0% | 97.0% | 95.2% | 97.6% |
| **VLA-Adapter** *(arXiv:2509.09372)* | 0.5B | VLA | Fine-tuned from `Qwen2.5-0.5B` + `DINOv2`/`SigLIP` | 97.8% | 99.2% | 97.2% | 95.0% | 97.3% |
| **OpenVLA-OFT** *(arXiv:2502.19645)* | 7.0B | VLA | Fine-tuned from `OpenVLA-7B` (`Llama-2-7B`) | 97.6% | 98.4% | 97.9% | 94.5% | 97.1% |
| **π₀.₅** *(Physical Intelligence)* | 3.3B | VLA (Flow) | Fine-tuned from `PaliGemma-3B` + robot pretraining | 98.8% | 98.2% | 98.0% | 92.4% | 96.9% |
| **π₀** *(Black et al., 2024)* | 3.3B | VLA (Flow) | Fine-tuned from `PaliGemma-3B` + robot pretraining | 96.8% | 98.8% | 95.8% | 85.2% | 94.2% |
| **`Parvulus` (Base, Ours)** | 9.97M | WAM (Flow) | **From scratch** (no VLM/video pretraining) | 92.67% | 91.13% | 89.47% | 90.27% | 90.88% |
### `Parvulus-Post` Full LIBERO-130 Suite Results (3 Seeds, `N = 19,500` Rollouts)
Evaluated with receding-horizon chunking (`H = 8, C = 8`, 10 ODE steps) across 3 random seeds (50 trials per task per seed):
| Benchmark Suite | Tasks | Rollout Trials | Success (`once`) | Success (`at-end`) |
| :--- | :---: | :---: | :---: | :---: |
| **LIBERO-Spatial** | 10 | 1,500 | **99.20%** | 97.60% |
| **LIBERO-Object** | 10 | 1,500 | **100.00%** | 98.80% |
| **LIBERO-Goal** | 10 | 1,500 | **99.00%** | 97.27% |
| **LIBERO-10 (Long)** | 10 | 1,500 | **97.20%** | 93.87% |
| **LIBERO-40 Average** | **40** | **6,000** | **98.85% ± 0.25%** | **96.88% ± 0.38%** |
| **LIBERO-90** | 90 | 13,500 | **97.31% ± 0.25%** | 94.73% ± 0.23% |
| **ALL-130 Overall** | **130** | **19,500** | **97.78% ± 0.22%** | **95.39% ± 0.20%** |
### Out-of-Distribution Generalization Self-Comparison (`Parvulus` Base vs. `Parvulus-Post`)
#### 1. LIBERO-PRO (20 Official Perturbation Suites, `N = 10,000` Rollouts Each)
Evaluated under the official LIBERO-PRO horizon (`220 / 280 / 300 / 520` steps) across all 4 suites × 5 perturbation axes:
| Perturbation Axis | `Parvulus` (Base) | **`Parvulus-Post`** | Delta |
| :--- | :---: | :---: | :---: |
| **Object** *(appearance / scale)* | 29.30% | **54.00%** | **+24.70%** |
| **Environment** *(table swap)* | 15.80% | **20.70%** | **+4.90%** |
| **Task** *(goal / target shift)* | 8.10% | **12.70%** | **+4.60%** |
| **Position** *(object swap)* | 1.70% | **2.40%** | **+0.70%** |
| **Semantic** *(paraphrased language)* | **57.40%** | 43.05% | -14.35% |
| **Overall (Official Horizon)** | 22.46% | **26.57%** | **+4.11%** |
| **Overall (500/600 Horizon)** | 23.48% | **27.61%** | **+4.13%** |
#### 2. LIBERO-Plus (7 Perturbation Dimensions, `500/600` Horizon)
To avoid confounding visual/kinematic perturbations with LIBERO-Plus's internal filename metadata suffixes (e.g., `... view 0 0 100 0 0 initstate 0 noise 1` appended to `task.language`), non-language dimensions strip trailing metadata tags while all `1,537` **Language Instructions** paraphrases remain untouched. We report both an **exact paired 700-task comparison** (`25` tasks × `7` dimensions × `4` suites, identical tasks for both checkpoints) and the **full 10,030-task** `Parvulus-Post` evaluation:
| Perturbation Dimension | `Parvulus` Base *(paired 700)* | **`Parvulus-Post`** *(paired 700)* | **Paired Delta** | **`Parvulus-Post`** *(full 10,030)* |
| :--- | :---: | :---: | :---: | :---: |
| **Camera Viewpoints** | 25.00% | **79.00%** | **+54.00%** | **51.09%** |
| **Robot Initial States** | 52.00% | **87.00%** | **+35.00%** | **72.58%** |
| **Objects Layout** | 73.00% | **90.00%** | **+17.00%** | **78.36%** |
| **Background Textures** | 13.00% | **21.00%** | **+8.00%** | **25.00%** |
| **Sensor Noise** | 48.00% | **55.00%** | **+7.00%** | **53.09%** |
| **Light Conditions** | 5.00% | **11.00%** | **+6.00%** | **9.19%** |
| **Language Instructions** | **58.00%** | 31.00% | -27.00% | 20.82% *(Base full: 58.49%)* |
| **Overall** | 39.14% | **53.43%** | **+14.29%** | **46.67%** *(220–520h: 45.35%)* |
> **Summary:** `Parvulus-Post` substantially improves generalization across all visual, viewpoint, noise, layout, robot initial-state, environment, and task-shift dimensions, with the sole regression occurring on heavily paraphrased out-of-distribution language instructions.
---
## 1. Highlights
- **9.98M parameters** (~20 MB in BF16/FP16, ~38 MB in FP32) for standalone robot control.
- **90.88% ± 0.37%** average success across all 40 canonical LIBERO tasks (N = 6,000 simulation rollouts).
- Pinned `google-t5/t5-small` text representations with a trained 2-layer projection head.
- **Multiple Execution Modes**:
- **PyTorch KV-Cached**: ≈ 38.8 ms (206 Hz action bandwidth).
- **Standalone C++ / CUDA Engine**: **7.28 ms** (>1,000 Hz action bandwidth, pure CUDA/cuBLAS).
- **Intel Iris Xe Hybrid**: ≈ 106.6 ms on low-power laptop integrated graphics (`xpu` vision + CPU ODE).
- Includes optional auxiliary training decoders (`parvulus_auxiliary.safetensors`, 29.15M params) for auto-regressive visual self-rollout, motion change estimation, and self-reconstruction from noisy images.
---
## 2. Benchmark Performance
Evaluated across the 4 canonical LIBERO suites (N = 6,000 physical rollouts, 10 seeds, receding-horizon chunking H = 8, C = 8):
| Benchmark Suite | Canonical Tasks | Rollout Trials | Success Rate |
| :--- | :---: | :---: | :---: |
| **LIBERO-Spatial** | 10 | 1,500 | **92.67%** |
| **LIBERO-Object** | 10 | 1,500 | **91.13%** |
| **LIBERO-Goal** | 10 | 1,500 | **89.47%** |
| **LIBERO-10 (Long)** | 10 | 1,500 | **90.27%** |
| **Full Benchmark Average** | **40** | **6,000** | **90.88% ± 0.37%** |
---
## 3. Repository Structure
```
.
├── parvulus.safetensors # Action-only core policy weights (9.98M params, ~39 MB FP32)
├── parvulus_full.safetensors # Full model weights: action policy + auxiliary heads (39.12M params, ~156 MB)
├── parvulus_auxiliary.safetensors # Auxiliary world model heads only (video, change, self-recon; 29.15M params)
├── model.safetensors # HuggingFace default entrypoint (alias of parvulus.safetensors)
├── parvulus-post/ # Parvulus-Post (9.97M, 98.85% LIBERO-40 / 97.78% ALL-130)
│ ├── parvulus.safetensors # Parvulus-Post core policy weights (9.97M params, ~38 MB FP32)
│ ├── model.safetensors # HuggingFace alias of parvulus-post/parvulus.safetensors
│ ├── parvulus_full.safetensors # Parvulus-Post full weights + auxiliary heads (39.12M params)
│ ├── parvulus_auxiliary.safetensors # Auxiliary world model heads (29.15M params)
│ ├── config.json # Model hyperparameters and pinned T5 commit revision
│ └── action_scale.json # Identity [-1, 1] action scaling for Parvulus-Post
│
├── config.json # Model hyperparameters and pinned T5 commit revision
├── action_scale.json # 7-DoF per-channel min/max normalization boundaries
├── pyproject.toml # Standard package configuration
├── requirements.txt # Minimal Python dependencies
├── prepare_runtime.py # Setup script: builds C engine, generates binaries, prepares text encoder
│
├── parvulus_runtime.py # High-performance Python runtime for standalone C engine
├── infer.py # High-level ParvulusInference client (supports CUDA, C engine, XPU, Hybrid)
├── parvulus.py # Complete PyTorch architecture (DualViewEncoder, CVMixer, FlowDecoder)
├── text_encoder.py # Pinned T5 text tokenizer and projection head
├── action_utils.py # Action normalization and denormalization helpers
│
└── c_engine/ # Dependency-free C++ / CUDA Standalone Engine
├── Makefile # Make-based build script
├── build.sh # Convenient build script
├── parvulus_engine.cu / .h # Core C++/CUDA inference engine (136 Hz chunk rate)
├── vision_encoder.cu / .cuh # Fused DualView vision encoder
├── parvulus_c_api.cpp / .h # Standard C ABI exports for C/C++/ROS 2/Rust
├── parvulus_runtime_cli.cpp # Standalone CLI binary entry point
├── canonical_tasks.json # 40 canonical task instructions
├── export_from_safetensors.py # Script generating model binary, scale, and embeddings
└── export_text_encoder_onnx.py # Standalone converter for T5-small text encoder to ONNX
```
---
## 4. Quickstart: Python Inference
### Installation
```bash
pip install -r requirements.txt
```
### 1. Basic Action Chunk Prediction
```python
import numpy as np
from PIL import Image
from infer import ParvulusInference
# Initialize client (auto-detects CUDA / XPU / CPU; enables fast KV-cache by default)
infer = ParvulusInference.from_pretrained(
".",
device="cuda", # Options: 'cuda', 'cpu', 'xpu', 'hybrid', or 'auto'
use_kv_cache=True, # Enables sub-40ms inference
num_ode_steps=10
)
# Prepare inputs: dual 256x256 RGB cameras + text prompt
agentview_img = np.array(Image.open("agentview.png")) # [256, 256, 3] uint8
wristview_img = np.array(Image.open("wristview.png")) # [256, 256, 3] uint8
task_prompt = "pick up the black bowl in the center and place it on the plate"
# Predict 8-step continuous action chunk [8, 7]
# (dx, dy, dz, drot_x, drot_y, drot_z, gripper)
action_chunk = infer.predict_chunk(agentview_img, wristview_img, task_description=task_prompt)
print(f"Predicted action chunk (shape {action_chunk.shape}):\n{action_chunk}")
```
### 2. Environment Stepping Loop (Receding Horizon)
```python
infer.reset(task_description="pick up the milk and place it in the basket")
obs = env.reset()
agentview_img = obs["agentview_image"]
wristview_img = obs["robot0_eye_in_hand_image"]
done = False
while not done:
# In your simulation or real robot loop:
action = infer.step(agentview_img, wristview_img) # [7] float32 action
obs, reward, done, info = env.step(action)
agentview_img = obs["agentview_image"]
wristview_img = obs["robot0_eye_in_hand_image"]
```
### 3. Continuous Overlapped Pipelined Execution (H = 8, C = 4)
To achieve zero-latency continuous robot motion, Parvulus supports overlapping chunk generation with robot motion execution:
1. Predict an 8-step chunk (A_0).
2. Execute the first 4 actions (A_0[0:4]).
3. At step 4, capture a fresh observation and trigger background inference for the next chunk (A_1).
4. Concurrently execute the remaining tail actions (A_0[4:8]) on the robot while the model predicts A_1.
5. Transition seamlessly into A_1 with zero robot idling.
```python
from concurrent.futures import ThreadPoolExecutor
executor = ThreadPoolExecutor(max_workers=1)
infer.reset(task_description="pick up the black bowl in the center and place it on the plate")
# 1. Reset environment and capture initial observation at t = 0
obs = env.reset()
agentview_img = obs["agentview_image"]
wristview_img = obs["robot0_eye_in_hand_image"]
# 2. Generate initial 8-step action chunk (covers t = 0..7)
current_chunk = infer.predict_chunk(agentview_img, wristview_img)
# 3. Execute the initial head (t = 0..3) before entering the pipelined loop
done = False
for a in current_chunk[0:4]:
obs, reward, done, _ = env.step(a)
if done:
break
# Continuous overlapped loop: each cycle executes tail actions (4..7) while predicting the next chunk
while not done:
# 4. Capture observation at step t = 4 (or 4k)
agentview_img = obs["agentview_image"]
wristview_img = obs["robot0_eye_in_hand_image"]
# 5. Trigger background inference for next chunk (covers upcoming horizon)
future_chunk = executor.submit(infer.predict_chunk, agentview_img, wristview_img)
# 6. Overlap: Execute remaining 4 tail actions (4..7) while background inference runs
for a in current_chunk[4:8]:
obs, reward, done, _ = env.step(a)
if done:
break
if done:
break
# 7. Retrieve newly generated chunk with zero robot idle time
current_chunk = future_chunk.result()
```
### 4. World-Model Self-Rollout (Mental Simulation)
Parvulus provides optional auxiliary decoders (`parvulus_auxiliary.safetensors`) for predicting future frames without interacting with the physical environment:
```python
infer = ParvulusInference.from_pretrained(
".",
load_auxiliary=True,
device="cuda"
)
# Predict action chunk and imagined next observation
action_chunk, next_agent_img, next_wrist_img = infer.rollout_step(
agentview_img, wristview_img, task_description="push the button"
)
```
---
## 5. Standalone Native C++ / CUDA Runtime (Vector-First, 7.3 ms / chunk)
For high-frequency physical robot deployments or low-overhead environments, Parvulus includes a standalone C++/CUDA runtime engine in `c_engine/` with **few dependencies**.
### Features
- Complete dual-camera visual encoding + 10-step Euler ODE flow matching loop runs in **<8 ms** (>1,000 Hz action bandwidth).
- Natively conditioned on 256-dim continuous embedding vectors (`task_vector`) to eliminate text tokenization latency in the robot control loop.
- Automatically maps arbitrary natural language instructions or perturbations into 256-dim vectors via ONNX Runtime (<4 ms) before passing to the engine.
### Preparing & Building the Runtime
```bash
# Automated preparation (builds C engine, prepares weights & ONNX text encoder)
python3 prepare_runtime.py
# Or build C++ engine directly:
cd c_engine && make -j$(nproc)
```
This produces:
- `libparvulus.so`: Shared C ABI library for Python ctypes, C, C++, ROS 2, or Rust.
- `parvulus_runtime`: Standalone CLI binary for headless benchmarks and batch action generation.
- `export_text_encoder_onnx.py`: Converter utility to export the 136 MB ONNX text encoder on demand (or download it from Hugging Face).
### Standalone CLI Benchmark
```bash
./c_engine/parvulus_runtime --benchmark 100
```
### Python Quickstart (`parvulus_runtime.py`)
```python
import numpy as np
from parvulus_runtime import ParvulusRuntime
# Initialize standalone C++/CUDA engine
runtime = ParvulusRuntime(device_id=0, num_euler_steps=10)
# 1. Condition with a 256-dim task vector:
runtime.reset(task_vector=my_256_dim_vector)
# Or condition with arbitrary text (automatic dynamic ONNX encoding):
# runtime.reset(task_description="grasp the black bowl and place it on the plate")
# 2. Step in real-time robot loop (streams only camera frames at 136 Hz):
action = runtime.step(agentview_img, wristview_img) # [7] float32
```
For detailed C ABI signatures and non-Python integration instructions, see [`c_engine/README.md`](c_engine/README.md).
---
## 6. Intel Iris Xe / Arc Heterogeneous Hybrid Mode
For deployment on mobile workstations or edge devices with Intel Iris Xe or Arc integrated graphics:
```python
infer = ParvulusInference.from_pretrained(".", device="hybrid")
```
In `hybrid` mode:
1. Perception backbone (`DualViewEncoder`) executes on the iGPU (`torch.xpu`).
2. Only 16 pooled visual tokens (16 KB) transfer over PCIe to the host CPU.
3. The 10-step ODE Transformer loop runs on the high-clock CPU cores.
---
## 7. Model Details & Pinned Dependencies
- **Input Specifications**:
- `agentview`: [256, 256, 3] RGB.
- `wristview`: [256, 256, 3] RGB.
- `instruction`: Natural language string.
- **Output Action Format**:
- 8-step continuous trajectory A_t [8, 7] (dx, dy, dz, dθx, dθy, dθz, gripper).
- **Pinned Text Model**:
- `google-t5/t5-small` pinned to commit revision `df1b051c49625cf57a3d0d8d3863ed4d13564fe4`.
---
## Citation
Parvulus model weights and the associated inference code are released under a permissive license. If you find our work useful, please cite the [arXiv preprint](https://arxiv.org/abs/2611.37870) (and/or the CoRL 2026 workshop paper):
```bibtex
@misc{sivas2026parvulus_arxiv,
title={Parvulus: A 10M-Scale World Action Model for Robot Manipulation},
author={Abdullah Ali Sivas and Peter Cho-Ho Lam and Zirui Zhou and Yong Zhang},
year={2026},
eprint={2611.37870},
archivePrefix={arXiv},
primaryClass={cs.RO},
url={https://arxiv.org/abs/2611.37870}
}
@inproceedings{sivas2026parvulus,
title={Parvulus: A 10M-Scale World Action Model for Robot Manipulation},
author={Abdullah Ali Sivas and Peter Cho-Ho Lam and Zirui Zhou and Yong Zhang},
booktitle={CoRL 2026 Workshop on The Action Gap: Large Generative Models Learn Rich Knowledge},
year={2026},
url={https://openreview.net/forum?id=VcS0dE1Aoz}
}
```