Interpreting Blackbox Models via Model Extraction

Osbert Bastani, Carolyn Kim, Hamsa BastaniarXiv 2017

Introduction

In high-stakes domains such as medical diagnosis and legal decision-making, the predictive accuracy of machine learning models is insufficient on its own; understanding the rationale behind a prediction is paramount. While complex "blackbox" models like deep neural networks offer superior performance, their lack of transparency poses significant risks. This paper proposes a novel framework for global model extraction, where a highly accurate and human-interpretable decision tree is trained to approximate the behavior of a complex blackbox model.

Methodology: Active Sampling for Model Extraction

The primary challenge in extracting interpretable models is the trade-off between simplicity and fidelity. Standard decision trees often suffer from data scarcity at deeper nodes, leading to overfitting and instability. To overcome this, the authors introduce an Active Sampling strategy.

The process begins by estimating the input distribution of the original training data using a Gaussian Mixture Model (GMM). This GMM serves as a foundation for generating synthetic data points. The blackbox model is then treated as an "oracle" to label these synthetic points. By sampling thousands of new points for each node split, the algorithm can find the optimal greedy split regardless of the original dataset's size. This approach provides theoretical guarantees of convergence to the optimal greedy approximation of the blackbox as the sample size increases.

Experimental Evaluation

The framework was evaluated on two primary benchmarks: a Diabetes Risk classification task using Electronic Medical Records (384 features) and a Cart-Pole Controller reinforcement learning task.

Fidelity and Complexity

A key metric for model extraction is "fidelity"—how closely the extracted tree mimics the blackbox. The proposed method consistently outperformed standard CART and "born-again" trees. As shown in the figure below, the extracted trees maintain higher relative F1 scores across varying levels of complexity (number of nodes).

Fidelity vs. Model Complexity: The proposed method (black) maintains higher fidelity to the blackbox oracle compared to baselines as the number of nodes increases.

Human Interpretability

To assess the practical utility of these explanations, a user study was conducted with 46 graduate students. Participants were asked to reason about the logic of different interpretable models. The results indicated that decision trees are significantly more intuitive than rule lists. Specifically, participants achieved a 91% accuracy rate when answering complex logic questions using the extracted trees, compared to 65% for rule lists.

Human Accuracy in Model Interpretation: Users achieved higher accuracy when interpreting the logic of the extracted models (black) compared to baseline representations (red) across different tasks.

Discussion and Conclusion

The extracted models not only provide high-fidelity approximations but also facilitate model debugging. For instance, the trees revealed a "causal bug" in a medical model where nail fungus was incorrectly associated with lower diabetes risk—a correlation driven by proactive health-seeking behavior rather than biological prevention.

While the method's success depends on the quality of the input distribution estimation (GMM), it represents a significant step toward bridging the gap between accuracy and interpretability. Future work will explore more sophisticated generative models, such as GANs or VAEs, to further refine the active sampling process.

Summary updated

BibTeX
@misc{bastani2017interpreting,
  author = {Osbert Bastani and Carolyn Kim and Hamsa Bastani},
  title = {{Interpreting Blackbox Models via Model Extraction}},
  year = {2017},
  eprint = {1705.08504},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1705.08504},
}
Figure