TS-Edit: A Model Editing Framework for Adversarial Defense in Time-Series Foundation Models
Vaibhav Achar, Jathin Shettigar Nagabhushan, Abhishek Bhardwaj, Saptarshi Sengupta
Abstract
Time-series foundation models (TSFMs) report strong zero-shot forecasting performance, but where they store factual associations internally that drive a particular forecast, and whether the association can be corrected after a malicious attack are open questions. While these models are increasingly deployed in industrial settings such as power grids, traffic and finance, they remain vulnerable to careful backdoor injections inducing catastrophic operational hazards. To address this, we introduce TS-Edit, a novel model editing framework for adversarial defense in TSFMs. We extend model interpretability approaches built for language models such as causal tracing, ROME, sequential ROME and MEMIT on TimesFM 2.5, a decoder-only transformer model and evaluate the framework on popular time-series benchmarks. We use masked white-box attacks (FGSM, BIM and PGD) to corrupt a single segment of the context window; causal tracing then localizes the damage across various MLP layers and a closed-form rank-one update to the identified feed-forward weight then repairs the corrupted forecast. For instance, a single ROME edit after PGD on UCI Electricity reduces the corrupted-forecast NRMSE by 38.5x, with clean-input specificity drift on the order of 10-4. Reusing the same PGD-localized layer for BIM and FGSM (cross-attack transfer) repairs those attacks by 12.2x and 1.2x respectively, and consistent results across datasets. Subsequent iterative editing exposes a restoration-versus-specificity trade-off. Sequential ROME gives the most consistent restoration across attacks, whereas MEMIT attains both the lowest error and the lowest specificity under the strongest attack, PGD. In every case the clean-input drift remains negligible. Together, these results demonstrate that both the key-value memory interpretation of feed-forward layers and their localized editability can extend beyond language models.
Create a lesson
Metadata
- Comments
- 40th Conference on Neural Information Processing Systems (NeurIPS 2026). Workshop: TS-LIMITS
Related papers
The Price of a Vocabulary: Finite-Sample Laws for Time-Series Tokenization
Shared title terminologycs.LGLining Hu, Ting Liu, Yuzhuo Fu
Multivariate Time Series Causal Foundation Model with In-Context Learning
Shared title terminologycs.LGMehmet Yigit Balik, Pekka Marttinen, Harri Lähdesmäki
LLMDP-U: Compiling LLM Reasoning into Persistent Time-Series Anomaly Detectors
Shared title terminologycs.LGZiqi Zhu, Guanghui Wang, Zhihao Lin et al.
The Price of Generality in Time Series Foundation Models: GRAIN for Yearly Forecasting
Shared title terminologycs.LGXueying Long, Che-Yu Wu, Angus Dempster et al.
PVBoost: Posterior-Calibrated Variance Boosting for Time-Series Anomaly Detection
Shared title terminologycs.LGQinghua Liu, John Paparrizos
DREP: Diffusion Response and Evolution Profiles for Multivariate Time Series Anomaly Detection
Shared title terminologycs.LGXu Su, Tao Jin, Guohao Wang et al.