Using Small Language Models to Reverse-Engineer Machine Learning Pipelines Structures
Nicolas Lacroix, Frederic Precioso, Mireille Blay-Fornarino, Sebastien Mosser
Key points
From the paper's conclusion- We first compare several SLMs using Cochran's Q test, then evaluate the best-performing model against reference studies via two McNemar's tests.
Abstract
Context: Once defined a taxonomy of stages structuring Machine Learning (ML) pipelines (e.g. Data Preprocessing, Modeling...), extracting these stages from source code is key for better understanding ML practices. However, the diversity caused by the constant evolution of ML (e.g., algorithms, datasets) makes this task challenging. Existing approaches either rely on non-scalable manual labeling or on classifiers that do not properly support domain's diversity. These limitations call for more reliable solutions. Objective: We evaluate whether Small Language Models (SLMs) can leverage their code understanding and classification abilities to address these limitations, and enhance our understanding of practices in ML. Method: We conduct a confirmatory study based on two relevant reference works representing current limitations in the state-of-the-art. We first compare several SLMs using Cochran's Q test, then evaluate the best-performing model against reference studies via two McNemar's tests. An additional Cochran's Q test examines how taxonomy definition variations affect the SLM performance. Finally, goodness-of-fit tests compare ML practice insights from SLM classification with those from prior studies. Results: First, we found that the taxonomy wording significantly impacts classification performance. Second, the best performing SLM yielded good results, yet, without outperforming other classifiers. Third, the three classification methods led to significantly different insights, with varying effect sizes, when exploring practices of data scientists. Conclusions: Limitations of existing classification methods bias our understanding of ML practices. While current SLMs show promising results without prior fine-tuning, they still exhibit common limitations, in addition to inference high costs challenging their applicability in large-scale studies.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Large Language Models for Constructing and Optimizing Machine Learning Workflows: A SurveyACM Transactions on Software Engineering and Methodology · 2025
- Beyond Leaderboards: A Method for Application-Specific Capability Profiling of Large Language ModelsarXiv · 2026
- AutoML-Pipeline: A RAG-Enhanced Code Generation Framework With Pre-Validation for Cloud-Native Machine Learning WorkflowsIEEE Access · 2026
- DSL-Bench: Evaluating and Explaining LLM Code Generation Across Domain-Specific LanguagesarXiv · 2026
- Exploiting the Potential of Large Language Models in NLP : A Survey of Methods and ApplicationsWIREs Data Mining and Knowledge Discovery · 2026
- Selecting and generating web search based features using small language models for tabular data classificationScientific Reports · 2026