# A Model of Diverse Sampling from Language Models

*Manuel Prada-Corral, Yahya Emara, Timothy O&#x27;Donnell, Ryan Cotterell, Tim Vieira*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/151475) · [OpenReview](https://openreview.net/forum?id=aKT7UzwbZC) · [Open on the map](../papers.html#p151475)

Category: [LLM Reasoning, Memory & RAG](../pcat/19.md) › [Autoregressive Reasoning and Decoding](../pgroup/490.md) · Type: new method · Keywords: diverse sampling, determinantal point process, language model generation, quality-diversity tradeoff, K-DPP

## Summary
algname is a diverse sampling method that builds a candidate pool and uses K-DPP or greedy MAP selection to improve the quality-diversity tradeoff of language model outputs.

## Explained to a 5-year-old
Language models sometimes give the same answer many times, which isn’t very helpful. This paper creates a way to pick many possible answers and then chooses some that are both good and different. It helps when we need lots of varied sentences, like stories or questions.

## Explained to a 5-year-old, longer
When you ask a computer program to write a story, it might repeat the same ideas over and over, making the story boring. The researchers noticed this problem and wanted a method that could give a set of answers that are both interesting and varied. They thought of using a special mathematical rule called a determinantal point process to measure how similar the answers are to each other. Then they built a system that first makes a big list of possible answers, tweaks them to be better, and finally picks a few that are far apart in meaning. This way, you get a collection of answers that are high-quality and diverse. The new method works well on tasks like creating open-ended text, answering SQL questions, and solving math problems. It also comes with a proof that the method gets closer to the right answer as more candidates are considered.

## For a technical reader
The paper addresses the issue of low diversity in language model outputs by modeling the selection as a determinantal point process. It proposes a practical pipeline that samples a candidate pool, re-weights them, and applies either K-DPP sampling or greedy MAP selection. Empirical results show improvements over existing baselines on generation, text-to-SQL, and math reasoning tasks. A theoretical bound guarantees the KL bias decreases as O(1/N) with pool size.

## Problem
Language models often produce high-quality individual samples but poor sets, with repeated samples clustering around the same semantic modes. This limits the usefulness of generated sets for tasks requiring varied outputs.

## Method
The approach draws a finite candidate pool from a tractable proposal, importance-weights candidates toward a globally tempered quality distribution, and then applies either K-DPP sampling or greedy MAP selection on the induced pool kernel to obtain a diverse subset.

## Results
The approach achieves superior quality-diversity tradeoffs compared to baseline methods on open-ended generation, Ambrosia text-to-SQL, and GSM8K tasks.

## Contributions
It formalizes diverse generation using determinantal point processes, provides a finite-sample bound on KL bias, and introduces a practical sampling algorithm that improves the quality-diversity frontier across multiple tasks.

## Research questions this paper is counted under

- [How can we increase output diversity in language models while preserving quality and avoiding repetition?](../q/173.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/151475)
