Uncovering LLM-Generated Code: A Zero-Shot Synthetic Code Detector via Code Rewriting
Large Language Models (LLMs) have demonstrated remarkable proficiency in generating code. However, the misuse of LLM-generated (synthetic) code has raised concerns in both educational and industrial contexts, underscoring the urgent need for synthetic code detectors. Existing methods for detecting s…