TL;DR
Researchers have discovered that Large Language Models (LMs) have a "sweet spot" for expressivity: they easily produce very simple (low entropy) or very complex (high entropy) next-token distributions, but struggle significantly with those in the middle. By using gradient-based prompt tuning to "force" models to output specific probability distributions, the authors reveal that LMs are naturally biased toward distributions that look like their own training outputs, even across different architectures and tokenizers.
What Problem Does This Paper Address?
We usually evaluate LMs based on the text they generate. However, under the hood, an LM is just a machine that outputs a probability distribution over its entire vocabulary at every step. Because of the "softmax bottleneck"—the fact that these high-dimensional distributions are actually projected from a much lower-dimensional hidden state—LMs can't actually produce every mathematically possible distribution.
This paper asks: What is the "reachable" space of an LM's output? If we want a model to be 50% sure it’s a "cat" and 50% sure it’s a "dog," can we find a prompt that makes that happen? Understanding these limits helps us know how expressive these models truly are and how they might fail when used as "probability proposers" in complex reasoning or creative tasks.
Methods
The authors introduce Distribution Prompting. Instead of tuning a model to produce a specific word, they tune a prompt to make the model's output distribution match a target distribution. They use three main techniques:
- Soft Prompt Tuning: Optimizing continuous vectors (embeddings) that don't necessarily correspond to real words. This represents the "upper bound" of what the model can do.
- Hard Prompt Tuning: Searching for a sequence of actual vocabulary tokens (like "The quick brown...") that triggers the target distribution.
- Hybrid Tuning: A mix of both.
The goal of the optimization is to minimize the Kullback–Leibler (KL) divergence—a standard measure of how one probability distribution differs from a second, reference probability distribution—between the LM's output and the target.
Datasets
This paper doesn't use standard text datasets like Pile or C4. Instead, it uses:
- Synthesized "Vanilla" Distributions: Randomly generated distributions across the full range of possible entropy (from 0 bits to ~16 bits).
- Outlier Distributions: Specifically constructed distributions where a few tokens have very high probability (simulating how LMs usually behave).
- LM-Generated Distributions: Distributions actually produced by models like GPT-2, Llama 3.2-1B, Falcon-7B, and Llama 3-8B.
- POS-Tagged Subsets: Distributions filtered by Parts of Speech (Nouns, Verbs, etc.) using the ScispaCy tagger.
Key Insights and Ideas
- The Unimodal Difficulty Curve: The hardest distributions to elicit are those with "moderate" entropy. Very focused distributions (low entropy) and very noisy, uniform-like distributions (high entropy) are much easier for the model to approximate.
- The "Outlier" Advantage: LMs are much better at approximating distributions that have "spikes" (outlier tokens). If a distribution is smooth and moderate in entropy, the model struggles; if you add a few high-probability tokens, the model finds it much easier to mimic.
- LM-Likeness is Universal: A distribution generated by one LM (e.g., Falcon-7B) is significantly easier for another LM (e.g., Llama-3) to approximate than a random distribution of the same entropy. This suggests that all LMs share an underlying "shape" to their probability space, regardless of their specific tokenizer or size.
- Instruction Tuning Constraints: Interestingly, instruction-tuned models (like Llama-3-Instruct) are actually less expressive than their base model counterparts. They have a harder time approximating arbitrary distributions, likely because their training has "locked" them into specific behavioral patterns.
Key Results
- Entropy vs. Loss: In experiments on Llama 3.2-1B, the approximation loss peaks at moderate entropy levels (around 8 bits) and drops off at the extremes.
- Transferability: When migrating distributions from a "source" LM to a "tuning" LM, the approximation loss was consistently lower than for vanilla targets. For example, Llama 3.2-1B could mimic GPT-2's output distributions with near-zero loss in many cases.
- Hard vs. Soft: Soft prompts (continuous embeddings) performed significantly better than hard prompts (actual words), confirming that the "natural language" manifold is only a small subset of the model's total expressive capacity.
Limitations and Future Work
The authors acknowledge that entropy is a "lossy" descriptor—two distributions can have the same entropy but very different shapes. While they explored "outliers," there are many other structural properties of distributions left to study.
Additionally, the root cause of the moderate-entropy struggle remains a mystery. Is it the Transformer architecture itself, or the specific way the softmax layer interacts with the hidden states? Future work aims to pinpoint whether this is a fundamental limitation of the "softmax bottleneck" or something deeper in the way models represent information.
Summary updated