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

Query Efficient Structured Matrix Learning

Noah Amsel, Pratyush Avi, Tyler Chen, Feyza Duman Keles, Chinmay Hegde, Cameron Musco, Christopher Musco, David Persson · DOI

Abstract

In many large-scale scientific computing and machine learning applications, matrices are often too massive to store or observe directly. Instead, they are accessed as implicit operators through matrix-vector products (matvecs). This paper addresses the fundamental problem of Structured Matrix Learning: identifying an unknown matrix $A$ within a hypothesis class $\mathcal{F}$ using the minimum number of queries. By leveraging a two-sided query model ($Ax$ and $A^Tx$), the authors introduce a novel algorithm that achieves a nearly quadratic improvement in query complexity. Specifically, they reduce the requirement from the traditional $O(\log |\mathcal{F}|)$ to $\tilde{O}(\sqrt{\log |\mathcal{F}|})$ and prove that this bound is information-theoretically near-optimal. This work establishes a new theoretical benchmark for "matrix-free" algorithms across various matrix structures, including sparse, low-rank, and butterfly matrices.

Introduction

The "matrix-free" setting is a cornerstone of modern numerical linear algebra. When dealing with operators that are defined procedurally—such as the Hessian of a neural network or a complex physical simulator—we cannot inspect individual entries. We can only interact with the matrix $A$ by providing a vector $x$ and receiving the product $Ax$.

A central challenge in this domain is learning the structure of $A$ efficiently. If we know $A$ belongs to a certain family $\mathcal{F}$ (e.g., it is a Toeplitz matrix or has a specific sparsity pattern), how many queries are necessary to approximate it? While previous research provided solutions for specific cases, a unified theory for general hypothesis classes was lacking. Standard sketching techniques typically scale with the entropy of the class, $O(\log |\mathcal{F}|)$. This paper asks whether we can exploit the high-dimensional nature of the matvec output—which provides $n$ values per query—to break this barrier.

Methodology: Two-Sided Iterative Candidate Refinement

The authors operate in the two-sided matvec model, where the algorithm can query both $x \to Ax$ and $x \to A^Tx$. Their primary contribution is the Two-Sided Iterative Candidate Refinement algorithm, which utilizes a "simulation" strategy to minimize actual queries to the unknown matrix.

Simulation via Left-Sketching

Traditional pruning of a hypothesis class involves picking a random "right" sketch matrix $\Pi$ and eliminating any candidate $B \in \mathcal{F}$ that does not satisfy $B\Pi \approx A\Pi$. However, each new $\Pi$ usually requires a new query to $A$. The authors circumvent this using a two-step process:

  1. Precomputation: The algorithm performs a small number of queries to the transpose $A^T$ to obtain a "left sketch" $W = \Psi^T A$.
  2. The Dichotomy Strategy: For any potential right sketch $\Pi$, the algorithm determines if the sketch is "highly productive" (i.e., it would significantly narrow down the search space).
  3. Free Filtering: If a sketch is not highly productive, the authors prove it is possible to identify a "representative" matrix $R$ from the current candidates that is close to $A$ on that specific sketch. Crucially, this representative can be identified using the precomputed left sketch $W$ without making any new queries to $A$.

By balancing these two scenarios, the algorithm effectively "simulates" the results of many queries, leading to the $\sqrt{\log |\mathcal{F}|}$ scaling.

Key Theoretical Results

1. General Query Complexity

For any finite family $\mathcal{F}$, the algorithm finds a near-optimal approximation in $\tilde{O}(\sqrt{\log |\mathcal{F}|})$ queries. This is a quadratic improvement over the previous $O(\log |\mathcal{F}|)$ benchmark. The authors also provide a lower bound of $\Omega(\sqrt{\log |\mathcal{F}|})$, proving their approach is optimal up to log-log factors.

2. Linear Subspaces

For matrices belonging to a subspace of dimension $q$ (such as banded or Toeplitz matrices), the query complexity is $\tilde{O}(\sqrt{q})$. This is a significant leap over standard compressed sensing or one-sided sketching methods, which generally require $O(q)$ queries.

3. The Necessity of Two Sides

A critical insight of the paper is that this quadratic improvement is impossible with one-sided queries. The authors prove that if one can only query $Ax$, the complexity remains stuck at $O(\log |\mathcal{F}|)$. The ability to query the adjoint $A^T$ is what unlocks the higher information density.

4. Butterfly Matrices

The paper establishes a lower bound of $\Omega(\sqrt{n})$ queries for learning butterfly matrices (a class of structured matrices used in fast transforms). This result confirms that recent specialized algorithms for butterfly structures are already reaching the theoretical limit of efficiency.

Discussion and Limitations

While the paper marks a significant theoretical advancement, several areas remain for future exploration:

  • Approximation Quality: The current algorithm guarantees a $(3+\epsilon)$ approximation factor. While sufficient for many applications, achieving a $(1+\epsilon)$ relative error bound with the same query complexity may require more sophisticated iterative methods.
  • Computational Complexity: The focus of this work is on query efficiency (the number of matvecs). However, the internal computational time of the algorithm scales with the size of the hypothesis class $|\mathcal{F}|$. For massive or infinite classes, finding the "representative" matrix efficiently is a non-trivial computational task.
  • Adaptivity: The proposed algorithm is adaptive, meaning each query depends on the results of previous ones. Whether a non-adaptive algorithm can achieve the same $\sqrt{\log |\mathcal{F}|}$ scaling remains an open question in the field.

Conclusion

This work provides a definitive answer to the query complexity of structured matrix learning in the two-sided model. By demonstrating that $\tilde{O}(\sqrt{\log |\mathcal{F}|})$ queries are both necessary and sufficient, the authors provide a powerful framework for developing the next generation of matrix-free algorithms, potentially transforming how we interact with high-dimensional operators in scientific computing.

Summary updated

BibTeX
@inproceedings{amsel2026query,
  author = {Noah Amsel and Pratyush Avi and Tyler Chen and Feyza Duman Keles and Chinmay Hegde and Cameron Musco and Christopher Musco and David Persson},
  title = {{Query Efficient Structured Matrix Learning}},
  booktitle = {Conference on Learning Theory},
  year = {2026},
}
Figure