22
Chris Hillar Redwood Center for Theoretical Neuroscience (UC Berkeley) (with L-H Lim) Most tensor problems are NP-hard, Journal of the ACM, 2013, to appear. Computational Complexity of Tensor Problems Joint work with Lek-Heng Lim Saturday, August 3, 13

Computational Complexity of Tensor Problemslekheng/meetings/agtd/hillar13.pdf · Chris Hillar Redwood Center for Theoretical Neuroscience (UC Berkeley) (with L-H Lim) Most tensor

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Computational Complexity of Tensor Problemslekheng/meetings/agtd/hillar13.pdf · Chris Hillar Redwood Center for Theoretical Neuroscience (UC Berkeley) (with L-H Lim) Most tensor

Chris Hillar

Redwood Center for Theoretical Neuroscience(UC Berkeley)

(with L-H Lim) Most tensor problems are NP-hard, Journal of the ACM, 2013, to appear.

Computational Complexity of Tensor Problems

Joint work with Lek-Heng Lim

Saturday, August 3, 13

Page 2: Computational Complexity of Tensor Problemslekheng/meetings/agtd/hillar13.pdf · Chris Hillar Redwood Center for Theoretical Neuroscience (UC Berkeley) (with L-H Lim) Most tensor

Outline

Motivational examples / definitions

Computational complexity

Tensor Problems- Deciding eigenvalue- Approximating eigenvalue- Computing rank

Open Problems - Hyperdeterminant

Conclusions

NP-Hard

NP-Complete

P

NP

Matrix Problems

Tensor Problems

Saturday, August 3, 13

Page 3: Computational Complexity of Tensor Problemslekheng/meetings/agtd/hillar13.pdf · Chris Hillar Redwood Center for Theoretical Neuroscience (UC Berkeley) (with L-H Lim) Most tensor

Applications of “tensor methods”

Approximation algorithms [De La Vega et al. 2005; Brubaker and Vempala 2009]Computational biology [Cartwright et al. 2009]Computer graphics [Vasilescu and Terzopoulos 2004]Computer vision [Shashua and Hazan 2005; Vasilescu and Terzopoulos 2002]Data analysis [Coppi and Bolasco 1989]Graph theory [Friedman 1991; Friedman and Wigderson 1995]Neuroimaging [Schultz and Seidel 2008]Pattern recognition [Vasilescu 2002]Phylogenetics [Allman and Rhodes 2008]Quantum computing [Miyake and Wadati 2002]Scientific computing [Beylkin and Mohlenkamp 1997]Signal processing [Comon 1994; 2004; Kofidis and Regalia 2001/02]Spectroscopy [Smilde et al. 2004]Wireless communication [Sidiropoulos et al. 2000]...............

Generalize: Ax = b

Saturday, August 3, 13

Page 4: Computational Complexity of Tensor Problemslekheng/meetings/agtd/hillar13.pdf · Chris Hillar Redwood Center for Theoretical Neuroscience (UC Berkeley) (with L-H Lim) Most tensor

Computational complexity

Alan TuringI. Model of computation

- What are inputs / outputs?- What is a computation?

II. Model of complexity- Cost of computation?

III. Model of reducibility- What are equivalent problems?

Dick Karp

Stephen Cook

Leonid Levin

Saturday, August 3, 13

Page 5: Computational Complexity of Tensor Problemslekheng/meetings/agtd/hillar13.pdf · Chris Hillar Redwood Center for Theoretical Neuroscience (UC Berkeley) (with L-H Lim) Most tensor

NP-Hard

NP-Complete

P

NP

Matrix Problems

Tensor Problems

Turing Machine (Mike Davey)

I. Model of computation:Turing Machine [Turing 1936]Inputs: rational tensorsOutputs: YES/NO or rational vectors

II. Model of complexity:Time complexityNumber of Tape-Level moves

III. Model of reducibility:P, NP, NP-complete, NP-hard, ...

D1

input

YES/NO

D2

input’

YES/NO=

D1D2

polynomialtransformation

Saturday, August 3, 13

Page 6: Computational Complexity of Tensor Problemslekheng/meetings/agtd/hillar13.pdf · Chris Hillar Redwood Center for Theoretical Neuroscience (UC Berkeley) (with L-H Lim) Most tensor

