Sparse Partially Linear Additive Models

Yin Lou, Jacob Bien, Rich Caruana, Johannes GehrkearXiv 2014

Sparse Partially Linear Additive Models (SPLAM) provide a unified framework for high-dimensional feature selection that automatically determines whether a variable has a linear effect, a nonlinear effect, or no effect at all. By bridging the gap between the Lasso and Sparse Additive Models (SpAM), SPLAM offers a more interpretable and statistically efficient way to model complex datasets where the functional form of predictors is unknown a priori.

The Linearity Dilemma in High-Dimensional Data

In predictive modeling, researchers often face a "linearity dilemma." Simple models like Generalized Linear Models (GLMs) are easy to interpret and have low variance but can suffer from high bias if the underlying relationships are nonlinear. Conversely, Generalized Additive Models (GAMs) allow for flexible nonlinear relationships but can suffer from high variance and poor interpretability when applied to high-dimensional data.

The specific challenge is that in large-scale datasets, we rarely know which features are relevant, and even for the relevant ones, we don't know which should be treated as linear versus nonlinear. Existing methods usually require the user to manually specify these sets. If you treat a linear feature as nonlinear, you waste "statistical budget" (variance) on unnecessary complexity; if you treat a nonlinear feature as linear, you miss the signal (bias). SPLAM solves this by making the choice of inclusion and the choice of linearity part of a single convex optimization problem.

The SPLAM Framework

The authors propose a hierarchical sparsity approach. They represent each feature $x_j$ using a basis expansion where the first basis function is the linear term ($b_1(x_j) = x_j$) and the remaining functions model the nonlinear "residuals."

The SPLAM framework accommodates various functional forms, from periodic signals to quadratic and exponential decays.

The core innovation is the SPLAM penalty function: $$\Omega^{SPLAM}(\beta) = \sum_{j=1}^p [ \alpha \|\beta_j\|_2 + (1 - \alpha) \|\beta_{j,-1}\|_2 ]$$

  • The Outer Penalty (|\beta_j|_2): This acts like a Group Lasso. It encourages the entire coefficient vector for feature $j$ to be zero, performing feature selection.
  • The Inner Penalty (|\beta_{j,-1}|_2): This specifically targets the nonlinear components. If this term is zero but the linear term is not, the feature is included in the model as a strictly linear effect.
  • The Parameter $\alpha$: This allows the user to balance the "cost" of adding a new feature versus the cost of making an existing feature nonlinear.

Key Insights: The "Wiggliness" Tax

A critical observation in the paper is that standard Sparse Additive Models (SpAM) often produce "wiggly" fits for truly linear data. This happens because SpAM lacks a specific mechanism to prefer a straight line over a curve. SPLAM fixes this by explicitly penalizing deviations from linearity.

Illustration of the "wiggliness tax" in SpAM (red dotted line) when fitting a truly linear function (black line). SPLAM avoids this by penalizing nonlinear residuals.

In the RCV1 text dataset, SPLAM selected over 5,000 features but found that only 4 of them were nonlinear. This suggests that in many high-dimensional problems, most signals are linear, and identifying the few nonlinear exceptions is key to boosting performance without overfitting.

Empirical Results and Scalability

The paper evaluates SPLAM on a mix of synthetic simulations and large-scale real-world datasets like Gisette and RCV1. Key findings include:

  • Superior Performance: In simulations, SPLAM consistently outperformed both Lasso and SpAM in "mixed" regimes where some features were linear and others were nonlinear.
  • Real-World Accuracy: On the Gisette dataset, SPLAM achieved a mean error of 2.18, significantly better than Lasso (2.43) and SpAM (2.62).
  • Scalability: The authors developed a Block Coordinate Descent (BCD) algorithm efficient enough to handle datasets with hundreds of thousands of samples and tens of thousands of features, proving significantly faster than standard proximal gradient methods.

By separating linear and nonlinear effects, SPLAM provides a clearer picture of how each variable influences the outcome compared to "black box" nonlinear models, offering a powerful tool for modern high-dimensional data analysis.

Summary updated

BibTeX
@misc{lou2014sparse,
  author = {Yin Lou and Jacob Bien and Rich Caruana and Johannes Gehrke},
  title = {{Sparse Partially Linear Additive Models}},
  year = {2014},
  eprint = {1407.4729},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1407.4729},
}
Figure