TL;DR
Conventional wisdom says that fine-tuning large language models (LLMs) makes them predictable, repetitive, and less creative. By accounting for a huge blind spot in prior analyses—output length—this paper shows that fine-tuning doesn't simply crush randomness; it reorganizes it. Fine-tuned models waste less uncertainty on rambling and become nearly three times better at turning token-level randomness into genuinely diverse ideas.
What Problem Does This Paper Address?
If you ask a raw, pre-trained "base" LLM a question, you might get wildly varied—and sometimes chaotic—continuations. After instruction tuning and alignment (like RLHF), the model becomes helpful, structured, and seemingly much more deterministic. Consequently, a growing body of research argues that alignment "collapses" diversity.
There is a catch, though: fine-tuned models write longer responses because human raters tend to prefer detailed answers. Meanwhile, standard diversity metrics are notoriously sensitive to text length. For instance, longer texts naturally reuse words from a finite vocabulary, tanking unique $n$-gram ratios, and compressing long texts into fixed-size embeddings via mean pooling can dilute semantic differences. Existing metrics also treat diversity as a static snapshot, ignoring how uncertainty unfolds from the first token to the stop token. Without untangling length from content, we can’t tell if an aligned model is genuinely monotonous or just penalized for being thorough.
Methods
Imagine autoregressive text generation as a massive tree. The prompt is the root, every token choice is a branch, and hitting the end-of-sequence (EOS) token creates a leaf.
- Canopy Entropy ($\mathrm{CE}^\star$): Extending prior tree-based concepts that only looked at branching width, the authors introduce $\mathrm{CE}^\star$ to capture the entire "canopy" of finished rollouts—accounting for both local branching width and trajectory depth (how long the model writes before stopping). Mathematically, they prove $\mathrm{CE}^\star$ equals the exact total Shannon entropy of both length $N$ and sequence $Y_{1:N}$ given prompt $X$: $H(N, Y_{1:N} \mid X)$.
- Normalized Variants: Because raw canopy volume mixes length and content, they derive two normalized views: Generation Perplexity (GenPPL), which normalizes at the token level (treating every token equally), and Branching Factor (BF), an existing metric shown here to be a trajectory-level normalization of $\mathrm{CE}^\star$ (treating every rollout equally).
- Length–Entropy Correlation $\rho(N, r_N)$: A new metric measuring the correlation between output length $N$ and per-token entropy rate $r_N$. Positive values mean longer answers stay informative per token; negative values mean longer answers become predictable and redundant.
- Tractable Estimation & Regression: Because summing over all possible tree paths is intractable, the authors build a consistent Monte Carlo estimator with a length cap ($T_{\max} = 4000$). Finally, they use Beta mixed-effects regression—controlling for prompt, task, model family, and nonlinear length effects—to test how per-token entropy translates into pairwise embedding distance (semantic diversity).
Datasets
The authors do not introduce new benchmarks. Instead, they sample 100 prompts per task (generating 100 rollouts per prompt) across four existing datasets spanning structured to open-ended domains:
- Mathematical reasoning (Cobbe et al., 2021 — GSM8K)
- Coding (Zhuo et al., 2024)
- Sentence completion (Zellers et al., 2019 — HellaSwag)
- Creative story generation (Fan et al., 2018 — WritingPrompts)
Evaluations compare base and instruct versions of LLaMA-3.1-8B, Qwen3-8B, and Gemma-3-12B, using modernbert-embed-large to measure semantic cosine distances.
Key Insights and Ideas
- Base models ramble into predictability; aligned models sustain information. When base models generate long sequences, their per-token entropy drops—later tokens become increasingly redundant. Fine-tuned models maintain steady entropy rates across long trajectories, Elaborating only when there is still information to convey.
- Total generation space doesn't always shrink. While fine-tuning reliably narrows local token choices, in open-ended tasks like story writing, aligned models explore much deeper trajectories (avoiding the short "completion traps" base models fall into). That added depth can actually increase the total canopy of possibilities ($\mathrm{CE}^\star$).
- Fine-tuning makes uncertainty "semantically productive." Not all randomness is equal. A base model might burn entropy choosing between trivial lexical variations or formatting quirks, whereas a fine-tuned model channels its remaining token uncertainty into distinct high-level meanings.
Key Results
- Per-token and per-trajectory uncertainty drop, but total canopy is task-dependent: Fine-tuning reduces GenPPL and BF across all models and tasks—ranging from a mild ~5% dip (Qwen3-8B on math) to sharp 60%–80% drops elsewhere. However, while $\mathrm{CE}^\star$ drops sharply in math and coding (up to $-96.7\%$ for Gemma-3-12B on coding), in story generation it slightly increases for Qwen3-8B ($+1.92\%$) and jumps $+29.0\%$ for Gemma-3-12B.
- Positive shift in length–entropy coupling: Across 11 of the 12 model–task pairs, fine-tuning shifts Pearson correlation $\rho(N, r_N)$ upward. In coding, Qwen3-8B flips from $-0.41$ (base) to $+0.61$ (instruct), an absolute shift of $+1.0$.
- Nearly $3\times$ semantic conversion efficiency: In the Beta mixed-effects regression, entropy rate strongly predicts semantic diversity in base models ($\beta_1 = 0.688, p < 2 \times 10^{-16}$). Fine-tuning adds a massive positive interaction ($\beta_3 = 1.323, p < 2 \times 10^{-16}$), boosting the logit-scale slope from 0.688 to 2.011—nearly tripling how efficiently token uncertainty becomes semantic diversity.
Limitations and Future Work
- Information $\neq$ Quality: Entropy measures how uncertainty is distributed, not whether outputs are factually accurate or preferred by humans.
- Descriptive, not causal: The framework cleanly documents how uncertainty reorganizes after alignment, but it cannot isolate why specific training stages or objectives cause this shift. Uncovering those training mechanics is left for future work.
Summary updated