Skip to article
← All posts

Tensor geometry

When the best low-rank tensor approximation does not exist

A rank-three tensor can be approximated arbitrarily well by rank-two tensors.

Truncating the singular value decomposition gives a best low-rank approximation of a matrix. For tensors, the corresponding minimizer need not exist: the set of tensors with a given rank bound may not be closed.

For tensors, this closedness can fail. The best approximation may not exist. Already for a \(2\times2\times2\) array, a sequence of tensors with two rank-one terms can approach a tensor that needs three. The approximation error tends to zero while the individual components blow up.

This example is part of the systematic analysis of de Silva and Lim [1]. Its proof only needs two matrix slices and a determinant.

Tensor rank

An order-\(d\) tensor is an array \(T\in\mathbb R^{n_1\times\cdots\times n_d}\). The outer product of \(d\) vectors is the array

\[(u^{(1)}\otimes\cdots\otimes u^{(d)})_{i_1,\ldots,i_d} =u^{(1)}_{i_1}\cdots u^{(d)}_{i_d}.\]

When nonzero, such a tensor has rank one. For \(d=2\), this is just the matrix \(uv^\top\). The CP rank, for canonical polyadic rank, counts the smallest number of such terms:

\[\operatorname{rank}_{\rm CP}(T) =\min\left\{r:T=\sum_{\ell=1}^r u_\ell^{(1)}\otimes\cdots\otimes u_\ell^{(d)}\right\}.\]

Set the rank of zero to zero. This agrees with matrix rank at order two. CP decompositions are also called CANDECOMP or PARAFAC; see Kolda and Bader [2].

The set relevant for best approximation is the set of rank at most \(r\),

\[\mathcal R_r=\{T:\operatorname{rank}_{\rm CP}(T)\le r\},\qquad \inf_{S\in\mathcal R_r}\lVert T-S\rVert_F,\]

where \(\lVert T\rVert_F^2=\sum_{i_1,\ldots,i_d}|T_{i_1,\ldots,i_d}|^2\). In a finite-dimensional space, a nearest point exists in every nonempty closed set: restrict a minimizing sequence to a bounded ball and extract a convergent subsequence. Thus closedness is the first question to ask.

A derivative of rank-one tensors

Let \(e_1,e_2\) be the standard basis of \(\mathbb R^2\), and define

\[W=e_2\otimes e_1\otimes e_1 +e_1\otimes e_2\otimes e_1 +e_1\otimes e_1\otimes e_2.\]

The displayed expression has three terms. To construct a two-term approximation, for \(\varepsilon\ne0\), take

\[T_\varepsilon= \frac{(e_1+\varepsilon e_2)^{\otimes3}-e_1^{\otimes3}}{\varepsilon}.\]

Each numerator term is decomposable, so \(\operatorname{rank}_{\rm CP}(T_\varepsilon)\le2\). Expanding the product gives

\[\begin{aligned} T_\varepsilon-W &=\varepsilon(e_2\otimes e_2\otimes e_1 +e_2\otimes e_1\otimes e_2+e_1\otimes e_2\otimes e_2)\\ &\quad+\varepsilon^2e_2^{\otimes3}, \end{aligned}\] \[\lVert T_\varepsilon-W\rVert_F =\sqrt{3\varepsilon^2+\varepsilon^4}\longrightarrow0.\]

It remains to prove that the limit cannot itself have two terms.

Theorem 1 (rank three, border rank two). The tensor \(W\) has CP rank three, but lies in the closure of \(\mathcal R_2\). Consequently,

\[\inf_{S\in\mathcal R_2}\lVert W-S\rVert_F=0, \qquad\text{and the infimum is not attained.}\]
Proof: a two-dimensional slice space with only one rank-one direction

Fixing the third index of \(W\) gives the matrix slices

\[A=\begin{pmatrix}0&1\\1&0\end{pmatrix},\qquad B=\begin{pmatrix}1&0\\0&0\end{pmatrix}.\]

They are linearly independent. If \(W=u_1\otimes v_1\otimes w_1+u_2\otimes v_2\otimes w_2\), both slices would lie in the span of the rank-one matrices \(u_1v_1^\top,u_2v_2^\top\). Independence of the slices forces these two matrices to be independent as well, and hence their span must be exactly \(\operatorname{span}\{A,B\}\).

Yet every matrix in this slice space has the form

\[aA+bB=\begin{pmatrix}b&a\\a&0\end{pmatrix}, \qquad \det(aA+bB)=-a^2.\]

A nonzero \(2\times2\) matrix has rank one precisely when its determinant vanishes. Here this requires \(a=0\): the only rank-one direction is the line through \(B\). The space cannot contain two independent rank-one matrices. This contradiction rules out a two-term decomposition. The three-term expression proves rank exactly three. The sequence above proves the approximation claim. \(\square\)

