NAG: A Unified Native Architecture for Encoder-free Text-Graph Modeling in Language Models

Haisong Gong, Zhibo Liu, Qiang Liu, Shu Wu, Liang Wang
1/30/2026
cs.CLcs.AI

No confident code implementation found for this paper.

Abstract

Prevailing methods for integrating graphs into Language Models (LMs) typically rely on a segregated architecture: external Graph Neural Networks (GNNs) encode structural topology, while LMs process textual semantics. We argue this approach is suboptimal for text-graphs: it creates a conceptually disjointed interaction paradigm. By segregating structural encoding from semantic processing, these systems must perform a complex implicit alignment between abstract graph tokens and concrete textual elements. Challenging the necessity of external encoders, we propose NAG (Native Architecture for Graphs), a unified framework that internalizes graph processing within the LM's native manifold. Instead of bridging disparate embedding spaces, NAG repurposes the self-attention mechanism to enforce topological dependencies and recalibrates positional IDs to ensure structural equivalence. This allows the model to harness its intrinsic linguistic capability to simultaneously comprehend node and edge content alongside structural topology. We introduce two efficient implementations: NAG-Zero for absolute preservation of the base model's linguistic capabilities, and NAG-LoRA for enhanced structural adaptation. Experiments across diverse graph tasks validate that NAG achieves robust graph comprehension without the overhead of external encoders, offering a simpler, more coherent paradigm for text-graph modeling.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{gong2026nag,
  title  = {NAG: A Unified Native Architecture for Encoder-free Text-Graph Modeling in Language Models},
  author = {Haisong Gong and Zhibo Liu and Qiang Liu and Shu Wu and Liang Wang},
  year   = {2026},
  eprint = {2601.22657},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2601.22657v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2601.22657.svg)](https://codeofpaper.com/paper/2601.22657)

Discussion