Abstract
Traditional reinforcement learning (RL) agents typically rely on scalar rewards or rigid commands, which often fail to capture the nuance of natural human communication. This paper presents a framework for learning reward functions from unconstrained linguistic feedback. By treating language as a noisy signal for a hidden reward function and employing aspect-based sentiment analysis, the researchers developed a "pragmatic" model that accounts for both explicit and implicit information. Experimental results from live human-agent interactions demonstrate that this approach achieves near-human performance in learning complex preferences from natural language.
Introduction
In the quest to align artificial agents with human values, the primary bottleneck is often the communication of intent. While RL agents typically optimize for numerical rewards, humans naturally provide feedback through a diverse range of linguistic expressions: evaluative ("Nice work"), imperative ("You should have picked up the blue square"), and descriptive ("I really don't like the yellow circles").
The challenge lies in the context-dependent and "messy" nature of these utterances. An agent must distinguish whether "Good job" refers to a specific recent action or a general strategy. This research addresses the gap between raw, naturalistic text and the formal reward functions required for agent optimization.
Methods
The authors formalize the learning process as a Bayesian linear regression problem. They assume a teacher possesses a hidden reward function, represented by weights $w$ over environment features $\phi$. The agent's objective is to infer these weights $w$ from the teacher's utterances $u$.
The core architecture involves a two-step decomposition:
- Aspect-Based Sentiment Analysis: Utterances are broken down into a sentiment score ($\zeta$) and a target feature vector ($f$).
- Grounding in MDPs: These targets are mapped to a Markov Decision Process (MDP) through three feedback types:
- Evaluative: Targets features of the trajectory just completed.
- Imperative: Targets features of a counterfactual, superior action.
- Descriptive: Targets specific features explicitly mentioned (e.g., "pink" or "squares").
The study compared three distinct agent architectures: the Literal Model, which interprets sentiment exactly as stated; the Pragmatic Model, which uses Gricean Maxims to infer implicit information (e.g., assuming omitted features are less desirable); and an end-to-end Inference Network.
Experimental Setup and Datasets
To evaluate these models, the researchers collected a new human-human instruction dataset. In a collaborative grid-world task, a "Learner" collected colored shapes whose secret values were known only to a "Teacher." Data collection involved 208 participants on Amazon Mechanical Turk, resulting in over 1,000 messages across various episodes. The models were subsequently tested in "live" settings with 148 new human teachers to assess their ability to learn preferences in real-time.
Results and Discussion
The Pragmatic model emerged as the top performer, achieving a normalized score of 42.8—remarkably close to the human learner baseline of 44.3. In live interactions, it significantly outperformed both the Literal model (34.7) and the Inference Network (35.0).
Key insights from the study include:
- Pragmatic Reasoning: The superiority of the Pragmatic model suggests that what a teacher omits is as informative as what they say. For instance, saying "Go for the blue ones" implies that other colors are less desirable.
- Teaching Scaffolding: Human teachers naturally adapt their feedback, starting with descriptive guidance to establish a foundation and shifting to evaluative feedback as the agent improves.
- Structured vs. End-to-End: While the neural Inference Network was robust on large datasets, it struggled in small-data, live interactions. This highlights the value of structured sentiment models in handling idiosyncratic communication styles during real-time learning.
Conclusion and Future Work
This work demonstrates that unconstrained natural language is a viable and efficient signal for learning reward functions. However, limitations remain, such as the reliance on hand-coded lexicons for grounding and the simplicity of the grid-world environment. Future research may involve hybridizing these Bayesian frameworks with large-scale pre-trained language models to improve grounding in more complex, high-dimensional real-world settings.
Summary updated