Tafsut logo

Tafsut-Adapter

Tafsut-Adapter adjusts a time-series forecast using information such as store-opening schedules, price promotions or weather forecasts. It takes a target history, forecast quantiles from a frozen backbone, and the covariates available when the forecast is made. It returns nine deciles in the target’s original units.

Quick start · Technical report · External backbones · Architecture · Training data · Evaluation

Sixteen zero-shot FEV-Bench windows show history, a backbone median, the adapter median with uncertainty bands, and held-out observations.

Zero-shot forecasts on FEV-Bench. Each of the 16 examples begins with the same target history for both forecasts. The amber dashed line shows the Tafsut-FEV backbone median. The teal line shows the adapter median, with central 60% and 80% intervals. Held-out observations appear last as a dashed line. Each window shows three history steps per forecast step, from an input of up to 2,048 observations. The label identifies whether the task supplied future covariates known at the forecast origin or past covariates only.

Quick start

Install the inference package with Python 3.10 or later.

python -m pip install "tafsut==0.2.0"

This example forecasts two weeks of store sales. The store normally opens Monday through Saturday. Its schedule includes an extra closure in the forecast period. Compare the two medians to see how the adapter uses that information.

import torch
from tafsut import TafsutAdapter, TafsutModel, forecast

backbone = TafsutModel.from_pretrained("Tafsut-FM/tafsut-fev", device="cpu")
adapter = TafsutAdapter.from_pretrained("Tafsut-FM/tafsut-adapter", device="cpu")

days = torch.arange(84)
past_open = (days % 7 < 6).float()
history = past_open * (100 + 8 * torch.sin(days.float() / 5))
future_open = (torch.arange(84, 98) % 7 < 6).float()
future_open[3] = 0

baseline = forecast(backbone, history, horizon=14)
adjusted = forecast(
    backbone, history, horizon=14, adapter=adapter,
    past_covariates=past_open, future_covariates=future_open,
)
print(adjusted.shape)  # torch.Size([1, 14, 9])
print(baseline[0, 3, 4].item(), adjusted[0, 3, 4].item())  # closure-day medians

For batches, pass target history shaped (batch, time) and covariates shaped (batch, channels, time), keeping the channel order consistent. Omit future_covariates when every channel is past-only. If availability differs by channel or date, fill unavailable entries with NaN. Future inputs must be known at the forecast origin. Output column 4 is the median, and columns 0 and 8 are the 10th and 90th percentiles. For offline use, replace the Hub IDs with local checkpoint directories. Inference package

Use a different backbone

Pass your model’s forecast quantiles to adapter.refine in original target units. For a single series, the expected shape is (horizon, quantiles). The example below uses empirical quantiles from the history as a runnable stand-in for an external forecaster.

levels = [0.1, 0.5, 0.9]
prior = torch.quantile(history, torch.tensor(levels)).repeat(14, 1)
refined = adapter.refine(
    history, prior, quantile_levels=levels,
    past_covariates=past_open, future_covariates=future_open,
)
print(refined.shape)  # torch.Size([1, 14, 9])

With all nine input deciles, the adapter learns the spacing of the six intermediate outputs between the three corrected anchors. With only the 10th, 50th and 90th percentiles, it interpolates the six intermediate deciles in target units. To reproduce the TiRex-2 transfer protocol with a nine-decile prior, set mode="anchors". For a batch, supply the prior as (batch, horizon, quantiles). External-backbone examples

Architecture

The released adapter has 50,299,660 parameters. The technical report gives 50.1M for the three-anchor adapter. The release also includes the head that places the six intermediate deciles. The paired Tafsut-FEV backbone has its own weights.

Component Released configuration
Inputs Target history, a backbone quantile forecast, and 1–16 time-aligned covariates
Context and horizon Up to 8,192 history steps for the adapter and 1–1,024 forecast steps per call
Patching Non-overlapping 16-step patches, with separate target and covariate streams
Encoder 8 blocks, width 640, 10 attention heads of width 64, SwiGLU width 1,504
Readout Residual corrections to the 10th, 50th and 90th percentiles, followed by the six intermediate deciles
Weekly sales at Rossmann store 67 pass through the adapter with Customers, Open, Promo, SchoolHoliday and StateHoliday. The animation compares the frozen backbone forecast, refined forecast and held-out sales, then traces the operations in four paper panels.

