IBM Upgrades Granite PatchTST to 385M Parameters for Zero-Shot Forecasting
IBM's 385M parameter time series foundation model takes the #2 spot on GIFT-Eval among zero-shot models under a commercial-friendly license.
Takeaways
- IBM released PatchTST-FM-r2, a 385M-param zero-shot time series foundation model.
- Ranks #2 on GIFT-Eval among replicable zero-shot models, #1 among commercially licensed ones.
- Replaces plain transformer blocks with Conformer blocks borrowed from speech recognition.
- Uses overlapping patches with Hamming window loss and overlap-and-add inference for smoother forecasts.
- Dual-licensed under OpenMDW 1.0 and Apache 2.0, available via the granite-tsfm package.
- Training mixes real datasets with synthetic data from KernelSynth, TSMixup, and CauKer.
IBM has released Granite PatchTST r2, a 385 million-parameter foundation model for zero-shot time-series forecasting. In IBM’s published GIFT-Eval results, it ranks second for both CRPS and MASE among replicable zero-shot systems. It also leads the zero-shot models available under a permissive, commercial-friendly license.
For developers, r2 provides point and probabilistic forecasts without fine-tuning on each target dataset. Its 8,192-step context window suits long histories, while the selectable quantile output supports demand planning, capacity forecasting, anomaly thresholds, and other applications where uncertainty matters.
Local convolutions, global attention
The original PatchTST divides a time series into patches and processes them with standard transformer blocks. The r2 architecture replaces those blocks with Conformer blocks, a design established in speech recognition. Two half-step feed-forward networks surround a multi-head self-attention layer and a convolutional sublayer.
Self-attention models relationships across distant patches, while the convolution supplies an explicit bias toward nearby patterns. IBM repeats convolution kernel sizes in a {5, 5, 3, 3} sequence, allowing successive blocks to capture local behavior at different scales.
| Component | r2 configuration |
|---|---|
| Parameters | Approximately 385 million |
| Context length | Up to 8,192 time steps |
| Hidden dimension | 1,024 |
| Depth | 30 Conformer blocks, up from 20 in r1 |
| Patches | Size 16 with stride 8 |
| Convolution kernels | Repeating sizes of 5, 5, 3, and 3 |
| Forecast head | 99 quantiles |
| Normalization | Layer normalization before the output head |
Overlapping patches reduce boundary artifacts. During training, IBM applies Hamming-window loss weighting; during inference, an overlap-and-add procedure combines overlapping predictions into a smoother forecast.
Strong ranks within a defined field
GIFT-Eval compares forecasting systems across dozens of datasets. IBM reports the following positions for r2, with lower CRPS and MASE values indicating better results:
| Comparison set | CRPS rank | MASE rank |
|---|---|---|
| Replicable zero-shot models | 2nd | 2nd |
| Broader published table | 3rd | 4th |
The broader table includes systems whose pretraining corpora may contain the training portions of GIFT-Eval datasets. That exposure differs from the stricter zero-shot comparison. Within the broader field, IBM reports that r2 outperforms several systems, including Chronos-2, Timer-S1, and some Toto variants.
CRPS, or Continuous Ranked Probability Score, evaluates the full predicted probability distribution against observed values. MASE, or Mean Absolute Scaled Error, evaluates point forecasts after scaling errors against a naive forecasting baseline. The two metrics therefore cover distribution quality and point accuracy.
Four sources feed the training mix
IBM expanded the training corpus with benchmark-filtered and synthetic time series drawn from four sources:
- A subset of the GIFT-Eval pretraining datasets.
- A TSMixup corpus generated with the Chronos recipe and filtered to remove GIFT-Eval evaluation leakage.
- Custom KernelSynth data using periodic kernels inspired by TiRex.
- Approximately 500,000 in-house sequences generated with CauKer.
The CauKer paper describes a method that uses causal graphs and kernel-based processes to generate synthetic time series. IBM also used the approach to train Granite-FlowState.
Synthetic generation broadens the range of trends, cycles, and causal structures available during pretraining. Its practical value still depends on how closely those generated patterns resemble a deployment dataset, making local backtesting necessary before adoption.
From model ID to forecast
IBM offers the model under either the OpenMDW License 1.0 or Apache License 2.0. Users may select either license, and both allow commercial use subject to their respective terms. The implementation is available through the granite-tsfm package.
pip install granite-tsfm
The following example expects a time-ordered pandas DataFrame named df, with a parseable date column and an hourly numeric target named HUFL:
from tsfm_public import (
PatchTSTFMForPrediction,
TimeSeriesForecastingPipeline,
)
model = PatchTSTFMForPrediction.from_pretrained(
"ibm-granite/granite-timeseries-patchtst-fm-r2"
)
pipe = TimeSeriesForecastingPipeline(
model=model,
timestamp_column="date",
target_columns=["HUFL"],
context_length=512,
prediction_length=64,
quantile_levels=[0.1, 0.5, 0.9],
freq="1h",
)
forecast = pipe(df.iloc[-512:])
The requested quantiles produce a predictive range alongside the median forecast. In this example, 0.1 and 0.9 describe an 80 percent prediction interval, while 0.5 represents the median.
Deployment fit and limits
| Suitable workload | Potential use |
|---|---|
| Demand and sales | Forecast volumes and quantify inventory risk |
| Energy | Predict load with uncertainty bands |
| Infrastructure | Estimate future utilization and capacity needs |
| IoT telemetry | Project sensor readings and operating ranges |
| Financial series | Establish a zero-shot probabilistic baseline |
Short histories, abrupt structural breaks, changing regimes, promotions, and outages can weaken zero-shot accuracy because the model may lack the relevant external context. Teams should compare r2 against seasonal naive methods and existing production models using rolling backtests that match the intended forecast horizon.
The 385 million-parameter model and 8,192-step maximum context also require deployment testing for memory use and latency. IBM says the current TSFM stack remains backward-compatible with r1 checkpoints, which can reduce migration work, but schema, quantile, and accuracy regression tests remain necessary before replacing an existing model.