Skip to main content
QUICK REVIEW

[Paper Review] EAGER: Asking and Answering Questions for Automatic Reward Shaping in Language-guided RL

Thomas Carta, Pierre‐Yves Oudeyer|arXiv (Cornell University)|Jun 20, 2022
Topic ModelingComputer Science5 citations
TL;DR

This paper proposes EAGER, a language-guided reinforcement learning method that automatically generates auxiliary objectives via question generation (QG) and question answering (QA) from a natural language goal. By rewarding the agent for confidently answering self-generated questions about trajectory-based partial information, EAGER shapes intrinsic rewards without expert intervention, improving sample efficiency in sparse-reward, long-horizon tasks.

ABSTRACT

Reinforcement learning (RL) in long horizon and sparse reward tasks is notoriously difficult and requires a lot of training steps. A standard solution to speed up the process is to leverage additional reward signals, shaping it to better guide the learning process. In the context of language-conditioned RL, the abstraction and generalisation properties of the language input provide opportunities for more efficient ways of shaping the reward. In this paper, we leverage this idea and propose an automated reward shaping method where the agent extracts auxiliary objectives from the general language goal. These auxiliary objectives use a question generation (QG) and question answering (QA) system: they consist of questions leading the agent to try to reconstruct partial information about the global goal using its own trajectory. When it succeeds, it receives an intrinsic reward proportional to its confidence in its answer. This incentivizes the agent to generate trajectories which unambiguously explain various aspects of the general language goal. Our experimental study shows that this approach, which does not require engineer intervention to design the auxiliary objectives, improves sample efficiency by effectively directing exploration.

Motivation & Objective

  • To address the sample inefficiency of language-conditioned reinforcement learning in long-horizon, sparse-reward environments.
  • To eliminate the need for expert-designed auxiliary objectives or reward shaping in language-guided RL.
  • To enable agents to autonomously generate meaningful sub-goals through question generation from natural language instructions.
  • To improve exploration and learning efficiency via intrinsic rewards based on confidence in answering self-generated questions.
  • To develop a reference-less, automated reward shaping mechanism inspired by NLP question-answering metrics.

Proposed method

  • The agent uses a question generation (QG) module to create questions by masking words in the initial language goal.
  • A question-answering (QA) module attempts to answer each question using only the agent’s current trajectory, with answers based on observed state sequences.
  • The agent receives an intrinsic reward proportional to its confidence in correct answers, with a 'no_answer' option to avoid false positives.
  • The QA module is pre-trained on a dataset of successful trajectories to learn to answer questions about partial goal information.
  • The method uses a curriculum of self-generated questions to guide exploration toward trajectories that unambiguously reconstruct key aspects of the language goal.
  • The approach is robust to QA performance as long as the QA success rate exceeds 0.56, with improved learning when QA is more reliable.

Experimental results

Research questions

  • RQ1Can an agent automatically generate useful auxiliary objectives from a natural language goal without expert input?
  • RQ2How does intrinsic reward shaped by self-generated QA improve sample efficiency in language-guided RL?
  • RQ3What impact does QA reliability have on the performance of the EAGER framework?
  • RQ4How do design choices in the QA module—such as the 'no_answer' option and confidence-based rewards—affect learning efficiency?
  • RQ5Can EAGER generalize across environments with varying trajectory distributions and QA quality?

Key findings

  • EAGER improves sample efficiency in language-guided RL by enabling agents to shape intrinsic rewards through self-generated questions and confidence-based answers.
  • The method achieves faster learning when the QA module has a success rate above 0.56, with training curves stabilizing across different QA performance levels.
  • Agents trained with QA modules that include a 'no_answer' option and confidence-based rewards show significantly better sample efficiency than binary or non-confident reward baselines.
  • Training on a wide distribution of trajectories (with added noise) leads to faster learning than on narrow, deterministic trajectory distributions.
  • Ablation studies confirm that both the 'no_answer' mechanism and confidence-based rewards independently enhance learning speed and stability.
  • The framework remains effective even when QA performance is suboptimal, demonstrating robustness to imperfect question-answering systems.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.