Introduction
ControlBurn is a Python package designed to bridge the gap between the predictive power of nonlinear tree ensembles and the interpretability of sparse linear models. While linear tools like the Lasso are standard for feature selection, they often struggle with the nonlinear relationships prevalent in real-world data. Conversely, nonlinear models like Random Forests often act as "black boxes," providing heuristic metrics like Mean Decrease in Impurity (MDI) that can be biased or fail under high feature correlation. ControlBurn addresses these issues by using a weighted Lasso optimization to select a small subset of "simple" trees from a diverse forest, performing efficient nonlinear feature selection that remains accurate even with highly correlated data.
Methodology
The ControlBurn framework operates in three main stages:
1. Building a Diverse Forest
The process begins by growing a large ensemble of "simple" trees—shallow trees that utilize only a few features. The goal is to create a forest diverse enough to contain many feature-sparse sub-models. Strategies like Incremental Depth Bagging are employed to ensure this diversity, as a forest of deep, complex trees would not allow for effective sparse selection.
2. Weighted Lasso Selection
The core innovation of ControlBurn is its optimization problem. It assigns weights to trees in the initial forest using a Lasso-like penalty. Crucially, each tree is penalized based on the number of unique features it uses. This encourages the selection of a "subforest" that collectively minimizes the total number of features used across the model, effectively "burning away" unnecessary complexity.
3. Polishing
After feature selection, the model can optionally refit a standard ensemble (e.g., a Random Forest) using only the selected features. This "polishing" step helps debias the model, as the Lasso optimization can sometimes over-shrink coefficients during the selection phase.
Experimental Evaluation
ControlBurn was evaluated across several diverse datasets to test its robustness and interpretability:
- Wisconsin Breast Cancer: Used for initial classification demonstrations.
- California Housing Prices: Employed to showcase interpretability tools like shape functions and importance scores.
- Body Fat Regression: Demonstrated "feature cost" awareness, where certain features (e.g., expensive medical tests) can be penalized more heavily during selection.
- Yale Emergency Room Triage: A large-scale real-world dataset with 969 features used to predict hospital admissions, testing the model's scalability.
Key Results and Insights
ControlBurn demonstrates significant advantages in feature reduction and interpretability:
- Massive Feature Reduction: On the Yale ER Triage dataset, ControlBurn reduced the feature count from 969 to just 10. Despite this 90x reduction in complexity, the model maintained an AUC of 0.81, compared to 0.88 for the full model.
- Handling Correlated Features: Unlike traditional heuristic metrics, ControlBurn’s optimization framework effectively selects representative features from correlated groups rather than splitting importance scores among them.
- Interpretability: By forcing the model to use a minimal set of features and shallow trees, the results are highly visualizable through weighted importance scores.
- Efficiency: The optimization step is computationally light, capable of computing full regularization paths for large datasets in seconds. The package also supports "Sketching" to further speed up optimization on massive data.
Limitations and Future Work
ControlBurn's performance is inherently tied to the quality of the initial forest. If the starting pool consists only of deep, complex trees, the algorithm cannot effectively find a sparse subforest. Additionally, the choice between bagging and boosting for the initial forest can significantly impact the final feature set, requiring careful hyperparameter tuning. Future work may involve refining forest-building strategies to further automate the selection process and reduce sensitivity to initial hyperparameters.
Summary updated