IMPROVE: Iterative Model Pipeline Refinement and Optimization Leveraging LLM Agents

Eric Xue, Zeyi Huang, Yuyang Ji, Haohan WangarXiv 2025 · DOI

Abstract

Building high-performing machine learning pipelines remains a complex task requiring expert intuition. This paper introduces IMPROVE, a multi-agent framework designed to automate pipeline design and optimization. Unlike existing LLM-based AutoML systems that attempt global updates, IMPROVE utilizes an Iterative Refinement strategy, modifying only one component at a time based on empirical feedback. Our results demonstrate that IMPROVE achieves human-competitive performance, securing top rankings in Kaggle competitions and significantly outperforming zero-shot LLM baselines and traditional fine-tuning methods.

Introduction

The creation of a machine learning (ML) pipeline—encompassing data preprocessing, architecture selection, and hyperparameter tuning—is often considered a "black art." While Large Language Models (LLMs) have shown promise in code generation, their application to AutoML is frequently hindered by entangled updates. When an LLM modifies an entire pipeline simultaneously, it becomes impossible to attribute performance changes to specific modifications. This lack of granularity leads to unstable optimization and premature performance saturation.

The IMPROVE Framework

To address these challenges, we propose IMPROVE, which implements a surgical Iterative Refinement strategy through five specialized LLM agents:

  1. Project Architect: Establishes the initial technical design based on dataset metadata.
  2. Data Engineer: Handles preprocessing and augmentation strategies.
  3. Model Engineer: Configures the model architecture (e.g., ConvNeXt, ViT).
  4. Training Engineer: Manages hyperparameters and optimization procedures.
  5. Performance Analyst: Acts as the central controller, reviewing training logs to identify bottlenecks and providing targeted feedback to a specific engineer.
The IMPROVE multi-agent framework architecture, illustrating the iterative feedback loop between specialized agents.

Key Methodological Innovations

  • Component-wise Updates: IMPROVE modifies only one module per iteration. If a change does not yield improvement, it is discarded, ensuring stable progress.
  • Unified Pipeline Initialization (UPI): The Architect generates a coherent "draft" pipeline before delegating submodules, preventing architectural inconsistencies.
  • Theoretical Foundation: The paper provides mathematical proof that Iterative Refinement eventually dominates "global" update strategies as the search space complexity increases.

Experimental Evaluation

We evaluated IMPROVE across a diverse set of tasks, including standard benchmarks (CIFAR-10, TinyImageNet), robustness tests (CIFAR-10-C), and visual adaptation tasks (SVHN, dSprites). Furthermore, we tested the framework in real-world scenarios using four Kaggle competitions.

Key Results

IMPROVE consistently outperformed baselines across all categories:

  • Benchmark Performance: On TinyImageNet, IMPROVE (using the o1 model) reached 86.92% accuracy, a massive improvement over the 46.30% achieved by zero-shot prompting.
  • Kaggle Success: The framework demonstrated human-competitive capabilities, ranking 1st out of 221 in the "4 Animals" competition and 6th out of 177 in "Arabic Letters."
  • Stability: Unlike zero-shot methods which exhibit high variance, IMPROVE shows significantly lower standard deviation, converging reliably to high-quality solutions.
Performance comparison of IMPROVE against zero-shot baselines and Kaggle leaderboard statistics.

Discussion and Insights

Our analysis revealed several critical insights into LLM-driven AutoML:

  • The Power of Isolation: Component-wise updates allow the Performance Analyst to establish clear causal links between code changes and accuracy shifts.
  • Dataset-Awareness: IMPROVE leverages natural language reasoning to avoid common pitfalls. For instance, it correctly identified that horizontal flipping should be disabled for digit datasets like SVHN to preserve semantic meaning.
  • LLM "Laziness": We observed that LLMs often default to basic configurations unless assigned specialized roles or specifically prompted to explore advanced techniques like MixUp or CutMix.

Conclusion and Future Work

IMPROVE demonstrates that a structured, multi-agent approach to iterative refinement can effectively automate the "black art" of ML pipeline design. While currently focused on image classification, future work will explore expanding the framework to tabular data and natural language processing. Additionally, improving the Analyst's ability to diagnose multi-factor failures remains a key area for development.

Summary updated

BibTeX
@misc{xue2025improve,
  author = {Eric Xue and Zeyi Huang and Yuyang Ji and Haohan Wang},
  title = {{IMPROVE: Iterative Model Pipeline Refinement and Optimization Leveraging LLM Agents}},
  year = {2025},
  eprint = {2502.18530},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.18530},
}
Figure