Skip to main content
QUICK REVIEW

[Paper Review] Residual Q-Learning: Offline and Online Policy Customization without Value

Chenran Li, Chen Tang|arXiv (Cornell University)|Jun 15, 2023
Reinforcement Learning in RoboticsComputer Science3 citations
TL;DR

This paper proposes Residual Q-Learning (RQL), a novel framework for offline and online policy customization that enables a pre-trained imitative policy to adapt to new downstream tasks while preserving its expert-like behavior. By formulating customization as an MDP with a combined reward of imitation and task-specific objectives, RQL learns a residual Q-function without requiring access to the prior policy's reward or value function, achieving effective trade-offs between imitation and new task performance across multiple environments.

ABSTRACT

Imitation Learning (IL) is a widely used framework for learning imitative behavior from demonstrations. It is especially appealing for solving complex real-world tasks where handcrafting reward function is difficult, or when the goal is to mimic human expert behavior. However, the learned imitative policy can only follow the behavior in the demonstration. When applying the imitative policy, we may need to customize the policy behavior to meet different requirements coming from diverse downstream tasks. Meanwhile, we still want the customized policy to maintain its imitative nature. To this end, we formulate a new problem setting called policy customization. It defines the learning task as training a policy that inherits the characteristics of the prior policy while satisfying some additional requirements imposed by a target downstream task. We propose a novel and principled approach to interpret and determine the trade-off between the two task objectives. Specifically, we formulate the customization problem as a Markov Decision Process (MDP) with a reward function that combines 1) the inherent reward of the demonstration; and 2) the add-on reward specified by the downstream task. We propose a novel framework, Residual Q-learning, which can solve the formulated MDP by leveraging the prior policy without knowing the inherent reward or value function of the prior policy. We derive a family of residual Q-learning algorithms that can realize offline and online policy customization, and show that the proposed algorithms can effectively accomplish policy customization tasks in various environments. Demo videos and code are available on our website: https://sites.google.com/view/residualq-learning.

Motivation & Objective

  • To address the challenge of customizing pre-trained imitative policies for new downstream tasks while preserving their expert-like characteristics.
  • To formulate policy customization as a Markov Decision Process (MDP) with a combined reward function integrating imitation and task-specific objectives.
  • To develop a principled method that learns the trade-off between imitation and downstream task performance without knowing the prior policy's inherent reward or value function.
  • To enable both offline and online policy customization using residual Q-learning, with support for model-free and model-based approaches.
  • To demonstrate the effectiveness of RQL across diverse environments, including continuous control, autonomous driving, and manipulation tasks.

Proposed method

  • Formulate policy customization as an MDP with a reward function that is a linear combination of the prior policy's log-likelihood (imitation) and an add-on reward (downstream task).
  • Introduce a residual Q-function that, combined with the log-likelihood of the prior policy, enables the derivation of a maximum-entropy policy for the target MDP.
  • Derive an iterative update rule for the residual Q-function based on the soft Bellman equation, enabling training without access to the prior policy's reward or value function.
  • Develop model-free algorithms: residual soft Q-learning and residual soft actor-critic, adapted from established maximum-entropy RL methods.
  • Propose a model-based variant using maximum-entropy Monte Carlo Tree Search (ME-MCTS) for zero-shot online customization when a dynamics model is available.
  • Leverage the prior policy's behavior as a behavioral prior in the policy optimization, ensuring continuity with expert demonstrations.

Experimental results

Research questions

  • RQ1Can a pre-trained imitative policy be effectively customized for new downstream tasks while maintaining its expert-like behavior?
  • RQ2How can a principled trade-off between imitation and downstream task objectives be achieved without access to the prior policy's reward or value function?
  • RQ3Can residual Q-learning enable both offline and online policy customization with strong performance across diverse environments?
  • RQ4How does the performance of RQL compare to standard RL fine-tuning and behavior cloning in terms of maintaining imitation quality while adapting to new objectives?
  • RQ5What is the impact of distributional shift on policy customization, and how can it be mitigated?

Key findings

  • In the CartPole environment, RQL customized policies achieved a success rate of 100% on the basic task while reducing the negative add-on reward from -31.11±22.82 (prior) to -11.18±10.12 (customized), indicating effective adaptation.
  • In the Continuous Mountain Car environment, the customized policy improved the add-on reward from -4.23±0.13 (prior) to -3.79±0.07, while maintaining a high success rate and reducing behavior deviation.
  • In the Highway environment, the RQL-customized policy achieved a success rate of 97.19% and improved the add-on reward from 9.17±5.54 (prior) to 19.42±0.99, demonstrating strong performance on the new task.
  • In the Parking environment, the customized IL policy increased success rate from 70.91% (prior) to 83.59%, while improving safety compliance from 11.27% to 66.07% and reducing negative reward from -4.94±5.52 to -0.32±0.73.
  • The model-based ME-MCTS variant achieved a 98.00% success rate in Highway and maintained high add-on reward (19.19±1.38), showing strong potential for zero-shot online customization.
  • The RQL framework successfully maintained high performance on the basic task (e.g., 95.61±0.43 basic reward in Mountain Car) while significantly improving performance on the add-on task, confirming effective trade-off learning.

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.