arXiv:2611.05626cs.ITNov 2026

Manuscript Offprint

arXiv:2611.05626

Exact signal recovery from generative priors with sigmoid output activation

Matthew S. Scott, Yaniv Plan, Özgür Yılmaz

ABSTRACT

We show exact signal recovery in generative compressed sensing for feedforward neural networks with piecewise-linear activations and a final sigmoid activation, with no assumption of expansivity. Consider a ReLU network of depth dd with a sigmoid final activation, whose input layer, of dimension kk, is the narrowest, and let KK be the geometric mean of the widths of its layers. We show that, with high probability, all signals of the range whose entries lie in [δ,1−δ][\delta, 1-\delta] are uniformly recovered from m≳k(dlog⁡(K/k)+log⁡(1+log⁡(1/δ)))m \gtrsim k(d \log(K/k) + \log(1+\log(1/\delta))) measurements.

1 Introduction

Compressed sensing recovers a signal x0∈Rnx_0 \in \mathbb{R}^n from m≪nm \ll n linear measurements y=Ax0+ξy = Ax_0 + \xi, with deterministic noise ξ∈Rm\xi \in \mathbb{R}^m, by leveraging a prior assumption on the structure of the true signal. Classical theory uses sparsity. Generative compressed sensing uses a trained generator instead: natural images lie close to the range of a network G:Rk→RnG: \mathbb{R}^k \to \mathbb{R}^n trained on them, and searching that range for the image whose measurements best match yy recovers images from far fewer measurements than sparsity needs [1].

How many measurements suffice is a question about the complexity of the range: the measurement matrix must not collapse the difference between two images of the range, so that they may be differentiated from measurements alone. A random matrix with few rows preserves the norm of any one fixed vector with high probability; the difficulty is to do so for all differences of points in the range at once. The more complex the range, the more directions these differences take, and the more likely a random matrix is to collapse some of them.

The complexity of the range of feedforward neural networks has been quantified in several ways. For networks with rectified linear units (ReLU), the range is a union of NN pieces of dimension at most kk. A union bound over pairs of pieces shows that, once m≥C(k+log⁡N)m \geq C(k+\log N) for an absolute constant CC, AA has the restricted isometry property (RIP) on the differences of points in the range: it preserves their lengths up to a constant factor, and recovery of signals in the range from noiseless measurements is exact [1], [7]. Here and in the rest of the paper, C,C0,c0C, C_0, c_0 denote absolute constants, which may differ from one appearance to the next.

For general LL-Lipschitz networks with inputs in a ball of radius rr, Bora et al. [1] obtain recovery up to an accuracy of η\eta from m≥Cklog⁡(Lr/η)m \geq Ck \log(Lr/\eta) measurements. The generality of the Lipschitz route has a cost: the Lipschitz constant of a trained network is typically very large, and the sample complexity it gives is then often an artifact of the theory rather than a property of the range. For example, for a linear generator G(z)=WzG(z) = Wz with W∈Rn×kW \in \mathbb{R}^{n \times k} of rank kk, the range is a kk-dimensional subspace, so m=Ckm = Ck measurements suffice, while L=∥W∥L = \|W\| is arbitrary. The sample complexity is governed by the geometry of the range, not by the Lipschitz constant. Piece counting captures this geometry for piecewise-linear networks, but decoders commonly end in a sigmoid, and their range has no flat pieces.

*Corresponding author.

Gajjar and Musco [3] use piecewise-linear approximations to obtain embeddings for subspaces under smooth entrywise nonlinearities. Their pairwise-distance theorem covers generators of the form σ(Wz)\sigma(Wz), without bounds on the input or the weight matrix, but includes an additive error term. They also prove purely relative norm embeddings for certain nonlinearities; however, these do not directly provide the secant estimates required for signal recovery. In the many-layer case, they use the Lipschitz constant of the network. We also approximate the sigmoid with a piecewise-linear function, but in relative error, enabling exact recovery in the noiseless setting. Our results do not depend on the Lipschitz constant of the network, and our sample complexity matches that of piecewise-linear networks of the same architecture, up to an additive doubly-logarithmic term.

For ReLU networks whose input layer is the narrowest, we provide a signal recovery result for a final sigmoid activation, uniform over the signals away from saturation.

Theorem 1.1 (Simplified version of Theorem 3.7). Let G:Rk→RnG: \mathbb{R}^k \to \mathbb{R}^n be a feedforward network of depth dd with ReLU intermediate activations, sigmoid final activation and widths k=k0,k1,…,kd−1k = k_0, k_1, \ldots, k_{d-1} in N\mathbb{N}, let δ∈(0,12]\delta \in (0, \frac{1}{2}] be a saturation level, and let A∈Rm×nA \in \mathbb{R}^{m \times n} be a matrix with independent N(0,1/m)N(0, 1/m) entries. With kd:=nk_d := n, suppose that the input layer is the narrowest, k≤kik \leq k_i for 1≤i≤d1 \leq i \leq d, and let K:=(∏i=1dki)1/dK := \left(\prod_{i=1}^d k_i\right)^{1/d} be the geometric mean of the widths of the layers of the network. We require that K≥ekK \geq e k. There are absolute constants C,c0>0C, c_0 > 0 such that if

