Decision Trees for Function Evaluation: Simultaneous Optimization of Worst and Expected Cost

Ferdinando Cicalese, Eduardo Sany Laber, Aline Medeiros SaettlerAlgorithmica 2017 · DOI

Abstract

Evaluating discrete functions when querying variables incurs costs is a fundamental challenge in decision theory. Traditional approaches often optimize for either expected cost or worst-case cost, frequently at the expense of the other. This paper introduces DecTree, a novel algorithm that provides a logarithmic approximation for both metrics simultaneously. By leveraging submodular optimization and a two-stage greedy strategy, DecTree achieves theoretically optimal performance bounds, bridging the gap between average-case efficiency and worst-case safety.

Introduction: The Discrete Function Evaluation Problem

In many real-world scenarios, such as high-frequency trading or medical diagnosis, decisions are made by evaluating functions of several variables. If each variable (or "test") has an associated cost—computational, financial, or temporal—the objective is to minimize the total cost to determine the function's value. This is known as the Discrete Function Evaluation Problem (DFEP).

Example of a DFEP instance showing a table of object attributes and a corresponding decision tree.

Historically, researchers focused on optimizing either the Expected Cost (average performance) or the Worst-Case Cost (safety/guaranteed performance). However, a tree optimized for the average case might contain extremely deep branches, leading to poor worst-case performance. Conversely, a balanced tree for the worst case might be inefficient on average. DecTree addresses this by seeking the "best of both worlds."

Methodology: The DecTree Algorithm

The DecTree algorithm constructs a decision tree by building a "backbone" path and recursively attaching subtrees. It treats test selection as a submodular optimization problem, building upon classic greedy heuristics.

The Wolsey greedy algorithm, which serves as a foundation for the submodular optimization techniques used in DecTree.

To balance the two cost metrics, the backbone construction is divided into two distinct phases:

  1. Phase 1 (Probability-focused): The algorithm greedily selects tests that cover the maximum probability mass of objects per unit cost, targeting the Expected Cost.
  2. Phase 2 (Pair-focused): It selects tests that separate the maximum number of pairs of objects belonging to different classes, targeting the Worst-Case Cost.

A core component is the FindBudget procedure, which uses binary search to determine the minimum cost budget required to make significant progress in separating object classes at each step.

Key Insights and Theoretical Bounds

The paper highlights an inherent conflict: a tree minimizing expected cost (like a Huffman tree) can be significantly deeper than a perfectly balanced binary tree. Despite this, the authors prove that DecTree achieves:

  • Expected Cost $\leq O(\log n) \times$ Optimal Expected Cost.
  • Worst-Case Cost $\leq O(\log n) \times$ Optimal Worst-Case Cost.

This $O(\log n)$ approximation is the best possible result unless $P = NP$, as demonstrated through a reduction from the Minimum Set Cover problem. Furthermore, DecTree simplifies previous complex approaches that relied on the "Adaptive Traveling Salesperson Problem," offering a more direct and implementable greedy strategy.

Results and Impact

The primary contribution is the simultaneous approximation guarantee. Unlike previous methods that were bounded by $O(\log 1/p_{min})$—which can be arbitrarily large if some objects have very low probabilities—DecTree provides a robust $O(\log n)$ bound. This closes a significant theoretical gap in the literature of function evaluation and decision tree construction.

Limitations and Future Directions

While DecTree marks a theoretical milestone, several areas for future work remain:

  • Continuous Variables: The current model assumes discrete, known values. Extending this to continuous or noisy data is a logical next step.
  • Generalization vs. Exact Evaluation: In machine learning, one often avoids "overfitting." While DFEP focuses on exact evaluation, "pruning" DecTree early could help create trees that generalize better to unseen data.
  • Computational Scalability: The greedy selection process requires iterating through all available tests, which may become a bottleneck if the test set is exceptionally large.

Summary updated

BibTeX
@article{cicalese2017decision,
  author = {Ferdinando Cicalese and Eduardo Sany Laber and Aline Medeiros Saettler},
  title = {{Decision Trees for Function Evaluation: Simultaneous Optimization of Worst and Expected Cost}},
  journal = {Algorithmica},
  year = {2017},
  doi = {10.1007/s00453-016-0225-9},
}
Figure