LegalHalluLens: Type-based hallucination audit and calibrated multi-agent debate for legal AILegalHalluLens: Typed Hallucination Auditing and Calibrated Multi-Agent Debate for Trustworthy Legal AI
LegalHalluLens audits CUAD legal extraction: intra-class HalTP gap 38.0–40.6 pp, false positives reduced by 45%.
- If legal extraction reports only aggregate hallucination rates, it does not reveal which clause types errors concentrate in, nor whether they lean toward omission or fabrication, leaving compliance deployment without actionable signals.
- LegalHalluLens on CUAD splits clauses into numeric, temporal, obligation/right, and factual, reports stratified HalTP, and uses RDI to compare omission versus fabrication. It then calibrates the asymmetry of the Skeptic's challenges and the addition/deletion gates based on this diagnosis.
- Four models' within-category HalTP gaps are 38.0–40.6 pp, and aggregate HalTP is 50.9%–56.5%. gpt-5.2 and qwen3-32b have full RDI of +0.161 and −0.202. On the 120-contract subset, false positives dropped from 524 to 287, and content contradictions went from 642 to 641.
- The authors state that the numeric results are limited to 510 English US commercial contracts, and generalization across jurisdictions and document types is unverified; the experiments assume full-text context. Experiment 2 has only one run, one backbone, and 120 contracts. The reviewer is gemini-2.5-flash, with no human verification of labels.
- Evaluated models
- gemini-3-flashgpt-5.2qwen3-32bllama-3.3-70bgemma-4-26B-A4B
- Benchmarks
- CUAD v1.0
- Metrics
- HalTPHalGenFARFRRAccJEqRDIScore
The researchers propose LegalHalluLens, a hallucination audit framework for legal AI, comprising a four-category legal claim classification hallucination profile based on CUAD (numerical, temporal, obligation/right, factual), a Risk Direction Index (RDI) that compresses omission and fabrication biases into a single comparable scalar, and a classification debate process calibrated by hallucination magnitude and direction. On 510 contracts and 249,252 clause-level instances, the team measured a gap of approximately 38–40 percentage points between the same model's performance on obligation/numerical versus temporal claims, a gap masked by aggregate metrics; two systems with the same overall hallucination rate of 52% can have opposite RDI. The debate process reduces fabrication detection by 45%, with per-category gains corresponding to diagnostic results, and matches commercial APIs with a smaller backbone model of 4B activated parameters. The authors state that the classification profile and RDI can reveal failure modes masked by aggregate metrics and serve as calibration inputs for multi-agent debate, where Skeptic questioning and asymmetric gating targeting measured failure modes outperform generic tuned debate.
Paper analysis
What problem does this paper attempt to solve?
Aggregate rates do not reveal the clause types where legal extraction errors concentrate, nor the omission or fabrication direction.
Aggregate hallucination rates do not reveal which category of legal clause extraction errors concentrate in, nor whether they lean toward omission or fabrication.
- Scenario: The authors state that legal AI has entered contract review, compliance monitoring, regulatory reporting, and due diligence, and practitioners make consequential decisions based on outputs; model selection itself carries legal exposure. The parties bearing the costs differ between fabricated liability caps and dropped obligation limitations.
- Current practice: The authors state that the current standard is reporting aggregate hallucination rates, with summaries around 52%. Averaging across types masks failure rates on clauses with the greatest legal consequences. The authors state that Dahl et al., Hou et al., and Magesh et al. do not address contract extraction nor compress direction into a deployable comparable scalar.
- Three questions: Whether type failure rankings are stable across architectures; whether omission and fabrication can be compressed into a single metric that separates systems with identical aggregate rates; whether debate calibrated by magnitude and direction concentrates gains on high-failure categories, and whether small open-source models can match commercial APIs on composite scores.
- Proposed framework: LegalHalluLens. Components are a four-category hallucination profile, Risk Direction Index (RDI), and a multi-agent debate calibrated by this diagnostic. Corpus is CUAD v1.0, full text verifiable, no external knowledge used.
What related research exists?
The authors say prior work did not address contract extraction or reduce directions to comparable scalars.
The authors position the gap in contract extraction and comparable directional scalars, rather than building another generic hallucination benchmark.
Legal Hallucination and Legal Benchmarks
- Typologies: Dahl et al. (2024) classify legal hallucinations on federal judicial tasks, with rates from 58% to 88%, and argue that not all patterns are equally important to legal practitioners. Hou et al. (2024) build a gap taxonomy for machine-generated legal analysis. Magesh et al. (2025) report that RAG in commercial legal AI does not eliminate hallucinations. The authors state that none of these three address contract extraction or condense directionality into a scalar usable for deployment comparisons.
- Task benchmarks: LegalBench (Guha et al., 2023), BLT (Blair-Stanek et al., 2024), and ContractEval (Liu et al., 2025) measure task accuracy without stratifying hallucination by claim type. CUAD (Hendrycks et al., 2021) provides expert annotations for classification, repurposed here as a hallucination oracle.
- Other diagnostics: Enguehard et al. (2025), Demir and Canbaz (2025), Purushothama et al. (2025). The authors state these works are orthogonal to this paper.
General Hallucination Benchmarks and Debate
- Factual precision: FActScore (Min et al., 2023), HaluBench (Ravi et al., 2024), HalluLens (Bang et al., 2025), and PHANTOM (Ji et al., 2025) measure factual precision without claim-type stratification.
- Debate mechanisms: Du et al. (2024), Fang et al. (2025), Li et al. (2025), and Hu et al. (2025) treat multi-agent debate as a factuality mechanism; Snell et al. (2024) and Wu et al. (2024) provide motivation for inference-time scaling. Huang et al. (2024) is used to contrast the content-correction ceiling later.
- Generic tuning: The authors note that works such as Du et al. (2024) and Hu et al. (2025) tune Skeptic prompts, gating thresholds, and aggregation rules across all error types, and consider this unsuitable for high-risk field deployment.
Baselines and Datasets
- Comparisons: Experiment 1 has no separate method baseline; it compares four extraction models on CUAD v1.0. Experiment 2 compares against gemma-base on the same 120-contract subset, as well as extractions from gpt-5.2, qwen3-32b, llama-3.3-70b, and gemini-3-flash. Composite score is the average rank of FAR, FRR, Acc, HalGen, and JEq, lower is better.
The authors position the four-type taxonomy and RDI as filling the gap in contract extraction and directional scalars; the debate component is set according to Experiment 1's per-type, per-direction failures. The authors state that, to their knowledge, this is a multi-agent extraction pipeline whose components are calibrated by measured failure modes rather than chosen generically.
How does the paper address this problem?
Using four-type HalTP, a signed RDI, and a six-role debate calibrated by that diagnosis.
LegalHalluLens uses type profiling and RDI for auditing, then calibrates a six-role debate with both. The first two are evaluation procedures; the third is mitigation.
Problem Setup and Metrics
- Instance: document D, clause type ci, extraction model M. Each (D, ci) yields a clause or a not present judgment. Relative to CUAD: TP is correct detection, FP is judged present when absent in the original, FN is judged absent when present, TN is correct absence.
- Detection: FAR = FP/(FP+TN), FRR = FN/(FN+TP), Acc = (TP+TN)/N.
- Content: An external reviewer labels TPs as supported or contradicted. HalTP = contradicted/TP, used in Experiment 1. HalGen = (contradicted+FP)/(TP+FP), counting fabrication as error, used in Experiment 2. JEq = supported/(TP+FN).
- Within-category gap: Gap(M)=maxci HalTP(M,ci)−minci HalTP(M,ci). The authors use it to indicate that aggregate HalTP averages over types with different deployment consequences.
Four-Type Hallucination Profile
- Partition: Based on primary verification difficulty, not document type. The authors consider it transferable to any legal extraction that can be checked against the original text. The mapping from 41 types to four is in Appendix D.
- Four types: numeric n=5 (thresholds, units); temporal n=6 (literal dates or durations); obligation/right n=27 (modality, exceptions, scope); factual n=3 (short identity claims such as parties, governing law).
- Evidence weight: The authors state that factual and numeric types have small n and serve only as supporting evidence; the central comparison is obligation (n=27) versus temporal (n=6).
Risk Direction Index
- Labels: mismatch type comes from a fixed list: none, numeric, temporal, obligation, scope, missing condition, extra condition, other. The directional ones are the last two: omitting a limitation in the original, or asserting a limitation not in the original.
- Definition: RDI(M)=(pextra(M)−pmissing(M))/100. p is the percentage of contradicted findings carrying that label. Positive leans fabrication, negative leans omission. No additional annotation is done.
- Authors' positioning: The direction concept has qualitative discussion in Dahl et al. (2024) and Hou et al. (2024); this paper condenses it into a signed scalar. The authors state it is a direction signal, not a cardinal measure of risk magnitude, because scope errors account for 62%–71% of contradictions.
Typed Debate
- Roles: Runs a state machine on the baseline extraction, at most two rounds. Skeptic issues typed challenges based on measured failure modes; Supporter defends using only the contract text; Re-extractor re-extracts on structural errors, triggered once only in round 1; if rounds are exhausted without agreement, Arbiter conservatively keeps the baseline unless counterevidence is strong; Verifier independently checks the contract and checks definition fit; Judge makes a binding content decision, constrained by the addition/deletion gates.
- Routing: If both agree, go to Verifier; if rounds remain and they disagree, continue; if deadlocked, Arbiter first. Figure 3 shows three stages: debate, independent verification, and gated Judge.
- Gates: The Addition Gate (absent to present) requires Verifier confirmation and debate agreement. The Deletion Gate (present to absent) is blocked when Verifier confirms existence. The authors state the asymmetry encodes the profile from Experiment 1 where FAR exceeds FRR on high-error types.
- Where challenges come from: Numeric asks whether the value is from the original or a common prior; obligation asks whether modality and exceptions are preserved; temporal asks whether it is explicit or inferred; factual asks whether the information comes from the document or external knowledge. Appendix C gives the full question set. The backbone is gemma-4-26B-A4B, not in Experiment 1; the authors state it has the worst baseline composite score on the matched subset, so improvement is attributed to the intervention rather than a stronger starting point.
Judgment and Review Separation
- External review: gemini-2.5-flash, temperature=0. Five criteria: numeric precision, temporal precision, modality match, polarity match, exception preservation. Appendix A is the full prompt. It produces all HalTP, HalGen, and RDI in the paper.
- In-pipeline Judge: Same as Experiment 2's extraction backbone, gemma-4-26B-A4B, only adjudicates the addition/deletion gates, does not compare against ground truth, and does not enter reported metrics.
What experiments did the paper conduct?
The four models have HalTP within-class gaps of 38.0–40.6 pp; debate reduces false positives by 45%.
The four models' HalTP within-class gap is 38.0–40.6 pp, which aggregation rates do not reveal.
Experimental Setup
- Models under test: Experiment 1 uses gemini-3-flash, gpt-5.2 (commercial API), qwen3-32b (32.8B), llama-3.3-70b (70B). Experiment 2 uses gemma-4-26B-A4B (MoE, 4B active parameters) as the backbone, not included in Experiment 1.
- Data: CUAD v1.0, 510 commercial contracts, 41 expert-annotated clause types, mapped to numeric 5, temporal 6, obligations/rights 27, factual 3. The authors state that results with small n for the latter two types are only supporting evidence.
- Experiment 1: Full context, temperature=0, identical structured JSON prompt (Appendix B), three runs per model. Nominal 510×41×3=62,730 per model; actual 62,580, 62,689, 61,536, 62,447, total 249,252. Missing rows 0.2%–1.9%, which the authors state is contract-related rather than random.
- Experiment 2: 120-contract matched subset, run id=1, nominal 4,920. Baselines are gemma-base and the four Experiment 1 models' extractions on that subset. qwen3-32b has 4,817 rows; Table 4 note says this caveat applies when comparing it. The paper does not state how the 120 were selected.
- Metrics: FAR, FRR, Acc, HalTP, HalGen, JEq, RDI. Score is the average rank across five metrics, lower is better.
- Review: External reviewer gemini-2.5-flash, temperature=0, separate from the in-pipeline Judge. The paper does not report repeated reviews or agreement with humans.
Main Results
Per Table 2. HalTP is the proportion of detected clauses judged contradicted. 510 contracts, three runs.
Swipe horizontally to read the table
Model Numeric Obligations/Rights Factual Temporal Within-class gap (pp) gemini-3-flash 67.5% 67.3% 36.0% 29.5% 38.0 gpt-5.2 70.3% 64.8% 44.3% 29.7% 40.6 qwen3-32b 66.8% 69.1% 39.3% 29.0% 40.1 llama-3.3-70b 74.3% 73.6% 46.9% 35.1% 39.2 - Ranking: The authors state that {numeric, obligations} are higher than factual, and factual is not lower than temporal, with no exception across the four models; aggregated reporting does not show this gap. Table 1 aggregated HalTP is 50.9%–56.5%, which the authors state falls within a 6 pp range, insufficient to support deployment decisions.
- Authors' explanation: Obligation clauses must simultaneously preserve modality, trigger conditions, exceptions, and scope; temporal types are mostly single literal values; Appendix B.1 already includes exclusion notes for numeric types, yet numeric types remain in the same high-failure tier as obligations. The authors state that pretraining priors override explicit prompts.
- No single leader: The authors state that the choice depends on which clause type matters most in deployment. llama-3.3-70b has FAR 7.7% and Acc 89.0% in Table 1, but §6.2 reports its numeric FRR as 52.8% and numeric JEq as 12.1%. Table 1's HalGen reorders models: lowest gpt-5.2 at 62.4%, highest gemini-3-flash at 65.5%.
Error Direction and RDI
- What was measured: Compared missing condition vs. extra condition on contradictory TPs. Figure 2 annotations: qwen3-32b missing 23.7%, extra 3.5%; gpt-5.2 missing 4.9%, extra 21.0%; gemini-3-flash 13.8% and 11.4%; llama-3.3-70b 20.3% and 1.3%. qwen3-32b and gpt-5.2 have HalTP 52.1% and 51.8% (Table 1).
- Scalar: Table 3 (95% bootstrap, 2,000 resamples): gpt-5.2 +0.161 [+0.151, +0.170], gemini-3-flash −0.024 [−0.035, −0.015], llama-3.3-70b −0.190 [−0.198, −0.180], qwen3-32b −0.202 [−0.212, −0.193]. The authors state that the intervals of the first two and the last row do not overlap, so the direction separation is not run noise.
- Authors' reading: RDI covers only the part of errors with a clear direction. When missing obligations in compliance creates liability, the authors consider gpt-5.2's positive RDI a safer profile; when false positives consume review capacity, the ranking reverses. The authors state there is no universally correct model.
Calibration Debate
- False positives and content: 120 contracts, run id=1, gemma-4-26B-A4B baseline vs. typed debate. False positives dropped from 524 to 287 (−45%), content contradictions from 642 to 641 (−0.2%). The authors state the mechanism is filtering confabulation, not fixing the content of detected clauses, and that this aligns with Huang et al. (2024): baseline and Skeptic share parameter priors.
- Per-type: The authors state the order of gains was specified before running mitigation. Obligations ∆FAR=−8.2, ∆HalGen=−6.3; factual ∆FAR=−5.8; numeric ∆FAR=−3.6; temporal ∆FAR=−2.4, temporal HalGen +0.6 pp (Figure 4 and §7.2). Obligations RDI went from −0.078 to −0.014 (Figure 5). The authors state this is a pre-specified result targeting omission bias, not a side effect.
- Composite score and counterexamples: In Table 4, gemma-debate is 2.4, gpt-5.2 is 2.6, gemma-base is 5.2. The authors state it ranks 1st under the 4/5 weighting scheme; under recall-heavy, gpt-5.2 ranks 1st and gemma-debate 2nd (Appendix E.3). In Table 4, gemini-3-flash has JEq 46.8 and FRR 4.5, llama-3.3-70b has FAR 7.6, better than gemma-debate's 43.3, 14.4, 8.4. The authors state the 4B active backbone matches commercial APIs on composite score; the paper does not report query counts or latency.
Other Ablations and Analyses
- Run variance (Appendix E.1): HalTP max SD 0.6 pp; per-type HalTP SD ≤ 2.4 pp; within-class gap still ≥ 36 pp at 1 SD.
- Obligation RDI (Appendix E.2): gpt-5.2 +0.220 [+0.207, +0.234], gemini-3-flash +0.018 [+0.004, +0.031], llama-3.3-70b −0.198 [−0.210, −0.186], qwen3-32b −0.181 [−0.194, −0.168].
- Weighting (Appendix E.3): Under equal weights, FP-heavy, Halluc-only, Detection-only, gemma-debate ranks 1st; under recall-heavy, 2nd. gemma-base ranks 5th or 6th.
- Missing rows (Appendix E.4): qwen3-32b three runs 20417, 20771, 20348 (nominal 20,910 per run). 5 contracts incomplete in all three runs, 58 incomplete in any run, sustained rate 8.6%.
- Obligation subtypes (Appendix E.5): Four-model average HalTP 42.7%–88.6%, within-bucket SD 12.4 pp; lowest Termination for Convenience 42.7%, highest Post-Termination Services 88.6%. The authors state the lowest subtype is still above the temporal range 29.0%–35.1%.
- Debate overhead (Appendix E.6): Average rounds 1.12, 87.9% end in round 1; detection changes 12.8%; Skeptic–Supporter agreement 99.94%; stability 90.6%. Flip rates: factual 4.2%, temporal 9.9%, numeric 13.8%, obligations 14.2%. Average rounds per type 1.10–1.20.
What are some points that can be further explored?
The authors state that results are limited to CUAD English U.S. contracts; cross-jurisdiction generalization and human verification remain to be done.
The authors list corpus scope, full-text context, Experiment 2 scale, and review labels as limitations.
Limitations and Future Directions Noted by the Authors
- Corpus: Numerical results apply to 510 English U.S. commercial contracts from CUAD; ranking is consistent across four architectures, but generalization across jurisdictions and document types remains to be validated (Limitations).
- Context: All experiments assume full text is within context; when exceeding the window, retrieval augmentation introduces additional failure modes orthogonal to those tested here (Limitations).
- Experiment 2: Single run, one backbone gemma-4-26B-A4B, 120-contract subset; composite ranking constitutes evidence only for that comparison (Limitations).
- Ablations: Minimal prompt and generic debate ablations are listed as direct extensions (Limitations).
- Review: All HalTP, HalGen, RDI evaluated by a single reviewer gemini-2.5-flash. The authors state there is no human verification of labels, and small RDI differences should not be over-interpreted; near-zero per-category RDI requires extra caution. Using expert annotations to verify a stratified sample is a direct extension; the authors state this would tighten the cardinal interpretation of RDI but not change the direction of ranking (Limitations).
- Transfer: Whether failure rankings transfer to other document types is not addressed in this paper, according to the authors; task-specific audits should be conducted rather than applying thresholds derived from CUAD to new scenarios (§8).
Experimental Coverage
- Experiment 1: gemini-3-flash, gpt-5.2, qwen3-32b, llama-3.3-70b, CUAD v1.0, 510 contracts, 41 categories, temperature=0, three runs per model, totaling 249,252 instances (§5).
- Experiment 2: gemma-4-26B-A4B, 120 contracts, run id=1, nominal 4,920; baselines include gemma-base and extractions from the same subset by the four Experiment 1 models (§5.2, Table 4). The paper does not specify the sampling rule for these 120 contracts.
- Review division: External review by gemini-2.5-flash, temperature=0; in-pipeline Judge is the same as the extraction backbone, not scored against ground truth (§5.3).
- Categories and inputs: Numerical 5, temporal 6, obligation/right 27, factual 3 (§5.1, Appendix D). Experiments conducted under full-text context.
- Not reported in the paper: Agreement between review and human annotations; number of queries or wall-clock time for debate. Appendix E.6 reports rounds, flip rates, and agreement rates.
Summarize the main content of the paper
The authors state that type profiling and RDI can distinguish systems with similar aggregate rates, and that the debate mainly reduces confabulation detection.
LegalHalluLens is an audit framework for legal clause extraction, plus a debate mitigation calibrated by the audit results.
- Problem: The authors argue that reporting only aggregate hallucination rates leaves compliance staff unable to see which clause types errors concentrate in, or whether the model is omitting obligations in the original or fabricating limitations not in the original. The abstract writes this aggregate rate as about 52%.
- Approach: On CUAD v1.0, collapse 41 clause types into numeric, temporal, obligation/right, and factual; use HalTP to examine content errors in detected clauses; use RDI to collapse missing condition and extra condition into a signed scalar. Mitigation is a six-role debate of at most two rounds: Skeptic challenges are written according to high-failure types, and the addition/deletion gates are set according to FAR exceeding FRR on high-error types. External scoring is separate from the in-pipeline Judge.
- Profile: Four models, three runs, 249,252 instances. Within-category HalTP gaps are 38.0–40.6 pp (Table 2), and aggregate HalTP is 50.9%–56.5% (Table 1). Across all four models, numeric and obligation are higher than factual, and factual is not lower than temporal.
- Direction: gpt-5.2 and qwen3-32b, with HalTP of 51.8% and 52.1%, have RDI of +0.161 and −0.202, with non-overlapping bootstrap intervals (Table 3). The authors argue that compliance and legal operations should select models based on this asymmetry rather than aggregate rates.
- Mitigation: On the 120-contract subset, gemma-4-26B-A4B after debate reduces false positives from 524 to 287, and content contradictions from 642 to 641. Composite score goes from 5.2 to 2.4, ranking 1st under 4/5 weighting; Table 4's JEq, FRR, and FAR still have components that are not best. Obligation RDI goes from −0.078 to −0.014.
- Authors' conclusion: Trustworthy deployment requires asking about the clause types and error directions of failures, not aggregate accuracy. The Impact Statement states that the best configuration still has 58.6% of detected clauses contradicting the original in content, and typed evaluation should inform rather than replace human review. In Table 4, gemma-debate's HalGen is also 58.6%; the paper does not state whether these two are the same metric.