Manuscript Offprint
arXiv:2610.35753CLOSURE: Cross-Channel Closure for Multivariate Time Series Anomaly Detection
Fan Xu
University of Science and Technology
of China
Hefei, Anhui, China
Hao Wu
Tsinghua University
Beijing, China
Zhi Song
City University of Hong Kong
Hongkong, China
Hanbo Huang
Shanghai Jiao Tong University
Shanghai, China
Wenzhuo Ma
Tianjin University
Tianjin, China
Nan Wang
Beijing Jiaotong University
Beijing, China
Wei Gong
University of Science and Technology
of China
Hefei, Anhui, China
Abstract
Multivariate time series produced by industrial installations and server clusters are under continuous monitoring, and anomaly detection is the first line of defense before a local fault escalates into a system-wide failure. In the absence of labels, the dominant paradigm trains a reconstruction model on normal data and scores the residual to reach a verdict. Recent work has steadily enriched the expressiveness of the recovery map through Transformers, diffusion models, and cross-scale associations. A residual, however, only certifies that an observation can be recovered; it does not certify that the variables still explain one another as they do under normal operation. A coordinated yet unfamiliar operating transition inflates the residual without breaking any relationship, whereas a sensor drifting away from its peers may leave the residual silent. Methods that fold inter-variable dependencies into the reconstruction objective inherit this ambiguity, because their relational evidence is ultimately supervised by the same recovery loss. We therefore propose CLOSURE, which evaluates recoverability and cross-channel consistency as two normal-data prediction tasks learned in separation. The recoverability task is solved by a diffusion reconstructor conditioned on a discrete memory of normal temporal bases. The consistency task is solved by a relation-closure operator that predicts every channel exclusively from the others, where the target's own trajectory is withheld and sparse signed gates decide which peers
Xibin Zhao
Tsinghua University
Beijing, China
are actually used. The two scores are reconciled only through calibration on normal data. Extensive experiments show that CLOSURE consistently outperforms recent reconstruction-, frequency-, and topology-based detectors on public benchmark streams, confirming the value of examining consistency alongside recoverability.
CCS Concepts
• Computing methodologies → Anomaly detection; Learning latent representations; Neural networks.
ACM Reference Format:
Fan Xu, Hao Wu, Zhi Song, Hanbo Huang, Wenzhuo Ma, Nan Wang, Wei Gong, and Xibin Zhao. 2018. CLOSURE: Cross-Channel Closure for Multivariate Time Series Anomaly Detection. In Proceedings of Make sure to enter the correct conference title from your rights confirmation email (Conference acronym 'XX). ACM, New York, NY, USA, 13 pages. https://doi.org/XXXXXXX.XXXXXXX
1 Introduction
Multivariate time series produced by industrial installations and server clusters are under continuous monitoring, and anomaly detection is the first line of defense before a local fault escalates into a system-wide failure [21, 24]. Labeled failures are scarce and never enumerate the ways a system can break, so detectors are typically fitted to normal observations alone. Reconstruction supplies the canonical objective for this setting: learn to reproduce normal windows, then read the residual as evidence of departure. Recurrent latent models and adversarial autoencoders established the paradigm [21, 38]; Transformers widened the temporal context [24]; diffusion models recover observations through denoising and imputation [5, 13, 29, 36]; and cross-scale reconstruction with shared cross-window context further enriches what a model can
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from permissions@acm.org.
Conference acronym 'XX, Woodstock, NY
© 2018 Copyright held by the owner/author(s). Publication rights licensed to ACM. ACM ISBN 978-1-4503-XXXX-X/2018/06 https://doi.org/XXXXXXX.XXXXXXX
Trovato et al.
recover [12]. These advances strengthen the representation of normal behavior. Whether they strengthen detection depends on a separate question: how faithfully reconstruction difficulty tracks abnormality.
Reconstruction difficulty and abnormality need not coincide. Consider a healthy operating transition in which several sensors change together while preserving their usual coordination. The trajectory may be unfamiliar to the reconstructor and yield a large residual even though no channel relationship has been violated. The converse is equally plausible. A drifting sensor may follow a smooth curve that the model reproduces accurately, while it quietly stops tracking the channels with which it normally varies. Figure 1 contrasts these possibilities. They separate two properties of a single window, recoverability and cross-channel consistency, and expose an ambiguity in the residual: agreement with a learned reconstructor does not by itself establish agreement with normal relations.
Dependencies already play an important role in anomaly detection. Learned sensor graphs and inter-metric embeddings model interactions among variables [6, 14, 30]. CATCH learns channel interactions inside frequency patches [28], and ScatterAD couples temporal and topological views [34]. A related line uses temporal association discrepancies as detection evidence [32, 33]. These methods establish the value of relational evidence. Our question is therefore not whether dependencies matter, but where their supervision comes from. When inter-variable dependencies are folded into the reconstruction objective, the relational evidence is ultimately shaped by the same recovery loss, and the resulting score inherits the ambiguity above. Such a reference also needs a criterion of its own for deciding which relations enter it. A strong association within one normal interval may reflect a temporary operating condition, and a merely strong correlation does not identify the peers that a nonlinear predictor should actually use. Turning these associations directly into prediction weights therefore grants uncertain relations an influence on detection before their usefulness has been measured. We instead ask how to construct a cross-channel reference whose supervision, and whose selection of relations, are both established by a prediction task separate from reconstruction.
According to these, we introduce CLOSURE, a detector that evaluates recoverability and cross-channel consistency as two normal-data prediction tasks learned in separation. The consistency task is carried by a relation-closure operator. Each target receives nonlinear messages from its peers through learned signed coefficients and sparse gates, and never from itself; the disagreement between the observed channels and their peer predictions forms a closure residual [3]. Because a sustained departure can raise a window's residual background together with its endpoint, we score the endpoint relative to that background, which makes the criterion sensitive to a localized change in coordination. The recoverability task is carried by a diffusion reconstructor conditioned on a discrete memory of normal temporal bases [13]. The relation operator is neither an input to this reconstructor nor a target of its training loss, and the two paths meet only after their scores are calibrated on normal data. This separation lets us hold the reconstructor fixed and vary the relational criterion alone, so that a change in detection is attributable to relation learning rather than to improved recovery. In summary, we make the following key contributions:
① Decoupled scoring. We formulate a detector that evaluates temporal recoverability alongside cross-channel consistency, keeping the relational reference outside the reconstruction objective and combining the two paths only at the decision stage.
② Learned sparse closure. We instantiate the relational criterion with signed coefficients, per-edge gates, and source-only nonlinear messages, and show that row normalization erases absolute relation strength, motivating a separate gate parameter for selection.
③ Controlled evaluation. We prove that a target-only perturbation enters the closure residual unattenuated, and experiments with a frozen reconstructor show that learned relational evidence improves affiliation F1 beyond reconstruction alone.
2 Related Work
2.1 Reconstruction-Based Detection
Reconstruction-based detectors learn normal dynamics and score deviations through reconstruction error or likelihood. Recurrent models, adversarial autoencoders, and Transformers provide different temporal representations for this task [21, 24, 31, 38]. Diffusion approaches formulate recovery as conditional imputation [5, 29]. PhysDiff [13] conditions corruption and attention on decomposed temporal bases, while CrossAD [12] reconstructs fine-scale observations from coarser views and shares context across windows. These designs enrich what a model can recover the residual. however, they still report agreement with a single recovery map.
2.2 Dependency Modeling
Dependencies can guide signal modeling or become detection targets. GDN [6] and InterFusion [14] encode channel interactions through sensor graphs and hierarchical representations, respectively. CATCH [28] learns frequency-dependent channel masks, whereas MSCRED [35] reconstructs multiscale inter-sensor signature matrices and scores their residuals. Another line examines temporal associations through association discrepancy and dual-attention contrastive learning [2, 19, 32, 33]. ScatterAD [34] models temporal-node scattering and aligns temporal and topological representations. Across these designs, the relational evidence is produced within the reconstruction or representation objective, so its reference and the recovery map are shaped by the same loss.
2.3 Normality Constraints and Scoring
Normal references and constraints on the recovery map address the risk of accurately reconstructing anomalies. MemAE [7] retrieves normal latent prototypes for decoding, and vector quantization provides a discrete representation for such prototypes [25]. MEMTO [20] extends memory-guided reconstruction with latent-memory deviations that weight reconstruction errors, demonstrating that a normal reference can also supply an additional scoring criterion. IGAD [22] instead imposes idempotency and tightness losses on the reconstruction map. These constraints act on the recovery map or on the representation it decodes from, and their criterion is still read from how well the observation is reproduced.

Figure 1: Reconstructable does not necessarily mean consistent. (a) A coordinated transition can be hard to reconstruct while every relationship stays intact, whereas a smooth relation break can remain easy to reconstruct. (b) Reconstruction-only scoring compares an observation with its recovery. (c) CLOSURE additionally compares the same observation with predictions issued by its peer channels. The depicted denotes frozen connectivity.
These methods use learned dynamics, dependencies, or normal prototypes to define detection evidence. CLOSURE instead complements reconstruction with a relational reference that is learned separately and never enters the reconstruction objective. Its signed closure operator evaluates whether observed channels remain mutually explainable when each target is withheld from its own prediction, rather than reconstructing a relation matrix or measuring distance to a latent prototype.
3 Methodology
Problem setup. Let contain the retained channels of a multivariate series and its length-L window. We seek a score for the observed endpoint, using normal data for fitting and calibration. The normal sequence is divided chronologically into training , validation , and calibration . Windows stay within their assigned segments, with unused timestamps between segments. All inputs use training-fitted scaling.
Overview. Figure 2 follows one window through two paths that answer different questions. ① Temporal reconstruction measures how accurately a learned model recovers given normal temporal context. ② Relational closure measures whether the channels of remain mutually explainable under a learned normal relation reference. Three components are fitted separately: a discrete basis codec, the reconstructor, and the relation predictor. The relation path receives neither memory codes nor reconstruction outputs, and contributes no gradient to them. Both paths are frozen at detection and meet only through normal-calibrated scoring.
3.1 Memory-Conditioned Temporal Reconstruction
The reconstruction path measures how accurately an entire window can be recovered from normal temporal context, and reports the resulting discrepancy at the observed endpoint. We introduce the basis-conditioned diffusion backbone and represent the normal bases with learned discrete codecs, so that recovery is conditioned on stored normal patterns rather than on the test window itself.
A discrete normal basis memory. High- and low-frequency bases are extracted from normal training windows by adaptive multicomponent decomposition. For band , channel-wise bases are split into length-p patches, normalized by training-fitted scales, and quantized against a codebook through a straight-through estimator [25]:
(1)
Each band owns a codec shared across channels. A memory slot stores the paired code-index sequences of one normal template; reading a slot decodes both bands and restores channel scales to give with . The shared slot index preserves band pairing. Slots are sampled from stored normal context, never retrieved by matching a test query, and no write occurs during detection.
Basis-conditioned recovery. At a fixed diffusion index s with , the decoded bases enter both corruption and attention. Writing for token projections and for basis keys,
(2)
Trovato et al.

Figure 2: Overview of CLOSURE. Paired codebooks store normal temporal bases as code indices; decoded bases condition both corruption and attention. Learned signed coefficients, per-edge gates, and source-only messages predict each target from its peers, never from itself. Independently calibrated scores are combined for detection.
where , weights each band, and is a training-only channel offset repeated across time. Corruption uses the full multichannel bases; attention uses their channel-averaged projections. Since attention aggregates AV, the values still come from the observation. Two attention–feed-forward blocks and a token-wise MLP yield the recovery and its endpoint score:
Recovery is a forward pass at one fixed index, not an iterative reverse trajectory. At detection and the codec is frozen, while basis sampling and Gaussian corruption follow the evaluation seed.
3.2 Target-Excluded Relational Closure
The residual of Eq. 3 leaves undetermined whether the observed channels still explain one another, which is the assessment this path supplies. Let denote standardized channel-wise across the window, and . A predictor able to read its target can copy that trajectory and report agreement without consulting any peer, so every message entering target comes from sources alone. Selection cannot be delegated to the coefficients either.
LEMMA 3.1 (NORMALIZATION ERASES ABSOLUTE STRENGTH). Let denote row-wise normalization. For any and any matrix with ,
A row of uniformly weak associations therefore still receives nearly unit total weight, so we separate signed contributions, stating how a peer explains its target, from gates, stating whether it participates. Signed peer contributions. Let return a temporal Pearson correlation matrix with zero diagonal. Normal training windows supply a signed reference over all off-diagonal candidates, which a learned correction then modifies:
(5)
where is a channel embedding and an edge MLP. Every pair stays a candidate, including pairs with zero initial correlation, since the additive correction can reverse a sign or introduce an absent connection. Unlike , the learned coefficients are asymmetric, as predicting from differs from the reverse.
Per-edge gates. Each candidate carries a trainable logit , relaxed into a hard-concrete gate [16] so that admission is learned by gradient descent while exact zeros stay reachable:
(6)
with , replaced by its deterministic counterpart at validation and detection. Normalization precedes gating and none follows, since renormalizing would cancel exactly the attenuation the gates express; by Lemma 3.1 this ordering keeps admission decidable.
Source-only nonlinear messages. Each source trajectory therefore passes through a residual temporal network conditioned on the pair identity:
A single aggregation step forms the prediction, . Subscripts denote kernel widths. The offset encodes channel identities, not the target's trajectory, and the single hop admits no all-channel mixer that could route target information back through a peer.
Closure as the relational score. With the frozen predictor and , the closure residual measures how far the observation lies from its peer predictions, aggregated over all retained channels and compared against its own window background:
The scored channel set is fixed independently of the gates, so closing a row's connections changes the predictor without removing that target from evaluation. The ratio isolates a localized change in coordination; a departure sustained across the window raises numerator and background alike, so this score does not measure anomaly duration.
3.3 Training and Detection
Separate prediction objectives. Normal windows supervise both paths, but the two objectives update disjoint parameters:
(9)
where X is drawn from , Z is its standardized detrended counterpart, and penalizes the mean probability that a gate stays open. The codec is frozen before the reconstructor is trained, and sends no gradient to or the codec. Every target contributes to the Huber loss even when all of its incoming gates close, so pruning cannot lower the objective by dropping a difficult target. Normal validation selects both checkpoints, by reconstruction error for and by deterministic unpenalized Huber loss for .
Normal-calibrated decision. The two errors share no scale. Each is standardized by its own branch statistics on and passed through softplus to give nonnegative evidence, and the fused score is their equal-weight mean:
where is the 99th percentile of over normal calibration endpoints; fusing before thresholding is not equivalent to thresholding each branch and taking a disjunction. Parameters, score transforms, and stay fixed at test time, and labels enter evaluation only, without point adjustment. This quantile is an operating point, not a guarantee of false-alarm control under distribution shift.
3.4 Theoretical Analysis
Both statements concern the frozen operator in fixed standardized coordinates, before the endpoint ratio of Eq. 8. The first identifies what the architectural restriction guarantees, the second which perturbations the residual can expose.
THEOREM 3.2 (TARGET-EXCLUDED CLOSURE RESPONSE). Let and let be the ith coordinate vector. For any target and trajectory perturbation ,
Proof. By Eq. 7, every message entering target is a function of with only, and the frozen coefficients and deterministic gates are input-independent. Perturbing thus leaves unchanged; subtracting it gives the residual identity.
No linearity is assumed: is nonlinear, but no source of target i is . A target-only change therefore enters the signed residual undiminished, and cannot be absorbed by copying the target. Absolute error need not grow, since a perturbation may cancel an existing residual.
Changes explained by peers. For a general perturbation , let be the part of the change the predictor fails to reproduce, with mean absolute magnitudes and . Since requires no linearity, the reverse triangle inequality in both orders gives:
When normal closure is small, the first bound places near the unexplained part of the change, and the two together give . Conversely, a coordinated change the peers reproduce keeps small and the residual near its original value, however large . Neither direction requires the reconstruction error to move, which is what makes the branches non-redundant.
4 Experiments
4.1 Experimental Settings
Benchmarks. We evaluate CLOSURE on five real-world multivariate time series datasets. (i) MSL is public data released from NASA [9], which contain the telemetry anomaly data derived from the Incident Surprise Anomaly reports of spacecraft monitoring systems. (ii) SWaT [17] originates from a critical infrastructure system under 11 days of continuous operations with 51 sensors. (iii) PSM [1] is collected internally from diverse application server nodes from eBay. (iv) SMD [21] is a five-week-long dataset released from a large Internet company. (v) SMAP [9] contains spacecraft telemetry and anomaly annotations from NASA's Soil Moisture Active Passive mission. We additionally consider two NeurIPS-TS scenarios used by PhysDiff [13]: (vi) GECCO, named Water in the local release, records nine sensor variables from a water-monitoring system, including pH, temperature, and conductivity. (vii) Creditcard contains 29 transaction features with rare fraudulent transactions marked as anomalies, extending the benchmark scope to financial fraud detection. For fairness, we split all datasets into training , validation , and calibration in a 70%/15%/15% ratio.
Baselines. We conduct a comparative analysis of CLOSURE against 16 baselines for comprehensive evaluations, including (i) the classic methods: LOF [4], iForest [15]; (ii) prediction-based methods: CL-MPPCA [23], TimesNet [27], MTAD-GAT [37]; (iii) reconstruction-based methods: LSTM-VAE [18], BeatGAN [38], InterFusion [14],
Trovato et al.
OmniAnomaly [21]. Then, from the perspective of model architecture, we compare our model with: (iv) Transformer-based methods: Anomaly Transformer (AnoTran) [32], TranAD [24], NPSR [10], DCdetector [33]; and (v) Diffusion-based methods: DiffAD [29], ImDiffusion [5], D3R [26].
Evaluation Metrics. To assess the detection performance of our proposed CLOSURE and the baseline models, we employ three standard metrics: affiliation precision, recall, and F1 [8], denoted Aff-P, Aff-R, and Aff-F1. These metrics measure the temporal proximity between predicted anomaly intervals and ground-truth events, with Aff-F1 defined as the harmonic mean of Aff-P and Aff-R. All values are reported as percentages, and no point adjustment is applied. To ensure statistical significance, we report the average results over five independent runs.
4.2 Main Results
4.2.1 Quantitative Results. Performance across benchmarks. Table 1 reports the highest Aff-F1 for CLOSURE among the listed methods on all five datasets. The largest margin is on SMD, where its 88.13 exceeds D3R's 78.04 by 10.09 percentage points. On the spacecraft datasets, CLOSURE reaches 75.25 on MSL and 73.69 on SMAP, exceeding the strongest respective baselines, LSTM-VAE and AnoTran, by 2.63 and 2.04 points. The gain on PSM is 1.52 points over ImDiffusion. SWaT presents a smaller gap: 73.07 vs 72.44 for DeepSVDD. The advantage in the reported F1 scores therefore spans the listed application domains, but its magnitude is dataset-dependent.
Precision-recall balance. The individual metrics reveal different operating characteristics among the methods. On SMD, iForest and AnoTran both attain 100.00 precision, but their recall falls below 10.00. CLOSURE combines 81.65 precision with 95.73 recall, avoiding this pronounced imbalance. Relative to D3R, it increases precision by 16.78 percentage points while reducing recall by 2.20 points, resulting in a higher reported F1.
The improvements on MSL and SMAP involve increases in both metrics relative to the respective strongest F1 baselines. On MSL, CLOSURE improves precision and recall over LSTM-VAE by 1.23 and 5.59 percentage points. On SMAP, the corresponding gains over AnoTran are 1.99 and 1.72 points. On PSM, CLOSURE also improves both metrics over ImDiffusion, raising precision from 63.27 to 65.28 and recall from 98.60 to 98.76. By contrast, SWaT exhibits a precision-recall tradeoff: CLOSURE has higher precision than DeepSVDD (63.14 vs 59.11), alongside lower recall (86.71 vs 93.53).
NeurIPS-TS results. Table 2 extends the evaluation to the Creditcard and GECCO scenarios. CLOSURE achieves Aff-F1 scores of 69.48 and 70.23, exceeding the strongest listed baselines by 6.86 and 9.46 percentage points, respectively.
On Creditcard, CLOSURE improves over D3R in both precision (64.27 vs 56.90) and recall (75.61 vs 69.61). On GECCO, it similarly exceeds BeatGAN in precision (69.17 vs 62.71) and recall (71.32 vs 58.94), with a larger improvement in recall. In both scenarios, CLOSURE achieves the highest precision among the compared methods, while iForest attains higher recall at the cost of precision below 3.00. The resulting F1 comparisons reinforce the importance of jointly considering precision and recall. They also show that the advantage of CLOSURE extends to both additional scenarios without requiring it to maximize recall alone.
4.2.2 Qualitative Analysis. Figure 3 illustrates the scoring principle on a four-channel sequence. Panels (a) and (b) display the first channel in original and window-standardized coordinates, respectively, while all scores aggregate four channels. The reconstructor closely follows the observed trajectory, including the smooth deviation in the later part of the anomalous interval. Consequently, a visible departure in the trajectory does not necessarily produce a large reconstruction residual. Peer prediction departs from the observation over part of this interval, providing an additional criterion for identifying behavior that remains locally reconstructable.
The resulting responses are complementary in their temporal locations. Reconstruction scoring is most responsive to the earlier fluctuations, whereas relational scoring contributes additional alarms during the later departure. This distinction illustrates how agreement with a reconstructed trajectory and agreement with a relational reference can expose different aspects of the same anomalous interval.
Panel (c) shows how these responses combine after normal-data calibration. Reconstruction and relation scoring detect 39 and 44 anomalous points, respectively, with 10 shared detections. Equal-weight fusion detects 58 anomalous points, exceeding the individual branches by 19 and 14 points. The limited overlap between branch detections is consistent with the two criteria providing complementary information.
Fusion nevertheless operates on scores rather than on the union of binary alarms. The branch detections have a union of 73 anomalous points, exceeding the 58 detected by fusion, so some points detected by individual branches are not retained. Moreover, fusion is applied before normalization by its own calibrated threshold, and its displayed curve is therefore not the mean of the two normalized branch curves. Normal-point alarms also increase from 1 for either branch to 2 for fusion. The example thus illustrates how complementary responses can improve anomalous-point detection while retaining both missed detections and false alarms.
4.3 Mechanism Analysis
We hold observations fixed and perturb only their relational reference. Rewiring changes peer identities while preserving the incoming and outgoing degrees and each row's signed weight multiset. Sign reassignment preserves the connections and weight magnitudes while changing relation signs. Within each trial, both interventions use the same observations at every perturbation level, allowing us to examine the effect of reference changes on the residual.
Figure 4 reports closure RMSE normalized by its unperturbed value within each trial on SMAP dataset. Across 12 paired trials, the mean ratio reaches 1.261 under rewiring and 1.311 under sign reassignment at the largest perturbation level. These increases show that both peer identities and relation signs affect the residual, even when degrees or weight magnitudes are preserved. The two interventions are not budget-matched, so their ordering does not establish which aspect is more important. The results support the sensitivity of closure residuals to the relational reference, but do
Table 1: Anomaly detection performance on five benchmarks. P, R, and F1 denote affiliation metrics (%). F1 is computed as the harmonic mean of the reported P and R. Bold and underlined F1 scores indicate the best and second-best performance.
| Dataset | SMD | MSL | SMAP | SWaT | PSM | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Metric | P | R | F1 | P | R | F1 | P | R | F1 | P | R | F1 | P | R | F1 |
| LOF | 57.69 | 99.10 | 72.93 | 49.89 | 72.18 | 59.00 | 47.92 | 82.86 | 60.72 | 53.20 | 96.73 | 68.65 | 53.90 | 99.91 | 70.02 |
| iForest | 100.00 | 9.37 | 17.13 | 53.87 | 94.58 | 68.64 | 41.12 | 68.91 | 51.51 | 53.03 | 62.80 | 57.50 | 100.00 | 3.35 | 6.48 |
| CL-MPPCA | 58.29 | 88.43 | 70.26 | 50.10 | 76.30 | 60.48 | 48.50 | 80.20 | 60.45 | 54.32 | 90.16 | 67.79 | 55.27 | 93.46 | 69.46 |
| TimesNet | 58.50 | 82.32 | 68.40 | 52.10 | 88.47 | 65.58 | 42.40 | 88.10 | 57.25 | 48.37 | 84.23 | 61.45 | 65.16 | 94.23 | 77.04 |
| MTAD-GAT | 85.90 | 67.69 | 75.72 | 54.96 | 94.93 | 69.62 | 39.05 | 93.99 | 55.18 | 65.90 | 77.51 | 71.24 | 79.90 | 60.14 | 68.63 |
| LSTM-VAE | 70.26 | 78.53 | 74.17 | 60.30 | 91.26 | 72.62 | 55.10 | 88.60 | 67.95 | 62.44 | 80.18 | 70.21 | 57.23 | 92.40 | 70.68 |
| BeatGAN | 74.11 | 81.64 | 77.69 | 55.74 | 98.94 | 71.31 | 54.04 | 98.30 | 69.74 | 61.89 | 83.46 | 71.07 | 58.81 | 99.08 | 73.81 |
| InterFusion | 56.20 | 90.10 | 69.22 | 48.40 | 92.30 | 63.50 | 42.10 | 93.21 | 58.00 | 50.20 | 88.50 | 64.06 | 60.30 | 95.60 | 73.95 |
| DeepSVDD | 64.98 | 64.77 | 64.87 | 10.53 | 100.00 | 19.05 | 29.73 | 7.09 | 11.45 | 59.11 | 93.53 | 72.44 | 74.05 | 50.64 | 60.15 |
| AnoTran | 100.00 | 3.19 | 6.18 | 51.04 | 95.36 | 66.49 | 56.91 | 96.69 | 71.65 | 53.63 | 59.94 | 56.61 | 52.01 | 82.18 | 63.70 |
| TranAD | 59.18 | 91.26 | 71.80 | 53.20 | 94.10 | 67.97 | 45.65 | 96.20 | 61.92 | 52.12 | 90.30 | 66.09 | 63.23 | 97.10 | 76.59 |
| NPSR | 57.45 | 89.82 | 70.08 | 50.50 | 92.61 | 65.36 | 44.20 | 95.10 | 60.35 | 49.67 | 88.20 | 63.55 | 61.18 | 96.30 | 74.82 |
| DCdetector | 50.93 | 95.57 | 66.45 | 55.94 | 95.53 | 70.56 | 53.12 | 98.37 | 68.99 | 53.25 | 98.12 | 69.03 | 54.72 | 86.36 | 66.99 |
| DiffAD | 60.25 | 92.50 | 72.97 | 55.10 | 95.30 | 69.83 | 48.30 | 97.10 | 64.51 | 54.20 | 91.56 | 68.09 | 62.85 | 98.20 | 76.65 |
| ImDiffusion | 61.36 | 93.25 | 74.02 | 56.22 | 96.11 | 70.94 | 49.17 | 97.80 | 65.44 | 55.45 | 92.31 | 69.28 | 63.27 | 98.60 | 77.08 |
| D3R | 64.87 | 97.93 | 78.04 | 56.45 | 95.55 | 70.97 | 51.08 | 94.46 | 66.31 | 64.25 | 77.50 | 70.26 | 53.17 | 100.00 | 69.43 |
| CLOSURE | 81.65 | 95.73 | 88.13 | 61.53 | 96.85 | 75.25 | 58.90 | 98.41 | 73.69 | 63.14 | 86.71 | 73.07 | 65.28 | 98.76 | 78.60 |



Figure 3: Complementary scoring responses. (a) Observation and reconstruction; (b) window-standardized observation and peer prediction; (c) scores and alarm strips. Black denotes observations; blue (R), reconstruction; gold (P), relation; and teal (F), equal-weight fusion. Pink shading marks the annotated anomalous interval. Scores are divided by their respective normal-calibrated thresholds, with the gray dashed line at one indicating the alarm boundary.
Table 2: Performance on the Creditcard and GECCO scenarios of NeurIPS-TS. P, R, and F1 denote affiliation metrics (%). Bold and underlined F1 scores indicate the best and second-best.
| Creditcard | GECCO | |||||
|---|---|---|---|---|---|---|
| P | R | F1 | P | R | F1 | |
| iForest | 1.57 | 88.16 | 3.09 | 2.55 | 97.35 | 4.97 |
| BeatGAN | 51.76 | 60.48 | 55.78 | 62.71 | 58.94 | 60.77 |
| AnoTran | 55.86 | 57.55 | 56.69 | 54.77 | 57.21 | 55.96 |
| DCdetector | 49.86 | 67.67 | 57.42 | 38.30 | 59.70 | 46.66 |
| D3R | 56.90 | 69.61 | 62.62 | 59.00 | 36.61 | 45.18 |
| CLOSURE | 64.27 | 75.61 | 69.48 | 69.17 | 71.32 | 70.23 |
not by themselves establish relation-recovery accuracy or anomaly-detection performance.
4.4 Fusion-Weight Sensitivity
We examine how the balance between reconstruction and relation scoring affects detection performance. After branch standardization and softplus transformation calibrated on an independent normal sequence, we evaluate the fused score at 21 weights. The detection threshold is recalibrated for each weight using the 99th percentile of its normal scores. Figure 5 shows that intermediate fusion weights outperform either standalone branch for both processes on SMD dataset. At , point F1 reaches 68.63% and 55.71% for Processes A and B, respectively, compared with 44.77% and 37.37% for their stronger standalone branches. This pattern is consistent with the two paths providing complementary evidence: intermediate weights retain contributions from both paths, whereas
Trovato et al.

Figure 4: Sensitivity to the relation reference. Normalized closure RMSE (mean ± SD, 12 paired trials). Blue: rewiring q of the support; gold: flipping q/2 of edge signs; gray dashed: unperturbed baseline.

Figure 5: Sensitivity to the fusion weight. Unadjusted point F1 for Processes A and B, with a separately normal-calibrated 99th-percentile threshold per weight. Endpoints represent individual branches; the dashed line and enlarged markers indicate equal-weight fusion.
moving toward either endpoint reduces the contribution of one branch. The optimum is not necessarily symmetric. Process B peaks at , with 56.55% F1, exceeding equal-weight fusion by 0.84 percentage points. These results support equal weighting as an effective choice in the evaluated cases, while showing that the best balance can vary across processes.
4.5 Event Coverage Analysis
We distinguish detecting an event from covering its anomalous points. Figure 6 summarizes two event sets, labeled Populations A and B, each containing 36 events on SMD dataset. Branch transformations and each rule's 99th-percentile threshold are calibrated on an independent normal sequence. Event coverage is the fraction of anomalous points within an event receiving an alarm, without point adjustment or event completion. Each curve reports the percentage

Figure 6: Event retrieval and within-event coverage. Percentage of 36 events meeting each coverage requirement. Blue/gold/teal: reconstruction/relation/equal fusion.
of events whose coverage is at least the required level, weighting every event equally. Event retrieval requires strictly positive coverage, whereas all events qualify at a required coverage of zero. This metric measures the extent of coverage rather than the temporal continuity of alarms.
In Population A, equal-weight fusion detects at least one point in 29 events, compared with 18 for reconstruction and 21 for relation scoring. It covers at least half the anomalous points in 14 events, versus 7 for either branch. Population B shows a different tradeoff: fusion retrieves 26 events, compared with 18 for reconstruction and 19 for relation scoring, yet reaches at least half coverage in only 4 events, compared with reconstruction's 5. Detecting more events therefore need not imply higher within-event coverage. Separately, the observed normal-point alarm rate in Population A is 1.55% under fusion, compared with 0.74% and 1.29% for reconstruction and relation scoring, respectively. These results show that event retrieval, within-event coverage, and false alarms capture distinct aspects of detection performance; improvements in one do not necessarily imply improvements in the others.
4.6 Ablation Study
Table 3 examines the two scoring paths and the learned basis memory. The single-path variants keep one path and omit the other; the raw-basis variant replaces the VQ codec with the original basis memory while retaining both scoring paths.
Adding relational scoring to reconstruction raises Aff-F1 from 69.99 to 73.07 on SWaT and from 78.10 to 88.13 on SMD. The full model also exceeds relation-only scoring by 4.99 and 12.34 percentage points, respectively. The relational path is the weaker standalone detector here, yet removing it lowers both precision and recall, consistent with peer consistency acting as a complement.
Table 3: Component ablations. P, R, and F1 are affiliation metrics. The bold denotes the highest.
| Variant | SWaT | SMD | ||||
|---|---|---|---|---|---|---|
| P | R | F1 | P | R | F1 | |
| Rec. only | 60.42 | 83.15 | 69.99 | 72.60 | 84.50 | 78.10 |
| Rel. only | 58.76 | 80.93 | 68.08 | 70.60 | 81.80 | 75.79 |
| Raw bases | 61.85 | 84.92 | 71.57 | 74.80 | 87.20 | 80.53 |
| Full model | 63.14 | 86.71 | 73.07 | 81.65 | 95.73 | 88.13 |
rather than a replacement. Replacing VQ memory with raw bases lowers Aff-F1 by 1.50 and 7.60 percentage points on SWaT and SMD, respectively. Since this variant still supplies normal basis templates and retains both scoring paths, the gap suggests a benefit from learning the basis representation beyond simply providing normal temporal context. This comparison evaluates the encoder, codebook, and decoder jointly and does not isolate the contribution of quantization alone.
5 Conclusion
We revisited a premise of reconstruction-based anomaly detection, that difficulty of recovery tracks abnormality. A residual certifies that a window can be reproduced, and leaves undetermined whether its channels still explain one another. CLOSURE evaluates recoverability and cross-channel consistency through two separately learned prediction tasks on normal data. A diffusion reconstructor conditioned on a discrete memory of normal temporal bases assesses recoverability. A relation-closure operator assesses cross-channel consistency by predicting each channel from its peers. The target's trajectory is withheld, and per-edge gates select the participating peers. Comprehensive experiments demonstrate the effectiveness of our methods across multiple benchmarks.
References
[1] Ahmed Abdulaal, Zhuanghua Liu, and Tomer Lancewicki. 2021. Practical approach to asynchronous multivariate time series anomaly detection and localization. In Proceedings of the 27th ACM SIGKDD conference on knowledge discovery & data mining. 2485–2494.
[2] Julien Audibert, Pietro Michiardi, Frédéric Guyard, Sébastien Marti, and Maria A Zuluaga. 2020. Usad: Unsupervised anomaly detection on multivariate time series. In Proceedings of the 26th ACM SIGKDD international conference on knowledge discovery & data mining. 3395–3404.
[3] Joshua Batson and Loic Royer. 2019. Noise2self: Blind denoising by self-supervision. In International conference on machine learning. PMLR, 524–533.
[4] Markus M Breunig, Hans-Peter Kriegel, Raymond T Ng, and Jörg Sander. 2000. LOF: identifying density-based local outliers. In Proceedings of the 2000 ACM SIGMOD international conference on Management of data. 93–104.
[5] Yuhang Chen, Chaoyun Zhang, Minghua Ma, Yudong Liu, Ruomeng Ding, Bowen Li, Shilin He, Saravan Rajmohan, Qingwei Lin, and Dongmei Zhang. 2023. Imdfusion: Imputed diffusion models for multivariate time series anomaly detection. arXiv preprint arXiv:2307.00754 (2023).
[6] Ailin Deng and Bryan Hooi. 2021. Graph neural network-based anomaly detection in multivariate time series. In Proceedings of the AAAI conference on artificial intelligence, Vol. 35. 4027–4035.
[7] Dong Gong, Lingqiao Liu, Vuong Le, Budhaditya Saha, Moussa Reda Mansour, Svetha Venkatesh, and Anton van den Hengel. 2019. Memorizing Normality to Detect Anomaly: Memory-Augmented Deep Autoencoder for Unsupervised Anomaly Detection. In Proceedings of the IEEE/CVF International Conference on Computer Vision. 1705–1714. https://doi.org/10.1109/ICCV.2019.00179
[8] Alexis Huet, Jose Manuel Navarro, and Dario Rossi. 2022. Local Evaluation of Time Series Anomaly Detection Algorithms. In Proceedings of the 28th ACM SIGKDD Conference on Knowledge Discovery and Data Mining. 635–645.
[9] Kyle Hundman, Valentino Constantinou, Christopher Laporte, Ian Colwell, and Tom Soderstrom. 2018. Detecting spacecraft anomalies using lstms and nonparametric dynamic thresholding. In Proceedings of the 24th ACM SIGKDD international conference on knowledge discovery & data mining. 387–395.
[10] Chih-Yu Andrew Lai, Fan-Keng Sun, Zhengqi Gao, Jeffrey H Lang, and Duane Boning. 2024. Nominality score conditioned time series anomaly detection by point/sequential reconstruction. Advances in Neural Information Processing Systems 36 (2024).
[11] Kwei-Herng Lai, Daochen Zha, Junjie Xu, Yue Zhao, Guanchu Wang, and Xia Ben Hu. 2021. Revisiting Time Series Outlier Detection: Definitions and Benchmarks. NeurIPS Datasets and Benchmarks 20 (2021), 21.
[12] Beibu Li, Qichao Shentu, Yang Shu, Hui Zhang, Ming Li, Ning Jin, Bin Yang, and Chenjuan Guo. 2025. CrossAD: Time Series Anomaly Detection with Cross-scale Associations and Cross-window Modeling. In Advances in Neural Information Processing Systems.
[13] Long Li, Wencheng Zhang, Shi Yuan, Hongle Guo, and Wanghu Chen. 2025. PhysDiff: A Physically-Guided Diffusion Model for Multivariate Time Series Anomaly Detection. In Advances in Neural Information Processing Systems. https://openreview.net/forum?id=EITbpJp7b9
[14] Zhihan Li, Youjian Zhao, Jiaqi Han, Ya Su, Rui Jiao, Xidao Wen, and Dan Pei. 2021. Multivariate time series anomaly detection and interpretation using hierarchical inter-metric and temporal embedding. In Proceedings of the 27th ACM SIGKDD conference on knowledge discovery & data mining. 3220–3230.
[15] Fei Tony Liu, Kai Ming Ting, and Zhi-Hua Zhou. 2012. Isolation-based anomaly detection. ACM Transactions on Knowledge Discovery from Data (TKDD) 6, 1 (2012), 1–39.
[16] Christos Louizos, Max Welling, and Diederik P Kingma. 2017. Learning sparse neural networks through regularization. arXiv preprint arXiv:1712.01312 (2017).
[17] Aditya P Mathur and Nils Ole Tippenhauer. 2016. SWaT: A water treatment testbed for research and training on ICS security. In 2016 international workshop on cyber-physical systems for smart water networks (CySWater). IEEE, 31–36.
[18] Daehyung Park, Yuuna Hoshi, and Charles C Kemp. 2018. A multimodal anomaly detector for robot-assisted feeding using an lstm-based variational autoencoder. IEEE Robotics and Automation Letters 3, 3 (2018), 1544–1551.
[19] Hyunjong Park, Jongyoun Noh, and Bumsub Ham. 2020. Learning memory-guided normality for anomaly detection. In 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). IEEE, 14360–14369.
[20] Junho Song, Keonwoo Kim, Jeonglyul Oh, and Sungzoon Cho. 2023. Memto: Memory-guided transformer for multivariate time series anomaly detection. Advances in Neural Information Processing Systems 36 (2023), 57947–57963.
[21] Ya Su, Youjian Zhao, Chenhao Niu, Rong Liu, Wei Sun, and Dan Pei. 2019. Robust anomaly detection for multivariate time series through stochastic recurrent neural network. In Proceedings of the 25th ACM SIGKDD international conference on knowledge discovery & data mining. 2828–2837.
[22] Xin Sun, Heng Zhou, and Chao Li. 2025. Multivariate Time Series Anomaly Detection with Idempotent Reconstruction. In Advances in Neural Information Processing Systems.
[23] Shahroz Tariq, Sangyup Lee, Youjin Shin, Myeong Shin Lee, Okchul Jung, Daewon Chung, and Simon S Woo. 2019. Detecting anomalies in space using multivariate convolutional LSTM with mixtures of probabilistic PCA. In Proceedings of the 25th ACM SIGKDD international conference on knowledge discovery & data mining. 2123–2133.
[24] Shreshth Tuli, Giuliano Casale, and Nicholas R Jennings. 2022. Tranad: Deep transformer networks for anomaly detection in multivariate time series data. arXiv preprint arXiv:2201.07284 (2022).
[25] Aaron Van Den Oord, Oriol Vinyals, et al. 2017. Neural discrete representation learning. Advances in neural information processing systems 30 (2017).
[26] Chengsen Wang, Zirui Zhuang, Qi Qi, Jingyu Wang, Xingyu Wang, Haifeng Sun, and Jianxin Liao. 2023. Drift doesn't matter: Dynamic decomposition with diffusion reconstruction for unstable multivariate time series anomaly detection. Advances in neural information processing systems 36 (2023), 10758–10774.
[27] Haixu Wu, Tengge Hu, Yong Liu, Hang Zhou, Jianmin Wang, and Mingsheng Long. 2022. Timesnet: Temporal 2d-variation modeling for general time series analysis. arXiv preprint arXiv:2210.02186 (2022).
[28] Xingjian Wu, Xiangfei Qiu, Zhengyu Li, Yihang Wang, Jilin Hu, Chenjuan Guo, Hui Xiong, and Bin Yang. 2025. CATCH: Channel-Aware multivariate Time Series Anomaly Detection via Frequency Patching. In International Conference on Learning Representations.
[29] Chunjing Xiao, Zehua Gou, Wenxin Tai, Kunpeng Zhang, and Fan Zhou. 2023. Imputation-based time-series anomaly detection with conditional weight-incremental diffusion models. In Proceedings of the 29th ACM SIGKDD Conference on Knowledge Discovery and Data Mining. 2742–2751.
[30] Fan Xu, Nan Wang, Hao Wu, Xuezhi Wen, Xibin Zhao, and Hai Wan. 2024. Revisiting graph-based fraud detection in sight of heterophily and spectrum. In Proceedings of the AAAI conference on artificial intelligence, Vol. 38. 9214–9222.
[31] Fan Xu, Qinxin Zhao, Xiaoxiao Liu, Nan Wang, Meiqi Gao, Xuezhi Wen, and Dalin Zhang. 2025. Advanced persistent threat detection via mining long-term features
Trovato et al.
in provenance graphs. Frontiers of Computer Science 19, 10 (2025), 1910809.
[32] Jiehui Xu, Haixu Wu, Jianmin Wang, and Mingsheng Long. 2021. Anomaly transformer: Time series anomaly detection with association discrepancy. arXiv preprint arXiv:2110.02642 (2021).
[33] Yiyuan Yang, Chaoli Zhang, Tian Zhou, Qingsong Wen, and Liang Sun. 2023. Dcdetector: Dual attention contrastive representation learning for time series anomaly detection. In Proceedings of the 29th ACM SIGKDD Conference on Knowledge Discovery and Data Mining. 3033–3045.
[34] Tao Yin, Shaochen Fu, Zhibin Zhang, Li Huang, Xiaohong Zhang, Yiyuan Yang, Kaixiang Yang, and Meng Yan. 2025. ScatterAD: Temporal-Topological Scattering Mechanism for Time Series Anomaly Detection. In Advances in Neural Information Processing Systems. https://openreview.net/forum?id=UB5u3KvOS1
[35] Chuxu Zhang, Dongjin Song, Yuncong Chen, Xinyang Feng, Cristian Lumezanu, Wei Cheng, Jingchao Ni, Bo Zong, Haifeng Chen, and Nitesh V. Chawla. 2019. A Deep Neural Network for Unsupervised Anomaly Detection and Diagnosis in Multivariate Time Series Data. In Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 33. 1409–1416. doi:10.1609/aaai.v33i01.33011409
[36] Weiqi Zhang, Chen Zhang, and Fugee Tsung. 2022. GRELEN: Multivariate Time Series Anomaly Detection from the Perspective of Graph Relational Learning. In IJCAI, Vol. 734. 2390–2397.
[37] Hang Zhao, Yujing Wang, Juanyong Duan, Congrui Huang, Defu Cao, Yunhai Tong, Bixiong Xu, Jing Bai, Jie Tong, and Qi Zhang. 2020. Multivariate time-series anomaly detection via graph attention network. In 2020 IEEE international conference on data mining (ICDM). IEEE, 841–850.
[38] Bin Zhou, Shenghua Liu, Bryan Hooi, Xueqi Cheng, and Jing Ye. 2019. Beatgan: Anomalous rhythm detection using adversarially generated time series.. In IJCAI, Vol. 2019. 4433–4439.
[39] Yu Zhou, Xiaomin Liang, Wei Zhang, Linrang Zhang, and Xing Song. 2021. VAE-based deep SVDD for anomaly detection. Neurocomputing 453 (2021), 131–140.
Appendices
A Baseline Descriptions
We summarize the methods appearing in the main comparison tables and experimental setup; the descriptions concern their modeling principles rather than a claim that their original evaluation protocols are identical.
• LOF [4] compares an observation’s local density with those of its nearest neighbors and assigns a larger outlier score to observations in relatively sparse neighborhoods.
• iForest [15] isolates observations through random recursive partitions and scores points that require shorter isolation paths as more anomalous.
• CL-MPPCA [23] combines convolutional LSTM modeling with mixtures of probabilistic principal component analyzers to capture temporal behavior and multiple normal operating patterns.
• TimesNet [27] reshapes a sequence into period-dependent two-dimensional tensors and uses convolutional blocks to model within-period and across-period variation.
• MTAD-GAT [37] combines feature-wise and temporal graph attention with forecasting and reconstruction objectives to model dependencies across variables and time.
• LSTM-VAE [18] models normal sequences with recurrent latent-variable encoding and decoding, using the resulting probabilistic reconstruction to assess anomalous observations.
• BeatGAN [38] regularizes time-series reconstruction through adversarial training and identifies anomalous regions from discrepancies between observations and generated reconstructions.
• InterFusion [14] uses a hierarchical variational model to capture inter-metric and temporal dependencies and evaluates observations through their reconstruction probabilities.
• DeepSVDD [39] learns a representation concentrated around a normal-data center and detects anomalies from their distance to that center rather than reconstruction error.
• Anomaly Transformer (AnoTran) [32] contrasts a temporal prior association with learned series associations and combines their discrepancy with reconstruction evidence for detection.
• TranAD [24] uses attention-based reconstruction with self-conditioning and adversarial training to model multivariate windows and score their reconstruction deviations.
• NPSR [10] combines point-wise and sequence-wise reconstruction to estimate nominality and condition anomaly scores on the distinction between point and contextual deviations.
• DCdetector [33] learns multiscale representations with an asymmetric dual-attention contrastive objective and derives detection evidence without a reconstruction objective.
• DiffAD [29] detects anomalies through conditional diffusion-based imputation, progressively adjusting conditioning weights to preserve information from observed values.
• ImDiffusion [5] learns diffusion-based time-series imputers and uses their denoised estimates to measure departures from temporal and cross-variable context.
• D3R [26] combines dynamic decomposition with diffusion reconstruction to separate nonstationary drift from the deviations used for anomaly detection.
• OmniAnomaly [21], also mentioned in the experimental setup, uses a stochastic recurrent model with a flexible variational posterior and reconstruction probabilities to detect multivariate anomalies.
B Datasets and Data Handling
B.1 Benchmark Descriptions
Server Machine Dataset (SMD). SMD contains five weeks of monitoring data from 28 machines, with 38 recorded metrics per machine [21]. Its source release supplies separate training and test sequences and test anomaly annotations for each machine. Machine identities define separate sequences, not adjacent portions of one continuous trajectory.
Mars Science Laboratory (MSL). MSL contains spacecraft telemetry from the Curiosity rover and expert-annotated anomalous intervals [9]. The source collection contains 27 telemetry streams. A stream's model inputs include a monitored telemetry variable and encoded command context; these input columns should not all be interpreted as distinct physical sensors.
Soil Moisture Active Passive (SMAP). SMAP is the companion NASA spacecraft collection with 55 telemetry streams and annotated anomalous intervals [9]. As in MSL, the monitored signal is accompanied by command-related inputs. The number of streams in the collection is distinct from the feature dimension of an individual input window.
Secure Water Treatment (SWaT). SWaT records the operation of a six-stage water-treatment testbed through 51 sensor and actuator variables [17]. The commonly used release contains normal-operation data and a separate attack period. Measurements describe interacting processes such as flow, tank level, and valve operation, making cross-variable consistency relevant to monitoring.
Pooled Server Metrics (PSM). PSM contains multivariate monitoring signals collected from eBay application servers [1]. The released training and test files describe server behavior through anonymized metrics, with anomaly labels supplied separately for testing. It complements SMD with a different operational environment and dependency structure.
GECCO.. The GECCO scenario in the NeurIPS time-series benchmark originates from drinking-water quality monitoring [11]. It is named Water in the local release and contains nine measurement variables, including pH, temperature, and conductivity. Its annotations concern departures in a continuously monitored water-quality process.
Creditcard. The Creditcard scenario contains transaction records with fraud annotations and is included in the same benchmark [11]. The local release uses 29 transaction features. Unlike regularly sampled sensor measurements, consecutive observations represent transaction events; window position therefore describes event order rather than a fixed physical time interval.
C Algorithmic Details and Pseudocode
We detail the independent fitting of the basis codec, reconstructor, and sparse relation operator in Section 3, followed by calibration of their equal-weight score. The relational formulation assumes retained channels. We write for the windows from segment and store each input window together with its aligned detrended copy.
C.1 Fitting the Three Components
Basis codec. For a normalized basis patch , let , , and , as in Eq. 1. Each band minimizes the usual straight-through quantization objective [25]:
Here MSE averages squared coordinate differences, and weights commitment to the selected code. The codebook loss updates the selected code vector, while the straight-through reconstruction gradient and commitment loss update the encoder. The fitted codecs and template indices are subsequently frozen. Each stored template retains paired high- and low-frequency code sequences; the two bands are read with the same template index.
Reconstruction and relation fitting. The reconstructor minimizes with the frozen memory. Independently, the relation predictor minimizes over all retained targets. Its candidates comprise all directed off-diagonal pairs, not just the nonzero entries of . One hard-concrete gate vector is drawn per training minibatch; validation uses deterministic gates. The scored target set is not changed by pruning.
D Detailed Theoretical Analysis
We prove Lemma 3.1, Theorem 3.2, and Eq. 12, and derive the gate penalty. The results concern a frozen operator in fixed standardized coordinates. They do not imply that every anomaly violates its relations, that the branches are statistically independent, or that fusion improves detection. Nor does an empirical normal-data quantile guarantee a distribution-free false-alarm rate under dependence or distribution shift. Detection accuracy and event coverage require empirical evaluation.
D.1 Proof of the Normalization Lemma
Fix a row , let , and take and . Positive scaling preserves signs, so
(14)
Taking absolute values and summing over j proves the exact identity
Trovato et al.
The right-hand side tends to zero when , establishing Lemma 3.1. If , every positive scaling gives exactly the same normalized row. The case is excluded from the lemma because is undefined; the implemented -regularized map instead returns a zero row.
Why the order of gating matters. Let and let be the absolute row mass after deterministic gating. Since ,
If all gates in a row equal , its mass is : the gates retain control over attenuation after normalization. A second exact normalization would remove this control because, for and a nonzero row ,
With a positive numerical stabilizer, cancellation is approximate when the row mass dominates that stabilizer, as quantified by the lemma. Normalization thus preserves relative contributions but not their absolute scale. This motivates separate attenuation parameters; it does not prove that learned sparsity necessarily improves detection.
D.2 Expected Gate Count and Deterministic Evaluation
For the hard-concrete gate in Eq. 6, assume and . The event is unaffected by clipping at the upper endpoint. Writing and gives
(18)
Because , , and therefore
This is the expected fraction of open candidate gates, following the hard-concrete relaxation of Louizos et al. [16]; it is not a confidence probability that an edge is physically correct. An open gate can still multiply a zero coefficient, so gate counts and nonzero effective-coefficient counts need not agree.
Validation and detection replace sampling by the deterministic surrogate
The reference implementation uses , , and . In general, . Closing every incoming gate of target sets its prediction to zero, but its Huber loss remains in the objective; pruning cannot remove the target from supervision or scoring.
D.3 Proof of Target-Excluded Closure Response
Fix the fitted parameters, channel embeddings, and deterministic gates. Then target i has the functional form
The weights and identity embeddings do not depend on the current observation. Let . For every , , hence every summand in Eq. 21 is unchanged and . Subtracting predictions from observations yields
(22)
This proves both identities in Theorem 3.2. The argument is exact for nonlinear source messages and arbitrary perturbation magnitude. At differentiable points, the equivalent Jacobian statement is
The result requires exclusion from the entire forward path, not just a zero diagonal in one matrix. A target-dependent gate, a shared all-channel feature mixer, or multihop feedback through another channel could invalidate the argument. None is present in the specified one-hop operator. A change to channel i can still alter predictions for other targets, since it is allowed to serve as their source.
Signed response versus error magnitude. The identity does not imply . For example, choosing makes the new target residual zero. What always holds is
Thus suffices to increase that target's absolute residual, but a conclusion about all-channel aggregation additionally requires accounting for the other targets.
D.4 Proof of the General Perturbation Bounds
For an arbitrary , define
Direct substitution gives the exact identity . Let . Applying the reverse triangle inequality first to and , then to and , gives
(26)
Division by LD proves both inequalities in Eq. 12. In particular,
If , the perturbed residual lies within of the unexplained perturbation magnitude. If , the lower bound is strictly larger than . Conversely, if , the second inequality in Eq. 12 limits the change in residual magnitude to , regardless of the size of itself.
Linear special case. For , the unexplained change becomes
Thus a perturbation satisfying leaves the residual unchanged. In the nonlinear case, the corresponding condition is the finite-increment equality , not membership in a fixed linear subspace. These statements describe predictability under the learned operator, not a recovered causal graph or a universal definition of anomalous behavior.
D.5 Coordinates, Endpoint Ratios, and Decision Scope
Fixed standardized coordinates. The perturbations above act on Z, after preprocessing. If a raw window is perturbed and then standardized again, the relevant change is the induced difference between the two standardized windows, not the raw additive perturbation. Channel-wise preprocessing preserves target exclusion from peer trajectories, but centering can remove an additive shift and rescaling can change its magnitude. Offline detrending also limits any claim about streaming detection delay.
The endpoint ratio is a different quantity. Suppress the window index and set . For a second nonnegative residual profile , write and . The exact score difference is
Both denominators are positive. Therefore an endpoint-error increase raises the ratio only when ; a simultaneous increase in the background can offset it. Since ,
A uniformly large residual therefore produces a ratio near one, not a score proportional to its absolute magnitude. This readout emphasizes local departures within a window and does not measure how long an anomaly persists.