acceptodds
Published as a conference paper at NeurIPS 2026

Actionable Hallucination Detection: Translating Latent Uncertainty into Agentic Critique

Sanidhya Vijayvargiya, Rahul Lokesh

Abstract

Large Language Models (LLMs) deployed as AI agents frequently exhibit a task-completion bias, executing hallucinated, undesired actions to force a resolution rather than expressing uncertainty. Existing detection methods fail to provide actionable, real-time correction as they either do not localize the hallucinations or incur prohibitive inference latency. We introduce the Latent Critic, a lightweight low-rank adapter (LoRA) that operates concurrently with a frozen base LLM's generation to actively restructure the transformer's residual stream—amplifying epistemic uncertainty signals and translating them into localized, natural language feedback within a single sequence. By refining the base model's native uncertainty signals, this manipulation of the latent space enables highly reliable, granular detection without the overhead of secondary inference loops. Mechanistic analysis via activation patching and layer-wise probing shows that this rank-invariant behavior restructures pre-existing uncertainty geometry into a linearly separable representation. Using tool-calling as an instantiation of granular hallucinations, we validate the detection and downstream improvements enabled by the Latent Critic architecture across Qwen and Llama-based models. Demonstrating superior real-time efficacy, our approach significantly outperforms equivalent-scale external detectors and internal probes in isolating hallucinations (0.870 vs. 0.695 F1), achieving >80% accuracy in localization (e.g., ungrounded: date). When deployed in a closed-loop ReAct environment, the Critic acts as a zero-latency guardrail, intercepting hallucinations before execution to prevent undesired actions while simultaneously enabling efficient agent self-correction.

Keywords:
Atlanta, Main Track

Reviews

Among:
Shape:
123456this paper, Bottom 49%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 4.33 over 3 reviews, above 49% of the others.
Reviewer_y2jPOpenReview ↗
Rating
4
Clarity
4
Confidence
5
Originality
1
Quality
2
Significance
3
Read review
Summary

Bigger picture

LLMs have the tendency to drive a task to completion despite potentially incomplete information. Completed tasks appear authoritative and hidden uncertainties remain unexpressed leading to what is generally termed hallucination. As a consequence, downstream interactions (human or agentic) have little to no means to resolve incomplete or ambiguous information in the context and take the response on face value. In high stakes environments, this can lead to catastrophic failures.

Opportunity

Instead, revealing, localising and verbalising the uncertainties in the response offer the opportunity to engage in resolving those before the task is considered completed leading to more robust and accurate interactions.

What

The authors trained a Lora adapter called a Latent Critic to respond to a special token with a verbalised classification of the accumulated epistemic uncertainty in tool calling scenarios.

So What

Downstream agents are able to respond to these and engage in interactions to resolve any issues to complete the tool call with only a negligible overhead. On two models (Qwen and Llama), the Latent Critic outperformed an external judge and a linear probe.

Strengths and weaknesses

Strengths

  • Well defined problem setting focusing on a structured tool-calling agent
  • Easy to reproduce
  • Positive results

Weaknesses

  • Engineering application of known technique (LoRA) to known problem (hallucination detection) in specific domain (tool-calling) without a novel or surprising insight
  • I mention this with a caveat as alignment with human eval is 89%, but Qwen2.5-4B-Instruct judge is quite weak
  • Design of experiments needs to report more rigorously on threshold independent metrics (you have confidence scores), multiple operating points, length confounding, difficulty, base rates and cost
  • Use a baseline comparison, e.g., Kossen which you cite
Questions
  1. The paper presents a solid engineering contribution. To strengthen it for a top-tier venue, consider either (a) identifying what makes tool-calling hallucinations fundamentally different from factual hallucinations, requiring specialized detection, or (b) reframing as a comprehensive evaluation study with systematic baseline comparisons. Both paths are valuable but lead to different venues.

  2. The paper reports confidence scores and would benefit from additional metrics and insights: different applications require different precision/recall tradeoffs, can you provide threshold-independent metrics (AUROC, AUPR) and performance at multiple operating points? Can you rule out that performance differences are due to length confounding rather than genuine hallucination detection?

Concrete Suggestions:

  1. Add Threshold-Independent Metrics
  2. Add Length Stratification Analysis
  3. Report Base Rates & Stratify by Difficulty

3.The paper cites Kossen et al.'s semantic uncertainty work but doesn't compare against it. How does your LoRA-based approach compare to semantic entropy/energy baselines? With those covered we can we assess whether Latent Critic provides value over existing methods?

Concrete Suggestion:

  1. Add Baseline Comparisons:
  • Semantic Entropy Probes
  • Semantic Energy
  • Entropy Probes
  • Yours
  1. If You Can't Beat Baselines:
  • You might do better in any of the strata
  • You have a favourable realtime performance characteristic
Limitations

yes

Paper formatting concerns

n/a

Final justification

I've reviewed the author's responses carefully and I appreciate the prompt analysis to further the discussion of this paper. The authors moved the scientific spine significantly forward.

1 comment

We thank the reviewer for the constructive review. We agree with the suggested framing: the paper's central claim is that tool-calling hallucinations are a distinct class -- failures of specification grounding rather than factual correctness -- requiring specialized detection. We have expanded the evaluation accordingly (threshold-independent metrics, uncertainty baselines, operating points, length and difficulty analyses, OOD evaluation).

Why tool-calling hallucinations require specialized detection

Factual correctness is evaluated against external truth while specification grounding is evaluated against the dialogue. A generated argument can be plausible, even factually correct, and still be a hallucination because the user never provided it (e.g., date: "2027-03-26", a valid date that appears nowhere in the conversation). The label criterion is whether the dialogue supplies the value, not whether the model believes it.

This is why uncertainty-based methods are fundamentally mismatched to this supervision signal because they measure confidence in the value, and task-completion bias produces fabrications generated confidently with low entropy, high likelihood (Fig. 3a). Accordingly, token entropy, semantic entropy, and SEP fall well below the Critic (AUROC 0.55–0.67 vs. 0.966).

Our contribution is threefold: (1) identifying specification grounding as a distinct failure mode for tool-calling agents; (2) showing this signal is present in model representations but cannot be recovered through passive probing alone (Section 4); (3) making the signal actionable by jointly detecting and localizing unsupported parameters in a single decoding pass.

We will add this discussion more clearly in the revision.

Threshold-independent metrics and requested baselines

Following your suggestions, we now report AUROC, AUPRC, base rates, and uncertainty baselines.

Revised Table 1 Qwen3-4B, ID (ungrounded).
Base rates: ok 41.6%, ungrounded 35.0%, wrong_tool 23.4%. (mean ± one standard deviation over 10,000 bootstrap resamples)

MethodF1AUROCAUPRC
Token Entropy0.668 ± 0.0310.674 ± 0.0350.626 ± 0.050
Semantic Entropy0.623 ± 0.0310.639 ± 0.0360.619 ± 0.049
SEP (Kossen et al.)0.623 ± 0.0310.548 ± 0.0380.482 ± 0.045
Linear Probe0.697 ± 0.0310.782 ± 0.0240.760 ± 0.033
External Judge (fine-tuned)0.695 ± 0.0410.915 ± 0.0160.864 ± 0.029
Latent Critic (ours)0.870 ± 0.0250.966 ± 0.0100.924 ± 0.027

The Latent Critic outperforms every baseline on both threshold-dependent (F1) and threshold-independent (AUROC, AUPRC) metrics. The fine-tuned External Judge ranks well (AUROC 0.915) but still trails the Critic. This trend is also visible OOD (Table R2 in response to Reviewer zRNx).

Qualitative and qualitative analysis reveals that the semantic-entropy family faces three limitations in this setting:

  • confidently fabricated parameters exhibit low semantic entropy because the model consistently produces the same unsupported value;
  • schema-constrained tool calls substantially reduce output diversity, limiting entropy-based discrimination;
  • requires multiple sampled continuations, making it impractical for single-pass runtime guardrails.

Multiple operating points

Following your suggestion, we additionally report detection performance at standard false-positive hallucination detection budgets.

