AnyH

One Action-Chunking Policy for Any Execution Horizon

Guian Fang·Hai Ci·Mike Zheng Shou✉

Show Lab, National University of Singapore

BELTslowDELAYlowHORIZONh = 20fixed h = 32fixed h = 8hmax(t) reactivity ceilinghmin(t) = 2L(t) + m latency floorbelt speeds uplatency spike81632horizon hdeployment timetoo sluggishstallsAnyH h(t)executed chunks, one network pass eachh = 20h = 14h = 12h = 12h = 14h = 18h = 22h = 18
Schematic: the belt speeds up, then inference slows down. Fixed horizons fail, while AnyH changes h at every replan.

Overview

One set of weights, any execution horizon, one network pass per chunk.

The trade-off

Short horizons stall when inference is slow. Long ones act on stale observations when the scene moves. The right length depends on the deployment.

One policy, any h

AnyH takes h as an input. Trained on five horizons, it answers every integer from 2 to 32 in one pass.

Choosing h

A controller sets h from measured latency and scene speed. The policy only executes it.

A conveyor scene: under a large delay a fixed horizon of 8 misses the parcel while the same model at horizon 20 grasps it; on a fast belt horizon 6 grasps it
One model: h = 8 misses under delay, h = 20 and h = 6 grasp. Neither was trained.
31

horizons, one model

26 of them never trained.

1

network pass per chunk

11 to 12 times faster than ten-step sampling.

59/60

Franka trials with the dial

Best fixed horizon: 51 of 60.

Method

h conditions the target encoder, the flow network and the decoder.

Method overview in four panels: learning with a sampled horizon, single-pass generation, one weight set answering several horizons, and a controller commanding h at deployment

Learning

Draw h from {2, 4, 8, 16, 32} and supervise only the first h actions.

Generation

One evaluation: zh = z + (h / 32) u(z, o, h).

Deployment

Under a delay of L steps, any h ≥ ⌈2L + 2⌉ never stalls.

Results

Simulation: 300 rollouts per cell from shared initial states.

One model against five specialists

robomimic Square, three seeds. Each specialist is trained at its own horizon.

h = 2
.017±.012
.403±.038
h = 4
.278±.034
.619±.032
h = 8
.846±.035
.892±.024
h = 16
.820±.032
.837±.022
h = 32
.423±.042
.820±.029
Specialist trained at that hAnyH, one modelsuccess rate, 0 to 1

Horizons never trained

Every untrained horizon overlaps the band spanned by the trained ones.

menu h: 2, 4, 8, 16, 32untrained h: 3, 5, 6, 7, 11, 2495% Wilson intervals, 300 rollouts each
Square 0.20.40.60.81.0 2481632 Can 0.70.80.91.0 2481632 Transport 0.20.40.60.8 2481632

execution horizon h (log scale)

A physical arm under injected delay

Franka at 15 Hz. Each fixed horizon fails at some delay, and the latency dial does not.

Successes of 20τ = 0.2 sstall-free floor hmin = 8τ = 0.5 sstall-free floor hmin = 17τ = 1.0 sstall-free floor hmin = 32Total
Fixed h = 8204024/60
Fixed h = 161919240/60
Fixed h = 3216171851/60
AnyH, latency dial20201959/60
Eight Franka tasks, four frames each, from the initial state to completion: picking into a bowl, pushing, cup stacking and sweeping
Eight Franka tasks, one network pass per replan.

Code

Training, any-horizon rollouts and the deployment controllers, on the A2A backbone.

# one model for every horizon
python scripts/train.py --config configs/square.yaml
# a trained horizon, an untrained one, and an emulated 4-step delay with the latency dial
python scripts/eval_robomimic.py --ckpt outputs/square/epoch_0300.pt --h 8
python scripts/eval_robomimic.py --ckpt outputs/square/epoch_0300.pt --h 11
python scripts/eval_robomimic.py --ckpt outputs/square/epoch_0300.pt --latency 4 --controller dial

Citation

@misc{fang2026anyh,
  title  = {AnyH: One Action-Chunking Policy for Any Execution Horizon},
  author = {Fang, Guian and Ci, Hai and Shou, Mike Zheng},
  year   = {2026},
  eprint = {2612.04360},
  archivePrefix = {arXiv}
}