Optimal Approximation of Random Variables for Estimating the Probability of Meeting a Plan Deadline

Liat Cohen, Tal Grinshpoun, Gera WeissAAAI 2018

TL;DR

This paper introduces OptApprox, an algorithm designed to optimally compress discrete random variables to prevent the "support explosion" common in complex stochastic planning. By minimizing the one-sided Kolmogorov distance in polynomial time ($O(n^3)$), OptApprox enables researchers to estimate the probability of meeting plan deadlines with guaranteed accuracy and conservative, safe bounds.

The Challenge: The Curse of Support Growth

In stochastic planning—such as robot task scheduling or logistics management—calculating the total time a plan will take is a fundamental requirement. When a plan consists of multiple tasks with uncertain durations, these durations are treated as random variables (RVs).

The primary obstacle in this field is the curse of support growth. When two independent discrete RVs, $X$ and $Y$, are added, the size of the resulting support (the set of possible outcomes) can reach the product of their individual sizes ($|X| \cdot |Y|$). In hierarchical plans containing dozens of steps, the number of possible outcomes grows exponentially, quickly making exact computation computationally impossible.

Hierarchical task tree for a logistics problem, illustrating the complexity of plan execution.

To maintain tractability, researchers must "trim" or approximate these intermediate RVs. However, standard numerical rounding can introduce unpredictable errors. For deadline estimation, it is critical to have conservative estimates; it is far safer to slightly overestimate the probability of failure than to be overconfident in a plan's success.

Methodology: The OptApprox Algorithm

The authors propose OptApprox, a method to find the mathematically optimal approximation of an RV given a fixed maximum support size ($m$). The algorithm is built on three core pillars:

  1. Metric Selection: The algorithm utilizes a one-sided version of the Kolmogorov distance. This ensures that the approximation's Cumulative Distribution Function (CDF) is always greater than or equal to the original, providing a "safe" conservative estimate for deadlines.
  2. Consecutive Partitions: A key theoretical insight (Theorem 1) proves that an optimal approximation can always be found by partitioning the original support into consecutive blocks and representing each block by its minimum value. This reduces a combinatorial nightmare into a structured optimization problem.
  3. Graph-Based Optimization: The problem of finding the best partition is mapped to a bottleneck shortest path problem on a directed acyclic graph (DAG). Nodes represent elements of the original support, while edges represent possible groupings. Using a modified Bellman-Ford approach, the algorithm finds a path with at most $m$ edges that minimizes the maximum error (probability mass) introduced.

Experimental Evaluation

The authors evaluated OptApprox across several diverse domains to test its robustness:

  • Logistics Problems: Generated by the JSHOP2 planner, simulating package transport via trucks and planes.
  • ROBIL/DARPA Robotics: Task trees derived from the ROBIL team's entry in the DARPA Robotics Challenge (DRC).
  • Sequential Plans: Synthetic linear chains used to test the limits of support growth.
  • Synthetic RVs: Randomly generated distributions with support sizes up to $M=1000$ to benchmark single-operator performance.

Key Results: Efficiency and Accuracy

The experiments yielded several significant findings regarding the performance of OptApprox compared to exact methods and the previous state-of-the-art "Trim" operator:

  • Scalability: While exact computation becomes impossible as the number of variables increases beyond 15 (taking hundreds of seconds or crashing due to memory limits), OptApprox maintains a near-constant, low execution time.
  • Superior Accuracy: OptApprox consistently outperformed the "Trim" operator. In synthetic tests, the relative error of Trim was found to be up to 45% higher than OptApprox for the same support size.
  • Deterministic Guarantees: Unlike Monte Carlo sampling, which offers only probabilistic bounds, OptApprox provides a deterministic, optimal bound on the approximation error.
Run-time performance comparison showing the exponential growth of exact computation versus the scalability of OptApprox.

Discussion and Future Work

While OptApprox is "locally optimal" for single operations, the authors note that a sequence of locally optimal choices across a large task tree may not yield a globally optimal final result. Additionally, while $O(n^3)$ is polynomial, it is slower than the $O(n)$ Trim operator, presenting a trade-off for real-time systems.

Future research may explore adapting this graph-based approach to other metrics, such as the Wasserstein distance, which could provide better results for different classes of stochastic optimization problems.

Summary updated

BibTeX
@inproceedings{cohen2018optimal,
  author = {Liat Cohen and Tal Grinshpoun and Gera Weiss},
  title = {{Optimal Approximation of Random Variables for Estimating the Probability of Meeting a Plan Deadline}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.1609/aaai.v32i1.12114},
}

Loading related content...

Figure