MethodFPR=0.010.050.100.20
Token Entropy1.9%17.0%21.7%40.6%
Semantic Entropy4.7%13.2%32.1%41.5%
SEP (Kossen et al.)0.0%0.0%10.4%22.6%
Linear Probe3.8%20.8%41.5%66.0%
External Judge28.3%63.2%70.8%83.0%
Latent Critic (ours)38.7%75.5%97.2%98.1%

Length confounding and difficulty

We also provide stratified performance by output length as per your recommendation.

AUROC by output-length quartile

Length bin (chars)Latent CriticExternal Judge
[51, 90)0.9660.895
[90, 128)0.9650.926
[128, 174)0.9800.968
[174, 854)0.9550.903

The Critic outperforms baselines in every length quartile, ruling out output length as the primary explanation for its gains.

Error–feature correlations

FeatureCriticJudgeProbe
Output length0.0910.1730.070
Argument length0.0880.1730.066
Conversation depth0.028-0.1260.066
# parameters-0.084-0.0210.019

None of the examined features strongly predicts Critic errors (all |r| ≤ 0.09), whereas the External Judge's errors correlate more strongly with argument length.

Clarifications

The annotation labels are produced by a Qwen3.5-122B oracle and subsequently human-verified (89% agreement between human and Qwen 3.5 122B labels before human-correction; all reported metrics use the corrected labels). The External Judge baseline is Qwen3.5-4B, fine-tuned on the identical labels and output format as the Critic, allowing a controlled comparison between external text-based judgment and access to internal representations.

Reviewer_7rUjOpenReview ↗
Rating
4
Clarity
3
Confidence
3
Originality
3
Quality
3
Significance
3
Read review
Summary

The paper studies hallucinations in tool-calling agents, focusing on cases where an agent continues with a concrete tool call even though required tool parameters have not been specified. It proposes a Latent Critic, a LoRA adapter attached to a frozen base model, which runs during tool-call generation and emits a localized diagnostic label after a trigger token.

The method is evaluated on Qwen3-4B and Llama-xLAM-2-8B using synthetic multi-turn tool-calling trajectories with programmatic labels from a completed-specification mask. The results suggest improved ungrounded-parameter detection over an external judge and linear probe, and modest improvements in closed-loop agent recovery when localized feedback is returned to the agent.

Strengths and weaknesses

The paper targets an important and practical problem for AI agents: preventing ungrounded tool execution before it causes external side effects. The parameter-level formulation is useful, and localized feedback is more actionable than a scalar hallucination score. The proposed LoRA-based diagnostic adapter is also an interesting design: the base model remains frozen, while the adapter is trained with a masked objective to focus on the diagnostic output.

The paper is generally clear and includes useful empirical components: detection results, closed-loop intervention results, ablations for the trigger token and masked loss, and mechanistic analyses via separability and activation patching. These components make the paper go beyond reporting detector performance alone, as it also attempts to explain why the method works and whether the feedback can be used for closed-loop agent correction.

However, the main concern is evaluation strength. The core benchmark is generated by the authors’ simulated-user and mask pipeline, with only a limited human alignment check. The OOD evaluation tests unseen API schemas and scenarios, but it still does not fully establish robustness to naturally occurring ambiguous user behavior. Closed-loop gains are also modest, especially on OOD tasks, where F1 improves only slightly over the base agent.

Baseline fairness is another issue. The Latent Critic is trained specifically for localized diagnostic output, but the external judge and linear probe baselines do not appear equally optimized for localization or feedback generation. Stronger baselines are needed, such as a fine-tuned external detector, a sequence/tagging model over tool arguments, or a localization head over internal states.

Finally, reproducibility is limited. Although the paper provides prompts, data-generation methodology, mask logic, and LoRA hyperparameters, the codebase is proprietary, and I could not find runnable evaluation scripts, generated trajectories, adapter checkpoints, or baseline implementations. This makes it difficult to independently verify the central empirical claims.

