Skip to content
humanoidintelligencePublic

About

[Infra] hiBench: A Unified Benchmark Layer for Evaluating Robot Policies

Resources

Contributing

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

hiBench: A Unified Benchmark Layer for Evaluating Robot Policies

Contents

Introduction

hiBench evaluates a robot system in simulation and on real hardware and reports scores that compare across systems and runs. A benchmark suite fixes the tasks, the number of trials, the seed of each trial and the step and time budgets, following the suite's published evaluation code. hiBench hands the system under evaluation an ordinary hiRobot Robot that wraps the simulated scene (or the system's own real robot). That robot enforces the protocol and keeps the score. The system decides everything else.

  • The benchmark owns the protocol. A Benchmark lists the tasks, builds the scene for each one as a simulated hiRobot driver, and picks the seed and the budgets of every trial.
  • The evaluator owns the score. The robot the system drives is an Evaluator. It forces the protocol's seed, counts steps, latches success, and refuses commands once the episode is over. What the system says about its own episode is recorded next to the verdict and never scored.
  • The system is a plug-in. A Policy runs one episode on the robot it is handed. It sees a plain hirobot.Robot with no benchmark API, so a policy written for a real robot runs on a benchmark unchanged. Policies in other packages register through an entry point; hiBench's only dependency is hiRobot.
  • Results you can pool and check. Each run writes one JSON line per episode as it ends, so a crashed run resumes where it stopped. Workers that split a suite merge into one summary, and parts of different runs are refused. Every rate comes with a 95% confidence interval.
  • Sim and real, one result format. Real-robot suites use the system's own robot, limit episodes by wall-clock time and take the verdict from the benchmark's judge (for example an operator), so both produce the same summary files.

hiBench is built for agents and humanoids. The system under evaluation can be a VLA model that sends an action every step, or an LLM agent that observes, plans, calls skills and tools, and spends many control periods on one decision; both are scored the same way. The suites centre on humanoid tasks (whole-body control, loco-manipulation, dexterous hands) and also cover the standard arm benchmarks.

Note

Companion projects. hiRobot (the robot interface), hiWBC (whole-body control), hiVLA (VLA model serving) and hiAgent (agents behind one interface, with tools over MCP) together make up the robot system. hiBench is the exam and the referee for that system. It builds on hiRobot's Robot contract only, and none of the other projects depend on it.

Warning

Status: early development. APIs are unstable and subject to change. The built-in reach suite and idle policy exercise the contracts. The simulator suites run in simulation but have no model baseline yet, and the policies for hiVLA and hiAgent are being added.

Safety on real robots. A robot under software control can injure people and damage itself. Read this repository carefully before running it on hardware, and hiRobot's setup guide for your robot. Debug in simulation until it works, then move to the real robot step by step: read-only first, then the robot hung on a gantry at low gains, with an e-stop within reach and nobody inside the robot's reach.

Supported benchmarks

Name Type Suite Guide
reach Toy Dependency-free toy suite for tests reach.md
metaworld Single arm Meta-World MT50 (Sawyer, 50 tasks) metaworld.md
libero Single arm LIBERO spatial / object / goal / 10 / 90 (Franka) libero.md
libero_plus Single arm LIBERO-Plus, ~10k perturbation variants of 4 suites (via vla_eval) vla_eval.md
libero_pro Single arm LIBERO-PRO, object-replacement / OOD suites, 10 tasks x 50 (via vla_eval) vla_eval.md
libero_mem Single arm LIBERO-Mem, 10 memory-dependent tasks x 50 (via vla_eval) vla_eval.md
vla_arena Single arm VLA-Arena, 170 Franka tasks (11 suites x 3 levels) vla_arena.md
robotwin Dual arm RoboTwin 2.0, 50 dual-arm tasks, Easy / Hard robotwin.md
domino Dual arm DOMINO, 35 dynamic-object tasks on RoboTwin 2.0 robotwin.md#domino
robodojo Dual arm RoboDojo, 54 dual-arm tasks in 5 capability dimensions (2 x ARX X5) robodojo.md
adroit Dexterous hand Adroit hand: pen, door, hammer adroit.md
handson Dual arm, dexterous hands HandsOn, 66 bimanual dexterous tasks, Core-50 + Transfer-16 (ROKAE AR5 + Wuji Hand) handson.md
robocasa Humanoid RoboCasa GR-1 tabletop, 24 tasks (Fourier GR-1) robocasa.md
simple Humanoid SIMPLE G1 whole-body Teleop, 12 tasks simple.md
egobench Humanoid EgoBench, 12 tasks (Unitree H1 + Inspire hands) egobench.md
bigym Humanoid BiGym 2.0, 20 loco-manipulation tasks (Unitree G1 + GR00T-WBC lower body) bigym.md
locomanilab Humanoid LocoManiLab, 234 loco-manipulation tasks (Unitree G1 + SONIC / HEFT / AMO whole-body controller) locomanilab.md
robocasa365 Mobile manipulator RoboCasa365 target50, 50 mobile-manipulation kitchen tasks (PandaOmron) robocasa365.md
vln_ce Navigation VLN-CE R2R / RxR navigation vln_ce.md
vla_eval Single arm, mobile manipulator vla-evaluation-harness simulators: SimplerEnv, LIBERO family, RoboCasa v0.2 (PandaOmron), CALVIN vla_eval.md

