Approximate Linear Programming for First-order MDPs

Scott Sanner, Craig Boutilier

TL;DR

This paper introduces First-order Approximate Linear Programming (FOALP), a technique for solving Markov Decision Processes (MDPs) that involve objects and relations rather than just flat states. By using symbolic reasoning instead of "grounding" the problem into a specific number of objects, FOALP produces policies and error bounds that are valid for any domain size—whether you have two elevators or two hundred.

What Problem Does This Paper Address?

Traditional MDP solvers struggle with "relational" domains. Imagine scheduling elevators: the logic of how an elevator moves is the same whether there are 3 floors or 300. However, standard solvers usually require "grounding"—defining every possible state for a specific number of elevators and floors. This leads to an exponential explosion in state space and means a solution for 5 floors won't necessarily work for 10.

While some "First-order MDP" (FOMDP) solvers exist, they often rely on exact value iteration, which is computationally grueling because the value function representation grows uncontrollably. The authors aim to bridge this gap by bringing Approximate Linear Programming (ALP) to the first-order world, allowing for compact, scalable, and domain-independent solutions.

Methods

The core innovation is representing the value function as a linear combination of first-order basis functions. Instead of calculating the value of every state, the algorithm learns weights for high-level features (e.g., "Is there a VIP waiting on this floor?").

Key technical components include:

  • Situation Calculus: Used to formally describe actions and their effects symbolically.
  • Symbolic Dynamic Programming (SDP): A method to "back up" value functions through actions using logical regression rather than state-by-state calculation.
  • FOMAX (First-order Cost Network Maximization): A novel algorithm that finds the "worst-case" violation of a policy's constraints. It uses first-order ordered resolution to identify the logical conditions that maximize a cost network.
  • FOCG (First-order Constraint Generation): Since a first-order domain has potentially infinite constraints, the authors use an iterative approach. They start with no constraints, find the most violated one using FOMAX, add it to the Linear Program (LP), and repeat until the weights converge.

The system utilizes the Vampire theorem prover for logical consistency checks and the CPLEX LP solver to optimize the weights.

Datasets

The authors evaluated their approach on a complex Elevator Scheduling Domain. This isn't a static dataset but a simulated environment with rich features:

  • VIPs: Certain passengers have higher priority.
  • Groups: Passengers from different groups should not share an elevator.
  • Attendants: Some passengers require an escort.
  • Multi-criteria Reward: The agent earns points for delivering people, prioritizing VIPs, and avoiding group conflicts.

The performance was tested across different domain instantiations (5, 10, and 15 floors) to demonstrate generalization.

Key Insights and Ideas

  • Domain Independence: Because the solver reasons about classes of objects rather than specific individuals, the resulting policy is "universal." You solve the problem once, and it applies regardless of how many elevators or floors you actually have.
  • Universal Error Bounds: A major "aha" moment is that the error bounds derived for the approximation apply equally to all domain sizes. This is a significant step up from previous relational MDP work, where bounds were often tied to a specific distribution of domain sizes.
  • Efficiency through Logic: By pushing the heavy lifting into a theorem prover and a constraint generator, the authors avoided the "grounding blowup." In their experiments, they only needed to generate 40 constraints to solve a problem that logically contained over 250,000.

Key Results

The FOALP approach was compared against myopic (one- and two-step lookahead) policies and several hand-crafted heuristics.

Performance of various policies in elevator domains

As shown in the table above (Table 1 in the paper), FOALP {6} (using six basis functions) consistently outperformed all other policies across all floor counts (F5, F10, F15). The authors note that the additive nature of the value function allows FOALP to effectively trade off different objectives (like VIP priority vs. group conflicts), whereas hard-coded heuristics often fail in complex edge cases.

Limitations and Future Work

  • Objective Weighting: The current FOALP objective weights all logical partitions of the state space equally. The authors suggest that exploring non-uniform weighting might lead to even better value function approximations.
  • Resolution Completeness: The ordered resolution strategy used in FOMAX is not refutation-complete (it could theoretically loop forever). To handle this, they currently bound the number of inferences, which might lead to unnecessary constraints.
  • Dynamic Reweighting: The authors propose that future versions could dynamically adjust weights during the LP iterations to focus on state partitions with the highest approximation error.

Summary updated

BibTeX
@misc{sanner2012approximate,
  author = {Scott Sanner and Craig Boutilier},
  title = {{Approximate Linear Programming for First-order MDPs}},
  year = {2012},
  eprint = {1207.1415},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1207.1415},
}
Figure