Semantically Complementary Spectral Views Learning for Graph-Level Anomaly Detection

Yuanming Liu, Fan Xu, Xibin Zhao, Hai Wan, Wu Junran, Nan Wang, Jiqiang LiuNeurIPS 2026

TL;DR

When hunting for anomalous graphs—like toxic molecules or fraudulent transaction rings—current self-supervised models accidentally blind themselves by comparing two nearly identical, smoothed-over versions of the same graph. This paper introduces Sica, a framework that instead compares complementary "low-frequency" and "high-frequency" views of a graph, distilling away view-specific noise to catch subtle structural anomalies that traditional methods miss. It sets a new state-of-the-art across both anomaly and out-of-distribution detection benchmarks.

What Problem Does This Paper Address?

Imagine trying to spot a counterfeit bill by looking at two slightly blurry photocopies of it and checking if they match. Because both copies share the exact same blur, they match each other perfectly—and you miss the fake.

This is the hidden trap in Graph-Level Anomaly Detection (GLAD). Because labeled anomalies are rare, researchers rely on unsupervised Graph Contrastive Learning (GCL): you create two altered "views" of a graph (say, by randomly dropping edges) and train a model to recognize that they come from the same source. During testing, normal graphs should align neatly across views, while weird, anomalous graphs should fail to align, triggering a high error score.

The catch? Standard Graph Neural Networks (GNNs) act like low-pass filters—they smooth information across neighborhoods. When you pair standard augmentations with low-pass encoders, you get semantically homogeneous views. Both views capture the same broad community structures while smoothing away sharp, "high-frequency" oddities (like an unusual bridge connecting two distant groups). Because the two views overlap so heavily, the learning task becomes trivially easy: even anomalous graphs agree with themselves across views, masking the very signals we want to detect.

Figure 1: (a) Overlapping homogeneous semantics lead to consistent patterns, which tend to cause catastrophic shortcuts in contrastive learning and thus weaken discriminative ability. (b) Comple- mentary spectral semantics can capture unique high-frequency anomaly patterns. (c) Distillation for views can eliminate semantic noise and extract core information shared between these views.

Methods

Instead of relying on random perturbations, Sica (Semantically Complementary Spectral Views) splits a graph into two distinct spectral perspectives and filters out the noise before aligning them:

  1. Complementary Spectral Views: Sica abandons homogeneous augmentations. For the low-frequency view (capturing stable community structures and homophily, where similar nodes connect), it uses a standard Graph Isomorphism Network (GIN). For the high-frequency view (capturing sharp local differences and heterophily, where dissimilar nodes connect), it uses a Beta Wavelet GNN (BWGNN) tuned as a high-pass filter.
  2. Soft Subgraph Extraction (Local Distillation): Comparing low- and high-frequency views directly is tough because they share very little surface-level information and contain view-specific noise. Inspired by the Multi-View Information Bottleneck principle, Sica extracts only the core subgraph from each view. It introduces Score Reconstruction Attention (SRA), which passes node-importance scores along graph edges so the model selects connected, cohesive substructures rather than scattered nodes, softly attenuating irrelevant features rather than rigidly dropping nodes.
  3. Anchor-Guided Condensation (Global Distillation): Sica wires a virtual "anchor node" to every node in the distilled graph and runs it through a shared band-pass BWGNN decoder. Acting as an information sink, this anchor condenses the entire graph's core essence into a single summary vector.
  4. Hierarchical Contrastive Alignment: Finally, Sica maximizes agreement (via InfoNCE loss) across four scales: raw nodes, full graphs, distilled core nodes, and global anchors. At test time, this cross-view alignment loss directly serves as the anomaly score.
Figure 2: Architecture overview of the proposed Sica. Semantically complementary spectral views are generated from the input graph and distilled into informative subgraphs representations by SRA and anchor. A contrastive objective then aligns these representations, using the final consistency loss as the anomaly score for inference.

Datasets

