Manuscript Offprint

arXiv:2609.38161

A Spectral Theory of Distortion in LLM Graph Reconstruction: Sharp Bounds and Empirical Characterization

Jianru Shen

Jianru Shen

Columbia University

New York, NY, USA

js5929@columbia.edu

Abstract—Evaluations of graph reconstruction by language models typically report a single aggregate distance between the original and the reconstructed graph. We prove that for the Wasserstein distance between Laplacian spectra such a summary is bracketed by two edge counts, the net change in edge number from below and the symmetric difference from above, each scaled by 2/n where n is the number of vertices. The bracket is sharp: its two ends coincide exactly when the reconstruction only adds edges or only deletes them, and on that class the distance is a rescaled edge count that says nothing about which edges changed. When the ends differ, the residual between the distance and the lower end is positive only if the reconstruction both invented and lost edges, which turns it into a certificate of mixed editing computable from the reported summaries alone. We characterize these regimes in 135 reconstructions produced by three open-weight models over 45 synthetic graphs. Seventy-seven outputs are one-sided and 29 mixed outputs have X > 0, including cases where edge count is exactly preserved while nineteen edges were simultaneously invented and lost. The three models differ in editing policy, ranging from copying the input to attempting completion at the cost of large hallucination volume, a distinction that aggregate distortion does not reveal.

Index Terms—spectral graph theory, Laplacian eigenvalues, large language models, graph reconstruction, model evaluation

I. INTRODUCTION

Large language models are increasingly applied to graph-structured tasks, including node classification, link prediction, and reasoning over topology described in natural language [1]–[3]. A basic diagnostic in this setting is reconstruction: the model receives a partial description of a graph and returns what it takes the complete edge set to be. Assessing the result means comparing two graphs on a common vertex set, and the comparison is usually reduced to a scalar, such as edge accuracy or edit distance [2]–[4], or a Laplacian-spectral distance [5], [6].

One scalar cannot say how a reconstruction failed. A model that omits twenty edges and a model that invents twenty edges can produce the same distance to the original, although the first is conservative and the second hallucinates. This is usually treated as a known imprecision of aggregate metrics. We show that for spectral distortion it is a theorem, and that the same argument yields a test that repairs part of the loss at no additional cost. Figure 1 shows two reconstructions of one graph whose scalar summaries obscure different edit mechanisms.

Let G′G' be a reconstruction of G on the same vertex set and let EMD denote the Wasserstein distance between their Laplacian spectra. Our main result brackets EMD between two edge counts: the net change ∣∣E∣−∣E′∣∣||E| - |E'|| from below and the symmetric difference ∣E△E′∣|E \triangle E'| from above, both scaled by 2/n. The bracket is sharp in a strong sense. Its two ends coincide exactly when the edit is one-sided, that is when the model only added edges or only deleted them, and on that class EMD equals a rescaled edge count and carries no further information. When the two ends differ, the residual between EMD and the lower end is positive only if the edit is mixed, which turns that residual into a certificate of simultaneous hallucination and loss. Once EMD, ECR, ∣E∣|E| and n have been computed, the certificate requires no access to the identities of the reconstructed edges.

We evaluate three open-weight models on 45 synthetic graphs spanning block, preferential attachment, and lattice families. The bounds hold on all 135 reconstructions. Seventy-seven fall in the degenerate class where distortion is provably an edge count, so a per family average of EMD over such a corpus reproduces the density profile of the benchmark rather than any property of a model. Twenty-nine mixed outputs have X > 0, including two edge-count-preserving outputs for which no individual scalar reveals the simultaneous additions and deletions of nineteen and fifteen edges respectively. Aggregate distortion separates the three models by magnitude but obscures substantial differences in editing policy, ranging from returning the prompt verbatim to attempting completion at the cost of large hallucination volume.

Prior work on graph reasoning with language models evaluates output at the task level or through edit distance [2]–[4] and treats the metric as given. For graph comparison, Gu, Hua, and Liu define Wasserstein distances between normalized-Laplacian spectral measures and derive O(1/n)O(1/n) stability under bounded graph operations [5], while NetLSD compares graphs through Laplacian heat-trace signatures [6]. Our setting instead fixes a common vertex set and the combinatorial Laplacian and yields exact finite-n edge-edit bounds in terms of the net edge-count change and the symmetric difference, together with equality characterizations and a mixed-edit certificate. The perturbation inequalities used in the proof, due to Weyl and Mirsky [7], [8], are classical; the contribution is the resulting

(a)

(b)

Figure

(c)

Fig. 1. Two reconstructions of community instance g5 (n = 28); layout and node color are fixed from the original graph, so only the edge sets differ. (a) Original. (b) Preserves the edge count (ECR = 1) while adding and deleting 19 edges each, certified mixed from scalar summaries. (c) Verbatim return of the prompted sublist. EMD and edge-count summaries can thus obscure the edit mechanism; neither reconstruction is implied to be faithful.

characterization and its empirical regime analysis.

References (18)