Research map / Reinforcement learning / Offline RL
From Weak Data to Strong Policy: Q-Targets Enable Provable In-Context Reinforcement Learning
yichen lin, Xuyuan Xiong, xue wang, Xiangfu Meng, Mike Wei, Tao Yao
Shanghai Jiao Tong University · Alibaba Group · State University of New York at Buffalo
Read the paperPlace an idea next to itCheck your own paper ↗
Proposes Q-Target Pretrained Transformers (QTPT), which pretrain a context-conditioned Transformer with Bellman-style Q-targets instead of supervised behavior cloning, with suboptimality bounds and controlled/D4RL/math experiments.
AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Problem
In-context RL pretraining with supervised behavior prediction ties the learned policy to offline action quality, so weak or suboptimal trajectories yield biased imitation targets.
Approach
Keep the context-conditioned Transformer for task inference but replace behavior-action cloning with a Bellman/TD Q-target regression on rewards and transitions in the context, so the policy is greedy over learned action values rather than imitating the behavior policy.
Key results
- On the stochastic linear bandit, QTPT consistently outperforms SPT under both random and LinUCB pretraining data (averaged over 1000 runs).
- On D4RL AntMaze-umaze-v2 under a matched Transformer protocol, QTPT reports 35.94 ± 13.52% active-stage success vs 26.96 ± 11.39% for SPT (3–4 seeds, descriptive).
- On GSM8K, QTPO improves over behavior cloning across all mixture ratios by an average of 1.81%.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add bootstrapped TD targets instead of Monte Carlo returns (ablation) | QTPT · Darkroom (random data) | mean reward: 9.33 -> 14.46 | Improved |
| add bootstrapped TD targets instead of Monte Carlo returns (ablation) | QTPT · Darkroom (expert data) | mean reward: 13.77 -> 18.29 | Improved |
| add context conditioning (ablation) | QTPT · Darkroom (random data) | mean reward: 0.38 -> 14.46 | Improved |
| add context conditioning (ablation) | QTPT · Darkroom (expert data) | mean reward: 0.34 -> 18.29 | Improved |
| replace behavior-cloning pretraining (SPT) with Q-target pretraining (QTPT) | Transformer ICRL · D4RL AntMaze-umaze-v2 | success rate (%): 26.96 -> 35.94 | Improved |
| replace SPT with QTPT | Transformer ICRL · D4RL Kitchen-partial-v0 | normalized score (%): 10.84 -> 13.23 | Improved |
| replace SPT with QTPT | Transformer ICRL · D4RL Kitchen-mixed-v0 | normalized score (%): 13.25 -> 14.62 | No clear effect |
| use QTPT instead of Q-SFT | Transformer ICRL · D4RL Kitchen-mixed-v0 | normalized score (%): 9.44 -> 14.62 | Improved |
| use QTPT instead of QDT | Transformer ICRL · D4RL Kitchen-partial-v0 | normalized score (%): 12.58 -> 13.23 | No clear effect |
| use QTPO (QTPT with policy optimization) instead of behavior cloning | LM on math reasoning · GSM8K | accuracy: +1.81% | Improved |
| pretrain with Q-targets on expert-only sparse-reward data | QTPT · Dark Key-to-door (expert data) | cumulative reward | Hurt |
| add CQL penalty to QTPT (ablation) | QTPT · support-controlled bandit | unsupported-action overestimation | No clear effect |
Earlier methods this paper compares with
Named baselines from earlier accepted papers in this paper's results tables: better than 1 of 1 on most shared results.
- Q-SFT — Q-SFT: Q-Learning for Language Models via Supervised Fine-Tuning (ICLR 2025) · better on 3 of 3 shared results
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
Surprising findings
- Random-data pretraining outperforms expert-data pretraining in Darkroom and Miniworld, attributed to broader state-action support.
- QTPT-NoCtx (no context conditioning) drops to near zero reward (0.38 on random data), and adding a CQL penalty gives no statistically reliable improvement in the overestimation diagnostic.
Limitations
- Theory requires coverage/support conditions on offline data and does not cover arbitrary low-coverage datasets.
- D4RL results are fixed-protocol descriptive extensions with high between-seed variance, not SOTA comparisons.
- Bound contains a worst-case T^2 dependence and approximation floor epsilon_tf that does not vanish with n for a fixed misspecified Transformer.
Open problems this paper states
- “Theory requires coverage/support conditions on offline data and does not cover arbitrary low-coverage datasets.” → The theory rests on strong or hard-to-check assumptions. (an open problem in decision Transformer sequence models)
- “Bound contains a worst-case T^2 dependence and approximation floor epsilon_tf that does not vanish with n for a fixed misspecified Transformer.” → The theory rests on strong or hard-to-check assumptions. (an open problem in decision Transformer sequence models)
Open problems in decision Transformer sequence models
Do sequence-model offline RL methods hold up with pixel inputs, larger models and weaker theoretical assumptions?
- The theory rests on strong or hard-to-check assumptions. · 4 papers state it
- Only state-based observations were tested, not pixels. · 3 papers state it
- Experiments use only small transformers. · 3 papers state it
Experimental setup
Datasets: offline random-policy bandit trajectories offline LinUCB bandit trajectories Darkroom offline data Dark Key-to-door offline data Miniworld offline data D4RL Kitchen-partial-v0 D4RL Kitchen-mixed-v0 D4RL AntMaze-umaze-v2 GSM8K
Benchmarks: stochastic linear bandit Darkroom Dark Key-to-door Miniworld D4RL Kitchen D4RL AntMaze GSM8K
Metrics: suboptimality gap average cumulative reward normalized score success rate accuracy improvement over behavior cloning
Baselines: SPT Q-SFT QDT QTPT-MC QTPT-NoCtx RL^2 PEARL CQL IQL behavior cloning
Builds on: Decision Pretrained Transformer Algorithm Distillation Q-SFT Q-learning Decision Transformer Conservative Q-Learning
Closest papers by meaning
- In-Context Reinforcement Learning From Suboptimal Historical Data (ICML 2025 · similarity 0.91)
- Q-value Regularized Transformer for Offline Reinforcement Learning (ICML 2024 · similarity 0.90)
- Transformers as Decision Makers: Provable In-Context Reinforcement Learning via Supervised Pretraining (ICLR 2024 · similarity 0.90)
- Transformers Provably Implement In-Context Reinforcement Learning with Policy Improvement (NeurIPS 2026 · similarity 0.89)
- Long-Horizon Q-Learning: Accurate Value Learning via n-Step Inequalities (NeurIPS 2026 · similarity 0.89)
- Latent Q-Barrier Shielding for Safe In-Context Reinforcement Learning (NeurIPS 2026 · similarity 0.88)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.