Distilling Reinforcement Learning Algorithms for In-Context Model-Based Planning

Jaehyeon Son, Soochan Lee, Gunhee Kim
2/12/2026

No official code found. Best implementation: jaehyeon-son/dicp (21 stars, last commit 2025-03-05).

Abstract

Recent studies have shown that Transformers can perform in-context reinforcement learning (RL) by imitating existing RL algorithms, enabling sample-efficient adaptation to unseen tasks without parameter updates. However, these models also inherit the suboptimal behaviors of the RL algorithms they imitate. This issue primarily arises due to the gradual update rule employed by those algorithms. Model-based planning offers a promising solution to this limitation by allowing the models to simulate potential outcomes before taking action, providing an additional mechanism to deviate from the suboptimal behavior. Rather than learning a separate dynamics model, we propose Distillation for In-Context Planning (DICP), an in-context model-based RL framework where Transformers simultaneously learn environment dynamics and improve policy in-context. We evaluate DICP across a range of discrete and continuous environments, including Darkroom variants and Meta-World. Our results show that DICP achieves state-of-the-art performance while requiring significantly fewer environment interactions than baselines, which include both model-free counterparts and existing meta-RL methods.

View on arXivView PDF

Code Implementations(1)

jaehyeon-son/dicpCommunity100%

Official implementation for ICLR 2025 paper "Distilling Reinforcement Learning Algorithms for In-Context Model-Based Planning"

211PythonFeb 26, 20251 years ago

Similar Papers

Cite this paper

@article{son2026distilling,
  title  = {Distilling Reinforcement Learning Algorithms for In-Context Model-Based Planning},
  author = {Jaehyeon Son and Soochan Lee and Gunhee Kim},
  year   = {2026},
  eprint = {2502.19009},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2502.19009},
  journal = {ICLR 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.19009.svg)](https://codeofpaper.com/paper/2502.19009)

Discussion