Questions
  1. Can the authors release anonymized evaluation trajectories, adapter checkpoints, and evaluation scripts, even if the full proprietary codebase cannot be released?

  2. Can the authors evaluate on human-written ambiguous tool-calling conversations, rather than only simulated-user trajectories?

  3. Can the authors compare against stronger localization baselines, such as a fine-tuned external detector, a sequence/tagging model over tool arguments, or a localization head over internal states?

  4. Can the closed-loop evaluation report trajectory-level success rate, blocked-call and false-block rates, retry counts, and runtime overhead, in addition to parameter-level precision/recall/F1?

My score could increase if the authors provide stronger public or human-authored evaluation evidence, more competitive baselines, and clearer reproducibility artifacts.

Limitations

Partially. The paper acknowledges the structured tool-calling scope and the base model’s recovery limitations, but it does not sufficiently discuss the dependence on synthetic labels, the limited human validation, the potential bias introduced by excluding blocked calls, and the lack of public reproducibility artifacts.

Paper formatting concerns

I did not identify major formatting or anonymity violations that should affect review handling.

Final justification

The rebuttal addresses most of my main concerns about baseline fairness, evaluation details, and reproducibility. The added baseline comparisons and closed-loop results make the empirical validation more convincing, and the clarification about code and evaluation resources improves my confidence in the results. While the reliance on synthetic trajectories and the lack of human-written interactions are still limitations, I believe the authors have sufficiently addressed my major concerns. I therefore increase my score from 3 to 4.

1 comment

We thank the reviewer for the detailed review and the concrete suggestions. We address the concerns on the baselines and reproducibility artifacts to strengthen the paper below.

Baseline fairness

We apologize that the External Judge description was unclear. It is fine-tuned, using the same CSL-labeled trajectories as the Latent Critic and trained to produce the same diagnostic output format, including parameter localization. We will clarify this in the revision. The Linear Probe serves a different purpose: it is the standard passive-probing baseline, isolating reading internal representations from our central contribution of restructuring them through the masked training objective.

Following your suggestion, we additionally compare against more baselines (Token Entropy, Semantic Entropy, and SEP (Kossen et al.)).

Table: Hallucination detection (ungrounded class), Qwen3-4B. (mean ± one standard deviation over 10,000 bootstrap resamples)
Base rates: ok (no hallucination) 41.6%, ungrounded (hallucination) 35.0%, wrong_tool 23.4%.

MethodF1AUROCAUPRC
Token Entropy0.668 ± 0.0310.674 ± 0.0350.626 ± 0.050
Semantic Entropy0.623 ± 0.0310.639 ± 0.0360.619 ± 0.049
SEP (Kossen et al.)0.623 ± 0.0310.548 ± 0.0380.482 ± 0.045
Linear Probe0.697 ± 0.0310.782 ± 0.0240.760 ± 0.033
External Judge0.695 ± 0.0410.915 ± 0.0160.864 ± 0.029
Latent Critic (ours)0.870 ± 0.0250.966 ± 0.0100.924 ± 0.027

Closed-loop evaluation details

We agree that deployment metrics are important in addition to parameter-level precision/recall. We therefore now report trajectory success, false-block rate, and standard deviations of the metrics reported in the submission.

ConfigurationTraj. Success (ID)False Block (ID)Traj. Success (OOD)False Block (OOD)
Base Agent16.4 ± 1.8—2.2 ± 0.8—
+ Generic feedback20.3 ± 1.89.4 ± 2.22.0 ± 1.415.9 ± 4.1
+ Specific feedback (ours)22.1 ± 1.92.9 ± 1.02.1 ± 1.513.2 ± 3.3
MetricGeneric (ID)Specific (ID)Generic (OOD)Specific (OOD)
Recovery rate (%)23.9 ± 2.737.0 ± 1.920.0 ± 5.329.3 ± 4.7
Attempts until recovery1.47 ± 0.141.06 ± 0.091.41 ± 0.121.00 ± 0.00

Specific feedback improves trajectory success while reducing false blocks by more than 3× (2.9% vs. 9.4%). It also resolves interventions more efficiently. Runtime overhead remains below 10 ms per executed tool call, since the adapter runs within the same decoding pass.

