Most Tensor Problems Are NP-Hard

Christopher J. Hillar, Lek-Heng LimJ. ACM 2009 · DOI

Introduction

In the landscape of computational mathematics, matrices (order-2 tensors) represent a sanctuary of tractability. Most linear algebra problems involving matrices—such as finding eigenvalues, rank, or singular values—are solvable in polynomial time. However, as data becomes increasingly multidimensional, researchers naturally seek to extend these tools to tensors (multidimensional arrays of order 3 or higher).

In their seminal work, Christopher Hillar and Lek-Heng Lim establish a definitive computational boundary: while matrix problems are generally "easy," their natural generalizations to tensors are almost all NP-hard. This finding explains why practitioners often struggle with tensor decompositions and optimization, defining the fundamental limits of what can be efficiently computed in higher dimensions.

The Methodology of Hardness

To establish these complexity results, the authors utilize the Turing model of computation and the principle of polynomial reduction. The core strategy involves showing that if an efficient algorithm existed for a specific tensor problem, it could be used to solve known NP-complete problems, such as graph 3-colorability or 3SAT.

Graph Encoding and Gadgets

A primary technique used in the paper is Graph Encoding. The authors transform combinatorial problems into systems of quadratic or bilinear equations represented by tensors. By constructing "gadget" tensors that mirror the adjacency structure of a graph, they prove that determining properties like tensor rank or eigenvalues is equivalent to solving hard combinatorial puzzles.

Figure 1: Examples of graph structures used in polynomial reductions to prove tensor NP-hardness.

Beyond graph theory, the authors employ Field Analysis to examine how complexity shifts across different number systems (rational $\mathbb{Q}$, real $\mathbb{R}$, or complex $\mathbb{C}$) and apply Optimization Theory (specifically KKT conditions) to link tensor eigenvalues to the stationary points of cubic forms.

Key Insights: Why Tensors are Different

The "Order 3" Jump

The transition from order-2 (matrices) to order-3 tensors is where computational tractability effectively dies. For instance, while matrix rank is easily computed via Gaussian elimination, determining the rank of a 3-tensor is NP-hard.

Symmetry and Approximation

One might assume that symmetric tensors—the multidimensional analogues of symmetric matrices—would offer a simpler path. The paper proves this intuition wrong; even for symmetric tensors, finding the best rank-1 approximation remains NP-hard. Furthermore, the authors demonstrate that there is no Polynomial Time Approximation Scheme (PTAS) for the tensor spectral norm or eigenvectors. We cannot even efficiently compute an "arbitrarily close" approximation in the general case.

Field Dependence

Unlike matrices, a tensor's rank can change depending on whether it is evaluated over $\mathbb{R}$ or $\mathbb{C}$. This algebraic instability adds a layer of complexity that does not exist in standard linear algebra, making the choice of field a critical factor in problem difficulty.

Key Results and Complexity Summary

The paper provides a comprehensive "hit list" of tensor problems, categorizing them by their formal complexity. These results serve as a rigorous warning to the scientific community: general-purpose, efficient algorithms for these problems likely do not exist.

Figure 4: A summary of the computational complexity of various tensor problems established in the paper.

Notable findings include:

  • NP-Hard: Tensor rank, eigenvalues/eigenvectors, spectral norm, and best rank-1 approximation.
  • #P-Hard: Enumerating the total number of eigenvectors.
  • Undecidable: Certain problems involving bivariate matrix functions, which are impossible to solve for all inputs by any algorithm.

Conclusion and Future Directions

While these results highlight a "worst-case" intractability, they do not imply that all practical tensor problems are unsolvable. In many applications, tensors may have small dimensions or specific structures that allow for heuristic or specialized solutions.

However, this work shifts the research focus from seeking perfect general algorithms toward developing efficient heuristics for specific tensor classes or average-case scenarios. It remains an open question whether problems like the geometric hyperdeterminant or symmetric rank follow this same pattern of NP-hardness, providing a fertile ground for future theoretical exploration.

Summary updated

BibTeX
@article{hillar2009most,
  author = {Christopher J. Hillar and Lek-Heng Lim},
  title = {{Most Tensor Problems Are NP-Hard}},
  journal = {J. ACM},
  year = {2009},
  doi = {10.1145/2512329},
}
Figure