Papers
Topics
Authors
Recent
Search
2000 character limit reached

Lasso-Weighted Random Forests

Updated 12 November 2025
  • Lasso-weighted random forests are an ensemble method that combines equal-weight random forest averaging with adaptive Lasso penalties to balance bias and variance.
  • The technique adapts weights to interpolate between aggressive sparsification and uniform aggregation, excelling particularly under moderate signal-to-noise conditions.
  • Empirical benchmarks demonstrate its versatility across domains, achieving up to 30% improvement in mean squared error and sharper feature selection.

Lasso-weighted random forests—also termed "Lassoed Forests"—are an ensemble learning methodology combining the variance-reducing power of random forests with bias-reduction via sparse convex post-selection, controlled by an adaptive weighted Lasso penalty. This approach seeks to interpolate between the traditional random forest, which uniformly averages an ensemble of high-variance but low-bias regression trees, and post-selection Lasso reweighting, which can aggressively discount weak trees to reduce bias but risks increased variance, especially in low signal-to-noise regimes. By introducing adaptivity in the regularization penalty, Lassoed Forests provide a principled, unified framework that strictly outperforms both standard random forest and fixed-weight Lasso post-selection under moderate signal-to-noise conditions, as established both theoretically and empirically (Shang et al., 10 Nov 2025).

1. Problem Formulation and Estimators

The standard random forest regression model for a feature vector xRpx \in \mathbb{R}^p with TT trees hj:RpRh_j : \mathbb{R}^p \to \mathbb{R} predicts via simple averaging: f^RF(x)=1Tj=1Thj(x),\hat f_{\mathrm{RF}}(x) = \frac{1}{T} \sum_{j=1}^T h_j(x), which is equivalently f^RF(x)=j=1Twj0hj(x)\hat{f}_{\mathrm{RF}}(x) = \sum_{j=1}^{T} w^0_j h_j(x) with wj0=1/Tw^0_j = 1/T. While this aggregation reduces variance among trees, it cannot eliminate the bias shared by all hjh_j.

To reduce estimator bias, a fixed-weight Lasso post-selection forms the prediction as a sparse linear combination of trees, selecting weights by solving

w^=argminwRT12nyHw22+λw1,\hat w = \arg\min_{w \in \mathbb{R}^T} \frac{1}{2n} \left\| y - H w \right\|_2^2 + \lambda \|w\|_1,

yielding f^Lasso(x)=j=1Tw^jhj(x)\hat f_{\mathrm{Lasso}}(x) = \sum_{j=1}^{T} \hat w_j h_j(x), where HRn×TH \in \mathbb{R}^{n \times T} contains out-of-bag predictions TT0. However, the TT1 penalty risks discarding too many trees or over-shrinking weights, which can degrade accuracy by raising variance when signal-to-noise ratio (SNR) is low.

The Lassoed Forest introduces an adaptive Lasso penalty to interpolate between equal weighting (TT2) and aggressive sparsification. Adaptive weights TT3 are defined for an initial estimate TT4 as TT5 for TT6, leading to the objective: TT7

2. Optimization, Algorithms, and KKT Analysis

At optimality, the sub-differential Karush-Kuhn-Tucker (KKT) conditions for the adaptive Lasso are: TT8 This implies TT9.

Efficient optimization proceeds via cyclic coordinate descent. For each hj:RpRh_j : \mathbb{R}^p \to \mathbb{R}0, all hj:RpRh_j : \mathbb{R}^p \to \mathbb{R}1 (hj:RpRh_j : \mathbb{R}^p \to \mathbb{R}2) are fixed and

hj:RpRh_j : \mathbb{R}^p \to \mathbb{R}3

where hj:RpRh_j : \mathbb{R}^p \to \mathbb{R}4 is soft-thresholding. Strong screening rules (e.g., discarding hj:RpRh_j : \mathbb{R}^p \to \mathbb{R}5 where hj:RpRh_j : \mathbb{R}^p \to \mathbb{R}6 is too small) can dramatically reduce computation.