The authors evaluate Sica using the standardized UB-GOLD benchmark suite (no new datasets are introduced):

  • Anomaly Detection (GLAD): 10 datasets from the TU benchmark and Tox21 challenge, spanning molecules, proteins, and social networks (including MMP, IMDB-B, REDDIT-B, ENZYMES, PROTEINS, DD, BZR, AIDS, COX2, and DHFR).
  • Out-of-Distribution Detection (GLOD): 6 dataset pairs testing inter-dataset shifts, where one dataset is treated as normal/in-distribution and another as OOD (e.g., AIDS $\rightarrow$ DHFR, BZR $\rightarrow$ COX2, PT $\rightarrow$ MU).

Key Insights and Ideas

  • Harder contrasts make better detectors: Making the contrastive task deliberately harder—by forcing a low-pass view and a high-pass view to agree—prevents the model from taking superficial shortcuts. Normal graphs learn a consistent cross-frequency signature, whereas structural anomalies break that alignment.
  • Decoders need high-frequency vision too: In ablation studies, swapping the shared band-pass BWGNN decoder for a standard low-pass GNN caused average performance to drop from 79.86% to 70.97% AUROC. Even during global aggregation, retaining mid- and high-frequency signals is critical.
  • Local and global distillation are synergistic: Removing the global virtual anchor node caused the steepest performance drop in the entire system. Furthermore, supervising the local core subgraphs yielded minimal gains until paired with the global anchor loss, showing that local noise filtering needs a global target to shine.
  • Surprise resilience to dirty training data: When the authors secretly poisoned the supposedly "clean" training set with up to 15% anomalous graphs, Sica barely flinched—and on REDDIT-B, its performance actually improved from 85.77% to over 87% AUROC.

Key Results

  • GLAD Benchmarks: Sica ranks 1st overall (average rank 1.7), achieving the highest state-of-the-art 77.67% average AUROC across all 10 datasets and winning outright on 8 of them. It shines brightest on molecular and protein graphs where subtle topological defects matter, beating the strongest baselines by ~3.5% on BZR (84.27%) and ~2.5% on COX2 (74.83%).
  • GLOD Benchmarks: Sica sweeps all 6 OOD dataset pairs (average rank 1.0), reaching an 88.23% average AUROC—nearly 4 points higher than the runner-up (GOOD-D at 84.29%). On the challenging PT $\rightarrow$ MU shift, it jumps ~6% ahead of the best baseline (92.11% vs. 86.01%).
Table 2: Performance comparison (AUROC %, mean±std) of different methods on GLOD benchmark datasets. The best results are highlighted in bold, and the second best are underlined.

Limitations and Future Work

While the authors do not include a standalone limitations section in the main text, their experiments highlight a clear domain trade-off: on large, noisy social networks (IMDB-B and REDDIT-B) where anomalies are not cleanly defined by fine-grained structural semantics, Sica trails behind specialized baselines (e.g., scoring 65.73% vs. MUSE's 73.54% on IMDB-B), and IMDB-B was noticeably more sensitive when anomalous graphs were injected into training data. Future directions are not explicitly discussed in the main text.

Summary updated

Abstract

Graph-level anomaly detection (GLAD) is a critical task in domains like social networks and bioinformatics. However, current unsupervised contrastive learning-based methods rely on semantically homogeneous augmentations, leading to catastrophic informational overlap that trivializes the learning objective and effectively masks anomalous signals in GLAD. To overcome this, we propose Sica (Semantically Complementary Spectral Views), a novel contrastive framework that learns from semantically complementary spectral views rather than redundant homogeneous views. Sica first constructs a pair of spectral views to separately capture global community structure and local heterophilous variations, which together cover the full graph spectrum of anomalous patterns. Inspired by the Multi-View Information Bottleneck principle, we further design a soft subgraph extraction module with Score Reconstruction Attention (SRA) and an anchor-guided condensation mechanism to distill the essential shared information from each view into a compact representation. We then optimize a contrastive objective across these distilled views to enforce cross-view alignment and amplify subtle structural deviations. Extensive experiments on challenging GLAD and graph-level out-of-distribution detection (GLOD) benchmarks demonstrate that Sica achieves substantial and consistent gains in average performance over state-of-the-art baselines.
BibTeX
@inproceedings{liu2026semantically,
  author = {Yuanming Liu and Fan Xu and Xibin Zhao and Hai Wan and Wu Junran and Nan Wang and Jiqiang Liu},
  title = {{Semantically Complementary Spectral Views Learning for Graph-Level Anomaly Detection}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=w7tK56sqat},
}
Figure