Lumberjack: Better Differentially Private Random Forests through Heavy Hitter Detection in Trees

Christian Janos Lebeda, David Erb, Tudor Cebere, Aurélien BelletNeurIPS 2026

TL;DR

Random forests are the undisputed workhorses for tabular data, yet making them differentially private usually injects so much mathematical noise that the models become practically useless. Enter Lumberjack: an algorithm that grows deep, wildly random trees and then uses a clever, privacy-preserving binary search to aggressively prune away empty branches. The result is a massive leap in accuracy for private tabular machine learning—frequently beating even non-private decision trees—without leaking sensitive training records.

What Problem Does This Paper Address?

If you work with healthcare records or financial tables, Random Forests (RFs) are likely in your toolkit. However, standard RFs can leak training data, necessitating Differential Privacy (DP)—a mathematical guarantee that an algorithm's output barely changes if any single person's data is added or removed.

Historically, building DP random forests has been a catch-22:

  1. Greedy trees look at the data at every split to find the best feature threshold. Under DP, every peek at the data costs "privacy budget," forcing you to add crippling amounts of noise. (Worse, the authors audited the literature and found privacy bugs in over 10 existing papers!)
  2. Fully random trees avoid spending privacy budget on splits by guessing feature thresholds completely blind to the data, only using data at the end to label the leaves. While private, blind splitting adapts terribly to shifted data ranges or outliers: shallow trees lump distinct classes together, while deep trees shatter data into nearly empty, noise-dominated leaves.
Comparison of fully random trees failing as data boundaries shift versus Lumberjack maintaining crisp class boundaries.

Methods

Lumberjack strikes a middle ground: split blindly, but prune smartly.

First, just like standard "Extra Trees," Lumberjack builds very deep trees (e.g., depth 100) using completely random feature and threshold splits. Next comes the core innovation: deciding when to stop splitting by casting tree pruning as a hierarchical heavy-hitter detection problem. We want to keep nodes populated with enough data points (above a threshold $\tau$) and chop off the sparse branches.

Checking node counts from the top down is costly; a single user's data sits along an entire path of height $h$, meaning noise must scale with $\sqrt{h}$. Instead, Lumberjack uses a noisy binary search over the tree:

  • Mid-layer check: It queries the middle layer of the tree first. Because tree counts are monotonic, if a node is "Heavy" (populated), every ancestor above it must also be Heavy! Conversely, if a node is "Light" (sparse), every descendant below it must be Light.
  • Recursive divide-and-conquer: By propagating these logical certainties up and down, the algorithm skips massive chunks of the tree and recurses only on the ambiguous zones. Now, a single data point affects at most $1 + \lfloor \log_2 h \rfloor$ queries—exponentially slashing noise scaling to $O(\sqrt{\log h})$.
Figure 2: Example of a recursive iteration of our heavy hitter detector (Algorithm 1). Phase I (orange band) queries all nodes at the middle layer and marks them Heavy (H, blue) or Light (L, dashed orange), with implications for ancestors and descendants shown by arrows. Phase II (purple band) recursively explores subtrees containing unmarked nodes (?, gray), skipping Light nodes. Phase III (green band) recursively marks the upper half of the tree, skipping Heavy nodes.

To keep deep trees computationally fast (since $2^{50}$ nodes won't fit in RAM), Lumberjack pairs this search with a sparse histogram thresholding trick: empty or near-empty nodes are deterministically marked Light without adding noise or exploring their subtrees. Finally, the authors analyze the privacy loss of the entire forest jointly rather than naively summing budgets across trees, squeezing out maximum utility before labeling the surviving leaves via private majority vote.

Datasets

The authors evaluate binary classification on five standard tabular benchmarks (no new datasets are introduced):

  • Adult (48,842 records, 14 features)
  • Four Folktables (California 2018) tasks: ACSIncome (~196k records), ACSEmployment (~379k records), ACSPublicCoverage (~139k records), and ACSTravelTime (~173k records). (ACSMobility was excluded as even non-private models performed poorly on it.)

Key Insights and Ideas

  • Monotonicity is a privacy superpower: Realizing that parent nodes are always at least as populated as their children lets you run $2^h$ overlapping binary searches for the privacy price of one, taming tree depth from $\sqrt{h}$ to $\sqrt{\log h}$.
  • Fixing a broken status quo: The authors uncovered subtle privacy-accounting flaws in over 10 prior DP-RF papers and a recent hierarchical heavy-hitters paper. Even when competing against baselines that accidentally cheat on privacy, Lumberjack still wins.
  • Zero-tuning threshold rules: By setting the minimum node size $\tau$ just high enough to deterministically ignore empty nodes ($\tau = 1 + \Delta$), the algorithm stays linear in runtime $O(knh)$ and avoids spending privacy budget on hyperparameter tuning.

Key Results

  • Order-of-magnitude tighter thresholds: For a single tree of height 100 ($\varepsilon = 1, \delta = 10^{-6}$), Lumberjack requires a heavy-hitter threshold of just $\tau = 58$ data points to safely prune empty nodes—compared to 8,011 and 735,637 for the two closest theoretical competitors.
  • State-of-the-art accuracy: Across privacy budgets $\varepsilon \in \{0.5, 1, 2, 4, 8\}$, Lumberjack consistently outperforms all DP random forest baselines (including IBM's DiffPrivLib). On Adult and ACSIncome, Lumberjack reaches ~82–84% and ~80–81% accuracy as $\varepsilon$ grows, frequently surpassing a non-private sklearn greedy Decision Tree even at moderate privacy ($\varepsilon \approx 2$).

Limitations and Future Work

  • Splits are still blind: While pruning is data-aware, the splits themselves remain random, leaving an accuracy gap compared to non-private Extra Trees. Designing truly high-utility greedy DP random forests remains an open challenge.
  • Forced coarse leaves: As proven by the authors' theoretical lower bounds, any efficient private algorithm for deep trees must enforce a minimum leaf size $\tau$ larger than non-private defaults, limiting fine-grained resolution on small datasets.
  • Theoretical gap: A small $O(\sqrt{\log h})$ gap remains between Lumberjack's upper error bound and the theoretical lower bound for deep trees, leaving room for future algorithmic tightening and smarter private data-preprocessing.

Summary updated

Abstract

Random forests are widely used in fields involving sensitive tabular data, but existing approaches to enforcing differential privacy (DP) typically degrade performance to the point of impracticality. In this paper, we introduce Lumberjack, a differentially private random forest algorithm that achieves substantially higher utility by constructing large random decision trees and then applying aggressive, privacy-preserving pruning to retain only sufficiently populated nodes. A key component of our approach is a novel $(\varepsilon,\delta)$-DP heavy hitter detection algorithm for hierarchical data, whose error is $O_{\varepsilon,\delta}(\sqrt{\log h})$ for trees of height $h$ and may be of independent interest. This favorable scaling enables the use of significantly deeper trees than in prior work, leading to improved expressiveness under privacy constraints. Our empirical evaluation on benchmark datasets shows that Lumberjack consistently outperforms prior DP random forest methods, establishing a new state of the art. In particular, our approach yields substantial improvements in the privacy-utility trade-off for practical privacy budgets. Our findings suggest that more carefully designed DP random forests can close much of the utility gap, highlighting a promising and underexplored direction for future research.
BibTeX
@inproceedings{lebeda2026lumberjack,
  author = {Christian Janos Lebeda and David Erb and Tudor Cebere and Aurélien Bellet},
  title = {{Lumberjack: Better Differentially Private Random Forests through Heavy Hitter Detection in Trees}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=ydhXJ2q9Ma},
}
Figure