Beyond Document Grounding: Span-Level Hallucination Detection over Code, Tool Output, and Documents
Hallucination detection for retrieval-augmented generation (RAG) is usually evaluated on natural-language document evidence. However, grounded generation systems increasingly rely on structured inputs: source code, developer-tool output, markdown documents, tables, and repository metadata. We introduce a unified benchmark for span-level hallucination detection over code, tool output, structured documents, and existing natural-language RAG datasets. The benchmark is built by starting from grounded correct answers, injecting localized hallucinations with exact character labels, and validating the code test split with evidence-based review. Our fine-tuned Qwen3.5-2B detector reaches 0.689 sp...
| Authors | Ádám Kovács, Bowei He, Xue Liu et al. |
|---|---|
| Primary category | cs.CL |
| Published | 1 July 2026 |
| Last updated at source | 1 July 2026 |
Connected in the knowledge graph
- KRLabsOrg/lettucedetect-code-hallucinationDataset · cited by
- KRLabsOrg/lettucedect-v2-qwen-2bModel · cited by
- KRLabsOrg/lettucedect-v2-taxonomy-headModel · cited by
- KRLabsOrg/lettucedect-v2-mmbert-baseModel · cited by
Models and datasets referencing this paper
Silytics shows public metadata from arXiv and links to the original. Information may be incomplete or out of date. Last refreshed 17 October 2026. Licenses and terms of the original apply to the work itself. Not financial, legal or professional advice.