Fast and stable rational RBF-based Partition of Unity interpolation 1 - - PowerPoint PPT Presentation

fast and stable rational rbf based
SMART_READER_LITE
LIVE PREVIEW

Fast and stable rational RBF-based Partition of Unity interpolation 1 - - PowerPoint PPT Presentation

Fast and stable rational RBF-based Partition of Unity interpolation 1 Stefano De Marchi Department of Mathematics Tullio Levi-Civita University of Padova SMART 2017 - Gaeta September 18, 2017 1 joint work with A. Martinez (Padova) and E.


slide-1
SLIDE 1

Fast and stable rational RBF-based Partition of Unity interpolation1

Stefano De Marchi Department of Mathematics “Tullio Levi-Civita” University of Padova SMART 2017 - Gaeta September 18, 2017

1joint work with A. Martinez (Padova) and E. Perracchione (Padova)

slide-2
SLIDE 2

Outline

1

From RBF to Rational RBF (RRBF)

2

Partion of Unity, VSK, Computational issues

3

Numerical experiments

4

Future work

2 of 27

slide-3
SLIDE 3

From RBF to Rational RBF (RRBF)

3 of 27

slide-4
SLIDE 4

RBF Approximation

Notation

1 Data: Ω ⊂ Rd, X ⊂ Ω, test function f

XN = {x1, . . . , xN} ⊂ Ω f = {f1, . . . , fN}, where fi = f(xi)

4 of 27

slide-5
SLIDE 5

RBF Approximation

Notation

1 Data: Ω ⊂ Rd, X ⊂ Ω, test function f

XN = {x1, . . . , xN} ⊂ Ω f = {f1, . . . , fN}, where fi = f(xi)

2 Approximation setting: kernel Kε, NK (Ω), NK (XN) ⊂ NK (Ω)

kernel K = Kε, Strictly Positive Definite (SPD) and radial Examples:

globally supported: Kε(x, y) = e−(εx−y)2 (gaussian), locally supported: Kε(x, y) = (1 − ε2x − y2)4

+[4ε2x − y2 + 1]

(C2(R2) Wendland )

native space NK (Ω) (where K is the reproducing kernel) finite subspace NK (XN) = span{K(·, x) : x ∈ XN} ⊂ NK (Ω)

4 of 27

slide-6
SLIDE 6

RBF Approximation

Notation

1 Data: Ω ⊂ Rd, X ⊂ Ω, test function f

XN = {x1, . . . , xN} ⊂ Ω f = {f1, . . . , fN}, where fi = f(xi)

2 Approximation setting: kernel Kε, NK (Ω), NK (XN) ⊂ NK (Ω)

kernel K = Kε, Strictly Positive Definite (SPD) and radial Examples:

globally supported: Kε(x, y) = e−(εx−y)2 (gaussian), locally supported: Kε(x, y) = (1 − ε2x − y2)4

+[4ε2x − y2 + 1]

(C2(R2) Wendland )

native space NK (Ω) (where K is the reproducing kernel) finite subspace NK (XN) = span{K(·, x) : x ∈ XN} ⊂ NK (Ω)

Aim

Find Pf ∈ NK (XN) s.t. Pf ≈ f

4 of 27

slide-7
SLIDE 7

RBF Interpolation

Given Ω, XN, f Interpolant: Pf(x) =

N

  • k=1

αkK(x, xk), x ∈ Ω, xk ∈ XN. [Hardy and Gofert 1975] used multiquadrics K(x, y) =

  • 1 + ǫ2x − y2.

5 of 27

slide-8
SLIDE 8

RBF Interpolation

Given Ω, XN, f Interpolant: Pf(x) =

N

  • k=1

αkK(x, xk), x ∈ Ω, xk ∈ XN. [Hardy and Gofert 1975] used multiquadrics K(x, y) =

  • 1 + ǫ2x − y2.

