TL;DR
Time series anomaly detectors face a Goldilocks dilemma: train on a single machine’s history and you get flooded with false alarms whenever valid new behaviors appear; train on a whole fleet of machines and the definition of "normal" becomes so broad that actual anomalies slip through the cracks. dStructAD solves this by separating fundamental, domain-wide physics (a shared basis of trends and seasonal waves) from local quirks (machine-specific weights). By learning the rules of the domain first and carefully calibrating to the local target second, it catches subtle anomalies without crying wolf.
What Problem Does This Paper Address?
Unsupervised Time Series Anomaly Detection (TSAD) usually works by feeding a model normal historical data from a single source—a TargetSet—and flagging anything at test time that looks unfamiliar. The catch? Real-world systems have regimes you haven't seen yet. When a server experiences a valid, normal traffic shift it didn't see during training, single-dataset models panic, causing domain-level false alarms. In fact, measured via KL Divergence, unseen normal data can deviate from training data even more than actual anomalies do!
The intuitive fix is to pool normal data from many similar systems in the same domain (a DomainSet). Unfortunately, this creates a new headache. Because different datasets in a domain are heterogeneous, lumping them together stretches the model’s representation of "normal" too far.
As seen above, naively adding DomainSet data pulls unseen normals into safe territory, good—but it simultaneously swallows up TargetSet-specific anomalies, entangling valid variations with true failures. How do we borrow broad domain knowledge without blurring the boundary of what constitutes a local anomaly?
Methods
The authors take inspiration from human experts, who mentally separate canonical domain patterns (e.g., "heartbeats are periodic") from admissible local variations (e.g., "this patient's resting rate is slightly faster"). Guided by a functional basis-expansion perspective inspired by Kolmogorov-Arnold Networks (KANs), dStructAD splits time series reconstruction into two distinct parts:
- Structural Normality Representation: Every input window is decomposed into trend and seasonal components. Instead of an unconstrained black-box neural network, the model reconstructs signals by projecting lightweight, locally generated coefficients onto a Domain-Shared Normality Basis ($\Phi$) made of polynomial trends and harmonic seasonal waves.
- Two-Phase Variation Calibration:
- Phase 1 (Domain Anchor): Looking across the entire DomainSet, the model freezes the coefficient generators and optimizes only the shared basis $\Phi^{(0)}$, using a regularization term to ensure all basis functions pull their weight.
- Phase 2 (Target Calibration): Moving to a specific TargetSet, the shared basis is frozen, and the model tunes only the target-specific coefficient generators ($\theta_n$). If coefficient reweighting alone leaves a high reconstruction gap or causes extreme drift, a trigger selectively unlocks actively used basis functions for gentle refinement while anchoring them close to $\Phi^{(0)}$.
- Domain-level Anomaly Score (DAS): At test time, anomalies are scored by combining pattern violation (standard point-wise reconstruction error) with variation drift—measured via Jensen-Shannon Divergence between the current window's basis usage and the domain anchor's usage profile.
Datasets
The authors evaluate dStructAD across six multi-dataset domain benchmarks using recently re-annotated versions from the TSB-AD and UCR archives (which clean up historical labeling artifacts):
- TSB-AD: Server Machine Dataset (SMD), IOPS (web service KPIs), WSD (web service monitoring), and SMAP (spacecraft telemetry).
- UCR: ECG (electrocardiograms) and EPG (electrical penetration graphs).
No brand-new datasets are collected, but they are explicitly grouped by domain to test cross-dataset normality learning alongside local target evaluation.
Key Insights and Ideas
- More data can hurt separability without structure: Simply throwing multi-dataset domain data at an unconstrained deep model reduces the statistical distance of anomalies right alongside unseen normals. Removing dStructAD's structured basis caused the single biggest performance drop in ablations (average F1-Affiliation fell from 88.30% to 82.06%).
- Freeze-then-calibrate prevents "cheating": Freezing the variation generators in Phase 1 forces the shared basis to learn genuine domain-wide building blocks rather than memorizing dataset-specific noise. Conversely, freezing the basis in Phase 2 forces local quirks to be explained strictly as new combinations of valid domain physics.
- How you reconstruct matters as much as how well: Checking coefficient drift catches subtle structural anomalies that reconstruction error alone misses. Dropping the drift score caused ranking metrics (VUS-ROC) on WSD to slide from 90.08% down to 84.00%.
Key Results
Across 6 benchmark groups and 5 evaluation metrics (30 cells total), dStructAD takes first place in 26 out of 30 evaluations, delivering an average relative improvement of 2.56% over the strongest baseline in each cell.
- Crushing heterogeneous domains: On IOPS, dStructAD hits 84.03% F1-Affiliation (F1-A), beating the strongest domain-level baseline (DADA) by 4.56 points and the best single-dataset baseline (KAN-AD) by 5.52 points.
- Stability where domain baselines falter: Existing domain-unified models can be brittle; for instance, DADA drops to 65.21% F1-A on EPG, whereas dStructAD achieves 81.40%—a 16.19-point leap.
- Qualitatively, dStructAD suppresses false-alarm spikes during valid regime shifts while keeping sharp, localized peaks around true anomalies.
Limitations and Future Work
The authors note that relying on an explicit polynomial-and-harmonic basis leaves room for improvement when fitting highly complex, irregular temporal patterns that don't neatly decompose into smooth trends and waves. Additionally, dStructAD assumes an offline two-phase training setup; extending the framework with more expressive bases and online calibration strategies for continuously evolving, streaming time series is slated for future work.
Summary updated