TimberTrek: Exploring and Curating Sparse Decision Trees with Interactive Visualization

Zijie J. Wang, Chudi Zhong, Rui Xin, Takuya Takagi, Zhi Chen, Duen Horng Chau, Cynthia Rudin, Margo I. Seltzer · DOI

Abstract

In high-stakes decision-making domains such as healthcare, finance, and criminal justice, the demand for interpretable machine learning models has led to a resurgence in the use of sparse decision trees. However, these datasets often exhibit the "Rashomon effect," where thousands of distinct models achieve near-optimal accuracy. This abundance creates a paradox of choice for practitioners. TimberTrek is an interactive visualization tool designed to navigate this "Rashomon set," allowing users to explore, filter, and curate models based on domain expertise, fairness, and simplicity. By organizing thousands of trees into a searchable, multi-level overview, TimberTrek enables the transition from simple accuracy-based selection to value-aligned model curation.

Introduction

As machine learning is increasingly deployed in sensitive societal contexts, the "black-box" nature of complex models has become a significant liability. While sparse decision trees offer a transparent alternative, they present a unique challenge: the Rashomon set. For a given dataset, there may be thousands of different tree structures that perform with nearly identical accuracy. Traditional model selection techniques often default to a single "best" model or an opaque ensemble, ignoring the rich variety of logical paths available in the Rashomon set.

TimberTrek addresses this gap by providing the first scalable interface for exploring the entire landscape of near-optimal sparse decision trees. It allows data scientists and domain experts to move beyond raw performance metrics and select models that are ethically sound, practically robust, and aligned with human intuition.

System Design and Features

TimberTrek is a web-based tool, often integrated directly into Jupyter Notebooks, that utilizes several novel visualization techniques to manage the complexity of thousands of models.

Rashomon Overview (Sunburst Chart)

To summarize thousands of models, TimberTrek organizes trees into a "trie" (a prefix tree) based on their decision paths. This is visualized through a Sunburst chart where each concentric ring represents a level of depth in the decision trees. The angular width of a segment indicates the frequency with which a specific feature is used at that stage across the entire model set. This provides an immediate visual representation of feature importance and common logical structures within the Rashomon set.

Fluid Abstraction and Tree Exploration

The tool supports a "fluid abstraction" workflow, allowing users to transition from a global overview to specific subsets of models. Once a user identifies a promising branch of models, they can drill down into the Tree Window. This view utilizes a node-link diagram to show the logic of an individual model. A unique "funnel-like" toggle adjusts the width of the branches to represent the percentage of training data flowing through each path, helping users assess the empirical robustness of specific rules.

Search, Filter, and Curation

To manage the "paradox of choice," TimberTrek includes a robust filtering panel. Users can narrow the model set based on:

  • Accuracy: Maintaining a specific performance threshold.
  • Simplicity: Filtering by tree height or number of leaves.
  • Robustness: Setting a minimum leaf size to ensure rules are not based on outliers.
  • Feature Constraints: Explicitly including or excluding specific features (e.g., removing sensitive demographic attributes).

A Favorite Panel serves as a curation workspace where users can bookmark candidates, add qualitative notes, and export selected models for production deployment.

Datasets and Case Studies

The effectiveness of TimberTrek was demonstrated using two primary datasets:

  1. COMPAS Recidivism Dataset: A set of 1,365 trees was generated to predict criminal reoffending. This dataset is a classic example of the need for ethical curation, as many accurate models rely on sensitive attributes like age or sex.
  2. Car Evaluation Dataset: A set of 911 trees was generated to predict vehicle value. This case study focused on finding models that aligned with logical domain expectations (e.g., the importance of safety features).

Key Insights

The Fairness Filter

One of the most significant applications of TimberTrek is in ethical AI. In the COMPAS case study, a user was able to filter a set of 1,365 models down to just 33 that did not utilize sensitive demographic features. By exploring this subset, the user identified a model (Tree 681) that maintained high accuracy while adhering to fairness constraints that a standard automated selection process might have ignored.

Visual Feature Importance

The Sunburst visualization reveals which features are truly foundational. If a feature occupies a large portion of the inner ring, it suggests that the most accurate models almost universally rely on that variable as a primary splitter. This provides a more nuanced view of feature importance than a single global score.

Conclusion and Future Work

TimberTrek demonstrates that the Rashomon effect is not just a challenge to be managed, but an opportunity for better model selection. By providing the tools to navigate thousands of "good" models, TimberTrek empowers humans to inject their values and expertise into the machine learning pipeline.

Currently, the tool is limited to binary classification and may face visual clutter with datasets containing a very high number of unique features. Future iterations could expand the system to support multi-class classification and explore similar "explore and curate" paradigms for other interpretable model classes, such as linear models or scoring systems.

Summary updated

BibTeX
@inproceedings{wang2022timbertrek,
  author = {Zijie J. Wang and Chudi Zhong and Rui Xin and Takuya Takagi and Zhi Chen and Duen Horng Chau and Cynthia Rudin and Margo I. Seltzer},
  title = {{TimberTrek: Exploring and Curating Sparse Decision Trees with Interactive Visualization}},
  booktitle = {IEEE VIS (Short Papers)},
  year = {2022},
  url = {https://openreview.net/forum?id=9BwuGhDvuo},
}
Figure