Simple Algorithm
Machine Learning · Convergence · 28 min

NMF, ICA & Sparse Coding

Parts-based, independent and sparse representations.

PCA finds directions of greatest variance, but its components mix positive and negative parts and need not mean anything. Three other factorizations demand more structure: nonnegative factors that add up parts, statistically independent sources that can be unmixed, and sparse codes over a learned dictionary. Each buys interpretability at a price in identifiability or computation, and this lesson makes both prices precise.

What you’ll learn

  • Formulate NMF, derive the Lee–Seung multiplicative updates as rescaled gradient steps, and prove with an auxiliary function that they never increase the objective.
  • Show that nonnegative rank can exceed rank, explain why exact NMF is NP-hard yet polynomial for fixed rank, and describe the separability condition that makes it tractable.
  • State the ICA model, prove that Gaussian sources cannot be unmixed, state Comon's identifiability theorem, and derive the FastICA fixed-point update.
  • Formulate sparse coding and dictionary learning, explain why the atoms must be norm-constrained, and connect them to the lasso, to ICA and to receptive fields in the visual cortex.

NMF: parts by addition

Nonnegative matrix factorization approximates a nonnegative data matrix V∈R≥0m×nV\in\R_{\ge0}^{m\times n}, whose columns might be images or documents, by V≈WHV\approx WH with W∈R≥0m×rW\in\R_{\ge0}^{m\times r} and H∈R≥0r×nH\in\R_{\ge0}^{r\times n}. Each data column is then vj≈∑khkjwk\mathbf v_j\approx\sum_kh_{kj}\mathbf w_k, a sum of rr basis columns with nonnegative weights. Nothing can be subtracted, so the basis columns tend to act as parts that add up. Paatero & Tapper (1994) introduced the idea as "positive matrix factorization" for environmental data, and Lee & Seung (1999) showed it learns localized parts of faces and semantic features of text, where PCA learns holistic "eigenfaces" that cancel one another.

Two losses are common: the squared Frobenius error 12∥V−WH∥F2\tfrac12\norm{V-WH}_F^2, and the generalized Kullback–Leibler divergence ∑ij(Vijlog⁡Vij(WH)ij−Vij+(WH)ij)\sum_{ij}\big(V_{ij}\log\frac{V_{ij}}{(WH)_{ij}}-V_{ij}+(WH)_{ij}\big), which is the negative log-likelihood of a Poisson model for counts, up to terms that do not depend on WW and HH.

DerivationMultiplicative updates (Frobenius loss)
  1. ∇HF=W⊤WH−W⊤V\nabla_HF=W^\top WH-W^\top V

    With F(W,H)=12∥V−WH∥F2F(W,H)=\tfrac12\norm{V-WH}_F^2, the gradient with respect to HH is a difference of two nonnegative matrices:

  2. Haj ← Haj−ηaj(W⊤WH−W⊤V)aj=Haj (W⊤V)aj(W⊤WH)ajH_{aj}\ \leftarrow\ H_{aj}-\eta_{aj}\big(W^\top WH-W^\top V\big)_{aj}=H_{aj}\,\frac{(W^\top V)_{aj}}{(W^\top WH)_{aj}}

    Take a gradient step with a separate step size for each entry, ηaj=Haj/(W⊤WH)aj\eta_{aj}=H_{aj}/(W^\top WH)_{aj}. The subtraction cancels, and the step becomes a multiplication (Lee & Seung, 2000):

  3. Wia ← Wia (VH⊤)ia(WHH⊤)iaW_{ia}\ \leftarrow\ W_{ia}\,\frac{(VH^\top)_{ia}}{(WHH^\top)_{ia}}

    The same argument for WW gives its update. Nonnegative factors stay nonnegative automatically, with no projection and no step size to tune.