Rescaled interpolant: ˆ Pf(x) = Pf(x) Pg(x) = N

k=1 αkK(x, xk)

N

k=1 βkK(x, xk)

where Pg is the kernel based interpolant of g(x) = 1, ∀x ∈ Ω [Deparis at al 2014, DeM et al 2017]. Shepard’s PU method.

5 of 27

slide-9
SLIDE 9

RBF Interpolation

Given Ω, XN, f Interpolant: Pf(x) =

N

  • k=1

αkK(x, xk), x ∈ Ω, xk ∈ XN. [Hardy and Gofert 1975] used multiquadrics K(x, y) =

  • 1 + ǫ2x − y2.

Rescaled interpolant: ˆ Pf(x) = Pf(x) Pg(x) = N

k=1 αkK(x, xk)

N

k=1 βkK(x, xk)

where Pg is the kernel based interpolant of g(x) = 1, ∀x ∈ Ω [Deparis at al 2014, DeM et al 2017]. Shepard’s PU method. Rational interpolant: R(x) = R(1)(x) R(2)(x) = N

k=1 αkK(x, xk)

N

k=1 βkK(x, xk)

[Jackbsson et al. 2009, Sarra and Bai 2017].

5 of 27

slide-10
SLIDE 10

Rational RBF

General framework

polynomial case d = 1. r(x) = p1(x) p2(x) = amxm + · · · + a0x0 xn + bn−1xn−1 · · · + b0 . M = m + n + 1 unknowns (Pad´ e approximation). If N > M to get the coefficients we may solve the LS problem min

p1∈Π1

m,p2∈Π1 n

       

N

  • k=1
  • f(xk) − r(xk)
  • 2

        .

6 of 27

slide-11
SLIDE 11

Rational RBF

General framework

polynomial case d = 1. r(x) = p1(x) p2(x) = amxm + · · · + a0x0 xn + bn−1xn−1 · · · + b0 . M = m + n + 1 unknowns (Pad´ e approximation). If N > M to get the coefficients we may solve the LS problem min

p1∈Π1

m,p2∈Π1 n

       

N

  • k=1
  • f(xk) − r(xk)
  • 2

        . Let Xm = {xk, . . . , xk+m−1}, Xn = {xj, . . . , xj+n−1} ⊂ XN be non empty, such that m + n ≤ N R(x) = R(1)(x) R(2)(x) = k+m−1

i1=k

αi1K(x, xi1) j+n−1

i2=j

βi2K(x, xi2) , (1) provided R(2)(x) 0, x ∈ Ω.

6 of 27

slide-12
SLIDE 12

Rational RBF

Posedness

In the case m + n = N, asking R(xi) = fi, R(1)(xi) − R(2)(xi)fi = 0 =⇒ Bξ = 0 with ξ = (α, β) and B = B1 + B2.

7 of 27

slide-13
SLIDE 13

Rational RBF

Posedness

In the case m + n = N, asking R(xi) = fi, R(1)(xi) − R(2)(xi)fi = 0 =⇒ Bξ = 0 with ξ = (α, β) and B = B1 + B2. Obs: depending on Xm, Xn and on the function values f, we might have cancellations and B can be singular. We must look for non-trivial solutions!

7 of 27

slide-14
SLIDE 14

Rational RBF

Posedness

In the case m + n = N, asking R(xi) = fi, R(1)(xi) − R(2)(xi)fi = 0 =⇒ Bξ = 0 with ξ = (α, β) and B = B1 + B2. Obs: depending on Xm, Xn and on the function values f, we might have cancellations and B can be singular. We must look for non-trivial solutions!

Example

Given XN and f. Let Xm ∩ Xn ∅, with m + n = N. Suppose that fi = a, i = 1, . . . , N, a ∈ R, then the system Bξ = 0 admits infinite solutions.

7 of 27

slide-15
SLIDE 15

Example

Example

