Diagnosis determination: decision trees optimizing simultaneously worst and expected testing cost

Ferdinando Cicalese, Eduardo Sany Laber, Aline Medeiros SaettlerICML 2014

Introduction

Imagine a doctor diagnosing a patient or a high-frequency trading bot deciding whether to buy a stock. In both scenarios, a series of tests (e.g., medical exams or market variable checks) can be run, each carrying a specific cost in terms of money, time, or computation. The ultimate goal is to identify the correct "class"—a diagnosis or a trade action—by performing the cheapest possible sequence of tests.

In computer science, this is known as the Discrete Function Evaluation Problem (DFEP). Historically, researchers have optimized decision trees for one of two distinct metrics:

  1. Expected Cost: The average cost paid over many cases, assuming a known probability distribution of scenarios.
  2. Worst-Case Cost: The maximum cost incurred in the absolute unluckiest scenario.

The fundamental challenge is that a decision tree optimized for the "average" case can be disastrously expensive in the "worst" case, and vice versa. This paper addresses the gap of bi-criteria optimization, introducing a novel algorithm called DecTree that builds a single decision tree performing near-optimally on both metrics simultaneously.

The Discrete Function Evaluation Problem (DFEP)

To understand DFEP, consider a set of objects, each belonging to a specific class and occurring with a certain probability. We have a set of tests we can apply to these objects to determine their class.

Example of DFEP with a test table and corresponding decision tree.

As illustrated above, the problem involves mapping test results to specific classes. While standard machine learning aims to avoid overfitting to generalize to unseen data, in DFEP, the mapping function (like a fixed lookup table) is known upfront. Therefore, the objective is to perfectly "overfit" the known data using a decision tree that minimizes the cost of identification.

The DecTree Algorithm and Backbone Strategy

The authors propose DecTree, an algorithm that constructs decision trees using a unique "backbone" architecture. Instead of standard top-down greedy splitting, DecTree builds a primary path of tests and recursively attaches subtrees.

The backbone strategy of DecTree, showing a main path with attached subtrees.

Key technical components of this approach include:

  • The "Backbone" Strategy: The algorithm iteratively builds a main path (the backbone) by selecting tests that either maximize the probability mass of the identified objects or maximize the number of separated object pairs (objects from different classes).
  • Submodular Function Optimization: Selecting the "best" test is framed as maximizing a submodular function. The authors utilize a variation of Wolsey’s greedy heuristic, a standard tool for achieving strong approximations under budget constraints.
  • FindBudget Subroutine: To determine how much cost to allocate to the backbone before recursing, DecTree employs a binary search. This finds a cost budget that guarantees a specific amount of progress, such as separating a fixed fraction of object pairs.
  • Recursive Construction: Once the backbone is established, the algorithm recursively calls itself to build subtrees for the branches that diverge from the main path.

Key Insights and Theoretical Guarantees

This paper is fundamentally theoretical, focusing on algorithmic complexity and approximation guarantees rather than empirical dataset evaluation. Its most significant insight is proving that you do not have to trade off average performance for worst-case safety.

DecTree produces a single decision tree $D$ that achieves a simultaneous bi-criteria approximation:

  • $Cost_{Expected}(D) \leq O(\log n) \cdot OPT_{Expected}$
  • $Cost_{Worst}(D) \leq O(\log n) \cdot OPT_{Worst}$

Furthermore, the authors prove via a reduction from the Minimum Set Cover problem that this $O(\log n)$ bound is the theoretical limit. No algorithm can guarantee a $o(\log n)$ approximation for either the worst-case or expected cost of DFEP with $m \geq 2$ classes unless $P=NP$.

This pure $O(\log n)$ bound is a notable improvement over previous state-of-the-art algorithms for expected cost, which relied on bounds related to $O(\log 1/p_{min})$ (where $p_{min}$ is the smallest probability of any object). If one outcome is extremely rare, $1/p_{min}$ can be vastly larger than the total number of objects $n$. DecTree bypasses this vulnerability entirely. Finally, the authors note that DecTree is significantly simpler to implement than previous $O(\log n)$ attempts, which relied on complex mappings from the Adaptive Traveling Salesperson Problem.

Limitations and Future Directions

While theoretically robust, the algorithm assumes that the mapping from test results to classes and the underlying probability distribution are known perfectly in advance. In real-world scenarios, these are often only estimates. Additionally, while the approximation factor is logarithmic, the algorithm's reliance on binary searches and greedy selections over potentially large test sets might prove computationally slow for extremely high-dimensional data.

For future work, the authors suggest extending this approach to scenarios where the function is not fully known. They propose introducing a "stopping criterion" for the recursion—halting tree construction once a certain level of "learning" (fitting the labeled samples) is achieved. This would balance the identification cost with the model's generalization power.

Summary updated

BibTeX
@inproceedings{cicalese2014diagnosis,
  author = {Ferdinando Cicalese and Eduardo Sany Laber and Aline Medeiros Saettler},
  title = {{Diagnosis determination: decision trees optimizing simultaneously worst and expected testing cost}},
  booktitle = {International Conference on Machine Learning},
  year = {2014},
  url = {https://openreview.net/forum?id=SyNc12W_-r},
}
Figure