arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.22657cs.CLcs.AI
收藏

NAG:一种用于语言模型中无编码文本图建模的统一原生架构

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

New Laboratory of Pattern Recognition (NLPR), Institute of Automation, Chinese Academy of Sciences, Beijing, China;School of Artificial Intelligence, University of Chinese Academy of Sciences (UCAS), Beijing, China;School of Advanced Interdisciplinary Sciences, UCAS, Beijing, China

Haisong Gong, Zhibo Liu, Qiang Liu, Shu Wu, Liang Wang

AI总结:

NAG提出一种统一的原生架构,将图处理内化于语言模型,通过自注意力机制和位置ID校准实现结构依赖和等价性,提升文本图建模的连贯性和效率。

摘要:

现有将图整合到语言模型(LMs)中的方法通常依赖于分离的架构:外部图神经网络(GNNs)编码结构拓扑,而LMs处理文本语义。我们认为这种做法在文本图中是次优的:它创建了一个概念上分离的交互范式。通过将结构编码与语义处理分离,这些系统必须在抽象图标记和具体文本元素之间执行复杂的隐含对齐。挑战外部编码器的必要性,我们提出NAG(图的原生架构),一种将图处理内化于LM原生流形的统一框架。而不是在不同的嵌入空间之间架桥,NAG重新利用自注意力机制来强制拓扑依赖,并重新校准位置ID以确保结构等价性。这使模型能够利用其内在语言能力,同时理解节点和边的内容以及结构拓扑。我们引入了两种高效的实现:NAG-Zero用于绝对保留基础模型的语言能力,NAG-LoRA用于增强结构适应性。在多样化的图任务实验中验证,NAG在不使用外部编码器的情况下实现了稳健的图理解,提供了一种更简单、更连贯的文本图建模范式。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