From Anchors to Answers: A Novel Node Tokenizer for Integrating Graph Structure into Large Language Models
Yanbiao Ji, Chang Liu, Xin Chen, Dan Luo, Mei Li, Yue Ding, Wenqing Lin, Hongtao Lu

TL;DR
This paper introduces NT-LLM, a novel node tokenizer with anchor-based positional encoding that efficiently integrates graph structure into large language models, improving their reasoning capabilities on graph data.
Contribution
The paper proposes a new anchor-based positional encoding scheme for graph representation in LLMs, addressing computational efficiency and alignment issues in graph reasoning tasks.
Findings
NT-LLM outperforms existing methods on various graph tasks.
The rank-preserving objective improves positional encoding quality.
The approach is computationally lightweight and effective.
Abstract
Enabling large language models (LLMs) to effectively process and reason with graph-structured data remains a significant challenge despite their remarkable success in natural language tasks. Current approaches either convert graph structures into verbose textual descriptions, consuming substantial computational resources, or employ complex graph neural networks as tokenizers, which introduce significant training overhead. To bridge this gap, we present NT-LLM, a novel framework with an anchor-based positional encoding scheme for graph representation. Our approach strategically selects reference nodes as anchors and encodes each node's position relative to these anchors, capturing essential topological information without the computational burden of existing methods. Notably, we identify and address a fundamental issue: the inherent misalignment between discrete hop-based distances in…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTopic Modeling · Semantic Web and Ontologies · Advanced Graph Neural Networks
