Justin Solomon Sebastian Claici MIT MIT Justin Solomon Sebastian - - PowerPoint PPT Presentation

justin solomon sebastian claici
SMART_READER_LITE
LIVE PREVIEW

Justin Solomon Sebastian Claici MIT MIT Justin Solomon Sebastian - - PowerPoint PPT Presentation

Justin Solomon Sebastian Claici MIT MIT Justin Solomon Sebastian Claici MIT MIT Client Which optimization tool is relevant? Designer Can I design an algorithm for this problem? Patterns, algorithms, & examples common in


slide-1
SLIDE 1

Justin Solomon

MIT

Sebastian Claici

MIT

slide-2
SLIDE 2

Justin Solomon

MIT

Sebastian Claici

MIT

slide-3
SLIDE 3
slide-4
SLIDE 4

Client

Which optimization tool is relevant?

Designer

Can I design an algorithm for this problem?

slide-5
SLIDE 5

Optimization is a huge field.

Patterns, algorithms, & examples common in geometry processing.

slide-6
SLIDE 6

Image from “Isometry-Aware Preconditioning for Mesh Parameterization” Claici, Bessmeltsev, Schaefer, & Solomon

slide-7
SLIDE 7

Difficult because:

  • Distortion is nonlinear/nonconvex
  • Parameterization must be one-to-one
slide-8
SLIDE 8

One contribution per triangle

slide-9
SLIDE 9

Vocabulary Simple examples Unconstrained optimization Equality-constrained

  • ptimization

Part I (Justin)

slide-10
SLIDE 10

Inequality constraints Advanced algorithms Examples Conclusion

Part II (Sebastian)

slide-11
SLIDE 11

Vocabulary Simple examples Unconstrained optimization Equality-constrained

  • ptimization

Part I (Justin)

slide-12
SLIDE 12

Objective (“Energy Function”)

slide-13
SLIDE 13

Equality Constraints

slide-14
SLIDE 14

Inequality Constraints

slide-15
SLIDE 15

Gradient

https://en.wikipedia.org/?title=Gradient

slide-16
SLIDE 16

Jacobian

https://en.wikipedia.org/wiki/Jacobian_matrix_and_determinant

slide-17
SLIDE 17

Hessian

http://math.etsu.edu/multicalc/prealpha/Chap2/Chap2-5/10-3a-t3.gif

slide-18
SLIDE 18

Critical point

(unconstrained)

Saddle point Local min Local max

slide-19
SLIDE 19
slide-20
SLIDE 20

Image from “Interactive Exploration of Design Trade-Offs” Schulz, Wang, Grinspun, Solomon, & Matusik

slide-21
SLIDE 21

Vocabulary Simple examples Unconstrained optimization Equality-constrained

  • ptimization

Part I (Justin)

slide-22
SLIDE 22
slide-23
SLIDE 23

How effective are generic

  • ptimization tools?
slide-24
SLIDE 24

How effective are generic

  • ptimization tools?
slide-25
SLIDE 25

Try the

simplest solver first.

slide-26
SLIDE 26

(assume A is symmetric and positive definite)

slide-27
SLIDE 27

Normal equations (better solvers for this case!)

slide-28
SLIDE 28
  • G. Peyré, mesh processing course slides
slide-29
SLIDE 29

 𝒙𝒋𝒌 ≡ 𝟐: Tutte embedding  𝒙𝒋𝒌 from mesh: Harmonic embedding

Assumption: 𝒙 symmetric.

slide-30
SLIDE 30

 Never construct 𝑩−𝟐 explicitly

(if you can avoid it)

 Added structure helps

Sparsity, symmetry, positive definiteness

slide-31
SLIDE 31

 Direct (explicit matrix)

  • Dense: Gaussian elimination/LU, QR for least-squares
  • Sparse: Reordering (SuiteSparse, Eigen)

 Iterative (apply matrix repeatedly)

  • Positive definite: Conjugate gradients
  • Symmetric: MINRES, GMRES
  • Generic: LSQR
slide-32
SLIDE 32

Induced by the connectivity of the triangle mesh. Iteration of CG has local effect ⇒ Precondition!

slide-33
SLIDE 33

What if 𝑾𝟏 = {}?

slide-34
SLIDE 34

Mullen et al. “Spectral Conformal Parameterization.” SGP 2008. Easy fix

slide-35
SLIDE 35

