Manuscript Offprint
arXiv:2610.41302Scaled-Gradient Hard Thresholding Algorithms for Sparse Signal Recovery
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Nan Meng, Yun-Bin Zhao
Abstract—Thresholding methods provide a simple iterative framework for sparse signal recovery by combining a search direction with a thresholding operation. Gradient-based search directions are computationally efficient because they require only first-order information for the error metric. We incorporate componentwise gradient scaling into this framework by preserving large-magnitude components and attenuating the remaining components of the gradient of error metric. Combining this strategy with hard thresholding yields scaled-gradient hard thresholding (SGHT) and its pursuit variant SGHTP. Under suitable restricted isometry conditions, we establish recovery error bounds for both methods that account for measurement noise and deviations from exact sparsity. Numerical experiments indicate that SGHTP achieves recovery performance comparable to established pursuit methods on the tested ECG signals.
Index Terms—Compressed sensing, gradient-based methods, hard thresholding, sparse signal recovery, thresholding methods.
I. INTRODUCTION
Sparse signal recovery is a fundamental task in compressed sensing. It has wide applications in image reconstruction [1], [2], channel estimation [3], and inverse problems [4]. A typical formulation for sparse signal recovery is
where is the measurement matrix, is the observed vector, counts the nonzero entries in , and is the sparsity level. The objective function in (1) is often called the error metric for singal recovery. A few class of numerical methods have been developed for this problem, such as convex relaxations [5]–[8], greedy pursuits [9]–[15], and thresholding methods [16]–[21]. Thresholding methods are particularly attractive for sparse signal recovery, because they admit exceptionally low per-iteration complexity.
In this paper, we focus on the class of hard thresholding approaches. The typical hard-thresholding iteration consists of two operations: computing a certain search direction and performing hard thresholding. The first hard thresholding method might be the iterative hard thresholding (IHT) [17] which adopts the steepest descent direction as the search direction. To
enhance the performance of IHT, the so-called hard thresholding pursuit (HTP) [18] was proposed by merging a pursuit step into IHT. Several other algorithms have also been developed in the literature, including the ones using adaptive step-sizes and acceleration [19], [22], optimal thresholding [21], [23], and those search directions distinct from the steepest descent direction [24], [25].
So far, almost all search directions in thresholding methods can be viewed as a certain scaling of the gradient of the error metric, that is
where , and is a scaling matrix. For instance, choosing as a regularized inverse Hessian yields a Newton-type search direction [24]. If is an identity matrix, (2) becomes the classic steepest descent direction which has been used in most existing iterative methods for signal recovery. In this case, the scaling matrix assigns the same weight to every entry of gradient. However, theoretical and numerical results indicate that the large-magnitude components of gradient are more likely to influence the support identification of sparse signals. The existing partial gradient methods [25] adopt this idea by simply using a scaling diagonal matrix with a small number of diagonal entries being 1 and the remaining zeros. These methods usually keep only a few large-magnitude components of gradient as a search direction and completely discard the remaining smaller ones in magnitude.
However, the size of components of gradients may have unremarkable differences and might be very close to each other. In these cases, completely abandoning large number of gradient components to construct a search direction may cause a big loss of useful gradient information, thereby slowing the convergence of the underlying algorithms. Thus it makes sense to propose a more reasonable scaling diagonal matrix that assigns relatively large weights to large-magnitude components of gradient and relatively small weights to small-magnitude components, but not completely discard the small-magnitude ones as in existing partial gradient methods. This study is devoted to such a scaling strategy and the development of an iterative algorithm based on it.
The main contributions of this work are summarized as follows. i) We introduce the scaled-gradient direction, and develop scaled-gradient hard thresholding (SGHT) together with its pursuit variant called SGHTP. ii) We establish RIP-based convergence guarantees for both algorithms. iii) We demonstrate some numerical results about the effects of the scaling parameters on support identification and signal recov-
This work was supported by the Natural Science Foundation of China under the grants 12301400, 12471295 and 12426306, and Hetao Shenzhen-Hong Kong Science and Technology Innovation Cooperation Zone Project (HZQSWS-KCCYB-2024016).
Nan Meng is with the School of Mathematical Sciences, University of Nottingham Ningbo China, Ningbo 315100, China (e-mail: Nan.Meng@nottingham.edu.cn).
Yun-Bin Zhao (Corresponding author) is with the Shenzhen International Center for Industrial and Applied Mathematics, SRIBD, The Chinese University of Hong Kong, Shenzhen, China (e-mail: Yunbinzhao@cuhk.edu.cn).
ery, and we compare the proposed methods with representative methods for sparse signal reconstruction.
where is the step size and retains the k largest-magnitude entries of its argument, setting the others to zero.
A. Search direction
Given an integer , let be the index set of the largest-magnitude entries of . We define
where with
The scaling weight preserves the q largest-magnitude components of and attenuates its remaining components by . Since is positive semidefinite, we have
Hence, is a strictly descent direction of at whenever .
B. SGHT and SGHTP Algorithms
We use notation and . Combining the search direction in (3) with hard thresholding yields SGHT and its pursuit variant SGHTP, summarized in Algorithm 1. When , SGHT and SGHTP reduce to IHT [17] and HTP [18], respectively. These reductions also hold when . When , the search direction becomes , as used in partial gradient optimal thresholding methods [25].
With zero initialization, the same positive step size, and consistent rules for tie-breaking and exact least-squares selection, SGHTP coincides with HTP whenever . We thus focus on , which is necessary for the scaling to alter the pursuit iteration.
III. THEORETICAL ANALYSIS
We first recall the definition of the restricted isometry constant and then state two auxiliary results used in the subsequent analysis.
Definition 1. [26] For , the restricted isometry constant (RIC) of order , denoted by , is the smallest such that holds for every -sparse vector . The matrix satisfies the restricted isometry property (RIP) of order if .
Algorithm 1 SGHT (b = 0) and SGHTP (b = 1)
Require: ,
1:
2: for do
3:
4:
5:
6: if then
7:
8:
9: end if
10: end for
11: return
For , let denote the vector obtained from by setting its entries outside to zero.
Lemma 2. [27] Let satisfy the RIP of order with . For any vector , , and any index set ,
Lemma 3. [28] Let , and let be k-sparse (i.e., ). Then , where , , and .
A. Recovery Guarantees for SGHT
Let be the index set for the largest-magnitude entries of , and hence is its best -term approximation. For measurements with noise , write where and .
Theorem 4. Let satisfy
where . Choose such that
Then, for every , we have
where
and
which is smaller than 1.
Proof. Applying Lemma 3 with and gives
where . From (4) and , we have
Since is diagonal with entries in ,
Therefore, we have
Moreover, since the diagonal entries of lie in [0,1],
for any and . It is easy to see that
as , , and are all k-sparse. Hence, by (9) and Lemma 2 (i), we have
(10)
As , by (9) and Lemma 2 (ii), we obtain
Combining (8), (10), and (11) gives
Consequently, we have
where is given by (6). For and , it is easy to verify that
Thus, the coefficient of equals in (7).
It remains to verify that . Condition (4) implies and
so the step-size interval in (5) is nonempty. For , the lower bound in (5) gives . For , the upper bound in (5) gives . Hence, every step size satisfying (5) ensures . (It is worth noting that for and , condition (4) reduces to , recovering the IHT guarantee in [28].)
B. Theoretical results for SGHTP
The following lemma bounds the error introduced by the pursuit step in SGHTP.
Lemma 5. [21] Let satisfy the RIP of order 2k, and let , where is k-sparse. Then the iterate generated by the pursuit step in Algorithm 1 when b = 1 satisfies
Theorem 6. Let satisfy
Choose such that
Then, for every , the iterates generated by SGHTP satisfy
where
and
which is smaller than 1.
Proof. Each SGHTP iteration applies exact least-squares refinement after the hard-thresholding update. From the analysis of SGHT, we have
Combining this bound with Lemma 5 gives
where is given by (14). It remains to show that the coefficient of in (15) is smaller than 1. Since , we have . Therefore, it is sufficient to require . We consider the two cases in the definition of . For , we have , giving . It implies
When , we have , giving which implies
Both intervals, (16) and (17), are nonempty under the stated RIP condition in (12). Their union gives the step-size range in (13), as stated in the theorem. Therefore, every in this interval satisfies , which completes the proof.
IV. NUMERICAL EXPERIMENTS
In the synthetic experiments, has i.i.d. entries. Each sparse signal has a uniformly random support and independent standard Gaussian nonzero entries.
A. Effects of and on recovery performance
We examine how and affect SGHT recovery with noisy measurements. We set , , and , and vary over 20 equally spaced values from to . Gaussian noise is scaled to a measurement SNR of 30 dB. For each sparsity level, all parameter combinations are evaluated on the same 100 independent instances, with and . A trial is successful and terminates when dB, or terminates after 30 iterations otherwise.
For each parameter setting, we fit the recovery success probabilities using , where are fitted coefficients and . The fitted 50% recovery transition is , with larger values indicating recovery at higher sparsity ratios within the iteration budget.

Fig. 1. Fitted 50% recovery transition vs. for different choices of .
Fig. 1 shows that the effect of on recovery performance depends on . For smaller , the largest is attained at intermediate values of . As increased, the best-performing values of shift towards smaller values, and the sensitivity to decreases. Differences across also diminish as increases. These results also indicate that and should be selected jointly.
B. ECG Signal Recovery
We compare SGHTP with HTP [18], subspace pursuit (SP) [11], CoSaMP [12], and EDOMP [15] on the MIT-BIH ECG Compression Test Database, available through PhysioNet [29], [30]. We use the complete first channel of each of the 168 records, with . Each signal is mean-centered and normalized to unit norm to obtain . A five-level sym4 wavelet decomposition with periodized boundary extension yields .
Measurements are , where has i.i.d. entries and . For each record, all methods use the same sensing matrix and measurements, with . We set for HTP and SGHTP, with

(a) ECG PRD recovery frequency.

(b) ECG average runtime under PRD thresholds.
Fig. 2. Recovery performance of different algorithms on the MIT-BIH ECG Compression Test Database.
and for SGHTP. The gradient-selection parameter of EDOMP is 0.7. Each method terminates when the relative change between successive iterates is smaller than or after 50 iterations, whichever occurs first. The inverse wavelet transform of yields . Reconstruction quality is measured by the percentage root-mean-square difference, . The best -term wavelet approximation provides the oracle PRD. For each method, we report the fraction of records meeting each PRD threshold and the average runtime over those records.
Fig. 2(a) shows that SGHTP achieves recovery frequencies comparable to those of HTP across the tested PRD range and generally higher than those of CoSaMP, SP and EDOMP attain higher recovery frequencies at intermediate thresholds, although their advantage over SGHTP narrows as the threshold increases. Fig. 2(b) shows that SGHTP has the lowest average runtime over records satisfying each displayed PRD threshold. These results indicate that SGHTP achieves competitive reconstruction quality relative to the comparison methods on the tested ECG records, with low observed runtimes under the stated experimental settings.
V. SUMMARY
We incorporated a component-wise gradient-scaling strategy into hard-thresholding methods for sparse optimization, yielding SGHT and SGHTP. Under suitable RIP conditions, we established recovery error bounds for both methods in the presence of measurement noise. Synthetic experiments highlight the importance of joint parameter selection, while experiments on the tested ECG records show recovery performance comparable to established methods.
REFERENCES
5
[1] M. Lustig, D. Donoho, and J. M. Pauly, "Sparse MRI: The application of compressed sensing for rapid MR imaging," Magn. Reson. Med., vol. 58, no. 6, pp. 1182–1195, Dec. 2007.
[2] B. Chen and J. Zhang, “Practical compact deep compressed sensing,” IEEE Trans. Pattern Anal. Mach. Intell., vol. 47, no. 3, pp. 1610–1626, Mar. 2025.
[3] W. U. Bajwa, J. Haupt, A. M. Sayeed, and R. Nowak, “Compressed channel sensing: A new approach to estimating sparse multipath channels,” Proc. IEEE, vol. 98, no. 6, pp. 1058–1076, 2010.
[4] I. Daubechies, M. Defrise, and C. De Mol, “An iterative thresholding algorithm for linear inverse problems with a sparsity constraint,” Commun. Pure Appl. Math., vol. 57, no. 11, pp. 1413–1457, 2004.
[5] R. Tibshirani, “Regression shrinkage and selection via the lasso,” J. R. Stat. Soc. Ser. B Stat. Methodol., vol. 58, no. 1, pp. 267–288, 1996.
[6] S. S. Chen, D. L. Donoho, and M. A. Saunders, “Atomic decomposition by basis pursuit,” SIAM Rev., vol. 43, no. 1, pp. 129–159, 2001.
[7] D. L. Donoho and X. Huo, “Uncertainty principles and ideal atomic decomposition,” IEEE Trans. Inf. Theory, vol. 47, no. 7, pp. 2845–2862, 2001.
[8] D. L. Donoho and M. Elad, “On the stability of the basis pursuit in the presence of noise,” Signal Process., vol. 86, no. 3, pp. 511–532, 2006.
[9] J. A. Tropp, “Greed is good: Algorithmic results for sparse approximation,” IEEE Trans. Inf. Theory, vol. 50, no. 10, pp. 2231–2242, 2004.
[10] J. A. Tropp and A. C. Gilbert, “Signal recovery from random measurements via orthogonal matching pursuit,” IEEE Trans. Inf. Theory, vol. 53, no. 12, pp. 4655–4666, Dec. 2007.
[11] W. Dai and O. Milenkovic, “Subspace pursuit for compressive sensing signal reconstruction,” IEEE Trans. Inf. Theory, vol. 55, no. 5, pp. 2230–2249, 2009.
[12] D. Needell and J. A. Tropp, “CoSaMP: Iterative signal recovery from incomplete and inaccurate samples,” Appl. Comput. Harmon. Anal., vol. 26, no. 3, pp. 301–321, 2009.
[13] D. L. Donoho, Y. Tsaig, I. Drori, and J.-L. Starck, “Sparse solution of underdetermined systems of linear equations by stagewise orthogonal matching pursuit,” IEEE Trans. Inf. Theory, vol. 58, no. 2, pp. 1094–1121, 2012.
[14] J. Wang, S. Kwon, P. Li, and B. Shim, “Recovery of sparse signals via generalized orthogonal matching pursuit: A new analysis,” IEEE Trans. Signal Process., vol. 64, no. 4, pp. 1076–1089, 2016.
[15] Y.-B. Zhao and Z.-Q. Luo, “Dynamic orthogonal matching pursuit for sparse data reconstruction,” IEEE Open J. Signal Process., vol. 4, pp. 242–256, 2023.
[16] T. Blumensath and M. E. Davies, “Iterative thresholding for sparse approximations,” J. Fourier Anal. Appl., vol. 14, pp. 629–654, 2008.
[17] T. Blumensath and M. E. Davies, “Iterative hard thresholding for compressed sensing,” Appl. Comput. Harmon. Anal., vol. 27, no. 3, pp. 265–274, 2009.
[18] S. Foucart, “Hard thresholding pursuit: An algorithm for compressive sensing,” SIAM J. Numer. Anal., vol. 49, no. 6, pp. 2543–2563, 2011.
[19] T. Blumensath and M. E. Davies, “Normalized iterative hard thresholding: Guaranteed stability and performance,” IEEE J. Sel. Topics Signal Process., vol. 4, no. 2, pp. 298–309, Apr. 2010.
[20] J. Tanner and K. Wei, “Normalized iterative hard thresholding for matrix completion,” SIAM J. Sci. Comput., vol. 35, no. 5, pp. S104–S125, 2013.
[21] Y.-B. Zhao, “Optimal k-thresholding algorithms for sparse optimization problems,” SIAM J. Optim., vol. 30, no. 1, pp. 31–55, 2020.
[22] T. Blumensath, “Accelerated iterative hard thresholding,” Signal Process., vol. 92, no. 3, pp. 752–756, Mar. 2012.
[23] Y.-B. Zhao and Z.-Q. Luo, “Natural thresholding algorithms for signal recovery with sparsity,” IEEE Open J. Signal Process., vol. 3, pp. 417–431, 2022.
[24] N. Meng and Y.-B. Zhao, “Newton-step-based hard thresholding algorithms for sparse signal recovery,” IEEE Trans. Signal Process., vol. 68, pp. 6594–6606, 2020.
[25] N. Meng, Y.-B. Zhao, M. Kočvara, and Z. Sun, “Partial gradient optimal thresholding algorithms for a class of sparse optimization problems,” J. Glob. Optim., vol. 84, no. 2, pp. 393–413, 2022.
[26] E. J. Candès and T. Tao, “Decoding by linear programming,” IEEE Trans. Inf. Theory, vol. 51, no. 12, pp. 4203–4215, 2005.
[27] S. Foucart and H. Rauhut, A Mathematical Introduction to Compressive Sensing. Basel, Switzerland: Birkhäuser, 2013.
[28] Y.-B. Zhao and Z.-Q. Luo, “Improved RIP-based bounds for guaranteed performance of two compressed sensing algorithms,” Sci. China Math., vol. 66, no. 5, pp. 1123–1140, 2023.
[29] G. Moody, R. Mark, and A. Goldberger, “Evaluation of the ‘TRIM’ ECG data compressor,” Comput. Cardiol., vol. 15, pp. 167–170, 1988.
[30] G. B. Moody and R. G. Mark, “MIT-BIH ECG Compression Test Database,” PhysioNet, version 1.0.0, Aug. 1999.