# Poster 28121

- Kind: Poster
- Talk page and recording: https://iclr.cc/virtual/2025/poster/28121

> Transcript of the talk's recording (session_asr), made by speech recognition or taken from the host's captions. It may contain errors. The words are the speakers'; listen to the recording on the talk's page before quoting it.

Hi everyone, I'll be presenting our work on ALE, a unified framework for language model data mixing. Training data curation is critical to the performance of large language models. One common technique is data mixing, where given a set of data groups such as domains or tasks, we wish to determine the mixture proportions over these groups that lead to the best performance.
An example is shown in the pie chart here, where practitioners compose a pre-training data set by mixing data from domains such as GitHub, Wikipedia, and Common Crawl. However, it's unclear how to identify good mixture proportions efficiently. Manually searching or tweaking these percentages is expensive. And so as a result, this has led to the development of many new data mixing algorithms that aim to learn the mixture proportions efficiently.
Despite the numerous data mixing algorithms available now, all of them fall short of consistently outperforming simple mixtures that don't require any learning or extra training. In our initial benchmarking, we looked at several different data sets and found that no existing method we studied outperformed stratified sampling in terms of average validation perplexity over the data groups.
This suggested to us that we don't really understand these data mixing methods, and it would be hard to confidently use these existing methods given that they don't consistently do better than a simple cheap approach like stratified sampling. So our first contribution is to understand existing data mixing methods by unifying them into a common optimization framework.
We looked at four popular data mixing strategies, data mixing laws, Doriami, Doge, and Skillet, and found that all of these methods are equivalent to solving the optimization problem shown here for some algorithm-specific configuration of parameters. While the details of the derivation are in the paper, let's unpack this theorem a bit more. We can see that the objective across data mixing methods is the same. We just want to minimize the average validation loss over all groups.
The main thing that differs is this constraint boxed in red here, known as the mixing law. This is an assumption on the relationship between the loss and the mixture proportions. And if this assumption holds true for the given parameters, then the corresponding method should yield approximately optimal mixtures. So here we've exposed that all mixing strategies have a common structure and solely differ in their mixing law assumptions.
We can take a closer look at this configuration of an optimization problem for each existing method in the table here. From the second column, we see that existing methods differ primarily in their mixing law parameters, namely this A of T matrix that captures the interactions among data groups over time. And you can see here that many methods hard code this A of T differently.
But by stripping down each method to their differences and how they set mixing law parameters, we now have a new way of analyzing these methods. Does the A of T that they use match up with the true A of T that captures the real loss proportion landscape? In our second contribution, our answer is no.
Empirically, we found that the methods A of T can significantly differ from the true optimal A of T star, which we learned by fitting a regression model over many training runs. In particular, we find that there is a correlation between the accuracy of A of T and the performance of the corresponding method, as shown in the figure here.
This result critically suggests that inaccurate AFT could be responsible for the inconsistent performance of existing data mixing approaches, which begs the question, can we develop a better mixing method by estimating the true AFT while we train? This brings us to our third contribution, AEOLI, a new data mixing method. AEOLI breaks training into multiple rounds, where each round has a learning stage where we learn AFT from many interleaved training runs.
Then in the remaining part of the round, we use this A of T that we've estimated to construct our mixture proportion for the round and train using this mixture proportion. Note that Aeoli is completely online and requires no extra training runs.
A result shows that ALE is the only method that consistently outperforms stratified sampling, all while requiring no extra training runs. This further validates our hypothesis that by improving how we set AFT in the mixing law, we can get better performance. So to summarize things, the performance of various mixing algorithms boils down to if their optimality assumptions align with the true loss proportion landscape.
By understanding this landscape and how it evolves throughout training, we propose Aeoli, a new data mixing algorithm that consistently outperforms standard approaches. Lastly, be sure to check out our paper for more results, and thanks for listening.
