Research map / Large language models / Language, safety and interpretability
ETF: An Entity Tracing Framework for Hallucination Detection in Code Summaries
Kishan Maharaj, Vitobha Munigala, Srikanth Tamilselvam, Prince Kumar, Sayandeep Sen, Palanivel Kodeswaran, Abhijit Mishra, Pushpak Bhattacharyya
Indian Institute of Technology Bombay · IBM · University of Texas at Austin
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.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| replace direct summary-level prompting with entity tracing (ETF) | GPT4-Omni · CodeSumEval instance level | F1: 0.28 -> 0.73 | Improved |
| replace direct prompting with entity tracing (ETF) | Gemini-2.0 · CodeSumEval instance level | F1: 0.42 -> 0.64 | Improved |
| replace direct prompting with entity tracing (ETF) | Llama3-8B · CodeSumEval instance level | F1: 0.26 -> 0.50 | Improved |
| replace direct prompting with entity tracing (ETF) | Mistral-7Bv3 · CodeSumEval instance level | F1: 0.24 -> 0.41 | Improved |
| use ETF instead of direct prompting, across all six verifier LLMs | six LLM verifiers · CodeSumEval instance level | F1: e.g. 0.38 -> 0.54 (Llama-3.1-70B) | Improved |
| use smaller open models (Llama-3.1-70B, Llama3-8B, Mistral-7B) as verifiers in ETF | ETF · CodeSumEval instance level | F1: 0.73 (GPT4-Omni) vs 0.54, 0.50, 0.41 | Hurt |
| add few-shot examples of hallucination types to the verification prompt (ablation) | ETF intent verification · CodeSumEval | F1 | Hurt |
| use string-matching heuristics instead of prompt-based intent sentence extraction (ablation) | ETF · CodeSumEval | intent extraction quality | Improved |
| verify entity-intent pairs when the code references an undefined function or library | weaker LLM verifiers · CodeSumEval | accuracy | Hurt |
| use larger summary generator (Llama3-70B vs smaller models) | summary generation · CodeSumEval | mapped entities: 88.44% mapped, 8.69% unmapped | Improved |
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.91)
- LLM-Check: Investigating Detection of Hallucinations in Large Language Models (NeurIPS 2024 · similarity 0.90)
- Efficient Hallucination Detection in Automatic Code Generation (ACL 2026 · similarity 0.90)
- LongNovel: A Multi-Scale Benchmark for Hallucination Detection in Long-Context Novel Summarization (EMNLP 2026 · similarity 0.90)
- FaithBench: A Diverse Hallucination Benchmark for Summarization by Modern LLMs (NAACL 2025 · similarity 0.90)
- Scalable Token-Level Hallucination Detection in Large Language Models (NeurIPS 2026 · similarity 0.89)
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.