A Model of Diverse Sampling from Language Models
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- 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 -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 -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@.
Create a lesson
Metadata
- Categories
- cs.LG, cs.AI, cs.CL, cs.FL, stat.ML
- Comments
- NeurIPS 2026 paper
Related papers
PosteriorBench: Evaluating Behavior Posterior Sampling in Language Models
Shared title terminologycs.LGZhiyang Xun, Daniel D. Johnson, Sarah Schwettmann et al.
LAF-ECG: Multi-Resolution Lead-Aware Fusion of Time-Series and Language Foundation Models for ECG Classification
Shared title terminologycs.LGKiana Taktehrani, Maryam Hosseini, Amir Keynia et al.
Adaptation or Poisoning? Security Risks of Conversational Test-Time Learning in Large Language Models
Shared title terminologycs.LGHonghao Feng, Shanhan Qu, Kai Tong et al.
Pain Reassessment from Pulse Waveforms with Language Model Explanations
Shared title terminologycs.LGCheng Ding, Jiaming Liu, Daoqiang Zhang
A Finite-Rate Selection Law for Annealed Gibbs Sampling
Shared title terminologycs.LGIzhar Ali, Muhammad Haris Khan, Saeed Ahmad
Interaction Retention and Output-Likelihood Training in Parallel Sampling
Shared title terminologycs.LGDa Li, Bo Jin, Xiaopeng Wei et al.