Abstract
Anomaly detection on attributed networks aims to find nodes whose behaviors significantly differ from the majority. Network anomalies are often embodied in relationships that violate the homophily assumption—the principle that connected nodes should be similar. However, existing methods often fail to explicitly model this violation and are sensitive to noise introduced by anomalous nodes. We present SCALA (Sparsification-based Contrastive Learning for Anomaly Detection), a novel framework that improves embedding quality and anomaly scoring by introducing domain-informed graph sparsification. Extensive experiments on five benchmark datasets demonstrate that SCALA significantly outperforms state-of-the-art baselines.
Introduction
In attributed networks, such as social or citation graphs, the homophily assumption suggests that connected nodes share similar attributes. Anomalies, such as fraudsters or bots, typically violate this rule. Current Contrastive Learning (CL) methods for anomaly detection face two major hurdles: noise sensitivity, where anomalous nodes pollute local neighborhood embeddings, and under-utilized signals, where the explicit violation of homophily is not directly measured. SCALA addresses these by pruning suspicious edges and utilizing a dual-scoring mechanism.
Methodology
SCALA employs a multi-view contrastive learning strategy centered around graph sparsification to isolate anomalies from normal network patterns.
1. Graph Sparsification (The "Spar-view")
The framework calculates attribute similarity between connected nodes. Edges with similarity below a threshold ($\epsilon$) are pruned, creating a "spar-view." This "cleaned" graph removes suspicious connections, mitigating the impact of anomalous noise on node representations.
2. Multi-view Contrastive Learning
The model trains on two views simultaneously:
- Dense-view: The original graph, using standard Graph Convolutional Networks (GCNs).
- Spar-view: The pruned graph, using a Similarity-aware Readout. This mechanism uses attention to weight neighbors based on their similarity to the target node, further insulating the model from noise.
3. Dual Anomaly Scoring
The final anomaly score is a weighted combination of a Contrastive Score (measuring disagreement between a node and its neighborhood across views) and a Sparsification Score (measuring the proportion of edges pruned from a node).
Experimental Results
SCALA was evaluated on five real-world datasets: Cora, CiteSeer, PubMed, ACM, and DBLP. Structural and attribute anomalies were injected using the standard DOMINANT perturbation scheme.
SCALA consistently outperformed ten baseline methods, including CoLA, ANEMONE, and ARISE. Key results include:
- AUC Improvements: The model achieved significant gains in Area Under the Curve (AUC), notably a 5.71% improvement on the DBLP dataset.
- Ablation Success: Removing the sparsification module led to a performance drop of up to 12.95% on DBLP, confirming that informed pruning is the framework's core strength.
Conclusion
SCALA provides a robust solution for anomaly detection by explicitly incorporating the homophily assumption through graph sparsification. By combining domain-informed data augmentation with a dual-scoring mechanism, it effectively identifies anomalous nodes. Future research will explore more sophisticated similarity metrics and the application of SCALA to dynamic networks.
Summary updated