TAM
A GCN encoder trained without labels so that nodes with weak affinity to their neighbors stand out as anomalies.
Graphs and geometry · 10 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Graphs and geometry
- Parameters
- 105.1K
- Operations
- 10
- Framework
- PyTorch
- Recurrent
- No
- Published
- NeurIPS 2023
- Cited by
- 4 (as of 30 October 2026)
- Authors
- Hezhe Qiao, Guansong Pang
- Source
- GitHub: mala-lab/TAM-master
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m20722
- Graph hash
- 14f48d245c3fbc818b5a2a7a912c16b3945dd0e6a9317ab9ca3e58bd0bddd388
- Skeleton hash
- 3517753049d2737a32d91b25403e0fb6114793bd2cf27c36f83dfa3439913e5a
- Architecture hash
- 651c8b4ee8789ffa25b6950ebecbc0a8b83cf0f2a83183de02612cb8b2c5021f
- Diagram SHA-256
- c7cb086e6924213b80b2e9412852b9acc373fe752592d2a4953b7da6a2038829
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
TAM (Truncated Affinity Maximization) is an unsupervised method for graph anomaly detection, the task of finding abnormal nodes that differ from the majority of the nodes in a graph. It starts from a property the authors call one-class homophily: normal nodes tend to have strong affinity with each other, while homophily among abnormal nodes is much weaker. The anomaly score follows from that property: a node that is less affiliated with its neighbors gets a larger score, with affinity measured as similarity of node attributes or representations.
TAM then learns node representations suited to this score by maximizing each node's local affinity to its neighbors. Edges that connect normal and abnormal nodes can bias that optimization, so TAM is trained on truncated graphs from which those edges are removed iteratively. The truncation step, called NSGT, removes an edge with a probability proportional to the distance between the two nodes it connects. Because the truncation is random, the authors train an ensemble of TAM models. In the released code each network, which the paper calls a LAMNet, is a two-layer GCN.
The paper reports experiments on 10 real-world graph anomaly detection datasets, where TAM outperformed seven competing models and gained over 10% in AUROC/AUPRC over the best of them on challenging datasets.
Key idea. The paper introduces local node affinity as an unsupervised anomaly score and trains graph networks to maximize it on graphs whose non-homophily edges are removed iteratively.
- TAM
- Truncated Affinity Maximization
- graph anomaly detection
- GAD
- one-class homophily
- local node affinity
- LAMNet
- NSGT
- unsupervised anomaly detection
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{qiao2024truncatedaffinitymaximizationoneclass,
title={Truncated Affinity Maximization: One-class Homophily Modeling for Graph Anomaly Detection},
author={Hezhe Qiao and Guansong Pang},
year={2024},
eprint={2306.00006},
archivePrefix={arXiv},
primaryClass={cs.SI},
url={https://arxiv.org/abs/2306.00006},
}