DerivationProof (one column of H at a time)
  1. F(ht+1)≤G(ht+1,ht)≤G(ht,ht)=F(ht),ht+1=arg min⁡hG(h,ht)F(\mathbf h^{t+1})\le G(\mathbf h^{t+1},\mathbf h^t)\le G(\mathbf h^t,\mathbf h^t)=F(\mathbf h^t),\qquad\mathbf h^{t+1}=\argmin_{\mathbf h}G(\mathbf h,\mathbf h^t)

    The update for HH acts column by column, so take one column h\mathbf h with data column v\mathbf v and F(h)=12∥v−Wh∥2F(\mathbf h)=\tfrac12\norm{\mathbf v-W\mathbf h}^2. Call G(h,ht)G(\mathbf h,\mathbf h^t) an auxiliary function if G(h,ht)≥F(h)G(\mathbf h,\mathbf h^t)\ge F(\mathbf h) for all h\mathbf h and G(h,h)=F(h)G(\mathbf h,\mathbf h)=F(\mathbf h). Minimizing GG cannot increase FF:

  2. u⊤(K−M) u=∑a,bMab(hbthatua2−uaub)=12∑a,bMab hathbt(uahat−ubhbt)2 ≥ 0\mathbf u^\top(K-M)\,\mathbf u=\sum_{a,b}M_{ab}\Big(\frac{h^t_b}{h^t_a}u_a^2-u_au_b\Big)=\tfrac12\sum_{a,b}M_{ab}\,h^t_ah^t_b\Big(\frac{u_a}{h^t_a}-\frac{u_b}{h^t_b}\Big)^2\ \ge\ 0

    Take G(h,ht)=F(ht)+(h−ht)⊤∇F(ht)+12(h−ht)⊤K(h−ht)G(\mathbf h,\mathbf h^t)=F(\mathbf h^t)+(\mathbf h-\mathbf h^t)^\top\nabla F(\mathbf h^t)+\tfrac12(\mathbf h-\mathbf h^t)^\top K(\mathbf h-\mathbf h^t) with the diagonal matrix Kaa=(Mht)a/hatK_{aa}=(M\mathbf h^t)_a/h^t_a, where M=W⊤WM=W^\top W is the Hessian of FF and is entrywise nonnegative. Since FF is exactly quadratic, G≥FG\ge F holds when K−M⪰0K-M\succeq0, and it does (for positive ht\mathbf h^t):

  3. hat+1=hat−hat(W⊤Wht)a(W⊤Wht−W⊤v)a=hat (W⊤v)a(W⊤Wht)ah^{t+1}_a=h^t_a-\frac{h^t_a}{(W^\top W\mathbf h^t)_a}\big(W^\top W\mathbf h^t-W^\top\mathbf v\big)_a=h^t_a\,\frac{(W^\top\mathbf v)_a}{(W^\top W\mathbf h^t)_a}

    Minimizing the quadratic GG gives h=ht−K−1∇F(ht)\mathbf h=\mathbf h^t-K^{-1}\nabla F(\mathbf h^t), which is exactly the multiplicative update:

Monotone decrease is not the end of the story. It does not by itself guarantee convergence to a stationary point, and an entry that reaches zero can never leave it, since every later update multiplies it. Projected-gradient methods converge faster than the multiplicative updates in practice (Lin, 2007), and alternating nonnegative least squares, which solves each factor's constrained problem exactly, is another standard choice (Kim & Park, 2008).

Nonnegative rank, hardness and separability

The nonnegative rank rank⁡+(V)\rank_+(V) is the smallest rr with V=WHV=WH exactly and W,H≥0W,H\ge0. Always rank⁡V≤rank⁡+V≤min⁡(m,n)\rank V\le\rank_+V\le\min(m,n), and the first inequality can be strict. The standard example is the slack matrix of a square, which records how far each corner of a unit square lies from each of its four sides:

