e01.org

Sparse dictionary learning

Sparse dictionary learning (also known as sparse coding or SDL) is a representation learning method which aims to find a sparse representation of the input data in the form of a linear combination of basic elements as well as those basic elements themselves. These elements are called atoms, and they compose a dictionary. Atoms in the dictionary are not required to be orthogonal, and they may be an over-complete spanning set. This problem setup also allows the dimensionality of the signals being represented to be higher than any one of the signals being observed. These two properties lead to having seemingly redundant atoms that allow multiple representations of the same signal, but also provide an improvement in sparsity and flexibility of the representation. One of the most important applications of sparse dictionary learning is in the field of compressed sensing or signal recovery. In compressed sensing, a high-dimensional signal can be recovered with only a few linear...

Sparse dictionary learning (also known as sparse coding or SDL) is a representation learning method which aims to find a sparse representation of the input data in the form of a linear combination of basic elements as well as those basic elements themselves. These elements are called atoms, and they compose a dictionary. Atoms in the dictionary are not required to be orthogonal, and they may be an over-complete spanning set. This problem setup also allows the dimensionality of the signals being represented to be higher than any one of the signals being observed. These two properties lead to having seemingly redundant atoms that allow multiple representations of the same signal, but also provide an improvement in sparsity and flexibility of the representation. One of the most important applications of sparse dictionary learning is in the field of compressed sensing or signal recovery. In compressed sensing, a high-dimensional signal can be recovered with only a few linear measurements, provided that the signal is sparse or near-sparse. Since not all signals satisfy this condition, it is crucial to find a sparse representation of that signal such as the wavelet transform or the directional gradient of a rasterized matrix. Once a matrix or a high-dimensional vector is transferred to a sparse space, different recovery algorithms like basis pursuit, CoSaMP, or fast non-iterative algorithms can be used to recover the signal. One of the key principles of dictionary learning is that the dictionary has to be inferred from the input data. The emergence of sparse dictionary learning methods was stimulated by the fact that in signal processing, one typically wants to represent the input data using a minimal amount of components. Before this approach, the general practice was to use predefined dictionaries such as Fourier or wavelet transforms. However, in certain cases, a dictionary that is trained to fit the input data can significantly improve the sparsity, which has applications in data decomposition, compression, and analysis, and has been used in the fields of image denoising and classification, and video and audio processing. Sparsity and overcomplete dictionaries have immense applications in image compression, image fusion, and inpainting. Given the input dataset X = [x_1, ..., x_K], x_i \in \mathbb{R}^d we wish to find a dictionary \mathbf{D} \in \mathbb{R}^{d \times n}: D = [d_1, ..., d_n] and a representation R = [r_1,...,r_K], r_i \in \mathbb{R}^n such that both \|X-\mathbf{D}R\|^2_F is minimized and the representations r_i are sparse enough. This can be formulated as the following optimization problem: \underset{\mathbf{D} \in \mathcal{C}, r_i \in \mathbb{R}^n}{\text{argmin}} \sum_{i=1}^K\|x_i-\mathbf{D}r_i\|_2^2+\lambda \|r_i\|_0 , where \mathcal{C} \equiv \{\mathbf{D} \in \mathbb{R}^{d \times n}: \|d_i\|_2 \leq 1 \,\, \forall i =1,...,n \} , \lambda>0 \mathcal{C} is required to constrain \mathbf{D} so that its atoms would not reach arbitrarily high values allowing for arbitrarily low (but non-zero) values of r_i . \lambda controls the trade off between the sparsity and the minimization error. The minimization problem above is not convex because of the ℓ 0 -"norm" and solving this problem is NP-hard. In some cases L 1 -norm is known to ensure sparsity and so the above becomes a convex optimization problem with respect to each of the variables \mathbf{D} and \mathbf{R} when the other one is fixed, but it is not jointly convex in (\mathbf{D}, \mathbf{R}) . Here, F denotes the Frobenius norm. MOD alternates between getting the sparse coding using a method such as matching pursuit and updating the dictionary by computing the analytical solution of the problem given by \mathbf{D} = XR^+ where R^+ is a Moore-Penrose pseudoinverse. After this update \mathbf{D} is renormalized to fit the constraints and the new sparse coding is obtained again. The process is repeated until convergence (or until a sufficiently small residue). MOD has proved to be a very efficient method for low-dimensional input data X requiring just a few iterations to converge. However, due to the high complexity of the matrix-inversion operation, computing the pseudoinverse in high-dimensional cases is in many cases intractable. This shortcoming has inspired the development of other dictionary learning methods. \|X - \mathbf{D}R\|^2_F = \left| X - \sum_{i = 1}^K d_i x^i_T\right|^2_F = \| E_k - d_k x^k_T\|^2_F The next steps of the algorithm include rank-1 approximation of the residual matrix E_k , updating d_k and enforcing the sparsity of x_k after the update. This algorithm is considered to be standard for dictionary learning and is used in a variety of applications. However, it shares weaknesses with MOD being efficient only for signals with relatively low dimensionality and having the possibility for being stuck at local minima. \mathbf{D}_i = \text{proj}_{\mathcal{C}} \left\{\mathbf{D}_{i-1}-\delta_i\nabla_{\mathbf{D}}\sum_{i \in S}\|x_i-\mathbf{D}r_i\|_2^2+\lambda\|r_i\|_1 \right\} , where S is a random subset of \{1...K\} and \delta_i is a gradient step. \mathcal{L}(\mathbf{D}, \Lambda) = \text{tr}\left((X-\mathbf{D}R)^T(X-\mathbf{D}R)\right) + \sum_{j=1}^n\lambda_j \left({\sum_{i=1}^d\mathbf{D}_{ij}^2-c} \right) , where c is a constraint on the norm of the atoms and \lambda_i are the so-called dual variables forming the diagonal matrix \Lambda . We can then provide an analytical expression for the Lagrange dual after minimization over \mathbf{D} : \mathcal{D}(\Lambda) = \min_{\mathbf{D}}\mathcal{L}(\mathbf{D}, \Lambda) = \text{tr}(X^TX-XR^T(RR^T+\Lambda)^{-1}(XR^T)^T-c\Lambda) . After applying one of the optimization methods to the value of the dual (such as Newton's method or conjugate gradient) we get the value of \mathbf{D} : \mathbf{D}^T=(RR^T+\Lambda)^{-1}(XR^T)^T Solving this problem is less computational hard because the amount of dual variables n is a lot of times much less than the amount of variables in the primal problem. ===LASSO=== In this approach, the optimization problem is formulated as: \min_{r \in \mathbb{R}^n}\{\,\,\|r\|_1\} \,\, \text{subject to}\,\,\|X-\mathbf{D}R\|^2_F , where \epsilon is the permitted error in the reconstruction LASSO. It finds an estimate of r_i by minimizing the least square error subject to a L 1 -norm constraint in the solution vector, formulated as: \min_{r \in \mathbb{R}^n} \,\, \dfrac{1}{2}\,\,\|X-\mathbf{D}r\|^2_F + \lambda \,\,\|r\|_1 , where \lambda > 0 controls the trade-off between sparsity and the reconstruction error. This gives the global optimal solution. See also Online dictionary learning for Sparse coding Sparse dictionaries. This method focuses on not only providing a sparse representation but also constructing a sparse dictionary which is enforced by the expression \mathbf{D} = \mathbf{B}\mathbf{A} where \mathbf{B} is some pre-defined analytical dictionary with desirable properties such as fast computation and \mathbf{A} is a sparse matrix. Such formulation allows to directly combine the fast implementation of analytical dictionaries with the flexibility of sparse approaches. For t = 1...T: Draw a new sample x_t Find a sparse coding using LARS: r_t = \underset{r \in \mathbb{R}^n}{\text{argmin}}\left(\frac{1}{2}\|x_t-\mathbf{D}_{t-1}r\|+\lambda\|r\|_1\right) Update dictionary using block-coordinate approach: \mathbf{D}_t = \underset{\mathbf{D} \in \mathcal{C}}{\text{argmin}}\frac{1}{t}\sum_{i=1}^t\left(\frac{1}{2}\|x_i-\mathbf{D}r_i\|^2_2+\lambda\|r_i\|_1\right) This method allows us to gradually update the dictionary as new data becomes available for sparse representation learning and helps drastically reduce the amount of memory needed to store the dataset (which often has a huge size).

References

  1. ^ Needell, D.; Tropp, J.A. (2009). "CoSaMP: Iterative signal recovery from incomplete and inaccurate samples". Applied and Computational Harmonic Analysis . 26 (3): 301– 321. arXiv : 0803.2392 . doi : 10.1016/j.acha.2008.07.002 . Wikipedia revision 1370370286, retrieved 2026-11-19 · 1795042800.0
  2. ^ Engan, Kjersti ; Skretting, Karl; Husøy, John H\a akon (2007-01-01). "Family of Iterative LS-based Dictionary Learning Algorithms, ILS-DLA, for Sparse Signal Representation". Digit. Signal Process . 17 (1): 32– 49. Bibcode : 2007DSP....17...32E . doi : 10.1016/j.dsp.2006.02.002 . ISSN 1051-2004 . Wikipedia revision 1370370286, retrieved 2026-11-19 · 1795042800.0
  3. ^ Mairal, J.; Sapiro, G.; Elad, M. (2008-01-01). "Learning Multiscale Sparse Representations for Image and Video Restoration". Multiscale Modeling & Simulation . 7 (1): 214– 241. CiteSeerX 10.1.1.95.6239 . doi : 10.1137/070697653 . ISSN 1540-3459 . {{ cite journal }} : Cite uses deprecated parameter |citeseerx= ( help ) Wikipedia revision 1370370286, retrieved 2026-11-19 · 1795042800.0
  4. ^ Rubinstein, R.; Zibulevsky, M.; Elad, M. (2010-03-01). "Double Sparsity: Learning Sparse Dictionaries for Sparse Signal Approximation". IEEE Transactions on Signal Processing . 58 (3): 1553– 1564. Bibcode : 2010ITSP...58.1553R . CiteSeerX 10.1.1.183.992 . doi : 10.1109/TSP.2009.2036477 . ISSN 1053-587X . S2CID 7193037 . {{ cite journal }} : Cite uses deprecated parameter |citeseerx= ( help ) Wikipedia revision 1370370286, retrieved 2026-11-19 · 1795042800.0
  5. ^ Mairal, Julien; Bach, Francis; Ponce, Jean; Sapiro, Guillermo (2010-03-01). "Online Learning for Matrix Factorization and Sparse Coding" . J. Mach. Learn. Res . 11 : 19– 60. arXiv : 0908.0050 . Bibcode : 2009arXiv0908.0050M . ISSN 1532-4435 . Wikipedia revision 1370370286, retrieved 2026-11-19 · 1795042800.0
  6. ^ Aharon, M , M Elad, and A Bruckstein. 2006. " K-SVD: An Algorithm for Designing Overcomplete Dictionaries for Sparse Representation ." Signal Processing, IEEE Transactions on 54 (11): 4311-4322 Wikipedia revision 1370370286, retrieved 2026-11-19 · 1795042800.0
  7. ^ Peyré, Gabriel (2008-11-06). "Sparse Modeling of Textures" (PDF) . Journal of Mathematical Imaging and Vision . 34 (1): 17– 31. doi : 10.1007/s10851-008-0120-3 . ISSN 0924-9907 . S2CID 15994546 . Wikipedia revision 1370370286, retrieved 2026-11-19 · 1795042800.0
  8. ^ Ramirez, Ignacio; Sprechmann, Pablo; Sapiro, Guillermo (2010-01-01). "Classification and clustering via dictionary learning with structured incoherence and shared features". 2010 IEEE Computer Society Conference on Computer Vision and Pattern Recognition . Los Alamitos, CA, USA: IEEE Computer Society. pp. 3501– 3508. doi : 10.1109/CVPR.2010.5539964 . ISBN 978-1-4244-6984-0 . S2CID 206591234 . Wikipedia revision 1370370286, retrieved 2026-11-19 · 1795042800.0
  9. ^ Koniusz, Piotr; Yan, Fei; Mikolajczyk, Krystian (2013-05-01). "Comparison of mid-level feature coding approaches and pooling strategies in visual concept detection". Computer Vision and Image Understanding . 117 (5): 479– 492. CiteSeerX 10.1.1.377.3979 . doi : 10.1016/j.cviu.2012.10.010 . ISSN 1077-3142 . {{ cite journal }} : Cite uses deprecated parameter |citeseerx= ( help ) Wikipedia revision 1370370286, retrieved 2026-11-19 · 1795042800.0
  10. ^ Koniusz, Piotr; Yan, Fei; Gosselin, Philippe Henri; Mikolajczyk, Krystian (2017-02-24). "Higher-order occurrence pooling for bags-of-words: Visual concept detection" (PDF) . IEEE Transactions on Pattern Analysis and Machine Intelligence . 39 (2): 313– 326. Bibcode : 2017ITPAM..39..313K . doi : 10.1109/TPAMI.2016.2545667 . hdl : 10044/1/39814 . ISSN 0162-8828 . PMID 27019477 . S2CID 10577592 . Wikipedia revision 1370370286, retrieved 2026-11-19 · 1795042800.0
  11. ^ AlMatouq, Ali; LalegKirati, TaousMeriem; Novara, Carlo; Ivana, Rabbone; Vincent, Tyrone (2019-03-15). "Sparse Reconstruction of Glucose Fluxes Using Continuous Glucose Monitors". IEEE/ACM Transactions on Computational Biology and Bioinformatics . 17 (5): 1797– 1809. doi : 10.1109/TCBB.2019.2905198 . hdl : 10754/655914 . ISSN 1545-5963 . PMID 30892232 . S2CID 84185121 . Wikipedia revision 1370370286, retrieved 2026-11-19 · 1795042800.0
  12. ^ Lotfi, M.; Vidyasagar, M." A Fast Non-iterative Algorithm for Compressive Sensing Using Binary Measurement Matrices " Wikipedia revision 1370370286, retrieved 2026-11-19 · 1795042800.0
  13. ^ Rashid, Rami; Abdi, Ali; Michalopoulou, Zoi-Heleni (2025). "Blind weak signal detection via dictionary learning in time-spreading distortion channels using vector sensors" . JASA Express Letters . 5 (6): 064803. doi : 10.1121/10.0036919 . Wikipedia revision 1370370286, retrieved 2026-11-19 · 1795042800.0
  14. ^ A. M. Tillmann, " On the Computational Intractability of Exact and Approximate Dictionary Learning ", IEEE Signal Processing Letters 22(1), 2015: 45–49. Wikipedia revision 1370370286, retrieved 2026-11-19 · 1795042800.0
  15. ^ Donoho, David L. (2006-06-01). "For most large underdetermined systems of linear equations the minimal 𝓁1-norm solution is also the sparsest solution". Communications on Pure and Applied Mathematics . 59 (6): 797– 829. doi : 10.1002/cpa.20132 . ISSN 1097-0312 . S2CID 8510060 . Wikipedia revision 1370370286, retrieved 2026-11-19 · 1795042800.0
  16. ^ Engan, K. ; Aase, S.O.; Hakon Husoy, J. (1999-01-01). "Method of optimal directions for frame design". 1999 IEEE International Conference on Acoustics, Speech, and Signal Processing. Proceedings. ICASSP99 (Cat. No.99CH36258) . Vol. 5. pp. 2443–2446 vol.5. doi : 10.1109/ICASSP.1999.760624 . ISBN 978-0-7803-5041-0 . S2CID 33097614 . Wikipedia revision 1370370286, retrieved 2026-11-19 · 1795042800.0
  17. ^ Aharon, Michal ; Elad, Michael (2008). "Sparse and Redundant Modeling of Image Content Using an Image-Signature-Dictionary". SIAM Journal on Imaging Sciences . 1 (3): 228– 247. CiteSeerX 10.1.1.298.6982 . doi : 10.1137/07070156x . {{ cite journal }} : Cite uses deprecated parameter |citeseerx= ( help ) Wikipedia revision 1370370286, retrieved 2026-11-19 · 1795042800.0
  18. ^ Lee, Honglak, et al. "Efficient sparse coding algorithms." Advances in neural information processing systems . 2006. Wikipedia revision 1370370286, retrieved 2026-11-19 · 1795042800.0
  19. ^ Kumar, Abhay; Kataria, Saurabh. "Dictionary Learning Based Applications in Image Processing using Convex Optimisation" (PDF) . Wikipedia revision 1370370286, retrieved 2026-11-19 · 1795042800.0
  20. ^ Rubinstein, R.; Bruckstein, A.M.; Elad, M. (2010-06-01). "Dictionaries for Sparse Representation Modeling". Proceedings of the IEEE . 98 (6): 1045– 1057. CiteSeerX 10.1.1.160.527 . doi : 10.1109/JPROC.2010.2040551 . ISSN 0018-9219 . S2CID 2176046 . {{ cite journal }} : Cite uses deprecated parameter |citeseerx= ( help ) Wikipedia revision 1370370286, retrieved 2026-11-19 · 1795042800.0
source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"Sparse dictionary learning". 1787245546. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1370370286

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·