3. Theoretical Properties: Bias-Variance, Oracle Bounds, and SNR

Assuming the true model hj:RpRh_j : \mathbb{R}^p \to \mathbb{R}7 with sub-Gaussian hj:RpRh_j : \mathbb{R}^p \to \mathbb{R}8 and that hj:RpRh_j : \mathbb{R}^p \to \mathbb{R}9 satisfies a restricted eigenvalue (RE) condition, the analysis focuses on mean squared prediction error. The SNR is defined as

f^RF(x)=1Tj=1Thj(x),\hat f_{\mathrm{RF}}(x) = \frac{1}{T} \sum_{j=1}^T h_j(x),0

For the adaptive Lasso, oracle inequalities show that, with high probability,

f^RF(x)=1Tj=1Thj(x),\hat f_{\mathrm{RF}}(x) = \frac{1}{T} \sum_{j=1}^T h_j(x),1

for f^RF(x)=1Tj=1Thj(x),\hat f_{\mathrm{RF}}(x) = \frac{1}{T} \sum_{j=1}^T h_j(x),2, f^RF(x)=1Tj=1Thj(x),\hat f_{\mathrm{RF}}(x) = \frac{1}{T} \sum_{j=1}^T h_j(x),3, and constants f^RF(x)=1Tj=1Thj(x),\hat f_{\mathrm{RF}}(x) = \frac{1}{T} \sum_{j=1}^T h_j(x),4 depending on the RE constant f^RF(x)=1Tj=1Thj(x),\hat f_{\mathrm{RF}}(x) = \frac{1}{T} \sum_{j=1}^T h_j(x),5.

The bias-variance decomposition is

f^RF(x)=1Tj=1Thj(x),\hat f_{\mathrm{RF}}(x) = \frac{1}{T} \sum_{j=1}^T h_j(x),6

Vanilla RF typically exhibits large bias but variance decays as f^RF(x)=1Tj=1Thj(x),\hat f_{\mathrm{RF}}(x) = \frac{1}{T} \sum_{j=1}^T h_j(x),7. Fixed Lasso reduces bias but risks high variance at low SNR. Adaptive Lasso, by tuning f^RF(x)=1Tj=1Thj(x),\hat f_{\mathrm{RF}}(x) = \frac{1}{T} \sum_{j=1}^T h_j(x),8, yields an estimator whose upper bound on MSE strictly interpolates between—and can be smaller than—those of both alternatives for moderate SNR, as formalized: f^RF(x)=1Tj=1Thj(x),\hat f_{\mathrm{RF}}(x) = \frac{1}{T} \sum_{j=1}^T h_j(x),9

4. Empirical Evaluation and Benchmarking

Simulation experiments considered polynomial and tree-ensemble generative models. Test metrics included MSE, bias/variance decomposition over replicates, and OOB/CV error estimation. Hyperparameters f^RF(x)=j=1Twj0hj(x)\hat{f}_{\mathrm{RF}}(x) = \sum_{j=1}^{T} w^0_j h_j(x)0 and f^RF(x)=j=1Twj0hj(x)\hat{f}_{\mathrm{RF}}(x) = \sum_{j=1}^{T} w^0_j h_j(x)1 were selected via cross-validation with grid search over f^RF(x)=j=1Twj0hj(x)\hat{f}_{\mathrm{RF}}(x) = \sum_{j=1}^{T} w^0_j h_j(x)2.

Empirical findings included:

  • Low SNR regime: vanilla RF outperforms fixed Lasso post-selection
  • High SNR: Lasso post-selection outperforms vanilla RF by up to 20 %
  • Adaptive Lassoed Forest tracks the better of the two uniformly, providing up to 30 % improvement over the less suitable method at moderate SNR

Variable importance was quantified using weighted split counts: f^RF(x)=j=1Twj0hj(x)\hat{f}_{\mathrm{RF}}(x) = \sum_{j=1}^{T} w^0_j h_j(x)3 with adaptively weighted forests producing sharper separation of true signal features.

In real-world case studies:

