AI
New two-stage sampling method helps language models generate more diverse, high-quality responses
Intent Factored Generation breaks down the sampling process into semantic intent and refined output stages to improve both diversity and coherence.
Generating varied, coherent outputs from large language models while maintaining quality remains a significant challenge. Most existing approaches focus narrowly on token-level adjustments, resulting in superficially different paraphrases of the same underlying response—a limitation that weakens reasoning capabilities and produces dull conversational experiences.
The two-stage factorization approach#
A new paper presents Intent Factored Generation (IFG), which separates the generation process into two distinct phases. The method first samples a semantically dense intent—such as a summary, set of keywords, or strategic framework—that serves as an anchor for the response. Only then does the model generate the final output, drawing from both the original user prompt and the intent generated in the first stage.
This factorization offers a critical advantage: the model can operate at higher temperatures (more randomness) during intent sampling to maximize conceptual variety, then switch to lower temperatures during output refinement to maintain clarity and coherence. For reasoning tasks, the researchers find that having the model explicitly articulate its intent before each reasoning step delivers better results.
Performance gains across multiple domains#
Testing reveals that IFG consistently improves both exploration and final accuracy on mathematical and coding problems. The technique also integrates smoothly with Reinforcement Learning from Verifier Feedback (RLVF), a training approach that uses verification models to refine outputs. Beyond technical tasks, the method successfully increases response diversity in instruction-tuned models and produces higher-quality varied samples on language modeling benchmarks, supported by newly open-sourced evaluation data.
Practical advantages#
The simplicity of IFG makes it immediately usable with existing off-the-shelf language models, requiring no additional training or fine-tuning. By tackling the tension between diversity and quality, the method offers a practical tool for researchers and practitioners seeking to improve the performance-diversity tradeoff in LLM applications.