Complexity of tensor problems

Saturday, August 3, 13

Page 7: Computational Complexity of Tensor Problemslekheng/meetings/agtd/hillar13.pdf · Chris Hillar Redwood Center for Theoretical Neuroscience (UC Berkeley) (with L-H Lim) Most tensor

Eigenvalues

• Image Segmentation [Shi-Malik, 2000]

top eigenvector

Problem: Given (x,�) with x 6= 0 s.t. :find

Ax = �x

efficient algorithms(in P)

A = [aij ] 2 Qn⇥n

Saturday, August 3, 13

Page 8: Computational Complexity of Tensor Problemslekheng/meetings/agtd/hillar13.pdf · Chris Hillar Redwood Center for Theoretical Neuroscience (UC Berkeley) (with L-H Lim) Most tensor

Tensor eigenvalues

Problem: Given (x,�) with x 6= 0 s.t. :find

[Lim 2005], [Qi 2005], [Ni, et al 2007], [Qi 2007], [Cartwright and Sturmfels 2012]

Facts: Generic or random tensors over complex numbers have a finite numberof eigenvalues and eigenvectors (up to scaling equivalence), although their count is exponential.

Still, it is possible for a tensor to have an infinite number of non-equivalent eigenvalues, but in that case they comprise a cofinite set of complex numbers

Another important fact is that over the reals, every 3-tensor has a real eigenpair.

A = [[aijk]] 2 Qn⇥n⇥n

nX

i,j=1

aijkxixj = �xk, k = 1, . . . , n

Saturday, August 3, 13

Page 9: Computational Complexity of Tensor Problemslekheng/meetings/agtd/hillar13.pdf · Chris Hillar Redwood Center for Theoretical Neuroscience (UC Berkeley) (with L-H Lim) Most tensor

Decision problem

Problem: Given

A = [[aijk]] 2 Qn⇥n⇥n

nX

i,j=1

aijkxixj = �xk, k = 1, . . . , n

and � 2 Q, does there exist 0 6= x 2 C

n:

Decidable (Computable on a Turing machine): - Quantifier elimination - Buchberger’s algorithm and Groebner bases - Multivariate resultants

All quickly become inefficientIs there an efficient algorithm?

Saturday, August 3, 13

Page 10: Computational Complexity of Tensor Problemslekheng/meetings/agtd/hillar13.pdf · Chris Hillar Redwood Center for Theoretical Neuroscience (UC Berkeley) (with L-H Lim) Most tensor

NP-complete / NP-hard problems

[Cook-Karp-Levin 1971/2]

Graph coloring: Given a graph G, is there a 3-coloring?

1 2

34

1 2

34

NP-complete problem

YES NO

Million $$$ prize (Clay Math)Saturday, August 3, 13

Page 11: Computational Complexity of Tensor Problemslekheng/meetings/agtd/hillar13.pdf · Chris Hillar Redwood Center for Theoretical Neuroscience (UC Berkeley) (with L-H Lim) Most tensor

Graph coloring: Given a graph G, is there a 3-coloring?

1 2

34

1 2

34

Theorem [Bayer 1982]: Whether or not a graph is 3-colorable can be encoded as whether a system of quadratic equations over C has a nonzero solution

Saturday, August 3, 13

Page 12: Computational Complexity of Tensor Problemslekheng/meetings/agtd/hillar13.pdf · Chris Hillar Redwood Center for Theoretical Neuroscience (UC Berkeley) (with L-H Lim) Most tensor

1 2

34

1 2

34

!!1

2,

"3

2

"

(1, 0)

3

4

3

4

Saturday, August 3, 13

Page 13: Computational Complexity of Tensor Problemslekheng/meetings/agtd/hillar13.pdf · Chris Hillar Redwood Center for Theoretical Neuroscience (UC Berkeley) (with L-H Lim) Most tensor

Quadratic equations are hard to solve

[Bayer 1982], [Lovasz 1994], [Grenet et al 2010], ...

Quadratic equations undecidable over the integers!(there is no Turing machine that can solve them)

[Davis-Putnam-Robinson, Matijasevic]

NP-Hard