N = 26, m = n = 13, Ω = [0, 1], fi = 1 (Left) or f be piecewise constant (Right) . Following [GolubReinsch1975] non-trivial solution by asking ||ξ||2 = 1 i.e. solving constrained problem min

ξ∈RN,||ξ||2=1 ||Bξ||2 .

Figure : The black dots represent the set of scattered data, the red solid line and the blue dotted one are the curves

reconstructed via the rational RBF and classical RBF approximation, by the Gaussian kernel.

8 of 27

slide-16
SLIDE 16

Rational RBF

Find the coefficients: I

[Jackobsson et al 2009] proved the well-posedness of R(x) = R(1)(x) R(2)(x) = N

i=1 αiK(x, xi)

N

k=1 βkK(x, xk)

, B is now a sum of two squared blocks of order N i.e. B is N × 2N B =             K(x1, x1) · · · K(x1, xN) −f1 K(x1, x1) · · · −f1 K(x1, xN) . . . . . . . . . K(xN, x1) · · · K(xN, xN) −fN K(xN, x1) · · · −fN K(xN, xN)             . The system Bξ = 0 can be written as (A − DA)(ξ) = 0 with D = diag(f1, . . . , fN), and Ai,j = K(xi, xj). But underdetermined!

9 of 27

slide-17
SLIDE 17

Rational RBF

Find the coefficients: II

Since R(1)(xi) = fiR(2)(xi), find q = (R(2)(x1), . . . , R(2)(xN))T and then get p = (R(1)(xi), ..., R(1)(xN))T as p = Dq .

10 of 27

slide-18
SLIDE 18

Rational RBF

Find the coefficients: II

Since R(1)(xi) = fiR(2)(xi), find q = (R(2)(x1), . . . , R(2)(xN))T and then get p = (R(1)(xi), ..., R(1)(xN))T as p = Dq . If p, q are given then the rational interpolant is known by solving Aα = p, Aβ = q . (2)

10 of 27

slide-19
SLIDE 19

Rational RBF

Find the coefficients: II

Since R(1)(xi) = fiR(2)(xi), find q = (R(2)(x1), . . . , R(2)(xN))T and then get p = (R(1)(xi), ..., R(1)(xN))T as p = Dq . If p, q are given then the rational interpolant is known by solving Aα = p, Aβ = q . (2) Existence+Uniqueness of (2) since K is SPD Using the native space norms the above problem is equivalent

Problem 1

min

R(1),R(2)∈NK , 1/||f||2

2||p||2 2+||q||2 2=1,

R(1)(xk )=fk R(2)(xk ).

      1 ||f||2

2

||R(1)||2

NK + ||R(2)||2 NK

      . (3)

10 of 27

slide-20
SLIDE 20

Rational RBF

Find the coefficients: III

||R(1)||2

NK = αTAα,

and ||R(2)||2

NK = βTAβ.

Then, from (2) and symmetry of A ||R(1)||2

NK = pTA−1p,

and ||R(2)||2

NK = qTA−1q.

Therefore, the Problem 1 reduces to solve

Problem 2

min

q∈RN, 1/||f||2

2||Dq||2 2+||q||2 2=1.

      1 ||f||2

2

qTDTA−1Dq + qTA−1q       .

11 of 27

slide-21
SLIDE 21

Rational RBF

Find the coefficients: IV

[Jackbsson 2009] show that this is equivalent to solve the following generalized eigenvalue problem

Problem 3

Σq = λΘq, with Σ = 1 ||f||2

2

DTA−1D + A−1, and Θ = 1 ||f||2

2

DTD + IN, where IN is the identity matrix.

12 of 27

slide-22
SLIDE 22

Partion of Unity, VSK, Computational issues

13 of 27

slide-23
SLIDE 23

RRBF- PU interpolation

Ω = ∪s

j=1Ωi (can overlap): that is, each x ∈ Ω belongs to a limited

number of subdomains, say s0 < s. Then we consider, Wj non-negative fnct on Ωj, s.t. s

