The scaling of Large Language Models (LLMs) is increasingly limited by data quality. Most methods handle data mixing and sample selection separately, which can break the structure in code corpora. We introduce \textbf{UniGeM}, a framework that unifies mixing and selection by treating data curation as a \textit{manifold approximation} problem without training proxy models or relying on external reference datasets. UniGeM operates hierarchically: \textbf{Macro-Exploration} learns mixing weights with stability-based clustering; \textbf{Micro-Mining} filters high-quality instances by their geometric distribution to ensure logical consistency. Validated by training 8B and 16B MoE models on 100B tokens, UniGeM achieves \textbf{2.0× data efficiency} over a random baseline and further improves overall performance compared to SOTA methods in reasoning-heavy evaluations and multilingual generalization.
@article{arxiv.2602.03772,
title = {UniGeM: Unifying Data Mixing and Selection via Geometric Exploration and Mining},
author = {Changhao Wang and Yunfei Yu and Xinhao Yao and Jiaolong Yang and Riccardo Cantoro and Chaobo Li and Qing Cui and Jun Zhou},
journal= {arXiv preprint arXiv:2602.03772},
year = {2026}
}