Unrolling Dynamic Programming via Graph Filters

Sergio Rozada, Samuel Rey, Gonzalo Mateos, Antonio G. Marqués

Introduction

Dynamic Programming (DP) serves as the mathematical foundation for Reinforcement Learning (RL) and control theory, primarily through solving Bellman’s optimality equations. However, classical iterative algorithms like Value Iteration (VI) or Policy Iteration (PI) face significant computational hurdles as state-action spaces expand or planning horizons lengthen. The convergence of these methods often requires a prohibitive number of iterations in complex environments.

To address these inefficiencies, this paper introduces BellNet, a novel neural architecture that "unrolls" the iterative steps of DP into a sequence of learnable layers. By interpreting a Markov Decision Process (MDP) through the lens of Graph Signal Processing (GSP), BellNet leverages graph filters to approximate optimal policies more rapidly than classical methods and demonstrates remarkable zero-shot generalization to unseen environments.

Methodology: BellNet and Graph Signal Processing

The core innovation of BellNet lies in treating the MDP transition probability matrix as the adjacency matrix of a weighted directed graph. In this framework, the value function is viewed as a signal residing on the nodes (state-action pairs) of the graph.

DP as a Graph Filter

The authors establish a theoretical link between policy evaluation and graph filtering. Specifically, they prove that the value function under a fixed policy can be expressed as a finite-order graph filter—a polynomial of the transition matrix—applied to the reward signal. This justification allows for the truncation of theoretically infinite iterations into a shallow, fixed-depth neural network.

Architecture Design

BellNet consists of $L$ unrolled layers. Each layer performs a graph filtering operation followed by a differentiable "softmax" operator, which serves as a smooth approximation of the "max" operator used in standard policy improvement. Unlike classical DP, where coefficients like the discount factor $\gamma$ are fixed, BellNet treats these coefficients as learnable parameters.

The BellNet architecture unrolls policy iteration into layers of graph filtering and policy improvement.

The training process minimizes the Bellman error—the difference between the current value estimate and the one-step-ahead prediction—using a loss function derived from Temporal Difference (TD) learning principles. A key finding was that sharing filter coefficients across all layers (Weight Sharing, or BN-WS) enhanced both performance and training stability.

Experimental Evaluation

The researchers evaluated BellNet on the Cliff Walking environment, a standard grid-world benchmark. The agent's goal is to navigate from a start point to a destination while avoiding "cliffs" that reset the episode. Beyond standard training, the model was tested for transferability on modified grids with altered layouts, cliff positions, and goal locations.

Key Results

BellNet demonstrated superior efficiency and generalization capabilities:

  • Faster Convergence: In the Cliff Walking task, BellNet identified the optimal policy in just 4 layers (iterations), compared to the 10 iterations required by classical Policy Iteration.
  • Performance under Constraints: When the number of allowed iterations or layers was restricted, BellNet consistently outperformed classical baselines.
  • Zero-Shot Transfer: Due to the permutation-equivariant nature of graph filters, BellNet's learned patterns are not tied to specific grid coordinates. This allowed the model to successfully predict optimal policies in entirely new environments without additional training.
Performance comparison of BellNet variants against classical baselines across different numbers of unrolling layers and filter orders.

Discussion and Future Work

BellNet represents a significant step toward "graph-aware" algorithm unrolling for DP. Its ability to generalize learned filtering patterns to new MDPs suggests a powerful alternative to retraining agents from scratch.

However, several avenues for future research remain. While empirical results are promising, a more rigorous theoretical analysis of permutation equivariance in this context is needed. Additionally, scaling BellNet to handle massive discrete state spaces or continuous environments presents a significant challenge. Finally, the sensitivity of the model to the softmax "temperature" parameter suggests that automated hyperparameter tuning could further improve robustness.

Summary updated

Abstract

Dynamic programming (DP) is a fundamental tool used across many engineering fields. The main goal of DP is to solve Bellman’s optimality equations for a given Markov decision process (MDP). Standard methods like policy iteration exploit the fixed-point nature of these equations to solve them iteratively. However, these algorithms can be computationally expensive when the state-action space is large or when the problem involves long-term dependencies. Here we propose a new approach that unrolls and truncates policy iterations into a learnable parametric model dubbed BellNet, which we train to minimize the so-termed Bellman error from random value function initializations. Viewing the transition probability matrix of the MDP as the adjacency of a weighted directed graph, we draw insights from graph signal processing to interpret (and compactly re-parameterize) BellNet as a cascade of nonlinear graph filters. This fresh look facilitates a concise, transferable, and unifying representation of policy and value iteration, with an explicit handle on complexity during inference. Preliminary experiments conducted in a grid-like environment demonstrate that BellNet can effectively approximate optimal policies in a fraction of the iterations required by classical methods.
BibTeX
@misc{rozada2025unrolling,
  author = {Sergio Rozada and Samuel Rey and Gonzalo Mateos and Antonio G. Marqués},
  title = {{Unrolling Dynamic Programming via Graph Filters}},
  year = {2025},
  eprint = {2507.21705},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.21705},
}
Figure