﻿# OpenVLA action outputs need the matching unnorm_key statistics

Understand how OpenVLA converts action tokens into continuous commands, why dataset-specific statistics matter, and which conventions remain the robot adapter responsibility.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-openvla-action-unnorm-key-dataset-statistics/
Language: en

## A valid vector can describe the wrong motion

A robot inference adapter may accept an image and instruction, receive an action vector, and forward it to a controller. The vector dimension alone does not identify its scale or robot convention. Reusing another dataset's normalization resources can produce a syntactically valid command with a different intended displacement.

The [official OpenVLA card](https://huggingface.co/openvla/openvla-7b) describes normalized action prediction and dataset-specific unnormalization. This guide concerns the original released interface, rather than assuming later action-head recipes preserve every detail.

## Tokens are decoded before physical scaling

The [action implementation](https://raw.githubusercontent.com/openvla/openvla/main/prismatic/extern/hf/modeling_prismatic.py) maps generated action token identifiers to discretized values and bin centers before applying stored statistics. A generated language token string is therefore not the final controller command.

Preserve which decoding path produced the action. Generic text-generation output should not be attached directly to an actuator interface merely because the model also inherits language-generation methods. The action-specific method establishes additional semantics.

## The statistics key selects a coordinate interpretation

The interface uses `unnorm_key` to choose the stored dataset action statistics. When several choices exist, selecting the intended key is explicit rather than inferred from the current camera image. The returned vector depends on that selection.

The implementation also supports a statistics mask that determines which dimensions are transformed. Record the chosen key, associated resource, and dimension meanings together. Do not assume every component shares the same continuous scaling rule or units.

## Model preparation and robot adaptation remain separate

The [OpenVLA workflow](https://raw.githubusercontent.com/openvla/openvla/main/README.md) provides setup and evaluation examples for particular robot environments. Their preprocessing, prompt formatting, and action conventions belong to those workflows, not to a universal robot-control protocol.

An adapter still needs documented frame, orientation, gripper, and timing conventions. The [tensor-axis guide](/journal/tensor-axes-batch-sequence-hidden/) helps distinguish compatible array storage from compatible physical meaning. Preserve camera preparation with the model configuration as well.

## Inspect the numerical path before evaluating a policy

A useful offline fixture starts with recorded model output and checks token decoding, selected statistics, masked dimensions, and controller conversion. Store intermediate arrays so a mismatch can be localized without rerunning a physical task.

The [artifact validation guide](/journal/safetensors-artifact-validation/) motivates linking weights and normalization sidecars. Passing that fixture verifies an interface; it does not establish task success on an unfamiliar robot or convert a research policy into a universally validated controller.
