NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Preference-driven Knowledge Distillation for Few-shot Node Classification

Xing Wei, Chunchun Chen, Rui Fan, Xiaofeng Cao, Sourav Medya, Wei Ye

TL;DR

The Preference-driven Knowledge Distillation (PKD) framework bridges the gap between the deep reasoning of Large Language Models (LLMs) and the structural efficiency of Graph Neural Networks (GNNs). By using an LLM to label the most "confusing" nodes and then acting as an intelligent router to assign each node to the most suitable GNN architecture, PKD achieves state-of-the-art performance in few-shot node classification—often outperforming models that have access to significantly more data.

The Challenge: Label-Hungry GNNs vs. Expensive LLMs

In the world of Text-Attributed Graphs (TAGs)—such as citation networks or product recommendation maps—researchers face a classic trade-off. Graph Neural Networks (GNNs) are incredibly efficient at processing structural data but are "label-hungry," requiring massive amounts of human-annotated data to perform well. On the other hand, Large Language Models (LLMs) are brilliant at "few-shot" reasoning (learning from just a few examples) but are too computationally expensive to run on massive graphs.

Furthermore, real-world graphs are messy. Some neighborhoods are "homophilous" (nodes are similar to their neighbors), while others are "heterophilous" (nodes are different). A single GNN architecture rarely handles both well. The authors tackle two main questions:

  1. How can we use an LLM to provide the most helpful labels for a GNN?
  2. How can we ensure each node is processed by the GNN architecture best suited to its specific local neighborhood?

Methods: The PKD Framework

The authors introduce PKD, a framework that treats the LLM as both a high-quality annotator and a strategic decision-maker.

Architecture of the Preference-driven Knowledge Distillation (PKD) framework

The process follows three main stages:

  1. Graph Topology Aware (GTA) Fine-tuning: Before doing anything else, the authors fine-tune the LLM on basic graph tasks like detecting connectivity, node degrees, and cycles. This ensures the LLM actually "understands" graph structure rather than just reading text.
  2. GNN-preference-driven Node Selector (GNS): Instead of picking nodes to label at random, PKD uses a metric called K-uncertainty. It looks at where different GNN architectures (like GCN or GAT) disagree most. If the GNNs are "confused," the system asks the fine-tuned LLM to provide a high-quality label for that node.
  3. Node-preference-driven GNN Selector (NGS): This acts as a "smart router." Using Reinforcement Learning (RL), the fine-tuned LLM learns to look at a node’s text and its local structure to decide which "teacher" GNN is best suited to process it.

Finally, the knowledge is distilled into a single, efficient "student" GNN that can be used for lightning-fast inference.

Key Insights

  • LLMs as "Meta-Teachers": The most striking idea is that the LLM isn't just a labeler; it's a strategist. By training the LLM to select the best GNN architecture for a specific node, the authors move away from the "one-size-fits-all" approach of traditional graph learning.
  • K-Uncertainty vs. Random Selection: The paper proves that labeling nodes where GNN architectures disagree provides a much stronger training signal than random sampling. It’s essentially "Active Learning" powered by the collective disagreement of multiple models.
  • Structural Literacy Matters: Standard LLMs are surprisingly bad at understanding graph topology out of the box. The GTA fine-tuning step was essential to make the LLM a competent "graph expert."

Datasets and Key Results

The framework was evaluated on nine real-world TAG datasets covering webpages (Cornell, Washington, Texas, Wisconsin), e-commerce (Amazon Ratings), citations (OGBN-Arxiv, PubMed, Cora), and knowledge bases (Wiki CS). These datasets test the model's ability to handle both homophily and heterophily.

The results are highly impressive, particularly in "few-shot" settings where only 1, 3, or 5 labels per class are available.

Performance comparison of PKD against baseline methods across various datasets
  • Superior Accuracy: On the Cora dataset, PKD achieved 91.14% accuracy with only 5 labels per class. For context, many advanced GNNs struggle to reach this even with much more data.
  • Beating the "Big" Models: PKD often outperformed state-of-the-art methods (like GAugLLM or AGST) that used up to 48% of the total labels for training, despite PKD using only a tiny fraction.
  • Better Representations: The authors note that PKD creates much tighter, more distinct clusters in the embedding space compared to other distillation methods, which often result in "bleeding" between classes.

Limitations and Future Work

While PKD is powerful, it comes with trade-offs:

  • Training Overhead: The involvement of an LLM and an RL loop makes the initial training phase significantly slower and more resource-intensive than training a standard GNN.
  • TAG Specificity: The framework is currently optimized for text-attributed graphs. Its performance on graphs with purely numerical or categorical features remains an open question.
  • Scalability: While inference is fast (because it relies on the student GNN), scaling the training process to truly massive graphs (billions of edges) will require more efficient synergizing mechanisms.

Future work is expected to focus on making the LLM-GNN synergy more efficient and exploring how this "preference-driven" approach might apply to other domains like molecular modeling or social network analysis.

Summary updated

BibTeX
@inproceedings{wei2025preference,
  author = {Xing Wei and Chunchun Chen and Rui Fan and Xiaofeng Cao and Sourav Medya and Wei Ye},
  title = {{Preference-driven Knowledge Distillation for Few-shot Node Classification}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=60I6TzuHOb},
}
Figure