HalluZig: Hallucination Detection using Zigzag Persistence

Shreyas N. Samaga, Gilberto Gonzalez Arroyo, Tamal K. Dey
1/4/2026
cs.CL

No confident code implementation found for this paper.

Abstract

The factual reliability of Large Language Models (LLMs) remains a critical barrier to their adoption in high-stakes domains due to their propensity to hallucinate. Current detection methods often rely on surface-level signals from the model's output, overlooking the failures that occur within the model's internal reasoning process. In this paper, we introduce a new paradigm for hallucination detection by analyzing the dynamic topology of the evolution of model's layer-wise attention. We model the sequence of attention matrices as a zigzag graph filtration and use zigzag persistence, a tool from Topological Data Analysis, to extract a topological signature. Our core hypothesis is that factual and hallucinated generations exhibit distinct topological signatures. We validate our framework, HalluZig, on multiple benchmarks, demonstrating that it outperforms strong baselines. Furthermore, our analysis reveals that these topological signatures are generalizable across different models and hallucination detection is possible only using structural signatures from partial network depth.

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. Any repos shown below are weak matches — 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{samaga2026halluzig,
  title  = {HalluZig: Hallucination Detection using Zigzag Persistence},
  author = {Shreyas N. Samaga and Gilberto Gonzalez Arroyo and Tamal K. Dey},
  year   = {2026},
  eprint = {2601.01552},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2601.01552v2}
}

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

Discussion