A Model of Diverse Sampling from Language Models
A Model of Diverse Sampling from Language Models
Computer Science > Machine Learning arXiv:2611.25003 (cs) [Submitted on 18 Nov 2026] Title: A Model of Diverse Sampling from Language Models Authors: Manuel Prada-Corral, Yahya Emara, Timothy J. O’Donnell, Ryan Cotterell, Tim Vieira.
计算机科学 > 机器学习 arXiv:2611.25003 (cs) [提交于 2026 年 11 月 18 日] 标题:语言模型多样化采样模型 作者:Manuel Prada-Corral, Yahya Emara, Timothy J. O’Donnell, Ryan Cotterell, Tim Vieira。
Abstract: Language models often produce high-quality individual samples but poor sets, with repeated samples clustering around the same semantic modes. We formalize diverse generation as sampling a size-$K$ subset of complete strings from a determinantal point process (DPP), where the likelihood encodes item quality, and the embedding geometry encodes repulsion between similar outputs.
摘要:语言模型通常能生成高质量的单个样本,但生成的样本集质量较差,重复的样本往往聚集在相同的语义模式周围。我们将多样化生成形式化为从行列式点过程(DPP)中采样大小为 $K$ 的完整字符串子集,其中似然函数编码了项目质量,而嵌入几何结构则编码了相似输出之间的排斥性。
Exact inference over all strings is intractable, so we propose PoolDPP: draw a finite candidate pool from a tractable proposal, importance-weight the candidates toward the target quality, and run a $K$-DPP sampler on the induced pool kernel; a greedy MAP variant provides deterministic selection.
对所有字符串进行精确推理是难以实现的,因此我们提出了 PoolDPP:从一个易于处理的提议分布中抽取有限的候选池,根据目标质量对候选者进行重要性加权,并在诱导的池核上运行 $K$-DPP 采样器;一种贪婪的 MAP 变体提供了确定性的选择。
We prove a finite-sample bound with an explicit constant: the KL divergence between the sampler’s output and the target $K$-DPP decays as O(1/N) in the pool size. Empirically, PoolDPP extends the quality—diversity frontier on open-ended generation and the precision—recall frontier on ambiguous text-to-SQL (Ambrosia), and on mathematical reasoning (GSM8K), it raises diversity at about the same pass@$K$.
我们证明了一个带有显式常数的有限样本界:采样器输出与目标 $K$-DPP 之间的 KL 散度随池大小以 O(1/N) 的速度衰减。实验表明,PoolDPP 扩展了开放式生成的质量-多样性边界以及歧义文本转 SQL(Ambrosia)的精确率-召回率边界,并且在数学推理(GSM8K)任务中,它在保持大致相同 pass@$K$ 的情况下提高了多样性。