H$^2$GFM: Towards unifying Homogeneity and Heterogeneity on Text-Attributed Graphs

Trung-Kien Nguyen, Heng Ping, Shixuan Li, Peiyu Zhang, Nikos Kanakaris +2 more
6/10/2025
cs.LGcs.SI

No confident code implementation found for this paper.

Abstract

The growing interests and applications of graph learning in diverse domains have propelled the development of a unified model generalizing well across different graphs and tasks, known as the Graph Foundation Model (GFM). Existing research has leveraged text-attributed graphs (TAGs) to tackle the heterogeneity in node features among graphs.

Show full abstract

However, they primarily focus on homogeneous TAGs (HoTAGs), leaving heterogeneous TAGs (HeTAGs), where multiple types of nodes/edges reside, underexplored. To enhance the capabilities and applications of GFM, we introduce H$^2$GFM, a novel framework designed to generalize across both HoTAGs and HeTAGs. Our model projects diverse meta-relations among graphs under a unified textual space, and employs a context encoding to capture spatial and higher-order semantic relationships. To achieve robust node representations, we propose a novel context-adaptive graph transformer (CGT), effectively capturing information from both context neighbors and their relationships. Furthermore, we employ a mixture of CGT experts to capture the heterogeneity in structural patterns among graph types. Comprehensive experiments on a wide range of HoTAGs and HeTAGs as well as learning scenarios demonstrate the effectiveness of our model.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{nguyen2025hgfm,
  title  = {H$^2$GFM: Towards unifying Homogeneity and Heterogeneity on Text-Attributed Graphs},
  author = {Trung-Kien Nguyen and Heng Ping and Shixuan Li and Peiyu Zhang and Nikos Kanakaris and Nicholas Kotov and Paul Bogdan},
  year   = {2025},
  eprint = {2506.08298},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.08298v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.08298.svg)](https://codeofpaper.com/paper/2506.08298)

Discussion