Prevents trivial solution 𝒚 ≡ 𝟏. Extract the smallest eigenvalue.

slide-36
SLIDE 36
slide-37
SLIDE 37

Roughly:

1.Extract Laplace-Beltrami eigenfunctions: 2.Find mapping matrix (linear solve!):

Ovsjanikov et al. “Functional Maps.” SIGGRAPH 2012.

slide-38
SLIDE 38

Vocabulary Simple examples Unconstrained optimization Equality-constrained

  • ptimization

Part I (Justin)

slide-39
SLIDE 39

Unstructured.

slide-40
SLIDE 40

Gradient descent

Line search Multiple optima!

slide-41
SLIDE 41

Accelerated gradient descent

Quadratic convergence on convex problems!

(Nesterov 1983)

slide-42
SLIDE 42

Newton’s Method

1 2 3

Line search for stability

slide-43
SLIDE 43

Quasi-Newton: BFGS and friends

Hessian approximation

 (Often sparse) approximation from previous

samples and gradients

 Inverse in closed form!

slide-44
SLIDE 44

Examples:

  • “Accelerated Quadratic Proxy for

Geometric Optimization” (Kovalsky et al. 2016)

  • “Scalable Locally Injective Maps”

(Rabinovich et al. 2016)

  • “Isometry-Aware Preconditioning

for Mesh Parameterization” (Claici et al. 2017)

  • …several others
slide-45
SLIDE 45

“Accelerated Quadratic Proxy for Geometric Optimization” (Kovalsky et al. 2016)

slide-46
SLIDE 46

Fröhlich and Botsch. “Example-Driven Deformations Based on Discrete Shells.” CGF 2011.

slide-47
SLIDE 47

Roughly:

  • 1. Linearly interpolate edge lengths and dihedral

angles.

  • 2. Nonlinear optimization for vertex positions.

Sum of squares: Gauss-Newton

slide-48
SLIDE 48

 Matlab: fminunc or minfunc  C++: libLBFGS, dlib, others

Typically provide functions for function and gradient (and optionally, Hessian).

Try several!

slide-49
SLIDE 49

Vocabulary Simple examples Unconstrained optimization Equality-constrained

  • ptimization

Part I (Justin)

slide-50
SLIDE 50
slide-51
SLIDE 51
  • Decrease f: −𝛂𝒈
  • Violate constraint: ±𝛂𝒉
slide-52
SLIDE 52

Want:

slide-53
SLIDE 53
slide-54
SLIDE 54

Turns constrained optimization into

unconstrained root-finding.

slide-55
SLIDE 55

Reparameterization

Eliminate constraints to reduce to unconstrained case

Newton’s method

Approximation: quadratic function with linear constraint

Penalty method

Augment objective with barrier term, e.g. 𝒈 𝒚 + 𝝇|𝒉 𝒚 |

slide-56
SLIDE 56

Example: Levenberg-Marquardt

Fix (or adjust) damping parameter 𝝁 > 𝟏.

slide-57
SLIDE 57

Huang et al. “L1-Based Construction of Polycube Maps from Complex Shapes.” TOG 2014.

Align with coordinate axes Preserve area

Note: Final method includes more terms!

slide-58
SLIDE 58
  • Start with a feasible point
  • Don’t ever enter the infeasible region
  • Use a barrier in the objective

Bijective Parameterization with Free Boundaries (Smith & Schaefer, SIGGRAPH 2015)

slide-59
SLIDE 59
slide-60
SLIDE 60

Try lightweight options

versus

slide-61
SLIDE 61

Repeatedly solve linear systems

“Geometric median”

slide-62
SLIDE 62

d can be a Bregman divergence

slide-63
SLIDE 63

Decompose as sum of hard part f and easy part g.

https://blogs.princeton.edu/imabandit/2013/04/11/orf523-ista-and-fista/

slide-64
SLIDE 64

Add constraint to objective

Does nothing when constraint is satisfied

slide-65
SLIDE 65

https://web.stanford.edu/~boyd/papers/pdf/admm_slides.pdf

slide-66
SLIDE 66

Want two easy subproblems

Augmented part

Solomon et al. “Earth Mover’s Distances on Discrete Surfaces.” SIGGRAPH 2014.

slide-67
SLIDE 67

https://en.wikipedia.org/wiki/Frank%E2%80%93Wolfe_algorithm

Linearize objective, preserve constraints