NP-Complete

P

NP

Matrix Problems

Tensor Problems

Corollary: Deciding tensor eigenvalue is NP-hard

Saturday, August 3, 13

Page 14: Computational Complexity of Tensor Problemslekheng/meetings/agtd/hillar13.pdf · Chris Hillar Redwood Center for Theoretical Neuroscience (UC Berkeley) (with L-H Lim) Most tensor

Approximating tensor eigenvector is NP-hard

!!1

2,

"3

2

"

(1, 0)

3

4

3

4

Corollary: Unless P = NP, there is no polynomial time approximation scheme for finding tensor eigenvectors

Saturday, August 3, 13

Page 15: Computational Complexity of Tensor Problemslekheng/meetings/agtd/hillar13.pdf · Chris Hillar Redwood Center for Theoretical Neuroscience (UC Berkeley) (with L-H Lim) Most tensor

Rank

Note: rank can change over changing fields (not true linear algebra)

Theorem [Hastad]: Tensor rank is NP-hard over Q

rank-1 tensors: - Segre variety

A = [[xiyjzk]] = x⌦ y ⌦ z

rankF(A) = minr

{A =rX

i=1

xi ⌦ yi ⌦ zi}.

Definition: Tensor rank over F is

Saturday, August 3, 13

Page 16: Computational Complexity of Tensor Problemslekheng/meetings/agtd/hillar13.pdf · Chris Hillar Redwood Center for Theoretical Neuroscience (UC Berkeley) (with L-H Lim) Most tensor

Theorem: There are rational tensors with different rank over rationals versus the reals

rankR(A) < rankQ(A)

Saturday, August 3, 13

Page 17: Computational Complexity of Tensor Problemslekheng/meetings/agtd/hillar13.pdf · Chris Hillar Redwood Center for Theoretical Neuroscience (UC Berkeley) (with L-H Lim) Most tensor

Theorem: There are rational tensors with different rank over rationals versus the reals

rankR(A) < rankQ(A)

Thus, Hastad’s result doesn’t necessarily apply.

Nevertheless, Hastad’s proof shows that tensor rank is NP-hard over R and C

Theorem: Approximating rank-1 tensor is NP-hard

Saturday, August 3, 13

Page 18: Computational Complexity of Tensor Problemslekheng/meetings/agtd/hillar13.pdf · Chris Hillar Redwood Center for Theoretical Neuroscience (UC Berkeley) (with L-H Lim) Most tensor

Hyperdeterminant

Conjecture: NP-hard to compute hyperdeterminant

- Defining equation for the dual variety to Segre variety

[Cayley 1845]:

Saturday, August 3, 13

Page 19: Computational Complexity of Tensor Problemslekheng/meetings/agtd/hillar13.pdf · Chris Hillar Redwood Center for Theoretical Neuroscience (UC Berkeley) (with L-H Lim) Most tensor

Conclusions

“All interesting problems are NP-hard”- Bernd Sturmfels

Saturday, August 3, 13

Page 20: Computational Complexity of Tensor Problemslekheng/meetings/agtd/hillar13.pdf · Chris Hillar Redwood Center for Theoretical Neuroscience (UC Berkeley) (with L-H Lim) Most tensor

Conclusions

“All interesting problems are NP-hard”- Bernd Sturmfels

“Most tensor problems are NP-hard”

+

Saturday, August 3, 13

Page 21: Computational Complexity of Tensor Problemslekheng/meetings/agtd/hillar13.pdf · Chris Hillar Redwood Center for Theoretical Neuroscience (UC Berkeley) (with L-H Lim) Most tensor

Conclusions

“All interesting problems are NP-hard”- Bernd Sturmfels

“Most tensor problems are NP-hard”

+

“Most tensor problems are interesting!”

Saturday, August 3, 13

Page 22: Computational Complexity of Tensor Problemslekheng/meetings/agtd/hillar13.pdf · Chris Hillar Redwood Center for Theoretical Neuroscience (UC Berkeley) (with L-H Lim) Most tensor

Mathematical Sciences Research InstituteNational Science Foundation

Redwood Center for Theoretical Neuroscience (U.C. Berkeley)

Lek-Heng Lim

Saturday, August 3, 13