Abstract
This paper introduces EncoderForest (eForest), the first auto-encoder framework constructed entirely from tree ensembles rather than neural networks. Unlike traditional deep neural network (DNN) auto-encoders that rely on gradient descent, eForest utilizes a novel Maximal Compatible Rule (MCR) to perform data reconstruction by reversing decision paths. Experimental results demonstrate that eForest achieves lower reconstruction errors and faster training speeds than standard MLPs and CNNs, while exhibiting superior robustness to model damage and high reusability across diverse datasets.
Introduction
Auto-encoders are fundamental tools for dimensionality reduction and representation learning. Traditionally, these are implemented using Deep Neural Networks (DNNs) like MLPs or CNNs. However, DNN-based auto-encoders require heavy computational resources, extensive hyper-parameter tuning, and are often fragile—performance often collapses if the model is partially damaged or applied to a slightly different domain without fine-tuning. This work explores whether tree ensembles, which are efficient and robust, can perform the same encoding-decoding tasks without the baggage of gradient-based optimization.
Methodology
The core challenge in building a forest-based auto-encoder is that decision trees are naturally one-way functions. To address this, the authors propose a two-stage process.
Forward Encoding
An input $x$ is passed through $T$ trees in a forest. Each tree assigns the input to a specific leaf node. The "code" for the input is simply a vector of these leaf indices. This process is highly parallelizable and computationally inexpensive.
Backward Decoding and the Maximal Compatible Rule (MCR)
To reconstruct the data, the authors introduce the Maximal Compatible Rule (MCR). Every leaf node represents a unique path from the root, described as a set of symbolic rules (e.g., $x_1 \ge 0.5$). For a given encoded vector, the decoder calculates the intersection of the rules for all $T$ leaf nodes. This intersection defines a "bounding box" or region in the original feature space where the input must reside. A representative point (such as the mean of the interval) is then selected as the reconstructed value.
Experimental Results
The authors evaluated eForest across image (MNIST, CIFAR-10) and text (IMDB) datasets, comparing it against standard DNN architectures.
Reconstruction Performance
On the MNIST dataset, an unsupervised eForest achieved a Mean Squared Error (MSE) of 6.86, significantly outperforming a standard MLP (163.97) and a vanilla CNN-AE (768.02). For text reconstruction on the IMDB dataset, eForest achieved a cosine distance of 0.0023, while an optimized MLP was over 200 times worse (0.512).
Efficiency and Robustness
- Speed: Due to its non-gradient nature, eForest on a multi-core CPU trained faster than a CNN on a high-end Titan-X GPU.
- Damage Tolerance: Unlike neural networks, where losing weights can distort output, eForest is an ensemble of logic. Even if 25% to 50% of the trees are removed, the remaining trees provide enough logical constraints to produce recognizable reconstructions.
- Model Reuse: A model trained on CIFAR-10 successfully reconstructed MNIST digits with an MSE of 90.43, whereas a CNN-AE essentially failed with an MSE of 2657.69.
Conclusion
eForest represents a significant step in non-gradient representation learning. By leveraging the symbolic rules of tree ensembles, it offers a robust, efficient, and highly reusable alternative to DNN-based auto-encoders. Future work includes integrating eForest into multi-layered "Deep Forest" architectures to learn even more complex hierarchical representations.
Summary updated