# Middo: Model-Informed Dynamic Data Optimization for Enhanced LLM Fine-Tuning via Closed-Loop Learning

**Authors:** Zinan Tang, Xin Gao, Qizhi Pei, Zhuoshi Pan, Mengzhang Cai, Jiang Wu, Conghui He, Lijun Wu

arXiv: 2508.21589 · 2025-10-23

## TL;DR

Middo introduces a dynamic, self-evolving data optimization framework for LLM fine-tuning that adaptively refines training data based on model feedback, significantly improving performance without increasing dataset size.

## Contribution

This work presents the first closed-loop, model-informed data optimization system that continuously adapts training data during LLM fine-tuning, enhancing data quality and model performance.

## Key findings

- Achieves an average accuracy increase of 7.15% across benchmarks.
- Effectively identifies suboptimal samples using model signals.
- Maintains dataset scale while improving model performance.

## Abstract

Supervised Fine-Tuning (SFT) Large Language Models (LLM) fundamentally rely on high-quality training data. While data selection and data synthesis are two common strategies to improve data quality, existing approaches often face limitations in static dataset curation that fail to adapt to evolving model capabilities. In this paper, we introduce Middo, a self-evolving Model-informed dynamic data optimization framework that uses model-aware data selection and context-preserving data refinement. Unlike conventional one-off filtering/synthesis methods, our framework establishes a closed-loop optimization system: (1) A self-referential diagnostic module proactively identifies suboptimal samples through tri-axial model signals - loss patterns (complexity), embedding cluster dynamics (diversity), and self-alignment scores (quality); (2) An adaptive optimization engine then transforms suboptimal samples into pedagogically valuable training points while preserving semantic integrity; (3) This optimization process continuously evolves with model capability through dynamic learning principles. Experiments on multiple benchmarks demonstrate that our Middo consistently enhances the quality of seed data and boosts LLM's performance with improving accuracy by 7.15% on average while maintaining the original dataset scale. This work establishes a new paradigm for sustainable LLM training through dynamic human-AI co-evolution of data and models. Our datasets, models, and code are publicly available at https://github.com/Word2VecT/Middo.

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/2508.21589/full.md

## Figures

40 figures with captions in the complete paper: https://tomesphere.com/paper/2508.21589/full.md

## References

67 references — full list in the complete paper: https://tomesphere.com/paper/2508.21589/full.md

---
Source: https://tomesphere.com/paper/2508.21589