Tensor rank decomposition

From testwiki
Jump to navigation Jump to search

Template:Short description In multilinear algebra, the tensor rank decomposition [1] or rank-R decomposition is the decomposition of a tensor as a sum of R rank-1 tensors, where R is minimal. Computing this decomposition is an open problem.Template:Clarify

Canonical polyadic decomposition (CPD) is a variant of the tensor rank decomposition, in which the tensor is approximated as a sum of K rank-1 tensors for a user-specified K. The CP decomposition has found some applications in linguistics and chemometrics. It was introduced by Frank Lauren Hitchcock in 1927[2] and later rediscovered several times, notably in psychometrics.[3][4] The CP decomposition is referred to as CANDECOMP,[3] PARAFAC,[4] or CANDECOMP/PARAFAC (CP). Note that the PARAFAC2 rank decomposition is a variation of the CP decomposition.[5]

Another popular generalization of the matrix SVD known as the higher-order singular value decomposition computes orthonormal mode matrices and has found applications in econometrics, signal processing, computer vision, computer graphics, and psychometrics.

Notation

A scalar variable is denoted by lower case italic letters, a and an upper bound scalar is denoted by an upper case italic letter, A.

Indices are denoted by a combination of lowercase and upper case italic letters, 1iI. Multiple indices that one might encounter when referring to the multiple modes of a tensor are conveniently denoted by 1imIm where 1mM.

A vector is denoted by a lower case bold Times Roman, ๐š and a matrix is denoted by bold upper case letters ๐€.

A higher order tensor is denoted by calligraphic letters,๐’œ. An element of an M-order tensor ๐’œโ„‚I1×I2×Im×IM is denoted by ai1,i2,,im,iM or ๐’œi1,i2,,im,iM.

Definition

A data tensor ๐’œ๐”ฝI0×I1××IC is a collection of multivariate observations organized into a Template:Mvar-way array where Template:Mvar=Template:Mvar+1. Every tensor may be represented with a suitably large R as a linear combination of r rank-1 tensors:

๐’œ=r=1Rλr๐š0,r๐š1,r๐š2,r๐šc,r๐šC,r,

where λrโ„ and ๐šm,r๐”ฝIm where 1mM. When the number of terms R is minimal in the above expression, then R is called the rank of the tensor, and the decomposition is often referred to as a (tensor) rank decomposition, minimal CP decomposition, or Canonical Polyadic Decomposition (CPD). If the number of terms is not minimal, then the above decomposition is often referred to as CANDECOMP/PARAFAC, Polyadic decomposition'.

Tensor rank

Contrary to the case of matrices, computing the rank of a tensor is NP-hard.[6] The only notable well-understood case consists of tensors in FImFInF2, whose rank can be obtained from the Kroneckerโ€“Weierstrass normal form of the linear matrix pencil that the tensor represents.[7] A simple polynomial-time algorithm exists for certifying that a tensor is of rank 1, namely the higher-order singular value decomposition.

The rank of the tensor of zeros is zero by convention. The rank of a tensor ๐š1๐šM is one, provided that ๐šmFIm{0}.

Field dependence

The rank of a tensor depends on the field over which the tensor is decomposed. It is known that some real tensors may admit a complex decomposition whose rank is strictly less than the rank of a real decomposition of the same tensor. As an example,[8] consider the following real tensor

๐’œ=๐ฑ1๐ฑ2๐ฑ3+๐ฑ1๐ฒ2๐ฒ3๐ฒ1๐ฑ2๐ฒ3+๐ฒ1๐ฒ2๐ฑ3,

where ๐ฑi,๐ฒjโ„2. The rank of this tensor over the reals is known to be 3, while its complex rank is only 2 because it is the sum of a complex rank-1 tensor with its complex conjugate, namely

๐’œ=12(๐ณยฏ1๐ณ2๐ณยฏ3+๐ณ1๐ณยฏ2๐ณ3),

where ๐ณk=๐ฑk+i๐ฒk.

In contrast, the rank of real matrices will never decrease under a field extension to โ„‚: real matrix rank and complex matrix rank coincide for real matrices.

Generic rank

