用梯度空间多样性提升大模型推理泛化能力,效果远超传统数据增强方法。
Prismatic Synthesis: Gradient-based Data Diversification Boosts Generalization in LLM Reasoning
- 基于模型梯度熵设计新度量G-Vendi,精准捕捉训练数据对模型行为的影响。
- 在多个未见任务上,该方法使模型性能显著提升,相关性达Spearman's ρ≈0.9。
- 适合关注模型泛化、数据合成与小规模高效训练的研究者和工程师。
语言模型的有效泛化严重依赖训练数据的多样性,但现有度量多基于表面启发式,与模型行为脱节。通过覆盖300多次训练运行的大规模实验,我们发现数据多样性可作为大模型推理泛化的强预测指标——以未见过的分布外基准平均表现衡量。提出G-Vendi,通过模型诱导梯度的熵量化多样性。即使使用小型现成代理模型,其与分布外(OOD)性能的相关性仍高达Spearman's ρ≈0.9,优于其他度量。基于此,我们构建了普拉提斯合成(Prismatic Synthesis)框架,通过靶向梯度空间中低频区域生成多样化合成数据。实验表明,随着合成数据规模扩大,模型性能持续提升,不仅在分布内测试表现优异,更显著超越多个未见分布外基准。例如,由32B LLM蒸馏出的PrismMath-7B,在7个挑战性任务中有6个优于基于671B R1生成数据的R1-Distill-Qwen-7B,而后者所用生成数据量为我们的20倍。
原文摘要 · Abstract (English)
Effective generalization in language models depends critically on the diversity of their training data. Yet existing diversity metrics often fall short of this goal, relying on surface-level heuristics that are decoupled from model behavior. This motivates us to ask: What kind of diversity in training data actually drives generalization in language models -- and how can we measure and amplify it? Through large-scale empirical analyses spanning over 300 training runs, carefully controlled for data scale and quality, we show that data diversity can be a strong predictor of generalization in LLM reasoning -- as measured by average model performance on unseen out-of-distribution benchmarks. We introduce G-Vendi, a metric that quantifies diversity via the entropy of model-induced gradients. Despite using a small off-the-shelf proxy model for gradients, G-Vendi consistently outperforms alternative measures, achieving strong correlation (Spearman's $ρ\approx 0.9$) with out-of-distribution (OOD) performance on both natural language inference (NLI) and math reasoning tasks. Building on this insight, we present Prismatic Synthesis, a framework for generating diverse synthetic data by targeting underrepresented regions in gradient space. Experimental results show that Prismatic Synthesis consistently improves model performance as we scale synthetic data -- not just on in-distribution test but across unseen, out-of-distribution benchmarks -- significantly outperforming state-of-the-art models that rely on 20 times larger data generator than ours. For example, PrismMath-7B, our model distilled from a 32B LLM, outperforms R1-Distill-Qwen-7B -- the same base model trained on proprietary data generated by 671B R1 -- on 6 out of 7 challenging benchmarks.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。