atlas

Research map / Time series / Foundation models for time series

In-Context Fine-Tuning for Time-Series Foundation Models

ICML 2025 · Time series › Foundation models for time series · approach: Time series foundation models · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Continues pretraining the TimesFM time-series foundation model to accept multiple related in-context time-series examples at inference, yielding TimesFM-ICF with better zero-shot forecasting than its base model and per-dataset fine-tuned variants.

Problem

Zero-shot time-series foundation models for forecasting cannot exploit related example time-series from the target domain at inference; fine-tuning them recovers accuracy but breaks the zero-shot paradigm.

Approach

Continue pretraining a decoder-only TimesFM checkpoint with contexts that pack up to 50 related in-context time-series separated by a learnable separator token, with cross-example causal attention and NoPE positional encoding, so the model adapts to the target distribution at inference without gradient updates.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add in-context examples at inference timeTimesFM-ICF · MonashScaled MAE (GM): 0.694 -> 0.643Helped
add in-context examples at inference timeTimesFM-ICF · ETT average, horizon 96MAE: 0.335 -> 0.207Helped
add in-context examples at inference timeTimesFM-ICF · ETT average, horizon 192MAE: 0.368 -> 0.265Helped
increase in-context examples from 1 to 50 (ablation)TimesFM-ICF · ETT, ETTh1 and ETTh2 averageMAE: 0.411 -> 0.345Helped
increase in-context examples from 1 to 50 (ablation)TimesFM-ICF · MonashScaled MAE (GM): 0.667 -> 0.643Helped
use 4 in-context examples instead of a 2048-step history (ablation)TimesFM-ICF-4ex · MonashScaled MAE (GM): 0.685 -> 0.675Helped
use a 2048-step history instead of the standard TimesFM history (ablation)TimesFM (LH) · MonashScaled MAE (GM): 0.694 -> 0.685Helped
fine-tune all weights per dataset instead of using in-context fine-tuningTimesFM · Monashscaled MAE (GM): 0.643 -> 0.663Hurt
use no positional encodings instead of absolute positional encodings (ablation)TimesFM (base) · forecasting accuracyaccuracyNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: Synthetic Electricity Traffic Weather Favorita Sales LibCity M4 Wiki Trends Monash ETT

Benchmarks: Monash (18 datasets) ETTh1 ETTh2 ETTm1 ETTm2

Metrics: scaled MAE (geometric mean) MAE

Baselines: TimesFM (base) TimesFM (LH) FT-TimesFM (Full) FT-TimesFM (LP) LLMTime N-BEATS PatchTST N-HiTS Informer Pyraformer FEDformer Autoformer

Builds on: TimesFM PatchTST N-BEATS

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy