Fundamentals / Numerical mathematics / Inverse problems and least squares / Inferring parameters and fields from observations

Recovering sparse coefficients without hiding amplitude bias

A sensor records a linear mixture of a few active components. Derive the soft-threshold map, use it in an iterative reconstruction and decide when correlated response columns make an apparently sharp sparse answer ambiguous.

Derive a nonsmooth optimum before choosing a solver

Let a whitened linear model be \(y=Ax+\eta\) and consider minimising \(F(x)=\|Ax-y\|^2/2+\lambda\sum_j|x_j|\). The parameter \(\lambda\ge0\) balances fit with sparsity in this chosen coordinate system. Rescaling one column of \(A\) while leaving its penalty unchanged changes how expensive the corresponding physical component is; normalise columns or use documented coefficient-specific weights before comparing support selection across different quantities. Sparsity of a signal in one basis is a modelling assumption, not evidence generated by the penalty itself.

For an orthonormal design \(A^TA=I\), expanding the square shows that minimisation separates into scalar terms \((x_j-z_j)^2/2+\lambda|x_j|\), with \(z=A^Ty\). For a positive solution the derivative is \(x-z+\lambda=0\); for a negative one it is \(x-z-\lambda=0\). At zero the absolute-value subgradient is the interval \([-1,1]\), so zero is optimal when \(|z|\le\lambda\). These cases give

\[S_\lambda(z)=\operatorname{sign}(z)\max(|z|-\lambda,0).\]

Unlike simply removing small coefficients, soft thresholding also shrinks every retained amplitude by \(\lambda\). This predictable bias can matter even if the selected support is physically correct.

For \(z=(2.4,-0.7,0.18)\) and \(\lambda=0.5\), the solution is \((1.9,-0.2,0)\). The residual correlations \(A^T(y-Ax)\) must equal \(\lambda\) times the sign on active coordinates and stay in \([-\lambda,\lambda]\) on inactive coordinates. Here they are \((0.5,-0.5,0.18)\). These conditions independently certify optimality for the convex objective, without proving the true sample actually contains only two active mechanisms.

Majorise the smooth loss and solve its local model exactly

For a general \(A\), write \(f(x)=\|Ax-y\|^2/2\) and \(\nabla f=A^T(Ax-y)\). Taylor expansion is exact with second-order term \(\|A(z-x)\|^2/2\le L\|z-x\|^2/2\), \(L=\|A\|_2^2\). Replace the true quadratic term by this upper bound, keep the penalty exact and minimise over \(z\). Completing the square produces

\[x^{k+1}=S_{\lambda/L}\left(x^k-\frac1L A^T(Ax^k-y)\right)\]

componentwise. This proximal-gradient or ISTA step decreases the objective for this step bound. An under-estimated \(L\) can break the majorisation. A backtracking check evaluates the true smooth loss at the candidate instead of requiring an exact power-method estimate of the largest singular value. Acceleration can reduce the number of iterations, while a numerical termination test based on the subgradient or objective gap remains necessary.

Take \(A=\left(\begin{smallmatrix}1&1\\0&1\end{smallmatrix}\right), y=(1,0)^T,\lambda=0.2\). Its spectral \(L=(3+\sqrt5)/2=2.618\). Starting at zero, \(A^Ty=(1,1)\), so the first iterate is

\[(0.8/L,0.8/L)\simeq(0.3056,0.3056).\]

Both components initially enter equally even though the first column alone fits the pattern exactly. The second measurement penalises a nonzero second coefficient. At the optimum \((0.8,0)\), residual correlations are \((0.2,0.2)\), so the inactive second coefficient sits exactly on its subgradient boundary. A small data perturbation can change its selected status, despite a well-defined convex optimum for this full-rank matrix. Stability of objective value and stability of support are different questions.

Interpret support and debias only after validating it

If two columns of \(A\) are identical, two nonnegative amplitudes with the same sum give the same predictions and the same \(\ell^1\) penalty. A solver may split an identifiable total between the columns or report one arbitrary active component. Lowering the residual tolerance will not resolve this ambiguity. Acquire a measurement where the columns respond differently, merge them if only the total is scientifically meaningful or report a range of admissible allocations. Near-collinear columns give an approximate version of this effect that can be revealed by perturbing the data within their measured noise or holding out a sensor condition.

A common second step is to refit by ordinary or weighted least squares on the selected support to remove shrinkage bias. For the orthonormal example it would restore the retained amplitudes to \(2.4,-0.7\). This is a conditional estimate after choosing that support; it does not undo selection effects and can amplify noise strongly for a nearly singular active submatrix. Test the selected support and refitted prediction on held-out observations. An uncertainty interval that assumes the support known in advance can be too optimistic when small perturbations switch the active set.

Can support and amplitudes both be correct?

The six orthogonal channels have three true nonzero coefficients. Set the perturbation multiplier to one and start with zero threshold. Increase the threshold just far enough to remove the three noise-only channels. Does the weak third signal survive? Now set the perturbation to zero while keeping that threshold fixed. Compare the third estimate with its true value to measure the shrinkage introduced by the penalty itself.

Tutorial · verify an inverse solution using subgradients

Find the penalty where everything switches off

For a general \(A,y\), derive the smallest \(\lambda\) for which \(x=0\) is optimal. Evaluate for the small matrix above.

Work through the solution

At zero, stationarity requires \(A^Ty\in\lambda[-1,1]^p\). Thus \(\lambda_{\max}=\|A^Ty\|_\infty\), which equals 1 in the example. At any larger penalty no component is supported by its residual correlation relative to the threshold. At exact equality an inactive coordinate can lie on the boundary. The criterion concerns the scale of whitened data and normalised design and changes when units or weights change.

Compare soft thresholding with hard component deletion

For a scalar reading 1.2 and \(\lambda=0.5\), compare objectives at the soft estimate, raw reading and zero. Which is lowest and what does it show?

Work through the solution

The soft estimate is 0.7, with objective \(0.5(0.5)^2+0.5(0.7)=0.475\). At 1.2 the residual vanishes but penalty yields 0.600; at zero the loss is 0.720. The shrinkage is a deliberate consequence of the stated objective rather than an error of an iterative algorithm. If amplitude preservation is important, a separate support-conditioned refit answers a different optimisation question.

Prove nonidentifiability with two equal columns

Take \(A=(1,1)\), \(y=3\) and \(\lambda=1\). Characterise an entire family of optimal nonnegative solutions and the unique total that data and penalty identify.

Work through the solution

On nonnegative inputs the objective depends only on \(s=x_1+x_2\) as \((s-3)^2/2+s\). Its minimum is at \(s=2\). The triangle inequality shows no signed decomposition of that same sum can lower its penalty. Every pair \((q,2-q)\) for \(0\le q\le2\) is therefore globally optimal. An algorithm returning \((2,0)\) has not established that the first physical species is present and the second absent. Only their aggregate is determined without a distinguishing observation or another justified prior.

Further reading