Skip to main content
QUICK REVIEW

[Paper Review] Policy Finetuning: Bridging Sample-Efficient Offline and Online Reinforcement Learning

Tengyang Xie, Nan Jiang|arXiv (Cornell University)|Jun 9, 2021
Reinforcement Learning in RoboticsComputer Science44 references16 citations
TL;DR

This paper introduces policy finetuning, a unified RL setting that bridges offline and online reinforcement learning by leveraging a reference policy $μ$ near the optimal policy $\pi_{\star}$. It proposes a hybrid algorithm that achieves improved sample efficiency by combining offline data collection from $\mu$ with adaptive online exploration, proving the first tight sample complexity bound of $\widetilde{O}(H^3 S C^\star / \varepsilon^2)$ for offline reduction and establishing a lower bound showing that optimal performance is achieved either by pure offline reduction or by purely online methods.

ABSTRACT

Recent theoretical work studies sample-efficient reinforcement learning (RL) extensively in two settings: learning interactively in the environment (online RL), or learning from an offline dataset (offline RL). However, existing algorithms and theories for learning near-optimal policies in these two settings are rather different and disconnected. Towards bridging this gap, this paper initiates the theoretical study of policy finetuning, that is, online RL where the learner has additional access to a "reference policy" $μ$ close to the optimal policy $π_\star$ in a certain sense. We consider the policy finetuning problem in episodic Markov Decision Processes (MDPs) with $S$ states, $A$ actions, and horizon length $H$. We first design a sharp offline reduction algorithm -- which simply executes $μ$ and runs offline policy optimization on the collected dataset -- that finds an $\varepsilon$ near-optimal policy within $\widetilde{O}(H^3SC^\star/\varepsilon^2)$ episodes, where $C^\star$ is the single-policy concentrability coefficient between $μ$ and $π_\star$. This offline result is the first that matches the sample complexity lower bound in this setting, and resolves a recent open question in offline RL. We then establish an $Ω(H^3S\min\{C^\star, A\}/\varepsilon^2)$ sample complexity lower bound for any policy finetuning algorithm, including those that can adaptively explore the environment. This implies that -- perhaps surprisingly -- the optimal policy finetuning algorithm is either offline reduction or a purely online RL algorithm that does not use $μ$. Finally, we design a new hybrid offline/online algorithm for policy finetuning that achieves better sample complexity than both vanilla offline reduction and purely online RL algorithms, in a relaxed setting where $μ$ only satisfies concentrability partially up to a certain time step.

Motivation & Objective

  • To unify theoretical understanding of sample-efficient offline and online reinforcement learning.
  • To study the benefit of a reference policy $\mu$ that is close to the optimal policy $\pi_{\star}$ in terms of concentrability.
  • To close the gap between offline and online RL by proposing a new setting—policy finetuning—that allows both data collection and adaptive exploration.
  • To establish tight theoretical bounds on sample complexity for policy finetuning, including a lower bound that shows the optimality of offline reduction or pure online RL.
  • To design a hybrid algorithm that outperforms both vanilla offline reduction and purely online RL in relaxed settings where $\mu$ only partially satisfies concentrability.

Proposed method

  • Proposes policy finetuning as a new RL setting with access to a reference policy $\mu$ and interactive environment access.
  • Designs an offline reduction algorithm (PEVI-Adv) that collects data using $\mu$ and applies offline policy optimization to find an $\varepsilon$-optimal policy.
  • Introduces a hybrid offline/online algorithm that uses $\mu$ for data collection and adaptive exploration to improve sample efficiency.
  • Employs concentrability coefficients ($C^\star$ and $C^{\rm partial}$) to measure how well $\mu$ covers the optimal policy's state-action distribution.
  • Uses value function estimation with confidence intervals and bias decomposition to analyze the performance of the proposed algorithms.
  • Applies theoretical tools such as induction, concentration inequalities, and recursive error bounds to derive sample complexity guarantees.

Experimental results

Research questions

  • RQ1Can a reference policy $\mu$ that is close to the optimal policy $\pi_{\star}$ significantly improve sample efficiency in reinforcement learning?
  • RQ2What is the optimal way to leverage $\mu$—should we use it purely for offline data collection, or can adaptive online exploration yield better sample complexity?
  • RQ3Is there a fundamental limit to the benefit of using a reference policy, and can this be captured by a tight sample complexity lower bound?
  • RQ4Can a hybrid algorithm combining offline and online components outperform both pure offline reduction and pure online RL in settings where $\mu$ only partially satisfies concentrability?
  • RQ5Does the offline reduction approach achieve the optimal sample complexity in policy finetuning, and is it theoretically tight?

Key findings

  • The offline reduction algorithm PEVI-Adv achieves a sample complexity of $\widetilde{O}(H^3 S C^\star / \varepsilon^2)$ episodes to find an $\varepsilon$-optimal policy, matching the theoretical lower bound in this setting.
  • An $\Omega(H^3 S \min\{C^\star, A\} / \varepsilon^2)$ sample complexity lower bound is established for any policy finetuning algorithm, implying that the optimal method is either pure offline reduction or a purely online algorithm that ignores $\mu$.
  • In a relaxed setting where the reference policy $\mu$ satisfies partial concentrability $C^{\rm partial}$ up to a time step $h_{\star}$, a hybrid algorithm achieves better sample complexity than both pure offline reduction and purely online methods.
  • The hybrid algorithm's sample complexity is $\widetilde{O}\left(\frac{H^2 h_{\star} S C^{\rm partial} + (H - h_{\star})^3 S A (C^{\rm partial})^2}{\varepsilon^2} + \frac{H^2 h_{\star}^{3.5} S C^{\rm partial}}{\varepsilon} \right)$, which improves upon both baselines when $h_{\star} \ll H$.
  • The analysis shows that the final output policy $\widehat{\pi}$ satisfies $V_1^\star(s_1) - V_1^{\widehat{\pi}}(s_1) \leq \varepsilon$ under the derived sample complexity condition.
  • The results resolve an open question in offline RL by showing that offline reduction with a good reference policy achieves the optimal sample complexity in the single-policy concentrability setting.

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.