arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2611.25003cs.LGcs.AIcs.CLcs.FLstat.ML
收藏

语言模型的多样化采样模型

A Model of Diverse Sampling from Language Models

ELLIS Institute Tübingen(埃利斯研究所蒂宾根分支);Mila(米拉研究所);ETH Zürich(苏黎世联邦理工学院);Cornell University(康奈尔大学);McGill University(麦吉尔大学)

Manuel Prada-Corral, Yahya Emara, Timothy J. O'Donnell, Ryan Cotterell, Tim Vieira

AI总结:

针对语言模型生成样本集合质量差的问题,提出PoolDPP方法,通过结合行列式点过程(DPP)与候选池采样,在多个任务上拓展了质量-多样性等性能边界并提升了多样性。

摘要:

语言模型通常能生成高质量的单个样本,但样本集合质量较差,重复样本会聚集在相同的语义模式周围。我们将多样化生成形式化为从行列式点过程(DPP)中采样大小为K的完整字符串子集,其中似然编码样本质量,嵌入几何编码相似输出间的排斥关系。对所有字符串进行精确推理是难以处理的,因此我们提出PoolDPP:从易处理的提议中抽取有限候选池,对候选样本进行重要性加权以匹配目标质量,并在诱导的池核上运行K-DPP采样器;一种贪心最大后验(MAP)变体提供确定性选择。我们证明了带有显式常数的有限样本界:采样器输出与目标K-DPP之间的KL散度随池大小呈O(1/N)衰减。实验表明,PoolDPP拓展了开放式生成的质量-多样性边界,以及歧义文本到SQL(Ambrosia)任务的精确率-召回率边界,在数学推理(GSM8K)任务中,其在保持相近的pass@K指标的同时提升了多样性。

英文摘要:

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. 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. 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$.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