Add model card for APT
#1
by nielsr HF Staff - opened
README.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
pipeline_tag: robotics
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
# APT: Action Expert Pretraining Improves Instruction Generalization of Vision-Language-Action Policies
|
| 7 |
+
|
| 8 |
+
This repository contains the checkpoints for APT, a two-stage training method for Vision-Language-Action (VLA) models that emphasizes Action Expert Pretraining to improve generalization to out-of-distribution (OOD) instructions.
|
| 9 |
+
|
| 10 |
+
* **Paper**: [APT: Action Expert Pretraining Improves Instruction Generalization of Vision-Language-Action Policies](https://huggingface.co/papers/2606.12366)
|
| 11 |
+
* **Project Page**: [https://xukechun.github.io/papers/APT/](https://xukechun.github.io/papers/APT/)
|
| 12 |
+
* **Code/Github**: [https://github.com/xukechun/APT](https://github.com/xukechun/APT)
|
| 13 |
+
|
| 14 |
+
## Method Overview
|
| 15 |
+
|
| 16 |
+
APT factorizes the VLA policy into a Vision-Action (VA) prior and a language-conditioned VLA likelihood. In Stage 1, the action expert is pretrained as a VA prior on vision-action pairs from a frozen VLM to bypass language imbalance. In Stage 2, language tokens are injected through a gated fusion mechanism that integrates VLM features while preserving the learned visuomotor prior.
|
| 17 |
+
|
| 18 |
+
## Sample Usage
|
| 19 |
+
|
| 20 |
+
For local inference, you can instantiate the planner directly:
|
| 21 |
+
|
| 22 |
+
```python
|
| 23 |
+
from apt.infer.planner import TrajPlanner
|
| 24 |
+
|
| 25 |
+
planner = TrajPlanner(
|
| 26 |
+
ckpt_path="checkpoints/APT/ft_vla/ckpt_latest.pt",
|
| 27 |
+
device="cuda:0",
|
| 28 |
+
ensemble=4,
|
| 29 |
+
use_ema=False,
|
| 30 |
+
)
|
| 31 |
+
planner.set_prompt("Pick up the grape and place it on the pink box.")
|
| 32 |
+
planner.add_obs_frame(obs_frame)
|
| 33 |
+
actions = planner.get_action()
|
| 34 |
+
```
|
| 35 |
+
|
| 36 |
+
## Citation
|
| 37 |
+
|
| 38 |
+
```bibtex
|
| 39 |
+
@article{xu2026apt,
|
| 40 |
+
title={APT: Action Expert Pretraining Improves Instruction Generalization of Vision-Language-Action Policies},
|
| 41 |
+
author={Xu, Kechun and Zhu, Zhenjie and Chen, Anzhe and Xiong, Rong and Wang, Yue},
|
| 42 |
+
journal={arXiv preprint arXiv:2606.12366},
|
| 43 |
+
year={2026}
|
| 44 |
+
}
|
| 45 |
+
```
|