Skip to main content
QUICK REVIEW

[Paper Review] Unleashing the Power of Pre-trained Language Models for Offline Reinforcement Learning

Ruizhe Shi, Yuyao Liu|arXiv (Cornell University)|Oct 31, 2023
Reinforcement Learning in RoboticsComputer Science5 citations
TL;DR

This paper proposes LaMo, a framework that leverages pre-trained language models (LMs) to enhance offline reinforcement learning (RL) by initializing Decision Transformers with LMs, using LoRA for parameter-efficient fine-tuning, replacing linear projections with non-linear MLPs, and adding a language prediction auxiliary loss. LaMo achieves state-of-the-art performance in sparse-reward tasks and significantly closes the performance gap with value-based methods in dense-reward settings, especially under low-data regimes.

ABSTRACT

Offline reinforcement learning (RL) aims to find a near-optimal policy using pre-collected datasets. In real-world scenarios, data collection could be costly and risky; therefore, offline RL becomes particularly challenging when the in-domain data is limited. Given recent advances in Large Language Models (LLMs) and their few-shot learning prowess, this paper introduces $ extbf{La}$nguage Models for $ extbf{Mo}$tion Control ($ extbf{LaMo}$), a general framework based on Decision Transformers to effectively use pre-trained Language Models (LMs) for offline RL. Our framework highlights four crucial components: (1) Initializing Decision Transformers with sequentially pre-trained LMs, (2) employing the LoRA fine-tuning method, in contrast to full-weight fine-tuning, to combine the pre-trained knowledge from LMs and in-domain knowledge effectively, (3) using the non-linear MLP transformation instead of linear projections, to generate embeddings, and (4) integrating an auxiliary language prediction loss during fine-tuning to stabilize the LMs and retain their original abilities on languages. Empirical results indicate $ extbf{LaMo}$ achieves excellent performance in sparse-reward tasks and closes the gap between value-based offline RL methods and decision transformers in dense-reward tasks. In particular, our method demonstrates superior performance in scenarios with limited data samples.

Motivation & Objective

  • To address the challenge of data scarcity in offline reinforcement learning by leveraging pre-trained language models (LLMs) for improved sample efficiency.
  • To overcome the limitations of prior methods that fail to fully utilize the inductive bias and few-shot generalization of LMs in decision-making tasks.
  • To design a framework that preserves pre-trained LM knowledge while effectively adapting to offline RL environments with minimal parameter updates.
  • To improve performance in sparse-reward and low-data regimes where standard offline RL methods struggle.
  • To validate the effectiveness of combining LMs with Decision Transformers through ablation and comprehensive evaluation across diverse environments.

Proposed method

  • Initializing the Decision Transformer with a pre-trained language model (e.g., GPT-2) to inject general world knowledge and inductive bias.
  • Applying LoRA (Low-Rank Adaptation) for parameter-efficient fine-tuning, updating only 0.7% of the model parameters while freezing the pre-trained LM weights.
  • Replacing standard linear input embeddings and output projections with multi-layer perceptrons (MLPs) to better capture non-linear state-action relationships.
  • Introducing an auxiliary language prediction loss during fine-tuning to stabilize training and preserve the LM's original language understanding capabilities.
  • Processing raw state and action observations directly (not via language descriptions), enabling application to continuous control and vision-based tasks.
  • Evaluating across MuJoCo, Kitchen, and Atari environments with varying data ratios to assess sample efficiency and robustness.

Experimental results

Research questions

  • RQ1Can pre-trained language models be effectively leveraged to improve sample efficiency in offline reinforcement learning?
  • RQ2Does initializing Decision Transformers with pre-trained LMs and fine-tuning via LoRA yield better performance than standard DT or value-based methods?
  • RQ3How do non-linear MLP projections and auxiliary language losses affect the stability and performance of LM-based offline RL agents?
  • RQ4To what extent can LM-based models generalize in low-data regimes, especially in sparse-reward environments?
  • RQ5Does the integration of pre-trained knowledge from LMs close the performance gap between decision transformer-based and value-based offline RL methods?

Key findings

  • LaMo achieves state-of-the-art performance on sparse-reward tasks in the D4RL benchmark, outperforming both Decision Transformers and conservative Q-learning (CQL) methods.
  • In dense-reward tasks, LaMo significantly closes the performance gap between decision transformer-based and value-based methods, especially at low data ratios.
  • Under 1% data availability, LaMo achieves a mean score of 36.7 on sparse-reward tasks, outperforming DT (31.6) and LaMo without pre-training (23.3), demonstrating strong data efficiency.
  • The ablation study confirms that pre-training is critical: removing it reduces performance by over 10 points on average in sparse-reward tasks.
  • The use of non-linear MLPs and auxiliary language loss leads to more stable training and better retention of language capabilities, as shown by improved zero-shot generalization and lower variance in evaluation.
  • Even with randomly initialized weights, a larger model with LoRA and deeper embeddings outperforms standard DT, suggesting that architectural scaling and parameter-efficient adaptation are beneficial independently.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.