Learning from Human Feedback: Challenges for Real-World Reinforcement Learning in NLP

Julia Kreutzer, Stefan Riezler, Carolin LawrencearXiv 2020 · OpenReview

Abstract

Large volumes of interaction logs can be collected from NLP systems that are deployed in the real world. How can this wealth of information be leveraged? Using such interaction logs in an offline reinforcement learning (RL) setting is a promising approach. However, due to the nature of NLP tasks and the constraints of production systems, a series of challenges arise. We present a concise overview of these challenges and discuss possible solutions.

Introduction

In modern Natural Language Processing (NLP), deployed systems like machine translation services, chatbots, and summarizers generate vast quantities of interaction logs. Traditionally, these logs are used for post-hoc evaluation or monitoring. However, they represent a potential "gold mine" for model improvement. The ideal approach would be to learn from this feedback in real-time using online reinforcement learning (RL). Yet, in production environments, live updates are often prohibitively risky; a single bad update could lead to toxic or nonsensical outputs, damaging user trust.

This paper explores the alternative: offline RL, where models are updated using a fixed dataset of past interactions. While promising, applying offline RL to NLP involves navigating unique hurdles, ranging from the combinatorial explosion of language to the inherent noise of human behavior.

The Challenges of Offline RL in NLP

Transitioning from static supervised learning to offline RL in a production NLP context introduces three primary difficulties:

  1. The Exploration Problem: Standard RL theory relies on exploration—trying various actions to see which yield the highest rewards. However, production systems are typically deterministic, always providing the "best" predicted output. Without explicit exploration in the logs, it is difficult to determine if an alternative output would have been superior.
  2. The Astronomical Output Space: Unlike games with a limited set of moves, the action space in NLP is the set of all possible sentences. This space is effectively infinite ($|Vocabulary|^{Length}$), making feedback extremely sparse. Most possible sentences have never been seen or rated.
  3. The Human Factor: Human feedback is the ultimate ground truth but is notoriously expensive, inconsistent, and noisy. Capturing high-quality signals from implicit user actions (like clicks or session abandonment) is a significant engineering and statistical challenge.

Algorithmic Frameworks for Offline Learning

To address these challenges, the authors frame the problem as learning a target policy $\pi_\theta$ from a logging dataset $\mathcal{D}_{log}$ generated by a previous logging policy. They identify several key algorithmic strategies:

  • Inverse Propensity Scoring (IPS): This technique corrects the selection bias between what the system did in the past and what the new model wants to do. It reweights samples to ensure the new policy doesn't drift too far from the data distribution.
  • Deterministic Propensity Matching (DPM): To counter the lack of explicit exploration in production, DPM leverages the natural variability in user inputs. By treating similar inputs as opportunities for "implicit" exploration, the model can infer the value of different outputs.
  • One-Step-Late (OSL) Reweighting: A common failure mode in offline RL is "degeneracy," where the model assigns high probability to any output that received a non-zero reward, regardless of quality. OSL reweighting acts as a self-normalization tool to keep the model focused on high-quality outputs.
  • The Doubly Robust (DR) Objective: Considered the most robust approach, the DR objective combines logged rewards with a learned reward estimator. This allows the model to "hallucinate" potential rewards for outputs not present in the original logs, effectively enabling a form of offline exploration and reducing variance.

Rethinking Human Feedback

A significant contribution of this work is the analysis of how human feedback is collected. While the current trend in Reinforcement Learning from Human Feedback (RLHF) favors pairwise comparisons ("Is A better than B?"), the authors highlight evidence from machine translation suggesting that 5-point Likert scales may be superior.

In empirical studies, 5-point scales achieved higher inter-rater reliability ($\alpha = 0.51$) compared to pairwise judgments ($\alpha = 0.39$). The absolute anchors provided by a scale (e.g., "Perfect," "Good," "Bad") appear to help humans remain more consistent than relative comparisons, which can be highly subjective and context-dependent.

Key Results and Insights

The paper draws on evidence from machine translation, semantic parsing, and dialogue systems to demonstrate the following:

  • Efficiency: Neural machine translation systems can be significantly improved using reward estimators trained on as few as a few hundred cardinal user judgments. This suggests that we do not need millions of ratings to begin seeing the benefits of offline RL.
  • Generalization through Implicit Exploration: Even in deterministic systems, the overlap of words across different sentences allows models to generalize. A reward for a specific word in one context can help the model infer its value in another, mitigating the sparse feedback problem.
  • Algorithm Superiority: In tasks like mapping natural language to SQL (semantic parsing), the Doubly Robust objective consistently outperforms simpler importance sampling methods by providing a more stable and lower-variance learning signal.

Limitations and Future Directions

Despite the potential of offline RL, several open questions remain. Credit assignment is a major hurdle: if a user provides a negative rating for a long paragraph, it is difficult to pinpoint which specific word or phrase caused the dissatisfaction. Furthermore, the use of reward estimators as a "buffer" between human noise and the RL agent is promising but risks introducing new biases if the estimator itself is flawed.

Future research must focus on designing non-intrusive user interfaces that collect higher-quality feedback and ensuring that offline updates do not inadvertently compromise model safety on edge cases not represented in the interaction logs.

Summary updated

Abstract

Large volumes of interaction logs can be collected from NLP systems that are deployed in the real world. How can this wealth of information be leveraged? Using such interaction logs in an offline reinforcement learning (RL) setting is a promising approach. However, due to the nature of NLP tasks and the constraints of production systems, a series of challenges arise. We present a concise overview of these challenges and discuss possible solutions.
BibTeX
@misc{kreutzer2020learning,
  author = {Julia Kreutzer and Stefan Riezler and Carolin Lawrence},
  title = {{Learning from Human Feedback: Challenges for Real-World Reinforcement Learning in NLP}},
  year = {2020},
  eprint = {2011.02511},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2011.02511},
}
Figure