LLM–GNN Co-Teaching for Few-Shot Graph Learning

Zhuoyi Peng, Hanlin Gu, Lixin Fan, Yi YangNeurIPS 2026

TL;DR

When classifying nodes in real-world networks with almost no labeled data, Graph Neural Networks (GNNs) and Large Language Models (LLMs) both stumble—just in completely different places. Instead of treating one flawed model as an infallible "golden teacher" for the other, this paper introduces a peer-to-peer co-teaching loop where both models iteratively trade their most confident guesses and learn from their own evolving mistakes. The result is a system that bootstraps itself to state-of-the-art accuracy without needing extra human labels or external reward models.

What Problem Does This Paper Address?

Much of the digital world—scientific citation networks, social media, e-commerce catalogs—lives on text-attributed graphs (TAGs), where data points contain raw text and links to neighbors. Usually, only a tiny fraction of these nodes are labeled (the "few-shot" regime).

Under sparse supervision, neither GNNs nor LLMs can solve the puzzle alone:

  • GNNs rely on network topology, meaning they fail on "cold," isolated nodes with few connections.
  • LLMs read text, meaning they get tripped up when descriptions are short or class-ambiguous.

To get the best of both worlds, existing pipelines rely on what the authors call the golden-teacher assumption: freeze one model as an authoritative teacher and force the other to imitate its features or pseudo-labels. Under few-shot conditions, this breaks down. Neither model is reliable enough to be "golden," so unidirectional teaching simply copies the teacher's blind spots into the student with no way to revise bad advice. The authors ask: can two weak models teach each other without putting either on a pedestal?

Methods

