arXiv AI

scicode-lint: Detecting Methodology Bugs in Scientific Python Code with LLM-Generated Patterns

arXiv:2603. 17893v2 Announce Type: replace-cross Abstract: Methodology bugs in scientific Python code produce plausible but incorrect results that traditional linters and static analysis tools cannot detect.

arXiv AI
1d ago

Automatic Detection of LLM-Generated Code: A Comparative Case Study of Contemporary Models Across Function and Class Granularities

The study evaluates how well large language models (LLMs) can be detected when they generate code, comparing GPT‑3.5, Claude 3 Haiku, Claude Haiku 4.5, and GPT‑OSS across function‑ and class‑level code. Using 14,485 functions and 11,913 classes from CodeSearchNet, the authors trained CatBoost classifiers with interpretable software metrics and found that granularity (function vs. class) has a far greater impact on detection than the specific model, with function‑level detection dominated by GPT‑3.5 and class‑level detection dominated by the newer models. SHAP analysis revealed that the Comment‑to‑Code Ratio is the only universal feature, yet its importance varies widely among models, explaining why detectors trained on one LLM often fail on others.

By Musfiqur Rahman, SayedHassan Khatoonabadi, Ahmad Abdellatif, Emad Shihab
arXiv AI
Jul 7

Obey, Diverge, Collapse: Blind Obedience to Incorrect Instructions Drives Code LLMs to Irrecoverable Code Semantic Collapse

arXiv:2607. 04537v1 Announce Type: cross Abstract: Code language models are now trusted collaborators in production workflows for debugging, refactoring, and iterative repair, and every benchmark that evaluates them assumes the instructions they act on are correct.

By Raj Jaiswal, Anany Singh Divy, Savar Bhasin, Adi Bajpai, Tanuja Ganu, Rajiv Ratn Shah
arXiv AI
Oct 28

LLM Code Smells: A Taxonomy and Detection Approach

The paper "LLM Code Smells: A Taxonomy and Detection Approach" presents a refined taxonomy of nine LLM code smells and introduces SpecDetect4LLM, a static analysis tool for detecting them. Extensive empirical evaluation across 692 open‑source projects shows that 73.5% of systems contain LLM code smells, with the tool achieving 91.3% precision and 71.8% recall.

By Zacharie Chenail-Larcher, Brahim Mahmoudi, Naouel Moha, Quentin Sti\'evenart, Florent Avellaneda
arXiv AI
Sep 3

ToolGate: An Executable Acceptance Pipeline for Tool-Dependent Scientific Benchmark Construction

ToolGate is an executable acceptance pipeline designed to streamline the creation of scientific benchmarks that rely on specialist software. It evaluates each model-generated item through three gates: (1) an executable solution script must reproduce the proposed answer, (2) a randomized no‑tool screen rejects items solvable without the software, and (3) a tool‑using agent must solve the item within a time limit. In a FEniCSx instantiation, 500 generation attempts produced 128 unique, verified benchmark items after successive filtering.

By Ke Zhang, Yankang Liu, Roya Zandi, Maziar Raissi
arXiv AI
Nov 14

Bug Finding With Agentic Symbolic Execution

The paper introduces an agentic harness that combines the symbolic execution tool CrossHair with an AI coding agent to automatically instrument Python code, synthesize a symbolic environment for external dependencies, and generate concrete tests for bugs. Applied to over a million lines of code in popular open‑source Python web applications, the system enabled CrossHair to execute 81% of contracted functions and uncovered 1,050 bugs, many of which were not detected by a baseline inspection approach. The results show that symbolic execution can complement AI‑based code inspection by finding distinct classes of bugs, such as input‑domain corner‑case crashes versus incorrect outputs.

By George Granberry, Wolfgang Ahrendt, Andy Gordon, Moa Johansson