Abstract
Instruction-tuned large language models (LLMs) employ structured templates, such as role markers and special tokens, to enforce format consistency during inference. However, we identify a critical limitation of such formatting: it induces a phenomenon we term diversity collapse, where the model generates semantically similar outputs for open-ended inputs, undermining creativity and variability. We systematically evaluate this effect across tasks like story completion and free-form generation, finding that (1) diversity collapse persists even under high-temperature sampling, and (2) structural tokens in templates significantly constrain the model's output space. Our analysis shows that format consistency between fine-tuning and inference is crucial for structure-sensitive tasks (e.g., GSM8K, IFEval), but has marginal influence on knowledge-heavy tasks (e.g., MMLU, WebQuestions). In contrast, output diversity is primarily governed by the presence or absence of structural tokens, with minimal formatting yielding the most diverse outputs. These findings reveal that current prompting conventions, while beneficial for alignment, may inadvertently suppress output diversity, underscoring the need for diversity-aware prompt design and instruction tuning.
Introduction
Modern Large Language Models (LLMs) are rarely deployed as raw base models. Instead, they are wrapped in structured prompt templates—using markers like <|user|> and <|assistant|>—to ensure they follow instructions and maintain a consistent dialogue format. While these templates are essential for reliability and alignment, recent research suggests they come with a hidden cost: diversity collapse.
Diversity collapse refers to the tendency of instruction-tuned models to generate semantically similar or repetitive outputs for open-ended prompts, even when sampling parameters like "temperature" are increased. This study investigates the root causes of this phenomenon and explores whether the rigid formatting used during training and inference is the primary driver of restricted creativity.
Methodology
To investigate the impact of formatting on output diversity, researchers from UC San Diego analyzed five prominent models, including Llama-3, Qwen2.5, and Mistral. The experimental framework focused on three primary areas:
- Prompt Ablation: The team tested four levels of structural complexity to isolate the effect of formatting:
- Full Template: The standard chat format including all special tokens.
- Fake Template: Replaces special tokens with meaningless placeholders to test if the specific tokens or the general structure causes the collapse.
- Minimal Dialog: Uses plain-text markers (e.g., "User:", "Assistant:").
- Simple Steer: No formatting; the model receives only the raw instruction.
- Decoding Analysis: Token-level entropy was measured at each generation step to observe how templates influence the model's internal probability distributions.
- Custom Fine-Tuning: The researchers compared standard tuning against "Natural Instruction" (tuning on raw text) and "Mixed Training" (a blend of formatted and unformatted data).
The study utilized nine datasets covering commonsense reasoning (CommonGen, ELI5), story completion (WritingPrompts, ROCStory), and open-ended generation (News, Travel recommendations). Performance was also benchmarked on MMLU, GSM8K, and IFEval to assess trade-offs.
The Mechanics of Diversity Collapse
The investigation revealed that structural tokens act as "behavioral anchors." Analysis of token-level entropy showed that structured prompts lead to significantly lower uncertainty in the early stages of generation. Essentially, the template forces the model to commit to a narrow topical trajectory before the actual content generation begins.
A striking example of this is the "Science Bias." When prompted to generate "random news" using a Full Template, Llama-3 produced science-related headlines almost exclusively. In contrast, removing the template (Simple Steer) allowed the model's output to distribute naturally across sports, politics, health, and other categories. This suggests that the structural constraint of the template is more powerful than the semantic instruction to be varied.
Key Results and Performance Trade-offs
The most consistent finding across all models was that Simple Steer yielded the highest semantic diversity. On the News generation task, for instance, topical entropy increased from approximately 0.3 with the Full Template to 1.6 with Simple Steer.
The researchers also identified a "consistency tax" regarding performance. For structure-sensitive tasks like mathematics (GSM8K), models perform best when the inference format matches the training format. However, for knowledge-heavy tasks (MMLU), the base model often outperformed the instruction-tuned version, indicating that alignment can sometimes override factual recall.
Crucially, models fine-tuned without chat templates (Natural Instruction) were able to maintain competitive scores on benchmarks like IFEval and GSM8K while significantly improving output diversity. This suggests that the diversity collapse is not an inherent property of the model's knowledge, but a byproduct of the formatting interface.
Conclusion
The current conventions of instruction tuning and prompting, while effective for alignment and reliability, inadvertently suppress the creative potential of LLMs. Diversity collapse persists even under high-temperature sampling, as the template effectively caps the model's expressive ceiling.
Future work should focus on "diversity-aware" instruction tuning, training models to remain flexible in their output distributions. By understanding the price of format, developers can design better prompting strategies that balance the need for structure with the requirement for semantic variety and creativity.
Summary updated