Every suite has tests against a fake simulator and none has a model baseline yet. The BiGym 2.0 page lists the paper's published success rates on nine tasks (Table II) to compare against. docs/benchmarks/ has the status of each, the install steps they share, and the options every suite understands.

Quick start

hiBench needs Python 3.9 or later. The core depends on numpy and hiRobot 0.0.9 or later (for Evaluator.idle_step()). hiRobot is not on PyPI, so install it from its repository first.

pip install 'hirobot @ git+https://github.com/humanoidintelligence/hiRobot.git'
git clone https://github.com/humanoidintelligence/hiBench.git && cd hiBench
pip install -e .                 # core: contracts, runner, CLI, the reach suite
# extras: one per simulator suite (see docs/benchmarks/) · dev (pytest, ruff)
pip install -e '.[dev]' && python -m pytest   # no simulator, GPU or network needed

Without a simulator

The built-in reach suite needs nothing beyond the core. List benchmarks, policies, and the tasks of one benchmark:

hibench list                       # reach
hibench policies                   # idle
hibench tasks reach -o trials=2

Run a policy on a benchmark. -o sets benchmark options and -p policy options. The idle policy holds the start pose, so every episode runs out its step budget; use it to check a suite's wiring without a model.

hibench run reach --policy idle -o max_steps=10 --out run.json

It prints one line per episode (task 0 trial 0 seed=0 success=False ended=max_steps steps=10 ...), then each task's rate with its 95% interval and the suite's micro and macro averages.

From Python

from hibench import Policy, make_benchmark, run_benchmark
from hirobot import Action, ControlMode

def act(obs, episode):
    return Action(mode=ControlMode.POSITION, joint_target=obs.extra["goal"])

result = run_benchmark(make_benchmark("reach", trials=3), Policy(act=act))
print(f"{result.success_rate:.0%} over {result.num_episodes} episodes")   # 100% over 9 episodes

On a simulator suite

Simulator SDKs conflict with each other (robosuite versions, Python pins), so each simulator suite is an extra named after the suite and is installed into an environment of its own, together with hiRobot and hiBench. Importing hiBench or listing benchmarks needs no simulator: suites import their SDK only when a scene is built. The suite's page lists the environment, then the same idle check works on it:

pip install -e '.[metaworld]'      # in the suite's own environment
MUJOCO_GL=egl hibench run metaworld --policy idle --trials 1 --tasks 0 -o max_steps=20

Long runs: resume and split

Each run appends one JSON line per episode as it ends, to run.episodes.jsonl next to --out run.json (or to --episodes PATH). After a crash, rerun the same command with --resume: it checks that the log comes from the same run and skips the episodes already recorded. Rerunning without --resume stops rather than overwrite the log.

--tasks takes ids and ranges (0,3,5-9), so several workers can each run a slice of a suite. hibench merge combines their summaries and refuses parts whose options, policy or protocol version differ:

hibench run reach --policy idle -o max_steps=10 --tasks 0-1 --out w0.json
hibench run reach --policy idle -o max_steps=10 --tasks 2 --out w1.json
hibench merge w0.json w1.json --wall-s 60 --out summary.json

A single slice reports partial (2/3 tasks complete) instead of an average; the merged summary has the suite's averages. The episode-log format and merge rules are in docs/api.md.

Architecture

