NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Literati: Towards Anytime Optimal Shape Generalized Trees via AO*

Nakul Upadhya, Eldan CohenNeurIPS 2026

TL;DR

Standard decision trees are wonderfully interpretable, but building them usually forces an annoying choice: use fast, greedy algorithms that make myopic mistakes, or use globally optimal solvers restricted to simple, rigid threshold splits. Literati bridges this divide, becoming the first algorithm to find globally optimal Shape Generalized Trees—trees where each node can learn flexible, non-linear curves instead of single cutoffs. Named after a minimalist bonsai style with dramatic trunk shapes and sparse branches, Literati delivers compact, expressive trees with strong "anytime" performance, meaning you get a great model even if you stop the search early.

What Problem Does This Paper Address?

For tabular data, decision trees remain the gold standard when humans need to audit how a model thinks. Classic algorithms like CART build trees greedily from the top down, picking the best split right now without looking ahead. This often produces bloated, suboptimal trees.

Recent Optimal Decision Tree solvers fix this using global optimization, finding the best overall tree at once. However, they are stuck with rigid threshold splits (e.g., Age ≤ 35). If the true signal is non-linear—say, risk spikes for both teenagers and seniors—a threshold tree has to branch repeatedly on Age, turning a simple concept into a deep, tangled mess.

Shape Generalized Trees (SGTs) recently solved the expressivity problem by replacing single cutoffs with univariate shape functions—piecewise constant step functions on a single feature that can route multiple intervals left or right in one go. Because each node still looks at just one feature, you can easily plot and inspect the rule. Yet until now, SGTs could only be trained greedily. Finding a globally optimal SGT seemed computationally daunting because the space of possible multi-step shape functions at every node explodes combinatorially.

Methods

Literati frames optimal SGT learning as a search over an AND/OR graph, optimizing a regularized objective that penalizes classification errors alongside two complexity knobs: the number of internal nodes ($\lambda$) and the number of discontinuities, or "change-points," in each shape function ($\alpha$).

Instead of enumerating every possible shape function upfront, Literati builds them incrementally, one change-point at a time:

Figure 1: Visual representation of the AND/OR graph for Literati following the hypergraph notation from Nilsson [11]. Circle nodes correspond to data states and rectangle nodes correspond to Shape Function States. Each shape function state contains the candidate shape function being built. Edges connected by arcs are related via AND dynamics, edges without arcs are related via OR dynamics
  • Data States (OR nodes, circles): Represent subsets of data. Here, the search chooses to either make a leaf or start splitting on a feature's candidate change-point (selected adaptively at each node via a quick local CART run).
  • Shape Function States (rectangles): Represent partially built shape functions. Here, the search can either Refine (pay $\alpha$ to add another change-point) or Commit (apply the shape function, triggering an AND transition where both left and right child subproblems must be solved).

To search this graph, Literati adapts AO* (the classic heuristic search algorithm for AND/OR graphs) and introduces two clever tweaks to give it strong anytime behavior without sacrificing mathematical optimality:

  1. Secondary Heuristic for OR Selection: Standard admissible heuristics (strict lower bounds) are "blind" near the top of the tree because high data errors wash out small regularization penalties, causing AO* to wastefully cycle breadth-first across every candidate split. Literati keeps the admissible heuristic to certify optimality and prune bad branches, while using a second, informative heuristic (a fast CART lookahead) to greedily dive down the most promising paths first.
  2. Round-Robin AND Exploration: When exploring left and right children after a split, prior methods repeatedly hammer whichever child currently looks worse, starving the sibling if one subproblem is inherently harder. Literati simply alternates (round-robin) between unsolved children, balancing exploration.

Datasets

The authors evaluate Literati on 24 real-world tabular classification datasets (each under 500,000 samples, including Eye-Movements, Avila, Page, Fault, and Rice). No new datasets are introduced; instead, they draw from an established SGT benchmark suite that incorporates the widely used QuantBnB optimal-tree benchmark.

Key Insights and Ideas

  • Incremental shape construction tames the search space: Decomposing splits into step-by-step "refine" actions lets AO* prune unpromising multi-threshold shapes before they are even fully formed.
  • Decoupling exploration from optimality proofs: Using an inadmissible lookahead heuristic solely to pick which node to expand next—while letting the strict lower-bound heuristic govern pruning and termination—yields great trees early in the search while still guaranteeing global optimality if run to completion.
  • Expressive splits pay off immediately: Moving from standard single thresholds ($K=1$) to just two change-points per node ($K=2$) gives a substantial accuracy jump across all tree depths, proving that compact non-linear rules capture structure that flat splits miss.

Key Results

Across the 24 datasets, Literati outperforms 10 state-of-the-art greedy, optimal, and SGT baselines:

Table 1: Training accuracy, runtime, and optimality proof rate across depth budgets averaged across all datasets evaluated, organized into Non-Optimal and Optimal approaches, with the latter grouped by discretization strategy. The dashed lines separate Literati from baselines. Bold indicates the best value per depth for training accuracy and runtime.
  • Superior Generalization: With a 15-minute tuning budget per fold, Literati achieves the highest average out-of-sample test accuracy at 90.6%, beating the runner-up (ShapeTAO and LDS-DL8.5 at 89.6%) by a full percentage point and achieving a statistically significant lead in mean rank.
  • Pure Optimization Speed & Scale: Even restricted to standard threshold splits ($K=1$), Literati beats other optimal methods in training accuracy at depths 4, 5, and 6 while running significantly faster—e.g., solving depth-4 trees in 259s with a 97.5% optimality proof rate, compared to 488s (95.8% proof rate) for DPDT, which shares the exact same search space.
  • Resilient Anytime Scaling: With up to 3 change-points ($K=3$) at depth 6, Literati hits 92.69% training accuracy. Unlike several optimal baselines whose accuracy degrades at larger depths due to timeouts or 64 GB memory crashes, Literati steadily improves with depth.

Limitations and Future Work

Like all decision trees, Literati is built primarily for tabular data rather than raw unstructured inputs. Furthermore, its optimality certificate applies to the adaptively discretized candidate thresholds rather than raw continuous space, and—like all exact NP-hard tree solvers—proving global optimality on massive datasets within tight time budgets remains tough (making its anytime guarantees crucial in practice). For future work, the authors suggest exploring new admissible and informative heuristics to plug into their AO* framework.

Summary updated

BibTeX
@inproceedings{upadhya2026literati,
  author = {Nakul Upadhya and Eldan Cohen},
  title = {{Literati: Towards Anytime Optimal Shape Generalized Trees via AO*}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=uUYZFj5qPL},
}

Loading related content...

Figure