m≥Ck(dlog⁡Kk+log⁡(1+log⁡1δ)),m \geq C k \left( d \log \frac{K}{k} + \log \left( 1 + \log \frac{1}{\delta} \right) \right),

then with probability at least 1−3e−c0m1 - 3e^{-c_0 m}, for every signal x0∈range(G)x_0 \in \mathrm{range}(G) whose entries lie in [δ,1−δ][\delta, 1 - \delta], noise ξ∈Rm\xi \in \mathbb{R}^m and tolerance ε≥0\varepsilon \geq 0, with measurements y:=Ax0+ξ∈Rmy := Ax_0 + \xi \in \mathbb{R}^m, every x^∈range(G)\hat{x} \in \mathrm{range}(G) such that ∥Ax^−y∥22≤inf⁡x∈range(G)∥Ax−y∥22+ε\|A\hat{x} - y\|_2^2 \leq \inf_{x \in \mathrm{range}(G)} \|Ax - y\|_2^2 + \varepsilon satisfies

∥x^−x0∥2≤4∥ξ∥2+2ε.\|\hat{x} - x_0\|_2 \leq 4\|\xi\|_2 + 2\sqrt{\varepsilon}.

This result follows directly from Theorem 3.7; we provide the details in the appendix.

Our method is to first prove a sharper bound on the number of linear pieces in the range of a piecewise-linear feedforward network, improving on [7, Lemma 3.1]: we truncate the network at its narrowest layer, and the bound holds for any piecewise-linear activation with a finite hyperplane cover, with biases (Section 2). Counting the linear pieces of a network is also a classical question in the study of expressivity [6], [8], [4]. Compared with these counts, we obtain a tighter bound by recognizing that all pieces originating from layers preceding the bottleneck layer get merged together at the bottleneck layer, and therefore do not contribute to the complexity of the range. This improvement is only meaningful when considering the number of pieces in the range; if one cares about the number of pieces of GG as a piecewise-linear function, then earlier layers cannot be ignored.

We then approximate the network in a metric suited to signal recovery. Consider σ∘H\sigma \circ H, a smooth output activation σ\sigma after a piecewise-linear network HH, and σˉ∘H\bar{\sigma} \circ H for a piecewise-linear approximation σˉ\bar{\sigma} of σ\sigma. The network σˉ∘H\bar{\sigma} \circ H is piecewise linear, and by counting its pieces we can guarantee the RIP on the difference vectors of its range with high probability. The RIP depends only on the directions of the difference vectors, not their lengths, so the RIP of σˉ∘H\bar{\sigma} \circ H passes to σ∘H\sigma \circ H when each difference vector of σ∘H\sigma \circ H is close in angle to some difference vector of σˉ∘H\bar{\sigma} \circ H. A sufficient condition is that, for some small cc and all z,z′∈Rkz, z' \in \mathbb{R}^k,

∥(σ(H(z′))−σ(H(z)))−(σˉ(H(z′))−σˉ(H(z)))∥2≤c∥σ(H(z′))−σ(H(z))∥2.\|(\sigma(H(z')) - \sigma(H(z))) - (\bar{\sigma}(H(z')) - \bar{\sigma}(H(z)))\|_2 \leq c \|\sigma(H(z')) - \sigma(H(z))\|_2.

Requiring the approximation σˉ\bar{\sigma} to be uniformly close to σ\sigma would be the wrong metric: it leaves an additive error and fails to guarantee exact recovery. Instead, we choose σˉ\bar{\sigma} to approximate σ\sigma relatively: for all real s,ts, t,

∣(σ(t)−σ(s))−(σˉ(t)−σˉ(s))∣≤c∣σ(t)−σ(s)∣,|(\sigma(t) - \sigma(s)) - (\bar{\sigma}(t) - \bar{\sigma}(s))| \leq c |\sigma(t) - \sigma(s)|,

which gives the bound above coordinate by coordinate, since the two networks share HH. This works for any smooth output activation that admits such an approximation; we construct one for the sigmoid, a common choice in practice; other smooth output activations can be treated similarly. The main difficulty is that, for the sigmoid, such a piecewise-linear approximation σˉ\bar{\sigma} must have infinitely many pieces. We get around this by restricting the uniform guarantee to the signals away from saturation, whose entries lie in [δ,1−δ][\delta, 1 - \delta] for a saturation level δ\delta fixed in advance. Their pre-activations lie in a bounded window, and we only need the bound above for ss in that window, which one approximation with finitely many pieces achieves for all tt (Section 3). The sample complexity then depends, through a double logarithm, on how far into saturation the sigmoid may go to generate the true signal: the saturation level adds only a term klog⁡(1+log⁡(1/δ))k \log(1 + \log(1/\delta)), about 4k4k for δ=10−30\delta = 10^{-30}.