Standard methods for generating multiple outputs from Large Language Models (LLMs)—such as temperature sampling or top-p—treat each response as an independent event. While computationally efficient, this "parallel" approach often suffers from redundancy. Because each sample is drawn from the same probability distribution $P(\text{response} \mid \text{prompt})$, the model tends to cluster around the most likely "mode," leading to repetitive or structurally similar results.
A growing body of research suggests that the key to unlocking true variety is to break this independence. By generating responses sequentially and conditioning each new output on the ones that came before it, models can explicitly avoid their own previous ideas and explore the broader latent space of valid answers.
The Failure of Independent Sampling
When we ask a model for ten different ways to solve a coding problem, we expect a portfolio of strategies. However, as Harshita Diddee and colleagues demonstrate in NoveltyBench: Evaluating Language Models for Humanlike Diversity, modern "aligned" models often experience "mode collapse." They become so optimized for a single "safe" or "typical" answer that independent samples become nearly identical.
This "typicality bias" is a byproduct of human preference training. As Jiayi Zhang and Weiyan Shi argue in Verbalized Sampling: How to Mitigate Mode Collapse and Unlock LLM Diversity, the model isn't necessarily "forgetting" other possibilities; rather, the probability mass has been so concentrated on a few peaks that standard sampling rarely reaches the "long tail" of creative or diverse responses.
Turning Context into a Negative Constraint
The core mechanism of this research direction is the iterative feedback loop. Instead of generating $N$ responses in one go, the system generates them one by one. In each step, the previous outputs are fed back into the prompt.
This transforms the model's own history into a set of "negative constraints." When a model sees its previous response in the context window, its internal state naturally shifts. As Vlad Niculae and Irina Saparina show in Asking a Language Model for Diverse Responses, LLMs possess an inherent "diversity awareness." When explicitly shown what they have already said and asked for something different, they effectively suppress the tokens associated with the previous mode and redistribute probability toward unexplored reasoning paths.
This iterative refinement can be highly structured. Katherine Stasaski and Marti A. Hearst developed a metric called NLI Diversity that uses Natural Language Inference to identify contradictions and entailments between candidates. Their method systematically replaces the least diverse responses in a set, boosting semantic variety by over 130% by forcing the model to move away from redundant information.
Decoupling Exploration from Generation
Beyond simple variety, sequential conditioning allows models to solve more complex problems by exploring different "high-level" strategies before committing to a final answer.
In GuidedSampling: Steering LLMs Towards Diverse Candidate Solutions at Inference-Time, Divij Handa and Chitta Baral decouple the "exploration" of concepts from the "generation" of solutions. The model first iteratively proposes diverse theorems or coding patterns, with each new proposal conditioned on the previous ones to ensure they cover different parts of the solution space. Only after a diverse set of strategies is established does the model generate the final answers. This approach yields significant accuracy gains because it prevents the model from getting "stuck" on a single, potentially flawed reasoning path.
Similarly, Xiang Hu and colleagues' NOVA framework (NOVA: An Iterative Planning Framework for Enhancing Scientific Innovation with Large Language Models) uses iterative planning to identify "knowledge gaps." By explicitly looking for what is missing from its current set of ideas, the model can generate research proposals that are far more unique than those produced by standard retrieval methods.
Applications Across Domains
The power of sequential diversity is evident across various specialized tasks:
- Dialogue: Jing Yang Lee demonstrates that sequential generation allows small models to outperform much larger ones in conversation quality by explicitly avoiding the "one-to-many" redundancy problem (Modeling the One-to-Many Property in Open-Domain Dialogue with LLMs).
- Software Testing: Dong Huang uses an iterative loop to maximize code coverage, where each new unit test is prompted to explore execution paths not covered by previous attempts (Benchmarking LLMs for Unit Test Generation from Real-World Functions).
- User Simulation: Nigel Morris and the Elicitron team show that generating synthetic personas serially—where the model is aware of the "users" it has already created—uncovers a much wider range of latent needs and edge cases than parallel generation (Elicitron: An LLM Agent-Based Simulation Framework for Design Requirements Elicitation).
By treating diversity as a sequential search problem rather than a random sampling problem, these researchers have found a way to bypass the limitations of model alignment and tap into the full breadth of a model's latent knowledge.