Source-linked AI summary

Feature-Weighted Linear Stacking

Joseph Sill, Gabor Takacs, Lester Mackey, David Lin

arXiv:0911.0460v2cs.LGcs.AI

TL;DR

Existing blending methods can use meta-features to reflect changing model reliability, but strong reported gains often rely on nonlinear procedures requiring substantial tuning and training time. FWLS incorporates meta-features through coefficients that are linear functions of them, retaining linear regression’s speed, stability, and interpretability while producing significant accuracy increases over standard linear stacking on the Netflix Prize dataset.

  • Problem

    Meta-features can improve blending, but the strongest reported gains generally came from nonlinear or iterative procedures with substantial tuning and training costs.

  • Method

    FWLS combines model predictions linearly while making each model coefficient a linear function of the example’s meta-features.

  • Results

    FWLS produced significant accuracy increases over standard linear stacking on the Netflix Prize collaborative filtering dataset.

  • Takeaways & Limitations

    FWLS can quickly discover useful meta-features for later use with nonlinear blenders and supports examining model effectiveness under different conditions.

  • Takeaways & Limitations

    The selected meta-feature set was path dependent, and some features useful in isolation did not improve the blend after other features were included.

Abstract

from arXiv · show

Ensemble methods, such as stacking, are designed to boost predictive accuracy by blending the predictions of multiple machine learning models. Recent work has shown that the use of meta-features, additional inputs describing each example in a dataset, can boost the performance of ensemble methods, but the greatest reported gains have come from nonlinear procedures requiring significant tuning and training time. Here, we present a linear technique, Feature-Weighted Linear Stacking (FWLS), that incorporates meta-features for improved accuracy while retaining the well-known virtues of linear regression regarding speed, stability, and interpretability. FWLS combines model predictions linearly using coefficients that are themselves linear functions of meta-features. This technique was a key facet of the solution of the second place team in the recently concluded Netflix Prize competition. Significant increases in accuracy over standard linear stacking are demonstrated on the Netflix Prize collaborative filtering dataset.

1 Introduction

Stacking blends model predictions through a second-level learner, while meta-features can adapt how models are combined to reflect differing reliability across conditions. FWLS addresses the difficulty of using meta-features with linear regression by making model coefficients linear functions of those features.

  • 1 Introduction: Stacking feeds predictions from multiple models into a second-level learning algorithm that combines them into final predictions.The approach is also called blending in some contexts.
  • 1 Introduction: Model reliability may vary with conditions such as how many products a customer has rated, motivating meta-feature-based adaptation of blending.For example, one model may be more reliable for heavily observed users, while another may perform better for users with few ratings.
  • 1 Introduction: Linear regression offers modest, predictable computational cost, minimal tuning, and an interpretable functional form, but fixed model coefficients do not adapt to meta-features.Simply appending meta-features to model predictions leaves each model’s coefficient constant.
  • 1 Introduction: Prior approaches generally used nonlinear or iterative methods to exploit meta-features, with reported results favoring procedures such as bagged model trees over linear regression.STREAM found that most benefit came from the number of user ratings and item ratings, while linear regression was least successful among its tested blending algorithms.
  • 1 Introduction: FWLS parametrizes each model’s coefficient as a linear function of meta-features, retaining linear regression’s speed, stability, and interpretability while improving accuracy.The approach formed an important part of The Ensemble’s second-place Netflix Prize solution.

2 Feature-Weighted Linear Stacking

