The Target Betrays the Trigger: Defending Multivariate Time-Series Forecasters Against Backdoor Attacks

Chibueze Peace Obioma, Youcheng Sun, Edoardo Manino, Mustafa A. MustafaarXiv 2026

TL;DR

Defending multivariate time-series forecasters against hidden "backdoor" attacks usually feels like hunting for a needle in a haystack—especially because attackers can disguise their triggers in infinite ways. This paper flips the script: instead of hunting for the hidden trigger, the authors look at the target (the malicious future the model is forced to learn), proving that an attacker cannot teach a model a backdoor without leaving behind a recurring statistical fingerprint. Their model-agnostic defense, SAFETIME, spots these unnatural echoes and scrubs them clean before training even begins—no clean reference data required.

What Problem Does This Paper Address?

Modern forecasting models predict everything from power grid loads to highway traffic by ingesting historical data from dozens or hundreds of sensors (channels) at once. Because this data often comes from distributed, untrusted sources, an adversary can poison a small fraction of the historical data. They plant a subtle pattern (a trigger) followed by an attacker-chosen future (the target). Once trained on this data, the model behaves normally—until it sees the trigger at deployment, causing it to hallucinate the attacker's chosen future.

Defending against this is notoriously hard. Defenses borrowed from image classification fail here because:

  1. Signal dilution: If only a subset of sensors is poisoned, the malicious signal gets washed out across the whole window.
  2. Camouflage: Poisoned targets look plausible, and models learn them quickly, reaching normal training loss within a few epochs.
  3. Unrealistic assumptions: Existing defenses often assume the defender has a verified "clean" dataset, class labels, or knowledge of the attack. In reality, a forecasting engineer usually just has one long, untrusted historical series.

Methods

Instead of inspecting a trained model or hunting for triggers, the authors introduce SAFETIME, a pre-training data sanitizer built on what they call the target-recurrence principle.

Figure 1. The victim learns the malicious forecast only from targets that deviate, on average, from the natural continuation of triggered histories; this deviation recurs within attacked channels and coincides across them. X: a history ending with the trigger (T=1, an analytical label, not a model input).

To force a model to predict an unnatural future after a trigger, the training data must repeatedly show targets that deviate from natural dynamics. Even if a clever attacker varies the shape of individual poisoned targets, a shared underlying shift—the trigger-conditional label deviation—must recur across events so the model averages out the noise and learns the backdoor.

SAFETIME catches and neutralizes this in six stages before any model is trained:

Figure 2. SAFETIME’s six stages. Stages 1–3 detect channels and events whose targets recur beyond phase-matched behaviour, stage 4 confirms them on cross-channel residuals, stage 5 relabels the flagged channels’ targets from unflagged channels, and stage 6 trains any forecaster.
  1. Candidate Generation: Scans the series for "bursts"—movements that are unusually sharp for that specific time of day—and groups channels that correlate or spike together.
  2. Phase-Matched Testing: Traffic at 8:00 AM naturally looks like traffic at 8:00 AM the next day. To separate legitimate daily rhythms from attacks, SAFETIME compares candidate target intervals against segments shifted by whole days (preserving the daily phase). Backdoors recur at candidate events far more strongly than at random day-shifted moments.
  3. Channel Localisation: Uses a leave-one-channel-out setup so a poisoned sensor cannot help validate its own innocence, isolating the exact subset of attacked channels.
  4. Residual Confirmation: Uses unsuspected sensors to predict the flagged sensors' normal behavior via ridge regression. If the weird recurring pattern persists in the unexplained residuals, the flag is confirmed.
  5. Relabelling: Rather than throwing away poisoned data, SAFETIME reconstructs and replaces all training targets of the flagged channels using regression on the unflagged, healthy channels. Triggers remain in the input histories, but they are now paired with normal continuations, severing the malicious link.
  6. Victim Training: Any forecasting architecture can now be trained on the sanitized series as usual.