The generic rank r(I1,,IM) is defined as the least rank r such that the closure in the Zariski topology of the set of tensors of rank at most r is the entire space FI1FIM. In the case of complex tensors, tensors of rank at most r(I1,,IM) form a dense set S: every tensor in the aforementioned space is either of rank less than the generic rank, or it is the limit in the Euclidean topology of a sequence of tensors from S. In the case of real tensors, the set of tensors of rank at most r(I1,,IM) only forms an open set of positive measure in the Euclidean topology. There may exist Euclidean-open sets of tensors of rank strictly higher than the generic rank. All ranks appearing on open sets in the Euclidean topology are called typical ranks. The smallest typical rank is called the generic rank; this definition applies to both complex and real tensors. The generic rank of tensor spaces was initially studied in 1983 by Volker Strassen.[9]

As an illustration of the above concepts, it is known that both 2 and 3 are typical ranks of โ„2โ„2โ„2 while the generic rank of โ„‚2โ„‚2โ„‚2 is 2. Practically, this means that a randomly sampled real tensor (from a continuous probability measure on the space of tensors) of size 2×2×2 will be a rank-1 tensor with probability zero, a rank-2 tensor with positive probability, and rank-3 with positive probability. On the other hand, a randomly sampled complex tensor of the same size will be a rank-1 tensor with probability zero, a rank-2 tensor with probability one, and a rank-3 tensor with probability zero. It is even known that the generic rank-3 real tensor in โ„2โ„2โ„2 will be of complex rank equal to 2.

The generic rank of tensor spaces depends on the distinction between balanced and unbalanced tensor spaces. A tensor space FI1FIM, where I1I2IM, is called unbalanced whenever

I1>1+m=2MImm=2M(Im1),

and it is called balanced otherwise.

Unbalanced tensor spaces

When the first factor is very large with respect to the other factors in the tensor product, then the tensor space essentially behaves as a matrix space. The generic rank of tensors living in an unbalanced tensor spaces is known to equal

r(I1,,IM)=min{I1,m=2MIm}

almost everywhere. More precisely, the rank of every tensor in an unbalanced tensor space FI1××IMZ, where Z is some indeterminate closed set in the Zariski topology, equals the above value.[10]

Balanced tensor spaces

The expected generic rank of tensors living in a balanced tensor space is equal to

rE(I1,,IM)=ΠΣ+1

almost everywhere for complex tensors and on a Euclidean-open set for real tensors, where

Π=m=1MImandΣ=m=1M(Im1).

More precisely, the rank of every tensor in โ„‚I1××IMZ, where Z is some indeterminate closed set in the Zariski topology, is expected to equal the above value.[11] For real tensors, rE(I1,,IM) is the least rank that is expected to occur on a set of positive Euclidean measure. The value rE(I1,,IM) is often referred to as the expected generic rank of the tensor space FI1××IM because it is only conjecturally correct. It is known that the true generic rank always satisfies

r(I1,,IM)rE(I1,,IM).

The Aboโ€“Ottavianiโ€“Peterson conjecture[11] states that equality is expected, i.e., r(I1,,IM)=rE(I1,,IM), with the following exceptional cases:

  • F(2m+1)×(2m+1)×3 with m=1,2,
  • F(m+1)×(m+1)×2×2 with m=2,3,

In each of these exceptional cases, the generic rank is known to be r(I1,,Im,,IM)=rE(I1,,IM)+1. Note that while the set of tensors of rank 3 in F2×2×2×2 is defective (13 and not the expected 14), the generic rank in that space is still the expected one, 4. Similarly, the set of tensors of rank 5 in F4×4×3 is defective (44 and not the expected 45), but the generic rank in that space is still the expected 6.

The AOP conjecture has been proved completely in a number of special cases. Lickteig showed already in 1985 that r(n,n,n)=rE(n,n,n), provided that n3.[12] In 2011, a major breakthrough was established by Catalisano, Geramita, and Gimigliano who proved that the expected dimension of the set of rank s tensors of format 2×2××2 is the expected one except for rank 3 tensors in the 4 factor case, yet the expected rank in that case is still 4. As a consequence, r(2,2,,2)=rE(2,2,,2) for all binary tensors.[13]

Maximum rank

The maximum rank that can be admitted by any of the tensors in a tensor space is unknown in general; even a conjecture about this maximum rank is missing. Presently, the best general upper bound states that the maximum rank rmax(I1,,IM) of FI1FIM, where I1I2IM, satisfies

rmax(I1,,IM)min{m=2MIm,2r(I1,,IM)},

where r(I1,,IM) is the (least) generic rank of FI1FIM.[14] It is well-known that the foregoing inequality may be strict. For instance, the generic rank of tensors in โ„2×2×2 is two, so that the above bound yields rmax(2,2,2)4, while it is known that the maximum rank equals 3.[8]

