TL;DR
TSINR introduces a novel time-series anomaly detection framework that leverages the inherent "spectral bias" of Implicit Neural Representations (INRs) to prioritize learning smooth, normal patterns over high-frequency anomalies. By parameterizing time series as continuous functions and incorporating a frozen pre-trained Large Language Model (LLM), TSINR achieves state-of-the-art performance across both univariate and multivariate benchmarks without overfitting to unlabeled anomalies in the training data.
What Problem Does This Paper Address?
Reconstruction-based methods are the mainstream approach for unsupervised time series anomaly detection. These models learn to reconstruct input data, using the difference between the original and reconstructed data (reconstruction error) as an anomaly score.
However, a major challenge arises because real-world training data is often unlabeled and frequently "polluted" with undetected anomalies. Because modern deep learning architectures are highly expressive, they inadvertently learn to perfectly reconstruct these anomalous data points during training. This narrows the reconstruction error gap between normal and abnormal data, leading to missed detections (false negatives). The authors address this vulnerability by designing a system that is inherently resistant to fitting discontinuous, anomalous data.
Methods
The core innovation of TSINR is turning a well-known limitation of Implicit Neural Representations (INRs)—spectral bias—into an advantage. Spectral bias causes neural networks to prioritize learning low-frequency (smooth) signals before high-frequency (sharp/discontinuous) ones. Since normal time-series data tends to be continuous and smooth while anomalies present as sharp disruptions, an INR-based model naturally struggles to reconstruct anomalies, leaving a high reconstruction error.
The TSINR architecture consists of the following key components:
- Transformer-Based Parameter Predictor: Instead of optimizing an INR network via slow gradient descent at test time, TSINR uses a feed-forward Transformer encoder to predict the weights of the INR continuous function in a single forward pass.
- Time Series Decomposition Function: The predicted INR function $f(t)$ is explicitly decomposed into three specialized components to model distinct temporal patterns:
- Trend ($f_{tr}$): Modeled using a low-degree polynomial predictor to capture long-term, low-frequency changes.
- Seasonal ($f_s$): Modeled using a Fourier series to capture cyclical, recurring short-term fluctuations.
- Residual ($f_r$): Captures complex, non-periodic information using a novel group-based architecture. Global layers capture inter-channel information, while group layers focus on intra-channel details for multivariate data.
- LLM Feature Amplification: The input time series is passed through a frozen, pre-trained LLM (GPT-2) encoder. This maps the data into a feature domain that amplifies anomalous fluctuations across both the time and channel dimensions, making anomalies even harder for the INR to smoothly fit.
Datasets
The authors evaluated TSINR on eight real-world benchmark datasets:
- Multivariate (7): SMD (Server Machine Dataset), PSM (Pooled Server Metrics), SWaT (Secure Water Treatment), MSL (Mars Science Laboratory), SMAP (Soil Moisture Active Passive), PTB-XL (electrocardiogram dataset), and SKAB (Skoltech Anomaly Benchmark).
- Univariate (1): The UCR anomaly archive, which consists of 250 diverse sub-datasets from various domains.
Key Insights and Ideas
- Flipping a Bug into a Feature: In computer vision, spectral bias is a hurdle that researchers fight using positional encodings or periodic activations (like SIREN) to capture fine details. TSINR brilliantly flips this narrative, utilizing spectral bias as a natural regularizer to filter out high-frequency anomalies.
- Cross-Modal Feature Extraction: Leveraging a frozen language model (GPT-2) allows the network to exploit pre-trained cross-modal knowledge. The LLM acts as an anomaly magnifier, spreading the signature of an anomaly across adjacent channels and time steps so it cannot be easily ignored.
- Single-Pass Efficiency: By using a Transformer to directly generate the continuous function's weights, TSINR avoids the heavy test-time optimization loops typical of meta-learning INR approaches, making it viable for real-time engineering applications.
Key Results
TSINR demonstrated superior overall performance compared to 11 state-of-the-art deep learning baselines (including TimesNet, AnomalyTransformer, and FPT):
- Average Performance: TSINR achieved the highest average F1-score (78.45%) and Precision (84.06%) across all datasets.
- Univariate Breakthrough: On the challenging UCR univariate dataset, TSINR achieved an F1-score of 62.46%, drastically outperforming the best baseline, FPT, which scored only 34.33%.
- Point Anomaly Sensitivity: The model showed massive improvements on datasets like SMAP, which are rich in isolated point anomalies, validating the effectiveness of the spectral bias constraint.
Limitations and Future Work
- Univariate LLM Bottleneck: While the pre-trained LLM encoder significantly boosted multivariate performance, it slightly degraded performance on the univariate UCR dataset (dropping the F1-score from 62.46% to 60.41%). Without multiple channels to fuse, the LLM tended to smooth out anomalous data during inference, inadvertently helping the INR fit the anomaly.
- Sensitivity to Base Continuity: TSINR achieved only moderate performance on the SWaT dataset. The authors note that SWaT has inherently poor temporal continuity, which violates the underlying assumption that normal data can be cleanly modeled by smooth continuous functions.
- Future Directions: The team plans to explore expanding this continuous INR framework to other core time-series tasks, such as data imputation, classification, and long/short-term forecasting.
Summary updated