Saved in:
Bibliographic Details
Main Authors: Piterbarg, Ulyana, Pinto, Lerrel, Fergus, Rob
Format: Preprint
Published: 2023
Subjects:
Online Access:https://arxiv.org/abs/2312.07540
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910481512398848
author Piterbarg, Ulyana
Pinto, Lerrel
Fergus, Rob
author_facet Piterbarg, Ulyana
Pinto, Lerrel
Fergus, Rob
contents Neural Language Models (LMs) offer an exciting solution for general-purpose embodied control. However, a key technical issue arises when using an LM-based controller: environment observations must be converted to text, which coupled with history, results in long and verbose textual prompts. As a result, prior work in LM agents is limited to restricted domains with small observation size as well as minimal needs for interaction history or instruction tuning. In this paper, we introduce diff history, a simple and highly effective solution to these issues. By applying the Unix diff command on consecutive text observations in the interaction histories used to prompt LM policies, we can both abstract away redundant information and focus the content of textual inputs on the salient changes in the environment. On NetHack, an unsolved video game that requires long-horizon reasoning for decision-making, LMs tuned with diff history match state-of-the-art performance for neural agents while needing 1800x fewer training examples compared to prior work. Even on the simpler BabyAI-Text environment with concise text observations, we find that although diff history increases the length of prompts, the representation it provides offers a 25% improvement in the efficiency of low-sample instruction tuning. Further, we show that diff history scales favorably across different tuning dataset sizes. We open-source our code and data to https://diffhistory.github.io.
format Preprint
id arxiv_https___arxiv_org_abs_2312_07540
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle diff History for Neural Language Agents
Piterbarg, Ulyana
Pinto, Lerrel
Fergus, Rob
Artificial Intelligence
Computation and Language
Machine Learning
Neural Language Models (LMs) offer an exciting solution for general-purpose embodied control. However, a key technical issue arises when using an LM-based controller: environment observations must be converted to text, which coupled with history, results in long and verbose textual prompts. As a result, prior work in LM agents is limited to restricted domains with small observation size as well as minimal needs for interaction history or instruction tuning. In this paper, we introduce diff history, a simple and highly effective solution to these issues. By applying the Unix diff command on consecutive text observations in the interaction histories used to prompt LM policies, we can both abstract away redundant information and focus the content of textual inputs on the salient changes in the environment. On NetHack, an unsolved video game that requires long-horizon reasoning for decision-making, LMs tuned with diff history match state-of-the-art performance for neural agents while needing 1800x fewer training examples compared to prior work. Even on the simpler BabyAI-Text environment with concise text observations, we find that although diff history increases the length of prompts, the representation it provides offers a 25% improvement in the efficiency of low-sample instruction tuning. Further, we show that diff history scales favorably across different tuning dataset sizes. We open-source our code and data to https://diffhistory.github.io.
title diff History for Neural Language Agents
topic Artificial Intelligence
Computation and Language
Machine Learning
url https://arxiv.org/abs/2312.07540