Refusing the Impossible: A Taxonomy and Benchmark for Code Hallucination in Large Language Models
Source
arxiv.org
Author
Vishnu Asutosh Dasu, Ashish Kundu, Gang Tan
Date
Context
Code can run and still promise something impossible. This study tests whether coding models recognize requests that depend on nonexistent software or contradict established constraints. Its benchmark contains 270 deliberately unsatisfiable prompts and 91 matched solvable controls. Across twelve Open weightsA model whose learned parameter values have been made available to download, under terms the publisher sets.Full definition → models, the authors report ungrounded code on about 60% of impossible prompts and refusals on only 27%; none of the solvable controls received a mistaken refusal. The finding exposes a gap in evaluating coding assistants: producing executable code does not establish that the requested capability exists or that the ProgramA set of instructions stored so that a computer can run it.Full definition → can deliver it. Study abstract.
Terms in this piece · Glossary
Open weights — A model whose learned parameter values have been made available to download, under terms the publisher sets.
Program — A set of instructions stored so that a computer can run it.
Hallucination — Generated content that is false or unsupported, even when it sounds plausible.
Prompt — Information or instructions supplied to a model; in a chat, the request you type is often called your prompt.