Selective Perception: Optimizing State Descriptions with Reinforcement Learning for Language Model Actors

Kolby Nottingham, Yasaman Razeghi, Kyungmin Kim, Jb Lanier, Pierre Baldi, Roy Fox, Sameer SingharXiv 2023 · DOI

Abstract

Large Language Models (LLMs) are increasingly being used as actors in complex, sequential environments. A major bottleneck in this deployment is the "grounding" problem: providing the LLM with an environment description that is both comprehensive and concise. Exhaustive descriptions lead to high inference costs and performance-degrading noise. We introduce BLINDER (Brief Language INputs for DEcision-making Responses), a reinforcement learning framework that automatically selects the most relevant state features for an LLM actor. BLINDER reduces input length by 6x while improving success rates by up to 150%. Crucially, BLINDER requires minimal expert data and generalizes across different model architectures and novel tasks.

Introduction

The integration of Large Language Models (LLMs) into robotics and gaming environments necessitates effective state representation. Current methodologies typically oscillate between two extremes: exhaustive linguistic descriptions that overwhelm the model's context window with irrelevant details, and hand-engineered protocols that lack the flexibility to generalize across diverse domains. This paper presents a solution to the "Selective Perception" challenge, demonstrating how reinforcement learning can be leveraged to autonomously generate task-conditioned, concise state descriptions.

Methods

The authors frame state description selection as a Reinforcement Learning (RL) problem, treating the construction of a description as a Markov Decision Process (MDP). In this framework, the "state" is the current string of text, and the "action" involves selecting an individual feature from a library of factual environment statements.

The BLINDER Framework

BLINDER uses a reward function based on action likelihood. A positive reward is granted if a selected feature increases the probability of the LLM actor choosing the "correct" action, as determined by a small set of expert trajectories (only 25 per task). The core model is a finetuned Flan-T5-Large (780M parameters) equipped with a value head to predict the utility of a given description.

The BLINDER training pipeline and inference flow, illustrating how full state descriptions are pruned into selected descriptions for the LLM Actor.

During inference, BLINDER employs a greedy policy, adding features until the predicted value plateaus. This ensures that the resulting prompt is as brief as possible while remaining highly informative for the decision-making agent.

Results and Discussion

BLINDER was evaluated on the complex dungeon crawler NetHack and a Robotic Item Arrangement task. The system demonstrated significant improvements in both efficiency and performance compared to standard baselines.

Performance and Efficiency

BLINDER achieved a 6x reduction in context length while simultaneously boosting downstream task performance by up to 150%. It outperformed both exhaustive descriptions and zero-shot summarization by larger models.

Success rates of a few-shot GPT-3 Actor across various tasks, comparing full state descriptions, zero-shot summaries, and BLINDER-optimized descriptions.

Key Insights

  • Cross-Model Generalization: A model trained to optimize inputs for the smaller Flan-T5 also significantly improved the performance of a much larger, black-box model, GPT-3.5. This suggests that "relevance" is a transferable concept across different language models.
  • Context Optimization: By shrinking state descriptions, BLINDER frees context window space for additional few-shot examples, further enhancing agent performance.
  • Dynamic Relevance: The model learns to prioritize different features at different stages of a trajectory, adapting to the changing needs of the task.

Conclusion

BLINDER provides a robust, data-efficient method for optimizing the interface between complex environments and LLM actors. By learning to focus on "need-to-know" information, it makes LLM agents more efficient and capable. Future work will explore generating free-form summaries and hierarchical feature abstractions to further reduce dependency on pre-defined feature sets.

Summary updated

BibTeX
@misc{nottingham2023selective,
  author = {Kolby Nottingham and Yasaman Razeghi and Kyungmin Kim and JB Lanier and Pierre Baldi and Roy Fox and Sameer Singh},
  title = {{Selective Perception: Optimizing State Descriptions with Reinforcement Learning for Language Model Actors}},
  year = {2023},
  eprint = {2307.11922},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.11922},
}
Figure