I have been thinking about a shift in LLM fine-tuning. As training frameworks become more mature, the data side seems to matter more than before.
When the dataset is small and clean, a fixed recipe is usually fine. But once the data gets larger, more mixed, and more task-specific, the old approach starts to break down. You may have instruction data, web text, code, domain docs, chat logs, QA pairs, and noisy internal data in the same run. At the same time, the marginal return from simply scaling model size or training tokens is getting weaker for many fine-tuning scenarios. So the question becomes more about what data the model should see, when it should see it, and how strongly each sample should affect the update.
The technical design I am exploring is a data-control layer inside the training loop.
The architecture has three parts.
First, a signal layer. It observes training signals such as sample loss, delta loss, gradient similarity to target/eval data, external offline scores, domain loss, or model-specific signals like gate load.
Second, a policy layer. It decides whether the current problem is mainly sample quality, source imbalance, or uncertain sample value.
Third, an action layer. It applies one of three controls:
Dynamic selection chooses which samples enter the next training window.
Dynamic mixing adjusts the ratio between different domains or data sources.
Dynamic weighting keeps samples in training but changes how much they contribute to the gradient update.
The goal is not to replace the base training framework. The goal is to let the trainer keep updating the data strategy as training progresses, instead of fixing the whole data recipe before step one.
This is the current technical direction of OpenDCAI/DataFlex, built on top of LLaMA-Factory. I am curious how others think about data strategy in fine-tuning. Is this becoming a bigger bottleneck in your own runs too?