GraphGhost: Tracing Structures Behind Large Language Models

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Dai, Xinnan, Long, Xianxuan, Lo, Chung-Hsiang, Guo, Kai, Zeng, Shenglai, Luo, Dongsheng, Tang, Jiliang
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866915761530863616
author Dai, Xinnan
Long, Xianxuan
Lo, Chung-Hsiang
Guo, Kai
Zeng, Shenglai
Luo, Dongsheng
Tang, Jiliang
author_facet Dai, Xinnan
Long, Xianxuan
Lo, Chung-Hsiang
Guo, Kai
Zeng, Shenglai
Luo, Dongsheng
Tang, Jiliang
contents Large Language Models (LLMs) exhibit strong reasoning capabilities on structured tasks, yet the internal mechanisms underlying such behaviors remain poorly understood. Existing interpretation methods mainly focus on token-level attributions, which provide limited insight into multi-step reasoning inside the model. We propose GraphGhost, a graph-based framework that models internal token interactions and neuron activations in LLMs as graphs. By aggregating token dependencies traced across layers, GraphGhost captures global information flow underlying model predictions. We formalize GraphGhost from two complementary perspectives: a sample view, which traces token dependencies for individual predictions, and a dataset view, which aggregates recurring structural patterns learned during training. Through graph analytics and quantitative experiments, we show that graph structural properties are closely associated with influential tokens and neuron nodes, and that perturbations to structurally critical nodes lead to measurable changes in reasoning behavior. These results indicate that the structural patterns captured by GraphGhost reflect meaningful internal organization of LLM reasoning. The codes are available at software part. Artifacts will be made available for research use only.
format Preprint
id arxiv_https___arxiv_org_abs_2510_08613
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle GraphGhost: Tracing Structures Behind Large Language Models
Dai, Xinnan
Long, Xianxuan
Lo, Chung-Hsiang
Guo, Kai
Zeng, Shenglai
Luo, Dongsheng
Tang, Jiliang
Computation and Language
Large Language Models (LLMs) exhibit strong reasoning capabilities on structured tasks, yet the internal mechanisms underlying such behaviors remain poorly understood. Existing interpretation methods mainly focus on token-level attributions, which provide limited insight into multi-step reasoning inside the model. We propose GraphGhost, a graph-based framework that models internal token interactions and neuron activations in LLMs as graphs. By aggregating token dependencies traced across layers, GraphGhost captures global information flow underlying model predictions. We formalize GraphGhost from two complementary perspectives: a sample view, which traces token dependencies for individual predictions, and a dataset view, which aggregates recurring structural patterns learned during training. Through graph analytics and quantitative experiments, we show that graph structural properties are closely associated with influential tokens and neuron nodes, and that perturbations to structurally critical nodes lead to measurable changes in reasoning behavior. These results indicate that the structural patterns captured by GraphGhost reflect meaningful internal organization of LLM reasoning. The codes are available at software part. Artifacts will be made available for research use only.
title GraphGhost: Tracing Structures Behind Large Language Models
topic Computation and Language
url https://arxiv.org/abs/2510.08613