Approximate Linear Programming for Average-Cost Dynamic Programming

Daniela Pucci de Farias, Benjamin Van RoyNeurIPS 2002

TL;DR

Standard Approximate Linear Programming (ALP) often fails in average-cost settings because it prioritizes estimating the average cost over the "differential cost" function—the actual metric that guides policy decisions. This paper introduces a novel two-phase ALP algorithm that uses state-relevance weights to ensure the approximation is accurate where it matters most, preventing the "instability" traps that plague naive approaches.

The Problem: Average-Cost vs. Differential Cost

Dynamic Programming (DP) is the gold standard for optimal control, but it suffers from the curse of dimensionality: as the number of state variables grows, the computational cost explodes. Approximate Linear Programming (ALP) is a popular workaround that approximates the cost function using a small set of basis functions.

While ALP is well-understood for discounted-cost problems (where future costs matter less than immediate ones), applying it to average-cost problems is tricky. In average-cost DP, the goal is to minimize the long-term steady-state cost. The authors identify a critical gap: a "naive" application of ALP might yield a very accurate estimate of the optimal average cost while producing a disastrously bad policy.

This disconnect happens because the algorithm ignores the differential cost function—the relative value of being in one state versus another. The differential cost is what actually tells the controller what action to take; if the approximation gets the relative shape wrong, the resulting policy will fail.

Methods: A Two-Phase ALP Approach

To decouple the estimation of the average cost from the estimation of the differential cost, the authors propose a Two-Phase ALP approach:

  1. Phase 1 (Average Cost Estimation): Solve a standard ALP to find an approximation of the optimal average cost ($\lambda$). This phase acts as a baseline that focuses purely on the global cost metric.
  2. Phase 2 (Differential Cost Approximation): Using the $\lambda$ found in Phase 1 as a hard constraint, the algorithm solves a second linear program. This phase introduces state-relevance weights ($c$). These weights allow the user (or an automated heuristic) to specify which parts of the state space are most important to approximate accurately.

Technically, Phase 2 minimizes a weighted $L_1$ norm of the error between the approximate and true differential cost functions. This ensures that the "shape" of the cost function is preserved in critical regions of the state space.

Experimental Setup: The Stability Trap

Instead of massive real-world datasets, the paper employs a rigorous benchmark: a Controlled Queueing System. This is a Markov process representing a queue with a finite buffer, where a controller chooses service rates to balance the cost of service against the cost of holding jobs.

This synthetic environment acts as a "counterexample" where naive ALP fails. It demonstrates how a policy can look good on paper (low estimated average cost) but be unstable in practice. In this queueing example, the naive ALP focused heavily on states that are frequently visited under an optimal policy (low buffer levels). Because it ignored the "rare" high-buffer states, the resulting policy didn't know how to handle surges, leading to an unstable system where the queue grows to infinity.

Key Insights and Results

The experiments revealed several critical insights about policy generation and cost approximation:

  • Differential Cost is King: For policy generation, the relative difference in value between states is far more important than the absolute average cost. If the slope of the cost function is wrong, a "greedy" policy will move the system in the wrong direction.
  • Naive Failure: In the queueing experiment, the first-phase (naive) ALP produced an average cost estimate within 2% of the true optimal. However, the policy it generated was unstable, leading to infinite costs as the buffer size increased.
  • Two-Phase Success: By applying the second phase with exponential state-relevance weights ($\rho = 0.9$), the authors produced a stable policy. This policy achieved an average cost only ~5% higher than the optimal, and crucially, this performance remained stable regardless of the buffer size.
  • Weight Sensitivity: The choice of state-relevance weights is a "first-order" concern. By adjusting these weights, researchers can force the algorithm to care about high-risk edge cases that a standard optimizer would ignore.
Comparison of the true differential cost function and various approximations using different state-relevance weights.

As shown in the figure above, different weights ($\rho$) lead to significantly different differential cost approximations ($\Phi r_2$) compared to the naive approach ($\Phi r_1$) and the true differential cost ($h^*$).

The authors also prove a theoretical performance bound showing that if weights corresponding to the stationary distribution of a policy are chosen, the approximation error directly bounds the loss in performance.

Limitations and Future Work

  • Weight Selection: While the paper proves that good weights lead to good policies, it doesn't provide a fully automated way to pick them. The authors suggest an iterative scheme (using the stationary distribution of the current policy to pick weights for the next iteration), but its convergence is not yet proven.
  • Constraint Scaling: Even with a linear architecture, the number of constraints in the LP equals the number of state-action pairs. For massive systems, this still requires techniques like constraint sampling, which are mentioned but not deeply explored here.
  • Theoretical Bounds: The performance bounds derived require certain conditions (like $h \leq h^*$) that may be difficult to verify in practice for all approximate solutions.

Summary updated

BibTeX
@inproceedings{farias2002approximate,
  author = {Daniela Pucci de Farias and Benjamin Van Roy},
  title = {{Approximate Linear Programming for Average-Cost Dynamic Programming}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2002},
}
Figure