Tafsut logo

Tafsut-Synth

Tafsut-Synth forecasts a single time series from its observed history. It returns a median and eight surrounding deciles in the original units. Synth means that both the backbone and its quantile head learned from generated time series. The report evaluates how those forecasts transfer to real observations on GIFT-Eval and FEV-Bench.

Quick start · Technical report · Architecture · Synthetic training data · Evaluation

Sixteen zero-shot Tafsut-Synth forecasts. Each window shows the observed history, median, central 60% and 80% intervals, and held-out observations.

Zero-shot forecasts on two benchmarks. Eight GIFT-Eval windows alternate with eight FEV-Bench windows. They include electricity load, German power prices, Seattle traffic, grocery orders and solar generation. Each example shows three history steps for every forecast step. The model used up to 2,048 historical observations without task-specific fitting. Shading shows the central 60% and 80% intervals. The dashed line reveals the held-out observations.

Quick start

Install the inference package with Python 3.10 or later.

python -m pip install "tafsut==0.2.0"

This example uses two weeks of daily demand to forecast the next seven days. Replace history with your own observations in chronological order.

import torch
from tafsut import TafsutModel, forecast

model = TafsutModel.from_pretrained("Tafsut-FM/tafsut-synth", device="cpu")
history = torch.tensor([
    42.0, 45.0, 43.0, 46.0, 51.0, 63.0, 58.0,
    44.0, 47.0, float("nan"), 48.0, 53.0, 65.0, 60.0,
])
prediction = forecast(model, history, horizon=7)

print(prediction.shape)  # torch.Size([1, 7, 9])
median = prediction[0, :, 4]
lower, upper = prediction[0, :, 0], prediction[0, :, 8]  # 10th and 90th percentiles

You can also pass a batch shaped (batch, time). Use NaN or a false entry in context_mask for a missing observation. The result has shape (batch, horizon, 9), with deciles ordered from 0.1 through 0.9. To run offline, pass the path to a downloaded checkpoint directory in place of the Hub ID. Inference package

Architecture

The released checkpoint has 102.9 million parameters (102,903,234), including its extended quantile head. The technical report lists 102.7 million for the backbone trained to predict the 10th, 50th and 90th percentiles. The extended head keeps that backbone's median and learns the eight surrounding deciles.

Component Released configuration
Input Up to 32,768 history steps, grouped into non-overlapping patches of 16
Encoder 14 Transformer blocks, model width 768, SwiGLU feed-forward width 2,048
Attention 12 heads of width 64, with rotary position embeddings and gated, bidirectional self-attention
Output Nine quantiles per step, up to 1,024 future steps in one forward pass

The model normalizes each series using its observed history. Each historical patch encodes values, observation masks and relative time. The encoder processes these patches together with blank future patches, so it can forecast the whole horizon in one pass. It then maps the quantiles back to the original scale. Checkpoint configuration

An hourly solar series splits into four history patches. A 14-block encoder processes them alongside three future queries. Three output patches join to form a 48-hour forecast. Below, the four panels from the technical report appear side by side.

Follow one GIFT-Eval solar forecast from left to right. In this forward pass, Tafsut-Synth splits 64 observed hours into four 16-hour patches. The encoder processes them alongside a learned register token and three future queries. The colored columns show six of each token’s 768 channels as they pass through the 14 blocks. The quantile head reads the three future tokens and produces one 16-hour forecast patch per token. Joining the patches in time order and undoing normalization gives 48 hourly forecasts in the original units. The line shows the median and the shading spans the 10th to 90th percentiles.

The four panels below the example are from the technical report. Panel (a) follows the full forecasting path, (b) shows the shared patch embedding, (c) opens one encoder block, and (d) expands the attention operation inside that block.

What the Synth suffix means

All training targets for this checkpoint were generated. The backbone and its extended quantile head both use synthetic data. The GIFT-Eval and FEV-Bench windows on this card are real held-out observations used for evaluation. The released 32K-context checkpoint precedes the separate real-data adaptation runs that produced Tafsut-GIFT and Tafsut-FEV.

Synthetic training mixture

The generator produces new trajectories by combining recurring patterns, latent dynamics, noise and observation artifacts. The first 1,000 epochs emphasized temporal structure, followed by 500 emphasizing counts and artifacts. Later stages extended the horizon and context. Five canonical processes retained a combined 5% share throughout.

The table gives the final default mixture, with 24 process components. Its weights describe how the producer allocates new trajectories. The curriculum changed the mix over training. Tafsut time-series generator

All 24 components of the default synthetic generator mixture, with their weights. Nineteen composed processes account for 95% and five canonical processes account for 5%.

Regular recurrence and intermittent counts account for the two largest shares. The five canonical processes cover pulses, counters, stocks, hysteresis and renewal events.

View all 24 synthetic processes and their sampling weights
Process in the default mixture Sampling weight
Regular recurrence 38.25%
Intermittent count 15%
Regular recurrence hard zero exact 4.725%
Lagged driver response 3%
Long memory 3%
Stable latent grammar 3%
Stationary ARMA/SAR 3%
Stochastic volatility 3%
Trend state space 3%
Trend structure 2.2%
Regular recurrence hard zero measured 2.025%
Hard zero periodic shape 2%
Low duty active window 2%
Near context cycle 2%
Observation robust structure 2%
Regime impulse structure 2%
Periodic pulse 2%
AM envelope core 1.8%
Phase elastic FM core 1.6%
Near context hard zero 1.4%
Cumulative counter 1%
Bounded stock 0.8%
Threshold hysteresis 0.7%
Refractory renewal 0.5%

Evaluation

With up to 32,768 history steps, the released nine-decile backbone achieves the following target-only results. The scores are geometric means of task errors relative to Seasonal Naive. Lower is better.

Benchmark Tasks Forecast windows Normalized MASE Normalized probabilistic error
GIFT-Eval 97 371,330 0.7104 0.4913 CRPS
FEV-Bench 100 235,039 0.6922 0.5717 SQL

Synthetic-only comparison from the report

The paper compares 8K- and 32K-context Tafsut-Synth with other models trained on synthetic data. At the same 8K history cap, Tafsut-Synth reduces normalized MASE relative to Chronos-2 Synth by 2.65% on GIFT-Eval and 1.53% on FEV-Bench. The 32K version has the lowest point and probabilistic errors in both comparisons.

GIFT-Eval

Synthetic-only models on GIFT-Eval. At 32K, Tafsut-Synth scores 0.7104 MASE and 0.4982 interpolated CRPS.

For this comparison the report interpolated deciles from the three training quantiles. At 32K that yields 0.4982 CRPS. The released head predicts the deciles directly and achieves 0.4913 CRPS with the same median.

FEV-Bench

Synthetic-only comparison on FEV-Bench. At 32K, Tafsut-Synth scores 0.6922 MASE and 0.5717 SQL.

The FEV-Bench comparison uses the synthetic extended head for SQL. The starred TabPFN-TS result uses its published known-future covariates, with Seasonal Naive filling one missing task. TempoPFN’s ratios come from its published skill scores.

Files and license

The checkpoint directory contains config.json, model.safetensors and SHA256SUMS. Run sha256sum -c SHA256SUMS from that directory to verify the downloaded weights. MIT license

Downloads last month
71
Safetensors
Model size
0.1B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Collection including Tafsut-FM/tafsut-synth

Paper for Tafsut-FM/tafsut-synth