跳到正文
arXiv cs.CL· Davide Baldelli, Sruthi Kuriakose, Maryam Hashemzadeh, Amal Zouaq, Sarath Chandar·· 6 天前AI 评分32

语言模型的概率校准是一种可通过微调训练的能力

Probabilistic Calibration Is a Trainable Capability in Language Models

AI 导读

研究团队通过微调让语言模型学会按目标分布采样,提出软目标(将目标分布转为 trie 派生的下一 token 目标)与硬目标(在目标分布的采样补全上训练)两种 Calibration Fine-Tuning 方法。

正文 · 原文

View PDF HTML (experimental)

Abstract:Language models are increasingly used in settings where outputs should follow an intended distribution, yet their generation probabilities are often poorly calibrated to it. In many such requests the distribution is implicit and the valid outputs cannot be listed in advance, so the task cannot be passed to an external random number generator. 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 training on cheap synthetic mathematical distributions improves sampling on unseen distributions, even in natural language. The gains also transfer to broader stochastic generation benchmarks, including open-ended random generation, where fine-tuned models broaden their first-token support by one to two orders of magnitude, 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 either objective, and that calibration learned on mathematical distributions transfers to natural-language stochastic generation. Code is available at this https URL.
Subjects: Computation and Language (cs.CL)
Cite as: arXiv:2605.11845 [cs.CL]
  (or arXiv:2605.11845v2 [cs.CL] for this version)
  https://doi.org/10.48550/arXiv.2605.11845

arXiv-issued DOI via DataCite

Submission history

From: Davide Baldelli [view email]
[v1] Tue, 12 May 2026 09:28:24 UTC (1,120 KB)
[v2] Fri, 9 Oct 2026 13:57:35 UTC (1,221 KB)

来源:arXiv cs.CL · arxiv.org