Saved in:
Bibliographic Details
Main Authors: Zheng, Heng, You, Haochen, Liu, Zijun, Zhang, Zijian, Gan, Lubin, Zhang, Hao, Huang, Wenjun, Huang, Jin
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2511.00911
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914213463588864
author Zheng, Heng
You, Haochen
Liu, Zijun
Zhang, Zijian
Gan, Lubin
Zhang, Hao
Huang, Wenjun
Huang, Jin
author_facet Zheng, Heng
You, Haochen
Liu, Zijun
Zhang, Zijian
Gan, Lubin
Zhang, Hao
Huang, Wenjun
Huang, Jin
contents Text-attributed graphs require models to effectively integrate both structural topology and semantic content. Recent approaches apply large language models to graphs by linearizing structures into token sequences through random walks. These methods create concise graph vocabularies to replace verbose natural language descriptions. However, they overlook a critical component that makes language expressive: grammar. In natural language, grammar assigns syntactic roles to words and defines their functions within sentences. Similarly, nodes in graphs play distinct structural roles as hubs, bridges, or peripheral members. Current graph language methods provide tokens without grammatical annotations to indicate these structural or semantic roles. This absence limits language models' ability to reason about graph topology effectively. We propose \textbf{G2rammar}, a bilingual grammar framework that explicitly encodes both structural and semantic grammar for text-attributed graphs. Structural grammar characterizes topological roles through centrality and neighborhood patterns. Semantic grammar captures content relationships through textual informativity. The framework implements two-stage learning with structural grammar pre-training followed by semantic grammar fine-tuning. Extensive experiments on real-world datasets demonstrate that G2rammar consistently outperforms competitive baselines by providing language models with the grammatical context needed to understand graph structures.
format Preprint
id arxiv_https___arxiv_org_abs_2511_00911
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle G2rammar: Bilingual Grammar Modeling for Enhanced Text-attributed Graph Learning
Zheng, Heng
You, Haochen
Liu, Zijun
Zhang, Zijian
Gan, Lubin
Zhang, Hao
Huang, Wenjun
Huang, Jin
Graphics
Text-attributed graphs require models to effectively integrate both structural topology and semantic content. Recent approaches apply large language models to graphs by linearizing structures into token sequences through random walks. These methods create concise graph vocabularies to replace verbose natural language descriptions. However, they overlook a critical component that makes language expressive: grammar. In natural language, grammar assigns syntactic roles to words and defines their functions within sentences. Similarly, nodes in graphs play distinct structural roles as hubs, bridges, or peripheral members. Current graph language methods provide tokens without grammatical annotations to indicate these structural or semantic roles. This absence limits language models' ability to reason about graph topology effectively. We propose \textbf{G2rammar}, a bilingual grammar framework that explicitly encodes both structural and semantic grammar for text-attributed graphs. Structural grammar characterizes topological roles through centrality and neighborhood patterns. Semantic grammar captures content relationships through textual informativity. The framework implements two-stage learning with structural grammar pre-training followed by semantic grammar fine-tuning. Extensive experiments on real-world datasets demonstrate that G2rammar consistently outperforms competitive baselines by providing language models with the grammatical context needed to understand graph structures.
title G2rammar: Bilingual Grammar Modeling for Enhanced Text-attributed Graph Learning
topic Graphics
url https://arxiv.org/abs/2511.00911