OOD trajectory success remains close to the frozen base model's ceiling across all methods, making this metric relatively insensitive. However, parameter-level recovery still improves (OOD F1: 36.7 vs. 35.3; precision: 66.8 vs. 52.5), indicating that the Critic continues to identify the correct intervention even when the base agent cannot fully recover.

Human-written conversations

We agree that evaluation on human-written interactions is an important future direction. Our setting, however, studies specification grounding -- whether the information required for a tool argument is present in the dialogue -- rather than naturalness of the interaction. This makes simulated users a common choice for controlled studies of ambiguity and clarification (e.g., SWE-Interact (Raghavendra et al.); Structured Uncertainty Guided Clarification for LLM Agents (Suri et al.)). Moreover, collecting balanced human data is logistically expensive as usable examples require both an underspecified interaction and a resulting hallucination, so many human trajectories must be discarded because each base agent can correctly ask for clarification or fail before hallucinating. We therefore use simulation to obtain controlled, balanced evaluations, while agreeing that larger-scale human evaluation would further strengthen the work.

Reproducibility

Beyond the methodology already described in the submission (generation pipeline, prompts, mask construction, and hyperparameters), we have prepared an anonymized repository containing:

  • evaluation scripts for the Latent Critic and all baselines,
  • bootstrap and closed-loop evaluation code,
  • representative ID and OOD trajectories with the human-verified labels.

The link to the anonymized repo is shared with the AC as per NeurIPS guidelines. Additional artifacts are undergoing internal review.

Reviewer_zRNxOpenReview ↗
Rating
5
Clarity
3
Confidence
4
Originality
3
Quality
2
Significance
3
Read review
Summary

The paper tackles a very specific form of hallucination in agentic systems that they call 'epistemic hallucination', i.e., the agent hallucinating inputs for the tool call that were not provided to it by the user. It uses LoRA based fine-tuning of the decoder to be able to detect such hallucination signals in parallel to text generation, as well as verbalized feedback to the agent as a form of self-critique.

The paper creates a dataset to simulate such epistemic hallucinations, and shows the benefits of their LoRA-based technique over other baselines. The setup is capable of not only detecting hallucinations, but even isolating their source to find the specific parameter that has been hallucinated. Moreover, the paper shows the advantages of self-critique using the hallucination information to self-correct the error.

Strengths and weaknesses

Strengths:

  • The problem setup of 'epistemic hallucinations' is quite important and impactful for the community.
  • The causal analysis showing the benefits of the LoRA-based technique to detect hallucinations is very well done, carefully highlighting the underlying trends.
  • At least on in-distribution datasets, the benefits of the technique proposed are quite clear. The technique beats existing baselines both in detecting hallucinations, as well as localizing their locations and self-correcting by asking further clarifications.
  • The dataset itself can be useful for future progress in this direction, and thus is also in itself a good contribution.

Weaknesses:

  • Most of the analysis is done in-distribution. To be clear, there is a clean train and test divide, and so there is no contamination. However, both train and test datasets are generated the same way, and thus will clearly have strong similarities. Compared to this, the results on the out-of-distribution dataset (ToolAlpaca, which only has two set of results) are not strong enough. Additionally, there are no considerations for standard deviations or error bars (what happens with different runs at some temperature value, for example). All of this makes me wonder if the improvements are strictly in a very specific tool call setting that is learned through the generated data, and whether the technique is generalizable.
Questions
  • Why do you think the improvements in the out-of-distribution dataset are significantly weaker compared to in-distribution? Do you think that hurts the generalizability of your technique?
  • How would your results change under repeated runs (due to generation temperature, changed prompting styles, or other variations)? Put differently, are the improvements shown statistically significant?
  • Why call the two critic techniques 'Non-verbal' and 'Verbal'? It seems to me the difference isn't the verbal part (they're both verbal feedback, aren't they?), but whether generic failure information is provided or specific parameters which were hallucinated are provided. Maybe Generic vs Specific, or something similar, are better names for the two techniques instead of calling them Non-verbal and Verbal?
Limitations

Yes

Paper formatting concerns

N/A