j=1 Wj = 1 is a

partition of unity .

RRBF-PU interpolant

I(x) =

s

  • j=1

Rj(x)Wj(x), ∀ x ∈ Ω (4) where Rj is a RRBF interpolant on Ωj i.e. Rj(x) = R(1)

j

(x) R(2)

j

(x) = Nj

i=1 αj iK(x, xj i )

Nj

k=1 βj kK(x, xj k)

, Nj = |Ωj| , xj

k ∈ XNj, k = 1, . . . , Nj.

14 of 27

slide-24
SLIDE 24

RRBF-PU interpolation

The RRBF interpolant is constructed as the global one solving Problem 3 on Ωj . The RRBF interpolants can suffer of instability problems, especially for ǫ → 0 like the classical one.

15 of 27

slide-25
SLIDE 25

RRBF-PU interpolation

The RRBF interpolant is constructed as the global one solving Problem 3 on Ωj . The RRBF interpolants can suffer of instability problems, especially for ǫ → 0 like the classical one.

(Some) Stability issues

Optimal shape parameter (Trial&Error, Cross Validation), stable bases (RBF-QR, HS-SVD, WSVD) [Fornberg et al 2011, Fasshauer Mc Court 2012, DeM Santin 2013], Optimal shape parameters for PUM [Cavoretto et al. 2016], Rescaled RBF [ Deparis 2015, DeM et al 2017], Variably Scaled Kernels [Bozzini et al. 2015].

(Some) Computational issues

Fast WSVD bases [DeM Santin 2015], Fast algorithm for shape and radius parameters [Cavoretto et al. 2016], Explicit formulas for the

  • ptimal shape parameters 1d [Bos et al 2017].

15 of 27

slide-26
SLIDE 26

Our approach: RRBF-PU via VSK

Definition

Let ψ : Rd → (0, ∞) be a given scale function. A Variably Scaled Kernel (VSK) Kψ on Rd is Kψ(x, y) := K((x, ψ(x)), (y, ψ(y))), ∀x, y ∈ Rd. where K is a kernel on Rd+1.

Definition

Given XN and the scale functions ψj : Rd → (0, ∞), j = 1, . . . , s, the RVSK-PU is Iψ(x) =

d

  • j=1

Rψj (x) Wj (x) , x ∈ Ω, (5) with Rψj(x) the RVSK-PU on Ωj. OBS: when Φ is radial (Aψj)ik = Φ(xj

i − xj k2 + (ψj(xj i ) − ψj(xj k))2), i, k = 1, ..., Nj.

16 of 27

slide-27
SLIDE 27

Computational steps

PU construction: Ω = ∪s

i=1Ωi. We choose Ωj as d-dimensional balls

  • f radius δ and s ∝ N. [Fassahuer2007] suggests

s =         

d

√ N 2d          , δ > δ0 =

d

  • 1/s .

Choice of VSK scaling functions ψj, j = 1, . . . , s. To compute the local rational fit, by solving on each Ωj the eigenvalue Problem 3, we use the Deflated Augumented Conjugate Gradient (DACG) [Bergamaschi et al 2002]. Construction of the RVSK-PU by finding qψj and pψj (solving two smaller linear systems (2)). Use then the PU weights to get the global rational VSK interpolant Iψ.

17 of 27

slide-28
SLIDE 28

Numerical experiments

18 of 27

slide-29
SLIDE 29

Globally supported RBFs

d = 2, f1(x1, x2) = (tan(x2 − x1) + 1)/(tan 9 + 1), circular patches and ψ(1)

j

(x1, x2) = 0.5 +

  • 9 − [(x1 − ˜

x1j)2 + (x2 − ˜ x2j)2], Figure : The approximate surface f1 obtained with the SRBF-PU (left) and RVSK-PU (right) methods with N = 1089 Halton data. Results are computed using the Gaussian C∞ kernel as local approximant.

