用数据重加权训练更靠谱的代码生成裁判模型
DAJ: Data-Reweighted LLM Judge for Test-Time Scaling in Code Generation
- 基于双层数据重加权框架,自动识别难问题和匹配数据
- 在LiveCodeBench和BigCodeBench上超越现有最佳方法
- 无需人工设计规则,适合提升代码生成评测可靠性
代码生成的测试时扩展通常依赖Best-of-N选择:从基础模型采样多个候选解,由LLM裁判选出最优。但训练可靠裁判面临严重分布偏移问题,包括简单与难题不平衡、训练任务与评估基准不匹配,以及训练数据由低成本模型生成导致的行为差异。本文提出DAJ,一种基于推理的LLM裁判,采用可验证奖励的双层数据重加权学习框架。该框架学习数据重要性权重(域级或实例级),以优化在对齐目标基准的保留元集上的泛化性能。据我们所知,这是首次将数据重加权应用于LLM裁判训练用于测试时扩展。该方法自动强化难题、分布内样本和轨迹对齐数据,无需依赖人工设计启发式规则。实证表明,DAJ在LiveCodeBench和BigCodeBench上达到当前最佳性能,优于强基线及领先专有模型。
原文摘要 · Abstract (English)
Test-time scaling for code generation commonly relies on Best-of-N selection, in which multiple candidate solutions are sampled from a base model, and the best one is selected by an LLM judge. However, training reliable LLM judges is challenging due to severe distribution shifts, including imbalances between easy and hard problems, mismatches between training tasks and evaluation benchmarks, and trajectory mismatch arising from training data generated by cheaper models whose behavior differs from that of inference-time models. We propose DAJ, a reasoning-based LLM judge trained with verifiable rewards under a bi-level data-reweighted learning framework. The proposed framework learns data-importance weights (either domain-level or instance-level) to optimize generalization performance on a held-out meta set aligned with target benchmarks. To the best of our knowledge, this is the first application of data reweighting to LLM-as-a-Judge training for test-time scaling. Our approach automatically emphasizes hard problems, in-distribution samples, and trajectory-aligned data, without relying on hand-crafted heuristics. Empirically, DAJ achieves state-of-the-art performance on LiveCodeBench and BigCodeBench, outperforming strong test-time scaling baselines as well as leading proprietary models.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。