Pre-trained Language Models Improve the Few-shot Prompt Ability of Decision Transformer

Yu Yang, Pan Xu
8/2/2024
cs.LGcs.AIcs.CL

No official code found. Best implementation: panxulab/LPDT (1 star, MIT, last commit 2025-11-19).

Abstract

Decision Transformer (DT) has emerged as a promising class of algorithms in offline reinforcement learning (RL) tasks, leveraging pre-collected datasets and Transformer's capability to model long sequences. Recent works have demonstrated that using parts of trajectories from training tasks as prompts in DT enhances its performance on unseen tasks, giving rise to Prompt-DT methods. However, collecting data from specific environments can be both costly and unsafe in many scenarios, leading to suboptimal performance and limited few-shot prompt abilities due to the data-hungry nature of Transformer-based models. Additionally, the limited datasets used in pre-training make it challenging for Prompt-DT type of methods to distinguish between various RL tasks through prompts alone. To address these challenges, we introduce the Language model-initialized Prompt Decision Transformer (LPDT) framework, which leverages pretrained language models providing rich prior knowledge for RL tasks and fine-tunes the sequence model using Low-rank Adaptation (LoRA) for meta-RL problems. We further incorporate prompt regularization to effectively differentiate between tasks based on prompt feature representations. Comprehensive empirical studies demonstrate that initializing with a pre-trained language model provides the prior knowledge and achieves a similar performance with Prompt-DT under only $10\%$ data in some MuJoCo control tasks. We also provide a thorough ablation study to validate the effectiveness of each component, including sequence modeling, language models, prompt regularizations, and prompt strategies.

View on arXivView PDF

Code Implementations(1)

panxulab/LPDTCommunity65%
MIT

Code for the paper "Pre-trained Language Models Improve the Few-shot Prompt Ability of Decision Transformer", Transactions on Machine Learning Research (TMLR) 2025

11Ruby, ShellNov 9, 202511 months agoMIT

Similar Papers

Cite this paper

@article{yang2024pretrained,
  title  = {Pre-trained Language Models Improve the Few-shot Prompt Ability of Decision Transformer},
  author = {Yu Yang and Pan Xu},
  year   = {2024},
  eprint = {2408.01402},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.01402v2}
}

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/2408.01402.svg)](https://codeofpaper.com/paper/2408.01402)

Discussion