ICML 2025

Learnable Kernel Density Estimation for Graphs

Xudong Wang, Ziheng Sun, Chris Ding, Jicong Fan

Main figure for Learnable Kernel Density Estimation for Graphs

Abstract

This work proposes a framework LGKDE that learns kernel density estimation for graphs. The key challenge in graph density estimation lies in effectively capturing both structural patterns and semantic variations while maintaining theoretical guarantees. Combining graph kernels and kernel density estimation (KDE) is a standard approach to graph density estimation, but has unsatisfactory performance due to the handcrafted and fixed features of kernels. Our method LGKDE leverages graph neural networks to represent each graph as a discrete distribution and utilizes maximum mean discrepancy to learn the graph metric for multi-scale KDE, where all parameters are learned by maximizing the density of graphs relative to the density of their well-designed perturbed counterparts. The perturbations are conducted on both node features and graph spectra, which helps better characterize the boundary of normal density regions. Theoretically, we establish consistency and convergence guarantees for LGKDE, including bounds on the mean integrated squared error, robustness, and generalization. We validate LGKDE by demonstrating its effectiveness in recovering the underlying density of synthetic graph distributions and applying it to graph anomaly detection across diverse benchmark datasets. Extensive empirical evaluation shows that LGKDE demonstrates superior performance compared to state-of-the-art baselines on most benchmark datasets.

Proposed method: LGKDE

Benchmark Results

Tested on 2 datasets Non-standard metric on 2 datasets

Tables show presented results in global context (best 3 papers + GCN + MLP).

TU Dortmund

NCI1

Global leaderboard →
Non-default metric. This paper reports AUROC; the dataset default is Accuracy. Values below use AUROC only.

Sorted by AUROC. Highlighted rows are from other papers.

#ModelAUROC ↑Paper
1
LGKDE
0.7667 ±0.0030
This paper
2
OCGTL
0.7575 ±0.0047
This paper
3
MUSE
0.7445 ±0.0026
This paper
4
SIGNET
0.7432 ±0.0034
This paper
5
Uniform
0.7293 ±0.0031
This paper
6
CVTGAD
0.6913 ±0.0058
This paper
7
GLADC
0.6832 ±0.0022
This paper

COLLAB

Global leaderboard →
Non-default metric. This paper reports AUROC; the dataset default is Accuracy. Values below use AUROC only.

Sorted by AUROC. Highlighted rows are from other papers.

#ModelAUROC ↑Paper
1
SIGNET
0.7245 ±0.0011
This paper
2
CVTGAD
0.7101 ±0.0058
This paper
3
LGKDE
0.6794 ±0.0041
This paper
4
MUSE
0.6748 ±0.0036
This paper
5
Uniform
0.6623 ±0.0038
This paper
6
OCGIN
0.6058 ±0.0027
This paper
7
WL-SVM
0.5462 ±0.0128
This paper
8
GLADC
0.5432 ±0.0037
This paper
9
GlocalKD
0.5185 ±0.0018
This paper
10
WL-iF
0.5141 ±0.0039
This paper
11
PK-iF
0.5138 ±0.0020
This paper
12
PK-SVM
0.4972 ±0.0060
This paper
13
OCGTL
0.4813 ±0.0041
This paper
SOTA performance (not significantly different from the best) Proposed method (this paper) Baseline / comparison (this paper)