Border rank

A rank-s tensor ๐’œ is called a border tensor if there exists a sequence of tensors of rank at most r<s whose limit is ๐’œ. If r is the least value for which such a convergent sequence exists, then it is called the border rank of ๐’œ. For order-2 tensors, i.e., matrices, rank and border rank always coincide, however, for tensors of order 3 they may differ. Border tensors were first studied in the context of fast approximate matrix multiplication algorithms by Bini, Lotti, and Romani in 1980.[15]

A classic example of a border tensor is the rank-3 tensor

๐’œ=๐ฎ๐ฎ๐ฏ+๐ฎ๐ฏ๐ฎ+๐ฏ๐ฎ๐ฎ,with ๐ฎ=๐ฏ=1 and ๐ฎ,๐ฏ1.

It can be approximated arbitrarily well by the following sequence of rank-2 tensors

๐’œm=m(๐ฎ+1m๐ฏ)(๐ฎ+1m๐ฏ)(๐ฎ+1m๐ฏ)m๐ฎ๐ฎ๐ฎ=๐ฎ๐ฎ๐ฏ+๐ฎ๐ฏ๐ฎ+๐ฏ๐ฎ๐ฎ+1m(๐ฎ๐ฏ๐ฏ+๐ฏ๐ฎ๐ฏ+๐ฏ๐ฏ๐ฎ)+1m2๐ฏ๐ฏ๐ฏ

as m. Therefore, its border rank is 2, which is strictly less than its rank. When the two vectors are orthogonal, this example is also known as a W state.

Properties

Identifiability

It follows from the definition of a pure tensor that ๐’œ=๐š1๐š2๐šM=๐›1๐›2๐›M if and only if there exist λk such that λ1λ2λM=1 and ๐šm=λm๐›m for all m. For this reason, the parameters {๐šm}m=1M of a rank-1 tensor ๐’œ are called identifiable or essentially unique. A rank-r tensor ๐’œFI1FI2FIM is called identifiable if every of its tensor rank decompositions is the sum of the same set of r distinct tensors {๐’œ1,๐’œ2,,๐’œr} where the ๐’œi's are of rank 1. An identifiable rank-r thus has only one essentially unique decomposition ๐’œ=i=1r๐’œi,and all r! tensor rank decompositions of ๐’œ can be obtained by permuting the order of the summands. Observe that in a tensor rank decomposition all the ๐’œi's are distinct, for otherwise the rank of ๐’œ would be at most r1.

Generic identifiability

Order-2 tensors in FI1FI2FI1×I2, i.e., matrices, are not identifiable for r>1. This follows essentially from the observation ๐’œ=i=1r๐ši๐›i=i=1r๐ši๐›iT=ABT=(AX1)(BXT)T=i=1r๐œi๐iT=i=1r๐œi๐i,where XGLr(F) is an invertible r×r matrix, A=[๐ši]i=1r , B=[๐›i]i=1r, AX1=[๐œi]i=1r and BXT=[๐i]i=1r. It can be shown[16] that for every XGLn(F)Z, where Z is a closed set in the Zariski topology, the decomposition on the right-hand side is a sum of a different set of rank-1 tensors than the decomposition on the left-hand side, entailing that order-2 tensors of rank r>1 are generically not identifiable.

The situation changes completely for higher-order tensors in FI1FI2FIM with M>2 and all Im2. For simplicity in notation, assume without loss of generality that the factors are ordered such that I1I2IM2. Let SrFI1FImFIMdenote the set of tensors of rank bounded by r. Then, the following statement was proved to be correct using a computer-assisted proof for all spaces of dimension Π<15000,[17] and it is conjectured to be valid in general:[17][18][19]

There exists a closed set Zr in the Zariski topology such that every tensor ๐’œSrZris identifiable (Sr is called generically identifiable in this case), unless either one of the following exceptional cases holds:

  1. The rank is too large: r>rE(I1,I2,,IM);
  2. The space is identifiability-unbalanced, i.e., I1>m=2Mimm=2M(Im1), and the rank is too large: rm=2MImm=2M(Im1);
  3. The space is the defective case F4F4F3 and the rank is r=5;
  4. The space is the defective case FnFnF2F2, where n2, and the rank is r=2n1;
  5. The space is F4F4F4 and the rank is r=6;
  6. The space is F6F6F3 and the rank is r=8; or
  7. The space is F2F2F2F2F2 and the rank is r=5.
  8. The space is perfect, i.e., rE(I1,I2,,IM)=ΠΣ+1 is an integer, and the rank is r=rE(I1,I2,,IM).

