Papers › Pre-Trained Language Models for Interactive Decision-Making

Pre-Trained Language Models for Interactive Decision-Making

3 Feb 2022arXiv:2202.01771archive 2025-07-28

Shuang Li, Xavier Puig, Chris Paxton, Yilun Du, Clinton Wang, Linxi Fan, Tao Chen, De-An Huang, Ekin Akyürek, Anima Anandkumar, Jacob Andreas, Igor Mordatch, Antonio Torralba, Yuke Zhu

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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2202.01771")

Code

Syntology Ran 0 of 18 code samples harvested from 1 repository linked to this paper; 18 have no recorded run.

By repository: community (archive-listed): 18 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

xavierpuigf/virtualhome mentioned on GitHubMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

18 samples harvested; 0 ran; 0 honoured the contract we drafted; 18 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

18unverified

Licence: 0 of the 18 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from xavierpuigf/virtualhome. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

build_grid_images xavierpuigf/virtualhome/virtualhome/demo/generate_snapshot.py community (archive-listed) unverified MIT (permissive) · adbcc83fbce194cc · report
clean_graph xavierpuigf/virtualhome/virtualhome/demo/utils_demo.py community (archive-listed) unverified MIT (permissive) · 83295b4614f48186 · report
cuboid xavierpuigf/virtualhome/virtualhome/demo/display_graph.py community (archive-listed) unverified MIT (permissive) · b3ca8a1b900d75f3 · report
find_edges_from xavierpuigf/virtualhome/virtualhome/demo/utils_demo.py community (archive-listed) unverified MIT (permissive) · 44dc4121fc6621b0 · report
find_nodes xavierpuigf/virtualhome/virtualhome/demo/utils_demo.py community (archive-listed) unverified MIT (permissive) · 8e3413a872edc331 · report
from_hash xavierpuigf/virtualhome/virtualhome/dataset_utils/augment_dataset_exceptions.py community (archive-listed) unverified MIT (permissive) · 058686fb222c2d31 · report
get_preconds_script xavierpuigf/virtualhome/virtualhome/dataset_utils/add_preconds.py community (archive-listed) unverified MIT (permissive) · 1aef779a0ec40326 · report
get_xyz_mouse_click xavierpuigf/virtualhome/virtualhome/demo/display_graph.py community (archive-listed) unverified MIT (permissive) · fc264d88eed3353e · report
getidperobject xavierpuigf/virtualhome/virtualhome/dataset_utils/exception_handler.py community (archive-listed) unverified MIT (permissive) · 05083186903d3268 · report
hasProperty xavierpuigf/virtualhome/virtualhome/dataset_utils/augmentation_utils.py community (archive-listed) unverified MIT (permissive) · ff70381f7e6ddae8 · report
insertInstructions xavierpuigf/virtualhome/virtualhome/dataset_utils/augmentation_utils.py community (archive-listed) unverified MIT (permissive) · f44fbe71aa27eb3d · report
obtain_objects_from_message xavierpuigf/virtualhome/virtualhome/dataset_utils/execute_script_utils.py community (archive-listed) unverified MIT (permissive) · b0f5c4fe4cd3952f · report
obtain_scene_id_from_path xavierpuigf/virtualhome/virtualhome/dataset_utils/execute_script_utils.py community (archive-listed) unverified MIT (permissive) · eb99b8eb5c8721af · report
obtain_script_grounded_in_graph xavierpuigf/virtualhome/virtualhome/dataset_utils/augment_dataset_exceptions.py community (archive-listed) unverified MIT (permissive) · 287b61eceef14fa4 · report
parseException xavierpuigf/virtualhome/virtualhome/dataset_utils/exception_handler.py community (archive-listed) unverified MIT (permissive) · b58216b38e8b12f8 · report
parseStrBlock xavierpuigf/virtualhome/virtualhome/dataset_utils/augmentation_utils.py community (archive-listed) unverified MIT (permissive) · 6b36626f01871673 · report
parse_exec_script_file xavierpuigf/virtualhome/virtualhome/dataset_utils/execute_script_utils.py community (archive-listed) unverified MIT (permissive) · f5247aeac1223674 · report
to_hash xavierpuigf/virtualhome/virtualhome/dataset_utils/augment_dataset_exceptions.py community (archive-listed) unverified MIT (permissive) · 998d6b9491c17a70 · report

Tasks

Decision MakingImitation LearningLanguage ModelingLanguage ModellingSequential Decision Making

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections