Bridging Risk Approximation Gaps in Model Predictive Task Sampling via In-Context Modeling
Organizations: College of Science, National University of Defense Technology · Department of Automation, Tsinghua University
Abstract
Reinforcement learning (RL) is essential for adaptive decision-making, e.g., robust Meta-RL and domain randomization (DR), and efficient post-training of large language models (LLMs), where tasks are commonly structured as Markov decision processes or prompts. A central bottleneck in all these settings is the cost of agent-environment interactions required for task selection and policy optimization. Model predictive task sampling (MPTS) has emerged as a promising approach to improve sample efficiency by querying informative tasks via a risk predictive model (RPM) trained on optimization history. However, existing RPMs suffer from two failure modes: (i) sparse optimization histories, which limit RPMs' generalization across the task space, and (ii) a one-step lag in risk approximation, which causes biased difficulty estimation as the policy evolves. This work formalizes these failure modes, derives lagged-risk decompositions that expose the resulting temporal bias, and recasts risk prediction as an in-context sequence modeling problem. The developed RPM integrates a one-step look-ahead mechanism with a temporal-weighted sliding window to mitigate data non-stationarity and scarcity, without requiring additional rollouts. Empirically, our approach yields more reliable difficulty estimates and consistent performance gains across robust Meta-RL, DR, and prompt curriculum RL post-training of LLMs.
Figures & tables
| Method | HalfCheetahVel | Walker2dVel | ReacherPos | LunarLander | ErgoReacher | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| CVaR 0.5 | CVaR 0.9 | CVaR 0.5 | CVaR 0.9 | CVaR 0.5 | CVaR 0.9 | CVaR 0.5 | CVaR 0.9 | CVaR 0.5 | CVaR 0.9 | |
| ERM [ 30 ] | -153.6 3.9 | -209.9 7.6 | 23.5 15.6 | -34.2 20.7 | -17.5 1.9 | -31.1 5.4 | 243.0 14.2 | 185.5 30.4 | 83.8 0.7 | 70.1 1.4 |
| DRM [ 17 , 32 ] | -151.1 6.2 | -195.5 8.4 | 26.1 12.2 | -26.0 14.7 | -16.0 2.2 | -26.5 5.6 | 184.2 25.0 | 96.8 36.6 | 85.3 0.4 | 72.9 1.0 |
| GDRM [ 31 ] | -149.8 4.3 | -206.4 8.0 | 16.1 13.3 | -42.8 16.6 | -19.6 4.3 | -30.7 6.1 | 207.9 18.4 | 93.7 38.0 | 84.4 0.7 | 70.2 1.7 |
| OHTM [ 33 ] | -160.0 7.3 | -194.8 10.3 | 7.6 21.5 | -40.8 21.3 | -16.3 1.4 | -28.9 5.6 | 258.7 6.4 | 215.7 17.9 | 83.8 0.7 | 72.6 2.0 |
| MPTS [ 22 ] | -143.6 4.6 | -184.0 8.3 | 24.6 16.2 | -27.9 19.1 | -20.1 3.4 | -33.2 8.0 | 268.5 3.4 | 251.8 4.1 | 84.7 0.5 | 75.7 1.1 |
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
| Hyperparameter | Value |
|---|---|
| Meta-training iterations | 500 |
| Meta-batch size | 20 tasks |
| Validation batch size | 20 tasks (uniform) |
| Inner adaptation steps | 1 |
| Fast batch size (trajectories / task) | 20 |
| Max KL divergence | 0.01 |
| Hyperparameter | Value |
|---|---|
| Base model | Qwen3-4B-Base |
| Training steps | 100 |
| Prompt batch size | 128 (4-GPU) |
| Responses per prompt | 8 |
| Max response length | 1,024 tokens |
| Policy optimiser | AdamW, lr |
| Experiment | Hardware | Common | Slower |
|---|---|---|---|
| Sinusoid | RTX 4090 24GB | 12.2 min | DRM: 16.4 min |
| DR | RTX 4090 24GB | 3.0 h | DRM: 4.2 h |
| Meta-RL | A10 24GB | 8.7 h | DRM: 11.6 h |
| RLVR | 4 A100 80GB | 11.1 h | GRESO: 17.8 h |
Sample-Efficient RL
Sample-efficient reinforcement learning studies how agents learn effective policies from fewer environment interactions, demonstrations, or costly rollouts.
See all 248 papers