Feature Selection Using Regularization in Approximate Linear Programs for Markov Decision Processes

Marek Petrik, Gavin Taylor, Ronald Parr, Shlomo Zilberstein

Overview

Solving large-scale Markov Decision Processes (MDPs) often requires approximating the value function using a set of features. However, selecting the right features presents a significant challenge. This paper introduces Regularized Approximate Linear Programming (RALP), a method that applies $L_1$ regularization to MDPs. By adding a sparsity-inducing penalty, RALP enables automatic feature selection from "arbitrarily rich" feature sets. The approach provides strong theoretical guarantees on sampling error and introduces a highly efficient homotopy algorithm that outperforms standard methods like Least Squares Policy Iteration (LSPI) on classic benchmarks.

The Challenge: Feature Selection in MDPs

Solving large MDPs typically relies on linear value function approximation, where the value of a state is represented as a weighted sum of features. This creates a classic "Goldilocks" problem:

  1. Too few features: The model is too simple to accurately represent the true value function, leading to high approximation error.
  2. Too many features: The model overfits to the specific states sampled during training, performing poorly on the rest of the state space (high sampling error).

Standard Approximate Linear Programming (ALP) is particularly vulnerable to this trade-off. If too few constraints are sampled, the linear program can become unbounded or produce wildly inaccurate solutions. Traditionally, researchers had to hand-pick a small, "just right" set of features—a process requiring deep domain expertise and extensive trial and error.

The Solution: Regularized ALP (RALP)

The authors propose RALP, which modifies standard ALP by adding an $L_1$-norm constraint on the feature weights ($||w||_1 \leq \psi$).

Key technical contributions of this approach include:

  • $L_1$ Regularization: Similar to LASSO in regression, this encourages "sparse" solutions where only the most important features receive non-zero weights. It acts as a theoretical safety net; the $L_1$ constraint ensures the linear program remains bounded even when many constraints are missing due to sparse sampling.
  • New Sampling Bounds: The authors derive theoretical bounds on the approximation error that are entirely independent of the total number of features. Instead, the error depends on the regularization parameter $\psi$ and the smoothness (Lipschitz continuity) of the MDP.
Theoretical error bound trade-off showing a global minimum as the regularization parameter balances approximation and sampling errors.
  • The Homotopy Method: Solving a linear program for a single regularization value is standard, but finding the optimal value is difficult. The optimal weight vector $w(\psi)$ is a piecewise linear function of the regularization parameter. The authors developed a homotopy algorithm that exploits this geometry to trace the entire path of optimal solutions as $\psi$ increases. This allows the algorithm to automatically and efficiently find the "sweet spot" where approximation and sampling errors are perfectly balanced.

Key Results & Empirical Performance

The authors evaluated RALP on several standard reinforcement learning benchmarks, including a Chain Problem, Mountain Car, Inverted Pendulum, and Bicycle Balancing.

Robustness to "Feature Dumping"

Unlike standard ALP, RALP's performance does not degrade as irrelevant features are added. This allows researchers to throw a massive library of potential features at a problem and let the algorithm decide which ones matter. In experiments with increasing feature counts, standard ALP's error skyrocketed once the number of features approached the number of samples. In contrast, RALP's error remained low and stable.

Comparison of ALP and RALP as the number of features increases. Standard ALP overfits and error spikes, while RALP remains stable.

Computational Speed and Sample Efficiency

  • Speed: The proposed homotopy method proved to be roughly 3x faster than the commercial Mosek solver for a single $\psi$ value, and significantly faster when calculating the entire regularization path.
  • Efficiency: On the Inverted Pendulum task, RALP achieved near-perfect performance with only 50 training episodes, whereas the popular LSPI method required 450. On the complex Bicycle task, RALP succeeded with 500 episodes compared to LSPI's 1500.

Limitations and Future Work

While RALP presents a significant step forward, the authors note a few limitations:

  • Loose Bounds: The theoretical bounds derived can be quite "loose" (pessimistic) in practice, especially for very large, sparsely sampled state spaces.
  • Sparsity Guarantees: While $L_1$ regularization usually leads to sparsity, the specific conditions required to guarantee sparse solutions within the RALP framework deserve more rigorous study.

Future directions include developing "online" versions of these bounds that can be calculated directly from data during training, allowing the algorithm to adjust the regularization parameter dynamically.

Summary updated

BibTeX
@inproceedings{petrik2010feature,
  author = {Marek Petrik and Gavin Taylor and Ronald Parr and Shlomo Zilberstein},
  title = {{Feature Selection Using Regularization in Approximate Linear Programs for Markov Decision Processes}},
  booktitle = {International Conference on Machine Learning},
  year = {2010},
  url = {https://openreview.net/forum?id=rkVRrj-_bH},
}
Figure