cs.LGNov 18, 2026

A Model of Diverse Sampling from Language Models

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

Organizations: ETH Zürich · MPI-IS · ELLIS Institute Tübingen · Cornell University · 

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-KK 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 KK-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 KK-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@KK.

Figures & tables

Appendix figures & tables25 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Free Lunch for Pass@kk? Low Cost Diverse Sampling for Diffusion Language Models

    Mar 5, 2026Sean Lamont, Christian Walder, Paul Montague +2Diversity-Aware SamplingOutput Diversity in Language Models

  2. A Tale of Two Temperatures: Simple, Efficient, and Diverse Sampling from Diffusion Language Models

    Apr 10, 2026Theo X. Olausson, Metod Jazbec, Xi Wang +4Diffusion Language ModelsDiversity-Aware Sampling

  3. Mine, Sample, Render: Test-Time Diversity Alignment Of Generative Models

    Oct 15, 2026Kostas Triaridis, Morris E. Sharp, Nebojsa JojicGenerative ModelingDiversity-Aware Sampling