FWLS makes model-blending weights linear functions of meta-features, so one linear regression can learn feature-dependent combinations while retaining linear models’ speed, stability, and interpretability. Its implementation uses products of model outputs and meta-features, out-of-sample predictions, and optional regularization for larger parameter sets.

  • Algorithm: FWLS models each model weight as a linear function of meta-features rather than using constant weights.This yields a blend whose coefficients vary with the input’s meta-features.
  • Algorithm: A single linear regression estimates FWLS parameters using products of meta-feature functions and model predictors as inputs.The regression inputs are f_j(x)g_i(x) evaluated on stacking-training examples.
  • Algorithm: FWLS is equivalently a restricted bipartite quadratic regression that retains model–meta-feature interactions while dropping within-model and within-meta-feature interactions.This provides an alternative interpretation of the same functional form.
  • Training data: Stacking regression must use out-of-sample model predictions, typically generated through K-fold cross-validation.Each prediction should come from a model trained without the corresponding data point.
  • Regularization: A constant weight component can be represented with a meta-feature that always equals 1, and ridge regression can reduce overfitting when ML parameters are numerous.The parameter count can become substantial when many models and meta-features are blended.
  • Implementation details: With N = 162,731, M = 26, and L = 10, the entire regression finished in 1 minutes and 35 seconds on a single processor core.The stated complexity is O(NM2L2 + M3L3), with computing A^T A usually dominating when N is much larger than ML.

3 Experiments

Experiments evaluate FWLS on Netflix Prize collaborative-filtering data using 119 models, cross-validated probe-set selection, and 24 helpful meta-features. FWLS improved accuracy over standard linear stacking, while directly adding meta-features to regression produced only a 1-basis-point gain.

  • 3.1 Netflix Prize Overview: The Netflix Prize data contain ratings from 480,189 users across 17,770 movies, with 100,480,507 supplied user–movie ratings and a 2,817,131-pair qualifying set.The qualifying set comprised quiz and test subsets derived from the nine most recent ratings collected for each user.
  • 3.2 Results: FWLS was evaluated using 119 models from the Grand Prize Team, whose ensemble later tied the winning test RMSE but finished second because its best submission was made 20 minutes later.The evaluated models came from a team that formed half of The Ensemble coalition.
  • 3.2 Results: The evaluation used two model versions and 10-fold cross-validation to generate out-of-sample probe predictions and reduce optimism from fitting blends on the same data.Ten blends were fit with different 10% probe-set portions held out for out-of-sample prediction.
  • 3.2 Results: Twenty-four meta-features proved helpful according to out-of-sample probe RMSE, with feature design guided by conditions under which particular models might deserve greater emphasis.Examples include log counts of user and movie ratings and date-related activity features.
  • 3.2 Results: 23.88 basis points of accuracy came from the meta-features on the probe set and 19.72 basis points on the test set.Table 2 reports cumulative RMSE changes as meta-features are added; some features were mildly harmful to test RMSE despite probe-set gains.
  • 3.2 Results: Adding the same 24 meta-features as independent regression inputs produced a cross-validated probe RMSE of 0.868641, only 1 basis point better than no meta-features.This comparison supports using meta-features to parameterize blending coefficients rather than merely adding them as predictors.
  • 3.2 Results: The selected meta-feature set was path dependent because features were added sequentially, and potentially superior combinations were generally not explored by removing existing features.Some features that helped in isolation did not improve the blend after the full existing set was included.

4 Discussion

The discussion highlights FWLS’s interpretability, speed, and potential as a tool for discovering meta-features, while identifying extensions and broader applications for future work.

  • The authors plan to evaluate whether imposing nonnegative-weight constraints improves FWLS.The presented results leave the FWLS coefficients unconstrained.
  • Future work includes pruning model/meta-feature pairs to reduce estimated parameters and potentially improve out-of-sample accuracy and fitting speed.
  • Initial neural-network experiments suggest that blending a neural-network blend with an FWLS blend using the same meta-features yields higher accuracy than either blend alone.Detailed results on this topic were deferred to future work.
  • FWLS’s speed with moderately sized model collections allows rapid discovery of useful meta-features for neural networks, trees, and other nonlinear methods.
  • FWLS exposes effective model coefficients under different meta-feature conditions, enabling analysis of when individual models are most successful.
  • FWLS is intended to apply beyond collaborative filtering, with applications in other stacking domains left for future exploration.
Loading 0911.0460v2…