The Price of Format: Diversity Collapse in LLMs
Longfei Yun, Chenyang An, Zilong Wang, Letian Peng, Jingbo Shang
TL;DR
The paper demonstrates that instruction-tuned LLMs using structured prompt templates exhibit a pronounced diversity collapse, defined by $D_{ ext{template}} \ll D_{ ext{simple}}$, across open-ended generation tasks. Through controlled prompt-ablation and decoding analyses over five models and nine tasks, it shows that structural cues in templates act as strong priors, anchoring outputs and reducing early-stage entropy even at high temperatures. Diversity can be recovered by removing formatting or using natural instructions, but task performance becomes uneven across domains, with structure-sensitive tasks benefiting from format consistency while knowledge-heavy tasks sometimes suffer. The work highlights practical tradeoffs between alignment and creativity and calls for diversity-aware prompt design and instruction tuning to preserve expressive variation without sacrificing downstream capabilities.
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. To contextualize these findings, we fine-tune the same model using a range of structured prompts and then evaluate them across three axes: downstream task performance, alignment behavior, and output diversity. 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.
