Approximating positive homogeneous functions with scale invariant neural networks

Stefan Bamberger, Reinhard Heckel, Felix KrahmerJ. Approx. Theory 2023

Abstract

We investigate to what extent it is possible to solve linear inverse problems with $ReLU$ networks. Due to the scaling invariance arising from the linearity, an optimal reconstruction function $f$ for such a problem is positive homogeneous, i.e., satisfies $f(\lambda x) = \lambda f(x)$ for all non-negative $\lambda$. In a $ReLU$ network, this condition translates to considering networks without bias terms. We first consider recovery of sparse vectors from few linear measurements. We prove that $ReLU$-networks with only one hidden layer cannot even recover $1$-sparse vectors, not even approximately, and regardless of the width of the network. However, with two hidden layers, approximate recovery with arbitrary precision and arbitrary sparsity level $s$ is possible in a stable way. We then extend our results to a wider class of recovery problems including low-rank matrix recovery and phase retrieval. Furthermore, we also consider the approximation of general positive homogeneous functions with neural networks. Extending previous work, we establish new results explaining under which conditions such functions can be approximated with neural networks. Our results also shed some light on the seeming contradiction between previous works showing that neural networks for inverse problems typically have very large Lipschitz constants, but still perform very well also for adversarial noise. Namely, the error bounds in our expressivity results include a combination of a small constant term and a term that is linear in the noise level, indicating that robustness issues may occur only for very small noise levels.

Introduction

In the field of signal processing and medical imaging, many tasks—such as MRI reconstruction or image denoising—are framed as linear inverse problems. The goal is to recover an original signal $x$ from a set of linear measurements $y = Ax$. Because the measurement process is linear, an ideal reconstruction function $f$ should logically be positive homogeneous (or scale-invariant): if the input is scaled by a factor $\lambda$, the output should scale by the same factor ($f(\lambda y) = \lambda f(y)$).

In the context of deep learning, $ReLU$ networks achieve this scale invariance when they are "unbiased"—that is, when all bias terms are removed from the architecture. This paper provides a rigorous mathematical analysis of these unbiased networks, investigating the minimum depth required to solve inverse problems and the theoretical limits of their expressivity.

The "One-Layer Wall"

A primary contribution of this research is the identification of a fundamental "depth gap." The authors prove that a $ReLU$ network with only one hidden layer is mathematically incapable of solving even the simplest sparse recovery problems.

Specifically, for any 1-hidden layer $ReLU$ network, the supremum of the relative reconstruction error for 1-sparse vectors is at least $\sqrt{1 - m/n}$, where $m$ is the number of measurements and $n$ is the signal dimension. In compressed sensing scenarios where $m \ll n$, this error remains near 100%, regardless of how wide the hidden layer is. This result establishes a hard theoretical limit on the utility of shallow architectures for linear inverse tasks.

The Power of Two Layers

While one layer fails, the addition of a second hidden layer fundamentally changes the network's capabilities. The authors demonstrate that two-layer unbiased $ReLU$ networks function as universal approximators for continuous positive homogeneous functions.

For a measurement matrix $A$ satisfying the Restricted Isometry Property (RIP), the paper proves the existence of a 2-hidden layer unbiased $ReLU$ network that achieves stable recovery:

$$\|\tilde{f}(Ax + e) - x\|_2 \leq \delta' \|x\|_2 + C\sigma_s(x)_1 + D\|e\|_2$$

This bound confirms that the network can effectively handle noise ($e$) and "nearly" sparse signals (represented by the best $s$-term approximation error $\sigma_s(x)_1$). Furthermore, the authors establish that for an unbiased network to maintain this universal approximation property, the activation function must be a linear combination of $ReLU(x)$ and $ReLU(-x)$, highlighting why the $ReLU$ family is uniquely suited for these problems.

Beyond Sparse Recovery

The theoretical framework is extended to a broader class of recovery problems, including:

  • Low-Rank Matrix Recovery: Recovering matrices from limited linear observations.
  • Phase Retrieval: Recovering a signal from the magnitude of its linear measurements.

By applying tools from functional analysis—such as Kirszbraun’s Theorem and Michael’s Selection Theorem—the authors prove that $ReLU$ networks are theoretically capable of replacing classical, computationally expensive optimization-based solvers for these complex tasks.

Resolving the Robustness Paradox

A long-standing concern in deep learning for inverse problems is the "instability paradox": many high-performing networks exhibit very large Lipschitz constants, which theoretically suggests they should be highly sensitive to noise or adversarial attacks.

This paper offers a resolution. While the local Lipschitz constant may be large near the origin, the overall error bound remains well-behaved. The results indicate that robustness issues primarily occur at extremely low noise levels. In practical scenarios with standard noise levels, the linear term in the error bound dominates, explaining why these networks remain stable and effective in real-world applications despite their theoretical high Lipschitz constants.

Conclusion

This work settles the question of minimum depth for scale-invariant reconstruction: two layers are both necessary and sufficient for approximate recovery with arbitrary precision. While the paper focuses on the existence of such networks rather than the trainability via algorithms like SGD, it provides the mathematical foundation necessary to understand why deep architectures succeed where shallow ones fail in the domain of inverse problems.

Summary updated

BibTeX
@article{bamberger2023approximating,
  author = {Stefan Bamberger and Reinhard Heckel and Felix Krahmer},
  title = {{Approximating positive homogeneous functions with scale invariant neural networks}},
  journal = {J. Approx. Theory},
  year = {2023},
  url = {https://openreview.net/forum?id=EZA0bv6o3P},
}
Figure