Follow one weekly Rossmann forecast. Store 67 has 26 weeks of sales history. For the 13 weeks from May 4 through July 27, 2014, the adapter knows the opening schedule, promotions, school holidays and state holidays. Customer counts are available only in the history. The hatched cells mark missing inputs or padding.

The sales history and frozen Tafsut-FEV forecast form the target stream. The five covariates form five more streams on the same 16-week patch grid. The diagram shows both history patches and the first of 64 native forecast patches, which contains all 13 requested weeks. The encoder cells track one measured activation per token across eight blocks. The customer stream can carry information from its history into a future patch even when that patch has no customer counts. Blue indicates negative values and teal indicates positive values. The last chart compares the prior and refined medians with held-out sales. The band spans the adapter’s 10th to 90th percentiles.

Each block first attends over time within each stream, then across streams at each patch. The frozen forecast enters both the future target patches and the residual head. In the four paper panels, highlights follow the prior through the residual head, show how target patches are embedded, trace the attention calculation, and show how tokens regroup across time and covariates. Checkpoint configuration

Training data and leakage rule

Adapter identifies the covariate-refinement checkpoint. The adapter was pretrained on generated target–covariate trajectories for 250,000 updates with the synthetic backbone frozen. For FEV-Bench, the three-anchor adapter trained on the FEV source corpus with synthetic relationship drivers. The extended head then trained for 3,000 updates to fill the six intermediate deciles while preserving the adapter’s three anchors.

The same FEV data-selection rule applies here as for the paired backbone. Any exposure to the same benchmark dataset at the same frequency counts as overlap, even if the training copy ends before the forecast target. Resampled versions at different frequencies remain eligible. The zero-shot results on this card use FEV-Bench.

Full FEV-Bench source selection

The technical report lists 2,980 retained source or member links. GIFT-Eval-Pretrain (P) contributes 138, Chronos pretrain (C) contributes 48, the Chronos companion collection (X) contributes two, and BOOM contributes 2,792. One dataset can contribute several frequencies, years, or variables. These counts describe the reviewed source inventory shared with Tafsut-FEV.

Of 50 omitted source copies, 28 were excluded for overlap or source-selection reasons and 22 were alternate representations. For example, the M5 copies from P and C were excluded, while a single hourly Oikolab weather copy was kept. The FEV selection also kept the original subdaily solar data. The source audit covers the matches and exclusions listed below. Undocumented transformations can remain unresolved.

Full FEV training inventory grouped by source, with retained datasets, replacement copies, repairs and exclusions.

In the figure, + marks a retained source, → points to the selected copy, ◇ marks a timestamp repair, and × marks an exclusion. The text table includes the frequency and source notes.