S=(0110100100111100)S=\begin{pmatrix}0&1&1&0\\1&0&0&1\\0&0&1&1\\1&1&0&0\end{pmatrix}
DerivationRank 3, nonnegative rank 4
  1. s1+s2=s3+s4⟹rank⁡S=3\mathbf s_1+\mathbf s_2=\mathbf s_3+\mathbf s_4\quad\Longrightarrow\quad\rank S=3

    Rank. Rows 1 and 2 add up to (1,1,1,1)(1,1,1,1), and so do rows 3 and 4, so the rows are linearly dependent; any three of them are independent.

  2. rank⁡+S ≥ 4⟹rank⁡+S=4>3=rank⁡S\rank_+S\ \ge\ 4\quad\Longrightarrow\quad\rank_+S=4>3=\rank S

    Nonnegative rank. In an exact NMF, S=∑kwkhk⊤S=\sum_k\mathbf w_k\mathbf h_k^\top with nonnegative terms, so each term is nonzero only on a rectangle (a set of rows times a set of columns) inside the support of SS. The ones at (1,2),(2,4),(3,3),(4,1)(1,2),(2,4),(3,3),(4,1) form a fooling set: for any two of them, (i,j)(i,j) and (k,l)(k,l), at least one of SilS_{il} and SkjS_{kj} is zero, so no rectangle inside the support contains two of them. Each needs its own term:

Hardness. Vavasis (2009) proved that exact NMF is NP-hard: deciding whether a matrix of rank rr has a nonnegative factorization with inner dimension rr, when rr is part of the input. For fixed rr the problem is polynomial: Arora, Ge, Kannan & Moitra (2012) gave an algorithm polynomial in mm and nn for every constant rr, and showed that time (mn)o(r)(mn)^{o(r)} would yield a subexponential algorithm for 3-SAT; Moitra (2016) brought the running time down to (mn)O(r2)(mn)^{O(r^2)}. Even when an exact NMF exists it is never unique in the strict sense, since WH=(WQ)(Q−1H)WH=(WQ)(Q^{-1}H) for any QQ that keeps both factors nonnegative: positive diagonal scalings and permutations always qualify, and other matrices often do.

Separability. Donoho & Stodden (2003) asked when NMF finds the "true" parts, and identified separability: every part has an anchor, a coordinate (a pixel, a word) that no other part uses. The anchor rows of VV are then scaled copies of the rows of HH, and every row of VV is a nonnegative combination of them. Geometrically, the normalized rows of VV lie in the convex hull of the rr anchor rows, which convex geometry can find. Arora et al. (2012) gave a polynomial-time algorithm for separable NMF that tolerates noise. A popular choice, the successive projection algorithm, repeatedly picks the normalized row of largest norm and projects every row onto the orthogonal complement of the picked one; Gillis & Vavasis (2014) proved it robust to small perturbations. In topic models the anchors are anchor words, each occurring in only one topic (Arora et al., 2013).

Check your understanding

Which statement about the nonnegative rank of a nonnegative matrix is true?

  1. It always equals the ordinary rank
  2. It can be read off the singular values
  3. It is at least the ordinary rank and can be strictly larger
  4. It is at most the ordinary rank, since nonnegative factors are more constrained
Show the answer

C. It is at least the ordinary rank and can be strictly larger

Every nonnegative factorization is a factorization, so rank⁡+V≥rank⁡V\rank_+V\ge\rank V; the square's slack matrix has rank 3 and nonnegative rank 4. Computing the nonnegative rank is NP-hard in general, so no SVD-like shortcut exists.

ICA: unmixing independent sources

At a party, two microphones record different mixtures of two voices. Independent component analysis models such data as x=As\mathbf x=A\mathbf s, with a square invertible mixing matrix AA and sources s1,…,sds_1,\dots,s_d that are statistically independent, and asks for an unmixing matrix W≈A−1W\approx A^{-1} from samples of x\mathbf x alone.

