Beam Search as Test-Time Self-Distillation via Counterfactual Contexts
Keep the title, authors and abstract in paper.json
potentialpaper · 2026-11-23 19:02 UTC · 53496c425160 ·
.potentialpaper/metadata.json modified
+++ b/.potentialpaper/metadata.json@@ -1,19 +1,5 @@{- "layout": 5,- "identifiers": [- {- "scheme": "openreview",- "value": "zYUHbTHUw6"- }- ],- "title": "Beam Search as Test-Time Self-Distillation via Counterfactual Contexts",- "authors": [],- "abstract": "Self-Distillation Fine-Tuning (SDFT) enables a language model to act as its own teacher: by conditioning on a demonstration, the model produces an implicit reward via pointwise mutual information, which guides on-policy learning without external supervision.\nHowever, SDFT operates at *training time*: it requires gradient updates and access to expert demonstrations, making it inapplicable at inference.\nWe propose *test-time self-distillation*, a decoding-time method that extracts a steering signal from the self-distillation framework without any parameter updates, reward models, or training data.\nOur key insight is that *counterfactual contexts*, i.e. fixed textual templates that hypothetically prime the model for excellent versus poor reasoning, can substitute for the demonstration.\nThe log-odds ratio of a candidate answer under these two counterfactual conditions defines a new reward signal. We derive the optimal KL-regularized policy under this reward, which takes the form of a Gibbs reweighting of the base distribution.\nCrucially, this reweighting is global: it cannot be decomposed into independent per-token operations without ignoring future trajectory quality.\nWe therefore approximate the target distribution via beam search.\nExperiments on mathematical reasoning (MATH500), code generation (HumanEval), and graduate-level science QA (GPQA) across multiple model scales show that test-time self-distillation improves over standard sampling, low temperature, beam search and power sampling baselines on average, demonstrating that the self-distillation principle can be operationalized at inference time.",- "year": 2027,- "venue": "ICLR 2027 (under review)",- "source": "openreview",- "license": {- "metadata": "CC0-1.0",- "abstract": "CC0-1.0"- }+ "layout": 6,+ "kind": "paper",+ "key": "ca7a0a2c-1718-4dfc-869d-ba04b857977a"}
paper.json added
+++ b/paper.json@@ -0,0 +1,9 @@+{+ "title": "Beam Search as Test-Time Self-Distillation via Counterfactual Contexts",+ "authors": [],+ "abstract": "Self-Distillation Fine-Tuning (SDFT) enables a language model to act as its own teacher: by conditioning on a demonstration, the model produces an implicit reward via pointwise mutual information, which guides on-policy learning without external supervision.\nHowever, SDFT operates at *training time*: it requires gradient updates and access to expert demonstrations, making it inapplicable at inference.\nWe propose *test-time self-distillation*, a decoding-time method that extracts a steering signal from the self-distillation framework without any parameter updates, reward models, or training data.\nOur key insight is that *counterfactual contexts*, i.e. fixed textual templates that hypothetically prime the model for excellent versus poor reasoning, can substitute for the demonstration.\nThe log-odds ratio of a candidate answer under these two counterfactual conditions defines a new reward signal. We derive the optimal KL-regularized policy under this reward, which takes the form of a Gibbs reweighting of the base distribution.\nCrucially, this reweighting is global: it cannot be decomposed into independent per-token operations without ignoring future trajectory quality.\nWe therefore approximate the target distribution via beam search.\nExperiments on mathematical reasoning (MATH500), code generation (HumanEval), and graduate-level science QA (GPQA) across multiple model scales show that test-time self-distillation improves over standard sampling, low temperature, beam search and power sampling baselines on average, demonstrating that the self-distillation principle can be operationalized at inference time.",+ "license": {+ "metadata": "CC0-1.0",+ "abstract": "CC0-1.0"+ }+}