Latent Inference-Time Guidance of Time Series Foundation Models
Organizations: LPSM, Sorbonne Université · EDF R&D · UCL
Abstract
Time Series Foundation Models (TSFMs) currently provide state-of-the-art results in forecasting tasks. They are available out-of-the-box and rely on in-context learning to make their predictions, which makes the quality of their performance highly sensitive to the user-selected lookback, covariates, horizon and training data distributions. In practise, the quality of the forecasts are variable but complementary, which highlights the need for a principled ensembling approach, rather than selecting the best context. This paper introduces Latent Inference-Time Guidance for TSFMs, which adaptively combines a pool of TSFM forecasts through a time-dependent latent space with independent components. The framework comes equipped with identifiability and reconstruction guarantees, whilst maintaining the off-the-shelf aspect of foundation models. We provide experiments on datasets at various frequencies and from multiple domains: these show that the approach is competitive with traditional ensembling approaches.
Figures & tables
| Dataset | Domain | Freq | Length | # Covariates | # Series |
|---|---|---|---|---|---|
| London Smart Meter ( UK Power Networks, 2015 ) | Energy | D | 606 | 17 | 5 |
| Mauna Loa ( Lan and Keeling, 2026 ) | Climate | M | 627 | 9 | 1 |
| NN5 Weekly ( Godahewa et al., 2020 ) | Finance | W | 837 | 4 | 111 |
| Washington Bicycle Share ( Fanaee-T, 2013 ) | Traffic | H | 17378 | 30 | 1 |
Appendix figures & tables11 assets
Supplementary material from the paper’s appendix.
Appendix
| Feature | Preprocessing |
|---|---|
| Acorn segment | One-hot encoded |
| Number of clients | Normalised between 0 and 1 |
| Date | Year cyclically encoded |
| Weekday | One-hot encoded |
| Temperature | Normalised between 0 and 1 |
| Consumption (target) | Normalised between 0 and 1 |
| Feature | Preprocessing |
|---|---|
| Demand (target) | Normalised between 0 and 1 |
| Month of year | Cyclically encoded |
| Week of year | Cyclically encoded |
| Feature | Preprocessing |
|---|---|
| Positional encoding | Encoded between 0 and 1 |
| Year | Normalised between 0 and 1 |
| Month | Cyclically encoded |
| Mean monthly concentration (target) | Detrended, normalised between 0 and 1; lagged |
| Deseasonalised mean monthly concentration | Detrended, normalised between 0 and 1; lagged |
| Number of days with measurements | Normalised between 0 and 1 |
| Feature | Preprocessing |
|---|---|
| Season | One-hot encoded |
| Bank holiday | One-hot encoded |
| Day of week | One-hot encoded |
| Hour | Cyclically encoded |
| Month | Cyclically encoded |
| Working day | One-hot encoded |
| Hyperparameter | Smart Meter | Bike Share | NN5 Weekly | Mauna Loa |
|---|---|---|---|---|
| Sequence length | 64 | 96 | 16 | 196 |
| Batch size | 128 | 256 | 64 | 128 |
| Learning rate | ||||
| Latent dimension | 64 | 64 | 32 | 64 |
| Epochs | 200 | 20 | 60 | 500 |
| Number heads in encoder | 4 | 4 | 4 | 4 |
| Dataset | TSFM low freq. | TSFM high freq. | Kalman | Lit i g - Tsfm train + infer |
|---|---|---|---|---|
| Smart Meter* | 1’44, 1’27 | Not used | 35” | 3’04” + 1” |
| Bike Share | 39’, 10’ | 60’, 10’ | 13’02" | 9’48" + 33" |
| NN5* | 10", 9" | 40", 59" | 5" | 37" + 1" |
| Mauna Loa | 1’, 1’ | 14’, 16’ | 1’ | 4’ + 2” |