TS-Inverse: A Gradient Inversion Attack Tailored for Federated Time Series Forecasting Models

Anonymous Authors, Caspar Meijer 1 2, Jiyue Huang 1, Shreshtha Sharma 2, Elena Lazovik 2, Lydia Y. Chen 1 3 · 2025

Read TS-Inverse: A Gradient Inversion Attack Tailored for Federated Time Series Forecasting Models by Anonymous Authors, Caspar Meijer 1 2, Jiyue Huang 1, Shreshtha Sharma 2, Elena Lazovik 2, Lydia Y. Chen 1 3 (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2503-20952.txt.

Introduction

A research team published a research paper in 2025 on an attack that reconstructs private time series data from the updates shared in federated learning. Hospitals and utilities train forecasting models together without pooling raw data, but a curious server might invert the shared gradients to recover the inputs. Attacks were well studied for images, not for forecasting.

Their method, TS-Inverse, predicts quantiles of the hidden series and penalizes breaks in trend and seasonal rhythm. Across four forecasting models and four data sets it recovered series far more accurately than older attacks, improving the error score by two to ten times. The result warns that federated forecasting needs stronger privacy defenses.

Catalog record

CREATORAnonymous Authors, Caspar Meijer 1 2, Jiyue Huang 1, Shreshtha Sharma 2, Elena Lazovik 2, Lydia Y. Chen 1 3
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE65 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2503-20952

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

TS-Inverse: A Gradient Inversion Attack Tailored for Federated Time Series Forecasting Models Thanks: This research was partially supported by the SNSF project, Priv-GSyn (grant number 200021E_229204), and the Advanced Computing Engineering (ACE) Department at TNO. Anonymous Authors, Caspar Meijer 1 2, Jiyue Huang 1, Shreshtha Sharma 2, Elena Lazovik 2, Lydia Y. Chen 1 3 Abstract Federated learning (FL) for time series forecasting (TSF) enables clients with privacy-sensitive time series (TS) data to collaboratively learn accurate forecasting models, for example, in energy load prediction. Unfortunately, privacy risks in FL persist, as servers can potentially reconstruct clients’ training data through gradient inversion attacks (GIA). Although GIA is demonstrated for image classification tasks, little is known about time series regression tasks. In this paper, we first conduct an extensive empirical study on inverting TS data across 4 TSF models and 4 datasets, identifying the unique challenges of reconstructing both observations and targets of TS data. We then propose TS-Inverse, a novel GIA that improves the inversion of TS data by (i) learning a gradient inversion model that outputs quantile predictions, (ii) a unique loss function that incorporates periodicity and trend regularization, and (iii) regularization according to the quantile predictions. Our evaluations demonstrate a remarkable performance of TS-Inverse, achieving at least a 2x-10x improvement in terms of the sMAPE metric over existing GIA methods on TS data. Code repository: https://github.com/Capsar/ts-inverse I Introduction Federated learning (FL), a distributed machine learning framework in which a server and multiple clients collaboratively train a global model, is established as an effective method for training deep neural networks without centrally storing client training data. In this framework, clients independently train the model on their local data, and then transmit these updates to a central server. The server aggregates these updates and sends the new global model back to the clients who complete the global training round [ 1 ] . This learning paradigm has wide applications in industries that face privacy issues when collecting raw data, such as the energy distribution industry [ 2 ] . The energy industry actively researches data-driven technologies for load forecasting, a typical challenge in time series (TS) data, where historical data is used to predict future load patterns [ 2 , 3 ] . Specifically the forecasting of individual loads on low-voltage (smart-)grids is a key subject of interest within the community as it allows the Distribution System Operators to optimize the grid on a local level [ 3 , 4 ] . Local-level forecasting, while beneficial, faces a legal challenge: The EU general data protection regulation (GDPR) protects the privacy of household and corporate energy data, preventing its central aggregation for ML model training [ 5 , 6 ] . This is where FL comes into play, allowing the data to remain at its source. Figure 1 illustrates an example scenario where households are equipped with smart meters that record private energy data, participating as clients in the FL system. The objective of the FL system is to build a global forecasting model that predicts individual household energy consumption, using the historical energy consumption data from all clients. Fig. 1 : Federated time series forecasting: a use case in energy demand forecasting with an honest-but-curious ”watching” server. Each smart meter has a forecasting model and a sequence of energy data. The server distributes the global model parameters and retrieves the locally trained models. Nonetheless, FL is not without privacy risks, such as membership inference, and property inference attacks [ 7 , 8 ] . Given strict privacy regulations like GDPR, it is crucial to ensure that private energy data is not leaked through FL systems [ 6 ] , just as with sensitive medical images [ 9 ] . This paper specifically addresses gradient inversion attacks (GIAs), where attackers aim to reconstruct private training data from client updates [ 10 ] by matching clients’ gradients with so-called dummy gradients. Previous research has demonstrated the feasibility of such attacks in image classification tasks, using model parameter updates from FL training to reconstruct training data [ 11 , 12 , 13 , 14 , 15 , 16 , 17 , 18 , 19 , 20 ] . Improving privacy attacks is essential, as understanding these enables a more rigorous evaluation of defense mechanisms, ultimately enhancing the overall security of privacy preserving systems. In this paper, we address this gap by focusing on GIAs for federated time series forecasting (TSF) models. Inverting TS poses unique challenges compared to inverting image data with classification tasks. The training data of TS is composed of a sequence of observations and target values, whereas the existing GIA deals with input pairs of images and labels. Reconstructing TS thus requires inverting gradients into the sequences of observations and targets. The network architecture for TSF includes components to capture time dependency, e.g., Gated Recurrent Unit (GRU) [ 21 ] and 1-D temporal convolution (TCN) [ 22 ] . To demystify the inversion risk for TSF, we start with an empirical analysis by applying existing GIAs on combinations of 4 TSF models and 4 datasets. Based on the insights observed, we propose a novel and effective inversion framework, TS-Inverse , which utilizes additional knowledge and TS related characteristics for regularization. We also derive the analytical inversion of target values for the special case with a batch size of one. Extensive evaluation results against existing GIAs and ablation studies show that TS-Inverse is able to reconstruct both the observation and target values of time series, achieving low reconstructing errors. Our contributions can be summarized as follows: • We conduct the first empirical analysis of GIAs on federated TSF models, highlighting the challenges of inverting both observation and target sequences with respect to model architecture, gradient distance, and regularization. (Section III ) • We design TS-Inverse , which includes two innovative components: the gradient inversion model and TS-regularized inversion optimization. The gradient inversion model provides relevant quantile bounds by leveraging auxiliary data. The gradient distance is the L1-Norm with TS regularization incorporating periodicity, trend, and the learned quantile bounds of the gradient inversion model. Additionally, a one-shot analytical technique is used for reconstructing targets. (Section IV ) • We extensively evaluate TS-Inverse on four datasets and five forecasting architectures, demonstrating a 2x-10x reduction in reconstruction error on the non-RNN-based architectures. (Section V ) II Background II-A Time Series Forecasting with Federated Learning Most of the existing FL studies focus on image and text classification tasks [ 8 ] , but its application to TS data is relatively under explored and primarily concentrated in the energy forecasting domain [ 23 , 24 , 25 ] . In the context of FL for TSF, Recurrent Neural Networks (RNNs) [ 26 ] and TCNs [ 22 ] are commonly used, opposed to traditional statistical models, due to their superior ability to capture complex temporal patterns in data. RNNs [ 26 ] , specifically Long Short-Term Memory (LSTM) networks [ 27 ] and GRUs [ 21 ] , are commonly used in federated settings for energy forecasting tasks [ 23 , 28 ] . GRUs are an alternative to LSTMs that use fewer gating mechanisms to control flow of information, offering more computational efficiency while maintaining performance.

Read the complete text