Research map / Large language models / Language, safety and interpretability
Efficient Hallucination Detection in Automatic Code Generation
Georgii Andriushchenko, Roman Garaev, Lyudmila Rvanova, Artem Shelmanov, Vladimir Ivanov
Innopolis University · RAS · FusionBrain Lab · MBZUAI
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
This paper tried a common change: Chain-of-thought prompting
use chain-of-thought prompting instead of trained detector · Mixed dataset (DeepSeek-Coder 33B) · PR-AUC: .047 (CoT) vs Random .205 Hurt
What 2,675 accepted papers report for this change
- 1,683 improved
- 270 no clear effect
- 109 mixed
- 613 hurt
- AudioChat: Unified Audio Storytelling, Editing, and Understanding with Transfusion Forcing ICML 2026 · add structured chain-of-thought reasoning to the diffusion LLM · StoryGen-Eval editing · delta multiFLAM: 27.8 -> 11.7Improved
- Vision Language Models Cannot Reason About Physical Transformation ICML 2026 · add CoT prompt instead of Direct prompt · Number & Length · accuracy: F(3, 333) = 18.28Hurt
- VideoSEG-O3: A Multi-turn Reinforcement Learning Framework for Reasoning Video Object Segmentation ICML 2026 · Add CoT cold-start stage on top of SFT · Long-RVOS · J&F: 47.12 -> 51.82Improved
See this change in detailMatched by the wording of each paper's own result, read by AI from the full text. Papers report gains more often than failures, so this shows what gets published, not the chance a change works.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use supervised Transformer (TP, AW, HS) instead of best unsupervised method (Attention Score) | Uncertainty estimator · Line-level hallucination detection (mixed, DeepSeek-Coder 6.7B) | PR-AUC: +0.27 | Improved |
| use Transformer (TP, AW, HS) instead of MLP on hidden states | Uncertainty estimator · Line-level hallucination detection (mixed, DeepSeek-Coder 6.7B) | PR-AUC: +0.036 (.570 -> .606) | Improved |
| use Transformer instead of MLP on DeepSeek-Coder 33B | Uncertainty estimator · Mixed dataset (DeepSeek-Coder 33B) | PR-AUC: .579 (MLP) vs .575 (Transformer TP, AW, HS) | No clear effect |
| use Transformer instead of MLP on Llama 3 8B Instruct | Uncertainty estimator · Mixed dataset (Llama 3 8B) | PR-AUC: .638 -> .630 | No clear effect |
| add attention weights to hidden states as features (ablation) | Transformer · Mixed dataset (avg) | PR-AUC: .654 -> .650 | Mixed |
| add token probabilities to hidden states and attention weights (ablation) | Transformer · Mixed dataset (avg) | PR-AUC: .650 -> .678 | Improved |
| use token probabilities only as features (ablation) | Transformer · Mixed dataset (avg) | PR-AUC: .255 (Random .256) | Hurt |
| use attention-weights-only features instead of hidden states (ablation) | Transformer · Mixed dataset (DeepSeek-Coder 33B) | PR-AUC: .590 -> .303 | Hurt |
| increase LLM size from DeepSeek-Coder 1.3B to 33B | Transformer (TP, AW, HS) · Mixed dataset | PR-AUC: .719 -> .575 | Hurt |
| train on mixed domains instead of code synthesis only (ablation) | Transformer · Code repair test | PR-AUC: .309 -> .561 | Improved |
| train on mixed domains instead of synthesis only (ablation) | Transformer · Code synthesis test | PR-AUC: .349 (synthesis) vs .344 (mixed) | No clear effect |
| use chain-of-thought prompting instead of trained detector | LLM prompting · Mixed dataset (DeepSeek-Coder 33B) | PR-AUC: .047 (CoT) vs Random .205 | Hurt |
Open problems this paper states
- “Detector needs internal representations and is LLM-specific, so it cannot be applied directly to closed-source LLMs.” → Needs internal states or token probabilities, so closed API models are out. (an open problem in data and hallucination detection)
- “Diff-based annotation is spelling-sensitive and can mark correct lines of generated code as hallucinated, adding labelling noise.” → Hallucination labels come from judges or heuristics that can be wrong. (an open problem in data and hallucination detection)
Open problems in data and hallucination detection
Can hallucinations and training-data use be detected without model internals, across languages, long outputs and larger models?
- Needs internal states or token probabilities, so closed API models are out. · 19 papers state it
- Results come from small open models, not frontier or reasoning models. · 17 papers state it
- Tested only on English text in the detection setups. · 10 papers state it
Closest papers by meaning
- CodeHalu: Investigating Code Hallucinations in LLMs via Execution-based Verification (AAAI 2025 · similarity 0.94)
- ETF: An Entity Tracing Framework for Hallucination Detection in Code Summaries (ACL 2025 · similarity 0.90)
- UQLM: A Python Package for Uncertainty Quantification in Large Language Models (JMLR 2026 · similarity 0.90)
- Scalable Token-Level Hallucination Detection in Large Language Models (NeurIPS 2026 · similarity 0.89)
- LLM-Check: Investigating Detection of Hallucinations in Large Language Models (NeurIPS 2024 · similarity 0.89)
- Sample Transform Cost-Based Training-Free Hallucination Detector for Large Language Models (NeurIPS 2026 · similarity 0.88)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.