Papers › Machine Unlearning for Random Forests

Machine Unlearning for Random Forests

11 Sep 2020arXiv:2009.05567archive 2025-07-28

Jonathan Brophy, Daniel Lowd

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.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2009.05567")

Code

Syntology Ran 8 of 8 code samples harvested from 2 repositories linked to this paper; 0 have no recorded run. Of those that ran: 3 ran · honoured contract; 3 ran · our draft was wrong; 2 ran with no contract checked.

By repository: official repository: 2 samples from 1 repository, 2 ran; community (archive-listed): 6 samples from 1 repository, 6 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

jjbrophy47/dare_rf officialmentioned in papermentioned on GitHub report
jjbrophy47/dart officialmentioned in papermentioned on GitHubApache-2.0 report
jjbrophy47/dare mentioned on GitHub report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

8 samples harvested; 8 ran; 3 honoured the contract we drafted; 0 have no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.

3ran · honoured contract
3ran · our draft was wrong
2ran

Licence: 0 of the 8 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

count_costs jjbrophy47/dare_rf/scripts/experiments/delete.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 26d50711edadfb91 · report
count_depths jjbrophy47/dare_rf/scripts/experiments/delete.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 51e732fb59e6c8d4 · report
Forest jjbrophy47/dare/dare/_classes.py community (archive-listed) ran Apache-2.0 (permissive) · d686cca12fcb336c · report
Tree jjbrophy47/dare/dare/_classes.py community (archive-listed) ran Apache-2.0 (permissive) · aa6d7d1382a813d6 · report
check_data jjbrophy47/dare/dare/_classes.py community (archive-listed) ran · honoured contract fingerprinted Apache-2.0 (permissive) · ee4e70f9a8313061 · report
check_max_features jjbrophy47/dare/dare/_classes.py community (archive-listed) ran · honoured contract Apache-2.0 (permissive) · 340443a08b781271 · report
check_random_state jjbrophy47/dare/dare/_classes.py community (archive-listed) ran · our draft was wrong Apache-2.0 (permissive) · 4afb54d2799f0c8d · report
get_random_int jjbrophy47/dare/dare/_classes.py community (archive-listed) ran · honoured contract fingerprinted Apache-2.0 (permissive) · 1d69edfc9a4de8c9 · report

Tasks

Machine Unlearning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections