Ask a Local: Detecting Hallucinations With Specialized Model Divergence

Aldan Creo, Héctor Cerezo-Costas, Pedro Alonso-Doval, Maximiliano Hormazábal-Lagos
6/3/2025
cs.CLcs.AI

No official code found. Best implementation: ACMCMC/ask-a-local (0 stars, GPL-3.0, last commit 2025-06-03).

Abstract

Hallucinations in large language models (LLMs) - instances where models generate plausible but factually incorrect information - present a significant challenge for AI. We introduce "Ask a Local", a novel hallucination detection method exploiting the intuition that specialized models exhibit greater surprise when encountering domain-specific inaccuracies. Our approach computes divergence between perplexity distributions of language-specialized models to identify potentially hallucinated spans. Our method is particularly well-suited for a multilingual context, as it naturally scales to multiple languages without the need for adaptation, relying on external data sources, or performing training. Moreover, we select computationally efficient models, providing a scalable solution that can be applied to a wide range of languages and domains. Our results on a human-annotated question-answer dataset spanning 14 languages demonstrate consistent performance across languages, with Intersection-over-Union (IoU) scores around 0.3 and comparable Spearman correlation values. Our model shows particularly strong performance on Italian and Catalan, with IoU scores of 0.42 and 0.38, respectively, while maintaining cross-lingual effectiveness without language-specific adaptations. We release our code and architecture to facilitate further research in multilingual hallucination detection.

View on arXivView PDF

Code Implementations(1)

ACMCMC/ask-a-localCommunity78%
GPL-3.0

Ask a Local: Detecting Hallucinations With Specialized Model Divergence

00PythonFeb 11, 20251 years agoGPL-3.0
aihallucinationhallucination-detectionllm

Similar Papers

Cite this paper

@article{creo2025local,
  title  = {Ask a Local: Detecting Hallucinations With Specialized Model Divergence},
  author = {Aldan Creo and Héctor Cerezo-Costas and Pedro Alonso-Doval and Maximiliano Hormazábal-Lagos},
  year   = {2025},
  eprint = {2506.03357},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.03357v1}
}

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

Discussion