Skip to main content
QUICK REVIEW

[Paper Review] A Kernel Loss for Solving the Bellman Equation

Yihao Feng, Lihong Li|arXiv (Cornell University)|May 25, 2019
Reinforcement Learning in RoboticsComputer Science26 citations
TL;DR

This paper proposes a novel kernel-based loss function for solving the Bellman equation in reinforcement learning, enabling stable, convergent value function learning via gradient-based optimization. Unlike prior methods, it avoids the double-sample problem and works reliably with neural networks in both on- and off-policy settings, demonstrating superior convergence and accuracy in benchmarks where standard algorithms diverge.

ABSTRACT

Value function learning plays a central role in many state-of-the-art reinforcement-learning algorithms. Many popular algorithms like Q-learning do not optimize any objective function, but are fixed-point iterations of some variant of Bellman operator that is not necessarily a contraction. As a result, they may easily lose convergence guarantees, as can be observed in practice. In this paper, we propose a novel loss function, which can be optimized using standard gradient-based methods without risking divergence. The key advantage is that its gradient can be easily approximated using sampled transitions, avoiding the need for double samples required by prior algorithms like residual gradient. Our approach may be combined with general function classes such as neural networks, on either on- or off-policy data, and is shown to work reliably and effectively in several benchmarks.

Motivation & Objective

  • To address the instability and lack of convergence guarantees in deep RL algorithms that rely on non-contractive Bellman operators.
  • To develop a differentiable, optimization-based objective for value function learning that avoids the double-sample problem inherent in residual gradient methods.
  • To enable stable training with nonlinear function approximators like neural networks in both on-policy and off-policy settings.
  • To provide a practical, scalable alternative to complex minimax formulations such as SBEED, while maintaining theoretical convergence guarantees.
  • To improve policy evaluation and optimization by replacing unstable components like TD(0) or FVI with a more reliable value function learning mechanism.

Proposed method

  • Proposes a kernel loss function based on integrally strictly positive definite kernels, ensuring the loss has a unique global minimum at the true value function.
  • Derives a gradient of the loss that can be efficiently estimated using single-sample transitions, avoiding the need for double samples required by residual gradient.
  • Employs standard stochastic gradient descent to minimize the empirical kernel loss, enabling convergence under mild assumptions.
  • Uses a reproducing kernel Hilbert space (RKHS) framework to define the value function class, allowing flexible function approximation.
  • Applies the kernel loss to both policy evaluation and policy optimization, integrating it into existing frameworks like Trust-PCL.
  • Employs a kernel trick to compute gradients efficiently without explicitly representing the value function in high-dimensional space.

Experimental results

Research questions

  • RQ1Can a differentiable loss function be designed such that minimizing it leads to the true solution of the Bellman equation, even with nonlinear function approximation?
  • RQ2Can this loss be estimated efficiently using single transitions, avoiding the double-sample problem of residual gradient?
  • RQ3Does the proposed kernel loss ensure convergence and stability in value function learning, especially in cases where TD(0) or FVI diverge?
  • RQ4How does the kernel loss compare to existing methods like residual gradient, SBEED, or GTD2 in terms of convergence speed and final solution accuracy?
  • RQ5Can the kernel loss be effectively integrated into policy optimization algorithms to improve sample efficiency and learning stability?

Key findings

  • The proposed kernel loss converges to the true value function in a modified Tsitsiklis & Van Roy (1997) MDP example, while FVI and TD(0) diverge and residual gradient converges to a suboptimal solution.
  • On the Puddle World environment, the kernel loss achieves lower mean squared error (MSE) and Bellman error than residual gradient, FVI, non-linear GTD2, and SBEED, with stable training.
  • In CartPole and Mountain Car tasks, the kernel loss method outperforms all baselines in both MSE and Bellman error metrics, showing consistent improvement.
  • When integrated into Trust-PCL for policy optimization, the kernel loss achieves higher average returns across Mujoco environments (Swimmer, InvertedDoublePendulum, Ant, InvertedPendulum) with fewer data samples.
  • The kernel loss correlates well with both MSE and Bellman error, indicating it serves as a reliable proxy for value function accuracy, unlike the L2 loss used in residual gradient.
  • The method is robust in off-policy settings and works effectively with neural network function approximators, demonstrating practical stability where standard algorithms fail.

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.