View the FEV-Bench source table and notes
Source Decision Datasets or members
GIFT-Eval-Pretrain (P) Retained Beijing Subway, HZMETRO, LOS_LOOP, PEMS03, PEMS04, PEMS07, PEMS08, PEMS-BAY, Q-Traffic, SHMETRO, Alibaba 2018, Australian elec., Azure VM 2017, BDG-2 bear, BDG-2 fox, BDG-2 panther, BDG-2 rat, Beijing air quality, Bitcoin, Borealis, Borg 2011, Buildings900K, Bull, CDC ILINet, CDC NREVSS, China air quality, CIF 2016 (12), CIF 2016 (6), CMIP6 (1850–2010), Cockatoo, COVID energy, COVID mobility, ElecDemand, ELF, ERA5 (1989–2018), Extended web traffic, Favorita sales, GoDaddy, Hog, IDEAL, Web traffic weekly, LargeST (2017–21), LCL, M1 monthly, M1 quarterly, M1 yearly, M3 monthly, M3 other, M3 quarterly, M3 yearly, NN5 daily, NN5 weekly, Oikolaba, PDB, Project Tycho, Residential load, Residential PV, Rideshare, Sceaux, SMART, Solar power, Spain, Subseasonal temp., Subseasonal precip., Sunspots, Tourism monthly, Tourism quarterly, Tourism yearly, Mixed weekly traffic, Vehicle trips, Wiki-Rolling, Wind Farms (1-min), Wind power
GIFT-Eval-Pretrain (P) Use C London meters, Pedestrian, Taxi 30-min, Traffic hourly, Uber daily, Uber hourly
GIFT-Eval-Pretrain (P) Use C/Pa Weather
Chronos pretrain (C) Retained Dominick, Electricity 15-min, Exchange rate, M4 (D/H/M/Q/W/Y), Mexico city bikes, Car parts, COVID deathsb, Electricity hourly, Electricity weekly, KDD Cup 2018, London meters, Pedestrian, Rideshare, Temperature/rain, Traffic hourly, Weather daily, Solar originald, Solar hourlyd, Taxi hourly, Taxi 30-min, Uber daily, Uber hourly, USHCN daily, WeatherBench daily, WeatherBench hourlye, WeatherBench weekly, Wiki daily 100K, Wind Farms daily, Wind Farms hourly
Chronos pretrain (C) Use P Australian elec., M1 monthly, M1 quarterly, M1 yearly, M3 monthly, M3 quarterly, M3 yearly, NN5 weekly, Tourism monthly, Tourism quarterly, Tourism yearly, NN5 daily
Chronos pretrain (C) Use P(6/12) CIF 2016
Chronos pretrain (C) Timestamps repaired Saugeenc
Chronos pretrain (C) Use C: original Solar hourly safe, Solar safe
Chronos companion (X) Retained Brazilian city temp., Spanish energy/weather
BOOM Retained All remaining BOOM members
BOOM Excluded 1062 / 5T, 1209 / 5T, 1225 / T, 1230 / 5T, 1282 / T, 1487 / 5T, 1631 / 30T, 1676 / 30T, 1855 / H, 1975 / H, 2187 / H, 285 / T, 619 / T, 772 / T, 963 / T
Other exclusions Excluded ERCOT (C), M5 (C/P), Hospital (C), FRED-MD (C/P), Favorita transactions (P), GEFCom 2012 (P), GEFCom 2014 (P), GEFCom 2017 (P), KDD2022 (P), ETTh (X), ETTm (X)

Inventory notes

  • a P/weather uses C/monash_weather for daily data and one P/oikolab_weather copy for hourly data.
  • b All 266 original COVID-death series were retained, including T000256.
  • c Saugeen retains its 23,741 target values. Daily timestamps were restored for 1915–1979 and the T1 column was renamed target.
  • d The original subdaily solar copies were retained. The alternate filtered copies were omitted.
  • e Hourly WeatherBench groups 14 variables. CMIP6 years advance in five-year steps, ERA5 and LargeST annually. D, H, M, Q, W and Y denote daily, hourly, monthly, quarterly, weekly and yearly frequencies. BOOM T, 5T and 30T denote one, five and thirty minutes.

Evaluation

When future inputs were known, enabling the adapter lowered geometric mean MASE by 11.2% over 30 FEV-Bench tasks. With past-only inputs, it lowered MASE by 1.1% over 12 tasks. The comparison uses the same backbone and matched rolling windows. Individual tasks can improve or worsen.

Mean MASE without and with the adapter for the 30 known-future and 12 past-only FEV-Bench tasks.

The full Tafsut-FEV system used this adapter on the 42 tasks with dynamic covariates and the backbone alone on 58 others. Across all 100 tasks and 235,039 forecast windows, the routed system achieved 36.43% MASE skill and 47.77% SQL skill. Tafsut-FEV system results

