TANDEM: Bi-Level Data Mixture Optimization with Twin Networks

Jiaxing Wang, Deping Xiang, Jin Xu, Mingyang Yi, Guoqiang Gong +7 more
6/3/2026
cs.LG

No confident code implementation found for this paper.

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wang2026tandem,
  title  = {TANDEM: Bi-Level Data Mixture Optimization with Twin Networks},
  author = {Jiaxing Wang and Deping Xiang and Jin Xu and Mingyang Yi and Guoqiang Gong and Zicheng Zhang and Haoran Li and Pengzhang Liu and Zhen Chen and Ke Zhang and Ju Fan and Qixiang Jiang},
  year   = {2026},
  eprint = {2606.04401},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.04401v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.04401.svg)](https://codeofpaper.com/paper/2606.04401)

Discussion