AIDB Daily Papers
コード補完タスクにおける幻覚検出のための多言語ベンチマーク「Delulu」
※ 日本語タイトル・ポイントはAIによる自動生成です。正確な内容は原論文をご確認ください。
ポイント
- コード生成LLMが補完タスクで生成する、もっともらしいが誤ったコード(幻覚)を検出するベンチマーク「Delulu」を開発した。
- このベンチマークは、7言語1,951サンプルからなり、敵対的パイプラインとDockerコンテナによる検証で幻覚を効果的に特定する。
- 評価の結果、最先端モデルでも幻覚を完全に排除できず、タスク固有の困難さが示された。
Abstract
Large Language Models for code generation frequently produce hallucinations in Fill-in-the-Middle (FIM) tasks -- plausible but incorrect completions such as invented API methods, invalid parameters, undefined variables, or non-existent imports. These failures pass superficial review yet introduce runtime errors. We introduce Delulu, a verified multi-lingual benchmark of 1,951 FIM samples across 7 languages and 4 hallucination types. Samples are curated through an adversarial pipeline: a frontier LLM generates plausible hallucinations, four diverse judge models evaluate them, embedding-based clustering mines progressively harder examples, self-contained Docker containers verify that golden completions compile while hallucinated variants produce the expected runtime error, and a final human-expert review removes any remaining biased or trivially decidable samples. We evaluate 11 open-weight FIM models from five families spanning 0.5B-32B parameters: a six-point Qwen2.5-Coder scaling slate, plus a cross-family slate (CodeLlama, DeepSeek-Coder-V2, StarCoder2). The strongest model reaches only 84.5% pass@1, no family exceeds 0.77 Edit Similarity, and every family produces hallucination-aligned completions on a non-trivial share of samples, confirming that the difficulty exposed by Delulu is task-intrinsic rather than family-specific. We release the benchmark, containers, and evaluation framework at https://github.com/microsoft/delulu.
Paper AI Chat
この論文のPDF全文を対象にAIに質問できます。
質問の例: