ASK-NN: An Asymmetric Nearest-Neighbor Test that detects Distribution Drifts in Natural Language
Not on the map. Why?
Abstract (arXiv)
Hallucinations and artificial text in LLM-generated outputs often appear as distributional deviations between prompt and response hidden-state distributions. Since prompts or retrieved contexts typically serve as reference samples and responses as query samples, with major differences in length, these asymmetries motivate the use of change test statistics that treat the two samples differently. We consider an asymmetric two-sample test ASK-NN based on the directed k-nearest-neighbor graph. Our statistic counts reference points whose nearest neighbor in the pooled sample is also a reference point. Under the permutation null, it admits an exact finite-sample conditional mean and variance; we further establish asymptotic normality and consistency under fixed alternatives. ASK-NN is computationally effective and easy to implement. Empirically, it is competitive with kernel and graph-based baselines on synthetic benchmarks, artificial-text detection, and LLM hallucination detection from token-level hidden states.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 23 of its 32 references that are in the map. First posted on arXiv 17 Jul 2026.
Builds on
23 of 32 references.
References · 23
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2023DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability Curvaturecited by 705
- 2023Siren's Song in the AI Ocean: A Survey on Hallucination in Large Language Modelscited by 695
- 2018CoQA: A Conversational Question Answering Challengecited by 674
- 2019GLTR: Statistical Detection and Visualization of Generated Textcited by 490
- 2023How Close is ChatGPT to Human Experts? Comparison Corpus, Evaluation, and Detectioncited by 472
- 2024A Survey on RAG Meeting LLMs: Towards Retrieval-Augmented Large Language Modelscited by 450
- 2023Ragas: Automated Evaluation of Retrieval Augmented Generationcited by 408
- 2024Multilingual E5 Text Embeddings: A Technical Reportcited by 357
- 2017Learning Generative Models with Sinkhorn Divergencescited by 310
- 2023RAGTruth: A Hallucination Corpus for Developing Trustworthy Retrieval-Augmented Language Modelscited by 272
- 2024Fact-Checking the Output of Large Language Models via Token-Level Uncertainty Quantificationcited by 159
11 more
- 2024RAID: A Shared Benchmark for Robust Evaluation of Machine-Generated Text Detectorscited by 157
- 2024Lookback Lens: Detecting and Mitigating Contextual Hallucinations in Large Language Models Using Only Attention Mapscited by 140
- 2021MMD Aggregated Two-Sample Testcited by 74
- 2023Do Androids Know They're Only Dreaming of Electric Sheep?cited by 67
- 2021Manifold Topology Divergence: a Framework for Comparing Data Manifoldscited by 31
- 2014A Wild Bootstrap for Degenerate Kernel Testscited by 28
- 2024Detecting Machine-Generated Texts by Multi-Population Aware Optimization for Maximum Mean Discrepancycited by 20
- 2025Hallucination Detection in LLMs with Topological Divergence on Attention Graphscited by 18
- 2025Hallucination Detection: A Probabilistic Framework Using Embeddings Distance Analysiscited by 5
- 2025Probabilistic distances-based hallucination detection in LLMs with RAGcited by 1
- 2026The Density of Cross-Persistence Diagrams and Its Applicationscited by 1
Built on by
Not cited yet.