Datasets

The authors evaluate SAFETIME across five standard, real-world multivariate benchmarks (introducing no new datasets, though they generate extensive poisoned variants using four published attacks: BACKTIME, TDBA, DEBA-MTS, and IFBA):

  • Traffic Flow: PEMS03 (358 channels), PEMS04 (307 channels), and PEMS08 (170 channels).
  • Meteorology: WEATHER (21 channels).
  • Energy: ELECTRICITY (321 channels).

Key Insights and Ideas

  • The Target Betrays the Trigger: Attackers have total freedom over the trigger, but their hands are tied on the target side. Every poisoning event they add to strengthen the model's supervision simultaneously strengthens the statistical evidence available to the defender.
  • Diversification Doesn't Save the Attacker: Even when a white-box attacker knows SAFETIME's exact code and adds random noise or varies target shapes (e.g., mixing flat, rising, and hump profiles), the shared directional lift required to teach the backdoor still stands out against phase-matched daily baselines.
  • Cross-Channel Redundancy is a Superpower: In multivariate systems (like highway sensor networks), healthy channels predict a Compromised channel's true behavior remarkably well ($R^2 > 0.92$ median across datasets). This allows SAFETIME to heal the targets rather than discard data.

Key Results

Tested across the five datasets, four attack families, and six forecasting architectures (including PatchTST, iTransformer, and TimesNet):

  • Near-Total Attack Removal: SAFETIME identifies 99.8% of attacked channels in the main benchmarks. It slashes BACKTIME's mean implanted effect (attack success with the trigger minus without it) by 98.0% (from +0.644 down to +0.013). Across published attacks, implanted effects as high as 0.998 drop to at most 0.096 (with one exception of 0.124 for IFBA on iTransformer).
  • Better Clean Accuracy: Because poisoning degrades normal training, scrubbing the targets actually improves clean forecasting error (MAE), lowering it by 8.0% on BACKTIME and 3.9% on TDBA—whereas the state-of-the-art baseline, TIMEGUARD, worsened clean error by 3.9% to 6.2%.
  • Resilience to Adaptive White-Box Attacks: Under an adaptive search where the attacker tests candidates locally against SAFETIME, multichannel poisons retain 0.61 to 0.95 implanted effect before defense, which drops to 0.003–0.015 after SAFETIME relabelling.
  • Low Compute Overhead: SAFETIME runs once per dataset on a single CPU core (taking 75 to 796 seconds). When training all six architectures on a dataset, SAFETIME is 6.3 to 24 times faster than in-training GPU defenses like TIMEGUARD.

Limitations and Future Work

  • Low-Channel / Low-Redundancy Regimes: Reconstruction relies on having enough healthy, correlated channels to predict the flagged ones, and requires that a minority of channels are attacked. On datasets with very few variables—like WEATHER (21 channels)—false alarms are costlier: SAFETIME falsely flagged 8 channels on the clean WEATHER series, raising clean forecasting error by 4.40%. The authors note that relabelling only the detected time spans (rather than the whole channel) could reduce this cost, though they do not develop that further as future work.
  • Sparse, Single-Channel Evasion: If an attacker gives up on broad impact and targets just a single channel with very few events and a tiny trigger, it can occasionally slip past the multiplicity thresholds while still implanting a weak backdoor (e.g., one PEMS03 configuration retained a 0.135 effect, and dropping 95 of 96 channels on ELECTRICITY allowed 1 unflagged channel to survive).
  • (Note: Explicit directions for future work beyond localized span relabelling are not discussed in the paper.)

Summary updated

BibTeX
@misc{obioma2026target,
  author = {Chibueze Peace Obioma and Youcheng Sun and Edoardo Manino and Mustafa A. Mustafa},
  title = {{The Target Betrays the Trigger: Defending Multivariate Time-Series Forecasters Against Backdoor Attacks}},
  year = {2026},
  eprint = {2611.36079},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.36079},
}
Figure