DCMM-SQL: Automated Data-Centric Pipeline and Multi-Model Collaboration Training for Text-to-SQL Model

Yuanzhen Xie, Liu Ye, Jiqun Chu, Mochi Gao, Hehuan Liu, Yunzhi Tan, Bo Hu, Zang LiarXiv 2025

TL;DR

DCMM-SQL introduces an automated, data-centric pipeline combined with a multi-model collaborative training strategy to significantly boost Text-to-SQL performance. By automatically identifying and repairing noisy training data and generating targeted augmentations on model weaknesses, it achieves state-of-the-art results among lightweight models (under 70B parameters) on major benchmarks like BIRD and Spider.

What Problem Does This Paper Address?

While large language models (LLMs) have dramatically advanced Text-to-SQL tasks, most recent research focuses heavily on inference-time agent strategies—such as optimizing schema linking, prompt engineering, or multi-step error correction.

The authors identify a major unaddressed gap: the quality and optimization of the training data itself. Popular text-to-SQL benchmarks (like BIRD) contain a non-negligible amount of incorrect or noisy ground-truth annotations. Furthermore, single fine-tuned models often hit a strict performance ceiling because they develop narrow preferences for specific data patterns. This paper shifts the focus back to a data-centric approach, tackling both training data contamination and the inherent limitations of single-model fine-tuning.

Methods

The DCMM-SQL framework splits its innovation into an automated data-centric pipeline and a multi-model interactive training schema.

Figure 1: The overall structure of the DCMM-SQL method.

The core workflow consists of two primary phases:

  1. Adaptive Data Repair: The authors train an initial Text-to-SQL model on the standard training set. They then use this model to re-predict the training data. A robust multi-step verification module (incorporating syntax checkers, execution engines, and semantic consistency checks) evaluates the predictions. If the model's predicted SQL executes correctly and makes more sense than a flawed original label, the training instance is automatically repaired.
  2. Error Data Augmentation & Multi-Model Training: The system isolates "challenging cases"—instances where the initial model failed. It applies data synthesis techniques (like Query Diffusion to rephrase questions and Example Diffusion to rewrite query-SQL pairs across different databases) to expand this error dataset.
Figure 2: The overall structure of our propsoed Multi-LLMs collaboration training consists of two steps: first, 1) preliminary training with original data, then 4) active learning training with augmented erroneous data, where erroneous training data is found and repaired in 2) adaptive data repair, and then diffused and augmented by 3) error data augmentation. (Q: question, DS: database schema, SQL: original annotated SQL, SQL′: predicted SQL by init text-to-SQL model)

Instead of feeding all this data into one massive model, the authors train multiple distinct text-to-SQL models on different augmented data strategies so they develop complementary strengths. Finally, rather than using standard self-consistency voting, an Ensemble Module reformulates the final selection as a multiple-choice question, utilizing a specialized fine-tuned selection model to pick the optimal SQL query from the candidates.

Datasets

The framework was evaluated on two prominent Text-to-SQL benchmarks:

  • BIRD: A large-scale, database-grounded benchmark containing 12,751 unique question-SQL pairs across 95 databases.
  • Spider: A complex, cross-domain semantic parsing dataset containing 10,181 questions and 5,693 unique SQL queries across 200 databases.

The authors explicitly noted that they bypassed the newer Spider 2.0 benchmark because its training set was not fully released at the time of writing, preventing thorough model training and systematic baseline comparisons.

Key Insights and Ideas

  • Ground Truth Isn't Always "True": The automated pipeline successfully identified and corrected 143 flawed data instances in the BIRD training set and 95 in Spider. Fixing these underlying data errors led to immediate performance improvements across different model sizes.
  • The Law of Diminishing Returns in Error Augmentation: While augmenting data based on model errors is highly effective in the first iteration, repeating the process across multiple steps actually degrades final accuracy. This happens because automated validation modules have a small margin of error; over multiple iterations, these subtle validation mistakes accumulate and introduce harmful noise into the dataset.
  • Rethinking Ensembles: Standard ensemble methods rely on self-consistency (majority voting). However, if multiple models share a bias toward a specific incorrect pattern, majority voting fails. Framing the ensemble choice as a multiple-choice classification problem for a dedicated selection model proved significantly more robust.

Key Results

DCMM-SQL achieved first place among lightweight text-to-SQL models (defined as models within the 70B parameter threshold):

  • BIRD Benchmark: Utilizing a LLaMA3.3-70B base, the method achieved an Execution Accuracy (EX) of 72.69% on the Dev set, outperforming notable baselines like XiYanSQL and OmniSQL-32B.
  • Spider Benchmark: The framework achieved 88.5% accuracy on the Dev set and 89.84% on the Test set.
  • Scalability: Ablation studies demonstrated that the data-centric pipeline acts as a "plug-and-play" booster; as the base model size scaled up (from 7B to 32B to 70B), the performance gains became even more pronounced.

Limitations and Future Work

Despite its strong performance, the authors note that the framework's overall accuracy is still bottlenecked by its upstream and downstream components. Specifically, the schema linking module and the ensemble selection module both hover around 87% accuracy, leaving clear room for improvement.

Additionally, because the automated data validation module occasionally misclassifies complex queries, future work will focus heavily on optimizing the validation model to prevent noise accumulation during iterative training.

Summary updated

BibTeX
@misc{xie2025dcmm,
  author = {Yuanzhen Xie and Liu Ye and Jiqun Chu and Mochi Gao and Hehuan Liu and Yunzhi Tan and Bo Hu and Zang Li},
  title = {{DCMM-SQL: Automated Data-Centric Pipeline and Multi-Model Collaboration Training for Text-to-SQL Model}},
  year = {2025},
  eprint = {2510.23284},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.23284},
}
Figure