2toinf/X-VLA

[ICLR 2026] The offical Implementation of "Soft-Prompted Transformer as Scalable Cross-Embodiment Vision-Language-Action Model"

X‑VLA:可扩展的跨本体视觉‑语言‑动作模型

它是什么 – X‑VLA 是一个基于 Transformer 的模型,接收视觉、语言指令和本体感知数据,并预测机器人动作。它使用 软提示(soft prompts)——小型可学习嵌入,告诉共享骨干网络应控制哪个机器人本体(例如 Franka、WidowX、Agilex)。这使得单个模型可以在保持共同表示的同时,针对许多不同的机器人进行微调。

关键思想

  • 软提示架构 – 每个机器人都有自己的提示向量,从而能够在异构机器人数据集上进行跨域训练。
  • 统一的 EE6D 动作空间 – 预测是 20 维向量(6 维旋转 + 位置 + 夹爪 + 填充),可应用于任何机械臂配置。
  • 服务器‑客户端推理 – 模型作为 REST 服务运行;客户端发送包含图像、语言和本体感知的 JSON 负载,并接收预测动作。
  • LeRobot 集成 – X‑VLA 可以直接从 Hugging Face LeRobot 库加载。

预训练检查点 – 仓库列出了一个基础检查点(X‑VLA‑Pt)和许多特定本体的微调模型(例如 Libero、CALVIN、AgiWorld、SoftFold)。所有模型均托管在 Hugging Face 上,可以使用 trust_remote_code=True 加载。

安装

git clone https://github.com/2toinf/X-VLA.git
cd X-VLA
conda create -n xvla python=3.10 -y && conda activate xvla
pip install -r requirements.txt   # 或 conda env create -f environment.yml

运行推理服务器

from transformers import AutoModel, AutoProcessor
model = AutoModel.from_pretrained("2toINF/X-VLA-WidowX", trust_remote_code=True)
processor = AutoProcessor.from_pretrained("2toINF/X-VLA-WidowX", trust_remote_code=True)
model.run(processor, host="0.0.0.0", port=8000)

服务器随后监听 POST /act 请求。

客户端请求格式

字段 类型 描述
proprio JSON 编码的 NumPy 数组 当前关节/EE6D 状态
language_instruction 字符串 自然语言任务
image0(以及可选的 image1、image2) JSON 编码的 NumPy 数组 RGB 相机帧
domain_id 整数 本体标识符(与软提示匹配)
steps 整数 流匹配解码器的去噪步数

README 和 evaluation/<domain>/<robot>/client.py 中提供了一个最小的 Python 客户端。

微调 – 可以通过创建列出轨迹文件的 meta.json、实现域加载器并在 datasets/domain_handler/registry.py 中注册来添加自定义数据。使用 accelerate launch 启动训练,并支持 LoRA 适配器以实现参数高效适配。

性能 – 论文(ICLR 2026)报告了在六个模拟器和三个真实机器人上的最先进结果,基准分数如 LIBERO 上的 98.1%,以及在 AgiBot World Challenge(IROS 2025)中获得冠军。

许可证 – Apache 2.0。


快速入门清单

  1. 安装依赖(conda + pip)。
  2. 从 Hugging Face 拉取检查点。
  3. 启动服务器(model.run)。
  4. 从任何客户端发送 JSON 负载(参见示例)。
  5. (可选)使用提供的训练脚本在您自己的机器人数据上进行微调。

引用

@article{zheng2025x,
  title   = {X-VLA: Soft-Prompted Transformer as Scalable Cross-Embodiment Vision-Language-Action Model},
  author  = {Zheng, Jinliang and Li, Jianxiong and Wang, Zhihao and Liu, Dongxiu and Kang, Xirui and Feng, Yuchun and Zheng, Yinan and Zou, Jiayin and Chen, Yilun and Zeng, Jia and others},
  journal = {arXiv preprint arXiv:2510.10274},
  year    = {2025}
}

関連

  • プロジェクト
  • プロジェクト
  • Dispatch
  • プロジェクト