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

The Dictionary Testing Problem

Siddharth Barman, Arnab Bhattacharyya, Suprovat Ghoshal

Abstract

Sparsity is a fundamental property of high-dimensional data, exploited across signal processing and machine learning. This work introduces property testing algorithms for sparsity that operate on low-dimensional projections of the input. We address two primary settings. In the known basis setting, given a design matrix $A \in \mathbb{R}^{d \times m}$, we test whether an input vector $y \in \mathbb{R}^d$ equals $Ax$ for some $k$-sparse unit vector $x$. Our algorithm projects the input onto $O(k \epsilon^{-2} \log m)$ dimensions and runs in polynomial time—a significant improvement over previous exponential-time solutions. In the unknown basis setting, we determine if a collection of vectors $Y$ can be decomposed into $AX$ where $X$ is column-wise $k$-sparse. Our approach utilizes a novel robust characterization of Gaussian width in terms of sparsity, allowing for efficient testing even when the dictionary $A$ is unknown.

Introduction

Sparsity—the principle that a signal can be represented by a few "atoms" from a larger dictionary—underpins modern compressed sensing and data compression. Traditionally, research has focused on the recovery problem: given a dictionary $A$ and a signal $y$, find the sparsest $x$ such that $y \approx Ax$. However, finding the exact sparsest representation is often NP-hard.

This paper shifts the focus to the Property Testing framework. Instead of reconstructing the signal, the goal is to distinguish between two cases:

  1. The "Yes" Case: The input $y$ is exactly $k$-sparse over a dictionary.
  2. The "No" Case: The input $y$ is "far" (in Euclidean distance) from any $K$-sparse representation.

By relaxing the requirement from recovery to testing, the authors demonstrate that it is possible to identify structural properties of data using significantly fewer measurements and less computational power than traditional methods require.

Testing over a Known Dictionary

In the known basis setting, we are given a fixed dictionary $A \in \mathbb{R}^{d \times m}$. The challenge is to decide if $y$ lies in the set of $k$-sparse linear combinations of $A$'s columns.

The Complexity Barrier

Previously, algorithms capable of handling arbitrary matrices $A$ required exponential time relative to the dictionary size. The authors break this barrier by leveraging Approximate Carathéodory’s Theorem. This theorem suggests that if a vector lies within the convex hull of a set of points, it can be approximated by a very sparse convex combination of those points.

The Algorithm

By transforming the sparsity test into a convex-hull membership problem, the authors develop a tester that:

  • Projects the input $y$ into a lower-dimensional space $O(k \epsilon^{-2} \log m)$ using a random linear sketch.
  • Accepts if the property holds.
  • Rejects if $y$ is $\epsilon$-far from any $O(k/\epsilon^2)$-sparse vector.
  • Runs in polynomial time in $m$, making it the first efficient algorithm for this problem under general conditions.

Testing over an Unknown Dictionary

A more difficult scenario occurs when the dictionary $A$ is unknown. This is the testing analogue of Dictionary Learning. Given a matrix $Y \in \mathbb{R}^{d \times p}$, we want to know if there exists any dictionary $A$ and a $k$-sparse matrix $X$ such that $Y = AX$.

Gaussian Width and Sparsity

The authors introduce a novel geometric approach using Gaussian width, a measure of the "size" or "complexity" of a set of vectors. They prove a robust new characterization: a set of vectors has small Gaussian width if and only if it is close to being sparse.

By assuming the unknown dictionary $A$ satisfies the Restricted Isometry Property (RIP), the algorithm can estimate the Gaussian width of the input vectors using random projections. If the estimated width is low, the data is likely sparse over some dictionary. This allows the tester to operate in $O(\epsilon^{-2} \log p)$ dimensions, effectively identifying structure without ever explicitly learning the basis.

Key Insights: Sparsity as Geometry

The core contribution of this work is the transition from a combinatorial view of sparsity (counting non-zero entries) to a geometric view:

  • Known Basis: Sparsity is treated as the distance to a specific polytope.
  • Unknown Basis: Sparsity is treated as the intrinsic "width" of the data distribution in space.

This geometric perspective allows the use of Linear Sketching. The algorithms do not need to process the full high-dimensional input $y \in \mathbb{R}^d$. Instead, they observe a sketch $My$, where $M$ is a randomized measurement matrix. This dimensionality reduction is "oblivious," meaning the measurement matrix is chosen independently of the data, yet it preserves enough geometric information to distinguish sparse signals from noise.

Conclusion and Future Directions

This research provides the first polynomial-time property testers for sparsity in both known and unknown bases. While the results for unknown dictionaries currently rely on the Restricted Isometry Property (RIP), they provide a theoretical foundation for more efficient data analysis.

Future work may explore whether these bounds can be improved using "non-oblivious" testers that adapt to the input data, or whether specialized dictionary structures (such as Fourier or Wavelet bases) allow for even more aggressive dimensionality reduction. Ultimately, this work demonstrates that we can often understand the structure of high-dimensional data without the need for full, computationally expensive reconstruction.

Summary updated

BibTeX
@inproceedings{barman2018dictionary,
  author = {Siddharth Barman and Arnab Bhattacharyya and Suprovat Ghoshal},
  title = {{The Dictionary Testing Problem}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
}
Figure