Docsity

Tensor Decomposition - Lecture Slides | COMP 665, Study notes of Computer Science

Partial preview of the text

Download Tensor Decomposition - Lecture Slides | COMP 665 and more Study notes Computer Science in PDF only on Docsity!

Tensor Decomposi-on

11/13/08 Comp 665 – Tensor Decomposi6on 1 xkcd: A webcomic of romance, sarcasm, math, and language. (http://xkcd.com) xkcd by Randall Munroe With notation and figures borrowed from M. Alex O. Vasilescu, “TensorTextures: Multilinear Image-Based Rendering” SIGGRAPH 2004

TensorTextures – Sharon Peri

SVD – Singular Value Decomposi-on

  • The SVD of a m × n matrix A is defined as:

A = USV

T where U (m × m) and V (n × n) are orthonormal, and S (m × n) is diagonal (its elements are the singular values)

  • Rela6on to PCA, if A is zero‐centered, cov(A) = AA T : AA T = US 2 U T  (AA T )U = US 2 Thus, U is a matrix of (AA T )’s eigenvectors
  • V T can be computed from A by decomposi6on: S ‐ U T A = V T
  • Tensors are mul6linear mapping over a set of vector spaces (N‐dimensional generaliza6on of vector/ matrix)
  • A tensor is a N‐dimensional array (“A is of order N”)
  • Element of A is denoted , where
  • The mode‐n vectors are the column vectors of matrix resul6ng from fla5ening the tensor A

Tensor Concepts

a i 1 … in … iN € A ∈ R I 1 × I (^) 2 ×…× I (^) N € 1 ≤ i n

≤ I

N

Mul-dimensional Matrices

11/13/08 Comp 665 – Tensor Decomposi6on 5 3 rd Order Tensor

  • A 360 frame 320 × 240 pixel movie (image stack)

Movie: Tensor Example

11/13/08 Comp 665 – Tensor Decomposi6on 7

Tensor Concepts

Fla5ening a (3rd‐order) tensor I 1 I 2 I 3 I 1 I 2 I 3 I 1 I 2 I 3 Rows Columns “Fibers”

Mode‐n Products

11/13/08 Comp 665 – Tensor Decomposi6on 10

Tensor Concepts

mode‐n product

Example

  • Average image 11/13/08 Comp 665 – Tensor Decomposi6on 13 € × time 1 360 1 360  1 [ 360 ] =

Outer, Kronecker,

and Khatri‐Rao Products

11/13/08 Comp 665 – Tensor Decomposi6on 14 Note: The Outer and Khatri-Rao Products have the same elements, but, one is a tensor, and the other a vector.

N‐mode SVD algorithm

  1. For n=1…N: compute U n by compu6ng the SVD of D (n) = U n S V T
  2. If needed, solve:

Tensor Dimensionality Reduc-on

  • In PCA: trunca6on of eigenvectors with smallest singular values in the SVD (op6mal)
  • In mul6linear analysis: similarly, trunca6on of the mode matrices U n of the N‐mode SVD
  • Result: approxima6on with reduced ranks where
  • The Approxima6on error is: € ⇒ ˆ U (^) n ( )

Image Acquisi-on & Representa-on

  • Several different views over the viewing hemisphere - Several different illumina6on condi6ons for each view

Mul-linear Analysis

  • Given an ensemble of images of textured surface, define image data tensor , where: V – number of viewing condi6ons I – number of illumina6on condi6ons T – number of pixels in each image
  • In principle, N‐mode SVD is applicable to obtain: In the paper: 37 views 21 illumina6ons 2403203=230400 pixels