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

Sketching for Kronecker Product Regression and P-splines

Huaian Diao, Zhao Song, Wen Sun, David P. Woodruff

Abstract

TensorSketch is an oblivious linear sketch introduced for polynomial kernels and SVMs. This work extends its utility to regression problems involving massive Kronecker product matrices. We present efficient sketching algorithms that solve $L_2$, $L_1$ (robust), and P-spline regression without explicitly computing the full product, achieving significant speedups while maintaining high accuracy. Our approach leverages the structured nature of Kronecker products to perform dimensionality reduction in sublinear time relative to the full product size.

Introduction

In fields such as signal processing, statistics, and multivariate data fitting, researchers frequently encounter the Kronecker product ($A \otimes B$). For matrices $A \in \mathbb{R}^{n_1 \times d_1}$ and $B \in \mathbb{R}^{n_2 \times d_2}$, the product is a massive $n_1n_2 \times d_1d_2$ matrix. Solving regression problems ($Ax \approx b$) with such matrices is computationally prohibitive using standard methods, as complexity grows quadratically with the number of entries.

While "sketching"—compressing a large matrix into a smaller one while preserving essential properties—is well-established for standard matrices, its application to Kronecker products has been limited. Previous methods primarily focused on the $L_2$ norm and struggled with robustness to outliers and complex regularization penalties like those in P-splines (penalized splines).

Methods

The proposed approach builds upon TensorSketch, an oblivious linear sketch that allows for fast computation by operating on constituent matrices separately.

Extension to $L_1$ Regression

The primary technical contribution is extending sketching to the $L_1$ norm (least absolute deviation). Unlike $L_2$, $L_1$ regression is robust to outliers but significantly harder to sketch. The authors utilize multiple TensorSketch matrices to implicitly estimate leverage scores, identifying the most influential rows for sampling. This allows for a $(1+\epsilon)$ accurate solution using only a tiny fraction of the data.

P-Spline Integration and Statistical Dimension

For P-splines, the authors adapt sketching using the Generalized Singular Value Decomposition (GSVD) framework. They introduce a definition of "Statistical Dimension" for P-splines, proving that the required sketch size is proportional to this dimension rather than the full matrix size.

The PTREGRESSION procedure for regularized Kronecker product regression using TensorSketch.

The algorithms run in time sublinear to the size of the full Kronecker product, as the sketch is computed by operating on the smaller matrices independently.

Experimental Results

The algorithms were evaluated on synthetic datasets simulating common regression challenges, including normal distributions and cubic B-splines for P-spline smoothing. The authors provide rigorous proofs that their algorithms produce a solution within $(1+\epsilon)$ of the optimal cost with high probability.

Performance comparison for $L_2$ and $L_1$ regression showing relative error ($r_e$) and relative time ($r_t$) across various sketch sizes ($m$).

Key findings include:

  • $L_2$ Regression: Achieved approximately 1% relative error while being 5 times faster than direct solvers.
  • $L_1$ Regression: Maintained ~1% relative error with a 10x speedup compared to the high-performance Gurobi linear programming solver.
  • P-Splines: By sampling only 20% of the rows, the algorithm achieved a 0.05% relative error and halved the computation time compared to standard GSVD methods.

Conclusion

This work demonstrates that the structured nature of Kronecker products allows for aggressive dimensionality reduction. By leveraging TensorSketch and new leverage score estimation techniques, massive regression problems become tractable. Future research will focus on reducing the $O(n^{3/2})$ complexity of the $L_1$ algorithm and extending these robust methods to higher-order tensors ($q > 2$).

Summary updated

BibTeX
@inproceedings{diao2018sketching,
  author = {Huaian Diao and Zhao Song and Wen Sun and David P. Woodruff},
  title = {{Sketching for Kronecker Product Regression and P-splines}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2018},
  url = {https://openreview.net/forum?id=W9BuXNEnuf},
}
Figure