arXiv:2611.06064cs.LGNov 2026

Manuscript Offprint

arXiv:2611.06064

Learning From Static Context in Federated Time Series Forecasting

Viktor Walter, Andreas Wagner, Fabian Stricker

Viktor Walter

Faculty of Management Science and Engineering Karlsruhe University of Applied Sciences (HKA) Karlsruhe, Germany viktor.walter@h-ka.de

Andreas Wagner

Faculty of Management Science and Engineering Karlsruhe University of Applied Sciences (HKA) Karlsruhe, Germany Fraunhofer Institute for Industrial Mathematics (ITWM) Kaiserslautern, Germany andreas.wagner@h-ka.de

Fabian Stricker

Institute of Data-Centric Software Systems (IDSS) Karlsruhe University of Applied Sciences (HKA) Karlsruhe, Germany fabian.stricker@h-ka.de

Abstract—Time series forecasting is shifting from locally trained, per-series models to global models trained across many heterogeneous series, which requires learning what sets the series apart. When the raw data cannot be centralized, such a global model is trained with federated learning (FL), one client per data owner. State-of-the-art forecasters such as the Temporal Fusion Transformer (TFT) tell series apart through a static input that describes each series and does not change over time. In the special case of a federated setting where each client holds a single series, this static input is constant within each client and varies only across clients. We ask whether a federated TFT can learn from it. Per-batch FedAdam, which aggregates gradients after every batch, uses the static input almost as well as central training, whereas communication-efficient schemes with local epochs (FedAvg, FedAdam+Prox) extract far less from it and gain nothing significant on either application dataset. At the same local computation, an Adam-compatible SCAFFOLD keeps the static pathway responsive on wind power and gains significantly there. On building energy its error still drops, but the static pathway falls silent, so drift and communication frequency cannot be fully separated as the cause. Only per-batch FedAdam matches or beats the per-client local models across all datasets. We confirm the effect on building-energy meter data, a wind-power dataset, and a controlled synthetic dataset. The loss is not specific to the TFT: on the synthetic and the wind data two further architectures with different static-conditioning mechanisms show it as well.

Index Terms—Federated Learning, Time Series Forecasting, Temporal Fusion Transformer, Static Features, Client Drift, Heterogeneity

I. INTRODUCTION

Time series forecasting increasingly relies on large, deep models trained across many heterogeneous series, rather than one specialized model per series. The data come from diverse sources whose technical characteristics shape each series. In

renewable energy forecasting, for example, technical differences determine the shape of a time series of electricity production and may have to be learned along with it [1]. Another domain common in federated forecasting is electricity demand forecasting [2], where office buildings, hospitals, schools, and homes follow very different patterns. A model exposed to many series must therefore learn what sets them apart. Training one global model across many series instead of one model per series is a recent shift [3], and a federated forecaster is such a global model.

A state-of-the-art forecasting architecture is the Temporal Fusion Transformer (TFT) [4]. It uses a dedicated static input to tell entities apart. A static feature is time-invariant and describes the series, in the simplest case as a categorical identifier, or continuously as hub height for wind turbines, floor area for buildings, or tilt angle for photovoltaic systems.

Pooling the raw data is not an option in these domains. Load profiles are personal data, because non-intrusive load monitoring infers occupancy and appliance use from them [5]. Wind and photovoltaic operators treat power curves and supervisory control data as trade secrets, and marketers may not pass on the data of the plants they market [1]. Federated learning (FL) trains one model across the owners without moving their data, one client per owner.

In the special case where each client holds a single entity, the client boundary is the entity boundary and the static feature is constant within a client. This case raises the problems we investigate in this paper: a constant feature has no variance, so a client cannot learn from it on its own, and its information lies entirely in how it varies across clients, which only federated training can access.

We study this with a federated TFT trained under several aggregation schemes, a probe that measures static-input usage directly, two diagnostics that localize the loss, and three datasets where the role of the static input is known or

This work was supported by the German Federal Ministry of Research, Technology and Space under Grant 13FH587KX1 (FederatedForecasts) controllable. The answers to the three questions below are the contributions of this paper.

RQ1 Can a federated TFT learn from a client-constant static input?

Fully only under per-batch FedAdam, which uses it almost as well as central training. Schemes with local epochs extract a fraction at most.

RQ2 Is the limit the communication frequency or the client drift?

Not conclusively. Fewer local steps help, but they raise the communication frequency and lower the drift together. Drift correction at a fixed frequency, the one experiment that separates the two, keeps part of the static pathway on wind power and gains significantly there, but recovers little on the synthetic data and nothing on building energy.

RQ3 Where does the failure sit, and what does it cost to avoid?

Not in the static encoder alone. On building energy, the loss grows with the number of local steps under a proximal term and is complete under FedAvg, and coupling only the static encoder per batch leaves the static pathway silent. Avoiding it costs one communication round per gradient step.

References (27)