Abstract
This paper introduces FUDYADT, the first fully-dynamic algorithm for maintaining decision trees under an arbitrary sequence of both data insertions and deletions. By relaxing the requirement for a perfectly optimal tree to an $\epsilon$-optimal one, the authors achieve nearly optimal amortized running time and space complexity while outperforming existing incremental-only methods.
Introduction
Decision trees are a staple of machine learning, but they are traditionally "static" (built once on a fixed dataset) or "incremental" (can grow as new data arrives). However, real-world data is messy: we often need to delete examples due to noise removal, privacy requests (the "right to be forgotten"), or because the data has become obsolete.
Existing state-of-the-art streaming algorithms, like Hoeffding Trees (EFDT/HAT), only handle insertions and rely on the assumption that data is independent and identically distributed (i.i.d.). FUDYADT addresses these challenges by maintaining a high-quality tree efficiently under any sequence of updates, without making i.i.d. assumptions.
The FUDYADT Algorithm
The core strategy of FUDYADT (Fully Dynamic Amortized Decision Tree) relies on a mathematical relaxation: instead of seeking the absolute best split at every node, the algorithm maintains an $\epsilon$-feasible tree. This means every split used has a Gini gain within an additive $\epsilon$ of the optimum.
Key Technical Components
- Threshold-based Rebuilding: Each node $u$ tracks the number of examples it was built on ($s(u)$) and the number of updates it has seen since then ($c(u)$). When the updates exceed a certain fraction of the size ($c(u) > \epsilon \cdot s(u)$), the subtree is considered potentially stale and is rebuilt.
- Proactive Strategy: To avoid a "cascade" of rebuilds (where rebuilding a small child node triggers a rebuild of its parent shortly after), the algorithm uses a proactive approach. It identifies a "supertree" to rebuild that is slightly larger than strictly necessary, which amortizes the cost over many future updates.
- Gini Gain Smoothness: The authors prove that the Gini index is "smooth"—meaning a small number of changes to the dataset cannot drastically change the quality of a split. This theoretical foundation justifies why rebuilding only occasionally is sufficient to stay close to the optimum.
Experimental Evaluation
The algorithm was evaluated on several standard large-scale classification benchmarks, including Electricity, Forest Covertype, and the INSECTS suite (v1-v5), which is specifically designed to test robustness to "concept drift."
Key Results
- Accuracy: In incremental-only tests, FUDYADT consistently outperformed EFDT in terms of F1-score. For example, on the Electricity dataset, FUDYADT achieved an F1-score of 90.33 compared to EFDT's 83.64.
- Efficiency: The amortized running time per update is $O(d \log^3 n / \epsilon^2)$ for real-valued features. In practice, FUDYADT was tuned to match the speed of EFDT while delivering higher accuracy.
- Dynamic Handling: FUDYADT successfully maintained high F1-scores in "Sliding Window" and "Random Update" models—scenarios where existing state-of-the-art algorithms simply cannot function because they cannot process deletions.
Conclusion
FUDYADT provides a near-optimal theoretical and practical solution for fully-dynamic decision tree maintenance. By accepting an $\epsilon$ error, the algorithm gains massive efficiency without sacrificing predictive accuracy, making it suitable for large-scale, non-i.i.d. data streams where deletions are as common as insertions.
Summary updated