Executive Summary
GLANCE is a novel framework that intelligently decides when a Graph Neural Network (GNN) needs help from a Large Language Model (LLM) to classify nodes in a graph. By using a lightweight router to selectively query the LLM only for "hard" nodes—specifically those in heterophilous neighborhoods—GLANCE achieves state-of-the-art accuracy while remaining scalable enough for massive real-world datasets.
The Challenge: Heterophily in Text-Attributed Graphs
In the world of Text-Attributed Graphs (TAGs)—such as citation networks where nodes are papers and edges are citations—researchers usually face a distinct trade-off. GNNs are fast and highly effective at capturing graph structure, but they struggle significantly when a node's neighbors are fundamentally different from itself (a property known as heterophily). LLMs, on the other hand, possess incredible semantic reasoning capabilities but are computationally expensive and can easily get "distracted" by complex graph structures when text is serialized.
Current "hybrid" systems usually apply a one-size-fits-all approach, utilizing the LLM for every single node in the graph. This is not only a waste of money and compute for "easy" nodes that the GNN handles perfectly well on its own, but it can actually degrade overall performance on those nodes. The authors ask a critical question: How, and for which specific nodes, should we leverage LLMs to complement GNNs?
Introducing GLANCE: Adaptive GNN-LLM Routing
The authors introduce GLANCE (GNN with LLM Assistance for Neighbor- and Context-aware Embeddings). The framework operates in three main steps:
- Routing Feature Generation: For every node, GLANCE calculates inexpensive signals: GNN embeddings, node degree, prediction uncertainty, and a "soft" estimate of local homophily (how similar a node is to its immediate neighbors).
- The Lightweight Router: A small, trainable module takes these signals and decides whether to "glance" at the LLM. To keep computational costs predictable, it uses a top-k strategy, routing only the $k$ most "difficult" nodes in a given batch to the LLM.
- Refinement: For the routed nodes, an LLM (specifically Qwen-8B) processes the node's text along with its 1-hop and 2-hop neighborhood context to create a rich, context-aware embedding. A small "refiner" MLP then fuses this LLM data with the original GNN data to make a final prediction.
Because LLM calls are non-differentiable (you cannot easily backpropagate through them), the router is trained using an advantage-based objective. It essentially learns by comparing the "reward" (reduced loss) of using the LLM versus sticking with the GNN alone.
Experimental Setup
The researchers evaluated GLANCE across a diverse set of benchmarks to ensure robustness:
- Small/Medium Scale: Cora, Pubmed, and Arxiv23.
- Large Scale: Arxiv-Year (~169k nodes) and OGB-Products (~2.4 million nodes).
These datasets vary significantly in their baseline levels of homophily, providing a rigorous test for the router's ability to adapt to different graph "textures."
Core Insights: Homophily as the Guiding Signal
- Homophily is the Magic Signal: The paper's most significant insight is that local homophily is the strongest predictor of whether an LLM will actually help. GNNs excel in "echo chambers" where everyone is similar; LLMs shine when the GNN gets confused by diverse, heterophilous neighbors.
- More LLM is Not Always Better: Indiscriminately using an LLM for every node can actually hurt accuracy on "easy" nodes. The LLM might introduce unnecessary complexity or "hallucinate" relationships that the GNN's structural bias correctly ignores.
- Efficiency is Scalability: By only querying the LLM for roughly 1.6% to 20% of nodes, GLANCE can run on massive datasets like OGB-Products that would be prohibitively expensive for traditional, exhaustive GNN-LLM hybrids.
Performance and Efficiency Gains
GLANCE consistently outperformed state-of-the-art baselines while using a mere fraction of the LLM compute:
- Accuracy Gains: It achieved up to a +13% improvement on heterophilous nodes (the "hard" ones) compared to standard GNNs.
- Balanced Performance: Across all datasets, GLANCE maintained the best "average rank," meaning it didn't just win on one specific metric but provided the most robust performance across all types of nodes.
- Computational Efficiency: On large-scale graphs, GLANCE achieved top-tier results with a very low query rate, proving that "smart" routing is the key to making LLMs practical for real-world graph learning.
Future Directions
While GLANCE is a major step forward, the authors note a few areas for future growth:
- Dynamic Budgets: The current top-k strategy uses a fixed budget per batch. A more flexible approach that dynamically adjusts the budget based on the specific graph's difficulty could yield even greater efficiency.
- Prompt Engineering: The LLM prompts are currently standardized. Tailoring prompts to specific domains (e.g., medical vs. legal graphs) could further boost the "refinement" step.
- Backbone Dependency: GLANCE relies on a pre-trained GNN. If the initial GNN is extremely poor, the signals sent to the router might be less reliable.
In summary, GLANCE proves that in the marriage of GNNs and LLMs, the secret to success isn't doing everything together—it's knowing exactly when to ask for help.
Summary updated