Finding Alternate Features in Lasso

Satoshi Hara, Takanori MaeharaarXiv 2016 · DOI

Abstract

We propose a method for finding alternate features missing in the Lasso optimal solution. In ordinary Lasso problem, one global optimum is obtained and the resulting features are interpreted as task-relevant features. However, this can overlook possibly relevant features not selected by the Lasso. With the proposed method, we can provide not only the Lasso optimal solution but also possible alternate features to the Lasso solution. We show that such alternate features can be computed efficiently by avoiding redundant computations. We also demonstrate how the proposed method works in the 20 newsgroup data, which shows that reasonable features are found as alternate features.

Introduction

The Lasso (Least Absolute Shrinkage and Selection Operator) is a cornerstone of interpretable machine learning because it produces sparse models—it selects a small subset of features and ignores the rest. However, Lasso has a known "failure mode": when two features are highly correlated, it tends to pick only one and discard the other.

This "winner-takes-all" behavior is a major hurdle for human-in-the-loop AI. If a domain expert knows that a specific predictor is critical, but the Lasso selects a correlated proxy instead, the expert may lose trust in the model. We argue that feature selection should not just provide a single "optimal" set, but should also reveal the "runners-up"—alternate features that could have performed nearly as well.

Methodology

Our method identifies whether a non-selected feature $x_j$ can effectively replace a selected feature $x_i$ from the Lasso solution.

The Swap Test

For every feature $x_i$ in the Lasso solution, we attempt to "force" it to zero and determine if another feature $x_j$ (previously excluded) can take its place.

Computational Efficiency

A naive search would require solving thousands of optimization problems. We introduce a pruning rule based on the optimality conditions of the Lasso. We demonstrate that the optimization for $x_j$ only needs to be solved if its correlation with the current residual exceeds the regularization threshold $ ho$. In our experiments, this reduced the computational workload by a factor of 10,000x, making the search for alternates practically instantaneous.

Scoring

Not all alternates are created equal. We rank alternate features by the "cost" of the swap—specifically, how much the total objective function (loss + penalty) increases when the original feature is replaced. A small increase suggests a very strong alternative.

Experimental Evaluation

We evaluated our method using the 20 Newsgroups dataset, focusing on binary classification tasks such as sci.med vs. sci.space. In these high-dimensional text datasets, the number of features (words) often exceeds 20,000.

Figure 4: Bipartite graph showing Lasso-selected words (left) and their identified alternates (right) for the science newsgroups task.

As shown in Figure 4, our method reveals complex relationships between selected features and their alternatives. For example, in the hardware classification task, the word "drive" was identified as a strong alternate for terms like "windows," "bus," and "bios."

Discussion: Debugging Spurious Correlations

A striking insight from this approach is its ability to debug models. In the sci.med vs. sci.space task, the Lasso selected the word "gordon." By examining the alternates for "gordon," we found words like "banks," "pitt," and "n3jxp."

Figure 5: Scoring of alternate features for "space" and "gordon". The low objective function increase for "gordon" alternates confirms they are near-perfect substitutes, revealing the "signature trap."

These terms are all parts of the email signature of a prolific poster named Gordon Banks. This revealed that the model wasn't learning medical concepts; it was learning to identify a specific person's signature—a classic case of overfitting to a dataset-specific quirk that would not generalize. By identifying these alternates, users can manually swap a "distrustful" feature for a more meaningful one to create a robust model.

Conclusion

By showing alternate features, the Lasso becomes a discovery tool rather than just a selection mechanism. Our proposed pruning method ensures this discovery is computationally efficient. Future work will address the scalability of visualization and the potential for multi-feature swaps.

Summary updated

BibTeX
@misc{hara2016finding,
  author = {Satoshi Hara and Takanori Maehara},
  title = {{Finding Alternate Features in Lasso}},
  year = {2016},
  eprint = {1611.05940},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1611.05940},
}
Figure