The border rank of a tensor is the smallest \(r\) such that it belongs to the closure of \(\mathcal R_r\). Thus border rank counts how many terms are sufficient with arbitrarily small error, whereas CP rank counts how many are needed exactly. For \(W\), these answers differ.

Tangent directions and border rank

Consider the rank-one curve \(\gamma(t)=(e_1+te_2)^{\otimes3}\). Our tensor is \(W=\gamma'(0)\), and \(T_\varepsilon\) is its secant slope. A tangent direction to the rank-one cone can require three terms even though every secant slope uses two [3].

Secants to a rank-one curve approach a tangent; their difference quotient approaches W, which has rank three.γ(0)γ(ε)Secant slopes: rank ≤ 2Tangent W: rank = 3Schematic, not an isometric plot
A derivative can be more expensive to represent exactly than the finite differences approaching it.

The norms of the two components in \(T_\varepsilon\) are

\[\frac{(1+\varepsilon^2)^{3/2}}{|\varepsilon|} \quad\text{and}\quad\frac1{|\varepsilon|}.\]

They diverge, but their difference stays bounded. More generally, any sequence of two-term decompositions converging to \(W\) must have unbounded component norms along a subsequence. Otherwise normalize each component’s factors, absorb their norms into bounded scalar coefficients, and extract convergent subsequences. The limit would be a two-term decomposition of \(W\), which is impossible. Changing the optimization algorithm cannot remove this problem with the representation.

Closedness of bounded-rank sets

Proposition 1. The set \(\mathcal R_1\) is closed for tensors of any order. For matrices, every set \(\mathcal R_r\) is closed.

Proof: compact unit factors, or vanishing minors

Write a convergent rank-at-most-one sequence as \(S_k=\lambda_k u_{1,k}\otimes\cdots\otimes u_{d,k}\), with unit factors. Zero terms cause no difficulty. Because \(\lVert S_k\rVert_F=|\lambda_k|\), the coefficients are bounded. Compactness of the unit spheres gives a subsequence on which all factors and the coefficient converge; its limit is again rank at most one.

For a matrix, rank at most \(r\) is equivalent to all \((r+1)\times(r+1)\) minors vanishing. These polynomial equalities define a closed set. This is the existence property behind the best-approximation theorem of Eckart and Young [4]. \(\square\)

Do not confuse rank at most one with rank exactly one: the latter is not closed even for matrices, since a nonzero rank-one matrix can tend to zero. In our example, the limit’s rank instead jumps up.

The counterexample extends to larger dimensions by padding with zeros, and to higher orders by tensoring with fixed nonzero vectors. Both preserve its rank: coordinate projection or contraction back to the original tensor gives the reverse inequality. More generally, de Silva and Lim prove that, for real order-\(d\ge3\) tensors with all \(n_i\ge2\), \(\mathcal R_r\) is nonclosed whenever \(2\le r\le\min_i n_i\) [1, Theorem 4.10]. No claim is made for every larger rank; eventually the rank bound includes the whole space.

This obstruction is specific to CP rank. A Tucker or multilinear rank bound restricts the matrix rank of each unfolding and hence defines a closed set [2]. Best-approximation results therefore depend on the notion of tensor rank being used.

Bibliography

  1. Vin de Silva and Lek-Heng Lim. Tensor rank and the ill-posedness of the best low-rank approximation problem. SIAM Journal on Matrix Analysis and Applications 30(3), 1084–1127, 2008. Paper.
  2. Tamara G. Kolda and Brett W. Bader. Tensor Decompositions and Applications. SIAM Review 51(3), 455–500, 2009. Paper · Author page.
  3. Lek-Heng Lim. Tensors in computations. Acta Numerica 30, 555–764, 2021. Author PDF.
  4. Carl Eckart and Gale Young. The approximation of one matrix by another of lower rank. Psychometrika 1, 211–218, 1936. Paper.

How these posts and numerical experiments were prepared: AI disclosure.

Subscribe with an RSS reader: RSS Atom

How to subscribe

RSS and Atom let a reader app collect new posts for you; they are not email subscriptions. Opening these links in Safari may display plain text instead of a subscription form.

  1. Open an RSS reader, such as NetNewsWire on Mac.
  2. Choose Add feed or Subscribe in your reader (NetNewsWire calls it New Web Feed), then paste the RSS feed URL below. You can also use the Atom link above.

To copy manually, select the URL and press Command+C on Mac or Ctrl+C on Windows/Linux.

Back to the blog · Gabriel Peyré