Final justification

Increasing the score after author rebuttal. Please see my comment for more details.

1 comment

We thank the reviewer for recognizing the importance of the problem and highlighting the causal analysis. We appreciate the concerns regarding generalization and statistical rigor, and we have run additional experiments to address them.

OOD generalization

We provide stronger evidence of out-of-distribution (OOD) robustness by evaluating all detectors on ToolAlpaca, adding the per-tool call classification performance to the previously reported downstream performance impacts. We further report threshold independent metrics AUROC, AUPRC and additional uncertainty-based baselines.

Table R2: OOD detection for hallucinations (ungrounded), Qwen3-4B. (mean ± one standard deviation over 10,000 bootstrap resamples)
Base rates: ok (no hallucination) 76.2%, ungrounded (hallucination) 20.7%, wrong_tool 3.1%.

MethodF1AUROCAUPRC
Token Entropy0.370 ± 0.0320.485 ± 0.0390.222 ± 0.031
Semantic Entropy0.369 ± 0.0320.460 ± 0.0410.220 ± 0.032
SEP (Kossen et al.)0.372 ± 0.0380.499 ± 0.0390.235 ± 0.035
Linear Probe0.383 ± 0.0270.616 ± 0.0290.278 ± 0.032
External Judge0.647 ± 0.0210.884 ± 0.0200.741 ± 0.041
Latent Critic (ours)0.670 ± 0.0330.925 ± 0.0150.815 ± 0.034

The Latent Critic remains the strongest OOD detector, outperforming both the fine-tuned External Judge (AUROC 0.925 vs. 0.884) and the Linear Probe (0.616). All methods experience a substantial F1 drop OOD. We observe that ToolAlpaca is considerably harder for the base agent (~2% trajectory success vs. ~16% ID), suggesting that weaker downstream generations likely contribute to the reduced performance. Importantly, despite this shift, the Latent Critic remains the strongest detector across all metrics.

Why is downstream OOD performance weaker?

While OOD detection generalizes better relative to other approaches, closed-loop recovery and improved success rate is ultimately limited by the base agent's ability on the dataset.

Statistical significance and uncertainty

We agree that the closed-loop results should include uncertainty estimates. Detection significance was already established in the submission via McNemar's test (p < 0.001) on paired predictions (Sec. 3.2). We now additionally report bootstrap uncertainty estimates (10,000 resamples) for all closed-loop metrics.

Parameter-level metrics

MetricBase (ID)Generic (ID)Specific (ID)Base (OOD)Generic (OOD)Specific (OOD)
Precision49.7 ± 2.266.1 ± 3.469.8 ± 1.852.5 ± 3.462.3 ± 4.766.8 ± 3.0
Recall54.8 ± 2.641.9 ± 2.454.4 ± 2.226.6 ± 2.121.3 ± 2.825.3 ± 2.7
F152.1 ± 1.951.3 ± 2.261.2 ± 1.835.3 ± 2.231.7 ± 2.436.7 ± 1.9

Recovery (intervention subset)

MetricGeneric (ID)Specific (ID)Generic (OOD)Specific (OOD)
Recovery rate (%)23.9 ± 2.737.0 ± 1.920.0 ± 5.329.3 ± 4.7
Attempts until recovery1.47 ± 0.141.06 ± 0.091.41 ± 0.121.00 ± 0.00

We will include these in the revision.

Re-naming Verbal vs Non-Verbal to Specific vs Generic

Thank you for the suggestion. Generic and Specific more accurately describe the distinction, and we will rename them in the revision.

Comments on the paper

1 comment
Meta-review

The paper studies 'epistemic hallucination', a form of hallucination where the agent executes hallucinated, undesired actions to force a resolution. To address this problem, the authors propose Latent Critic, a LoRA adapter attached to a frozen base model that provides localized, natural language feedback to reduce epistemic hallucination. Experiments over Qwen and Llama-based models demonstrate the effectiveness of the proposed method.

Overall the reviewers agree that the author studies an interesting and focused problem. The authors did a great job address reviewers concerns through rebuttal and I believe this paper should be accepted.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.