Papers › Quickest Detection of Hallucination Onset: Delay Bounds and Learned CUSUM Statistics

Quickest Detection of Hallucination Onset: Delay Bounds and Learned CUSUM Statistics

10 Jun 2026arXiv:2606.12476added by Syntology

Igor Itkin

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

Token-level hallucination detectors are evaluated as classifiers, by AUC over all tokens, yet a streaming monitor is judged by its reaction time: the number of tokens that pass between the onset of a hallucination and the alarm. We formulate hallucination onset detection as a quickest change detection problem. A first-order Markov model of the latent faithful/hallucinated state, validated on RAGTruth, places the task inside classical change-point theory and yields Lorden's lower bound on detection delay: about 1.3 tokens at a false-alarm rate of 0.01. We then show that a causal recurrent labeler acts as a CUSUM with a learned increment. Among the onsets it catches it detects in 11-13 tokens, against 31 for a linear per-token baseline, though at this false-alarm budget every detector catches under a third of onsets and the recall-honest delay is 56-66 tokens: low-false-alarm onset detection is hard. A controlled decomposition attributes the speed advantage mostly to a better per-token score rather than to temporal accumulation. An information-rate optimality theorem of Donsker-Varadhan type explains the remaining order-of-magnitude gap: the learned score realizes only 1/4.5 of the divergence the features carry, a deficit that recalibration cannot remove, with the remainder a finite-horizon effect. Classification metrics conceal this delay structure; sequential analysis makes it measurable.

PaperPDFCode Syntology ran

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 20 code samples harvested from 1 repository linked to this paper: 19 ran (of which 0 constructed an object rather than computing a result; 7 with no instrument failure: 4 honoured, 3 violated, 0 with no contract checked; 12 where Syntology's instrument failed) · 1 unverified. Where Syntology's instrument failed: 2 where our contract draft was wrong; 10 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: found in paper text by Syntology: 20 samples from 1 repository, 19 ran (7 with no instrument failure; 12 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written on 2026-09-24 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

YehudaItkin/quickest-hallucination-onset found in paper text by SyntologySyntology: 20 samples, 19 ran (12 instrument-failed) · 1 unverified report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

20 samples harvested: 19 ran (of which 0 constructed an object rather than computing a result; 7 with no instrument failure: 4 honoured, 3 violated, 0 with no contract checked; 12 where Syntology's instrument failed) · 1 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

4ran · honoured contract
3ran · violated contract
2ran · our draft was wrong
10ran; the contract check could not run
1unverified

Licence: 0 of the 20 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from YehudaItkin/quickest-hallucination-onset. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of six reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity.

YehudaItkin/quickest-hallucination-onset found in paper text by Syntology 20 samples, 19 ran (12 instrument-failed) · 1 unverified
captured_mi info_theory_limits.py ran · our draft was wrong MIT (permissive) · 961f9bf67a31f503 · report fixture: signature p_hat:ndarray/1/float, y:ndarray/1/int, n_bins:int/0/int · returned dict · level recorded 2026-09-24
closed_rate robustness/server_rate_aware_loss.py ran · honoured contract MIT (permissive) · 7a54bda7a2f95086 · report fixture: signature probs:list/1/ndarray, labs:list/1/ndarray · returned tuple · level recorded 2026-09-24
compute_kl_divergence in 9 papers poc_analysis.py ran; the contract check could not run (RAISES) MIT (permissive) · a477c96b5a8791a7 · report fixture: signature label_sequences:list/1/ndarray · returned float · level recorded 2026-09-24
compute_lorden_bound poc_analysis.py ran; the contract check could not run (RAISES) MIT (permissive) · c4414df2e860ac0a · report fixture: signature label_sequences:list/1/ndarray, false_alarm_rate:float/0/float · returned float64 · level recorded 2026-09-24
cusum robustness/server_combined_detector.py ran; the contract check could not run (RAISES) fingerprinted MIT (permissive) · b23784c50042f538 · report fixture: signature inc:ndarray/1/float · returned ndarray · level recorded 2026-09-24
estimate_transition_matrix poc_analysis.py ran; the contract check could not run (RAISES) MIT (permissive) · cc1453e7b43f6397 · report fixture: signature label_sequences:list/1/ndarray · returned ndarray · level recorded 2026-09-24
first_crossing run_learned_cusum.py ran; the contract check could not run (RAISES) fingerprinted MIT (permissive) · 7a94f90b57612500 · report fixture: signature stat_path:list/1/float, threshold:float/0/float · returned int · level recorded 2026-09-24
first_onset run_learned_cusum.py ran; the contract check could not run (RAISES) fingerprinted MIT (permissive) · 68919709182cddfa · report fixture: signature labs:list/1/float · returned int · level recorded 2026-09-24
hb info_theory_limits.py ran · violated contract fingerprinted MIT (permissive) · 97d96d79dbeca4ab · report fixture: signature p:ndarray/1/float · returned ndarray · level recorded 2026-09-24
hb pac_bayes_poc.py ran · honoured contract fingerprinted MIT (permissive) · 55e2fedbfb2d6589 · report fixture: signature p:float/0/float · returned float · level recorded 2026-09-24
info_rate gap_analysis.py ran · our draft was wrong MIT (permissive) · ee3e6fcd610ff498 · report fixture: signature s_clean:ndarray/1/float, s_hallu:ndarray/1/float · returned dict · level recorded 2026-09-24
integrated_autocorr_time gap_analysis.py ran; the contract check could not run (RAISES) MIT (permissive) · e6338bda293878cd · report fixture: signature seqs:list/1/ndarray, max_lag:int/0/int · returned tuple · level recorded 2026-09-24
label_autocorr_time pac_bayes_poc.py ran; the contract check could not run (RAISES) MIT (permissive) · 784b6ff3e6d5fb0c · report fixture: signature seqs:list/1/ndarray, max_lag:int/0/int · returned tuple · level recorded 2026-09-24
logit in 16 papers gap_analysis.py ran · violated contract fingerprinted MIT (permissive) · b4d244c709d78560 · report fixture: signature p:ndarray/1/float · returned ndarray · level recorded 2026-09-24
prob_path run_learned_cusum.py ran · violated contract MIT (permissive) · e1d0447885c9fa5b · report fixture: signature probs:list/1/float · returned ndarray · level recorded 2026-09-24
sentence_spans robustness/server_consistency_features.py ran · honoured contract MIT (permissive) · 522583c33481ad1a · report fixture: signature token_labels:list/1/dict · returned list · level recorded 2026-09-24
sentence_text robustness/server_consistency_features.py ran; the contract check could not run (RAISES) MIT (permissive) · 0ee4c527d9a78710 · report fixture: signature token_labels:list/1/dict, span:tuple/1/int · returned str · level recorded 2026-09-24
shrink_cov robustness/server_combined_detector.py ran · honoured contract fingerprinted MIT (permissive) · a07e3b7fd4653047 · report fixture: signature X:ndarray/2/float · returned ndarray · level recorded 2026-09-24
transition_matrix pac_bayes_poc.py ran; the contract check could not run (RAISES) MIT (permissive) · 9d1fe7f549739c9a · report fixture: signature seqs:list/1/list · returned ndarray · level recorded 2026-09-24
broadcast_to_tokens robustness/server_consistency_features.py unverified MIT (permissive) · 12e94a3f50444017 · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2606.12476, was issued in June 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections