sec-gfd-eval
Revisiting Graph-Based Fraud Detection in Sight of Heterophily and Spectrum — Fan Xu et al. (2023) (arXiv:2312.06441, 2023)
What this evaluates
Evaluates graph neural networks for fraud detection on real-world transaction and review graphs. It specifically probes a model's robustness to severe class imbalance and heterophily, where connected nodes often belong to different classes.
Datasets
Metrics
F1-macro (primary) — range: [0, 100] percent
- Weighted average of F1 scores across all classes (fraud and normal). Reported as a percentage.
AUC (primary) — range: [0, 100] percent
- Area under the Receiver Operating Characteristic (ROC) curve, measuring the trade-off between true positive and false positive rates. Reported as a percentage.
Input / output format
Input: Graph-structured data containing node features, adjacency matrix, and binary node labels (normal vs. fraudulent).
Output: Binary classification label or anomaly score for each node.
Scoring recipe
def compute_metrics(y_true, y_pred):
f1_macro = f1_score(y_true, y_pred, average='macro') * 100
auc = roc_auc_score(y_true, y_pred) * 100
return f1_macro, auc
Common pitfalls
- The train/val/test split ratio is fixed at 0.4/0.2/0.4, which differs from the standard 0.6/0.2/0.2 used in many node classification benchmarks.
- Datasets are highly imbalanced (3–14% anomalies), making accuracy an unreliable metric; F1-macro and AUC must be used.
- Heterophily is prevalent, meaning standard low-pass GNNs (e.g., GCN) are expected to underperform compared to band-pass or high-pass variants.
Evidence (verbatim from paper)
As graph anomaly detection poses a class-imbalanced classification problem, this paper utilizes two widely adopted metrics: F1-macro and AUC. F1-macro considers the weighted average of F1 scores across multiple classes, and AUC is the area under the ROC Curve.
Citation
@misc{xu2023revisiting,
title={Revisiting Graph-Based Fraud Detection in Sight of Heterophily and Spectrum},
author={Fan Xu et al. (2023)},
year={2023},
note={arXiv:2312.06441}
}
1---2name: sec-gfd-eval3description: Evaluates graph neural networks for fraud detection on real-world transaction and review graphs. It specifically probes a model's robustness to severe class imbalance and heterophily, where connected nodes often belong to different classes. Use when the user wants to benchmark on Amazon, YelpChi, T-Finance, T-Social, or asks about evaluating this task. Reports F1-macro, AUC.4metadata:5 source: https://skillmd.com/skills/qhjqhj00/sec-gfd-eval6 skill_kind: dataset_eval7 source_arxiv: 2312.064418 bibtex_key: xu2023revisiting9 confidence: high10---1112# sec-gfd-eval1314> Revisiting Graph-Based Fraud Detection in Sight of Heterophily and Spectrum — Fan Xu et al. (2023) (arXiv:2312.06441, 2023)1516## What this evaluates1718Evaluates graph neural networks for fraud detection on real-world transaction and review graphs. It specifically probes a model's robustness to severe class imbalance and heterophily, where connected nodes often belong to different classes.1920## Datasets2122- **Amazon** — total 11944; splits: train (-1), val (-1), test (-1); repo https://github.com/Sunxkissed/SEC-GFD23- **YelpChi** — total 45954; splits: train (-1), val (-1), test (-1); repo https://github.com/Sunxkissed/SEC-GFD24- **T-Finance** — total 39357; splits: train (-1), val (-1), test (-1); repo https://github.com/Sunxkissed/SEC-GFD25- **T-Social** — total 5781065; splits: train (-1), val (-1), test (-1); repo https://github.com/Sunxkissed/SEC-GFD2627## Metrics2829- `F1-macro` **(primary)** — range: [0, 100] percent30 - Weighted average of F1 scores across all classes (fraud and normal). Reported as a percentage.31- `AUC` **(primary)** — range: [0, 100] percent32 - Area under the Receiver Operating Characteristic (ROC) curve, measuring the trade-off between true positive and false positive rates. Reported as a percentage.3334## Input / output format3536**Input**: Graph-structured data containing node features, adjacency matrix, and binary node labels (normal vs. fraudulent).3738**Output**: Binary classification label or anomaly score for each node.3940## Scoring recipe4142```python43def compute_metrics(y_true, y_pred):44 f1_macro = f1_score(y_true, y_pred, average='macro') * 10045 auc = roc_auc_score(y_true, y_pred) * 10046 return f1_macro, auc47```4849## Common pitfalls5051- The train/val/test split ratio is fixed at 0.4/0.2/0.4, which differs from the standard 0.6/0.2/0.2 used in many node classification benchmarks.52- Datasets are highly imbalanced (3–14% anomalies), making accuracy an unreliable metric; F1-macro and AUC must be used.53- Heterophily is prevalent, meaning standard low-pass GNNs (e.g., GCN) are expected to underperform compared to band-pass or high-pass variants.5455## Evidence (verbatim from paper)5657> As graph anomaly detection poses a class-imbalanced classification problem, this paper utilizes two widely adopted metrics: F1-macro and AUC. F1-macro considers the weighted average of F1 scores across multiple classes, and AUC is the area under the ROC Curve.5859## Citation6061```bibtex62@misc{xu2023revisiting,63 title={Revisiting Graph-Based Fraud Detection in Sight of Heterophily and Spectrum},64 author={Fan Xu et al. (2023)},65 year={2023},66 note={arXiv:2312.06441}67}68```6970- arXiv: 2312.06441