arXiv:2610.07778cs.LGOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.07778

Towards One-for-All Foundation Model for Attributed Graph Clustering

Yunhui Liu, Xudong Jin, Kang Zhang, Danshuo An, Yu Xing, Te Song, Jia Liu, Tieke He

Yunhui Liu

State Key Laboratory for Novel

Software Technology

Nanjing University

Nanjing, China

lyhcloudy1225@gmail.com

Te Song

State Key Laboratory for Novel

Software Technology

Nanjing University

Nanjing, China

Xudong Jin

Kang Zhang

State Key Laboratory for Novel

Software Technology

Nanjing University

Nanjing, China

Jia Liu

State Key Laboratory for Novel

Software Technology

Nanjing University

Nanjing, China

Danshuo An

Yu Xing

State Key Laboratory for Novel

Software Technology

Nanjing University

Nanjing, China

Tieke He

State Key Laboratory for Novel

Software Technology

Nanjing University

Nanjing, China

hetieke@gmail.com

Abstract

Attributed graph clustering aims to discover node groups by jointly exploiting node attributes and graph topology, yet its unsupervised nature makes model selection and adaptation inherently difficult. Existing methods typically train and tune a separate model for each input graph, leading to costly and fragile pipelines that often fail to transfer across graphs with different feature spaces, structural patterns, and attribute-structure correlations. In this paper, we study a one-for-all alternative: can a single model be trained once and directly applied to diverse attributed graphs without graph-specific training, fine-tuning, or hyperparameter search? We propose OFAG, a foundation model for attributed graph clustering. Building upon Prior-data Fitted Networks, OFAG learns a reusable clustering inference strategy from synthetic attributed graphs generated under broad priors over latent clusters, node attributes, and graph structures. To handle incompatible feature spaces across graphs, OFAG adopts a dimension-agnostic signal-wise graph encoder that treats each feature channel as a graph signal and models its response to shared graph filters. The model is trained with a hyperspherical clustering objective, producing clustering-friendly node representations in a single forward pass at inference time. On ten datasets, one frozen OFAG model achieves the best mean performance and average rank across NMI, ACC, ARI, and F1, while completing all ten datasets in 12.43 minutes total—over 6× faster than the second-fastest baseline and nearly 28× faster than the second-best on clustering quality. Our code and pretrained checkpoint are available at https://github.com/Cloudy1225/OFAG, allowing practitioners to directly apply OFAG to their own attributed graph datasets without additional training or tuning.

CCS Concepts

• Computing methodologies → Cluster analysis.

ACM Reference Format:

Yunhui Liu, Xudong Jin, Kang Zhang, Danshuo An, Yu Xing, Te Song, Jia Liu, and Tieke He. 2018. Towards One-for-All Foundation Model for Attributed Graph Clustering. In Proceedings of Make sure to enter the correct conference title from your rights confirmation email (Conference acronym 'XX). ACM, New York, NY, USA, 18 pages. https://doi.org/XXXXXXX.XXXXXXX