mlsanityData to 14 Oct 2026

MLScent A tool for Anti-pattern detection in ML projects

arXiv 2502.18466 ↗First posted 30 Jan 2025cs.SE cs.AIcited by 2

Not on the map. Why?

Abstract (arXiv)

Machine learning (ML) codebases face unprecedented challenges in maintaining code quality and sustainability as their complexity grows exponentially. While traditional code smell detection tools exist, they fail to address ML-specific issues that can significantly impact model performance, reproducibility, and maintainability. This paper introduces MLScent, a novel static analysis tool that leverages sophisticated Abstract Syntax Tree (AST) analysis to detect anti-patterns and code smells specific to ML projects. MLScent implements 76 distinct detectors across major ML frameworks including TensorFlow (13 detectors), PyTorch (12 detectors), Scikit-learn (9 detectors), and Hugging Face (10 detectors), along with data science libraries like Pandas and NumPy (8 detectors each). The tool's architecture also integrates general ML smell detection (16 detectors), and specialized analysis for data preprocessing and model training workflows. Our evaluation demonstrates MLScent's effectiveness through both quantitative classification metrics and qualitative assessment via user studies feedback with ML practitioners. Results show high accuracy in identifying framework-specific anti-patterns, data handling issues, and general ML code smells across real-world projects.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 7 of its 41 references that are in the map. First posted on arXiv 30 Jan 2025.

Builds on

7 of 41 references.

References · 7

  1. 2017Snorkel: Rapid Training Data Creation with Weak Supervisioncited by 372
  2. 2019Machine Learning Testing: Survey, Landscapes and Horizonscited by 218
  3. 2021The Prevalence of Code Smells in Machine Learning projectscited by 16
  4. 2022Code Smells for Machine Learning Applicationscited by 8
  5. 2019Deep Learning Anti-patterns from Code Metrics Historycited by 3
  6. 2022"Project smells" -- Experiences in Analysing the Software Quality of ML Projects with mllintcited by 2
  7. 2024When Code Smells Meet ML: On the Lifecycle of ML-specific Code Smells in ML-enabled Systemscited by 2

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 2.

2 papers.