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

Dynamic Tensor Product Regression

Aravind Reddy, Zhao Song, Lichen Zhang

Introduction

In many fields—from image processing and network routing to multivariate data fitting—data is structured as a tensor product (or Kronecker product) of several smaller matrices. For example, given $q$ matrices $A_1, A_2, \dots, A_q$, their tensor product $A = A_1 \otimes A_2 \otimes \dots \otimes A_q$ represents a massive design matrix.

Solving a least-squares regression problem ($\min_x \|Ax - b\|_2$) with such a matrix is computationally expensive. While "static" algorithms exist to solve this efficiently once, they fail in "dynamic" scenarios where the data evolves. In modern machine learning, data isn't static; a single matrix $A_i$ might receive a sparse update. Previously, even a tiny change required recomputing the entire solution from scratch, which is prohibitively slow for large-scale applications.

This paper introduces a novel dynamic data structure for solving regression problems where the design matrix is a massive tensor product, enabling near-instantaneous updates to the regression solution when a single underlying matrix changes.

The Dynamic Tensor Tree

To address the bottleneck of recomputation, the authors propose the DYNAMICTENSORTREE, a binary tree data structure designed to maintain a "sketch" (a compressed version) of the massive tensor product.

Dynamic Tensor Tree Structure
  1. The Tree Structure: As illustrated above, each leaf of the tree represents a sketch of one of the base matrices ($A_i$). Each internal node represents a sketch of the tensor product of its two children, culminating in a root node that sketches the entire tensor product.
  2. Sketching Techniques: To keep the dimensions manageable, the algorithm uses randomized sketching (like CountSketch or OSNAP) at the leaves and specialized "tensor-typed" sketching (like TensorSketch or TensorSRHT) at the internal nodes. This ensures the sketching dimension depends polynomially on the number of matrices ($q$) rather than exponentially.
Sketching Techniques and Complexities
  1. Logarithmic Updates: When a single matrix $A_i$ is updated, the algorithm only needs to update the nodes on the path from that specific leaf to the root. Since the tree is balanced, this path has a length of only $O(\log q)$.
  2. Querying: To solve the regression, the algorithm uses the sketch maintained at the root of the tree. Because the tree acts as an Oblivious Subspace Embedding (OSE), the solution derived from the sketch is a provably good approximation of the true solution.

Key Insights and Versatility

  • Shaving off the $q$: The most significant breakthrough is that the update time can be made independent of the total number of matrices $q$ (linearly) and instead depend on $\log q$. This is a massive win for systems involving hundreds or thousands of small component matrices.
  • Local Propagation: By using a tree, the "global" tensor product is decomposed into local operations. A change in one component doesn't "pollute" the entire structure; it only affects a narrow branch.
  • Versatility: The authors show that this tree isn't just for standard regression. It can be adapted for Tensor Spline Regression (a generalization of ridge regression used for smoothing) and Low-Rank Approximation (LRA) (maintaining a simplified version of the tensor product for faster downstream tasks).
  • Adaptive Robustness: They describe a version of the algorithm that remains accurate even if an "adversary" chooses updates based on the algorithm's previous outputs, which is critical for iterative optimization processes.

Theoretical Guarantees and Results

This is a purely theoretical paper focused on algorithmic complexity and provable guarantees. The authors provide mathematical proofs for the runtime and approximation accuracy of their algorithms:

  • Update Speed: The time to update the solution after a change to a matrix $B$ is $\tilde{O}(\text{nnz}(B) + md)$, where $m$ is the sketching dimension and $d$ is the small dimension of the matrices. This is significantly faster than recomputing from scratch.
  • Initialization: The data structure can be set up in $\tilde{O}(\sum \text{nnz}(A_i) + qmd)$ time.
  • Approximation Guarantee: The algorithm provides a $(1 \pm \epsilon)$ approximation to the optimal least-squares solution with high probability.
  • State-of-the-Art Improvement: For Low-Rank Approximation, the dynamic approach actually improves upon previous static algorithms in terms of parameter dependence, even without considering the benefits of dynamic updates.

Limitations and Future Work

  • Norm Constraints: The current work focuses exclusively on the $\ell_2$ norm (least squares). Extending this to more robust norms, like the $\ell_1$ norm or general $p$-norms, is an important open direction.
  • Optimality: It is currently unclear if the proposed update times are mathematically optimal (the "lower bound"). Future research could investigate whether even faster updates are possible.
  • Practical Implementation: As a theoretical paper, it does not address the constant factors or hardware-specific optimizations (like GPU acceleration) that would be necessary for a production-grade implementation.

Summary updated

BibTeX
@inproceedings{reddy2022dynamic,
  author = {Aravind Reddy and Zhao Song and Lichen Zhang},
  title = {{Dynamic Tensor Product Regression}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=hUjMhflYvGc},
}
Figure