From Policy Evaluation to Off-Policy Control: Provable Emergence of In-Context Q-Learning
Keep the title, authors and abstract in paper.json
potentialpaper · 2026-11-23 19:13 UTC · ebf49b861f75 ·
.potentialpaper/metadata.json modified
+++ b/.potentialpaper/metadata.json@@ -1,19 +1,5 @@{- "layout": 5,- "identifiers": [- {- "scheme": "openreview",- "value": "TLMgsn20mO"- }- ],- "title": "From Policy Evaluation to Off-Policy Control: Provable Emergence of In-Context Q-Learning",- "authors": [],- "abstract": "Transformers can implement reinforcement-learning algorithms in context, yet how off-policy control emerges within Transformers remains poorly understood. We study Q-learning, a foundational model-free control algorithm that combines off-policy bootstrapping with greedy policy improvement. We prove that a two-layer attention-only Transformer can implement a finite-temperature form of Q-learning, where the temperature $\\tau>0$ controls the approximation to greedy action selection, recovering window Q-learning as $\\tau\\to0$. We train the structured Transformer on randomly generated MDP tasks using output-only supervision. Experiments show that the theoretically predicted parameter structure emerges during training, including the internal greedy action-selection mechanism, and that the trained Transformer achieves performance comparable to Q-learning on unseen tasks. Our theoretical analysis further shows that the equivalent realizations form a solution manifold and that, under suitable task-diversity conditions, the training iterates converge locally to this manifold at an exponential rate. For the random-task model analyzed here, the local worst-case number of gradient steps needed to reduce the distance to the manifold by a factor $\\epsilon$ is $\\Theta\\left(\\tau^{-5}\\log(1/\\varepsilon)\\right)$, quantifying the increasing optimization cost as the learned update approaches window Q-learning.",- "year": 2027,- "venue": "ICLR 2027 (under review)",- "source": "openreview",- "license": {- "metadata": "CC0-1.0",- "abstract": "CC0-1.0"- }+ "layout": 6,+ "kind": "paper",+ "key": "0fc3c852-438d-4298-9b2a-b6d678c720c0"}
paper.json added
+++ b/paper.json@@ -0,0 +1,9 @@+{+ "title": "From Policy Evaluation to Off-Policy Control: Provable Emergence of In-Context Q-Learning",+ "authors": [],+ "abstract": "Transformers can implement reinforcement-learning algorithms in context, yet how off-policy control emerges within Transformers remains poorly understood. We study Q-learning, a foundational model-free control algorithm that combines off-policy bootstrapping with greedy policy improvement. We prove that a two-layer attention-only Transformer can implement a finite-temperature form of Q-learning, where the temperature $\\tau>0$ controls the approximation to greedy action selection, recovering window Q-learning as $\\tau\\to0$. We train the structured Transformer on randomly generated MDP tasks using output-only supervision. Experiments show that the theoretically predicted parameter structure emerges during training, including the internal greedy action-selection mechanism, and that the trained Transformer achieves performance comparable to Q-learning on unseen tasks. Our theoretical analysis further shows that the equivalent realizations form a solution manifold and that, under suitable task-diversity conditions, the training iterates converge locally to this manifold at an exponential rate. For the random-task model analyzed here, the local worst-case number of gradient steps needed to reduce the distance to the manifold by a factor $\\epsilon$ is $\\Theta\\left(\\tau^{-5}\\log(1/\\varepsilon)\\right)$, quantifying the increasing optimization cost as the learned update approaches window Q-learning.",+ "license": {+ "metadata": "CC0-1.0",+ "abstract": "CC0-1.0"+ }+}