Instructions to use roboref-reward/RoboRef-4B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use roboref-reward/RoboRef-4B with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, RBM processor = AutoProcessor.from_pretrained("roboref-reward/RoboRef-4B") model = RBM.from_pretrained("roboref-reward/RoboRef-4B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
RoboRef-4B
Project page: roboref-reward.github.io · Paper: PDF · Code: coming soon
RoboRef is a vision-language reward model for robot reinforcement learning, fine-tuned from Robometer-4B (Qwen3-VL-4B). Given a task instruction and a single camera view of a rollout, it predicts per-frame task progress and per-frame success, either of which can serve as the reward for RL.
RoboRef closes two gaps shared by most VLM reward models:
- Failures with dense labels. It is trained on RBM-1M+, a re-curation of RBM-1M with 648,714 per-frame labeled clips, 116,786 of them failures with dense per-frame progress, so it learns to score the failures an optimizing policy produces.
- An asymmetric objective. Over-predicting the reward plants a goal a policy can exploit, while under-predicting only slows learning. RoboRef's loss penalizes over-prediction more heavily, yielding conservative rewards that are harder to hack.
Queried frozen and zero-shot, RoboRef trains the strongest policies among the VLM reward models we compare, on ManiSkill, MetaWorld and Robomimic in simulation and on two real-world tasks on a Franka FR3.
Usage
RoboRef uses a C51 distributional progress head that the original Robometer code does not include, so load it with the robometer package from the RoboRef code (the Robometer/ directory, Python 3.10, installed with uv sync).
import numpy as np
import torch
from robometer.evals.eval_server import process_batch_helper
from robometer.evals.eval_utils import (
extract_rewards_from_output,
extract_success_probs_from_output,
raw_dict_to_sample,
)
from robometer.utils.save import load_model_from_hf
from robometer.utils.setup_utils import setup_batch_collator
device = torch.device("cuda")
cfg, tokenizer, processor, model = load_model_from_hf("roboref-reward/RoboRef-4B", device=device)
model.eval()
collator = setup_batch_collator(processor, tokenizer, cfg, is_eval=True)
max_frames = cfg.data.max_frames # 16
def roboref_reward(frames: np.ndarray, task: str) -> tuple[float, float]:
"""Score a clip from one camera view.
frames: uint8 array of shape (T, H, W, 3), the episode so far.
Returns (progress, success_prob) at the last frame, both in [0, 1].
"""
# RoboRef reads 16-frame clips. Resample short clips up to 16 frames with evenly
# spread repeats, as in the paper's RL experiments; otherwise raw_dict_to_sample
# pads them by repeating the last frame, which shifts the scores.
if len(frames) < max_frames:
frames = frames[np.linspace(0, len(frames) - 1, max_frames).round().astype(int)]
sample = raw_dict_to_sample({"frames": frames, "task": task}, max_frames=max_frames)
out = process_batch_helper(
model_type=cfg.model.model_type,
model=model,
tokenizer=tokenizer,
batch_collator=collator,
device=device,
batch_data=[sample.model_dump()],
is_discrete_mode=True, # decode the 10-bin C51 progress head to a scalar
num_bins=cfg.loss.progress_discrete_bins,
)
progress = float(extract_rewards_from_output(out)[0])
success = float(extract_success_probs_from_output(out)[0])
return progress, success
progress, success = roboref_reward(frames, "pick up the zucchini")
As in the paper, query RoboRef at every step on the growing episode. Use progress as a dense reward, or threshold success for a sparse success reward; the threshold is calibrated per task on the maximum success probability over each episode.
Checkpoint
- Architecture: Robometer (
RBM) on Qwen3-VL-4B-Instruct, with progress, success and preference heads. - Weights are stored as saved at the end of training, a mix of float32 and bfloat16 tensors (16 GB).
training_config.yaml(identical toconfig.yaml) records the full training configuration.
Citation
@inproceedings{karageorgis2026roboref,
title = {RoboRef: A Foundation Reward Model Built for Robot RL, Not Offline Metrics},
author = {Karageorgis, Platon and Barcellona, Leonardo and Aljundi, Rahaf and Gavves, Stratis and Gumbsch, Christian},
booktitle = {NeurIPS 2026 Workshop on Post-Training Adaptation of Robot Foundation Models (RoboPAD)},
year = {2026}
}
Please also cite Robometer, on which RoboRef builds:
@article{liang2026robometer,
title = {Robometer: Scaling General-Purpose Robotic Reward Models via Trajectory Comparisons},
author = {Anthony Liang and Yigit Korkmaz and Jiahui Zhang and Minyoung Hwang and Abrar Anwar and Sidhant Kaushik and Aditya Shah and Alex S. Huang and Luke Zettlemoyer and Dieter Fox and Yu Xiang and Anqi Li and Andreea Bobu and Abhishek Gupta and Stephen Tu and Erdem Biyik and Jesse Zhang},
year = {2026},
journal = {arXiv preprint arXiv:2603.02115}
}
- Downloads last month
- 11