Manuscript Offprint

arXiv:2608.29588

Call Neighbours Yourself: Graph Walks with Destination-Conditioned On-Policy Self-Distillation

Yilun Liu, Boyu Luo, Yanran Tang, Ruihong Qiu, Zi Huang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Reasoning over text-attributed graphs (TAGs) requires large language models (LLMs) to combine a node's text with evidence distributed across its neighbourhood. Existing methods fix the set of accessible neighbours before generation, forcing reasoning to operate over a static context and preventing the model from acquiring missing evidence during inference. We argue that neighbour selection should itself be part of the reasoning process. To this end, we propose Call Neighbours Yourself (CNY), a framework that enables LLMs to proactively explore graph neighbourhoods through topology-constrained graph-walk actions. Instead of reasoning over a pre-selected neighbour set, CNY exposes lightweight neighbour previews and learns when to expand candidate neighbours for additional evidence. To address the delayed-credit challenge of neighbour exploration, we introduce destination-conditioned on-policy self-distillation, which retrospectively evaluates a selected neighbour after its content is revealed and converts the resulting change in action preference into an action-level training signal. Experiments on standard TAG reasoning benchmarks under a unified raw-text setting show that CNY consistently outperforms fixed-context post-training baselines. Furthermore, the learned exploration policy transfers to unseen graphs and to a graph-level task not encountered during training. Code is available at https://github.com/superallen13/CNY.

1 Introduction

Citation networks, hyperlink graphs, and product co-purchase networks are text-attributed graphs (TAGs), where each node contains free-form text and is connected to other text-bearing nodes (Wu et al., 2025a; Tang et al., 2024b,c, 2026a; Wang et al., 2025a; Tang et al., 2026b). Reasoning over TAGs therefore requires a model to use not only the target node's own text, but also evidence from its graph neighbourhood (He et al., 2024a; Li et al.,

Figure

(a) Selection trade-off

Figure

(b) Active walk

Figure 1: CNY at a glance. (a) On WikiCS targets whose full neighbourhood fits in a 32K context, a frozen Qwen2.5-32B that selects neighbours during generation (Walk) outperforms a retrieval-augmented generation pipeline (RAG) that embeds the target's text, retrieves its top-10 neighbours and concatenates them as context, at 6.3×6.3\times fewer tokens. (b) CNY learns this selection as a graph-walk action, replacing the fixed pre-selected neighbour context of prior work.

2024a). Existing large language models (LLMs)-based TAG methods usually turn this requirement into a prompt construction problem: a subset of neighbouring texts is selected before generation and then provided as fixed context (Tang et al., 2024a; Chen et al., 2024b; Kong et al., 2025), which is adopted by recent post-training methods, such as Graph-R1 (Wu et al., 2025b) and TRN-R1-Zero (Liu et al., 2026). Although they optimise how the LLM reasons over the provided context, neighbour acquisition itself remains decoupled from reasoning: the LLM cannot adapt its evidence gathering to what it discovers as it reasons.

This static-context assumption becomes problematic on dense TAGs. Neighbourhoods often exceed practical context limits: on WikiCS the full one-hop neighbourhood already exceeds a 32K-token window for 40.3% of the 2,340 test targets, forcing systems to read only a subset. Yet which neighbours are selected largely determines prediction quality, since relevant evidence is easily buried among irrelevant nodes or overlooked when placed mid-context (Liu et al., 2024b; Hsieh et al., 2024;

Bai et al., 2024). Once a subset is fixed before generation, the LLM cannot recover if decisive evidence lies elsewhere.

This paper argues that neighbour selection should be part of the reasoning process itself. Instead of passively consuming a fixed neighbour set, an LLM should first observe lightweight previews of candidate neighbours, such as a title, a short summary, or a fixed-length text prefix, and then decide which neighbours deserve deeper inspection. This interleaves reasoning and neighbour acquisition rather than separating them as in retrieval-thengenerate pipelines. As in Figure 1, our motivation study supports this view: on WikiCS targets whose full neighbourhoods fit in context (so neither method is forced to truncate), a frozen Qwen2.5-32B-Instruct model that selects neighbours during generation outperforms a RAG pipeline that selects neighbours by embedding similarity, using the same backbone and identical neighbour previews, while using substantially fewer tokens. However, training an LLM to walk well is non-trivial: the usefulness of a walk can only be judged after its destination is revealed and folded into subsequent reasoning, so an outcome-only RL objective has no direct signal to credit individual walks.

This paper proposes Call Neighbours Yourself (CNY), which trains the LLM to issue a <walk> action mid-generation to read a specific neighbour, replacing the pre-selected neighbour set with evidence the LLM acquires step by step. Process reward models (Lightman et al., 2024; Wang et al., 2024) would normally supply the missing per-walk credit, but they require step labels that graph walks do not provide. CNY therefore introduces destination-conditioned On-Policy Self-Distillation (OPSD): once a walk reveals its destination, the same base LLM re-scores its own walk action, and the resulting probability shift is used as per-action credit, with no step labels, no external judge, and no extra rollouts. Our contributions are summarised as follows:

• We identify static neighbour selection as a key limitation of LLM-based reasoning on dense TAGs and formulate neighbour inspection as an adaptive evidence-acquisition problem.

• We propose CNY, a proactive neighbour exploration framework that enables LLMs to select and expand neighbours during generation through graph-walk actions.

• We introduce a destination-conditioned on-policy self-distillation strategy that assigns action-level credit to neighbour-selection decisions without step-level annotations.

• Extensive experiments across citation, hyperlink, co-purchase and knowledge-graph benchmarks demonstrate that CNY surpasses fixed-context baselines.

References (27)