hiBench architecture. Inside hiBench: a Benchmark (tasks, trials, seeds, step and time budgets, make_robot, judge, version) builds an env driver per task, one hiRobot Robot per suite, listed by embodiment: the toy reach, single arm (metaworld, libero, vla_arena), dual arm (robotwin, domino, robodojo), hand (adroit), humanoid (robocasa, simple, egobench), navigation (vln_ce) and the bridge vla_eval for SimplerEnv and the LIBERO family, over their simulators. run_benchmark wraps the driver in an Evaluator, a hiRobot Layer that forces the seed, counts steps, times the episode, latches success and ends the episode. The Evaluator and judge give the verdict, which goes into a SuiteResult, the episode log and the JSON summary that hibench merge combines. On the other side, the system under evaluation: a Policy that drives the Evaluator as a plain Robot, for example a VLA policy talking to hiVLA over the network, or a planned agent policy on hiAgent; for real-robot suites the policy supplies its own robot. The policy's SelfReport is recorded, never scored.

hiBench sits outside the robot system it evaluates. A Benchmark builds one simulated hiRobot driver per task. run_benchmark wraps it in an Evaluator and hands that to the Policy, which drives it as a plain Robot. The verdict comes from the evaluator and the benchmark's judge and goes into a SuiteResult, the episode log and the JSON summary. hiBench never imports hiWBC, hiVLA or hiAgent, and a test checks that import hibench loads no model client. A policy that wraps one of them lives in its own module and imports it only when it runs.

Concept Responsibility
Task One task of a suite: id, name, instruction, step and time budgets, trials, report tags.
Benchmark The protocol: tasks(), make_robot(task), episode_seed, max_steps, max_wall_s, judge, the metrics it declares and measures (metrics(), episode_metrics), and its version. provides_robot = False for real-robot suites. Details.
Evaluator The robot handed to the policy, a hirobot.Layer over the environment driver. Forces the seed, refuses a second reset mid-episode, counts actions and idle steps, latches success, reports done and refuses commands with EpisodeOver once the episode ends. Details.
Policy The system under evaluation: rollout(robot, episode) runs one episode and may return a SelfReport, which is recorded and never scored. robot() supplies its own robot for real-robot suites. Details.
run_benchmark Runs the selected tasks and trials and returns a SuiteResult: per task one evaluator, per trial begin, rollout, finish, judge. Resumes from an episode log; with continue_on_error scores a policy that raised as ended = "error". Details.
SuiteResult Per-task and per-episode results; micro and macro averages with 95% intervals per suite and per tag group, None when part of it did not run; and a meta that identifies the run. merge combines workers that split one run. Details.

Policies drive the evaluator on their own thread. Simulators such as robosuite bind a GL context to the thread that created the scene, so the evaluator leaves connect, reset, step and disconnect to the policy and only checks them.

Repository structure

Show the tree
hiBench/
├── src/hibench/
│   ├── types.py        # Task / Episode / SelfReport / EpisodeRecord / TaskResult / SuiteResult
│   ├── benchmark.py    # Benchmark contract
│   ├── evaluator.py    # Evaluator, EpisodeOver, ProtocolError
│   ├── policy.py       # Policy contract and its default act loop
│   ├── policies.py     # IdlePolicy (idle)
│   ├── registry.py     # benchmark and policy registries, entry-point discovery
│   ├── runner.py       # run_benchmark, run spec / meta, task-id parsing
│   ├── episodes.py     # per-episode JSONL log, resume
│   ├── stats.py        # Wilson and stratified confidence intervals
│   ├── cli.py          # hibench list / policies / tasks / run / merge
│   └── benchmarks/
│       ├── reach.py    # dependency-free test suite
│       ├── metaworld/  # Meta-World MT50
│       ├── libero/     # LIBERO (5 suites, Franka, robosuite 1.4)
│       ├── vla_arena/  # VLA-Arena (170 Franka tasks, 11 suites x 3 levels)
│       ├── robotwin/   # RoboTwin 2.0 (50 dual-arm tasks, Easy / Hard) and DOMINO (35 dynamic)
│       ├── robodojo/   # RoboDojo (54 dual-arm tasks, Isaac Sim 5.1)
│       ├── adroit/     # Adroit hand (DP3 / D4RL protocols)
│       ├── handson/    # HandsOn (66 bimanual dexterous tasks, Isaac Sim 5.1)
│       ├── robocasa/   # RoboCasa GR-1 tabletop (24 tasks)
│       ├── simple/     # SIMPLE G1 whole-body Teleop (12 tasks)
│       ├── egobench/   # EgoBench (Unitree H1 + Inspire hands, Isaac Lab)
│       ├── bigym/      # BiGym 2.0 (Unitree G1, 20 tasks, MuJoCo)
│       ├── locomanilab/ # LocoManiLab (Unitree G1, 234 tasks, robosuite + WBC)
│       ├── robocasa365/ # RoboCasa365 target50 (50 PandaOmron kitchen tasks)
│       ├── vln_ce/     # VLN-CE (R2R-CE, RxR-CE) on habitat-sim 0.1.7
│       └── vla_eval/   # bridge to vla-evaluation-harness simulators
├── docs/               # API reference, one page per benchmark suite
└── tests/              # pytest suite; no simulator, GPU or network needed

