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 , a framework that unifies mixing and selection by treating data curation as a problem without training proxy models or relying on external reference datasets. UniGeM operates hierarchically: learns mixing weights with stability-based clustering; 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 over a random baseline and further improves overall performance compared to SOTA methods in reasoning-heavy evaluations and multilingual generalization.

生成讲解博客的中文版本

生成AI智能校验的中文版本