potentialpaper

Temperature and Truncation Do Not Commute: Exact Conditions for Order-Independent Decoding

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 19:13 UTC · 58a1a9f1fda7 ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,19 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "s79zQOEIiT"
- }
- ],
- "title": "Temperature and Truncation Do Not Commute: Exact Conditions for Order-Independent Decoding",
- "authors": [],
- "abstract": "Two systems that report identical sampling settings can sample from different distributions. Settings are reported as a short tuple such as temperature 0.7, top-p 0.95, while temperature scaling and truncation are applied in sequence to the logit vector and the order of the two steps is fixed by the inference implementation, not by the tuple. Temperature and min-p truncation are order independent under the reparameterization $\\alpha \\mapsto \\alpha^\\tau$, a closed-form correction that depends on neither the model nor the vocabulary. Temperature and top-p are not order independent in general, and at fixed $\\tau \\neq 1$ and fixed $p_0 < 1$ no change of the top-p threshold alone can make the two orders agree for every distribution, so the natural remedy of retuning $p_0$ is unavailable. Below unit temperature the effect is bounded by $1-p_0$, and the same bound explains why it is largest at intermediate temperatures and vanishes as $\\tau$ falls further. Over the complete vocabulary on approximately 290,000 next-token distributions per model, the corrected min-p pairing gives zero total variation distance in all 24 tested combinations, while the uncorrected min-p and top-p pairings reach 0.231 and 0.496 at $\\tau = 1.5$ and are zero only at $\\tau = 1$. The Transformers library instantiates one of the two orders by default. On GSM8K, swapping the top-p order under a shared random stream changes exact-match accuracy by a statistically significant 1.34 percentage points. Reporting the composition order, or adopting the corrected min-p threshold, makes the reported configuration determine the sampled distribution.",
- "year": 2027,
- "venue": "ICLR 2027 (under review)",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "0ed5abdb-0422-46bf-b2b9-dab6e2b41e22"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,9 @@
+{
+ "title": "Temperature and Truncation Do Not Commute: Exact Conditions for Order-Independent Decoding",
+ "authors": [],
+ "abstract": "Two systems that report identical sampling settings can sample from different distributions. Settings are reported as a short tuple such as temperature 0.7, top-p 0.95, while temperature scaling and truncation are applied in sequence to the logit vector and the order of the two steps is fixed by the inference implementation, not by the tuple. Temperature and min-p truncation are order independent under the reparameterization $\\alpha \\mapsto \\alpha^\\tau$, a closed-form correction that depends on neither the model nor the vocabulary. Temperature and top-p are not order independent in general, and at fixed $\\tau \\neq 1$ and fixed $p_0 < 1$ no change of the top-p threshold alone can make the two orders agree for every distribution, so the natural remedy of retuning $p_0$ is unavailable. Below unit temperature the effect is bounded by $1-p_0$, and the same bound explains why it is largest at intermediate temperatures and vanishes as $\\tau$ falls further. Over the complete vocabulary on approximately 290,000 next-token distributions per model, the corrected min-p pairing gives zero total variation distance in all 24 tested combinations, while the uncorrected min-p and top-p pairings reach 0.231 and 0.496 at $\\tau = 1.5$ and are zero only at $\\tau = 1$. The Transformers library instantiates one of the two orders by default. On GSM8K, swapping the top-p order under a shared random stream changes exact-match accuracy by a statistically significant 1.34 percentage points. Reporting the composition order, or adopting the corrected min-p threshold, makes the reported configuration determine the sampled distribution.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}