Evaluating Inference-Time Defenses Against Package Hallucination in LLM-Generated Code
The results recast package hallucination as both a measurement problem and a decoding-time control problem, and they demonstrate that the choice of defense must be matched to the threat model and recommendation utility.