NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Interaction Hard Thresholding: Consistent Sparse Quadratic Regression in Sub-quadratic Time and Space

Shuo Yang, Yanyao Shen, Sujay Sanghavi

Abstract

In high-dimensional statistical learning, capturing feature interactions is essential for predictive accuracy but computationally daunting. Standard quadratic regression requires $O(p^2)$ time and space complexity to manage the interaction space, where $p$ is the number of features. This paper introduces Interaction Hard Thresholding (IntHT), a novel algorithm that breaks this quadratic bottleneck. By integrating sketching techniques and error-correcting codes, IntHT performs sparse recovery in sub-quadratic complexity while maintaining provable linear convergence to the true parameters.

1. Introduction

Quadratic regression models the relationship between a response variable and both individual features ($x_i$) and their pairwise interactions ($x_i x_j$). While powerful, the dimensionality of the interaction space grows quadratically with the number of features. For a dataset with $p = 10^5$ features, the number of potential interactions reaches $10^{10}$, rendering standard sparse recovery algorithms like Lasso or Iterative Hard Thresholding (IHT) computationally infeasible. These methods typically require the computation and storage of a full $p^2$-dimensional gradient vector in every iteration.

2. Methodology: Interaction Hard Thresholding (IntHT)

IntHT is designed to circumvent the $O(p^2)$ requirement by approximating the gradient update. The algorithm follows the general structure of IHT but replaces the exact gradient step with a sub-quadratic subroutine.

2.1 Approximated Top Elements Extraction (ATEE)

The primary innovation is the Approximated Top Elements Extraction (ATEE) subroutine. Instead of explicitly calculating the $p \times p$ gradient matrix, ATEE identifies the most significant interaction terms (the "heavy hitters") using a multi-step process:

  1. Sketching: The algorithm projects the feature space into a significantly smaller dimension using hash functions, inspired by compressed matrix multiplication techniques.
  2. Recovery via Coding: Utilizing error-correcting codes, ATEE efficiently recovers the indices of the interaction terms with the largest gradient magnitudes.
  3. Sub-quadratic Updates: By focusing only on the top $2k$ elements (where $k$ is the target sparsity), the algorithm reduces the space and time complexity per iteration to $\tilde{O}(k(p+k))$.

3. Theoretical Guarantees

The authors provide a rigorous theoretical foundation for IntHT, establishing two critical properties:

  • Linear Convergence: Despite using an approximated gradient, the algorithm is proven to converge to the true parameter vector at a linear rate. This demonstrates that exact gradient information is not a prerequisite for consistent sparse recovery.
  • Computational Efficiency: The complexity $\tilde{O}(k(p+k))$ is nearly optimal for sparse recovery, allowing the algorithm to scale to dimensions where $p^2$ would exceed the memory limits of modern hardware.

4. Experimental Validation

The performance of IntHT was evaluated primarily through synthetic datasets designed to simulate high-dimensional quadratic and higher-order models.

4.1 Convergence and Scalability

Numerical experiments confirmed that IntHT achieves the same convergence speed as "Exact IHT" (which computes the full gradient) while using a fraction of the resources. For instance, in a model with $p=200$, IntHT successfully recovered the support using an output set size as small as 360, compared to the 20,000 terms required by exact methods.

4.2 Higher-Order Interactions

The framework was also tested on 3rd-order interactions ($x_i x_j x_k$). The results indicated that the sub-quadratic logic extends naturally to higher dimensions, maintaining linear convergence in scenarios where traditional methods fail to initialize due to $O(p^3)$ complexity.

5. Discussion and Future Work

IntHT represents a significant step forward in making high-order interaction modeling practical for massive datasets. However, its efficiency is contingent on the underlying model being truly sparse. If the interaction effects are dense, the advantages of the sketching approach diminish. Future research should focus on validating the algorithm's "wall-clock" performance on large-scale real-world datasets, such as Genome-Wide Association Studies (GWAS) or massive-scale recommendation engines, where $p$ is exceptionally large.

Summary updated

BibTeX
@inproceedings{yang2019interaction,
  author = {Shuo Yang and Yanyao Shen and Sujay Sanghavi},
  title = {{Interaction Hard Thresholding: Consistent Sparse Quadratic Regression in Sub-quadratic Time and Space}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
}
Figure