Abstract
TrojanTime is a novel backdoor attack framework for Time Series Classification (TSC) designed for data-inaccessible scenarios. Unlike traditional methods that require poisoning the original training set, TrojanTime synthesizes a pseudo-dataset using adversarial attacks on arbitrary external data. By employing logits alignment and BatchNorm freezing, the framework injects a backdoor while preserving the model's original accuracy. Experimental results across various TSC architectures demonstrate high attack success rates with minimal utility loss.
Introduction
Backdoor attacks, or "Trojaning," involve training a model to behave normally on clean inputs while producing a specific malicious output when a "trigger" pattern is present. While extensively studied in computer vision, these attacks are less explored in Time Series Classification (TSC)—a field critical for healthcare, finance, and remote sensing.
Most existing TSC backdoor methods assume the attacker can modify the training dataset. However, in many real-world scenarios, attackers only have access to a pre-trained model (e.g., from a model zoo) without knowing the original data distribution. This presents two major challenges: re-training a model to recognize a trigger without the original data and preventing "concept drift," where the model forgets its legitimate task during the fine-tuning process.
Methodology
The authors propose TrojanTime, a two-step training algorithm designed to operate without access to the original training data ($D_{train}$).
1. Dataset Synthesis
Since the original data is unavailable, the attacker uses an arbitrary external time-series dataset ($D'$) as a starting point. They apply Projected Gradient Descent (PGD) to perform target adversarial attacks, generating "adversarial samples" that the pre-trained model classifies into the target classes. These samples serve as a proxy for the original data distribution, allowing the attacker to probe the model's internal representations.
2. Backdoor Training and Stabilization
The model is fine-tuned on a combination of these synthesized samples and their "poisoned" versions (samples with the trigger applied). To maintain stealth and functionality, TrojanTime uses two key stabilizers:
- Logits Alignment: A loss function ($L_{MSE}$) forces the new model's outputs for clean samples to match the original pre-trained model's outputs, preventing the model from drifting away from its original decision boundaries.
- BatchNorm Freezing: By freezing the Batch Normalization layers, the authors preserve the mean and variance statistics of the original training data. This forces the model to learn the trigger through weight adjustments rather than statistical shifts.
Experimental Results
The researchers evaluated TrojanTime using the UCR benchmark datasets (e.g., ECG5000, Coffee, Earthquakes) across four popular TSC architectures: InceptionTime, LSTMFCN, MACNN, and TCN.
Key Findings
- High Success Rate: On average, the Fixed trigger achieved an Attack Success Rate (ASR) of 86.3% across all datasets. InceptionTime and LSTMFCN were particularly vulnerable, often reaching 100% ASR.
- Minimal Utility Loss: The Clean Accuracy (CA) decreased by an average of only 7.9%, ensuring the model remains functional for legitimate users.
- Adversarial Proxies: The t-SNE visualizations confirm that adversarial samples effectively "discover" the model's internal representation of classes, creating a training set that respects existing decision boundaries.
- Trigger Sensitivity: Time series models are highly sensitive to frequency changes. "Masking" triggers (fixed or random patches) proved more effective than "blended" triggers (like powerline noise) because they more distinctly modify the frequency maps relied upon by TSC models.
Defense: Defensive Unlearning
The paper introduces a defensive strategy that identifies "toxic" samples by monitoring high activation norms in the rear layers of the network. Backdoored models exhibit a distinct "over-activation" fingerprint when processing a trigger. By fine-tuning the model to ignore these high-response samples, the defense successfully reduced the ASR to as low as 2.5% in some cases while actually improving clean accuracy by removing injected noise.
Conclusion
TrojanTime demonstrates that backdoor attacks on TSC models are feasible even without access to original training data. The use of adversarial samples as proxies and logits alignment as a stabilizer provides a powerful toolkit for attackers. However, the discovery of activation disparity in backdoored models offers a promising path for robust defensive unlearning strategies in time-series applications.
Summary updated