Verified Neural Compressed Sensing

Rudy Bunel, Krishnamurthy Dvijotham, M. Pawan Kumar, Alessandro De Palma, Robert StanfortharXiv 2024

Abstract

We develop the first provably correct neural networks for a precise computational task, with the proof of correctness generated by an automated verification algorithm without any human input. Prior work on neural network verification has focused on partial specifications that, even when satisfied, are not sufficient to ensure that a neural network never makes errors. We focus on applying neural network verification to computational tasks with a precise notion of correctness, where a verifiably correct neural network provably solves the task at hand with no caveats. In particular, we develop an approach to train and verify the first provably correct neural networks for compressed sensing, i.e., recovering sparse vectors from a number of measurements smaller than the dimension of the vector. We show that for modest problem dimensions (up to 50), we can train neural networks that provably recover a sparse vector from linear and binarized linear measurements. Furthermore, we show that the complexity of the network (number of neurons/layers) can be adapted to the problem difficulty and solve problems where traditional compressed sensing methods are not known to provably work.

Introduction

Neural networks are often viewed as "black boxes," excelling at pattern recognition but lacking guarantees of correctness on all possible inputs. In the field of Neural Network Verification, research typically focuses on "partial specifications," such as proving local robustness to noise. However, for mathematical and scientific tasks, "mostly right" is insufficient. This work addresses Compressed Sensing (CS), the challenge of recovering a high-dimensional sparse signal from a small number of linear measurements. While traditional algorithms like Basis Pursuit have formal proofs of correctness, they are computationally expensive iterative processes. Neural networks offer millisecond-level inference but have historically lacked the guarantees required for reliable deployment. This paper bridges this gap by creating a fast neural solver accompanied by an automated proof of correctness.

Methodology

The proposed approach utilizes a two-stage pipeline consisting of robust training and automated verification.

Architecture and Training

The models are Multi-Layer Perceptrons (MLPs) with ReLU activations designed to predict the support (the indices of non-zero entries) of a signal. Once the support is identified, the signal values are recovered via linear algebra. To ensure the network is verifiable, the authors employ Interval Bound Propagation (IBP) during training. This technique constrains the network's behavior within mathematical bounds, preventing the complex, "jagged" decision boundaries that typically hinder formal verification.

Verification and Joint Learning

A custom verification oracle was developed, utilizing a novel concretization function specifically for the $L_0$ norm. This allows the verification algorithm to efficiently explore the sparsity patterns without the exponential complexity usually associated with branch-and-bound methods. Crucially, the authors found that jointly learning the sensing matrix alongside the decoder significantly eases the verification process. The network essentially learns a compression scheme that is inherently easier to prove correct.

Experimental Results

The study evaluates the approach on synthetic sparse signals with dimensions ($n$) up to 50 and measurements ($m$) from 15 to 40.

Verification Efficiency and Scaling

The results demonstrate that learning the sensing matrix is a key factor in reducing verification time. As shown in Figure 4, "Learned" sensing matrices consistently lead to faster verification across various measurement dimensions compared to "Fixed" matrices.

Verification timing for different measurement dimensions and sensing matrix types.

Furthermore, the choice of branching strategy is critical. The authors found that branching on the input domain (coordinates of the sparse signal) is far more effective than standard neuron-based branching. Figure 5 illustrates how "Coordinate" branching (on) significantly accelerates the verification of properties for higher-dimensional problems ($n=30, 35, 40$).

Scaling verification to higher dimensions using coordinate branching.

Performance and Reliability

The neural decoder achieves 100% verification for problem sizes up to $n=50$. Once verified, the model is exceptionally fast, identifying signal support in approximately 0.27ms on a GPU—orders of magnitude faster than traditional iterative solvers. Notably, the neural solver proved correct in scenarios involving binarized measurements where traditional methods like Basis Pursuit are not known to be provably effective.

Conclusion and Future Work

This work represents a significant milestone in creating "bug-free" AI for precise mathematical tasks. While currently limited to modest dimensions ($n=50$) due to the NP-hard nature of formal verification, it provides a roadmap for verified scientific computing. Future research will focus on scaling these methods to higher dimensions, improving robustness to measurement noise, and applying the "verified by design" philosophy to broader domains such as Partial Differential Equations (PDEs) and algorithmic verification.

Summary updated

BibTeX
@misc{bunel2024verified,
  author = {Rudy Bunel and Krishnamurthy Dvijotham and M. Pawan Kumar and Alessandro De Palma and Robert Stanforth},
  title = {{Verified Neural Compressed Sensing}},
  year = {2024},
  eprint = {2405.04260},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.04260},
}
Figure