Second-order statistics get you most of the way. Whitening, z=Λ−1/2E⊤(x−Ex)\mathbf z=\Lambda^{-1/2}E^\top(\mathbf x-\E\mathbf x) with Cov⁡(x)=EΛE⊤\Cov(\mathbf x)=E\Lambda E^\top, makes Cov⁡(z)=I\Cov(\mathbf z)=I. Center the sources and scale them to unit variance (their scale cannot be identified anyway); then z=Qs\mathbf z=Q\mathbf s for an orthogonal matrix QQ. PCA does this much. The remaining rotation is exactly what ICA must find, and covariances cannot see it.

DerivationGaussian sources cannot be unmixed
  1. Cov⁡(Rz)=RQ Cov⁡(s) Q⊤R⊤=RR⊤=I\Cov(R\mathbf z)=RQ\,\Cov(\mathbf s)\,Q^\top R^\top=RR^\top=I

    Any rotation RR of the whitened data is still white, so second-order statistics cannot prefer one rotation to another:

  2. s∼N(0,I)⟹Rz∼N(0,I)  for every orthogonal R\mathbf s\sim\mathcal N(\mathbf 0,I)\quad\Longrightarrow\quad R\mathbf z\sim\mathcal N(\mathbf 0,I)\ \text{ for every orthogonal }R

    If the sources are Gaussian, s∼N(0,I)\mathbf s\sim\mathcal N(\mathbf 0,I), the whole distribution is rotation-invariant: every rotation of z\mathbf z has independent standard normal coordinates. Nothing in the data distinguishes the true QQ.

By the central limit theorem, a mixture of independent variables tends to be closer to Gaussian than the variables themselves, so ICA searches for projections y=w⊤zy=\mathbf w^\top\mathbf z that are as non-Gaussian as possible. Two measures are standard. The excess kurtosis κ(y)=Ey4−3\kappa(y)=\E y^4-3 (for zero-mean, unit-variance yy) is 0 for a Gaussian, negative for light-tailed sources such as uniform noise, and positive for heavy-tailed ones such as speech. The negentropy J(y)=H(ygauss)−H(y)≥0J(y)=H(y_{\mathrm{gauss}})-H(y)\ge0, where ygaussy_{\mathrm{gauss}} is Gaussian with the same variance, is zero only for a Gaussian, and is approximated by (EG(y)−EG(ν))2\big(\E G(y)-\E G(\nu)\big)^2 with ν∼N(0,1)\nu\sim\mathcal N(0,1) and a smooth contrast such as G(u)=log⁡cosh⁡uG(u)=\log\cosh u (Hyvärinen, 1999).

