Skip to main content
QUICK REVIEW

[Paper Review] Pre-Trained Language Models for Interactive Decision-Making

Shuang Li, Xavier Puig|arXiv (Cornell University)|Feb 3, 2022
Topic ModelingComputer Science53 citations
TL;DR

The paper introduces LID, a framework that uses pre-trained language models to initialize and fine-tune policies for interactive decision-making, enabling strong combinatorial generalization and data-efficient learning via imitation or active data gathering. It demonstrates substantial improvements in VirtualHome and BabyAI across in-distribution and out-of-distribution tasks, plus an effective self-supervised ADG loop.

ABSTRACT

Language model (LM) pre-training is useful in many language processing tasks. But can pre-trained LMs be further leveraged for more general machine learning problems? We propose an approach for using LMs to scaffold learning and generalization in general sequential decision-making problems. In this approach, goals and observations are represented as a sequence of embeddings, and a policy network initialized with a pre-trained LM predicts the next action. We demonstrate that this framework enables effective combinatorial generalization across different environments and supervisory modalities. We begin by assuming access to a set of expert demonstrations, and show that initializing policies with LMs and fine-tuning them via behavior cloning improves task completion rates by 43.6% in the VirtualHome environment. Next, we integrate an active data gathering procedure in which agents iteratively interact with the environment, relabel past "failed" experiences with new goals, and update their policies in a self-supervised loop. Active data gathering further improves combinatorial generalization, outperforming the best baseline by 25.1%. Finally, we explain these results by investigating three possible factors underlying the effectiveness of the LM-based policy. We find that sequential input representations (vs. fixed-dimensional feature vectors) and LM-based weight initialization are both important for generalization. Surprisingly, however, the format of the policy inputs encoding (e.g. as a natural language string vs. an arbitrary sequential encoding) has little influence. Together, these results suggest that language modeling induces representations that are useful for modeling not just language, but also goals and plans; these representations can aid learning and generalization even outside of language processing.

Motivation & Objective

  • Motivate the use of pre-trained language models as a general scaffold for interactive decision-making across diverse environments.
  • Enable combinatorial generalization by encoding policy inputs as sequential data processed by a transformer LM.
  • Show that LM-initialized policies improve imitation learning performance and generalize to novel goals and states.
  • Introduce Active Data Gathering (ADG) to learn without expert data and to relabel experiences for improved policy learning.
  • Analyze factors contributing to generalization, including input encoding, sequential processing, and LM weight initialization.

Proposed method

  • Represent goals, observations, and history as a sequential input fed to a transformer encoder initialized with a pre-trained LM (GPT-2).
  • Fine-tune LM weights to predict the next action via imitation learning on expert trajectories or via active data gathering (ADG) with hindsight relabeling.
  • Use language-based or sequential encodings for policy inputs; employ a context representation from the LM to predict actions.
  • In ADG, perform exploration, hindsight relabeling to create new goals from failed trajectories, and policy updates in a loop without expert data.
  • Compare LID (LM-initialized) to baselines (LSTM, MLP) and RL/HER methods across VirtualHome and BabyAI tasks.

Experimental results

Research questions

  • RQ1Can pre-trained language models serve as a general framework to initialize policies for sequential decision-making beyond language tasks?
  • RQ2Does LM-based policy initialization improve combinatorial generalization to novel goals, states, or objects in embodied environments?
  • RQ3Can active data gathering with hindsight relabeling enable learning without expert data and outperform traditional RL methods?
  • RQ4Which factors (input encoding, sequential structure, LM weight initialization) most contribute to the observed generalization benefits?

Key findings

  • LM-initialized policies significantly improve combinatorial generalization, e.g., a 43.6% higher task completion on novel VirtualHome tasks compared with baselines.
  • Imitation learning with LM initializers yields about 20% more successful policies in in-distribution VirtualHome tasks versus baselines.
  • Active Data Gathering (ADG) with relabeling further improves generalization, outperforming baselines by 25.1% on novel tasks.
  • Sequential input representations and LM-style weight initialization are important for generalization; natural language input is not strictly required, and sequential Encoding matters more for generalization.
  • Fine-tuning LM weights (vs. freezing) is essential for combinatorial generalization; sequential processing contributes to performance, while non-sequential input degrades generalization.

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.