Semantic Refinement with LLMs for Graph Representations
Safal Thapaliya, Zehong Wang, Jiazheng Li, Ziming Li, Yanfang Ye, Chuxu Zhang
TL;DR
This work addresses the challenge of structure-semantics heterogeneity in graphs by shifting adaptation from the model to the data: node semantics are treated as task-adaptive variables refined in a closed loop with a fixed GNN and a large language model. The Data-Adaptive Semantic Refinement (DAS) framework uses a memory-augmented process to retrieve in-graph exemplars and guide LLM-based semantic refinement, which is then fed back to update the GNN input representations. Across text-attributed and text-free graphs, DAS yields consistent gains on structure-dominated domains while remaining competitive on semantics-rich graphs, and demonstrates improved transfer performance in domain adaptation settings. Theoretical grounding via a Majorization-Minimization interpretation explains why the iterative refinement improves alignment with the target structure-semantics regime, while mechanism analyses highlight the importance of joint semantic–structural exemplar retrieval and memory. Overall, the paper proposes a novel data-centric paradigm for graph learning, emphasizing adaptive input representations rather than fixed architectural biases.
Abstract
Graph-structured data exhibit substantial heterogeneity in where their predictive signals originate: in some domains, node-level semantics dominate, while in others, structural patterns play a central role. This structure-semantics heterogeneity implies that no graph learning model with a fixed inductive bias can generalize optimally across diverse graph domains. However, most existing methods address this challenge from the model side by incrementally injecting new inductive biases, which remains fundamentally limited given the open-ended diversity of real-world graphs. In this work, we take a data-centric perspective and treat node semantics as a task-adaptive variable. We propose a Data-Adaptive Semantic Refinement framework DAS for graph representation learning, which couples a fixed graph neural network (GNN) and a large language model (LLM) in a closed feedback loop. The GNN provides implicit supervisory signals to guide the semantic refinement of LLM, and the refined semantics are fed back to update the same graph learner. We evaluate our approach on both text-rich and text-free graphs. Results show consistent improvements on structure-dominated graphs while remaining competitive on semantics-rich graphs, demonstrating the effectiveness of data-centric semantic adaptation under structure-semantics heterogeneity.
