Skip to content

Anomaly Detection via Contrastive Learning on Graph using Embedding

Jul 2026 · International journal of software engineering and knowledge engineering · 0 citations

TL;DR

A graph embedding-based error detection method via contrastive learning that treats each triple as a hyper-node, enabling data-driven modeling of semantic consistency and integrates a semantic matching-based scoring mechanism with a contrastive learning-based scoring mechanism.

Abstract

Errors in graph-structured data introduce significant noise, severely constraining the performance of downstream tasks. Existing anomaly detection methods face the dual challenges of unknown error patterns and scarce annotated data. Traditional rule-based approaches suffer from poor generalizability, while embedding-based methods, which typically generate negative samples via random substitution, struggle to capture complex error types that are semantically related yet structurally incorrect. To address these issues, this paper proposes a graph embedding-based error detection method via contrastive learning. Specifically, the method first establishes a complementary shared view through structural linking rules. Departing from traditional node-centric modeling paradigms, it treats each triple as a hyper-node, enabling data-driven modeling of semantic consistency. Subsequently, we design local and global semantic-aware encoding modules. These modules not only leverage Bidirectional Gated Recurrent Units (Bi-GRU) to model the local semantic structure of triples, but also employ attention mechanisms to mitigate the negative propagation of potential errors at the global level. Finally, by integrating a semantic matching-based scoring mechanism with a contrastive learning-based scoring mechanism, our model can jointly evaluate the internal self-consistency of triples with complex relational patterns and their external consistency. In addition, our experimental results on two open-source datasets demonstrate that the proposed method outperforms or ranks second to existing state-of-the-art baselines in error detection tasks, exhibiting strong validity and performance.

View source

Similar papers

Book Open access Jul 2026

Retrieval-Augmented Contrastive Learning for Dynamic Graph Anomaly Detection

DGRA-CL transforms dynamic graphs into temporal sequences, employs time- and context-aware contrastive learning to learn normal node behavior patterns, retrieves similar normal exemplars from a training pool under a strict causality constraint, and fuses them via similarity-weighted aggregation to construct baseline re...

Kamal Berahmand, S. Forouzandeh, Mehrnoush Mohammadi et al. · 2 citations
Conference Open access Sep 2026

Unsupervised Anomaly Detection in Dynamic Graphs via Compatibility Modeling and Boundary Learning

BAD is proposed, an unsupervised framework for anomaly detection in continuous-time dynamic graphs that represents nodes with learnable identity embeddings and performs pairwise compatibility modeling via cross-attention between each destination node and the source’s recent neighbors, enabling direct characterization o...

Jia-Chi Luo, Sha-Meng Wen, Zi-Yan Qiu et al. · 0 citations
Open access Aug 2026

TGPA: Transferable graph prompt attack with hierarchical subgraph augmentation.

A novel transferable graph prompt attack, called TGPA, is proposed, which shifts the attack paradigm by introducing a hierarchical structural decoupling mechanism, which reduces the performance of pre-trained graph models with graph prompts by up to 28.9%, while guaranteeing robustness, stealthiness, and transferabilit...

Ju Jia, Haonan Wang, Tian Wu et al. · 0 citations
Open access Aug 2026

Generate and Filter: A GNN-Based Approach for Graph Anomaly Detection

A novel framework, Generate and Filter graph learning for Graph Anomaly Detection (GFGAD), which generates a diverse set of synthetic anomalies with enriched feature and structural information to balance the data distribution and significantly outperforms state-of-the-art baselines.

Meng-Yu Li, Yong-Hao Liu, Xi-Ming Li et al. · 0 citations
Book Open access Aug 2026

CR-Aug: Community Risk-Guided Adaptive Augmentation for Semi-supervised Graph Anomaly Detection

Recently, semi-supervised graph anomaly detection (GAD) has garnered increasing attention under a challenging setting where only a limited number of normal nodes are labeled during training. To better exploit the limited normal supervision and compensate for the absence of real anomaly labels, existing methods often ad...

Jing Huang, Yicun Liu, Zhixin Li et al. · 0 citations
Open access Aug 2026

Local anomaly detection via subgraph embedding on multivariate data streams

The results indicate that entropy-based subgraph embedding can improve local anomaly detection performance, although the model does not achieve the best value for every metric on every dataset.

Gen Li, Jason J. Jung · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.