﻿# Octo history padding and task modality masks describe different absences

Distinguish Octo timestep history padding from task modality masks, preserve the pretrained input specification, and label action chunk axes independently.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-octo-observation-history-task-padding-mask/
Language: en

## Repeated images do not establish a real history

At episode startup a robot client may have less observation history than the configured model window. Filling the array is a storage decision; it does not make the missing observations real. Octo exposes temporal validity information separately from image content.

The [Octo project guide](https://raw.githubusercontent.com/octo-models/octo/main/README.md) describes pretrained generalist policies with several observation and task configurations. Preserve the selected checkpoint specification instead of treating every Octo artifact as the same input signature.

## The temporal mask belongs to the observation window

The [model interface](https://raw.githubusercontent.com/octo-models/octo/main/octo/model/octo_model.py) defines `timestep_pad_mask` over batch and window dimensions, with `False` for a padded timestep. It is not a pixel segmentation mask or an action-component mask.

Keep that validity sequence aligned with the actual chronological observations. A padded image copied from a recent frame should remain distinguishable from a genuinely observed earlier frame. Moving the images without moving the mask changes the represented history.

## Task masks concern available conditioning

The task-construction path builds `pad_mask_dict` for goal and language inputs. That information has a different role from temporal padding: it describes which task conditions are supplied. An omitted goal image should not be represented as a real dark image merely to satisfy a tensor shape.

Use the documented task builder and inspect the resulting specification. If an application changes modality availability, preserve that change in the request manifest rather than describing the experiment as unchanged.

## Action chunks introduce another time axis

The [pretrained inference example](https://raw.githubusercontent.com/octo-models/octo/main/examples/01_inference_pretrained.ipynb) shows observation batch/history axes and returned batch/action-chunk/action dimensions. The predicted future chunk is not another copy of the historical observation axis.

The [tensor-axis guide](/journal/tensor-axes-batch-sequence-hidden/) helps name these independently. Keep action unnormalization statistics linked to the selected robot domain; a correctly masked observation does not by itself define physical action scale.

## Inspect an episode boundary rather than only steady state

A useful fixture includes the first available frame, a partial history, and a fully populated window. Verify mask polarity and chronological correspondence, then check that language-only and goal-conditioned requests retain their intended modality availability.

The [artifact validation guide](/journal/safetensors-artifact-validation/) motivates storing example specifications with weights and task processors. These checks establish input consistency. They do not imply a measured success rate or validate every newly assembled observation combination for robot control.