19 of 27

slide-30
SLIDE 30

Globally supported RBFs

1 2 3 4 5 6 7 x 10

4

5 10 15 20 25 30 N CPU SRBF−PU RVSK−PU (no DACG) RVSK−PU 1 2 3 4 5 6 7 x 10

4

10

−7

10

−6

10

−5

10

−4

10

−3

10

−2

10

−1

N RMSE SRBF−PU RVSK−PU (no DACG) RVSK−PU

Figure : Left: the number of points N versus the CPU times for the SRBF-PU, RVSK-PU and RVSK-PU (no DACG), i.e. the RVSK-PU computed with the IRLM (Implicit Restarted Lanczos) method. Right: the number of points N versus the logarithmic scale of the RMSE for the SRBF-PU, RVSK-PU and RVSK-PU (no DACG).

20 of 27

slide-31
SLIDE 31

Globally supported RBFs

10

−6

10

−4

10

−2

10 10

2

10

−4

10

−2

10 10

2

10

4

10

6

10

8

ε RMSE Rational PUM PUM QR−PUM 10

−6

10

−4

10

−2

10 10

2

10

−6

10

−4

10

−2

10 10

2

10

4

10

6

ε RMSE Rational PUM PUM QR−PUM

Figure : Comparison of RMSEs vs shape parameters for the SRBF-PUM, RRBF-PUM and RBF-QR+PUM methods on f1 on two sets of Halton points, with Gaussian kernel

21 of 27

slide-32
SLIDE 32

Compactly supported RBFs

f3(x1, x2) = sin(3x2

1 + 6x2 2) − sin(2x2 1 + 4x2 − 0.5). Noisy Halton data

(0.01 noise), s = 16 subdivisions, δ = δ0. Figure : The approximate surface f3 obtained with the SRBF-PU (left) and RVSK-PU (right) methods with N = 1089 noisy Halton data. Results are computed using the Wendland’s C2 function as local approximant. The shape parameter equal to 6.

22 of 27

slide-33
SLIDE 33

Compactly supported RBFs

5 10 15 20 25 30 5 10 15 20 25 30 100 200 300 400 50 100 150 200 250 300 350 400

Figure : Typical sparsity pattern of the local interpolation matrices

  • btained via the RVSK-PU method with 289 (left) and 4225 (right) noisy

Halton data. C2 Wendland’s kernel.

23 of 27

slide-34
SLIDE 34

Future work

Cardinal functions and barycentric form of the rational interpolant. Error estimates, native spaces. Applications and extensions.

24 of 27

slide-35
SLIDE 35

References

25 of 27

slide-36
SLIDE 36

Some references

  • L. Bergamaschi, M. Putti, Numerical comparison of iterative eigensolvers for large sparse symmetric matrices,
  • Comp. Methods App. Mech. Engrg. 191 (2002), pp. 5233–5247.

: Interpolation with Variably Scaled Kernels. IMA J. Numer. Anal. 35(1) (2015), pp. 199–219.

  • R. Cavoretto, S. De Marchi, A. De Rossi, E. Perracchione, G. Santin, Partition of unity interpolation using stable

kernel-based techniques, Appl. Numer. Math. 116 (2017), pp. 95–107.

  • R. Cavoretto, A. De Rossi, E. Perracchione, Optimal selection of local approximants in RBF-PU interpolation, to

appear on J. Sci. Comput. (2017).

  • S. De Marchi, G. Santin, Fast computation of orthonormal basis for RBF spaces through Krylov space methods,

BIT 55 (2015), pp. 949–966. Stefano De Marchi, Andrea Idda and Gabriele Santin: A rescaled method for RBF approximation. Springer Proceedings on Mathematics and Statistics, Vol. 201, pp.39–59. (2017)

26 of 27

slide-37
SLIDE 37

grazie per la vostra attenzione! thanks for your attention!

27 of 27