Domain & Adaptive Forest Performance Notes
California Housing Recovers most post-selection gain (5–10 %) without loss at low SNR
Spam classification Maximum loss vs. best baseline is ≤1% error
Drug response prediction Lower MSE than RF and Lasso on 5/6 drugs
Survival / Binary clinical Higher CDI c-index / lower misclassification

5. Practical Implementation Procedures

Lassoed Forests are trained using a cross-fitted workflow to prevent over-optimistic bias in out-of-bag or cross-validation error estimates. The high-level procedure is as follows:

  1. Split dataset f^RF(x)=j=1Twj0hj(x)\hat{f}_{\mathrm{RF}}(x) = \sum_{j=1}^{T} w^0_j h_j(x)5 into disjoint halves f^RF(x)=j=1Twj0hj(x)\hat{f}_{\mathrm{RF}}(x) = \sum_{j=1}^{T} w^0_j h_j(x)6.
  2. On f^RF(x)=j=1Twj0hj(x)\hat{f}_{\mathrm{RF}}(x) = \sum_{j=1}^{T} w^0_j h_j(x)7, grow f^RF(x)=j=1Twj0hj(x)\hat{f}_{\mathrm{RF}}(x) = \sum_{j=1}^{T} w^0_j h_j(x)8 trees via bootstrap; obtain OOB predictions on f^RF(x)=j=1Twj0hj(x)\hat{f}_{\mathrm{RF}}(x) = \sum_{j=1}^{T} w^0_j h_j(x)9 to form matrix wj0=1/Tw^0_j = 1/T0.
  3. Fit a fixed-weight Lasso on wj0=1/Tw^0_j = 1/T1 to generate wj0=1/Tw^0_j = 1/T2, selecting the regularization wj0=1/Tw^0_j = 1/T3 by cross-validation.
  4. For grid of candidate wj0=1/Tw^0_j = 1/T4, set adaptive weights wj0=1/Tw^0_j = 1/T5, fit adaptive Lasso, and estimate cross-validated error.
  5. Select wj0=1/Tw^0_j = 1/T6 minimizing CV error, with weights wj0=1/Tw^0_j = 1/T7 at this solution.
  6. The final prediction is wj0=1/Tw^0_j = 1/T8.

Computational considerations:

  • Tree fitting scales as wj0=1/Tw^0_j = 1/T9.
  • Lasso regression via coordinate descent is hjh_j0 per cross-validation fold for hjh_j1 hjh_j2-values.
  • Feature screening and warm starting can reduce effective complexity to hjh_j3 even for large hjh_j4 (up to hjh_j5).
  • In R, glmnet with per-variable penalties implements adaptive Lasso; in Python, the trick is to use sklearn.linear_model.Lasso and encode hjh_j6 via sample_weight.
  • For very large hjh_j7, sparsity can be exploited by representing hjh_j8 by only nonzero OOB entries. Parallel coordinate descent and warm starts accelerate the adaptive Lasso solution path.

6. Interpretive Perspectives and Methodological Significance

The Lassoed Forest framework synthesizes the strengths and mitigates the core weaknesses of both bagging and convex post-selection in tree ensembles. Explicit dependence on SNR determines which regime—the high-variance, low-bias averaging or low-variance, high-bias selection—dominates performance. The adaptive penalty yields a smooth transition, and mathematical guarantees under standard RE and sub-Gaussian assumptions establish strict improvement in predictive risk for moderate SNR. This suggests Lassoed Forests are most beneficial when the true function's variance and noise levels are comparable, and in settings requiring both feature selection interpretability and robust out-of-sample prediction.

The use of weighted split counts for variable importance, conditional on forest weights, provides a tool for causal and feature attribution analyses with enhanced separation of signal features. The modular nature of the post-selection procedure also allows for deployment with alternative ensemble architectures and further regularization frameworks.

A plausible implication is that the Lassoed Forest methodology motivates further exploration of adaptive penalties and staged model selection in nonparametric ensemble learning, especially as model sizes and data scales continue to increase.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Lasso-Weighted Random Forests.