arXiv:2605.11845cs.CL2026-05被引 1

通过微调让大模型生成更符合指定概率分布的结果。

Probabilistic Calibration Is a Trainable Capability in Language Models

论文配图:Probabilistic Calibration Is a Trainable Capability in Language Models
图 1 · 摘自论文原文
  • 用数学分布生成提示语微调模型,提升概率校准能力。
  • 两种微调方法均显著提高新分布和未见参数下的采样精度。
  • 硬目标法适合精确数值生成,软目标法更利于广泛随机生成。

语言模型在需满足用户指定随机性约束的场景中应用日益广泛,但其生成概率常与目标分布偏差较大。本文研究通过微调直接提升该能力。具体地,在要求从数学分布中采样的合成提示上微调语言模型,并比较两种校准微调方法:一种将目标分布转化为基于前缀树的软目标下一词预测,另一种在同分布采样结果上进行硬目标训练。在跨12个模型、4个系列的实验中,两种方法均显著提升对保留分布族及未见参数设置下的结构化采样保真度,表明概率校准是可训练的能力。在选定配置下,硬目标微调在结构化数值采样中表现更强,而软目标微调在更广泛的随机生成基准(包括开放式随机生成、多选题位置平衡、NoveltyBench)上更优。部分情况下性能提升会损害下游能力,如算术推理,代价因模型而异。总体表明,概率校准可通过微调改善,硬目标配置侧重精确数值保真,软目标配置侧重广义随机迁移。代码已公开于 https://github.com/chandar-lab/calibration-finetuning。

原文摘要 · Abstract (English)

Language models are increasingly used in settings where outputs must satisfy user-specified randomness constraints, yet their generation probabilities are often poorly calibrated to those targets. We study whether this capability can be improved directly through fine-tuning. Concretely, we fine-tune language models on synthetic prompts that require sampling from mathematical distributions, and compare two Calibration Fine-Tuning variants: a soft-target method that converts the desired output distribution into trie-derived next-token targets, and a hard-target method that trains on sampled completions from the same target distribution. Across 12 models spanning four families, both methods substantially improve structured-sampling fidelity on held-out distribution families and unseen parameter settings, showing that probabilistic calibration is a trainable capability. Under our selected training configurations, the two methods exhibit different empirical profiles: hard-target fine-tuning is often strongest on structured numeric sampling, while soft-target fine-tuning performs better on broader stochastic generation benchmarks, including open-ended random generation, multiple-choice answer-position balancing, and NoveltyBench. The gains sometimes reduce downstream capability, especially arithmetic reasoning, with costs varying by model. Overall, our results show that probabilistic calibration can be improved through fine-tuning, with our hard-target configuration favoring exact numeric fidelity and our soft-target configuration favoring broader stochastic transfer. Code is available at https://github.com/chandar-lab/calibration-finetuning.

概率校准微调语言模型随机生成

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。