Least absolute policy iteration for robust value function approximation

Masashi Sugiyama, Hirotaka Hachiya, Hisashi Kashima, Tetsuro Morimura

This paper, published in the IEICE Transactions on Information and Systems in 2010, presents a robust alternative to one of the workhorses of reinforcement learning: Least-Squares Policy Iteration (LSPI). By swapping the standard squared loss for an absolute loss, the authors introduce Least Absolute Policy Iteration (LAPI), a method designed to handle the messy, outlier-prone reward signals common in real-world robotics.

TL;DR

LAPI improves the robustness of reinforcement learning by minimizing the absolute ($L_1$) temporal-difference error instead of the standard squared ($L_2$) error. Formulated as a linear programming problem, LAPI effectively ignores outliers in reward signals—effectively learning from the "median" reward rather than the "mean"—without sacrificing computational efficiency.

What Problem Does This Paper Address?

In reinforcement learning (RL), an agent learns to make decisions by maximizing a reward signal. A popular framework for this is Least-Squares Policy Iteration (LSPI), which is favored in robotics because it is computationally efficient and works well with linear function approximation.

However, LSPI has a significant "Achilles' heel": it uses squared loss to minimize temporal-difference (TD) errors. In statistics, squared loss is equivalent to finding a mean. This makes it extremely sensitive to outliers. In a robotics context, an outlier might be a massive, erroneous reward caused by a faulty sensor or a computer vision glitch. A single extreme outlier can pull the "mean" far away from the true value, leading LSPI to learn unstable or "gambling" policies that chase rare, high-magnitude errors.

Methods

The authors propose Least Absolute Policy Iteration (LAPI). The core technical shift is replacing the $L_2$ norm in the TD-error minimization objective with an $L_1$ norm (absolute loss).

  • The Median Advantage: While minimizing squared loss yields the mean of samples, minimizing absolute loss yields the median. The median is inherently robust; as long as more than half the data is "clean," the median remains stable regardless of how extreme the outliers are.
  • Linear Programming Formulation: Absolute loss is non-differentiable, which usually makes optimization harder. The authors circumvent this using a classic optimization trick: they reformulate the minimization problem as a Linear Programming (LP) problem. This allows LAPI to be solved efficiently using standard, off-the-shelf optimization software, maintaining the scalability that made LSPI attractive in the first place.
  • Theoretical Extension: The authors show that LAPI satisfies a "Bellman-like" recursive equation based on conditional medians rather than expectations, providing a theoretical foundation for why it works.

Datasets

The paper evaluates the algorithm using a simulated Acrobot control task.

  • The Task: A two-link, under-actuated robot must learn to swing its end-effector above a horizontal bar by only controlling the second joint.
  • Noise Environments: The authors tested the agents in two scenarios:
  • Noiseless: Pure reward signals based on the height of the end-effector.
  • Laplacian Noise: Rewards were injected with heavy-tailed noise (outliers) with a 10% probability to simulate sensor errors.

Key Insights and Ideas

  • Robustness vs. Reliability: The authors distinguish between robustness (ignoring measurement errors) and reliability (avoiding "gambling" on rare, high-reward events). LAPI provides both by focusing on the typical (median) outcome rather than the average, which can be skewed by rare events.
  • The "Gambling" Policy: A key insight is that LSPI might prefer a "gambling" policy—one that usually fails but has a tiny chance of a massive reward—because the squared loss overweights that rare success. LAPI ignores the "dream" of the rare success in favor of a stable, consistent strategy.
  • Sparsity: By introducing an $L_1$ penalty (regularization) into the LP formulation, the authors note that the resulting solution tends to be sparse, which can speed up computation during the "test" or deployment phase of the robot.

Key Results

  • Equivalent Performance in Clean Data: In the noiseless acrobot simulation, LAPI performed just as well as LSPI, proving that you don't lose performance by switching to a robust loss function when data is good.
  • Superiority with Outliers: In the presence of Laplacian noise, LSPI's performance plateaued and failed to learn an effective swing-up policy. In contrast, LAPI successfully learned the task, showing almost no degradation in performance despite the noisy rewards.
  • Visual Confirmation: The authors provided motion frames (Figures 7 and 8) showing the LSPI-trained acrobot struggling to lift its arm, while the LAPI-trained version successfully swung above the bar.

Limitations and Future Work

  • Statistical Efficiency: The authors acknowledge a classic trade-off: while $L_1$ estimators are more robust, they can be statistically "less efficient" (higher variance) than $L_2$ estimators if the noise is perfectly Gaussian.
  • Theoretical Gap: While they derived a Bellman-like equation for the median, they note that risk-sensitive RL is generally harder because the simple recursive properties of expectations don't always translate perfectly to quantiles or medians.
  • Future Directions: The paper suggests exploring other loss functions mentioned in their "Extensions" section, such as Pinball loss (for learning specific quantiles) or Conditional Value-at-Risk (CVaR), which are popular in financial engineering but less explored in robotics.

Summary updated

BibTeX
@inproceedings{sugiyama2009least,
  author = {Masashi Sugiyama and Hirotaka Hachiya and Hisashi Kashima and Tetsuro Morimura},
  title = {{Least absolute policy iteration for robust value function approximation}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2009},
  doi = {10.1109/robot.2009.5152289},
}
Figure