SPIO: Ensemble and Selective Strategies via LLM-Based Multi-Agent Planning in Automated Data Science

Wonduk Seo, Juhyeon Lee, Yi BuarXiv 2025 · OpenReview

Abstract

Automated Data Science (AutoDS) has traditionally relied on linear, single-path execution, which is prone to error propagation if early decisions are suboptimal. We present SPIO (Sequential Plan Integration and Optimization), a multi-agent framework that leverages Large Language Models (LLMs) to explore multiple candidate strategies across the data science pipeline. By employing specialized agents for code generation, sequential planning, and optimization, SPIO achieves a 5.6% average performance improvement over state-of-the-art baselines. Our results across 12 benchmarks demonstrate that SPIO-E (Ensemble) and SPIO-S (Selective) modes provide a robust, transparent, and high-performing alternative to rigid automated workflows.

Introduction

Automated Machine Learning (AutoML) has evolved significantly, yet current LLM-based agents often suffer from a "single-track mind." Most systems generate a single plan and execute it linearly. In data science, which is inherently exploratory and iterative, this approach is fragile; a suboptimal choice in early stages—such as selecting an inappropriate encoding method—cascades through the downstream pipeline, degrading final performance.

Human experts experiment with diverse feature sets and model combinations to find the best solution. SPIO addresses the challenge of bringing this "strategic exploration" to automated systems without incurring prohibitive computational costs or complexity.

Methodology: The SPIO Framework

SPIO decomposes the data science pipeline into four core modules: Data Preprocessing, Feature Engineering, Model Selection, and Hyperparameter Tuning. The framework utilizes a collaborative ecosystem of three specialized agents:

  1. Fundamental Code Generation Agents: These establish a stable baseline by generating executable code for each module.
  2. Sequential Planning Agents: Instead of a single path, these agents review the baseline and propose up to $n$ alternative strategies (e.g., comparing different imputation methods or polynomial features).
  3. Optimization Agents: These act as the final decision-makers. SPIO offers two output modes:
  4. SPIO-S (Selective): The LLM evaluates all candidate plans and selects the single best end-to-end path.
  5. SPIO-E (Ensemble): The system selects the top-$k$ paths and ensembles their predictions (using soft voting or averaging) to maximize robustness.
The SPIO architecture features a multi-agent pipeline that transitions from task info to code generation and sequential planning, resulting in a flexible multi-path pipeline.

Crucially, SPIO employs a "generate-evaluate-select" loop at each stage. This ensures that later decisions are conditioned on intermediate evidence, such as validation scores, rather than optimizing modules in isolation.

Experimental Evaluation

The researchers evaluated SPIO across 12 diverse benchmarks, including eight Kaggle datasets (e.g., Titanic, Spaceship Titanic) and four OpenML datasets (e.g., Boston Housing, SAT11). To rule out data leakage, the framework was also tested on three Kaggle datasets released in 2025 (RainFall, BackPack, and Podcast), which were not present in the training corpora of the underlying models (GPT-4o, Claude 3.5 Haiku, and LLaMA3-8B).

Key Results and Performance

  • Superior Accuracy: SPIO achieved an average performance gain of 5.6% over state-of-the-art baselines like Agent K, Data Interpreter, and AutoKaggle.
  • Leaderboard Success: On post-2025 datasets, SPIO-E (using GPT-4o) ranked within the top 9% of the public Kaggle leaderboard.
  • Robustness and Efficiency: SPIO-S demonstrated a significantly lower failure rate (FR@K) compared to other agents, producing executable, error-free code more consistently while consuming fewer tokens than unconstrained autonomous agents like OpenHands.
A comparison on the Titanic dataset shows how SPIO's multi-path planning (SPIO-S and SPIO-E) outperforms standard zero-shot and Chain-of-Thought (CoT) prompting by exploring diverse preprocessing and model selection methods.

Discussion and Insights

The Power of Multi-Path Exploration

The primary insight from SPIO is that explicitly exploring and integrating multiple solution paths consistently outperforms rigid workflows. By generating alternatives, SPIO avoids "local optima." Ablation studies revealed that ensembling just the top two generated plans (SPIO-E) provided the optimal balance of diversity and precision.

LLMs as Strategic Rankers

The study found that LLMs are remarkably effective at ranking data science plans when provided with intermediate statistics and validation scores. In qualitative evaluations, human experts agreed with the LLM's top-ranked plan 72% of the time, highlighting the framework's transparency and interpretability.

Limitations and Future Work

While SPIO is highly effective, it remains dependent on the reasoning capabilities of the underlying LLM; smaller models like LLaMA3-8B struggle more with generating executable code on the first attempt compared to GPT-4o. Future research will focus on Dynamic Feedback, allowing agents to pivot mid-execution based on runtime errors, and further Cost Optimization to prune unpromising paths earlier in the search process.

Conclusion

SPIO represents a shift from linear automation to strategic, multi-path planning in data science. By mimicking the iterative nature of human expertise through a structured multi-agent framework, SPIO sets a new standard for performance, robustness, and transparency in the field of Automated Data Science.

Summary updated

BibTeX
@misc{seo2025spio,
  author = {Wonduk Seo and Juhyeon Lee and Yi Bu},
  title = {{SPIO: Ensemble and Selective Strategies via LLM-Based Multi-Agent Planning in Automated Data Science}},
  year = {2025},
  eprint = {2503.23314},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.23314},
}
Figure