Skip to content
pegah-khPublic

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

17 Commits

Folders and files

Repository files navigation

DiMaS: Distribution Matching for Steering Vision-Language-Action Models

Abstract

Flow-matching-based vision-language-action (VLA) models have emerged as powerful policies for robotic manipulation, yet a critical capability remains underexplored: fine-grained behavioral control, the ability to govern how a robot performs a task by intervening on its internal representations. Representation steering is a well-established interpretability tool for language and vision-language models, where behavioral features are typically encoded as linear directions, but we show that these classic methods fall short in VLAs. We propose DiMaS, a Distribution Matching Steerubf strategy tailored to flow-matching VLAs, which transports between representation distributions rather than shifting along a fixed direction, and show that it effectively controls behavior across two state-of-the-art VLAs.



Demos

Speed steering high → low

Baseline (unsteered) Steered (high → low)

The end-effector moves noticeably slower after steering.

Height steering low → high

Baseline (unsteered) Steered (low → high)

The end-effector moves higher (larger |Δz| per step) after steering.

Installation

Environment

  1. Install xl_vlas itself, from the repo root:

    pip install -e .
  2. Install lerobot, version 0.5.0.

    Follow the official installation guide: https://huggingface.co/docs/lerobot/installation The package versions pinned by lerobot should work correctly.

  3. Install LIBERO separately, then make sure Python can find it. Open src/lerobot/envs/libero.py (inside your lerobot install) and add at the top of the file:

    import sys
    sys.path.append("/path/to/LIBERO")

    ⚠️ Required for extraction/steering to work. xl-vlas patches two lerobot files to expose the hook points used throughout this repo (model.vlm_with_expert.layer_hooks.{0,1}.*, see scripts/examples/). Copy both files from src/xl_vlas/lerobot_changes/ over the matching files in your lerobot install:

    File in lerobot_changes/ Target in your lerobot install
    libero.py src/lerobot/envs/libero.py
    smolvlm_with_expert.py src/lerobot/policies/smolvla/smolvlm_with_expert.py

    Without this, layer_hooks doesn't exist on the model and every --modules_to_hook / --hook_names flag in scripts/examples/ will silently attach to nothing.

  4. LIBERO rendering requires a GPU and headless EGL rendering:

    export MUJOCO_GL=egl

Datasets

No separate dataset download is needed, all experiments run on the LIBERO simulation benchmark (task suites such as libero_object, libero_spatial, libero_goal), which is installed as part of the Environment setup above.

Models

xl-vlas steers pretrained VLA policies. The checkpoints are pulled automatically from the Hugging Face Hub the first time you run a script (set HF_HOME to control the cache location):

Policy Hugging Face Hub id
SmolVLA HuggingFaceVLA/smolvla_libero
PI-0.5 lerobot/pi05-libero

Pass the checkpoint via --policy.path=<hub-id-or-local-path> to src/xl_vlas/save_features.py (see scripts/examples/ below).

Main Experiments

The scripts that produced the full sweep of results in the paper are not part of this public release. To reproduce the method end to end extraction, steering-vector training, and steered inference see the Examples section below, which walks through the same pipeline on a smaller scale (libero_object, 10 episodes/task) that runs on a single GPU.

Examples

Steering targets

  • speed : steers the robot's end-effector to move faster/slower.
  • z-displacement : steers the robot's end-effector to move more or less vertically.

Both use the exact same underlying mechanism (mapping between a "low" and "high" activation cluster), only the quantity used to define "low" vs "high" differs, so the two pipelines are structurally identical.

Pipeline

extraction/{SmolVLA,PI_0.5}/{FM,VLM}/extract_baseline.sh
        │
        │  Extracts and saves hidden states representations for
        │  (VLM = vision-language backbone,FM = flow-matching / action-expert layers)
        │
        ▼
steering/{speed,z-displacement}/{SmolVLA,PI_0.5}/01_train_steering_vector.sh
        │
        │  reads the saved representations, and trains DiMas map between the two designed groups
        │
        │
        ▼
steering/{speed,z-displacement}/{SmolVLA,PI_0.5}/02_apply_steering.sh
        │
        │  runs rollouts on held-out tasks, this time injecting the
        │  steering vector into the model's activations at inference time
        ▼

Citations

If you use this code, please cite:

@inproceedings{khayatan2026dimas,
  title     = {{DiMaS}: Distribution Matching for Steering Vision-Language-Action Models},
  author    = {Khayatan, Pegah and Meziane, Sara and Parekh, Jayneel and Cord, Matthieu},
  booktitle = {ECCV 2026 Workshop on Explainable Computer Vision: Challenges and Opportunities in the Era of Foundation Models (Proceedings Track)},
  year      = {2026},
  url       = {https://openreview.net/forum?id=dksx9PtSZ1},
}

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages