NTH

A Model of Diverse Sampling from Language Models

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

AffiliationsMPI-IS · ELLIS Institute Tübingen · Mila · Canada CIFAR AI Chair · CHI-FRO

November 23, 2026 2 min read
Watch on YouTube
The one-line take

PoolDPP selects language-model outputs that are both high-quality and less repetitive, with a theoretical guarantee and promising results across tasks.

Key results

0.251
Ambrosia recall

PoolDPP-MAP recall for covering annotated valid interpretations.

0.322
Ambrosia precision

PoolDPP-MAP precision at the reported high-recall operating point.

0.915
GSM8K pass@10

PoolDPP-MAP pass@10, versus 0.925 for ancestral sampling, with greater diversity.

13
PoolDPP-MAP selection time

Milliseconds to select from a pool of 400 candidates.

What the paper found

Language models can produce strong individual answers yet repeat the same idea across a set. PoolDPP addresses this by defining a size-K set as a determinantal point process: each output’s likelihood rewards quality, while embedding similarity makes redundant outputs less likely to appear together. Because searching all possible strings is infeasible, PoolDPP importance-weights a finite candidate pool and applies either stochastic K-DPP sampling or greedy MAP selection; its sampling approximation has a KL error that falls as O(1/N), where N is pool size. On FineWeb, PoolDPP-MAP extends the quality–diversity frontier; on Ambrosia, it reaches recall 0.251 at precision 0.322, trading some exact-match precision for broader coverage of valid SQL interpretations. On GSM8K, it increases reasoning-chain diversity while achieving pass@10 of 0.915, compared with 0.925 for ancestral sampling—a difference within 0.01. Experiments use Gemma-2-9B-Instruct, with robustness checks on Qwen3-8B and Llama-3.1-8B-Instruct, and embedding models MiniLM-L6 and Qwen3-Embedding-0.6B; Gemini 3.6 Flash is used to label reasoning-chain differences in an analysis. Pool creation dominates runtime: with 400 candidates, PoolDPP-MAP selection takes 13 ms, making the set-selection step small relative to language-model generation.

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

Read the original paper

More in Large Language Models

Browse all 102 papers →