64 papers · 172 extracted observations · code
Primary tasks / metricsCode Generation54Ai Control Monitoring1Code Completion1Code Refactoring1Code Review1Code Search1Machine Generated Code Detection1Recommendation1Regression1Synthetic Code Detection1Test Case Generation1
TaskCode Generation (137)Recommendation (6)Code Completion (6)Machine Generated Code Detection (4)Ai Control Monitoring (4)Code Search (4)Test Case Generation (3)
Showing 1 of 1 matching observations.
| Year | Method | Metric | Score | Protocol / Facets | Paper & Evidence | Reading list |
|---|---|---|---|---|---|---|
| 2026 | Six evaluated LLMs (combined) baseline | Non-equivalent refactorings under Eq@DFuzz | 32.09% | Code Refactoring · exclusions=timeouts and compilation errors · aggregation=six LLMs; both refactoring types | A Differential Fuzzing-Based Evaluation of Functional Equivalence in LLM-Generated Code RefactoringsSource quoteL140: As shown in Table \ref{tab:rq1_results}, all six LLMs struggle to preserve program semantics during refactoring, even though they were explicitly instructed to avoid unsafe rewriting. Codestral shows the highest percentage of non-equivalent refactorings (\approx 35%), followed closely by StarChat2 and CodeLlama. More concerning is that even Qwen-2.5, Olmo-3, and GPT-4o, often regarded as state-of-the-art codeLLMs, produce a non-negligible fraction of non-equivalent refactorings (19–22%), limiting their reliability for use in automated code refactoring. We further analyze the percentage of non-equivalent refactorings across datasets and refactoring types. Among datasets, APPS has the highest percentage (32.09%) of non-equivalent refactorings, compared to MBPP (25.33%) and HumanEval (22.10%). This is expected, since APPS has program-level codes, which are inherently more complex than the function-level codes in MBPP and HumanEval, making it more challenging for the LLMs to preserve program semantics while rewriting the code. Interestingly, although code simplification is considered a relatively easier refactoring that does not require as extensive structural transformations as performance optimization, the LLMs studied produce nearly the same fraction (\approx 26%) of non-equivalent refactorings for both refactoring types. This raises broader concerns about the reliability of LLM-generated refactorings, given that even seemingly less complex refactorings can introduce substantial risk of semantic deviation. | Lists Only you see this |