TL;DR
Random forests are notoriously sensitive to noise in test data, where a single "wrong turn" at a decision node can lead to wildly inaccurate predictions. This paper introduces Denoising Random Forests, a framework that uses denoising autoencoders to identify and correct these faulty traversal paths, significantly boosting robustness without requiring explicit noise reduction on the raw input features.
What Problem Does This Paper Address?
While Random Forests (RFs) are naturally robust to noise in training data due to their ensemble nature and bootstrap sampling, they struggle when test samples are contaminated.
In a standard decision tree, a sample moves from the root to a leaf based on feature thresholds. If a specific feature is corrupted by noise, the sample may be directed to the wrong child node. Because trees are hierarchical, this initial error propagates, often landing the sample in a leaf node that is semantically and numerically distant from the "clean" ground truth. As shown in Figure 1, this leads to significant estimation errors in regression tasks.
Methods
The authors propose a multi-step pipeline to "fix" the traversal path rather than the data itself:
- Binary Indicator Vectors: The traversal path of a sample through the forest is encoded as a high-dimensional binary vector, where each bit represents whether a sample reached a specific leaf node.
- Denoising Autoencoders (DAE): The core innovation is training a DAE on these indicator vectors. By feeding the DAE pairs of "clean" and "noisy" traversal patterns, the network learns the underlying correlations between trees.
- Inter-node Distance Encoding: To combat the extreme sparsity of binary indicator vectors (which makes training deep networks difficult), the authors developed a refined vector that encodes the distance between nodes. This provides a smoother signal for the DAE to learn.
- Tree Selection via Cross-Entropy: Counter-intuitively, the authors select trees that are highly correlated (low cross-entropy). While diversity is usually preferred for generalization, some redundancy is required for the DAE to effectively "guess" a correct path based on the behavior of other trees in the forest.
- Multiple Path Estimation: Instead of simply replacing the noisy path with the DAE's output, the system considers both the original and recovered paths, using a weighted sum for the final prediction to mitigate potential DAE errors.
Datasets
The method was evaluated using five public regression datasets from the UCI Machine Learning Repository:
- Protein: Physicochemical Properties of Protein Tertiary Structure.
- Concrete: Concrete Compressive Strength.
- Music: Geographical Origin of Music.
- Energy: Energy Efficiency.
- Airfoil: Airfoil Self-Noise.
Noise was simulated by replacing random feature elements with the average value of that feature across the entire dataset.
Key Insights and Ideas
- Redundancy as a Robustness Tool: In standard machine learning, we strive for independent models in an ensemble. This paper argues that for noise robustness, correlation is a feature. If trees are somewhat redundant, a DAE can use the "consensus" of clean trees to fix a "rogue" tree that took a wrong turn.
- Path Denoising vs. Feature Denoising: The authors found that denoising the discrete, structured traversal paths is more effective than trying to denoise high-dimensional continuous input features directly. The tree structure acts as a high-level abstraction that simplifies the denoising task.
- Quantifying Tree Correlation: The use of normalized cross-entropy to measure how much information one tree provides about another is a clever way to prune the forest for maximum denoising potential.
Key Results
- Path Recovery: The DAE successfully recovered the true indicator vectors for 75% to 90% of noisy samples.
- Error Reduction: The proposed Denoising Random Forest consistently outperformed standard regression forests on noisy data. For example, on the Energy dataset, the method improved accuracy by approximately 2.5 percentage points when the subset overlap ratio was 60%.
- Superiority over Input Denoising: The method outperformed traditional input-feature denoising by an average of 1.6% across all datasets, proving that the "path-based" approach captures structural information that raw feature denoising misses.
Limitations and Future Work
- Task Scope: The current work focuses primarily on regression. The authors note that extending this to classification and density estimation is a key next step.
- Clean Training Assumption: The model assumes that training data is clean. In real-world scenarios where training data is also noisy, the DAE might struggle to learn the "correct" traversal patterns.
- Architectural Simplicity: The paper uses a relatively simple DAE architecture. The authors suggest that emerging deep learning techniques could further improve the recovery of true traversal paths.
Summary updated