﻿# Original Chronos tokenization: numeric bins, per-series scale and missing observations

Trace original Chronos numeric preprocessing through mean-absolute scaling, uniform bins, attention masks and inverse scaling before treating values as ordinary text tokens.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-original-chronos-numeric-bins-scale-missing-values/
Language: en

## Identify the original model family

The original Chronos converts real-valued observations into a discrete vocabulary before forecasting. The [research paper](https://arxiv.org/abs/2403.07815) describes scaling and quantization as the bridge between numerical sequences and language-model training. This guide concerns the original token-based implementation, rather than assuming that Chronos-Bolt and Chronos-2 use an identical representation because they share a project name. Model-family selection determines what a preprocessing port must reproduce.

## Compute scale from observed context

The [original tokenizer implementation](https://raw.githubusercontent.com/amazon-science/chronos-forecasting/main/src/chronos/chronos.py) computes a mean-absolute scale over observed context values. Its missing-value mask excludes NaNs from this calculation, and a nonpositive or unusable scale receives a fallback. Therefore, replacing absent observations with numeric zeros changes the preprocessing problem: zeros become observed measurements and affect scale. Preserve the difference between no reading and a legitimate zero reading in a telemetry input pipeline.

## Preserve the vocabulary boundary

Scaled values are assigned to uniform bins with reserved special-token identities handled separately. These are not the token pieces produced by formatting the observations as a chat message. A port must preserve bin boundaries, bucket inclusion rules and special-token offsets, not merely use a similarly sized integer vocabulary. The existing [tokenizer artifact guide](/journal/tokenizer-artifact-release-manifest/) explains why a model release needs its actual preprocessing assets and configuration alongside weights.

## Carry scale into output reconstruction

Forecast tokens must be mapped back to numerical bin centers and the original series scale. The [project overview](https://raw.githubusercontent.com/amazon-science/chronos-forecasting/main/README.md) distinguishes the available Chronos families and their interfaces. A plausible-looking curve in normalized units is not yet a forecast in the application unit. Keep the scale associated with the correct series when batching histories of different lengths, and compare reconstructed observations before evaluating forecasting quality.

## Test representation independently of prediction

Build fixtures with missing observations, genuine zeros, a constant sequence and histories expressed in different units. Compare masks, scale, token identities and reconstructed values with the pinned reference implementation. The [masked-objective guide](/journal/masked-causal-language-objectives/) supplies related background. Passing those checks establishes a faithful representation boundary; it does not establish accurate predictions for a new domain, nor does it justify borrowing tokenization behavior from a later model with a different numerical architecture.
