Skip to main content
QUICK REVIEW

[Paper Review] Active Finite Reward Automaton Inference and Reinforcement Learning Using Queries and Counterexamples

Zhe Xu, Bo Wu|arXiv (Cornell University)|Jun 28, 2020
Machine Learning and AlgorithmsComputer Science36 references8 citations
TL;DR

This paper proposes AFRAI-RL, an active reinforcement learning framework that infers finite reward automata using L*-style queries during training to model non-Markovian, bounded reward functions. By actively guiding exploration through membership and equivalence queries answered via RL, the method achieves faster convergence to optimal policies—up to 88.8% faster—than state-of-the-art baselines like JIRP-SAT, LRM-QRM, and PPO2 in both Office World and Minecraft environments with complex sequential reward structures.

ABSTRACT

Despite the fact that deep reinforcement learning (RL) has surpassed human-level performances in various tasks, it still has several fundamental challenges. First, most RL methods require intensive data from the exploration of the environment to achieve satisfactory performance. Second, the use of neural networks in RL renders it hard to interpret the internals of the system in a way that humans can understand. To address these two challenges, we propose a framework that enables an RL agent to reason over its exploration process and distill high-level knowledge for effectively guiding its future explorations. Specifically, we propose a novel RL algorithm that learns high-level knowledge in the form of a finite reward automaton by using the L* learning algorithm. We prove that in episodic RL, a finite reward automaton can express any non-Markovian bounded reward functions with finitely many reward values and approximate any non-Markovian bounded reward function (with infinitely many reward values) with arbitrary precision. We also provide a lower bound for the episode length such that the proposed RL approach almost surely converges to an optimal policy in the limit. We test this approach on two RL environments with non-Markovian reward functions, choosing a variety of tasks with increasing complexity for each environment. We compare our algorithm with the state-of-the-art RL algorithms for non-Markovian reward functions, such as Joint Inference of Reward machines and Policies for RL (JIRP), Learning Reward Machine (LRM), and Proximal Policy Optimization (PPO2). Our results show that our algorithm converges to an optimal policy faster than other baseline methods.

Motivation & Objective

  • To address the data inefficiency and lack of interpretability in deep RL, especially for non-Markovian reward functions.
  • To enable RL agents to actively infer high-level reward structures (finite reward automata) from environment interactions.
  • To improve sample efficiency and convergence speed in episodic RL by integrating active automaton inference with Q-learning.
  • To provide theoretical guarantees on convergence under a lower bound for episode length.
  • To demonstrate superior performance over state-of-the-art methods in environments with complex, sequential reward dependencies.

Proposed method

  • The framework uses an active inference mechanism inspired by the L* learning algorithm, where the RL agent acts as a learner and the environment/RL engine serves as a teacher.
  • Two Q-functions are maintained: one to incentivize answering membership queries during exploration, and another to evaluate policies for equivalence queries.
  • Finite reward automata are inferred from trajectories by querying whether state-action sequences yield specific rewards, enabling representation of non-Markovian reward functions.
  • The inferred automaton is used to guide policy learning, allowing the agent to reason about long-term reward structures and self-correct during training.
  • The method proves that any bounded non-Markovian reward function with finitely many values can be exactly expressed, and any such function with infinitely many values can be approximated arbitrarily closely.
  • A theoretical lower bound on episode length is derived to ensure almost sure convergence to an optimal policy in the limit.

Experimental results

Research questions

  • RQ1Can active inference of finite reward automata improve sample efficiency and convergence speed in non-Markovian RL?
  • RQ2Can finite reward automata exactly represent any bounded non-Markovian reward function with finitely many values?
  • RQ3Can finite reward automata approximate any bounded non-Markovian reward function with infinitely many values to arbitrary precision?
  • RQ4What is the minimum episode length required for the proposed method to almost surely converge to an optimal policy?
  • RQ5How does the active inference of reward automata compare to joint inference or passive inference in terms of convergence speed and performance?

Key findings

  • In the Office World scenario, AFRAI-RL converged to an optimal policy in approximately 0.2 million training steps for Task 1, while JIRP-SAT, LRM-QRM, and PPO2 failed to converge.
  • For Task 2 in the Office World, AFRAI-RL converged in about 1.8 million steps, whereas all baselines failed to converge.
  • In Task 3 of the Office World, AFRAI-RL converged in 4.0 million steps, outperforming JIRP-SAT (4.5 million steps) and surpassing LRM-QRM and PPO2, which did not converge.
  • In the Minecraft world, AFRAI-RL achieved convergence in 190,000 steps for Task 1 and 170,000 steps for Task 2, while all baselines failed to converge.
  • The proposed method achieved convergence up to 88.8% faster than any baseline in the best-case scenarios, with convergence occurring where others did not.
  • Theoretical analysis confirms that the method converges almost surely to an optimal policy if the episode length exceeds a derived lower bound.

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.