{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/arxiv-2606-06959","title":"OpenHalDet: A Unified Benchmark for Hallucination Detection across Diverse Generation Scenarios","arxiv_id":"2606.06959","date":"2026-06-05","proceeding":null,"authors":["Xinyi Li","Zhen Fang","Yongxin Deng","Jinyuan Luo","Hongnan Ma","Changdae Oh","Zijing Shi","Shanshan Ye","Hanchen Wang","Shu-Lin Chen","Yadan Luo","Mengyue Yang","Sean Du","Sharon Li","Ling Chen"],"abstract":"Hallucination detection is essential for the reliable deployment of large language models (LLMs). However, existing evaluations face two core challenges: inconsistent inference configuration and evaluation, and limited coverage of downstream domains and tasks. Consequently, reported detector performance is often difficult to compare, reproduce, and generalize beyond specific experimental settings. We introduce OpenHalDet, a unified benchmark for hallucination detection across diverse generation scenarios. OpenHalDet standardizes the evaluation pipeline, from prompt construction and response generation to truthfulness annotation, detector scoring, and metric computation. It supports heterogeneous detector families under different access settings, including black-box methods that use only generated outputs, gray-box methods that rely on probability-based signals, and white-box methods that exploit internal model signals. By bringing diverse tasks, models, and detectors into a shared framework, OpenHalDet enables controlled comparison and provides a systematic view of how different detection paradigms behave in LLM applications. We release OpenHalDet as an open and extensible codebase to facilitate reproducible evaluation and future development of hallucination detection methods. The code and datasets are available at https://github.com/Nellie179/Hallucination-Detection.","url_abs":"https://arxiv.org/abs/2606.06959","url_pdf":"https://arxiv.org/pdf/2606.06959","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2606.06959","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2606.06959"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/Nellie179/Hallucination-Detection","reach":null}],"summary":{"ran":11,"unverified":1},"by_repo_kind":{"found_in_text":{"samples":12,"ran":11,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"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"},"n_pointer_only_for_licence":12,"samples":[{"code_sha256_prefix":"dd96454fcffcd31a","entry":"build_config_from_args","repo":"Nellie179/Hallucination-Detection","repo_kind":"found_in_text","path":"datasets_v1/generate_pipeline.py","file_url":"https://github.com/Nellie179/Hallucination-Detection/blob/HEAD/datasets_v1/generate_pipeline.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"dd96454fcffcd31a"}},{"code_sha256_prefix":"12c1afd60fecae4c","entry":"build_paths","repo":"Nellie179/Hallucination-Detection","repo_kind":"found_in_text","path":"datasets_v1/generate_pipeline.py","file_url":"https://github.com/Nellie179/Hallucination-Detection/blob/HEAD/datasets_v1/generate_pipeline.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"12c1afd60fecae4c"}},{"code_sha256_prefix":"4012bba7bbff6af0","entry":"enforce_safe_resume","repo":"Nellie179/Hallucination-Detection","repo_kind":"found_in_text","path":"baseline_detectors/runner.py","file_url":"https://github.com/Nellie179/Hallucination-Detection/blob/HEAD/baseline_detectors/runner.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"4012bba7bbff6af0"}},{"code_sha256_prefix":"ce8e84353366ef78","entry":"expand_list1","repo":"Nellie179/Hallucination-Detection","repo_kind":"found_in_text","path":"baseline_detectors/detectors/selfcheck_bertscore.py","file_url":"https://github.com/Nellie179/Hallucination-Detection/blob/HEAD/baseline_detectors/detectors/selfcheck_bertscore.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ce8e84353366ef78"}},{"code_sha256_prefix":"f20068145e441b7b","entry":"expand_list2","repo":"Nellie179/Hallucination-Detection","repo_kind":"found_in_text","path":"baseline_detectors/detectors/selfcheck_bertscore.py","file_url":"https://github.com/Nellie179/Hallucination-Detection/blob/HEAD/baseline_detectors/detectors/selfcheck_bertscore.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f20068145e441b7b"}},{"code_sha256_prefix":"e3a3819b06136feb","entry":"find_longest_modulelist","repo":"Nellie179/Hallucination-Detection","repo_kind":"found_in_text","path":"baseline_detectors/data_utils/llm_layers.py","file_url":"https://github.com/Nellie179/Hallucination-Detection/blob/HEAD/baseline_detectors/data_utils/llm_layers.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e3a3819b06136feb"}},{"code_sha256_prefix":"f645eb270214bfa4","entry":"find_module","repo":"Nellie179/Hallucination-Detection","repo_kind":"found_in_text","path":"baseline_detectors/data_utils/llm_layers.py","file_url":"https://github.com/Nellie179/Hallucination-Detection/blob/HEAD/baseline_detectors/data_utils/llm_layers.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f645eb270214bfa4"}},{"code_sha256_prefix":"94d234b775a86dc7","entry":"get_nested_attr","repo":"Nellie179/Hallucination-Detection","repo_kind":"found_in_text","path":"baseline_detectors/data_utils/llm_layers.py","file_url":"https://github.com/Nellie179/Hallucination-Detection/blob/HEAD/baseline_detectors/data_utils/llm_layers.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"94d234b775a86dc7"}},{"code_sha256_prefix":"2f924735d5b92b43","entry":"js_divergence_batch","repo":"Nellie179/Hallucination-Detection","repo_kind":"found_in_text","path":"baseline_detectors/data_utils/icr_score.py","file_url":"https://github.com/Nellie179/Hallucination-Detection/blob/HEAD/baseline_detectors/data_utils/icr_score.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"2f924735d5b92b43"}},{"code_sha256_prefix":"e0e335932dcdd76e","entry":"load_samples_from_json","repo":"Nellie179/Hallucination-Detection","repo_kind":"found_in_text","path":"baseline_detectors/extract_full_hidden_states.py","file_url":"https://github.com/Nellie179/Hallucination-Detection/blob/HEAD/baseline_detectors/extract_full_hidden_states.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e0e335932dcdd76e"}},{"code_sha256_prefix":"99a57d018c5cba8c","entry":"move_tensors_to_device","repo":"Nellie179/Hallucination-Detection","repo_kind":"found_in_text","path":"baseline_detectors/data_utils/icr_score.py","file_url":"https://github.com/Nellie179/Hallucination-Detection/blob/HEAD/baseline_detectors/data_utils/icr_score.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"99a57d018c5cba8c"}},{"code_sha256_prefix":"c31079ef8b45e418","entry":"get_detector","repo":"Nellie179/Hallucination-Detection","repo_kind":"found_in_text","path":"baseline_detectors/runner.py","file_url":"https://github.com/Nellie179/Hallucination-Detection/blob/HEAD/baseline_detectors/runner.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c31079ef8b45e418"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.CL","source":"arxiv_2026.jsonl"},"syntology_extracted_results":null}