Detecting Differences Is Not Understanding Structure: Large Language Models Fail at Graph Isomorphism

Kumar Thushalika, Sukumar Kishanthan, Asela Hevapathige
6/8/2026
cs.CL

No confident code implementation found for this paper. 4 possible matches can be shown below.

Abstract

Large language models (LLMs) have shown impressive performance on diverse reasoning tasks, yet their capacity for structural reasoning in graphs remains unclear. We investigate whether LLMs can genuinely understand graph isomorphism -a fundamental problem in graph theory. While LLMs achieve near-perfect accuracy on isomorphism detection, we show this performance is illusory. When identical graphs are presented with permuted node labels, LLMs fail to identify their isomorphism. This finding suggests that LLMs exploit patterns rather than reasoning about abstract graph structure. Since permutation invariance is a fundamental requirement for valid structural reasoning, these results indicate that success on graph reasoning benchmarks should not be interpreted as evidence of genuine topological understanding.

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. 4 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

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

Similar Papers

Cite this paper

@article{thushalika2026detecting,
  title  = {Detecting Differences Is Not Understanding Structure: Large Language Models Fail at Graph Isomorphism},
  author = {Kumar Thushalika and Sukumar Kishanthan and Asela Hevapathige},
  year   = {2026},
  eprint = {2606.09484},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.09484v1}
}

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/2606.09484.svg)](https://codeofpaper.com/paper/2606.09484)

Discussion