arXiv AI By Brahim Mahmoudi, Naouel Moha, Quentin Sti\'evenart, Florent Avellaneda

SpecDetect4ML: Detecting Non-Local ML Code Smells with Code Property Graphs

Read the original on arXiv AI →

arXiv:2509. 20491v3 Announce Type: replace-cross Abstract: Machine Learning (ML) pipelines encode quality-relevant decisions across data preparation, training, evaluation, and configuration code.

Machine-generated by The Flow from the publisher's headline and feed description — not written or checked by a human. The full article lives at arXiv AI.

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
Nov 14

MLIRBench - A Benchmark and Dataset for Compiler and Hardware-Aware Reasoning

MLIRBench is a benchmark and dataset designed to evaluate how large language models reason about MLIR programs. It uses a multi‑agent pipeline to generate, validate, and label program mutations, producing 1,768 verified pairs (888 linalg and 880 torch) categorized as EQUIV, DIVERGE, or ERROR. Nine models were tested, with Gemini 3.1 Pro achieving the highest hard‑label accuracy of 92.65% but still showing a gap between semantic classification and detailed execution behavior.

By Pranava Sai Maganti, Meghasyam Peddireddy, Muzakker Hossain, Kaining Gao, Farhan Ahmed, Ali Jannesari
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
Sep 24

Can LLMs Reason About Runtime Behavior? A Repository-Level Dynamic Benchmark

The paper introduces SWE-Flux, a repository‑level benchmark designed to test large language models’ ability to reason about runtime behavior. It contains 480 execution‑grounded instances from 12 real Python repositories, with gold answers automatically harvested from instrumented test executions. Evaluation of five LLMs shows the task remains difficult, with the best model achieving only 37% accuracy, and the benchmark can generate challenging variants through input perturbation.

By Hamed Taherkhani, Mohammad Abdollahi, Melika Sepidband, Hridya Dhulipala, Tien N. Nguyen, Hadi Hemmati