TRN-R1-Zero: Text-rich Network Reasoning via LLMs with Reinforcement Learning Only

Yilun Liu, Ruihong Qiu, Zi Huang

TL;DR

TRN-R1-Zero is a new framework that teaches Large Language Models (LLMs) to reason over text-rich networks (like citation or social graphs) using reinforcement learning only. By ditching supervised fine-tuning and distillation from larger models, it achieves state-of-the-art zero-shot performance across diverse domains using a clever "margin gain" reward system that forces the model to pay attention to graph structure.

What Problem Does This Paper Address?

Text-rich networks (TRNs)—where nodes contain text and edges represent relationships—are everywhere, from scientific citation webs to e-commerce co-purchase graphs. While Graph Neural Networks (GNNs) are great at handling structure, they usually require fixed labels and heavy supervision. LLMs are brilliant at text but often struggle to integrate graph context effectively in "zero-shot" scenarios (where they haven't seen the specific task before).

Existing LLM-based solutions usually fall into two traps:

  1. Encoder-based: They treat the LLM as a simple feature extractor, missing out on its reasoning potential.
  2. Distillation-based: they rely on "Chain-of-Thought" (CoT) data generated by massive, expensive models like GPT-4 to train smaller ones.

The authors of TRN-R1-Zero wanted to know: Can we elicit intrinsic reasoning about graph structures directly from a base LLM without needing a "teacher" model or labeled data?

Figure 1: Top: Examples of text-rich networks (TRNs) from citation, hyperlink, social and co-purchase do- mains. Bottom: An example of reasoning-based user query over TRNs.

Methods

The core of TRN-R1-Zero is a post-training pipeline built entirely on Reinforcement Learning (RL).

1. The Reasoning Format

The model is prompted to use a <think> block for internal monologue before providing an <answer>. This encourages the model to explicitly weigh the text of a target node against the text of its neighbors.

2. Neighbour-aware Policy Objective

The researchers adapted Group Relative Policy Optimisation (GRPO), a variant of PPO that doesn't require a separate critic model. The breakthrough here is the Margin Gain metric.

3. The "Margin Gain" Trick

To make the model care about the graph, the authors calculate how much a node's classification confidence changes when you add its neighbors.

  • Raw Margin: Confidence based only on the node's text.
  • Aggregated Margin: Confidence after a simple graph convolution (SGC) step that blends in neighbor info.
  • $\Delta_i$ (Margin Gain): The difference between the two.

If $|\Delta_i|$ is high, it means the neighbors are either very helpful or very distracting. The RL reward is exponentially scaled by this value, forcing the model to focus its learning on samples where the relational context is most impactful.

Figure 2: Overall training pipeline of TRN-R1-Zero, comprising three key components: graph sampling, prompt construction, and neighbour-aware policy objective.

Datasets

The model was trained on two specific domains to capture different relational types:

  • Citeseer: A citation network (academic papers).
  • History: An Amazon co-purchase network (product descriptions).

It was then evaluated in a zero-shot manner on:

  • Cora: Citation network.
  • WikiCS: Hyperlink network (Wikipedia).
  • Instagram: Social network (user bios).
  • Photo: Co-purchase network.
  • Expla-Graph & Link Prediction tasks: To test if node-level training transfers to graph-level reasoning and edge prediction.

Key Insights and Ideas

  • RL-Only is Viable: You don't need Supervised Fine-Tuning (SFT) to get an LLM to reason about graphs. Direct optimization via RL is enough to "activate" this capability.
  • Structure as a Signal: The Margin Gain mechanism is a powerful way to bridge the gap between unstructured text and structured graphs. It acts as an automated "curriculum," highlighting the most informative parts of the network.
  • Conciseness Wins: Unlike distilled models that often produce rambling, repetitive reasoning traces, TRN-R1-Zero learns to be concise. Its reasoning paths are significantly shorter but more accurate than models like Graph-R1.
  • Cross-Task Transfer: Even though it was only trained to classify nodes, the model naturally learned enough about graph logic to perform link prediction and complex graph reasoning tasks without further training.

Key Results

TRN-R1-Zero (based on Qwen2.5-7B) consistently outperformed much larger models and specialized Graph Foundation Models.

  • Superiority: It achieved the highest average Accuracy (66.53%) and Macro-F1 (64.35%) across all test datasets, even beating GPT-4o in several categories.
  • Stability: Compared to Graph-R1 (a distilled model), TRN-R1-Zero showed much more stable performance gains during RL training, avoiding the "performance dips" often seen in complex graph tasks.
  • Edge Prediction: On the WikiCS-Link dataset, it saw a massive +16.10 improvement in accuracy over the base model, despite never being trained on link prediction.
Figure 3: Performance comparison with RL training between our TRN-R1-Zero (red) and Graph-R1 (blue).

Limitations and Future Work

  • Domain Knowledge Dependency: The authors note that if the base LLM completely lacks knowledge of a specific domain (e.g., very niche scientific fields), RL alone might not be enough to bridge the gap. The "knowledge" must exist in the pre-trained weights to be "reasoned" with.
  • Computational Intensity: While more efficient than distillation from massive models, RL training is still computationally demanding compared to simple encoder-based methods.
  • Future Directions: The team suggests exploring multi-hop reasoning (looking at neighbors of neighbors) and scaling the framework to even larger, more complex network structures.

Summary updated

Abstract

Zero-shot reasoning on text-rich networks (TRNs) remains a challenging frontier, as models must integrate textual semantics with relational structure without task-specific supervision. While graph neural networks rely on fixed label spaces and supervised objectives, recent large language model (LLM)-based approaches often overlook graph context or depend on distillation from larger models, limiting generalisation. We propose TRN-R1-Zero, a post-training framework for TRN reasoning trained solely via reinforcement learning. TRN-R1-Zero directly optimises base LLMs using a Neighbour-aware Group Relative Policy Optimisation objective that dynamically adjusts rewards based on a novel margin gain metric for the informativeness of neighbouring signals, effectively guiding the model toward relational reasoning. Unlike prior methods, TRN-R1-Zero requires no supervised fine-tuning or chain-of-thought data generated from large reasoning models. Extensive experiments across citation, hyperlink, social and co-purchase TRN benchmarks demonstrate the superiority and robustness of TRN-R1-Zero. Moreover, relying strictly on node-level training, TRN-R1-Zero achieves zero-shot inference on edge- and graph-level tasks, extending beyond cross-domain transfer. The codebase is publicly available at https://github.com/superallen13/TRN-R1-Zero.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
CoraTRN-R1-Zero (7B)Acc.72.59+4.44 vs baselinesplit: test · 0-shot · params=7B
Source quote
L432: Cora │ TRN-R1-Zero │ 7B │ 152.57 │ 72.59
WikiCSTRN-R1-Zero (7B)Acc.73.63+0.38 vs baselinesplit: test · 0-shot · params=7B
Source quote
L434: WikiCS │ TRN-R1-Zero │ 7B │ 129.27 │ 73.63
WikiCSTRN-R1-Zero (7B)Resp. Len. (average response length)129.27-999.95 vs baseline0-shot · params=7B
Source quote
L434: WikiCS │ TRN-R1-Zero │ 7B │ 129.27 │ 73.63
Reported baseline / comparator measurements (3)
BenchmarkMethodMetricScoreProtocol / Evidence
CoraGraph-R1 (14B) baselineAcc.68.15params=14B
Source quote
L433: Cora │ Graph-R1 │ 14B │ 930.47 │ 68.15
WikiCSGraph-R1 (14B) baselineAcc.73.25params=14B
Source quote
L435: WikiCS │ Graph-R1 │ 14B │ 1129.22 │ 73.25
WikiCSGraph-R1 (14B) baselineResp. Len. (average response length)1129.22params=14B
Source quote
L435: WikiCS │ Graph-R1 │ 14B │ 1129.22 │ 73.25
BibTeX
@inproceedings{liu2026trn,
  author = {Yilun Liu and Ruihong Qiu and Zi Huang},
  title = {{TRN-R1-Zero: Text-rich Network Reasoning via LLMs with Reinforcement Learning Only}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.acl-long.823},
}

Loading related content...

Figure