Abstract
We propose novel model transfer-learning methods that refine a decision forest model $M$ learned within a "source" domain using a training set sampled from a "target" domain, assumed to be a variation of the source. We present two random forest transfer algorithms. The first algorithm searches greedily for locally optimal modifications of each tree structure by trying to locally expand or reduce the tree around individual nodes. The second algorithm does not modify structure, but only the parameter (thresholds) associated with decision nodes. We also propose to combine both methods by considering an ensemble that contains the union of the two forests. The proposed methods exhibit impressive experimental results over a range of problems.
Introduction
In many real-world machine learning applications, we encounter the challenge of adapting a model trained on a large "source" dataset to a new, smaller "target" dataset. Traditional transfer learning often assumes access to both datasets. However, constraints such as data privacy, storage limitations, or communication overhead often make the source data unavailable at the time of adaptation. This paper addresses the Model Transfer (MT) problem: refining a pre-trained Random Forest model using only a limited amount of target data, without access to the original source data.
Proposed Methodology
The authors introduce a framework that adapts individual decision trees within a forest through two distinct strategies, addressing both structural and parametric domain shifts.
1. Structure Expansion/Reduction (SER)
The SER algorithm modifies the topology of the source trees. It employs a two-step process:
- Expansion: Existing leaves are grown into new subtrees if the target data indicates that more granular decision boundaries are needed.
- Reduction: Subtrees are pruned back into leaves in a bottom-up fashion if the target data suggests a simpler rule is more accurate. This "expand-then-reduce" approach acts as a logical regularizer, maintaining structural similarity to the source model while adapting to new patterns.
2. Structure Transfer (STRUT)
STRUT maintains the original tree structure but refines the numerical thresholds at each decision node. It utilizes a novel Divergence Gain (DG) measure, based on Jensen-Shannon divergence, to find new thresholds that maximize information gain on the target data while preserving the label distributions intended by the source model.
3. The MIX Ensemble
Recognizing that SER and STRUT address different types of domain shifts, the authors propose MIX, a union ensemble that combines trees adapted by both methods. This approach leverages the diversity of the two adaptation strategies to reduce overall variance and error.
Experimental Evaluation
The framework was evaluated on a wide range of benchmarks, including UCI datasets (Mushroom, Letter, Wine, Digits), image datasets (MNIST, USPS, Office-Caltech), and real-world tasks like landmine detection and activity recognition.
To precisely analyze the behavior of SER and STRUT, the authors also utilized synthetic challenges involving controlled transformations such as "moving source," "axis swap," and "fish-eye distortion." As shown in the figure above, a "splitting" transformation where a single box in the source domain becomes two boxes in the target domain requires the decision tree to expand its structure to maintain accuracy.
Key Results and Insights
- Robustness of MIX: The MIX algorithm consistently ranked as a top performer across more than 15 datasets, demonstrating the power of combining structural and parametric adaptation.
- Handling Extreme Shifts: In an MNIST inversion task (color-inverted images), STRUT excelled by effectively "swapping" subtrees, significantly outperforming standard benchmarks.
- Inductive Bias: Transfer models frequently outperformed "Target Only" baselines, proving that the source model's structure provides a valuable inductive bias that compensates for small target sample sizes.
- Competitive Performance: Surprisingly, the MT methods often matched or exceeded the performance of state-of-the-art instance transfer algorithms like TradaBoost and FEDA, despite those algorithms having the advantage of accessing the source data.
- Efficiency: The tree-by-tree adaptation process is highly parallelizable, allowing for rapid model transformation in just seconds.
Conclusion and Future Work
This work provides a robust and efficient framework for adapting Random Forests to new domains without requiring source data. While empirically successful, future work could explore formal sample complexity theories for adaptation and extend the framework to heterogeneous transfer learning where the feature spaces of the source and target domains differ.
Summary updated