DerivationThe FastICA fixed point
  1. E[z g(w⊤z)]−β w=0\E\big[\mathbf z\,g(\mathbf w^\top\mathbf z)\big]-\beta\,\mathbf w=\mathbf 0

    Optimize E G(w⊤z)\E\,G(\mathbf w^\top\mathbf z) subject to ∥w∥=1\norm{\mathbf w}=1. With g=G′g=G' and a multiplier β\beta, the optimality condition is

  2. w ← E[z g(w⊤z)]−E[g′(w⊤z)] w,w ← w/∥w∥\mathbf w\ \leftarrow\ \E\big[\mathbf z\,g(\mathbf w^\top\mathbf z)\big]-\E\big[g'(\mathbf w^\top\mathbf z)\big]\,\mathbf w,\qquad\mathbf w\ \leftarrow\ \mathbf w/\norm{\mathbf w}

    Solve it by Newton's method, approximating the Jacobian for whitened data by E[zz⊤g′(w⊤z)]≈E[zz⊤] E[g′(w⊤z)]=E[g′(w⊤z)] I\E[\mathbf z\mathbf z^\top g'(\mathbf w^\top\mathbf z)]\approx\E[\mathbf z\mathbf z^\top]\,\E[g'(\mathbf w^\top\mathbf z)]=\E[g'(\mathbf w^\top\mathbf z)]\,I. After simplifying and renormalizing, the step is

  3. w ← E[z (w⊤z)3]−3 w\mathbf w\ \leftarrow\ \E\big[\mathbf z\,(\mathbf w^\top\mathbf z)^3\big]-3\,\mathbf w

    For the kurtosis contrast G(u)=u4/4G(u)=u^4/4, g(u)=u3g(u)=u^3 and E[g′(w⊤z)]=3 E(w⊤z)2=3\E[g'(\mathbf w^\top\mathbf z)]=3\,\E(\mathbf w^\top\mathbf z)^2=3. This update converges cubically to a source direction (Hyvärinen & Oja, 1997). Further components come one at a time with orthogonalization against those found, or all at once with symmetric decorrelation.

Predict before you look

A source is uniform on [−3,3][-\sqrt3,\sqrt3], so it has mean 0 and variance 1. What is its excess kurtosis Es4−3\E s^4-3?

Show the answer

-1.2

Es4=123∫−33s4 ds=(3)45=95=1.8\E s^4=\frac1{2\sqrt3}\int_{-\sqrt3}^{\sqrt3}s^4\,ds=\frac{(\sqrt3)^4}5=\frac95=1.8, so κ=1.8−3=−1.2\kappa=1.8-3=-1.2: lighter-tailed than a Gaussian. For a unit-variance mixture y=∑icisiy=\sum_ic_is_i of independent sources, κ(y)=∑ici4κ(si)\kappa(y)=\sum_ic_i^4\kappa(s_i) with ∑ici4≤1\sum_ic_i^4\le1, so mixing pulls the kurtosis toward 0, and maximizing ∣κ∣\abs\kappa undoes the mixing.

ICA is routinely used to remove eye-blink and muscle artifacts from EEG recordings, and to separate signals in fMRI and audio. Run on patches of natural images, it learns localized, oriented edge filters (Bell & Sejnowski, 1997), the same kind of features that sparse coding finds.

Sparse coding and dictionary learning

Sparse coding represents each signal x∈Rd\mathbf x\in\R^d as x≈Dα\mathbf x\approx D\boldsymbol\alpha, a combination of a few atoms, the columns dk\mathbf d_k of a dictionary D∈Rd×KD\in\R^{d\times K} that is often overcomplete (K>dK>d). Given DD, finding the code is a lasso problem, min⁡α12∥x−Dα∥2+λ∥α∥1\min_{\boldsymbol\alpha}\tfrac12\norm{\mathbf x-D\boldsymbol\alpha}^2+\lambda\norm{\boldsymbol\alpha}_1 (Tibshirani, 1996), whose ℓ1\ell_1 penalty sets many coefficients exactly to zero. Dictionary learning also fits DD to the data.

DerivationWhy the atoms must be bounded
  1. (cD)(αc)=Dα,λ ∥αc∥1=λc ∥α∥1 → c→∞  0(cD)\Big(\frac{\boldsymbol\alpha}c\Big)=D\boldsymbol\alpha,\qquad\lambda\,\Big\lVert\frac{\boldsymbol\alpha}c\Big\rVert_1=\frac\lambda c\,\norm{\boldsymbol\alpha}_1\ \xrightarrow{\ c\to\infty\ }\ 0

    Scale every atom up by c>1c>1 and every code down by cc. The reconstruction is unchanged, but the penalty shrinks:

  2. min⁡D, {αi} ∑i=1n(12∥xi−Dαi∥2+λ∥αi∥1)s.t.∥dk∥2≤1  for all k\min_{D,\ \{\boldsymbol\alpha_i\}}\ \sum_{i=1}^n\Big(\tfrac12\norm{\mathbf x_i-D\boldsymbol\alpha_i}^2+\lambda\norm{\boldsymbol\alpha_i}_1\Big)\qquad\text{s.t.}\qquad\norm{\mathbf d_k}_2\le1\ \text{ for all }k

    Without a constraint the penalty can be made to vanish and sparsity disappears, so the atoms are confined to the unit ball. Alternating minimization then solves a lasso per signal for the codes, and a constrained least-squares problem for the dictionary:

Algorithms. K-SVD (Aharon, Elad & Bruckstein, 2006) alternates sparse coding by a greedy pursuit with an atom-by-atom update: for atom kk, take the residual of the signals that use it, with atom kk's contribution removed, and replace the atom and its coefficients by the best rank-1 approximation of that residual, one SVD. Online dictionary learning (Mairal, Bach, Ponce & Sapiro, 2009) processes one signal or mini-batch at a time and scales to millions of signals.

Brains. Olshausen & Field (1996) learned a sparse code for patches of natural images and found localized, oriented, bandpass atoms resembling the receptive fields of simple cells in the primary visual cortex: evidence that sparsity may be one of the principles the visual system follows. With a square invertible dictionary and no noise, sparse coding with a Laplacian prior on the codes coincides with maximum-likelihood ICA with Laplacian sources, which is why the two find similar features.

Theory. Dictionary learning is nonconvex and hard in the worst case, but identifiable for random, sparse codes. For square d×dd\times d dictionaries, Spielman, Wang & Wright (2012) showed that O(dlog⁡d)O(d\log d) samples determine the coefficient matrix uniquely and gave a polynomial-time algorithm that recovers the dictionary when the codes are sparse enough; Arora, Ge, Ma & Moitra (2015) analyzed the alternating heuristics used in practice and gave provable variants for incoherent, overcomplete dictionaries, some simple enough for a neural circuit.

MethodConstraintFitted byIdentifiable up to
PCAorthonormal componentsSVDsign, and rotations within repeated eigenvalues
NMFW,H≥0W,H\ge0multiplicative or alternating updates; nonconvexscaling and permutation, only under conditions such as separability
ICAindependent, non-Gaussian sourcesnon-Gaussianity or likelihood, after whiteningpermutation and scale, if at most one source is Gaussian
Sparse codingsparse codes, unit-norm atoms, often overcompletelasso plus dictionary updates; nonconvexpermutation and sign, for sufficiently sparse random codes
Four linear factorizations of the same data matrix. Each constraint buys interpretability or identifiability of a different kind, usually at a price in computation: PCA is identifiable and cheap, while NMF is hard to compute and often not identifiable.

Key takeaways

  • NMF approximates V≈WHV\approx WH with nonnegative factors, giving additive, parts-based representations. The Lee–Seung multiplicative updates are diagonally rescaled gradient steps that never increase the objective, by an auxiliary-function argument, but they can stall and they lock zeros in place.
  • Nonnegative rank can exceed rank (the square's slack matrix: 3 against 4). Exact NMF is NP-hard in general, polynomial for fixed rr, and efficiently solvable under separability, where every part has an anchor coordinate that no other part uses.
  • ICA recovers independent, non-Gaussian sources up to permutation and scale (Comon). Gaussian sources are unidentifiable because whitened Gaussian data are rotation-invariant. FastICA iterates w←E[zg(w⊤z)]−E[g′(w⊤z)]w\mathbf w\leftarrow\E[\mathbf zg(\mathbf w^\top\mathbf z)]-\E[g'(\mathbf w^\top\mathbf z)]\mathbf w.
  • Sparse coding solves a lasso against a learned, norm-constrained dictionary. On natural image patches it learns localized, oriented, bandpass atoms resembling simple-cell receptive fields, as ICA does.
  • Identifiability is the recurring question: PCA up to rotations within repeated eigenvalues, NMF under separability-type conditions, ICA up to permutation and scale, and nonlinear ICA only with auxiliary information.

Check yourself

In the interactive lesson these are scored with your confidence, and what you miss comes back for review.

Question 1

Why do the Lee–Seung multiplicative updates keep WW and HH nonnegative?

  1. They project onto the nonnegative orthant after every step
  2. Each entry is multiplied by a ratio of nonnegative quantities; the per-entry step sizes are chosen to turn the gradient step into that multiplication
  3. They use a learning rate small enough that no entry can cross zero
  4. The minimum of the objective always has nonnegative factors
Show the answer

B. Each entry is multiplied by a ratio of nonnegative quantities; the per-entry step sizes are chosen to turn the gradient step into that multiplication

With ηaj=Haj/(W⊤WH)aj\eta_{aj}=H_{aj}/(W^\top WH)_{aj}, the gradient step becomes Haj←Haj(W⊤V)aj/(W⊤WH)ajH_{aj}\leftarrow H_{aj}(W^\top V)_{aj}/(W^\top WH)_{aj}, a product of nonnegative numbers. The flip side: an entry that hits zero stays zero.

Question 2

Why can ICA not separate two Gaussian sources?

  1. Gaussian variables are never independent
  2. Whitening fails for Gaussian data
  3. Whitened Gaussian data look the same after any rotation, so every rotation gives independent components and the mixing rotation cannot be identified
  4. The kurtosis of a Gaussian is infinite
Show the answer

C. Whitened Gaussian data look the same after any rotation, so every rotation gives independent components and the mixing rotation cannot be identified

After whitening, the sources are related to the data by an unknown rotation. A standard Gaussian vector is rotation-invariant, so all rotations of it have independent coordinates. Comon's theorem allows at most one Gaussian source for exactly this reason.

Question 3

What is known about computing an exact nonnegative matrix factorization?

  1. It can always be read off from the SVD
  2. It is solvable in time polynomial in the matrix size and the inner dimension rr
  3. It is undecidable
  4. It is NP-hard in general, polynomial in the matrix size for each fixed rr, and efficiently solvable under separability
Show the answer

D. It is NP-hard in general, polynomial in the matrix size for each fixed rr, and efficiently solvable under separability

Vavasis (2009) proved NP-hardness; Arora, Ge, Kannan & Moitra (2012) gave an algorithm polynomial for constant rr and a polynomial-time algorithm under separability; Moitra (2016) reduced the running time to (mn)O(r2)(mn)^{O(r^2)}, and time (mn)o(r)(mn)^{o(r)} would give a subexponential algorithm for 3-SAT.

Question 4

Dictionary learning minimizes ∑i12∥xi−Dαi∥2+λ∥αi∥1\sum_i\tfrac12\norm{\mathbf x_i-D\boldsymbol\alpha_i}^2+\lambda\norm{\boldsymbol\alpha_i}_1. Why must the atoms be constrained, say ∥dk∥≤1\norm{\mathbf d_k}\le1?

  1. To make the problem convex
  2. To make the atoms orthogonal
  3. Because otherwise scaling the atoms up and the codes down drives the ℓ1\ell_1 penalty to zero without changing the reconstruction, and sparsity disappears
  4. Because the lasso has a unique solution only with unit-norm columns
Show the answer

C. Because otherwise scaling the atoms up and the codes down drives the ℓ1\ell_1 penalty to zero without changing the reconstruction, and sparsity disappears

(cD)(α/c)=Dα(cD)(\boldsymbol\alpha/c)=D\boldsymbol\alpha while the penalty becomes λ∥α∥1/c\lambda\norm{\boldsymbol\alpha}_1/c. Letting c→∞c\to\infty makes the penalty vanish, so the infimum is the unpenalized fit and the codes need not be sparse.

Further reading

  • D. D. Lee & H. S. Seung, "Algorithms for non-negative matrix factorization," Advances in Neural Information Processing Systems 13 (2000).
  • S. Arora, R. Ge, R. Kannan & A. Moitra, "Computing a nonnegative matrix factorization — provably," Proceedings of the 44th ACM Symposium on Theory of Computing, 145–162 (2012).
  • P. Comon, "Independent component analysis, a new concept?," Signal Processing 36(3), 287–314 (1994).
  • A. Hyvärinen & E. Oja, "Independent component analysis: algorithms and applications," Neural Networks 13(4–5), 411–430 (2000).
  • B. A. Olshausen & D. J. Field, "Emergence of simple-cell receptive field properties by learning a sparse code for natural images," Nature 381, 607–609 (1996).