Research evaluates legal citation hallucination detection: GPT-5 achieves 84.4% recall in the agentic frameworkWho Checks the Citations? Benchmarking Legal Hallucination Detection
The authors evaluate on the LePhantomCite test set, where the GPT-5 agent achieves a recall of 84.4% and an F1 of 55.0%.
- Lawyers, judges, and pro se litigants use AI to draft briefs, and documents containing fabricated citations have exceeded 1,000 and are increasing year by year. The authors state that model updates and sanctions have not made the problem disappear on its own, verification burdens will continue to increase, and no prior benchmark evaluated whether AI can verify legal citations.
- The authors derive five categories of citation hallucinations from real documents and construct LePhantomCite (1,300 entries): 1,000 excerpts have one error injected, and 300 come from Dahl et al. and are manually verified. BOED agents can search legal libraries and the web, with a maximum of 30 steps each, and there is a non-agent control.
- On eight ChatGPT models and 92 prompts, GPT-5.1's hallucinated citation rate is 6.57% (higher than GPT-4o from August 2024, pp=0.001). On the test set, the GPT-5 agent has recall of 84.4% and F1 of 55.0%; Claude Code has an F1 of 68.8%.
- The authors state that the semi-synthetic benchmark may not generalize to the hallucination distribution in real briefs, and should be viewed as a controlled lower bound on verification difficulty, and that it was only evaluated on short excerpts. The detection experiments used the 6 systems from Table 2 and the 390-item test set; the paper does not report the number of repetitions, nor whether the main results were computed after the ground truth update.
- Evaluated models
- GPT-5 (gpt-5-2025-08-07)Gemini 2.5 FlashGPT-OSS 120BQwen3-8BQwen3.6-27BClaude Code with Opus 4.8GPT-3.5 (gpt-3.5-turbo-1106)GPT-3.5 (gpt-3.5-turbo-0125)GPT-4o (gpt-4o-2024-05-13)GPT-4o (gpt-4o-2024-08-06)GPT-4o (gpt-4o-2024-11-20)GPT-4o (chatgpt-4o-latest)GPT-5.1 (gpt-5.1-2025-11-13)
- Benchmarks
- LePhantomCite92 legal drafting prompts
- Metrics
- RecallPrecisionF1citation hallucination rate
The research team proposed a taxonomy of legal citation hallucinations based on real court documents and built a dataset containing 1,300 legal document excerpts with injected errors to evaluate whether AI systems can automatically detect fabricated citations. They found that over 1,000 submitted documents contained fabricated citations, and the number has grown year by year. Benchmarking five models and Claude Code in both agentic and non-agentic settings showed that the latest models perform better, with GPT-5 achieving 84.4% recall and 55.0% F1 in the agentic framework, but all models struggled with subtle error categories. Agentic verification remains resource-intensive, with GPT-5 averaging 15.3 steps per excerpt; limited access to information also weakened the best agents, disadvantaging users without commercial legal database subscriptions.
Paper analysis
What problem does this paper attempt to solve?
The authors state that the citation hallucination rate no longer continues to decline, and they use LePhantomCite for automated verification.
How to automatically verify citation hallucinations in legal documents, and provide an auditable benchmark for this.
- Occurrence scenario: The authors state that lawyers, judges, and pro se litigants increasingly use large language models to draft filings, motions, and other documents. Fabricated citations point to invented law. The authors state that court documents with hallucinated citations have exceeded 1,000 and are increasing year by year; courts call it an abuse of the adversarial system, and judges repeatedly state the burden wastes judicial resources.
- Existing expectations: The authors state a popular view is that model improvements and high-profile sanctions will make the problem temporary. The authors state their findings and recent developments challenge this view: hallucinated citations in real documents are still increasing, and the hallucinated citation rate across 8 ChatGPT generations on the same 92 drafting prompts is not continuously declining. In mid-2024, GPT-4o is 1.23%, earlier GPT-3.5 about 25%; GPT-5.1 is 6.57%. §2 states the latter is higher than GPT-4o from August 2024 (bootstrap, pp=0.001); the introduction writes p=0.001. The paper does not give the specific rate for that August version.
- Another dimension of the burden: Even if the per-citation hallucination rate declines, newer models cite more per document and more often to less-cited cases. In Figure 2, the median citation count of cases cited by GPT-3.5 is over 500, and GPT-4o is the lowest at 105. The authors cite Chang (2026), stating that lower drafting costs will increase the total number of documents, and the verification burden will still increase.
- Gap and proposed work: The authors state existing research mostly evaluates whether legal interpretation, summarization, or question answering is correct, with no benchmark evaluating whether AI can verify legal citations. This paper provides a five-category taxonomy from real documents, LePhantomCite with 1,300 excerpts, and agentic and non-agentic verification evaluations.
What related research exists?
The authors state that existing legal hallucination research mostly evaluates whether generated text is correct, rather than verifying citations within documents.
Existing legal hallucination evaluations mainly focus on whether generated text is correct; the authors shift the task to case citations within documents.
Hallucination evaluation in legal tasks
- Summarization and explanation: Deroy et al. (2023) and Feijo and Moreira (2021) do closed-domain legal summarization; Savelka et al. (2023) evaluate explanations of legal concepts. The paper describes these without comparing them one-by-one to this work.
- Open-domain QA: Dahl et al. (2024), Fan et al. (2026), and Hu et al. (2025) evaluate hallucinations in open-domain legal QA. The authors group them with the above benchmarks, stating that the focus is on whether generated legal text is correct.
Legal hallucination taxonomy
- Three taxonomy works: Dahl et al. (2024) propose a general legal hallucination taxonomy; Magesh et al. (2025) extend it to retrieval-augmented generation; Hou et al. (2024) characterize gaps between human and machine-generated legal analysis, including hallucinations.
- Authors' comparison: The authors state that these taxonomies still center on the correctness of generated text. This work targets case citations embedded in documents, which the authors state is the most common hallucination in courts.
Format correctness and post-hoc detection
- Bluebook: Dahl (2025) evaluates whether models can generate format-correct Bluebook citations. The authors state this is the closest work, but it is a closed-domain formatting task; this work asks whether citation information is correct.
- Post-hoc detection: Chakraborty et al. (2025) survey post-hoc hallucination detection and correction. One category requires access to the original generation process, such as multiple sampling (Manakul et al., 2023; Mündler et al., 2024; Yehuda et al., 2024) or specialized prompting (Yu et al., 2024); another is generator-independent, including external discriminators (Chen et al., 2023b) and querying external sources to verify or correct summaries (Chen et al., 2023a). The authors state that this work belongs to the latter category.
Baselines and data
- Baselines: The non-agentic setting in Table 2 is the same prompt with belief updates and action selection removed; Claude Code with Opus 4.8 uses its own harness as a comparison. The evaluation data is the LePhantomCite test set. The trend experiments additionally use 92 legal drafting prompts, checking citations against CourtListener and Westlaw.
The authors state that no prior benchmark evaluated AI systems' ability to verify legal citations, and call this work a step toward automated verification.
How does the paper address this problem?
LePhantomCite injects five types of citation hallucinations and uses BOED agents to verify against non-agents.
LePhantomCite injects five types of citation hallucinations into appellate brief excerpts, then uses a BOED agent with access to searchable legal databases for verification.
Taxonomy and task
The task is to retrieve hallucinated spans from excerpts. The taxonomy comes from failure modes discussed by courts. A real citation can contain multiple types simultaneously, but each citation in the construction is injected with only one type.
- Nonexistent citation: Modifies the reporter volume, abbreviation, or page number so that it does not point to any real case.
- Case name mismatch: The reporter and case name point to two different real cases; either the case name or the reporter is replaced.
- Incorrect pincite: The case is correct, but the cited page does not support the quoted statement or proposition. A pincite refers to the specific page or section within a source.
- Verbatim misquotation: The text within quotation marks does not appear in that case. The authors replace one or two words with semantically similar synonyms and state that the meaning remains unchanged, thereby separating it from content misstatement.
- Content misstatement: The case exists but does not support the cited proposition. In addition to paraphrasing the gist, the authors include examples from Dahl et al. (2024) of Large Legal Fiction.
Data construction
- Collected appellate briefs from 13 U.S. federal appellate courts from January 2012 to December 2021 via CourtListener. Restricted to pre-2022 to reduce the likelihood that source documents themselves contain AI-generated content; appellate courts were chosen for baseline citation quality. The main text states that excerpts come from 245 documents. The appendix states that 323 PDFs were downloaded, 27,949 distinct citations were extracted, and documents with more than 200 citations were removed, leaving 279.
- olmOCR converted PDFs to text, a fine-tuned RoBERTa performed sentence segmentation, and Llama-3.3-70B-Instruct formed semantic paragraphs, yielding 5,648 paragraphs, from which 1,000 were sampled. Tables of contents and paragraphs without case citations were excluded.
- Qwen3-32B extracted case names, quotations, and gists, requiring exact substrings of the original text. Appendix A5.1 provides the extraction and rewriting prompts.
- 500 paragraphs (50%) contained injected hallucinations. The authors state that this proportion is for balanced evaluation and does not reflect the true hallucination rate in generated documents. Appendix A1.2 additionally states that 80% of documents were injected before segmentation, because documents containing hallucinations still leave many non-hallucinated paragraphs. Nonexistent citations and case name mismatches were replaced globally within the entire document to prevent the model from detecting errors via correct occurrences elsewhere.
- Added 300 central holdings from Dahl et al. (2024), reformatted to match the excerpt input. The original labels came from whether two model outputs agreed, not ground truth. The authors checked all 300 against Westlaw, confirming 42 as non-hallucinated. After merging, there were 1,300 items and 4,499 citation instances, of which 1,107 contained hallucinations. Figure A4: nonexistent 158, case name mismatch 189, incorrect pincite 177, verbatim misquotation 167, content misstatement 416.
For content misstatement, a senior author additionally reviewed 40 items, with 95% agreement, the rest being borderline cases (Appendix A1.2).
Agent
The verification system is based on Bayesian optimal experimental design (BOED), which the authors state is similar to frameworks by Zheng et al. (2026), Choudhury et al. (2026), Lidayan et al. (2026), and Murphy (2026). The belief state is a language record, updated each step, tracking extracted citations, quotations, and gists, with each item labeled correct, hallucinated, or pending. The authors state that citation verification is sequential and information-dependent, so they use information-directed search. They also tried Reflexion (Shinn et al., 2023), stating that it struggles to remember current judgments as action sequences lengthen, and BOED's belief state addresses this.
The agent has eight actions (Table A4): CourtListener citation lookup, on-site search, web search, fetch opinion, local opinion retrieval, read document, note, and think. Each excerpt has a maximum of 30 steps. The authors state that in Figure A4 (a), each paragraph has fewer than 18 citations with a median of 2, so 30 steps are sufficient. The non-agentic setting uses the same prompt but removes belief updates and action selection. Appendix A5 provides the full agent prompt.
Also evaluated Claude Code, with model Opus 4.8, effort default high, max_turns=30, using WebSearch, WebFetch, and CourtListener via MCP, with the same prompt as the non-agentic baseline.
Judgment
A predicted span matches a ground truth span if either is a substring of the other; slightly longer or shorter spans still count as correct. True positives are the number of predictions that hit at least one ground truth. Precision is true positives divided by predictions, recall is true positives divided by ground truths, and F1 is the harmonic mean of the two. Model outputs do not label span types, so the authors state that per-type precision is not accurate, and Table A6 reports only recall.
Appendix A1.4: After examining GPT-5's false positives on nonexistent citations, case name mismatches, and verbatim misquotations, the authors added clear typos from the original briefs to the ground truth (Table A1) and set optional spans (Table A2): hits count as true positives, and non-prediction does not count as a false negative. The paper does not state whether Table 2 was computed after this update.
What experiments did the paper conduct?
On the test set, GPT-5 agent recall is 84.4% and F1 is 55.0%; Opus 4.8 has an F1 of 68.8%.
The main detection results compare agents and non-agents on 390 test excerpts; the citation hallucination rate trend is a separate set of experiments.
Experimental Setup
- Trend experiment: The 8 models listed in Figure 2, all default models of the free-tier ChatGPT at the time: gpt-3.5-turbo-1106, gpt-3.5-turbo-0125, gpt-4o-2024-05-13, gpt-4o-2024-08-06, gpt-4o-2024-11-20, chatgpt-4o-latest, gpt-5-2025-08-07, gpt-5.1-2025-11-13. The same 92 drafting prompts produced over 8,000 citations, verified against CourtListener and Westlaw. Hallucination means not corresponding to a real case, or the case name not matching the case name in Westlaw for that reporter. The authors state this only covers the most obvious hallucinations and is a conservative lower bound on the overall rate.
- Detection models: Gemini 2.5 Flash, GPT-5 (gpt-5-2025-08-07), GPT-OSS 120B, Qwen3-8B, Qwen3.6-27B, and Claude Code with Opus 4.8. Table A5 lists the corresponding local configuration as Qwen3.5-27B (FP8). The paper does not state whether these two names refer to the same model.
- Data and split: LePhantomCite has 1,300 entries, split 70–30, and evaluation is only run on the 390 test entries. The full text has 4,499 citation instances, of which 1,107 contain hallucinations. The paper does not state the use of the training set.
- Run settings: BOED has max_steps=30. Non-agents use the same prompt, without belief updates or action selection. Claude Code has max_turns=30 and effort set to high. In Table A5, temperature is 0.8; GPT-5 has max tokens of 10,000, and the rest have 8,192.
- Metrics and review: Precision, Recall, F1 under loose substring matching. No LLM judge. The paper does not report the number of repetitions, nor does it explain the meaning of ± in Table 2.
Main Results
Units are %, ± as in Table 2. Claude Code uses its own harness; the non-agent column is listed as "-" in the paper.
Model Agent P / R / F1 Non-agent P / R / F1 GPT-5 40.8±4.3 / 84.4±4.2 / 55.0±4.2 36.9±4.5 / 58.2±5.2 / 45.2±4.2 Claude Code (Opus 4.8) 76.1±5.6 / 62.8±5.6 / 68.8±4.6 Not reported Gemini 2.5 Flash 16.9±2.4 / 66.9±5.1 / 27.0±3.3 25.3±4.2 / 43.5±5.9 / 32.0±4.4 Qwen3.6-27B 28.9±4.1 / 65.0±5.1 / 40.0±4.4 45.9±7.8 / 31.5±5.4 / 37.4±5.7 GPT-OSS 120B 21.1±3.2 / 55.1±5.8 / 30.5±4.0 14.9±3.0 / 30.7±5.5 / 20.0±3.7 Qwen3-8B 12.0±2.2 / 41.1±6.0 / 18.6±3.1 14.6±2.8 / 35.1±5.4 / 20.7±3.5 - Authors' interpretation: The authors state that BOED has higher recall than non-agents, and that GPT-5 is the best overall under this framework. In the table, F1 and precision are not uniformly higher: Gemini 2.5 Flash and Qwen3-8B have higher non-agent F1, and Qwen3.6-27B has higher non-agent precision.
- 26.2% and Claude Code: The authors state that agentic retrieval improves GPT-5's recall by 26.2%. Claude Code has the highest precision and F1 in the table, with recall lower than GPT-5, Gemini 2.5 Flash, and Qwen3.6-27B. The authors state it averages 15.4 tool calls per entry.
- Steps: GPT-5 averages 15.3 steps. The authors state this is the second highest; in Table A7, GPT-OSS 120B is 16.8 and Qwen3-8B is 7.5. The authors state GPT-5 uses 38.9% of actions to view already retrieved opinions; in Table A7, SEARCH_LOCAL_OPINION is 37.3% and READ_DOCUMENT is 1.6%.
Recall by Type
- GPT-5: In Table A6, non-existent citations and case name mismatches are both 100.0±0.0, tied with Gemini 2.5 Flash; incorrect pincites are 52.8±16.1, verbatim misquotations are 95.2±6.1, and content misstatements are 83.2±6.4. The introduction lists the last three numbers together as categories GPT-5 struggles with.
- Authors' summary and table: The authors state that, except for Qwen3-8B, all models detect non-existent citations and case name mismatches mostly above 80%. Qwen3-8B has 58.1±18.5 and 49.1±15.2 for these two categories. The authors state no model reliably detects incorrect pincites; Claude Code has 3.6±14.0 in that cell. Of all opinions retrieved by agents, 19.9% have no available text or lack page numbers.
- Conclusion and table note: The conclusion states content misstatements remain the hardest type to detect. The Table A6 note states all models perform worst on content misstatements and incorrect pincites. In the table, the column with the lowest recall for each model is incorrect pincites, not content misstatements.
Generation-Side Hallucination Rate
- Setup and definition: 8 free-tier default models, 92 prompts, over 8,000 citations. The authors state this definition is a conservative lower bound on the overall rate, not counting finer misstatements like "real cases but not supporting the stated proposition."
- Rates: In mid-2024, GPT-4o is the lowest at 1.23%; earlier GPT-3.5 is about 25%. GPT-5.1 is 6.57%. §2 states it is higher than GPT-4o from August 2024 (bootstrap, pp=0.001); the introduction states it is higher than the best-performing GPT-4o version in mid-2024 (p=0.001). The paper does not give the specific rate for that comparison version.
- Citation composition: The left panel of Figure 2 shows the median number of times the cited cases themselves are cited: GPT-3.5 over 500, GPT-4o at 105. The authors state newer models cite more per document; the main text does not give the number of citations per document. The right panel's axis has 0, 8, 16, 24, and bar heights cannot be read from the text.
Error Analysis
- Missing from the library: The test set has 132 correct citations that were not modified and have no results in CourtListener. Table A8: Gemini 2.5 Flash flags 87 (65.9%), GPT-5 flags 33 (25.0%), and Claude Code flags 14 (10.9%). The authors state weaker models treat missing from the library as evidence of hallucination. §4.3 states that of the citations GPT-5 did not immediately flag, 40 were verified via other sources, and 33 were still pending or had insufficient evidence. Appendix A3.3 separately states that of the 132, 88 were not immediately judged, and the paper does not explain the difference from 33.
- Steps and reliability: Of GPT-5's false negatives, 36.7% are due to reaching the 30-step limit; 29.5% of test episodes hit the limit. Reliability failures account for 30.6% of false negatives: output not matching format, early returns, or not recognizing all content of a citation. At the end of that paragraph, the authors leave a note "[Update this]".
- Redundancy and typos: In Table A9, GPT-5 episodes have 39.7% repeated citation lookups, 26.4% repeated opinion searches, and 8.2% searches after a hit. Of Claude Code's calls, 7.4% are exact duplicates, and 21.5% of its CourtListener tool calls are invalid. Agents also flag over 10 human typos in the original filings (Table A1).
Other Ablations and Analyses
- Average steps (Table A7): GPT-OSS 120B 16.8, GPT-5 15.3, Gemini 2.5 Flash 9.7, Qwen3.6-27B 9.3, Qwen3-8B 7.5.
- Action proportions (Table A7): GPT-5's OPEN_WEB_SEARCH is 8.3%; Qwen3-8B's citation lookups are 48.2% and SEARCH_LOCAL_OPINION is 14.9%.
- Episodes with any type of redundant call (Table A9): GPT-OSS 120B 62.1%, GPT-5 52.3%, Qwen3-8B 36.2%, Qwen3.6-27B 23.8%, Gemini 2.5 Flash 14.1%.
- False positive rate on CourtListener-missing citations (Table A8, 132 entries): GPT-OSS 120B 40.9%, Qwen3-8B 46.2%, Qwen3.6-27B 62.1%.
- Appendix A1.3: Of 27,949 distinct citations, 2,854 are not in CourtListener; these citations were not injected with hallucinations. Appendix A3.3 states about 10% of real citations in the dataset are Westlaw or Lexis identifiers that CourtListener cannot resolve.
What are some points that can be further explored?
The authors state that semi-synthetic benchmarks may not generalize to real documents, and the evaluation is conducted on short excerpts.
In §5.3, the authors place future work on naturally occurring hallucination samples, and on reliability and compute usage on long documents.
Limitations and future directions noted by the authors
- Semi-synthetic distribution: Results may not fully generalize to the hallucination distribution in real briefs; the authors encourage supplementing the dataset with naturally occurring examples (§5.3).
- Difficulty lower bound: The authors state that the benchmark should primarily be viewed as a controlled lower bound on verification difficulty (§5.3).
- Short excerpts: The evaluation targets short excerpts, while the longest collected brief is 193 pages, over 30,000 words, and over 1,000 citations. The authors state that compute usage and reliability issues are exacerbated in citation-dense briefs (§5.3).
- Long context: The authors state that reliability issues and long-context failures remain and require more research (§5.3).
- Future focus: The authors state that future detection work should focus on mitigating the above two types of issues, citing Rabanser et al. (2026) (§5.3).
- Data access: In §5.1, the authors state that improving automated verification performance requires broader public legal data, or verification systems built on commercial platforms.
Experimental coverage
- Trend experiments: 8 default models from the free tier of ChatGPT browser, the same 92 prompts, over 8,000 citations; hallucinations counted only when they do not correspond to a real case, or when the case name does not match the case name for that reporter in Westlaw (§2).
- Detection experiments: The 6 systems from Table 2, run only on the 390-item test set after a 70–30 split, with a step or turn limit of 30. The paper does not state the purpose of the training set (§4.1).
- Per-category and error analysis: Recall for the five hallucination categories is in Table A6. False positive and false negative analyses target GPT-5 with BOED, and are limited to nonexistent citations, case name mismatches, and verbatim misquotations (§4.3).
- Unreported statistics: The paper does not report the number of repetitions for the detection experiments, does not explain the meaning of ± in Table 2, and does not state whether the main results were computed after the ground truth update in Appendix A1.4.
- Judgment method: Precision, recall, and F1 come from substring matching, not an LLM judge. Content misstatement injections had an additional 40 items double-checked, with 95% agreement (Appendix A1.2). The paper does not report agreement between detection outputs and human judgments.
Summarize the main content of the paper
Citation hallucination has not steadily declined across generations; agents improve recall, but fine-grained error categories and data access still constrain verification.
Legal citation verification is framed as a benchmark: court documents with fabricated citations are increasing, and the hallucination rate on the generation side has not consistently decreased across model generations.
- What is being verified: The authors state that documents containing hallucinated citations exceed 1,000. On 8 free-tier ChatGPT models with the same 92 prompts, the hallucinated citation rate for GPT-4o in mid-2024 was 1.23%, and for GPT-5.1 it was 6.57%; §2 states that the latter is higher than GPT-4o as of August 2024 (bootstrap, pp=0.001). Newer models cite more per document, and the cited cases are less concentrated on common precedents.
- How it is evaluated: The five error types are nonexistent citations, case name mismatches, incorrect pincites, verbatim misquotations, and content misstatements. LePhantomCite contains 1,300 excerpts and 4,499 citation instances, of which 1,107 contain hallucinations. The BOED agent uses language beliefs to connect legal databases and web searches, with a maximum of 30 steps per query, and is compared against a non-agent baseline without this loop.
- Key numbers: On the 390-item test set, the GPT-5 agent achieves a recall of 84.4% and an F1 of 55.0%, while the non-agent achieves 58.2% and 45.2%. Claude Code (Opus 4.8) achieves an F1 of 68.8% and a recall of 62.8%. GPT-5 achieves 100.0% recall for nonexistent citations and case name mismatches, and 52.8% for incorrect pincites.
- Authors' conclusions: The authors state that responsible deployment requires treating citation verification as a first-class task, and note that the best model's F1 is 68.8%, with content misstatements being the hardest to detect. In Table A6, the lowest recall is for incorrect pincites. The authors also state that public databases lack page numbers and have incomplete coverage, which limits agents and also limits litigants without commercial databases. The semi-synthetic benchmark is considered by the authors to be a controlled lower bound on verification difficulty.