TANDEM: Bi-Level Data Mixture Optimization with Twin Networks
About
The capabilities of large language models (LLMs) significantly depend on training data drawn from various domains. Optimizing domain-specific mixture ratios can be modeled as a bi-level optimization problem, which we simplify into a single-level penalized form and solve with twin networks: a proxy model trained on primary data and a dynamically updated reference model trained with additional data. Our proposed method, Twin Networks for bi-level DatA mixturE optiMization (TANDEM), measures the data efficacy through the difference between the twin models and up-weights domains that benefit more from the additional data. TANDEM provides theoretical guarantees and wider applicability, compared to prior approaches. Furthermore, our bi-level perspective suggests new settings to study domain reweighting such as data-restricted scenarios and supervised fine-tuning, where optimized mixture ratios significantly improve the performance. Extensive experiments validate TANDEM's effectiveness in all scenarios.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Sentiment Analysis | SST-2 (test) | Accuracy88.7 | 162 | |
| Boolean Question Answering | BoolQ (test) | -- | 41 | |
| Language Modeling | SlimPajama (test) | PPL (CommonCrawl)39.59 | 25 | |
| Multi-turn Dialogue Reasoning | MuTual (test) | -- | 19 | |
| Language Modeling | SlimPajama data-restricted | Average Perplexity24.35 | 17 | |
| Abstractive Summarization | AMRSum (test) | ROUGE-L45.19 | 6 | |
| Language Modeling | SlimPajama data-restricted regime 6B (test) | Perplexity (Arxiv)16.85 | 6 | |
| Multi-task Learning | Mixture of 6 task-level SFT tasks (test) | Test Loss0.508 | 6 | |
| Question Answering | SQuAD 1.1 (test) | Rouge-L72.73 | 6 | |
| Multi-choice Question Answering | SemEval (test) | Accuracy89.7 | 6 |