# Anomaly Detection on Attributed Networks via Contrastive Self-Supervised Learning

대조 자기지도 학습을 통한 속성 그래프 이상 탐지

Yixin Liu, Zhao Li, Shirui Pan, Chen Gong, Chuan Zhou, George Karypis · arXiv · 2021년 2월 27일

- **연구 문제** 속성 네트워크 이상 탐지에서 오토인코더 기반 방법은 재구성 목표가 이상 탐지와 직접 맞지 않고 대규모 그래프에서 메모리 문제가 있어, 노드와 지역 부분그래프의 대조 학습으로 이를 해결하려는 연구입니다.
- **연구 방법** CoLA는 target node v.s. local subgraph 쌍을 샘플링하고 GCN 기반 판별기로 일치도를 학습한 뒤, 여러 번 샘플링한 음성과 양성 점수 차이의 평균으로 노드 이상 점수를 계산합니다.
- **주요 결과** 일곱 벤치마크 데이터셋에서 비교 기준 방법보다 높은 AUC를 보고하며, Cora에서는 CoLA가 0.8779, DOMINANT가 0.8155를 기록합니다.

## 오토인코더 기반 이상 탐지의 한계

속성 네트워크의 이상 탐지는 노드 속성과 간선 구조를 함께 다뤄야 합니다. 이상은 크게 두 유형으로 나뉩니다. structural anomaly는 속성은 정상이지만 다른 노드와 비정상적인 간선을 가지는 경우이고, contextual anomaly는 자연스러운 이웃 구조를 가지지만 속성이 손상되거나 주변과 어긋나는 경우입니다. DOMINANT처럼 그래프 오토인코더로 속성과 구조를 재구성하고 재구성 오차로 이상 정도를 평가하는 방법은 재구성이라는 학습 목표가 이상 탐지 목표와 직접 연결되지 않아 준최적 성능에 머무를 수 있다고 논문은 지적합니다. 또한 오토인코더는 전체 그래프의 인접 행렬과 속성 행렬을 입력으로 받아 재구성해야 하므로, 대규모 네트워크에서는 메모리 요구가 커집니다.

CoLA는 이 두 한계를 함께 겨냥하여 이상 탐지 목표를 직접 쓰고, 전체 그래프 대신 샘플링된 인스턴스 쌍으로 학습하는 방향을 택합니다.

