An Algorithmic Proof of Kruskal’s Tensor Decomposition Theorem
Abstract
A famous theorem of Kruskal gives the simplest and arguably most fundamental criterion under which a tensor is guaranteed a unique minimum-rank decomposition. Kruskal’s condition requires that the sum of the Kruskal ranks of the components satisfies , where denotes the rank and the order of the tensor. However, Kruskal’s original proof and subsequent simplifications/generalizations have remained non-constructive. With the sole exception of the case , attributed to Jennrich – no algorithm has been established for decomposing tensors under the Kruskal condition without additional assumptions. In fact, whether there exists an efficient algorithm for decomposing a tensor under the Kruskal condition was explicitly posed as an open problem in the work of Bhaskara et al. (COLT 2014). Even slight variations of the Jennrich special case, such as the case, have remained algorithmically open; specifically, no sub-exponential time bound was known.
In this work, we make progress on this problem by giving an elementary, constructive proof of Kruskal’s Theorem for general -way tensors. Concretely, we give a randomized algorithm that decomposes any tensor satisfying the Kruskal condition by utilizing random projections to map the problem into a geometry of intersecting hyperplanes via a MinRank instance. Specifically for -way tensors satisfying , the algorithm achieves a runtime of where . Thus, we extend smoothly beyond the Jennrich special case, achieving polynomial-time complexity for any family of tensors that satisfies the Kruskal condition, provided the least Kruskal rank is bounded.
Keywords and phrases:
Tensor decomposition, Kruskal’s theorem, tensor rank, MinRank, algebraic algorithmsCategory:
Track A: Algorithms, Complexity and GamesFunding:
Vishwas Bhargava: Part of this work was done when the author was a postdoc at Caltech, supported by Prof. Christopher Umans’ Simons Foundation award.Copyright and License:
2012 ACM Subject Classification:
Theory of computation Algebraic complexity theory ; Theory of computation Design and analysis of algorithmsEditors:
Sayan Bhattacharya, Danupon Nanongkai, Michael Benedikt, and Gabriele PuppisSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
Tensor decomposition is a fundamental tool for modern science, with applications ranging from machine learning and statistics to signal processing and computational complexity. In a nutshell, tensors are multi-dimensional arrays with entries from a field . For instance, a 3-dimensional (or 3-way or 3-mode) tensor can be written as .
A tensor can always be written as the sum of rank tensors; such an expression is known as a tensor decomposition.111Also known as the CANDECOMP/PARAFAC (CP) decomposition. Here, a rank 1 tensor over a field is the outer product of nonzero vectors, written as
If the decomposition consists of summands, it is called an -decomposition. The minimal for which there exists an -decomposition is defined as the tensor rank of , and such a decomposition is then referred to as a rank decomposition.
When has a decomposition
we define the components as, for each , the matrix with columns :
The vector space containing will be referred to as the ’th mode of the tensor. We also employ the shorthand notation
A primary reason for the wide applicability of tensors is that their rank decomposition can be unique (also known as identifiable), a property that matrices (unless of rank 1) lack. The motivations for identifiability in data analysis (beginning at least with work of the psychologist Spearman on tests of intelligence [28]) are abundantly discussed in many references e.g., [6, 12, 24]. We refer the interested reader to these works and the references therein.
The most celebrated criterion for uniqueness of tensor decomposition was given by Kruskal in 1977 [19] (and see [17, 18]). The Kruskal rank (or -rank) of a matrix is the maximum integer such that every subset of columns is linearly independent. Clearly, -rank rank. Kruskal’s uniqueness theorem states that if a tensor has an -decomposition , and the -ranks of the components satisfy
| (1) |
then and the decomposition is unique up to permutation and scaling of the columns (going forward we omit the “up to scaling and permutation”). The inequality in (1) is the Kruskal Condition.
While the theorem guarantees that a unique decomposition exists, the original proof and subsequent simplifications (e.g., [29, 25, 21]) are existential rather than constructive. This limitation is widely recognized. The question of whether there is a hardness result for tensor decomposition, or conversely, whether there exists an efficient (polynomial-time) algorithm for decomposing a tensor under the general conditions of Kruskal’s uniqueness theorem – and whether there is an algorithmic proof of the theorem itself – was explicitly posed as a major open problem in COLT 2014 by Bhaskara et al. [5], carrying a $100 reward.
It is important to note that while the tensor rank problem (and therefore also the problem of finding a decomposition of specified rank) is NP-hard, it remains unknown whether this hardness persists when the input tensor is promised to satisfy the Kruskal condition. The only significant special case of the Kruskal condition in which an efficient algorithm is known is the case that is due (prior to Kruskal’s work) to Jennrich, in which two of the components are invertible () while the third has Kruskal rank at least . Even this restricted case has found surprisingly many applications in computer science and statistics. However, even a slight variation, such as the case, has, to the best of our knowledge, remained algorithmically open. This was the original motivation for our work.
1.1 Our contribution
We give the first algorithmic proof of the Kruskal theorem. Rather than relying on an existential argument, we use structural implications of the Kruskal condition to recover the components directly. For ease of presentation, we state our results over the real field . Our algorithm and its runtime guarantee is stated in the Real RAM model, where arithmetic over the reals is exact and unit cost. However, the algorithm can be easily implemented over the rationals using standard Turing machines. That is, if the unknown decomposition is in fact rational, then our algorithm can work entirely over the rationals. There is a known polynomial-time reduction (in the input size ) that converts an -way tensor satisfying the Kruskal condition into a 3-way tensor that also satisfies the Kruskal condition (see Theorem 3 in [27] or Lemma 24 in the Appendix).222Lemma 24 proves that every Kruskal -mode tensor has a Kruskal 3-reshaping. Polynomial-time follows from the fact that the number of ways to reshape the tensor is polynomial in the input size. Consequently, we focus our analysis on the 3-way case.
As our objective is to design a decomposition algorithm for Kruskal tensors, we assume satisfies the Kruskal condition:
We set . This value governs both the time complexity and the core technical arguments of our algorithm.
Theorem 1 (Algorithmic Kruskal for 3-tensors).
Let be a tensor with a decomposition such that the components have Kruskal ranks respectively satisfying the Kruskal condition . Then there exists a randomized algorithm that recovers the components in time with high probability.
By definition, . If the Kruskal condition holds with some slack (i.e., ), we can effectively replace the smallest Kruskal rank with this smaller value that saturates the bound. For example, if all Kruskal ranks are , then .
Our work settles the request of Bhaskara et al. [5] for an algorithmic proof of the Kruskal theorem, and makes substantial progress on the efficiency question without fully settling it: we provide a time complexity upper bound for decomposing Kruskal tensors that scales exponentially with respect to the minimum Kruskal rank of the modes. Notably, for (previously open) instances “close” to the Jennrich case – such as the regime for fixed – our algorithm is polynomial in the input size. By contrast, the best existing method, the brute-force approach of reducing the decomposition to an algebraic system, will typically require time for due to the unknowns involved.
We should mention that in the -to- reduction alluded to above, the initial -way tensor does not strictly need to satisfy the Kruskal condition; it is sufficient that it should reduce to a 3-way instance which does. The reduction is achieved by “clubbing” various modes together through Khatri-Rao products – a standard reshaping technique in the literature. (For the -to- reduction see [27, 22, 8], or Sections 5 and A.) By partitioning the modes into sets such that the resulting reshaped tensor satisfies the 3-way Kruskal criteria, we effectively provide a constructive proof for the more general Reshaped Kruskal Theorem.
Theorem 2 (Reshaped Kruskal Theorem).
Consider an -way tensor with an -rank decomposition . If there exists a partition of the modes such that the Kruskal ranks of the partitioned (Khatri-Rao) matrices satisfy:
then and the decomposition is unique. Furthermore, there exists a randomized algorithm that recovers the components in time with high probability, where is the input size, and .
1.2 Related Work
Tensor decomposition is a highly active area of research with many fundamental open problems and landmark results. Here, we mention some of these results with a focus on the identifiability and computational complexity of the problem (and omitting entirely the extensive literature in algebraic complexity theory).
On identifiability, the work of Lovitz and Petrov [22] provides an elegant generalization of Kruskal’s theorem using ideas from matroid theory. It is not clear whether our method can be extended to their generalization.
On the complexity and algorithmic side, determining tensor rank is famously NP-hard [13, 14]. Consequently, one cannot expect efficient algorithms to determine rank or find decompositions for general input tensors. The Kruskal framework is the least restrictive in which hardness is not known. The Kruskal condition is also tight [10]. From this point of view our result is a worst-case tensor decomposition algorithm, unlike “generic” uniqueness or decomposition theorems. Indeed, most research on tensor decomposition algorithms has focused on tensors with additional non-degeneracy conditions; tensors drawn from specific distributions; or heuristic approaches. We discuss some of these results now, moving from no assumptions to progressively adding more structure; as we will see, the assumptions have a tremendous effect on the rank parameters we can efficiently decompose.
In the worst-case setting for 3-dimensional tensors, one essentially cannot outperform brute force, which involves solving systems over the base field. Formally, Schaefer and Stefankovic [26] showed that for any field , given a system of algebraic equations over , we can in polynomial time construct a 3-dimensional tensor (with a linear blowup) and an integer such that has a solution in if and only if has rank at most over . However, for higher -dimensional tensors, there exists an FPT-style worst-case algorithm with runtime [4]. The next level is the generic setting, where the input tensor can be anything barring a (result-specific) lower-dimensional algebraic variety. For generic tensors, Chiantini and Ottaviani [7] prove the uniqueness of decomposition up to rank . Again in the generic setting, Kothari et al. [16] recently provided an efficient decomposition algorithm for families of tensors with rank approaching . Adding even more structure (and moving towards applications), one has the average-case setting; for instance, Ma et al. [23] deployed techniques from the Sum-of-Squares hierarchy to reach rank for tensors drawn from Gaussian decomposition.
2 Proof Overview
We focus our analysis on 3-way tensors, as decomposition of -way tensors can be reduced in a standard fashion to the 3-way case through the reshaping procedure alluded to in Section 1.1. Let be a tensor that satisfies the Kruskal condition , and has a decomposition . Since part of our goal is to reprove the Kruskal theorem, we shall not assume that this decomposition is unique. As per our notation, we define components , , and .
We start by recovering a single component, say . Towards this end, we turn to a geometric point of view. Namely, we complete an equivalent task: recovering the hyperplanes orthogonal to the columns of . This task is completed in two steps. First we identify all the intersection points of the hyperplanes (collectively these form a zero-dimensional variety); then we reconstruct the hyperplane arrangement, given the intersection points. We refer to the combination of these two steps as the identifiability test, as this test establishes the identifiability of the (projected) component .
Both steps require that the hyperplane arrangement lie in general position, meaning the intersection of any hyperplanes has dimension . Conveniently, this can be accomplished with probability 1 via a random projection (see Lemma 13).
The identifiability test
To identify the intersection points, we construct a MinRank instance333The MinRank search problem is the task of finding a linear combination of given matrices that minimizes the rank of the resulting matrix. See e.g., [11, 1] whose solutions correspond precisely to the aforementioned intersection points. Let be the projected tensor, where is a random matrix ( means that the -th mode of the tensor is contracted against the rows of matrix ). For variables where , and is the vector , we define the -mode contraction:
| (2) |
In words, is the linear combination of 2nd mode slices associated with coefficients . Under the Kruskal condition, we show that for all , . Crucially, we prove that the matrix achieves this minimum rank if and only if has exactly zeros.
We only look at slice combinations of the form because fixing the last entry ensures that -intersections are 0-dimensional (points). A more subtle reason for this choice is the projective nature of tensor decomposition; since we can scale components freely, we have the freedom to look for one fewer variable in the search for these hyperplanes.
Geometrically, this implies that the minimizers of are precisely the -wise intersection points of the hyperplanes defined by the columns of the projected component (see Theorem 14). This already is a significant step toward identifiability, as the matrix depends solely on the observable tensor rather than the hidden decomposition itself. We are essentially reducing tensor decomposition to the search problem associated with MinRank. We denote
| (3) |
where for a random .444The parameter is the number of matrices in the MinRank instance, since is a sum of the matrices , where denotes the -th row of .
It is a geometric fact that the set of -wise intersection points of an arrangement of hyperplanes in general position in , determine those hyperplanes; and in addition, the hyperplanes can be efficiently computed from the intersection points. This allows us to reconstruct the matrix (see Algorithm HP-reconstruction and Lemma 17).
The identifiability test is the heart of our algorithmic proof of Kruskal’s Theorem. Establishing the uniqueness of the projected component via this test effectively reduces the problem to the Jennrich setting, where uniqueness is well-understood and efficient decomposition applies (see Lemma 18). With and at our disposal, the identifiability of the original follows.
The tensor decomposition algorithm
Our decomposition algorithm, sketched below, is directly based on the ideas we discussed above for identifiability. For convenience, at each step we link to the text for more details.
Input: .
For :
Output fail.
We employ randomness in Steps 1, 3 and 4. The successful event in Step 1 occurs with probability 1 (see Lemma 25), whereas the randomness in Steps 3 and 4 is utilized solely in sake of computational efficiency and does not affect the uniqueness argument. Concretely, each randomized step admits a deterministic alternative: the random projection can be replaced by going over a sufficiently large grid (by Schwartz-Zippel); the system solving step (and thus MinRank) can be performed deterministically (for instance using the algorithm of Ierardi [15]); and the hyperplane reconstruction can be performed via the deterministic brute-force strategy described in Section 4.2 (specifically, Lemma 16 and the subsequent discussion).555The deterministic version can be implemented in time, compared to for the randomized version. Thus the algorithm can in principle be made fully deterministic, and its output depends only on the input tensor – not on any random choices.
Thus, the algorithm’s output is uniquely determined for each and . It only remains to show that different parameter values cannot result in distinct decompositions. Towards this end, we prove the existence of fixed parameters and , determined solely by , for which the recovery algorithm is guaranteed to succeed. Specifically, if admits a rank decomposition satisfying the Kruskal condition, the algorithm – called on these parameters – is guaranteed to recover the constituent components. Because the algorithm is deterministic, it maps the tensor to a unique set of factors (up to scaling and permutation). If two distinct decompositions were to exist, both would necessarily be recovered as the same output by this deterministic procedure, which is a contradiction. Consequently, the decomposition is unique.
This parameter is defined by
and the corresponding is the mode of minimal Kruskal rank. That is, . 666 are not the only parameters on which the algorithm is guaranteed to succeed. However, for uniqueness we only need one set of parameters that succeed on all decompositions. Computationally, the choice delivers the best time complexity.
Since we do not know the tensor rank and Kruskal ranks we iterate over different guesses in the outermost loop of the algorithm. The correctness of the algorithm, as well as the uniqueness of the decomposition, rely on the following facts:
-
1.
If an -decomposition satisfies the Kruskal condition, then the tensor has rank and every rank decomposition has the same Kruskal ranks and thus (see Lemma 19).
-
2.
At iterations , the decomposition algorithm does not output a “redundant” decomposition, i.e., an -decomposition with (see Lemma 20).
-
3.
At iteration , the algorithm outputs a (unique) -decomposition (see Theorem 21).
The proofs of facts 1 and 2 are provided in Section 4, while an overview of the 3rd fact follows below. For technical details regarding the subroutines, time complexity, and success probability, see Section 4.
For fact 3, we now “walk” through iteration of the algorithm, assuming the success event occurs at every step of the algorithm.
Step 1. Apply a random projection
A random projection will ensure that (for ) has full Kruskal rank with high probability. The success event implies that the hyperplanes perpendicular to the columns of lie in general position. More formally, denote the columns of by . For all we define the hyperplane
We denote the full set of hyperplanes by . By Lemma 13, lies in general position with probability 1.
Step 2. Generate a MinRank instance
The MinRank instance generated at this step is the linear combination of -mode slices associated with coefficients , defined by
Step 3. Solve the MinRank instance
The above specific factorization of coupled with the Kruskal structure of the factor matrices and ensures that the rank drops precisely when lies on the intersection of the hyperplanes (see Theorem 14). Thus we have,
so at Step 3c we set , and then at 3b we find all the minimizers
By Theorem 14 this collection of points is exactly the set of -wise intersection points of hyperplanes in .
Step 4. Reconstruct the projected component
Since is in general position in , all of the hyperplanes intersect at a unique point, and each hyperplane contains exactly points from . Moreover, any hyperplane in contains fewer points from (see Lemma 27) so we can reconstruct by iterating over subsets of points, generating a list of candidate hyperplanes, and checking which ones contain the characterizing number of points (see Algorithm HP-reconstruction for a randomized version of this algorithm).
Recovering is equivalent to the recovery of (up to scaling and permutation of the columns), because by definition, the columns of are the normals to the hyperplanes.
Step 5. Restore the remaining components and
With the projected component in hand we recover the components and by essentially reducing the problem to the “Jennrich setting,” and applying the Jennrich decomposition algorithm (see Lemma 9).
Specifically, we find a matrix perpendicular to the first columns of , and effectively “zero out” those summands in the decomposition. The resulting tensor now has a reduced number of components, . Furthermore, this reduction transforms the tensor from an initial configuration to a “Jennrich state” where the Kruskal ranks of the and modes are , while the projected -mode’s Kruskal rank becomes . The fact that the truncated components have full rank follows from the Kruskal condition ( implies that ). This ensures that the truncated tensor satisfies the requirement for Jennrich’s algorithm. The remaining component can be recovered directly by applying with (see Algorithm 5). Thus, we can uniquely recover and (in polynomial time).
Step 6. Recover
We recover by solving the linear system obtained from the entries of (which become linear in the entries of once we plug in the values of and ).
Generalization to -way tensors
The transition from 3-way to general -way tensors is handled via a 3-reshaping process. Any -dimensional tensor satisfying the Kruskal condition can be partitioned into a 3-way tensor through Khatri-Rao products of its components.
We prove that if the original tensor satisfies the Kruskal condition, there exists a partition such that the resulting 3-way tensor also satisfies the Kruskal condition. After decomposing this reshaped 3-way tensor to find the partitioned components (e.g., ), we recover the original components by exploiting the “injectivity” (up to scaling) of the Khatri-Rao product. This extends our “worst-case” guarantee to any -dimensional tensor satisfying the Kruskal bound. In terms of time complexity, the search for a 3-partition satisfying the Kruskal condition contributes a multiplicative factor of which is polynomial in the input size.
2.1 Outline of the paper
Section 3 collects definitions and notation (including some given previously). In Section 4 we formally present the decomposition algorithm, analyze it, and provide auxiliary lemmas and subroutines. Section 5 contains the proof of the main theorem. Finally, the Appendix contains more technical details, some of which may be well-known.
3 Preliminaries
For matrix , row indices , and column indices , we denote the submatrix of induced by and . We also denote . We denote the rows of by for and the columns by for (generally, rows/columns are denoted by the lower case letter of the matrix notation).
Definition 3 (Kruskal rank).
The Kruskal rank (or -rank) of a matrix is the largest integer such that every subset of columns is linearly independent.
Definition 4 (mode- slices).
We define the mode- slices of a -way tensor as the -way tensors obtained from by fixing the -th index.
Definition 5 (mode- product).
The mode- product of a tensor with a matrix , denoted by , is a tensor of dimensions . For all , the -th slice of is a linear combination of the slices of along the same mode:
Note that if has decomposition
then
Definition 6 (mode- contractions).
Let be a 3-way tensor with decomposition . Define for all ,
In other words, is the mode- product of with .
Definition 7 (Khatri-Rao product).
Let matrices and . The Khatri-Rao product is the column-wise Kronecker product:
Note that the rows of are the Hadamard products , for all and (the Hadamard product is the element-wise product of two vectors of the same length).
Definition 8 (-reshaping).
Let be an -way tensor and let be a partition of the index set . The -reshaping of with respect to is a -way tensor , where the dimension of the -th mode is given by .
If has a CP decomposition , then admits a -way decomposition:
| (4) |
where each factor vector is the vectorization of the Kronecker product of the original factor vectors in the -th partition set:
| (5) |
Equivalently, the component is the Khatri-Rao product of the matrices following the order of indices in .
Lemma 9 (Jennrich).
Let be a 3-way tensor of rank , with components , , and . Suppose that:
-
1.
and have full column rank .
-
2.
Every pair of columns of is linearly independent (i.e., ).
Then the rank decomposition of is unique. Furthermore, there exists an algorithm to recover the components in time .
Lemma 10 (Making Tensor Concise).
[2, Lemma 5.1] Let be an -th order tensor of rank . There exists a randomized algorithm with runtime that outputs a compressed tensor and transformation matrices of full row rank such that, with probability 1:
-
1.
.
-
2.
The dimensions of are reduced such that for each mode , where refers to the rank of the -reshaping associated with the partition .
-
3.
The rank and the Kruskal ranks are preserved; consequently, satisfies the Kruskal condition if and only if does.
The factor matrices of the original tensor are recovered from the factor matrices of via an efficiently computable linear mapping, requiring at most time.
Theorem 11 (Lakshman–Lazard [20]).
Let be a zero-dimensional ideal over a field of characteristic zero, with generators of degree at most . Under any admissible monomial ordering, the Gröbner basis of radical of can be computed in time, with probability at least . Moreover, zero-dimensionality of can be decided at the same cost and with the same probability of success.
Lemma 12 (Shape Lemma [9, Ch. 2, Exercise 16]).
Let be a zero-dimensional radical ideal such that the -coordinates of the points in are distinct. Let be the reduced Gröbner basis of with respect to a lex monomial order with as the last variable. If , then consists of polynomials
where are polynomials in of degree at most . In particular, all points of are recovered by finding the roots of and back-substituting into .
4 The decomposition algorithm
In this section, we formally present the decomposition algorithm for 3-way tensors. For tensors with modes, we first reshape the tensor to a 3-way tensor, apply our decomposition algorithm, and finally recover the components of the original -way tensor. We defer the discussion of this process to Section 5.
Let be a 3-way tensor with an -decomposition , and corresponding Kruskal ranks . Recall that
| (6) |
Under the Kruskal condition, is independent of the specific decomposition (see Lemma 19).
Because and its associated mode are unknown a priori, the full decomposition procedure (Algorithm 1) iteratively tests candidate values and modes until it reaches (and its corresponding mode).777To optimize performance, the search over is the outermost loop, as time complexity is exponential in . We restate a single round of this process as Algorithm DECOMPOSE, which takes parameters . We show that Algorithm DECOMPOSE returns the unique decomposition with high probability, provided that satisfies the Kruskal condition and .
Here, we will assume that our tensor is concise: A concise tensor is an -th order tensor where each mode’s dimension is equal to the rank of its mode- flattening. Consequently, for all . Due to Lemma 10, this “compression” and the consequent “decompression” can be performed efficiently, so we may assume WLOG that the input tensor is given in concise form.
Input: , where is concise. Denote .
-
1.
Apply a random matrix on the -th mode of to obtain .
-
2.
For variables form the matrix
- 3.
-
4.
Apply HP-reconstruction to recover the -th component of .
-
(a)
If the algorithm fails, continue to the next iteration of Algorithm 1. Otherwise,
-
(b)
denote the output .
-
(a)
-
5.
To recover the two other components and , apply Algorithm 5 on input .
-
6.
Solve the system obtained by the -mode reshaping
-
7.
Verify that (if not, continue to the next iteration).
Output: .
The algorithm follows the exact procedure described in the proof overview (Section 2). We begin by elaborating on each step, followed by the proof of correctness of DECOMPOSE in Theorem 21.
As discussed in the proof overview (Section 2), a key initial step to recover the factor matrices is to ensure that the hyperplanes perpendicular to the columns of the projected matrix lie in general position. In Step 1 of the algorithm, a projection matrix is drawn from an absolutely continuous distribution (e.g., Gaussian) and applied to the -mode. The resulting tensor possesses an -rank decomposition , where represents the projected factor matrix.
This ensures that inherits the necessary structural properties for recovery, as formalized in the following lemma:
Lemma 13 (General Position of Projected Hyperplanes).
Let be a matrix with Kruskal rank . Let be drawn from an absolutely continuous distribution (e.g., Gaussian), and let . Then, with probability 1:
-
1.
has full Kruskal rank .
-
2.
The first rows of have full Kruskal rank .
-
3.
The set of hyperplanes defined by lies in general position in .
We defer the proof of the above to the full version [3]. If is a “good” projection, then the set lies in general position in , meaning that the intersection of any hyperplanes forms a -dimensional flat in (and the intersection of hyperplanes is empty). In particular, -wise intersections are points, and every point is unique. There are exactly such points (see Lemma 27).
4.1 Step 2: finding the -wise intersection points
In Step 2 of the decomposition algorithm, we list all the points , for which
We need to show that:
-
1.
These points are precisely the -wise intersection points of hyperplanes in . Namely,
and
-
2.
there are exactly points in this set.
The first fact is proved in the following lemma, while the second fact follows from a standard property of general position; we defer its statement and proof to Appendix Lemma 25.
Theorem 14.
Let be an -decomposition satisfying the Kruskal condition. Suppose that has full Kruskal rank , and let denote the -mode contraction for where .
Then,
-
1.
for all ,
-
2.
if and only if , and
-
3.
The minimizers of are precisely the -wise intersection points:
Proof.
For all , denote the indices where is zero. Thus, for all . Since has Kruskal rank , the subsystem has full rank whenever , so for all . That is, has at most zeros,
| (7) |
for all .
Fix , and denote . Let and be the subsystems of and (respectively) induced by . We have , , and
By Sylvester’s rank inequality, for pair of matrices and ,
Therefore,
| (8) |
-
1.
Suppose that .888Recall that is the number of zeros in . The Kruskal condition implies that .999If then which violates the Kruskal condition.
-
2.
Let . By symmetry, we may assume without loss of generality that . The proof proceeds in two cases:
Case 1: .
Equation 8 implies that
Case 2: .
In both cases, .
Input: where
-
(this is an affine linear combination of matrices with coefficients ),
-
, , and
-
.
Denote .
Termination Condition: If at any point the total number of operations performed in the steps below exceeds , for a large fixed determinable constant , the algorithm aborts and outputs fail.
-
1.
For :
-
(a)
Generate the system by setting all -minors of to zero.
- (b)
-
(c)
If the solution set is empty:
-
i.
Find , the solution set of the previous system.
-
ii.
Output .
-
i.
-
(a)
-
2.
Output fail.
Before proving the correctness of Algorithm MinRank, we emphasize that Theorem 11 determines dimensionality over . It is possible in principal, that has only solutions in . In that case, MinRank may output a complex set of minimizers. However, by Theorem 14
and all the minimizers are solutions of a real linear system, and are therefore real. Thus, when Algorithm MinRank is called with , the solution set is real.
Lemma 15.
Let as in Theorem 14, with as defined by Equation 6, and suppose that . If has full Kruskal rank , then with probability at least ,
-
1.
if , then MinRank outputs MinRank and a list of all the minimizers, or fail, and
-
2.
if , then MinRank outputs MinRank and a list of all the minimizers.
Either way, the time complexity is at most .
We defer the proof of the above to the full version [3].
4.2 Step 3: Reconstructing
Suppose that Step 2 of the decomposition algorithm was successfully executed. Then we have obtained the set of points
By Theorem 14 part 3, this is also the set of -wise intersection points of hyperplanes in , i.e.,
Our goal at Step 4 is to reconstruct . We use the following criterion for identifying hyperplanes in , the proof of which is deferred to the Appendix: Lemma 27.
Lemma 16 (Hyperplane Identification Criterion).
Let be a set of hyperplanes in in general position, and let be the set of all -wise intersections of hyperplanes in . If is a -dimensional hyperplane such that
then .
Thus, to reconstruct we can iterate through all the -size subsets of . For each subset, we calculate its affine rank. If it is , we find the normal to the hyperplane through the points. Then we can count the number of intersection points on the hyperplane to determine whether or not the hyperplane belongs to . However, there are subsets to explore, which dominate any other step of the decomposition algorithm, so we again apply randomness to reduce time complexity to . We describe our algorithm for faster sampling of the points to recover these hyperplanes, followed by an analysis of its time complexity and success probability.
Input:
Initialize .
Repeat times:
-
1.
Choose points uniformly at random.
-
2.
If has affine rank , find the unique hyperplane through (up to scaling).
-
3.
If , and , add to .
If , output fail. Otherwise, output .
Lemma 17.
Let be a set of hyperplanes in general position in ,101010Meaning that the affine dimension of is for all . and let be the set of -wise intersection points of hyperplanes in , then when invoked with parameters , Algorithm HP-reconstruction outputs with probability at least and runtime . In particular, when Algorithm HP-reconstruction runs in time and has success probability at least .
We defer the proof of the above to the full version [3].
4.3 Step 4: restoring and given
Once Step 3 outputs , which is a random projection of , Step 4 aims to learn and using . That is, we are given a tensor one of its components , and we want to recover and .
We assume that has full Kruskal rank , and that the factor matrices satisfy the Kruskal condition. Our approach is to use to eliminate terms from the decomposition while maintaining a Kruskal rank of in the third mode. This reduction transforms the problem into a Jennrich instance, which can then be solved directly. We formally present the algorithm for this recovery process, followed by its proof of correctness.
Input: where
-
.
-
.
-
Kruskal’s Condition:
For any matrix with columns, denote the sub-matrix induced by columns , and the sub-matrix induced by columns .
-
1.
If apply Jennrich’s Algorithm and output the decomposition.
-
2.
Else, find full rank perpendicular to (i.e. the rows of form a basis for the left kernel of ).
-
3.
Apply Jennrich’s algorithm to to obtain a decomposition
Matching : Resolve permutation and scaling ambiguities by aligning the output with the ground-truth matrix . Apply the resulting permutation and inverse scaling to and to maintain consistency with .
-
4.
Compute and
-
5.
For each , find such that for all (for example, take to be the -th row of ). Decompose the rank-1 matrices
via SVD to find and .
Output: and .
Lemma 18.
Let be a rank- tensor. Given the tensor and the factor matrix as input, if and , then Algorithm 5 outputs a decomposition of in time . Furthermore, under these conditions, the decomposition is the only possible rank- representation of up to permutation and scaling.
We defer the proof of the above to the full version [3].
4.4 Analysis of DECOMPOSE
As mentioned in Section 2 (Proof Overview), the correctness of DECOMPOSE follows from these 3 facts:
-
1.
Lemma 19: If an -decomposition satisfies the Kruskal condition, then the tensor has rank and every rank-decomposition has the same .
-
2.
Lemma 20: At iterations , the decomposition algorithm does not output a “redundant” decomposition. i.e. an -decompositions with .
-
3.
Theorem 21: At iteration , the algorithm outputs a (unique) -decomposition (with high probability).
We now prove these 3 statements by order.
Lemma 19 (Uniqueness of “good” parameters).
Let be a tensor with -decomposition and Kruskal ranks . If satisfies the Kruskal condition then:
-
1.
, and
-
2.
all rank decompositions have Kruskal ranks (and therefore satisfy the Kruskal condition).
We defer the proof of the above to the full version [3].
Lemma 20.
If , then the candidate rank computed by the algorithm at Step 3c satisfies , where is the true rank of the tensor.
We defer the proof of the above to the full version [3]. With the ingredients from the previous sections established, we are now ready to analyze the decomposition algorithm. The full decomposition algorithm includes loops iterating over guesses of and corresponding mode.
In order to simplify the probability estimates, we assume that . Indeed, for cases where , one can simply apply a worst-case tensor decomposition algorithm [2, 4], which remains functional even without assuming the Kruskal condition.
Theorem 21 (Decomposition algorithm).
Let be a 3-way tensor with an -decomposition with over of appropriate dimensions. Suppose that the decomposition satisfies the Kruskal condition and . Let be as in Eq.6. Then, we have the following.
-
1.
Completeness: By iteration of the outer-loop, the algorithm outputs the components (up to scaling and permutation) with probability at least .
-
2.
Soundness: With probability at least , the algorithm does not output a redundant decomposition ( -decomposition with ) at any iteration of the outer-loop.
-
3.
Time Complexity: The overall time complexity is
where .
We defer the proof of the above to the full version [3].
5 Decomposing high dimensional tensors
In the previous section we presented a decomposition algorithm for 3-way tensors. To deal with -way tensors with , we reshape the tensor and apply the decomposition algorithm on the reshaped tensor. We now introduce some notation to formalize this process. Let . For all with we denote the Khatri-Rao product of (see Definition 7), and the Kruskal rank of . For any partition , the 3-reshaping of (see Definition 8) has components and . If these matrices satisfy the Kruskal condition, then the decomposition algorithm succeeds (w.h.p) and outputs up to permutation and scaling of the columns. The columns of these matrices are vectorized rank one tensors, so we can directly recover the components of the -way tensor (via SVD).
Theorem 22 (Reshaped Kruskal Theorem).
Let , and . Consider an -way tensor with decomposition:
| (9) |
For each subset , define as the Khatri-Rao product of matrices . If there exists a partition and the Kruskal ranks of these partitioned matrices satisfy the Kruskal condition:
| (10) |
then,
-
1.
, and
-
2.
the decomposition is unique up to scaling and permutation.
Furthermore, for , there exists a randomized algorithm that recovers the unique components with probability at least and runtime , where and is the input size.
We defer the proof of the above to the full version [3].
If the input -dimensional tensor satisfies the Kruskal condition, then there is an efficient way to perform the 3-reshaping. As a direct consequence, we obtain the following corollary. We defer the reshaping procedure and its correctness to the Appendix, see Lemma 24.
Corollary 23 (Kruskal’s Uniqueness Theorem).
Consider an -way tensor with decomposition:
| (11) |
If the Kruskal condition holds:
| (12) |
then,
-
1.
, and
-
2.
the decomposition is unique up to scaling and permutation.
Furthermore, for , there exists a randomized algorithm that outputs the unique components with probability at least and runtime , where and .
References
- [1] M. Bardet, M. Bros, D. Cabarcas, P. Gaborit, R. A. Perlner, D. Smith-Tone, J.-P. Tillich, and J. A. Verbel. Improvements of algebraic attacks for solving the rank decoding and minrank problems. In ASIACRYPT, 2020.
- [2] Vishwas Bhargava, Shubhangi Saraf, and Ilya Volkovich. Reconstruction algorithms for low-rank tensors and depth-3 multilinear circuits. Technical Report 045, Electronic Colloquium on Computational Complexity (ECCC), 2021. Version with full proofs; subsequently appeared in STOC 2021. URL: https://eccc.weizmann.ac.il/report/2021/045/.
- [3] Vishwas Bhargava, Leonard Schulman, and Shiri Sivan. An algorithmic proof of kruskal’s tensor decomposition theorem. Technical Report TR26-073, Electronic Colloquium on Computational Complexity (ECCC), 2026. URL: https://eccc.weizmann.ac.il/report/2026/073/.
- [4] Vishwas Bhargava and Devansh Shringi. Faster & Deterministic FPT Algorithm for Worst-Case Tensor Decomposition. In 52nd International Colloquium on Automata, Languages, and Programming (ICALP 2025), volume 334 of Leibniz International Proceedings in Informatics (LIPIcs), pages 28:1–28:20. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2025. doi:10.4230/LIPIcs.ICALP.2025.28.
- [5] Aditya Bhaskara, Moses Charikar, Ankur Moitra, and Aravindan Vijayaraghavan. Open problem: Tensor decompositions: Algorithms up to the uniqueness threshold? In Conference on Learning Theory, pages 1280–1282. PMLR, 2014. URL: http://proceedings.mlr.press/v35/bhaskara14b.html.
- [6] J.D. Carroll and J.J. Chang. Analysis of individual differences in multidimensional scaling via an n-way generalization of “Eckart-Young” decomposition. Psychometrika, 35:283–319, 1970. doi:10.1007/BF02310791.
- [7] Luca Chiantini and Giorgio Ottaviani. On generic identifiability of 3-tensors of small rank. SIAM Journal on Matrix Analysis and Applications, 33(3):1018–1037, 2012. doi:10.1137/110829180.
- [8] Luca Chiantini, Giorgio Ottaviani, and Nick Vannieuwenhoven. Effective criteria for specific identifiability of tensors and forms. SIAM Journal on Matrix Analysis and Applications, 38(2):656–681, 2017. doi:10.1137/16M1090132.
- [9] David A. Cox, John Little, and Donal O’Shea. Using Algebraic Geometry, volume 185 of Graduate Texts in Mathematics. Springer, New York, 1998.
- [10] Harm Derksen. Kruskal’s uniqueness inequality is sharp. Linear Algebra and its Applications, 438(2):708–712, 2013. Tensors and Multilinear Algebra. doi:10.1016/j.laa.2011.05.041.
- [11] J. Faugère, M. Safey El Din, and P. Spaenlehauer. Computing loci of rank defects of linear matrices using Gröbner bases and applications to cryptology. In International Symposium on Symbolic and Algebraic Computation (ISSAC), pages 257–264, 2010. doi:10.1145/1837934.1837984.
- [12] Richard A. Harshman. Foundations of the PARAFAC procedure: Models and conditions for an “explanatory” multi-model factor analysis. In UCLA working papers in phonetics, 16(1):84, 1970. URL: https://api.semanticscholar.org/CorpusID:6816804.
- [13] Johan Håstad. Tensor rank is NP-complete. Journal of Algorithms, 11(4):644–654, 1990. doi:10.1016/0196-6774(90)90014-6.
- [14] Christopher J Hillar and Lek-Heng Lim. Most tensor problems are NP-hard. Journal of the ACM (JACM), 60(6):1–39, 2013. doi:10.1145/2512329.
- [15] Doug Ierardi. Quantifier elimination in the theory of an algebraically-closed field. In Proceedings of the twenty-first annual ACM symposium on Theory of computing, pages 138–147, 1989. doi:10.1145/73007.73020.
- [16] Pravesh K Kothari, Ankur Moitra, and Alexander S Wein. Overcomplete tensor decomposition via Koszul-Young flattenings. arXiv preprint arXiv:2411.14344, 2024. doi:10.48550/arXiv.2411.14344.
- [17] J. B. Kruskal. More factors than subjects, tests and treatments: an indeterminacy theorem for canonical decomposition and individual differences scaling. Psychometrica, 41(3):281–293, 1976.
- [18] J. B. Kruskal. Rank, decomposition and uniqueness for 3-way and n-way arrays. In Multiway data analysis, pages 7–18. Elsevier Science Publishers B.B. (North-Holland, 1989.
- [19] Joseph B. Kruskal. Three-way arrays: Rank and uniqueness of trilinear decompositions, with application to arithmetic complexity and statistics. Linear Algebra and its Applications, 18(2):95–138, 1977. doi:10.1016/0024-3795(77)90069-6.
- [20] Yagati N Lakshman and Daniel Lazard. On the complexity of zero-dimensional algebraic systems. In Effective methods in algebraic geometry, pages 217–225. Springer, 1991.
- [21] Joseph M Landsberg. Tensors: geometry and applications: geometry and applications, volume 128. American Mathematical Soc., 2011.
- [22] Benjamin Lovitz and Fedor Petrov. A generalization of Kruskal’s theorem on tensor decomposition. In Forum of Mathematics, Sigma, volume 11, page e27. Cambridge University Press, 2023.
- [23] Tengyu Ma, Jonathan Shi, and David Steurer. Polynomial-time tensor decompositions with sum-of-squares. In 2016 IEEE 57th Annual Symposium on Foundations of Computer Science (FOCS), pages 438–446. IEEE, 2016. doi:10.1109/FOCS.2016.54.
- [24] S. Rabanser, O. Shchur, and S. Günnemann. Introduction to tensor decompositions and their applications in machine learning, 2017. arXiv:1711.10781.
- [25] John A. Rhodes. A concise proof of Kruskal’s theorem on tensor decomposition. Linear Algebra and its Applications, 432(7):1818–1824, 2010. doi:10.1016/j.laa.2009.11.033.
- [26] Marcus Schaefer and Daniel Štefankovič. The complexity of tensor rank. Theory of Computing Systems, 62(5):1161–1174, 2018. doi:10.1007/S00224-017-9800-Y.
- [27] Nicholas D Sidiropoulos and Rasmus Bro. On the uniqueness of multilinear decomposition of n-way arrays. Journal of Chemometrics: A Journal of the Chemometrics Society, 14(3):229–239, 2000.
- [28] Charles Spearman. “General intelligence” objectively determined and measured. In J. J. Jenkins & D. G. Paterson, editor, Studies in individual differences: The search for intelligence, pages 59–73. Appleton-Century-Crofts, 1961. Reprint from American Journal of Psychology, 1904, Vol 15[2], 201-293. doi:10.1037/11491-006.
- [29] Alwin Stegeman and Nicholas D Sidiropoulos. On Kruskal’s uniqueness condition for the Candecomp/Parafac decomposition. Linear Algebra and its applications, 420(2-3):540–552, 2007.
Appendix A Reshaping into 3-tensors
Lemma 24.
If is an -way tensor satisfying the Kruskal condition, then there exists a partition of into disjoint subsets s.t. satisfies the Kruskal condition, namely,
We defer the proof of the above to the full version [3].
A.1 General position statements
In the first step of the decomposition algorithm (Algorithm DECOMPOSE) we apply a random matrix on one of the components of the tensor we are trying to decompose. We obtain a component and define, for every column, the orthogonal hyperplane: . We denote the full set of hyperplanes by
Lemma 25.
If has Kruskal rank , and has Kruskal rank , then is in general position in . That is, for all , the affine dimension of is .
We defer the proof of the above to the full version [3].
When is in general position, we can count the number of -wise intersection points on the flats defined by :
Corollary 26.
If is in general position in , then
has size . More generally, for any , ,
We defer the proof of the above to the full version [3].
Lemma 27.
Let , . We have
-
, a set of hyperplanes of dimension in general position in .
-
, the set of -wise intersections of hyperplanes in .
If is a -dimensional hyperplane, and
then .
We defer the proof of the above to the full version [3].
Corollary 28.
For any hyperplane ,
We defer the proof of the above to the full version [3].
Lemma 29.
Let be a set of points chosen uniformly at random from . Then, for any , spans with probability at least .
We defer the proof of the above to the full version [3].
