[Paper Review] BoundAD: Boundary-Aware Negative Generation for Time Series Anomaly Detection
BoundAD introduces reinforcement-learning-guided boundary-aware negative generation to enhance contrastive learning for unsupervised time series anomaly detection, followed by a prototype-based discriminative refinement.
Contrastive learning methods for time series anomaly detection (TSAD) heavily depend on the quality of negative sample construction. However, existing strategies based on random perturbations or pseudo-anomaly injection often struggle to simultaneously preserve temporal semantic consistency and provide effective decision-boundary supervision. Most existing methods rely on prior anomaly injection, while overlooking the potential of generating hard negatives near the data manifold boundary directly from normal samples themselves. To address this issue, we propose a reconstruction-driven boundary negative generation framework that automatically constructs hard negatives through the reconstruction process of normal samples. Specifically, the method first employs a reconstruction network to capture normal temporal patterns, and then introduces a reinforcement learning strategy to adaptively adjust the optimization update magnitude according to the current reconstruction state. In this way, boundary-shifted samples close to the normal data manifold can be induced along the reconstruction trajectory and further used for subsequent contrastive representation learning. Unlike existing methods that depend on explicit anomaly injection, the proposed framework does not require predefined anomaly patterns, but instead mines more challenging boundary negatives from the model's own learning dynamics. Experimental results show that the proposed method effectively improves anomaly representation learning and achieves competitive detection performance on the current dataset.
Motivation & Objective
- Motivate better boundary learning in unsupervised TSAD by generating hard negatives near the normal data manifold.
- Develop a three-stage framework combining reconstruction, RL-guided pseudo-anomaly generation, and prototype-based refinement.
- Show that boundary-focused negatives improve contrastive representations and anomaly discrimination.
- Provide a training pipeline that jointly optimizes reconstruction, representation learning, and prototype discrimination.
Proposed method
- Stage 1: Pretrain a reconstruction model to capture normal temporal patterns.
- Stage 2: Use reinforcement learning to adaptively generate pseudo-anomalous windows via signed updates to the reconstructor; train a triplet encoder with normal, augmented, and pseudo-anomalous samples using triplet and compactness losses.
- Stage 3: Introduce a trainable prototype-based module with a soft assignment to prototypes and losses for normal compactness, anomaly separation, prototype dispersion, and prototype balancing; use nearest-prototype distance as the anomaly score.
- Anomaly scoring uses the distance to the nearest prototype after Stage 3; thresholding yields binary anomaly decisions.
- Key equations include the reconstruction loss L_rec, the triplet loss L_tri, the compactness loss L_com, and Stage 3 losses L_n, L_a, L_sep, L_bal; anomaly score s(z)=min_k ||z-c_k||^2.
Experimental results
Research questions
- RQ1Can RL-controlled generation of near-boundary pseudo-anomalies improve contrastive learning for TSAD?
- RQ2Does a three-stage framework (reconstruction + RL-guided negative generation + prototype refinement) outperform reconstruction-only or static anomaly-injection baselines in unsupervised TSAD?
- RQ3How do boundary-aware negatives affect the geometry of the embedding space for normal vs. anomalous samples?
- RQ4Is the prototype-based refinement able to capture multimodal normal manifolds and improve false alarm suppression?
- RQ5What are the detection characteristics for point vs. pattern (collective) anomalies under BoundAD?
Key findings
- The method achieves high AUC on Seasonal (0.9606) and Point (0.9438) anomaly tasks.
- Seasonal anomalies yield higher AUC, lower FP, and clearer anomaly-score separation than Point anomalies.
- Triplet encoder learning with RL-generated negatives yields decreasing triplet loss (Seasonal: 0.0153→0.0007; Point: 0.0256→0.0011).
- Stage 3 prototype learning maintains stable total loss (~0.045–0.050) with strong normal compactness and prototype dispersion.
- Normal samples cluster around learnable prototypes while pseudo-anomalies stay away, enabling clearer anomaly scoring.
- Boundary-aware negatives provide more informative signals than fixed perturbations, aiding boundary learning and discrimination.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.