CodeMirage: Hallucinations in Code Generated by Large Language Models
14 Aug · Vibhor Agarwal, Yulong Pei, Salwa Alamir +1 · arXiv:2408.08333
Large Language Models (LLMs) have shown promising potentials in program generation and no-code automation. However, LLMs are prone to generate hallucinations, i.e., they generate text which sounds plausible but is incorrect. Although there has been a recent surge in research on LLM hallucinations for text generation, similar hallucination phenomenon can happen in code generation. Sometimes the generated code can…