Write a policy

  1. Subclass Policy and implement act(observation, episode) -> Action, or pass act= to Policy. The default rollout(robot, episode) connects, resets, sends one action per observation until robot.done (or until a command raises EpisodeOver) and disconnects; it is unpaced, so a policy for a real robot paces itself. A system that does not act step by step (an agent, a real-robot stack) overrides rollout instead. Treat robot as any hiRobot robot; episode carries the instruction, the seed and the budgets.
  2. Keep driver calls on one thread per task: the thread that calls rollout, or one thread the policy owns.
  3. Register it from your package:
    [project.entry-points."hibench.policies"]
    mypolicy = "mypkg.bench:MyPolicy"
    Options from hibench run -p key=value arrive as keyword arguments. They are recorded as the run's identity, so take whatever identifies the model (a checkpoint path or hash) as an option.

See Policy and Evaluator in the API reference for what the robot allows and refuses during an episode.

Add a new benchmark

Tip

Pull requests are welcome. A new suite, a port checked against a published number, or a fix to a protocol brings robot evaluation a step closer to scores that compare across papers. Before opening a pull request, read CONTRIBUTING.md: what each kind of change needs.

A suite is a hiRobot driver for the scene plus a Benchmark subclass for the protocol, registered by name, with its simulator SDK as an extra and a test that runs without it. docs/benchmarks/ has the steps, the option names suites share, and how to check a suite against a published number; Benchmark in the API reference lists every hook.

Contact

  • Peng Li: pengli.ds [at] gmail.com

Citation

If you use hiBench in your research, please cite it:

@misc{hibench,
  title  = {hiBench: A Unified Benchmark Layer for Evaluating Robot Policies},
  author = {Li, Peng and Zhang, Yifei and Qiu, Xipeng},
  year   = {2026},
  url    = {https://github.com/humanoidintelligence/hiBench}
}

When you report a score on a suite, cite the suite's own paper too.

Acknowledgements

Each suite's protocol follows the evaluation code its published numbers come from, and the page under docs/benchmarks/ names the repository and commit: Meta-World with starVLA's MT50 client, LIBERO with openpi's client, VLA-Arena, RoboTwin 2.0, DOMINO, RoboDojo, Adroit with DP3's runner and D4RL, HandsOn with its handson-eval-v1 protocol, RoboCasa GR-1 tabletop with GR00T's eval, SIMPLE, the Ego Humanoid Manipulation Benchmark with EgoVLA's eval, BiGym 2.0, LocoManiLab, RoboCasa365, VLN-CE and vla-evaluation-harness. The VLA-Arena task table is generated from VLA-Arena (Apache-2.0), the RoboDojo task table from RoboDojo (MIT, Copyright (c) 2026 RoboDojo Contributors), the Meta-World instructions come from starVLA (MIT), the EgoBench start poses from EgoVLA (MIT, Copyright (c) 2025 The EgoVLA Project Developers), and the HandsOn task table, budgets and public trial seeds from HandsOn (MIT, TsinghuaC3I). The EgoBench tile in the gallery above is cropped from EgoVLA's teaser image (same license). The RoboCasa series tile is a render of RoboCasa v0.2 scenes and objects (assets CC BY 4.0, the RoboCasa Team). The LocoManiLab tile shows the AI2-THOR iTHOR FloorPlan13 kitchen as converted by MolmoSpaces (CC BY 4.0, Allen Institute for AI). The HandsOn tile shows "Old Fashioned Wooden Blocks" by CurlyFryWhy, licensed under CC BY 4.0 and vendored by HandsOn.

License

hiBench is released under the Apache License 2.0. Each benchmark keeps the license of its own simulator and assets, which hiBench does not redistribute.

About

[Infra] hiBench: A Unified Benchmark Layer for Evaluating Robot Policies

Resources

Contributing

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages