---
title: TFMAdapter for Forecasting with Covariates
url: https://www.emergentmind.com/topics/tfmadapter
type: topic
---

# TFMAdapter for Forecasting with Covariates

TFMAdapter is a lightweight, instance-level adapter for forecasting with covariates that augments frozen time series foundation models (TSFMs) without fine-tuning. It is designed for the setting in which a pretrained TSFM is strong at univariate forecasting from a brief target history but does not reliably exploit future-known exogenous variables. Rather than retraining the backbone, TFMAdapter learns, within a single forecasting instance, a non-parametric cascade that combines TSFM forecasts with covariates using two classical models: a Bayesian Ridge pseudo-forecast generator and a Gaussian Process regressor. The method is explicitly formulated as a frozen-model adaptation scheme with minimal data and computational overhead, and the reported experiments show average MAE improvements of roughly \(24\%\)–\(27\%\) over base foundation models on forecasting-with-covariates benchmarks [2509.13906].

## 1. Problem setting and motivation

TFMAdapter targets a specific failure mode of contemporary TSFMs: strong zero-shot or few-shot univariate forecasting paired with weak use of future-known exogenous variables. In the paper’s formulation, a TSFM can produce a forecast from a target history
\[
\hat Y_{H+1:H+F} = \mathcal M(Y_{1:H}),
\]
but many practical tasks require forecasts of the form
\[
\hat{Y}_{H+1:H+F} = f(Y_{1:H}, \vX_{1:H+F}),
\]
where \(\vX_{1:H+F}\) contains covariates over both the observed history and the forecast horizon. The motivating examples include settings such as electricity price forecasting, where future load and renewable generation forecasts are available in advance [2509.13906].

A central empirical motivation is the paper’s analysis of Moirai. Although Moirai nominally supports covariates, the authors report that it often does not use them effectively. They test this directly by supplying “oracle” covariates equal to the future target itself and show that Moirai still does not approach perfect forecasting. This is used as evidence that architectural support for covariates is not equivalent to effective covariate utilization [2509.13906].

TFMAdapter therefore addresses a gap between generic pretrained temporal priors and domain-specific forecasting needs. Its core premise is that a frozen TSFM already encodes useful temporal structure, but that the relationship between those univariate forecasts and exogenous drivers can be learned locally, at inference time, from the current instance’s own history.

## 2. Formal formulation and adaptation objective

The method assumes a target history
\[
Y_{1:H} = \{y_1,\dots,y_H\},
\]
a forecast horizon of length \(F\), and covariates
\[
\vX_{1:H+F} = \{\vx_1,\dots,\vx_{H+F}\},
\]
with \(\vx_t \in \mathbb{R}^d\). The base TSFM is treated primarily as a univariate forecaster:
\[
\hat{Y}_{H+1:H+F} = \mathcal M(Y_{1:H}).
\]

The adapter objective is instance-level rather than dataset-level. TFMAdapter is learned for a single forecasting problem using only the current series history and the covariates available for that same instance. The paper also introduces \(h\), the minimum history length required for \(\mathcal M\) to produce meaningful forecasts. This matters because historical training examples for the adapter can only be constructed from prefixes \(Y_{1:t}\) with \(t \ge h\) [2509.13906].

This design distinguishes TFMAdapter from parameter-efficient fine-tuning in the usual sense. No TSFM parameters are updated. The foundation model is instead queried a small number of times, and the resulting outputs are used to train auxiliary local models around it. The reported method is therefore an adapter in the functional sense—augmenting a frozen foundation model—rather than an internal weight-space or hidden-state adapter.

## 3. Stage I: pseudo-forecast generation

The first stage exists to avoid repeatedly calling the TSFM across the entire history. Direct training of a historical combiner would require TSFM forecasts for many prefixes \(Y_{1:t}\), which the paper identifies as the main computational bottleneck. TFMAdapter replaces this with a constant and small number of TSFM calls, using a pseudo-generator to imitate TSFM behavior over the full context [2509.13906].

The forecastable suffix of the history, from \(h\) to \(H\), is partitioned into non-overlapping windows of size \(F\):
\[
W_i = (h_i+1, h_i+F), \quad i=1,\dots,N, \qquad N = \frac{H-h}{F}.
\]
Each window is normalized using the mean and standard deviation of the full history,
\[
Z_n = \frac{W_n - \mu_y}{\sigma_y},
\]
and assigned an average z-score
\[
\bar Z_n = \frac{1}{F} \sum_{i=1}^{F} Z_n(i).
\]
The algorithm then selects \(K=3\) representative windows: those with the lowest, median, and highest \(\bar Z_n\). For each selected window, the TSFM is called on the preceding prefix:
\[
\hat{Y}_{h_i+1:h_i+F} = M(Y_{1:h_i}).
\]

These sparse TSFM forecasts supervise a Bayesian Ridge pseudo-forecast generator \(\mathcal G\). The training features include the historical series values, lag features, and sinusoidal positional encodings:
\[
\text{lag-L}(y_t) = Y_{t-L:t-1}, \qquad
\text{positions}(t) = \text{sinusoidal}(t \bmod s) \in \mathbb{R}^p.
\]
Algorithm 1 writes the training design matrix as
\[
\mathbf{X}_{\text{train}} = \big[ Y_{h_i+1:h_i+F};\ \text{lag-L}(Y_{h_i+1:h_i+F});\ \text{positions}(h_i+1:h_i+F) \big]_{i=1}^K,
\]
with targets
\[
Y_{\text{train}} = [\hat{Y}_{h_i+1:h_i+F}]_{i=1}^K.
\]

Once fitted, \(\mathcal G\) produces pseudo-forecasts across the history,
\[
\tilde{Y}_{1:H} = \mathcal{G}(Y_{1:H}),
\]
thereby creating TSFM-like signals at many historical positions without many TSFM invocations. The paper’s algorithm also states
\[
\tilde{Y}_{H+1:H+F} = \mathcal{G}(M(Y_{1:H})),
\]
which specifies the future-side pseudo-feature generation used by the subsequent adapter stage [2509.13906].

## 4. Stage II: Gaussian Process adaptation and inference

The second stage is a Gaussian Process (GP) regressor that maps pseudo-forecasts and covariates to corrected target values. The observation model is
\[
y_t = g(\tilde{y}_t, \vx_t, f_t) + \epsilon_t, \qquad \epsilon_t \sim \mathcal{N}(0, \sigma_t^2),
\]
where \(\tilde y_t\) is the pseudo-forecast, \(\vx_t\) is the covariate vector, and \(f_t\) denotes auxiliary features such as lags and positional encodings [2509.13906].

