Efficient Hallucination Detection in Automatic Code Generation
A lightweight Transformer-based detector is trained that uses LLM internal representations to identify hallucinations, substantially outperforming existing methods across several code generation domains and shows particular promise for enabling self-correction in LLM-based coding agents.