SHRIMP: Sparser Random Feature Models via Iterative Magnitude Pruning

Yuege Xie, Bobby Shi, Hayden Schaeffer, Rachel A. Ward

Abstract

High-dimensional data analysis often faces a trade-off between model complexity and computational feasibility. Many real-world functions exhibit a "low-order" structure, where only a few variables interact at any given time. We introduce SHRIMP (Sparser Random Feature Models via Iterative Magnitude Pruning), a method designed to exploit this structure. By combining $q$-sparse random feature models with Iterative Magnitude Pruning (IMP), SHRIMP efficiently identifies sparse "winning" subnetworks that maintain high accuracy while significantly reducing model size. Our experiments show that SHRIMP outperforms traditional $\ell_1$-based sparse methods in both accuracy and speed, providing a robust framework for feature selection in high-dimensional settings.

Introduction

The "curse of dimensionality" poses a significant challenge for function approximation. While kernel regression is a powerful tool, its scalability is limited by the computational cost of handling large kernel matrices. Furthermore, standard kernel methods typically produce dense models, which lack interpretability and are difficult to compress.

Recent advancements in deep learning, specifically the "Lottery Ticket Hypothesis," suggest that overparameterized networks contain sparse subnetworks that can be trained to achieve similar performance to the full model. SHRIMP applies this intuition to random feature models, targeting functions with low-order interactions to create highly accurate, compressed representations.

Methodology: The SHRIMP Algorithm

SHRIMP utilizes a two-stage process to achieve sparsity without sacrificing performance.

Stage I: Construction with $q$-Sparse Weights

Instead of initializing the model with dense random weights, SHRIMP uses $q$-sparse feature weights. This initialization explicitly targets functions where only $q$ variables interact simultaneously. This architectural choice serves as a strong prior for low-order functions, reducing the initial search space for relevant features.

Stage II: Iterative Magnitude Pruning (IMP)

The core of SHRIMP's efficiency lies in its pruning phase. Inspired by neural network pruning, SHRIMP employs an iterative approach:

  1. Solve: A simple $\ell_2$-norm (least squares) problem is solved on the current set of features.
  2. Prune: A fixed percentage of features with the smallest coefficient magnitudes are removed.
  3. Retrain: The model is re-solved using the remaining features. This cycle repeats until a validation set indicates that the optimal level of sparsity has been reached.
Figure 1: Comparison of different pruning strategies. SHRIMP (f) is derived from a sparse random feature model (e) via Iterative Magnitude Pruning (IMP).

This iterative $\ell_2$ approach is counter-intuitive, as $\ell_2$ optimization usually yields dense solutions. However, SHRIMP demonstrates that magnitude-based pruning effectively navigates the space between $\ell_2$ and $\ell_0$ optimization, often finding better sparse models than traditional $\ell_1$ methods like Lasso or Basis Pursuit.

Key Insights and Theoretical Motivation

Beyond empirical success, the authors provide theoretical grounding for SHRIMP's performance:

  • Improved Conditioning: Pruning features with small magnitudes improves the "conditioning" of the underlying Gram matrix. By removing features that correspond to small eigenvalues, the resulting model becomes more robust to noise and generalizes better to unseen data.
  • Support Recovery: SHRIMP is remarkably effective at identifying the true underlying variables and their interactions. In synthetic tests, it perfectly recovered the "support" of complex functions, distinguishing between different orders of variable dependency.
  • Robustness: The method is relatively insensitive to the specific pruning rate chosen, making it easier to deploy than many neural network pruning techniques that require extensive hyperparameter tuning.

Experimental Results

The researchers evaluated SHRIMP against state-of-the-art sparse methods on both synthetic functions and real-world benchmarks from the UCI repository.

Accuracy and Compression

SHRIMP demonstrated superior accuracy, particularly on non-smooth and high-dimensional functions. For instance, on the Ishigami function, SHRIMP achieved a Mean Squared Error (MSE) of 2.58e-02, vastly outperforming competing methods like SALSA (MSE of 6.99). Moreover, SHRIMP achieved massive compression, reducing models from 20,000 features to fewer than 30 while actually improving test accuracy.

Computational Efficiency

One of SHRIMP's most significant advantages is its speed. While the computational cost of $\ell_1$-based methods grows exponentially with the number of features, SHRIMP's cost scales linearly. This makes it a viable option for extremely high-dimensional datasets where traditional sparse regression would be computationally prohibitive.

Figure 6: Computational time comparison between SHRIMP and L1-based optimization as the number of features increases. SHRIMP shows linear scaling, significantly outperforming L1 methods.

Conclusion and Future Work

SHRIMP offers a powerful and efficient alternative for learning sparse models from high-dimensional data. By bridging the gap between random feature models and the Lottery Ticket Hypothesis, it provides a scalable path for feature selection and model compression.

Future research may focus on adaptively discovering the interaction order $q$ during the pruning process, rather than requiring it as a predefined parameter. Additionally, while the empirical evidence is strong, a complete theoretical convergence proof for the iterative $\ell_2$ pruning process remains an important open challenge for the field.

Summary updated

BibTeX
@inproceedings{xie2022shrimp,
  author = {Yuege Xie and Bobby Shi and Hayden Schaeffer and Rachel A. Ward},
  title = {{SHRIMP: Sparser Random Feature Models via Iterative Magnitude Pruning}},
  booktitle = {MSML},
  year = {2022},
  url = {https://openreview.net/forum?id=Fznjlkwfb5},
}
Figure