Selective Anchoring via Method of Multipliers for Balanced Knowledge Acquisition and Retention in Vision-Language-Action Models
Project page · Paper · Experiment guide
Research code for continual finetuning of π0.5 on LIBERO, built on openpi. It includes narrow (32-task) and broad (117-task) pretraining, three-stage sequential finetuning, and the selected comparison baselines.
SAMBAR/
├── scripts/ # Training, normalization and policy serving
│ ├── train.py
│ ├── compute_norm_stats.py
│ └── serve_policy.py
├── src/openpi/ # Model and reusable research implementation
│ ├── models/
│ ├── policies/
│ ├── serving/
│ ├── shared/
│ └── training/
│ ├── config.py # Model, optimizer and dataset configurations
│ ├── runner.py # Shared experiment/stage orchestration
│ ├── sambar.py # Selected weighted_taco_ar.py calculations
│ ├── sambar_math.py
│ ├── importance.py
│ └── baselines/ # Reusable SFT, L2, EWC, LoRA and replay code
├── baselines/ # Baseline entry points and sequence launchers
├── examples/libero/ # Simulator setup, rollouts and evaluation
├── assets/sambar/ # Narrow/broad normalization statistics
├── packages/openpi-client/ # Shared policy client
└── docs/ # Setup, experiments, method notes and website
Install uv, then run from the repository root:
uv sync --frozen --extra cudaSee setup for the pinned environment, base model and dataset locations. LIBERO uses a separate environment installed from pinned upstream; see the LIBERO README.
The π0.5 checkpoints pretrained on LIBERO are available on Berkeley-ICON-Lab/SAMBAR-checkpoints. Sign in to Hugging Face and request access to download the weights.
| Pretraining curriculum | Checkpoint folder |
|---|---|
| Narrow (32 tasks) | libero-32/15000 |
| Broad (117 tasks) | libero-117/9999 |
To start sequential SAMBAR finetuning from either checkpoint, first export its LIBERO pretraining importance.
The trainer selects these defaults from the regime and task. The learning rate is the configured peak.
| Pretraining regime | Finetuning task | Batch size | Learning rate | Iterations per task |
|---|---|---|---|---|
| Broad (117 tasks) | pot-on-stove, items-into-basket | 64 | 2.5 × 10⁻⁵ | 500 |
| Broad (117 tasks) | mugs-on-plates | 64 | 2.5 × 10⁻⁵ | 1,000 |
| Narrow (32 tasks), independent finetuning | Each held-out task | 16 | 1 × 10⁻⁵ | 20,000 |
| Narrow (32 tasks), three-stage sequential finetuning | Each successive task | 16 | 1 × 10⁻⁵ | 10,000 |
The broad runs follow the RETAIN evaluation protocol. Available GPU memory limited the narrow and sequential runs to a batch size of 16. We used 20,000 iterations for independent narrow finetuning because dual ascent gradually increases the cost of deviating from the anchor.
We used an anchor penalty of ρ = 0.02 and estimated the current task’s diagonal Fisher importance from 50 minibatches at the start of each stage.
The unified trainer covers both pretraining curricula and sequential SAMBAR:
# Narrow pretraining: 32 tasks, with importance saved after training.
uv run --extra cuda python scripts/train.py \
--mode pretrain --setting narrow --exp-name pretrain32
# Broad pretraining: 117 tasks.
uv run --extra cuda python scripts/train.py \
--mode pretrain --setting broad --exp-name pretrain117
# Three successive narrow tasks, carrying the model and saved importance forward.
uv run --extra cuda python scripts/train.py \
--mode sequential --setting narrow --exp-name sequence \
--pretrained-path checkpoints/sambar_narrow/pretrain32/29999 \
--sequence 3 8 11The checked-in normalization statistics can be recomputed through the same data pipeline:
uv run --extra cuda python scripts/compute_norm_stats.py --setting narrowSAMBAR trains and regularizes all parameters. For importance export and commands for each finetuning regime, see the experiment guide.
SFT, L2, EWC, RETAIN, LoRA, co-training and GRPO have their entry points and sequence launchers in baselines/. Their shared implementations live in src/openpi/training/baselines/.
uv run --extra cuda python -m baselines.train --method sft --setting narrow \
--exp-name sft_task3 --pretrained-path checkpoints/sambar_narrow/pretrain32/29999/params \
--finetune-task-ids 3bash examples/libero/setup.sh
uv run --extra cuda python examples/libero/evaluate.py \
--checkpoint checkpoints/sambar_narrow/sequence/stage3/9999 \
--setting narrow --task-ids 3 8 11 --output outputs/sequence-stage3The evaluation driver starts scripts/serve_policy.py and runs the simulator in its separate environment. For standalone serving and rollout commands, see examples/libero/README.md.
This work is supported by the National Science Foundation, under grants ECCS-2438314 CAREER Award, CNS-2529645. This work was also supported in part by an Office of Naval Research (ONR) Young Investigator Program (YIP) award. This research was made possible by GPU resources provided via the NVIDIA Academic Grant.
The code in this repository was refactored and reorganized for the release using OpenAI Codex.
If you use SAMBAR in your research, please cite:
@article{shrivastava2026sambar,
title = {SAMBAR: Selective Anchoring via Method of Multipliers for Balanced
Knowledge Acquisition and Retention in Vision-Language-Action Models},
author = {Shrivastava, Aayushi and Zhou, Xunlan and Zhao, Hongrui and
Chen, Ziyu and Mehr, Negar},
journal = {arXiv preprint arXiv:2609.32108},
year = {2026}
}