![Figure 1: Toy examples to illustrate different types of anomalies in attributed networks. A structural anomaly often has wrong links with other nodes but has n…](https://refivu.com/papers/c20bdbfe-b419-4df5-8f33-b1066c4f4576/figures/figure-9152c407da6c13d0c1f3831bb527b4d8.png?thumb=512)

**Fig. 1** . Toy examples to illustrate different types of anomalies in attributed networks. A structural anomaly often has wrong links with other nodes but has normal attributes. For example, in Subﬁgure (a), an American engineer has a very low probability of being associated with a German designer as well as a British manager, so the links between them are abnormal. A contextual anomaly usually has a natural neighboring structure but its attributes are corrupted. For instance, in Subﬁgure (b), the attribute vector of the anomaly node is disturbed by noisy information, e.g., mismatched location, employer and occupation.

[원문](https://arxiv.org/abs/2103.00113v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Yixin Liu, Zhao Li, Shirui Pan, Chen Gong, Chuan Zhou, George Karypis · Anomaly Detection on Attributed Networks via Contrastive Self-Supervised Learning · 원문 그림 인용 · 원본 PDF 2쪽에서 그림 영역을 추출했습니다.

## 대상 노드와 지역 부분그래프의 인스턴스 쌍

CoLA의 핵심 인스턴스 쌍은 target node v.s. local subgraph입니다. 대상 노드 하나와 그 주변에서 샘플링한 지역 부분그래프를 한 쌍으로 묶습니다. 양성 쌍은 대상 노드 자신을 시작 노드로 하여 샘플링한 부분그래프와 짝지은 것이고, 음성 쌍은 대상 노드가 아닌 무작위 노드를 시작 노드로 하여 샘플링한 부분그래프와 짝지은 것입니다. 따라서 음성 쌍에서는 대상 노드와 그 지역 구조 사이에 불일치가 생깁니다. 부분그래프 샘플링에는 random walk with restart(RWR)을 사용합니다. 또한 시작 노드들의 속성 벡터를 영벡터로 바꾸어, 대상 노드가 부분그래프 안에서 직접 식별되지 않도록 익명화합니다.

이 설계는 이상이 노드와 이웃 사이의 불일치로 드러난다는 가정에 기반합니다. 논문은 전역 속성에 집중하는 full graph v.s. node 같은 기존 쌍 정의와 이 설계를 구별합니다.

![Figure 3: The sampling process of contrastive instance pairs. Here we select node 𝑣6 as the example of target node. The initial nodes for subgraph sampling a…](https://refivu.com/papers/c20bdbfe-b419-4df5-8f33-b1066c4f4576/figures/figure-23ff24e2ad93f6c10fca0d9fa449b2d7.png?thumb=512)

**Fig. 3** . The sampling process of contrastive instance pairs. Here we select node 𝑣6 as the example of target node. The initial nodes for subgraph sampling are marked in green. The blue-white stripe means the embedding of the corresponding node is masked with zero vector.

[원문](https://arxiv.org/abs/2103.00113v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Yixin Liu, Zhao Li, Shirui Pan, Chen Gong, Chuan Zhou, George Karypis · Anomaly Detection on Attributed Networks via Contrastive Self-Supervised Learning · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

## GNN 기반 대조 학습 모델과 손실

대조 학습 모델은 GNN 모듈, readout 모듈, 판별기 모듈로 구성됩니다. 지역 부분그래프는 여러 층의 GCN 계열 GNN을 거쳐 노드 임베딩을 얻습니다. 대상 노드는 부분그래프가 없으므로 GCN의 가중치 행렬과 활성화 함수만 공유하는 DNN 형태의 변환으로 같은 임베딩 공간에 사상됩니다. readout은 평균 풀링으로 부분그래프 노드 임베딩을 하나의 부분그래프 임베딩으로 요약합니다. 판별기는 쌍선형 점수 함수로 두 임베딩의 일치도를 계산하고 시그모이드를 적용해 예측 점수를 냅니다. 학습은 양성과 음성 쌍에 대한 표준 이진 교차엔트로피 손실로 이루어집니다. 논문은 샘플링 단계에서 양성과 음성을 균형 있게 뽑았기 때문에 가중치를 조정한 BCE 대신 기본 BCE를 선택했다고 설명합니다.

이 학습 목표가 노드별 이상 점수와 직접 이어지는 것이 CoLA의 설계 논리입니다.

## 다회 샘플링 기반 이상 점수

이상 점수는 학습이 끝난 뒤 추론 단계에서 계산합니다. 각 대상 노드마다 R개의 양성 쌍과 R개의 음성 쌍을 샘플링하여 예측 점수를 얻습니다. 정상 노드에서는 양성 쌍의 점수가 1에 가깝고 음성 쌍의 점수가 0에 가까울 것이라는 이상적 조건을 가정합니다. 이상 노드는 모델이 패턴을 잘 맞히지 못해 두 점수가 0.5 근처로 덜 구별될 것이라고 논문은 설명합니다. 노드 이상 점수는 음성 점수에서 양성 점수를 뺀 차이를 R번에 걸쳐 평균한 값으로 정의됩니다. 한 번의 샘플링은 이웃 일부만 관찰하므로, 정상 이웃만 뽑히면 구조 이상이 가려질 수 있습니다. 다회 샘플링은 이 불완전한 관찰을 보완하기 위한 장치입니다.

실험에서 추론 단계의 샘플링 라운드 R은 256으로 설정되었습니다.

## AUC 기반 벤치마크 비교

논문은 BlogCatalog, Flickr, ACM, Cora, Citeseer, Pubmed, ogbn-arxiv의 일곱 데이터셋에서 AMEN, Radar, ANOMALOUS, DOMINANT, DGI와 AUC를 비교합니다. 실제 이상 라벨이 없으므로 구조 이상과 문맥 이상을 합성으로 주입했습니다. Cora에서 CoLA는 0.8779를, DOMINANT는 0.8155를 기록했습니다. Citeseer에서는 CoLA가 0.8968, DGI가 0.8293입니다. 대규모 ogbn-arxiv에서 CoLA는 0.8073을 기록했으며, Radar, ANOMALOUS, DOMINANT, DGI는 메모리 문제로 결과를 내지 못했습니다.

저자들은 이 차이를 지역 부분그래프 쌍 설계와 이상 탐지 목표를 맞춘 학습 방식으로 해석합니다. 이 결과는 합성 이상을 주입한 설정과 제시된 구현 조건에서 얻은 것이며, 실제 라벨이 붙은 이상 데이터에 대한 성능을 직접 보장하지는 않습니다.

## 절제 결과와 적용 범위

절제 실험에서 readout은 평균 풀링을 사용한 CoLA가 여섯 데이터셋 중 4개에서 최선이었고, Max Pooling과 Weighted Average Pooling은 일부 데이터셋에서 근접한 성능을 보였습니다. 점수 계산에서는 양성 쌍과 음성 쌍을 모두 합산한 전체 버전이 가장 안정적이었지만, 데이터셋 종류에 따라 한쪽 점수의 기여도가 다르게 나타났습니다. 점수 집계 방식으로는 평균이 가장 강건하게 보고되었고, 표준편차를 더하는 방식은 BlogCatalog와 Flickr에서 상관 방향이 인용 네트워크와 달랐습니다. 샘플링 라운드 R은 256 이후 성능 향상이 작아졌습니다. 메모리 독립성은 노드 수 n과 공간 복잡도의 관계로 분석되었으며, 실험 범위는 제시된 일곱 데이터셋과 합성 이상 주입 설정에 한정됩니다.

분산이나 최댓값 같은 다른 통계량 활용은 저자들이 향후 과제로 남긴 방향입니다.

![Figure 5: The experimental results for parameter study. The subﬁgure (a), (b) and (c) shows the impact of different sampling rounds, subgraph sizes and embeddi…](https://refivu.com/papers/c20bdbfe-b419-4df5-8f33-b1066c4f4576/figures/figure-b4e08189a78bbbc4167c66666f8dee5e.png?thumb=512)

**Fig. 5** . The experimental results for parameter study. The subﬁgure (a), (b) and (c) shows the impact of different sampling rounds, subgraph sizes and embedding dimension w.r.t. AUC values respectively.

[원문](https://arxiv.org/abs/2103.00113v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Yixin Liu, Zhao Li, Shirui Pan, Chen Gong, Chuan Zhou, George Karypis · Anomaly Detection on Attributed Networks via Contrastive Self-Supervised Learning · 원문 그림 인용 · 원본 PDF 12쪽에서 그림 영역을 추출했습니다.

## 논문 정보

- **저자**: Yixin Liu, Zhao Li, Shirui Pan, Chen Gong, Chuan Zhou, George Karypis
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2021년 2월 27일
- **등록일**: 2026년 11월 6일
- **수정일**: 2021년 5월 6일
- **버전**: v2
- **arXiv**: 2103.00113
- **DOI**: 10.1109/tnnls.2021.3068344
- **분류**: cs.LG
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2103.00113v2) · [원문 PDF ↗](https://arxiv.org/pdf/2103.00113v2)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

Anomaly detection on attributed networks attracts considerable research interests due to wide applications of attributed networks in modeling a wide range of complex systems. Recently, the deep learning-based anomaly detection methods have shown promising results over shallow approaches, especially on networks with high-dimensional attributes and complex structures. However, existing approaches, which employ graph autoencoder as their backbone, do not fully exploit the rich information of the network, resulting in suboptimal performance. Furthermore, these methods do not directly target anomaly detection in their learning objective and fail to scale to large networks due to the full graph training mechanism. To overcome these limitations, in this paper, we present a novel contrastive self-supervised learning framework for anomaly detection on attributed networks. Our framework fully exploits the local information from network data by sampling a novel type of contrastive instance pair, which can capture the relationship between each node and its neighboring substructure in an unsupervised way. Meanwhile, a well-designed graph neural network-based contrastive learning model is proposed to learn informative embedding from high-dimensional attributes and local structure and measure the agreement of each instance pairs with its outputted scores. The multi-round predicted scores by the contrastive learning model are further used to evaluate the abnormality of each node with statistical estimation. In this way, the learning model is trained by a specific anomaly detection-aware target. Furthermore, since the input of the graph neural network module is batches of instance pairs instead of the full network, our framework can adapt to large networks flexibly. Experimental results show that our proposed framework outperforms the state-of-the-art baseline methods on all seven benchmark datasets.

## 원문 인용

Yixin Liu, Zhao Li, Shirui Pan, Chen Gong, Chuan Zhou, George Karypis (2021). Anomaly Detection on Attributed Networks via Contrastive Self-Supervised Learning. arXiv:2103.00113v2. https://doi.org/10.1109/tnnls.2021.3068344

**BibTeX**

```
@article{liu2021anomaly,
  title = {{Anomaly Detection on Attributed Networks via Contrastive Self-Supervised Learning}},
  author = {Yixin Liu and Zhao Li and Shirui Pan and Chen Gong and Chuan Zhou and George Karypis},
  year = {2021},
  eprint = {2103.00113},
  archivePrefix = {arXiv},
  doi = {10.1109/tnnls.2021.3068344},
  url = {https://arxiv.org/abs/2103.00113v2}
}
```

## 이 논문의 용어

- [AUC](https://refivu.com/terms/017a335bbf0e-auc)
- [Cora](https://refivu.com/terms/46f85e717c38-cora)
- [GCN](https://refivu.com/terms/6be0326c6c22-gcn)
- [PubMed](https://refivu.com/terms/f968c0ba3e6c-pubmed)
- [Citeseer](https://refivu.com/terms/2ecb70be7c40-citeseer)
- [average pooling](https://refivu.com/terms/bb8b271e18a3-average-pooling)
- [ogbn-arxiv](https://refivu.com/terms/6e1a50467e64-ogbn-arxiv)
- [readout](https://refivu.com/terms/971611649410-readout)
- [BlogCatalog](https://refivu.com/terms/8a1839cb1f57-blogcatalog)
- [CoLA](https://refivu.com/terms/8381ed275c42-cola)
- [Flickr](https://refivu.com/terms/87065eb8080c-flickr)
- [DGI](https://refivu.com/terms/420d4b3e432f-dgi)
- [readout function](https://refivu.com/terms/91d9ddb52a39-readout-function)

## 다른 논문 해설

- [Graph Self-Supervised Learning: A Survey](https://refivu.com/papers/3b8a4279-c849-4f49-8e2f-9d1981c1e87d-graph-self-supervised-learning-a-survey.md)
- [Self-supervised Learning: Generative or Contrastive](https://refivu.com/papers/f29652bc-588e-4c10-accc-3c3ba6c23453-self-supervised-learning-generative-or-contrastive.md)
- [Visualizing and Understanding Contrastive Learning](https://refivu.com/papers/1c935acc-e6a1-4adf-b191-ce3d39858069-visualizing-and-understanding-contrastive-learning.md)
- [Learning Representations with Contrastive Self-Supervised Learning for Histopathology Applications](https://refivu.com/papers/34056d75-d0d7-4a13-a797-cabf81501cec-learning-representations-with-contrastive-self-supervised.md)
- [Cross-Modal Contrastive Learning of Representations for Navigation using Lightweight, Low-Cost Millimeter Wave Radar for Adverse Environmental Conditions](https://refivu.com/papers/5c56fa5a-3227-4a44-a609-9b42bb1290c2-cross-modal-contrastive-learning-of-representations-for.md)
- [Accurate Clinical Toxicity Prediction using Multi-task Deep Neural Nets and Contrastive Molecular Explanations](https://refivu.com/papers/cd601127-20d4-4092-be9b-9fbf722b973c-accurate-clinical-toxicity-prediction-using-multi-task-deep.md)
- [Multimodal Fusion Transformer for Remote Sensing Image Classification](https://refivu.com/papers/5115f05f-19f9-447c-ab75-0ba016db652e-multimodal-fusion-transformer-for-remote-sensing-image.md)
- [Machine Learning Advances for Time Series Forecasting](https://refivu.com/papers/b577b23e-c68c-4e83-81bd-b145dfbcd066-machine-learning-advances-for-time-series-forecasting.md)
- [BEHRT: Transformer for Electronic Health Records](https://refivu.com/papers/cadb146f-6d4d-4255-8058-89ac62ed2dc8-behrt-transformer-for-electronic-health-records.md)
- [A review of ensemble learning and data augmentation models for class imbalanced problems: combination, implementation and evaluation](https://refivu.com/papers/4ac33ac8-dbb4-4221-91b4-b7ce10be936d-a-review-of-ensemble-learning-and-data-augmentation.md)
- [Spatio-Temporal Graph Neural Networks for Predictive Learning in Urban Computing: A Survey](https://refivu.com/papers/94c424e3-5876-43b1-91cd-0fb89356f95a-spatio-temporal-graph-neural-networks-for-predictive.md)
- [PredRNN: A Recurrent Neural Network for Spatiotemporal Predictive Learning](https://refivu.com/papers/c0da3abd-5c1e-4383-ae59-22d04fe3eb7d-predrnn-a-recurrent-neural-network-for-spatiotemporal.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/c20bdbfe-b419-4df5-8f33-b1066c4f4576-anomaly-detection-on-attributed-networks-via-contrastive)