The authors propose LLM–GNN Co-Teaching, an iterative, multi-round framework built on two core mechanisms:

  1. Heterogeneous Small-Loss Exchange: Classical co-teaching trains two identical networks initialized with different random weights—a fragile setup because their errors quickly converge. Here, the authors pair two different architectures (GNN and LLM). Every round, both models predict labels on an unlabeled batch and filter for their highest-certainty answers using architecture-specific "small-loss" criteria: cross-entropy fit for the GNN, and minimum token log-probability (making sure the model didn't hesitate on any word) for the LLM. They swap these high-confidence pseudo-labels and fine-tune from the previous round's checkpoint, slowly expanding the fraction of exchanged data as both get smarter.
  2. Round-based Pseudo-Label Preference Optimization (RPL-PO): Standard preference alignment (like DPO) usually needs human feedback or an external judge. Instead, the authors mine preference signals from time. Every two rounds on the same data batch, they look for nodes where the LLM and GNN initially contradicted each other, and then—after a round of co-teaching—the LLM changed its mind to agree with the updated GNN.
Figure 1: Co-teaching without a golden teacher. A single round between two weak models leaves them contradicting on node v, with no way to choose which should serve as the golden teacher (left). After one more round of bidirectional co-teaching, both models evolve, and if they now agree on B, the LLM’s Rt contradicting answer C and Rt+1 peer-endorsed answer B together form a preference pair: the earlier self is rejected, the peer-endorsed self is preferred (right). The reward signal comes from the trajectory itself. No golden teacher, no human label, no reward model, no external judge.

This transition represents a peer-endorsed self-correction. The LLM's new, agreed-upon answer is marked as chosen, its earlier contradicting answer is rejected, and the pair is fed directly into Direct Preference Optimization (DPO) to make the correction stick.

Datasets

No new datasets are introduced, though the authors expand standard few-shot evaluation suites. They test on six established TAG benchmarks (evaluating 3-, 5-, and 10-shot budgets per class):

  • Citation networks: Cora, Citeseer, PubMed, and the 40-class ogbn-arxiv.
  • Web & E-commerce: WikiCS (Wikipedia hyperlinks—newly evaluated here against recent LLM-graph baselines) and an Amazon co-purchase subset (ogbn-products).
  • (Note: Additional evaluations on STRING-db and amazon-ratings are referenced as being in the appendices).

Key Insights and Ideas

  • Complementary blind spots beat random seeds: Error-density analysis proves why pairing a GNN with an LLM works so well. On ogbn-arxiv, an untrained LLM's error rate is flat (~0.50) regardless of how many connections a node has, whereas the GNN's error rate spikes to 0.85 on degree-1 nodes. Because one is strong precisely where the other is blind, they don't collapse into an echo chamber of shared mistakes.
  • Your past self is free training data: Single-round pipelines throw away the learning trajectory. By contrasting an LLM's current peer-endorsed self against its past contradicting self, RPL-PO extracts rich alignment supervision out of thin air.
  • Confidence beats consensus: In ablations, selecting pseudo-labels based on individual model confidence outperformed simply keeping nodes where the GNN and LLM agreed—showing that letting an expert speak up when its peer is confused is vital for growth.

Key Results

LLM–GNN Co-Teaching wins across the board on all six benchmarks across 3-, 5-, and 10-shot settings:

Table 1: Node classification accuracy (%) on six benchmarks under 3/5/10-shot settings. Bold: best. Our result is selected by the validation set at each shot budget. GAJ denotes GNN-as-Judge; its multi-round variant matches the LLM update-round budget.
  • Few-shot leaps: Under 3-shot supervision, it beats the strongest prior method (GNN-as-Judge) by an average of 5.00%, including massive absolute accuracy jumps of +7.57% on Cora (reaching 85.46%) and +6.99% on ogbn-arxiv (reaching 69.20%). It also outperforms multi-round control baselines given the exact same update budget.
  • Fixing cold nodes: Error analysis on ogbn-arxiv shows co-teaching roughly halves the GNN's error-density peak on low-degree nodes while driving overall LLM error down from 0.51 (no teaching) and 0.38 (GNN-as-Judge) to 0.29.
  • Zero-shot transfer: Because the LLM outputs text rather than fixed classification logits, a model co-taught only on ogbn-arxiv transfers zero-shot to unseen datasets, hitting 85.03% on PubMed and 58.95% on Citeseer without a single target-domain update.

Limitations and Future Work

  • Limitations: Specific limitations and computational runtime trade-offs are deferred to Appendix A (which is not included in the main text).
  • Future Work: The authors suggest extending this bidirectional, teacher-free co-teaching paradigm beyond node classification to other domains and tasks where GNNs and LLMs offer complementary structural and semantic views of the same data.

Summary updated

Abstract

Text-attributed graphs (TAGs) underlie real-world applications such as citation networks, social media, and e-commerce. Few-shot graph learning on TAGs is hard: with only a handful of labels per class and the rest of the graph unannotated, neither GNNs nor LLMs can learn well on their own. GNNs read topology and fail on cold nodes; LLMs read text and fail on text-ambiguous nodes. Existing LLM-GNN methods all follow the same recipe: designate one model as the golden teacher and use its outputs (e.g., features or pseudo-labels) to supervise the other. We argue this golden-teacher assumption breaks under sparse supervision: neither model is golden, and treating either as such transfers its blind spots into the student. We therefore ask: can we avoid designating either model as the golden teacher, and still perform effective graph learning? We answer with LLM-GNN Co-Teaching, a bidirectional co-teaching framework in which neither model is fixed as teacher. The GNN and LLM exchange their most confident pseudo-labels under an architecture-specific small-loss criterion, and both update every round. Supervision is then mined from the trajectory: whenever a node moves from cross-model contradiction at round \(t\) to cross-model agreement at round \(t+1\), the LLM's two answers on the same input form a preference pair for DPO training. We call this Round-based Pseudo-Label Preference Optimization (RPL-PO). On six benchmarks, LLM-GNN Co-Teaching consistently outperforms GNN-as-Judge and all prior methods; improvements carry over to 5-shot and to zero-shot cross-dataset transfer. Error-structure analysis further shows that abandoning the golden-teacher assumption substantially improves the LLM's graph learning capability on challenging samples.
BibTeX
@inproceedings{peng2026llmgnn,
  author = {Zhuoyi Peng and Hanlin Gu and Lixin Fan and Yi Yang},
  title = {{LLM–GNN Co-Teaching for Few-Shot Graph Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=iq83tsXsBG},
}
Figure