MASE on all 42 covariate tasks
Covariate availability FEV-Bench task Backbone MASE Adapter MASE
Known future rossmann_1W 0.6825 0.3302
Known future epf_de 1.1135 0.6356
Known future proenfo_gfc17 0.9972 0.6196
Known future epf_np 1.2765 0.8575
Known future proenfo_gfc14 0.6762 0.4612
Known future rossmann_1D 0.5497 0.4045
Known future rohlik_sales_1W 1.6892 1.4183
Known future rohlik_sales_1D 1.3094 1.1179
Known future epf_fr 0.5059 0.4388
Known future proenfo_gfc12 0.9888 0.8595
Known future solar_with_weather_1H 1.1007 1.0139
Known future favorita_stores_1M 2.2017 2.0323
Known future epf_be 0.6704 0.6365
Known future entsoe_1H 0.4649 0.4489
Known future uci_air_quality_1H 1.1017 1.0769
Known future favorita_stores_1D 1.1585 1.1390
Known future solar_with_weather_15T 0.9830 0.9722
Known future m5_1M 1.1533 1.1483
Known future uci_air_quality_1D 1.3724 1.3698
Known future m5_1D 0.8714 0.8714
Known future m5_1W 1.1319 1.1338
Known future epf_pjm 0.4495 0.4515
Known future favorita_stores_1W 2.2399 2.2496
Known future walmart 0.8321 0.8398
Known future entsoe_15T 0.6812 0.6876
Known future favorita_transactions_1D 1.1015 1.1153
Known future hermes 0.7868 0.8017
Known future rohlik_orders_1D 1.1944 1.2230
Known future entsoe_30T 0.6109 0.6279
Known future rohlik_orders_1W 1.5295 1.7115
Past only kdd_cup_2022_10T 0.5498 0.5085
Past only kdd_cup_2022_30T 0.5921 0.5562
Past only favorita_transactions_1M 1.2954 1.2582
Past only fred_md_2025/cee 4.2503 4.1474
Past only uk_covid_nation_1W/new 5.0558 4.9825
Past only uk_covid_nation_1D/new 2.3949 2.3774
Past only fred_qd_2025/cee 2.2220 2.2244
Past only uk_covid_nation_1D/cumulative 7.6343 7.6596
Past only kdd_cup_2022_1D 0.9034 0.9070
Past only uk_covid_nation_1W/cumulative 2.6935 2.7506
Past only gvar 0.6859 0.7008
Past only favorita_transactions_1W 1.5224 1.5688

Transfer to other backbones

The report applies the same frozen adapter to seven external forecasters. Within each pair, the backbone forecast and adapter weights are identical. Masking the covariates gives the comparison value. Making them available lowers MASE by 6.1–10.3% and three-quantile SQL by 6.6–9.9% across the seven models.

Point forecasts. Lower MASE is better.

Masked and available-covariate MASE scores using the same frozen adapter on seven external backbones.

Probabilistic forecasts. Lower SQL is better. The transfer experiment scores the 10th, 50th and 90th percentiles across the 42 covariate tasks. The full-system skill score above uses nine deciles.

Masked and available-covariate three-quantile SQL scores for the same seven backbones.

The transfer protocol uses a 1,024-step prior for each backbone except TiRex-2, which uses its task-horizon forecast with last-value padding. Chronos-2 and t0-beta use 64 adapter queries. The other models request one 16-step patch per horizon segment. Scores use only the requested horizon.

The paper also compares each model’s univariate and native covariate forecasts where available. Native covariate forecasts give the lowest errors for Chronos-2 and t0-beta.

Exact transfer scores for all four forecast settings

MASE

Backbone Univariate Masked covariates Native covariates Tafsut-Adapter
TiRex-2 1.1826 1.1889 1.0876 1.0766
Chronos-2 1.2066 1.1978 1.0698 1.0911
t0-beta 1.1867 1.1914 1.0628 1.0784
Toto 2.0 313M 1.2523 1.2494 1.2139 1.1208
TiRex 1.2157 1.2159 — 1.1013
TimesFM 2.5 1.0255 1.0299 — 0.9666
Granite PatchTST-FM-r2 1.1988 1.2024 — 1.0891

Three-quantile SQL

Backbone Univariate Masked covariates Native covariates Tafsut-Adapter
TiRex-2 0.8046 0.8071 0.7416 0.7317
Chronos-2 0.8109 0.8049 0.7221 0.7322
t0-beta 0.8004 0.7996 0.7176 0.7279
Toto 2.0 313M 0.8722 0.8384 0.8234 0.7553
TiRex 0.8314 0.8269 — 0.7488
TimesFM 2.5 0.7093 0.7089 — 0.6622
Granite PatchTST-FM-r2 0.8111 0.8102 — 0.7367

Files and license

config.json defines the adapter and model.safetensors contains its inference weights. Run sha256sum -c SHA256SUMS from the checkpoint directory to verify the weights. MIT license

Downloads last month
69
Safetensors
Model size
50.3M 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-adapter

Paper for Tafsut-FM/tafsut-adapter