The Target Betrays the Trigger: Defending Multivariate Time-Series Forecasters Against Backdoor Attacks
Obioma et al. in Alignment
The target can betray a hidden forecast backdoor
The Target Betrays the Trigger: Defending Multivariate Time-Series Forecasters Against Backdoor Attacks
A backdoor hides behind ordinary accuracy
Ordinary histories can look normal, while a trigger elicits an attacker-chosen future on another branch.
It tests target recurrence against phase-matched behavior, then relabels suspicious channels before training, without a trigger or reference model.
The target shift a squared-error model must learn
Assuming T is determined by history, at the squared-error population optimum, forecast shift equals mean target deviation. Main experiments use Smooth L1, whose conditional location can differ.
- f∗(X,1)
- Forecast after a triggered history
- E[Y0∣X,T=1]
- Natural continuation
- E[Δ∣X,T=1]
- Mean malicious target deviation
The target pattern is the clue

The illustrated targets after triggered histories depart, on average, from natural continuation; a shared deviation recurs within attacked channels and coincides across channels. T=1 is an analysis label, not a model input.
Repetition alone is not a backdoor signal
Traffic, load and weather repeat at daily phases, so a matching target shape can reflect routine behavior.
SafeTime shifts candidate events by whole days, preserving time of day while changing which event is compared.
How SafeTime locates suspicious channels
- 1
Find phase-unusual bursts
Select phase-unusual changes; profile the surrounding window without the burst sample.
- 2
Localize excess recurrence
Test group and within-channel recurrence with whole-day shifts; exclude the tested channel from group templates.
- 3
Confirm on residuals
Regress out predictable cross-channel behavior, confirm residual recurrence, and expand to channels sharing the pattern.
Relabelling depends on what the neighbors predict
Across five datasets, a channel's own time-of-day profile had held-out clean-day median R2 from 0.080 to 0.802.
Ridge prediction from remaining channels reached median held-out clean-day R2 0.927–0.999; four of 21 Weather channels fell below 0.5.
Break the link without finding the trigger
- 1
Predict from unflagged channels
Fit ridge predictions for flagged channels from unflagged values at each time step.
- 2
Replace every target
Replace all their targets, but leave received histories, including triggers, unchanged.
- 3
Train the same victim
Train any forecaster on relabelled targets with its usual architecture, loss and schedule.
BackTime: lower attack effect, lower clean MAE
Test-split means over five datasets/six architectures. I = same-model attack success with trigger minus without; clean ΔMAE vs undefended.
The reduction generalizes across attack families

Each poison-victim line compares undefended with SafeTime across four published attacks, five datasets and six architectures. The reported residual effect is at most 0.096, except IFBA on iTransformer (0.124).
White-box target diversification still leaves little effect
The attacker knows SafeTime's algorithm, settings and received series, then diversifies target copies; feedback can redraw flagged channels.
On FEDformer, full multichannel fixed- and outcome-goal poisons began at I=0.606–0.946; relabelling and retraining left at most 0.015, with no gain from feedback.
Where SafeTime can fail or cost accuracy
Recurrence boundary
A learnable deviation may not recur beyond same-phase behavior; contaminated day-shifts can weaken contrast.
Single-channel escape
A PEMS03 single-channel poison with few events and a small trigger evaded detection; undefended I was 0.135.
Reconstruction needs redundancy
Reconstruction needs a minority of attacked channels and predictive unflagged companions.
False flags and clean responses
On clean Weather, 8/21 channels were flagged and mean clean MAE rose 4.40%; clean-trained trigger responses may remain.
Why it matters
- Target-side supervision gives defenders a signal to test without knowing the attacker's trigger.
- Phase-match recurrence, confirm it on residuals, then relabel flagged targets before training.
- Can a defender catch a learnable backdoor with no recurring signal or reliable companion channels?
13 slides, 3 min
1 day ago