AI RESEARCH
SolidCoder: Bridging the Mental-Reality Gap in LLM Code Generation through Concrete Execution
arXiv CS.AI
•
ArXi:2604.19825v1 Announce Type: cross State-of-the-art code generation frameworks rely on mental simulation, where LLMs internally trace execution to verify correctness. We expose a fundamental limitation: the Mental-Reality Gap -- where models hallucinate execution traces and confidently validate buggy code. This gap manifests along two orthogonal dimensions: the Specification Gap (overlooking edge cases during planning) and the Verification Gap (hallucinating correct behavior for flawed code). We propose SolidCoder with a simple principle: don't imagine -- execute. The S. O. L. I. D.