Linear Complementarity for Regularized Policy Evaluation and Improvement

Jeffrey Johns, Christopher Painter-Wakefield, Ronald ParrNeurIPS 2010

This paper presents a significant algorithmic shift in handling feature selection for Reinforcement Learning (RL). By reframing a popular RL problem as a classic optimization task, the authors unlock massive speedups and better theoretical guarantees. Specifically, they reformulate $L_1$-regularized policy evaluation as a Linear Complementarity Problem (LCP). This allows the use of efficient, "warm-startable" optimization solvers that outperform previous methods by reusing solutions from previous steps, significantly accelerating the search for optimal policies with sparse features.

The Challenge of Feature Selection in RL

In Reinforcement Learning, estimating a "value function"—a map of expected rewards from any given state—often requires linear function approximation because real-world state spaces are massive. The value function is represented as a weighted sum of "features."

Choosing the right features is a delicate balance: too many leads to overfitting, while too few causes underlearning. $L_1$ regularization (similar to the Lasso in statistics) is a popular solution because it automatically zeros out useless features.

Previously, the state-of-the-art for this was LARS-TD. While effective, LARS-TD is a "homotopy" method that must start from scratch every time the agent's policy changes. In the iterative process of RL (Policy Iteration), discarding the previous policy's solution is incredibly wasteful. The authors sought a method capable of "warm starting"—using the solution from the last policy to jump-start the search for the next one.

A New Mathematical Bridge: LCP

The core contribution of this paper is proving that the optimality conditions for $L_1$-regularized temporal difference learning ($L_1$TD) are mathematically equivalent to a Bounded Linear Complementarity Problem (BLCP). This "aha moment" maps the complex fixed-point equations of RL directly onto a field of optimization with decades of mature theory and high-performance solvers.

Key Algorithmic Innovations

  1. LC-TD: Instead of using the LARS-TD homotopy path, the authors employ off-the-shelf LCP solvers. These "active-set" methods can be initialized with a guess, enabling the crucial warm start.
  2. LARQ: A novel algorithm that attempts to follow a "greedy" homotopy path, combining policy evaluation and improvement into a single process.
  3. LC-MPI (Linear Complementarity Modified Policy Iteration): The practical workhorse of the paper. It performs policy iteration at discrete regularization strengths ($\beta$), using the solution from the previous $\beta$ or the previous policy as a warm start for the LCP solver.

Experimental Validation and Key Results

The authors evaluated their methods on two standard RL benchmarks: a 20-State Chain (to test feature identification among noise) and the classic Mountain Car control problem (using 155 radial basis functions).

The Power of the Warm Start

In Policy Iteration, the value function usually changes only slightly between rounds. While LARS-TD ignores this, LCP solvers exploit it. As the agent nears the optimal policy, the "cost" of policy improvement drops drastically.

Comparison of LARS-TD and LC-TD steps across policy iterations

As shown above, LC-TD requires significantly fewer pivoting operations (steps) to converge compared to LARS-TD as policy iteration progresses in both the Chain and Mountain Car domains.

Efficiency of LC-MPI

The LC-MPI algorithm proved much faster than running full policy iteration for multiple regularization values separately.

Average steps per policy for different algorithms

The table highlights this efficiency: in the Chain domain, LC-MPI averaged just 24 steps per policy compared to LARS-TD's 73 steps. In the Mountain Car domain, the difference is even more stark (21 vs. 214 steps).

Robustness and Theory

Beyond speed, LCP solvers proved more robust. In some trials, LARS-TD failed to converge because it produced solutions violating its own optimality invariants, whereas LC-TD converged successfully. Furthermore, by leveraging LCP theory, the authors provide a stronger uniqueness result for the $L_1$TD solution than was previously known, provided the underlying matrix is a "P-matrix."

Limitations and Future Work

While highly effective, the approach has limitations:

  • The P-Matrix Assumption: Much of the theoretical guarantee relies on the matrix $A = \Phi^T(\Phi - \gamma \Phi^\pi)$ being a P-matrix. While often true in practice (especially with added $L_2$ regularization), it isn't guaranteed for all RL problems.
  • LARQ Complexity: The "greedy homotopy" (LARQ) is theoretically elegant but can be slow and prone to getting stuck in policy cycles.

Future work may explore incorporating policy improvement directly into the LCP formulation itself, rather than alternating between evaluation and improvement steps.

Summary updated

BibTeX
@inproceedings{johns2010linear,
  author = {Jeffrey Johns and Christopher Painter-Wakefield and Ronald Parr},
  title = {{Linear Complementarity for Regularized Policy Evaluation and Improvement}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2010},
  url = {https://openreview.net/forum?id=B1-i1w-ubS},
}
Figure