TRANSMISSION // 2506.09659v2

A two-step trick for more varied AI answers

Source published

Intent Factored Generation asks a language model to choose a compact idea first, then write an answer around it. The approach broadens the range of sampled solutions, but can lower single-attempt accuracy and does not resolve safety concerns.

AI-generated conceptual illustration for A two-step trick for more varied AI answers
AI-generated conceptual illustration; not documentary evidence.

Language models can produce many different wordings of an answer without exploring many different ideas. A paper introduces a two-stage method designed to separate those choices: sample a short intent, then generate a response guided by it. Tests suggest the approach can improve coverage across multiple attempts, with trade-offs and limitations.

Language models are often asked to produce several answers to the same question: possible solutions to a maths problem, alternative code, or different responses to a news story. But changing the words does not necessarily change the underlying idea. The paper Intent Factored Generation: Unleashing the Diversity in Your Language Model explores whether making that idea explicit can help models produce more meaningfully varied samples.

The authors call their approach Intent Factored Generation, or IFG. Instead of generating an answer in one go, the model first produces a compact “intent”—for example, keywords or a short summary of the response it is about to give. It then generates the full answer using both the original prompt and that intent. In reasoning tasks, the intent can describe the goal of the next step before the model works it out.

The key design choice is to use more randomness when sampling the intent and less when writing the response. In language models, this randomness is often controlled by a setting called temperature: higher values make less likely next words more probable. The researchers’ idea is that a high temperature at the intent stage encourages different concepts, while a lower temperature for the final answer helps it stay coherent. The method can be prompted at inference time or used in training with data annotated with intents.

Testing exploration and answer quality

The paper evaluates IFG on mathematical reasoning with Qwen models and the MATH benchmark, on coding with Qwen-2.5-Coder-32B and LiveCodeBench, and on instruction-following and news-comment generation tasks. The comparisons include standard sampling, min-p sampling and Diverse Beam Search. For the reasoning experiments, the authors also test whether IFG can support training with feedback from a verifier—a system that checks whether an answer is correct.

For maths and code, a central measure is pass@k: whether at least one of a model’s k attempts is correct. This captures exploration across a set of tries, not the reliability of any single answer. The authors report improved pass@k on MATH and LiveCodeBench in their tested setups, and better test performance when IFG was combined with their verifier-feedback training approach. On LiveCodeBench, for example, IFG solved more problems within five or ten attempts than standard sampling, but its pass@1 score was lower: 16.5% versus 18.7% for direct sampling on the reported test set. In other words, a wider range of attempts can increase the chance of finding a solution without making the first attempt more dependable.

For open-ended generation, the researchers assess diversity using semantic entropy, a measure intended to distinguish different meanings from mere rewordings. They use automated language-model judgments to group responses they consider similar. On a dataset of Reddit news comments, they report that IFG can produce more semantically varied comments while maintaining higher measured coherence than direct generation at comparable diversity levels. In instruction tuning, they also report a more favorable trade-off between a reward-model score and diversity for IFG-trained models.

What the results do—and do not—show

These findings support IFG as a way to encourage broader exploration in the specific models and tasks tested. They do not establish that it will improve every model or task, or that more varied outputs are necessarily better. The method has costs: it requires generating intents as well as responses, and the paper reports extra token use and longer generation time in its comment-generation experiment. The authors also note that prompted IFG may be difficult for very small models to follow reliably.

Safety is a notable open issue. In the instruction-tuning experiments, some toxicity-related measures increased, even as other measures of coherence and content quality improved. The authors say the increases need further investigation; they do not test intent-level or output-level safety filters. More generally, broader exploration can produce a wider range of wrong, undesirable or incoherent responses, so the authors frame IFG as useful when multiple samples can be checked—not as a guarantee of correctness.

There are measurement uncertainties too. Semantic entropy depends on a language model judging whether two answers mean the same thing. The paper reports that judge models can disagree, and that one comparison with another diversity measure weakened at higher temperatures. The authors also acknowledge that their evaluation does not isolate conceptual variation from paraphrasing in every case, and that they did not compare IFG with adaptive temperature schedules.

This article is based on the arXiv version identified as v2, posted in June 2025. The supplied paper text describes the work as appearing at NeurIPS 2026, but the available source material does not independently establish its publication or peer-review status. Results should therefore be read as claims reported by the authors in a preprint, not as settled evidence. The paper provides code and describes releasing its Reddit-derived dataset for research, but neither a preprint nor an announced release replaces independent replication.

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.