﻿# TinyTimeMixer preprocessing: fitting a scaler is different from training neural weights

Preserve TimeSeriesPreprocessor fitted group scalers, target order and inverse transforms without confusing its train method with TinyTimeMixer fine-tuning.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-tinytimemixer-preprocessor-training-group-scaler-state/
Language: en

## Name the state that training changes

A zero-shot forecasting workflow can still fit numerical preprocessing to available history. In the [TimeSeriesPreprocessor implementation](https://raw.githubusercontent.com/ibm-granite/granite-tsfm/main/tsfm_public/toolkit/time_series_preprocessor.py), train fits transformation state such as scalers and category encoders. It is not itself a neural-weight optimization loop. Distinguish a pretrained network from dataset-specific preprocessing, so a report can explain what was learned locally without inaccurately claiming either complete absence of fitted state or full model fine-tuning.

## Preserve the scaling population

The preprocessor supports scaling groups that can differ from full series identity, subject to its column contract. A shared scaler across several series and separate scalers per series produce different numerical representations. Record the chosen grouping and the historical observations used to fit it. Do not fit a replay's scalers on later evaluation targets simply because they are present in the same source table. Availability and grouping decisions establish the effective preprocessing training population.

## Keep target columns in the same order

The [model card](https://huggingface.co/ibm-granite/granite-timeseries-ttm-r2/raw/main/README.md) describes channel-wise external scaling expectations. A scaler fitted to an ordered target set must be paired with forecasts in that same meaning and order. A permutation can apply the wrong unit restoration while leaving array dimensions valid. Store target schema with fitted state rather than treating the scaler as a generic transform that can be attached to any similarly shaped forecast.

## Follow inverse scaling through the consumer

The [forecasting pipeline](https://raw.githubusercontent.com/ibm-granite/granite-tsfm/main/tsfm_public/toolkit/time_series_forecasting_pipeline.py) integrates model and preprocessing behavior, while the preprocessor exposes inverse target transformation. Verify which component restores application units to avoid omitting the operation or applying it twice. The [Moirai scaling guide](/journal/fg2-moirai-packed-sample-variate-identity-scaling/) offers a contrasting model-internal approach. Similar final arrays can come from different scaling boundaries, so the application must document its actual path.

## Test state reuse on identified series

Round-trip known target values and forecast-shaped outputs for separate scaling groups. Define behavior for a previously unseen identity rather than accidentally borrowing another group's state. The [artifact-manifest guide](/journal/tokenizer-artifact-release-manifest/) supports release packaging. Reproduction requires the network, fitted transformation state, schema and fit-time scope together. Passing a checkpoint-loading test alone does not establish that a later deployment will transform and restore its inputs in the same numerical units as the evaluated workflow.
