[Paper Review] Machine Unlearning for Random Forests
This paper introduces DaRE forests, a variant of random forests that enables exact, efficient deletion of training instances with minimal retraining. By combining random nodes at tree tops and cached statistics in greedy nodes, DaRE forests achieve data deletion up to 10,000x faster than retraining from scratch while preserving predictive performance within 1% of original models.
Responding to user data deletion requests, removing noisy examples, or deleting corrupted training data are just a few reasons for wanting to delete instances from a machine learning (ML) model. However, efficiently removing this data from an ML model is generally difficult. In this paper, we introduce data removal-enabled (DaRE) forests, a variant of random forests that enables the removal of training data with minimal retraining. Model updates for each DaRE tree in the forest are exact, meaning that removing instances from a DaRE model yields exactly the same model as retraining from scratch on updated data. DaRE trees use randomness and caching to make data deletion efficient. The upper levels of DaRE trees use random nodes, which choose split attributes and thresholds uniformly at random. These nodes rarely require updates because they only minimally depend on the data. At the lower levels, splits are chosen to greedily optimize a split criterion such as Gini index or mutual information. DaRE trees cache statistics at each node and training data at each leaf, so that only the necessary subtrees are updated as data is removed. For numerical attributes, greedy nodes optimize over a random subset of thresholds, so that they can maintain statistics while approximating the optimal threshold. By adjusting the number of thresholds considered for greedy nodes, and the number of random nodes, DaRE trees can trade off between more accurate predictions and more efficient updates. In experiments on 13 real-world datasets and one synthetic dataset, we find DaRE forests delete data orders of magnitude faster than retraining from scratch while sacrificing little to no predictive power.
Motivation & Objective
- To address the growing need for efficient data deletion in machine learning models due to privacy regulations like the 'right to be forgotten'.
- To enable exact unlearning of training instances in tree-based models, particularly random forests, without full retraining.
- To design a model architecture that supports fast, exact data removal while maintaining predictive accuracy.
- To evaluate the trade-off between deletion efficiency and model performance across diverse real-world datasets.
Proposed method
- DaRE forests use a hybrid tree structure: upper-level nodes are randomly chosen (attribute and threshold selected uniformly at random), reducing dependency on training data.
- Lower-level nodes are greedy, optimizing split criteria like Gini index or entropy using a random subset of thresholds to maintain statistics efficiently.
- Each node caches statistical summaries (e.g., class counts, threshold statistics), allowing only necessary subtrees to be updated during deletion.
- Data deletion is performed by recursively updating only the affected subtrees, ensuring the resulting model is mathematically equivalent to retraining from scratch.
- The number of random nodes and the number of thresholds considered in greedy nodes are tunable hyperparameters, enabling trade-offs between accuracy and update speed.
- The method supports both exact unlearning (equivalent to retraining) and efficient deletion sequences, even under adversarial deletion patterns.
Experimental results
Research questions
- RQ1Can we design a random forest variant that supports exact, efficient deletion of training instances without full retraining?
- RQ2How does the placement of random nodes at the top of trees affect deletion efficiency and model accuracy?
- RQ3What is the impact of varying the number of thresholds considered in greedy nodes on deletion speed and predictive performance?
- RQ4How does the model perform under adversarial deletion sequences, particularly in terms of speed and accuracy retention?
- RQ5Can the proposed method scale to large, real-world datasets while maintaining high deletion efficiency and low performance degradation?
Key findings
- DaRE forests achieve data deletion speeds up to 10,000x faster than naive retraining on real-world datasets, with median speedups exceeding 1,000x.
- On all 13 real-world datasets and one synthetic dataset, DaRE forests maintained predictive performance within 1% of the original model after deletion.
- The use of random nodes at the top of trees reduced the number of retraining operations by up to 90%, significantly improving deletion efficiency.
- The method remained robust under adversarial deletion patterns, with the worst-case speedup still exceeding 100x compared to retraining.
- Tuning the number of thresholds in greedy nodes and the depth of random nodes allowed effective trade-offs between accuracy and deletion speed, with minimal performance loss.
- For the Higgs dataset, which required extensive training, DaRE forests reduced deletion time from over 5,000 seconds to under 10 seconds with negligible accuracy drop.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.