Trained Random Forests Completely Reveal your Dataset
Not on the map. Why?
Abstract (arXiv)
We introduce an optimization-based reconstruction attack capable of completely or near-completely reconstructing a dataset utilized for training a random forest. Notably, our approach relies solely on information readily available in commonly used libraries such as scikit-learn. To achieve this, we formulate the reconstruction problem as a combinatorial problem under a maximum likelihood objective. We demonstrate that this problem is NP-hard, though solvable at scale using constraint programming -- an approach rooted in constraint propagation and solution-domain reduction. Through an extensive computational investigation, we demonstrate that random forests trained without bootstrap aggregation but with feature randomization are susceptible to a complete reconstruction. This holds true even with a small number of trees. Even with bootstrap aggregation, the majority of the data can also be reconstructed. These findings underscore a critical vulnerability inherent in widely adopted ensemble methods, warranting attention and mitigation. Although the potential for such reconstruction attacks has been discussed in privacy research, our study provides clear empirical evidence of their practicability.
Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Builds on 14 of its 35 references that are in the map. First posted on arXiv 29 Feb 2024.
Builds on
14 of 35 references.
References · 14
- 2016Membership Inference Attacks against Machine Learning Modelscited by 2,221
- 2021Membership Inference Attacks From First Principlescited by 839
- 2020A Survey of Privacy Attacks in Machine Learningcited by 143
- 2022Reconstructing Training Data from Trained Neural Networkscited by 129
- 2019Updates-Leak: Data Set Inference and Reconstruction Attacks in Online Learningcited by 117
- 2020An Overview of Privacy in Machine Learningcited by 39
- 2021Optimal Counterfactual Explanations in Tree Ensemblescited by 36
- 2016Decision Tree Classification with Differential Privacy: A Surveycited by 17
- 2022Exploiting Fairness to Enhance Sensitive Attributes Reconstructioncited by 10
- 2021Optimal Kidney Exchange with Immunosuppressantscited by 9
- 2022Can Querying for Bias Leak Protected Attributes? Achieving Privacy With Smooth Sensitivitycited by 8
- 2020On the Intrinsic Differential Privacy of Baggingcited by 7
Built on by
Citing papers per year: 2024: 1; 2025: 6; 2026: 4.
11 papers.
- 2025From Counterfactuals to Trees: Competitive Analysis of Model Extraction Attackscited by 3
- 2025Surrogate Interpretable Graph for Random Decision Forestscited by 1
- 2025Large Language Models for Pedestrian Safety: An Application to Predicting Driver Yielding Behavior at Unsignalized Intersectionscited by 1
- 2026Linear Model Extraction via Factual and Counterfactual Queriescited by 1
- 2024Smooth Sensitivity for Learning Differentially-Private yet Accurate Rule Listscited by 0
- 2025Training Set Reconstruction from Differentially Private Forests: How Effective is DP?cited by 0
- 2025LHT: Statistically-Driven Oblique Decision Trees for Interpretable Classificationcited by 0
- 2025The Double-Edged Nature of the Rashomon Set for Trustworthy Machine Learningcited by 0
- 2026PACE: Prune-And-Compress Ensemble Modelscited by 0
- 2026Lumberjack: Better Differentially Private Random Forests through Heavy Hitter Detection in Treescited by 0
- 2026RECAST: Model Reconstruction via Counterfactual-Aware Wasserstein Geometry under Limited Datacited by 0
- 2026RECAST: Model Reconstruction via Counterfactual-Aware Wasserstein Geometry under Limited Data26 Jun 2026
- 2026Lumberjack: Better Differentially Private Random Forests through Heavy Hitter Detection in Trees21 May 2026
- 2026PACE: Prune-And-Compress Ensemble Models7 May 2026
- 2026Linear Model Extraction via Factual and Counterfactual Queries10 Feb 2026
- 2025The Double-Edged Nature of the Rashomon Set for Trustworthy Machine Learning26 Nov 2025
- 2025Large Language Models for Pedestrian Safety: An Application to Predicting Driver Yielding Behavior at Unsignalized Intersections24 Sep 2025
- 2025Surrogate Interpretable Graph for Random Decision Forests17 May 2025
- 2025LHT: Statistically-Driven Oblique Decision Trees for Interpretable Classification7 May 2025
- 2025From Counterfactuals to Trees: Competitive Analysis of Model Extraction Attacks7 Feb 2025
- 2025Training Set Reconstruction from Differentially Private Forests: How Effective is DP?7 Feb 2025
- 2024Smooth Sensitivity for Learning Differentially-Private yet Accurate Rule Lists18 Mar 2024