In these exceptional cases, the generic (and also minimum) number of complex decompositions is

  • proved to be in the first 4 cases;
  • proved to be two in case 5;[20]
  • expected[21] to be six in case 6;
  • proved to be two in case 7;[22] and
  • expected[21] to be at least two in case 8 with exception of the two identifiable cases F5F4F3 and F3F2F2F2.

In summary, the generic tensor of order M>2 and rank r<ΠΣ+1 that is not identifiability-unbalanced is expected to be identifiable (modulo the exceptional cases in small spaces).

Ill-posedness of the standard approximation problem

The rank approximation problem asks for the rank-r decomposition closest (in the usual Euclidean topology) to some rank-s tensor ๐’œ, where r<s. That is, one seeks to solve

min๐šimFIm๐’œi=1r๐ši1๐ši2๐šiMF,

where F is the Frobenius norm.

It was shown in a 2008 paper by de Silva and Lim[8] that the above standard approximation problem may be ill-posed. A solution to aforementioned problem may sometimes not exist because the set over which one optimizes is not closed. As such, a minimizer may not exist, even though an infimum would exist. In particular, it is known that certain so-called border tensors may be approximated arbitrarily well by a sequence of tensor of rank at most r, even though the limit of the sequence converges to a tensor of rank strictly higher than r. The rank-3 tensor

๐’œ=๐ฎ๐ฎ๐ฏ+๐ฎ๐ฏ๐ฎ+๐ฏ๐ฎ๐ฎ,with ๐ฎ=๐ฏ=1 and ๐ฎ,๐ฏ1

can be approximated arbitrarily well by the following sequence of rank-2 tensors

๐’œn=n(๐ฎ+1n๐ฏ)(๐ฎ+1n๐ฏ)(๐ฎ+1n๐ฏ)n๐ฎ๐ฎ๐ฎ

as n. This example neatly illustrates the general principle that a sequence of rank-r tensors that converges to a tensor of strictly higher rank needs to admit at least two individual rank-1 terms whose norms become unbounded. Stated formally, whenever a sequence

๐’œn=i=1r๐ši,n1๐ši,n2๐ši,nM

has the property that ๐’œn๐’œ (in the Euclidean topology) as n, then there should exist at least 1ijr such that

๐ši,n1๐ši,n2๐ši,nMF and ๐šj,n1๐šj,n2๐šj,nMF

as n. This phenomenon is often encountered when attempting to approximate a tensor using numerical optimization algorithms. It is sometimes called the problem of diverging components. It was, in addition, shown that a random low-rank tensor over the reals may not admit a rank-2 approximation with positive probability, leading to the understanding that the ill-posedness problem is an important consideration when employing the tensor rank decomposition.

A common partial solution to the ill-posedness problem consists of imposing an additional inequality constraint that bounds the norm of the individual rank-1 terms by some constant. Other constraints that result in a closed set, and, thus, well-posed optimization problem, include imposing positivity or a bounded inner product strictly less than unity between the rank-1 terms appearing in the sought decomposition.

Calculating the CPD

Alternating algorithms:

Direct algorithms:

General optimization algorithms:

General polynomial system solving algorithms:

Applications

In machine learning, the CP-decomposition is the central ingredient in learning probabilistic latent variables models via the technique of moment-matching. For example, consider the multi-view model[32] which is a probabilistic latent variable model. In this model, the generation of samples are posited as follows: there exists a hidden random variable that is not observed directly, given which, there are several conditionally independent random variables known as the different "views" of the hidden variable. For example, assume there are three views x1,x2,x3 of a k-state categorical hidden variable h. Then the empirical third moment of this latent variable model E[x1x2x3] is a rank 3 tensor and can be decomposed as: E[x1x2x3]=i=1kPr(h=i)E[x1|h=i]E[x2|h=i]E[x3|h=i].

In applications such as topic modeling, this can be interpreted as the co-occurrence of words in a document. Then the coefficients in the decomposition of this empirical moment tensor can be interpreted as the probability of choosing a specific topic and each column of the factor matrix E[x|h=i] corresponds to probabilities of words in the vocabulary in the corresponding topic.

See also

References

Template:Reflist

Further reading

Template:Tensors