The GP uses a composite kernel
\[
k(z,z') = k_1(z_1,z_1') + k_2(z_2,z_2'),
\]
where \(z_1\) concatenates pseudo-forecasts, lag features, and positional encodings, and \(z_2\) contains covariates. The reported kernel families are Matern, RBF, and Linear, including combinations thereof. This decomposition separates TSFM-like temporal signals from direct exogenous effects.

Posterior prediction follows the standard closed-form GP equations printed in the paper:
\[
\mu^* = K_*K^{-1}Y_{train}, \qquad
\Sigma^* = K_{**} - K_*K^{-1}K_*^T.
\]
The adapted forecast is the posterior mean
\[
Y^*_{H+1:H+F} = \mu^*.
\]

A validation procedure is built into the method. The latest \(F\) historical points, from \(H-F\) to \(H\), are reserved for validation and used to select the kernel, optimize kernel parameters, and tune an uncertainty threshold. At inference time, if the GP posterior variance at a future step exceeds that threshold, the method falls back to the base TSFM forecast for that step. This fallback mechanism is integral to the reported system and makes the adapter conservative under high uncertainty [2509.13906].

## 5. Empirical evaluation

The experiments include both a covariate-usage diagnostic and a broader forecasting benchmark. The diagnostic uses ETT datasets—ETTh1, ETTh2, ETTm1, and ETTm2—to compare Moirai in univariate, multivariate, and forecasting-with-covariates settings, including the oracle-covariate condition \(\vX_{1:H+F} = Y_{1:H+F}\). The benchmark evaluation uses two groups of datasets: five electricity price forecasting datasets (EPF-BE, EPF-DE, EPF-FR, EPF-NP, EPF-PJM) and eight forecasting-with-covariates datasets derived from ImputeBench (Air Quality, Bafu, Chlorine, Climate, Drift, Electricity, Meteo, Temp) [2509.13906].

| Benchmark group | Datasets | Typical setup |
|---|---|---|
| EPF | EPF-BE, EPF-DE, EPF-FR, EPF-NP, EPF-PJM | \(H=672\), \(F=24\), 2 covariates |
| ImputeBench-derived | Air Quality, Bafu, Chlorine, Climate, Drift, Electricity, Meteo, Temp | \(H\) from 288 to 960, \(F\) from 24 to 96, 4 or 10 covariates |

The backbones are Chronos-Bolt-Base (205M), Moirai v1.1 base (91.4M), and TimesFM 2.0 (500M). Baselines include supervised models trained only on the available history—Kernel Regression, TiDE, NBEATSx-I, and TimeXer. Metrics are MAE, SMAPE, and RMSE [2509.13906].

The headline result is the average MAE improvement over the corresponding base foundation model: **27.267%** for Chronos + TFMAdapter, **27.891%** for Moirai + TFMAdapter, and **24.961%** for TimesFM + TFMAdapter. The paper also reports large instance-level gains on specific datasets. For example, Chronos on Air Quality improves from MAE **0.756** to **0.217**, and on Drift from **0.601** to **0.043**. The horizon-scaling study further reports that gains increase with forecast length; for Chronos at \(H=672\), the gain rises from **5.67%** at \(F=24\) to **11.84%** at \(F=168\) [2509.13906].

The most important ablation concerns the pseudo-generator. Training the adapter with pseudo-forecasts generated from only \(k=3\) TSFM calls is reported to outperform direct training on true TSFM forecasts obtained from \(3F\) or \(5F\) invocations, and to be comparable to direct training with \(8F\) true-forecast data. This is the paper’s strongest evidence that Stage I is not merely a computational convenience but an effective approximation mechanism [2509.13906].

## 6. Position within the adapter literature and interpretive boundaries

TFMAdapter occupies a specific place in the broader adapter landscape. It is not a parameter-efficient internal adapter of the sort used inside transformer blocks, nor an input-side dimensionality reduction layer. Instead, it is a frozen-model, instance-level forecasting adapter that learns a local correction model around a TSFM forecast. This distinguishes it from output-level online wrappers such as AdapTS, which combine frozen FM forecasts with a lightweight online forecaster but do not explicitly target covariate integration within a single inference instance [2502.12920]. It also differs from front-end channel-reduction adapters for multivariate time series classification, which compress input dimensions before a pretrained backbone rather than learning a per-instance forecasting correction with future-known exogenous variables [2409.12264].

In the TSFM ecosystem, TFMAdapter is compatible with a modular view of adapters as external components attached to frozen backbones, a view also reflected in pipeline toolkits that treat adapters as first-class modules around TSFMs [2512.01038]. Its distinctive contribution is the combination of three properties in one method: no backbone fine-tuning, instance-level fitting, and explicit use of future-known covariates.

Several limitations are implicit in the reported design. The method depends on informative covariates; if exogenous inputs are weak or unreliable, the benefit of the GP refinement may diminish. The pseudo-generator also assumes that TSFM behavior can be approximated from a few representative windows using Bayesian Ridge regression. A plausible implication is that this approximation may degrade when the TSFM’s forecast behavior is highly nonlocal or structurally complex. Likewise, the GP is appropriate for the reported history lengths, but standard GP regression remains sensitive to the size of the local training set. The paper’s own framing suggests that TFMAdapter is most useful precisely because current TSFMs often fail to use covariates well; if future TSFMs were to exploit covariates reliably, the incremental role of this adapter might narrow [2509.13906].

TFMAdapter is therefore best understood as a practical bridge between generic pretrained temporal inductive bias and domain-specific forecasting requirements. Its central result is that a frozen univariate TSFM, queried only a few times and wrapped by a local Bayesian Ridge–plus–Gaussian Process cascade, can substantially improve forecasting with covariates without fine-tuning the foundation model [2509.13906].

Source: https://www.emergentmind.com/topics/tfmadapter