Approximate Linear Programming for First-order MDPs

Scott Sanner, Craig Boutilier · OpenReview

Abstract

This paper introduces First-Order Approximate Linear Programming (FOALP), a novel framework for solving First-Order Markov Decision Processes (FOMDPs) without the need for domain grounding. By representing the value function as a linear combination of first-order basis functions and leveraging automated theorem provers for constraint generation, FOALP provides a scalable solution that maintains universal error bounds across varying domain sizes. Experimental results in complex elevator scheduling tasks demonstrate that FOALP significantly outperforms standard heuristic and myopic policies.

Introduction

Markov Decision Processes (MDPs) are the standard mathematical framework for decision-theoretic planning. However, traditional MDPs require an explicit enumeration of every possible state and action, which becomes impractical in relational environments. First-Order MDPs (FOMDPs) address this by describing environments using objects, relations, and quantification (e.g., "For all elevators $e$ and floors $f$").

The primary challenge in FOMDPs is the "grounding" problem. Most existing solvers instantiate the problem with a fixed number of objects to convert it back into a propositional MDP. This approach is computationally expensive and fails to generalize. The authors propose FOALP to solve FOMDPs directly at the abstract, first-order logical level, avoiding domain instantiation entirely.

First-Order Approximate Linear Programming (FOALP)

FOALP builds upon Approximate Linear Programming (ALP), which approximates an MDP's value function $V$ as a weighted sum of basis functions $h_i$: $V(s) = \sum w_i h_i(s)$. To adapt this to first-order logic, the authors introduce several innovations:

  1. First-Order Basis Functions: The state space is partitioned using logical "case" statements within the Situation Calculus. The value function is then represented as a linear combination of these first-order partitions.
  2. Redefined LP Objective: In standard ALP, the objective is to minimize the sum of values across all states. Since first-order domains have potentially infinite ground states, FOALP weights each logical partition equally.
  3. First-Order Constraint Generation (FOCG): To handle the infinite number of potential constraints, FOALP uses an iterative approach. It starts with an empty set of constraints and adds only the most violated ones, identified through logical deduction.
Constraint specification for a first-order linear program using tabular case notation.

Symbolic Manipulation and FOMAX

A critical component of FOALP is the FOMAX algorithm, which identifies the most violated constraint without exhaustive state checking. FOMAX utilizes an automated theorem prover (specifically Vampire) to perform variable elimination and logically deduce the state partition that maximizes Bellman error.

One of the key advantages of this symbolic approach is that backing up a linear combination of basis functions through a transition model preserves the additive structure. This prevents the exponential complexity explosion typically seen in exact symbolic value iteration.

Symbolic case addition and simplification used to maintain tractability during value function approximation.

Experimental Evaluation

The authors evaluated FOALP in a simulated Elevator Scheduling domain. This environment included complex features such as VIP passengers, group conflicts (passengers who cannot share an elevator), and attendants.

Key Results

  • Superior Performance: FOALP with 6 basis functions consistently outperformed 1-step and 2-step myopic policies, as well as various hand-crafted heuristics. In a 5-floor domain, FOALP achieved an average discounted reward of 154, compared to 125 for the best-performing heuristic.
  • Constraint Efficiency: Despite a theoretical space of over 250,000 constraints for the 6-basis-function model, the FOCG algorithm reached the optimal solution by generating only 40 constraints.
  • Universal Generalization: Because the algorithm operates on abstract logic, the policies and error bounds generated are valid regardless of the building's size (e.g., whether it has 5 or 500 floors).

Discussion and Future Work

While FOALP offers a powerful generalized solution, it involves significant computational overhead due to the reliance on theorem provers. Solving times ranged from 5 to 120 minutes depending on the number of basis functions. Future research may explore dynamic reweighting schemes to prioritize state partitions with high approximation errors, further improving the efficiency and accuracy of the linear program.

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