TimeGuard: Channel-wise Pool Training for Backdoor Defense in Time Series Forecasting
Abstract
Lay Summary
Many important time series forecasting systems use past measurements to predict the future, such as in traffic, energy, finance, and healthcare. These systems can be secretly manipulated through backdoor attacks: the model behaves normally most of the time, but produces attacker-chosen predictions when a hidden pattern appears. We ask whether existing defenses against backdoor attacks are effective for time series forecasting, despite its mixed measurements and differences from other machine learning tasks. We first study thirteen common defenses and identify why they often fail in time series forecasting. We then propose TimeGuard, a defense that uses channel-wise training to check each measurement separately instead of treating all measurements together. TimeGuard starts from a set of reliable examples, called a reliable pool, selected using information specific to time series data. TimeGuard then progressively updates this reliable pool during training by selecting examples based on how well the system predicts their future values and how similar they are to trusted examples in the pool. Across various attacks, datasets, and forecasting models, TimeGuard effectively protects forecasting systems against backdoor attacks while keeping normal forecasting performance nearly unchanged. This work provides a step toward safer and more trustworthy forecasting systems in real-world applications.