TL;DR
Instruction-tuned Large Language Models (LLMs) often use structured templates that improve consistency but drastically reduce output diversity, a phenomenon termed "diversity collapse." This paper systematically demonstrates this collapse, showing that even minimal structural cues can suppress creativity, and proposes that removing these structures is key to restoring diverse and expressive outputs.
What Problem Does This Paper Address?
Large Language Models (LLMs) are increasingly being "instruction-tuned" to follow specific commands and produce outputs in a desired format. This is often achieved using structured prompt templates, which include special tokens (like <|user|>, <|assistant|>) and a dialogue-like structure. While these templates are effective for ensuring consistency and alignment with user instructions, this paper investigates a critical side effect: a significant reduction in the diversity of generated content. The authors term this "diversity collapse," where models become less creative and produce semantically similar outputs, even for open-ended prompts. This problem is particularly concerning for tasks requiring creativity and variability, such as story generation or open-ended content creation.
Methods
The authors employ a multi-pronged approach to investigate diversity collapse:
- Prompt Ablation Studies: They systematically remove structural elements from prompt templates, progressing from a "full template" (standard chat format) to a "fake template" (preserving structure but using meaningless tokens), "minimum dialog" (stripping special tokens but keeping role indicators), and finally a "simple steer" (bare instruction without any formatting). This allows them to pinpoint which structural components contribute most to diversity collapse.
- Quantitative Diversity Metrics: They use two main types of metrics:
- Semantic Diversity: Measured by the average pairwise distance between sentence embeddings of generated outputs.
- Label Diversity (Topic Diversity): Measured by the entropy of extracted entities or topics from the generated text.
- Structural Diversity Metrics: They also analyze structural variations in outputs, such as token count, sentence count, and content word ratio.
- Decoding Dynamics Analysis: They track token-level entropy at each decoding step to understand how structured prompts influence the model's generation process.
- Downstream Task Evaluation: They assess the impact of different prompting strategies on performance across various benchmarks (e.g., GSM8K, IFEval, MMLU) to understand the trade-off between diversity and task performance/alignment.
Datasets
The paper utilizes several existing datasets for evaluation and analysis:
- Commonsense Reasoning: CommonGen, ELI5, NQ
- Story Completion: WritingPrompts, ROCStory, Story-Cloze
- Open-ended Generation: News, Travel, Books
- Instruction Following: IFEval
- Mathematical Reasoning: GSM8K
- Factual QA: WebQuestions
- Code Generation: HumanEval
- Commonsense Pronoun Resolution: WSC273
- Multi-domain Factual Reasoning: MMLU
The paper also mentions fine-tuning on the TULU-3-SFT-MIXTURE dataset for some experiments. No new benchmarks were introduced.
Key Insights and Ideas
- Structural Cues are Powerful: Even minimal structural elements, like plain-text role indicators, can significantly constrain output diversity. The "simple steer" prompt, which is just the bare instruction, consistently yields the highest diversity.
- Diversity Collapse is Pervasive: The phenomenon is observed across various LLMs (Llama-3, Tulu-3, Qwen2.5, Mistral-7B, Phi-3.5) and diverse task types, suggesting it's a general limitation of instruction-tuned models using structured prompts.
- Templates Narrow the Output Space: Analysis of decoding dynamics shows that structured prompts lead to lower entropy early in generation, indicating the model commits to narrower trajectories prematurely.
- Format Consistency Matters for Structure-Sensitive Tasks: For tasks requiring specific formats (like GSM8K or IFEval), matching the inference prompt format to the fine-tuning format is crucial for performance.
- Alignment Tax on Creativity: While structured prompts improve alignment, they can suppress creativity. However, this doesn't necessarily mean lower quality; "Natural Instruction" prompts (structure-free) can achieve high quality without sacrificing diversity.
- Decoding Temperature Has Limited Effect: Higher decoding temperatures can increase diversity, but their impact is significantly muted when using structured templates compared to simple steer prompts.
Key Results
- Significant Diversity Reduction: Across multiple models and tasks, "simple steer" prompts consistently yielded higher semantic and topic diversity compared to "full template" prompts. For instance, in news generation, simple steer prompts led to higher Distinct-N scores and lower self-BLEU scores.
- Structural Variation is Also Reduced: Simple steer prompts also resulted in greater structural variation (token count, sentence count, content word ratio) compared to full templates.
- Performance Trade-offs: While simple steer prompts boost diversity, they can slightly underperform on structure-sensitive tasks if the fine-tuning format differs. Conversely, full templates can hinder diversity without always improving performance on knowledge-intensive tasks.
- Quality Maintained with Diversity: In story completion tasks, simple steering increased diversity without degrading response quality, as judged by an external evaluator.
Limitations and Future Work
- Limited Prompt Variants: The study primarily compares "full template" and "simple steer" prompts. Other prompting strategies, like chain-of-thought or retrieval-augmented approaches, were not extensively explored.
- Automated Metrics: Diversity was measured using automated semantic and lexical metrics at the utterance level. Discourse-level variation and the impact on downstream applications were left for future work.
- Future Directions: The authors suggest exploring structural prompt variants to mitigate diversity collapse, investigating the impact of diversity-preserving prompts on downstream tasks and instruction-following ability, and examining the effect of higher decoding temperatures or explicit creativity prompts. They also highlight the need for diversity-aware prompt design and instruction tuning.
Summary updated