from fourier to koopman
play

From Fourier to Koopman Spectral Methods for Long-term Time Series - PowerPoint PPT Presentation

From Fourier to Koopman Spectral Methods for Long-term Time Series Prediction arXiv:2004.00574 Henning Lange, Steven L. Brunton, J. Nathan Kutz Objective > Given data snapshots from x t t = 1 t = T to > Predict temporal snapshots x


  1. From Fourier to Koopman Spectral Methods for Long-term Time Series Prediction arXiv:2004.00574 Henning Lange, Steven L. Brunton, J. Nathan Kutz

  2. 
 Objective > Given data snapshots from x t t = 1 t = T to > Predict temporal snapshots x T + h > h in the order of 10.000 
 > Assumption: > x t is produced by quasi-periodic system

  3. Spatio-Temporal Systems

  4. Outline > Fourier Forecast > Similar to Fourier Transform > No implicit periodicity assumption 
 > Koopman Forecast > Based on Koopman theory > Fourier Transform in non-linear basis

  5. Outline > Fourier Forecast > Non-convex objective 
 > Koopman Forecast > Non-linear and non-convex objective > FFT allows for obtaining global optima

  6. Solution strategy > Both learning objectives contain easy and hard to optimize parameters > For both algorithms, the strategy for obtaining the global optimum of a single value of the hard to optimize parameters is introduced > Apply coordinate descent > Alternately optimize hard and easy quantities

  7. Fourier Forecast

  8. Objective > Goal: Fit linear dynamical system to data y t x t T ∑ minimize ( x t − Ay t ) 2 E ( A , B ) = t =1 subject to y t = By t − 1 Re [ eig ( B )] = 0

  9. Objective > Goal: Fit linear dynamical system to data y t x t 2 sin( ω 1 t ) ⋮ T sin( ω N t ) ∑ E ( A , ω ) = x t − A cos( ω 1 t ) t =1 ⋮ cos( ω N t )

  10. Objective > Goal: Fit linear dynamical system to data y t x t T 2 ∑ ( x t − A Ω ( ω t ) ) E ( A , ω ) = t =1

  11. Objective > Goal: Fit linear dynamical system to data y t x t > Because of linearity of and A Ω > Analytic solution for ω i > Symmetry relationship to Fourier Transform T 2 ∑ ( x t − A Ω ( ω t ) ) E ( A , ω ) = t =1

  12. Symmetry T 2 ∑ ( x t − A Ω ( ω t ) ) E ( A , ω ) = t =1 Jaynes, E. T . "Bayesian spectrum and chirp analysis." Maximum-Entropy and Bayesian Spectral Analysis and Estimation Problems. Springer, Dordrecht, 1987. 1-37.

  13. Spectral leakage > For quasi-periodic systems, FT/error surface is superposition of sinc-functions

  14. Combining FFT and GD > Fast Fourier Transform > evaluates the Fourier Transform at T frequencies with period > harmful for forecasting > Gradient Descent > because of non-convexity, will get stuck in bad local minimum

  15. Combining FFT and GD > Use Fast Fourier Transform > to locate global valley of error surface > Use Gradient Descent > to improve initial guess of FFT to break implicit periodicity assumptions

  16. Combining FFT and GD

  17. Koopman Forecast

  18. Spatio-Temporal Systems

  19. Koopman Theory > Koopman showed in 1931: > any non-linear dynamical system can be lifted by non-linear but time-invariant function into space where time evolution is linear Koopman, Bernard O. "Hamiltonian systems and transformation in Hilbert space." Proceedings of the National Academy of Sciences of the United States of America 17.5 (1931): 315 > Analogous to Cover’s theorem (1965) > Theoretical underpinning of Kernel methods and Deep Learning Cover, T .M. (1965). "Geometrical and Statistical properties of systems of linear inequalities with applications in pattern recognition" (PDF). IEEE Transactions on Electronic Computers. EC-14 (3): 326–334

  20. Koopman Theory f Koopman: Cover:

  21. Objective: Koopman > Recap: Stable Linear Dynamical System sin( ω 1 t ) ⋮ sin( ω N t ) Ω ( ω t ) = cos( ω 1 t ) ⋮ cos( ω N t )

  22. Objectives T 2 ∑ Koopman: ( x t − f Θ ( Ω ( ω t )) ) E ( Θ , ω ) = t =1 T 2 Fourier: ∑ ( x t − A Ω ( ω t ) ) E ( A , ω ) = t =1

  23. Objectives T 2 ∑ Koopman: ( x t − f Θ ( Ω ( ω t )) ) E ( Θ , ω ) = t =1

  24. Objective: Koopman T 2 ∑ Koopman: ( x t − f Θ ( Ω ( ω t )) ) E ( Θ , ω ) = t =1 Neural Network parameterized by Θ

  25. Objective: Koopman T 2 ∑ Koopman: ( x t − f Θ ( Ω ( ω t )) ) E ( Θ , ω ) = t =1 Because of non-linearity, no analytical solution for ω i

  26. Objective: Koopman T 2 ∑ Koopman: ( x t − f Θ ( Ω ( ω t )) ) E ( Θ , ω ) = t =1 However, in spite of non-linearity and non-convexity , computing global optima in direction of possible! ω i

  27. Objective: Koopman T 2 ∑ Koopman: ( x t − f Θ ( Ω ( ω t )) ) E ( Θ , ω ) = t =1 T ∑ = L ( Θ , ω , t ) t =1 2 L ( Θ , ω , t ) = ( x t − f Θ ( Ω ( ω t )) )

  28. Periodicity in loss t , t ) = ( x t − f Θ ( Ω (( ω + 2 π 2 t ) t )) ) L ( Θ , ω + 2 π 2 = ( x t − f Θ ( Ω ( ω t )) ) = L ( Θ , ω , t )

  29. Periodicity in loss L ( Θ , ω , t ) = L ( Θ , ω + 2 π t , t ) sin(( ω + 2 π t ) t ) = sin ( ω t + 2 π ) = sin( ω t )

  30. Periodicity in loss L ( Θ , ω , t ) = L ( Θ , ω + 2 π t , t )

  31. Computing the loss 2 π For all , compute loss within t t

  32. Computing the loss For all , repeat computed loss times t t

  33. Computing the loss For all , resample loss t

  34. Computing the loss Sum all ‘temporally local’ losses + +

  35. Computing the loss + + =

  36. Computing the loss Easy and efficient to implement in freq. domain! for t in range(T): E_ft[range(K)*t] += fft(L[t]) E = ifft(E_ft)

  37. Results

  38. Results: Theoretical > Fourier algorithm has universal approximation properties on finite datasets > Sines and cosine form an orthogonal basis > which is periodic in T > Analogous to Cover’s theorem, requires N dimensional space

  39. Results: Theoretical > For infinite data, Koopman algorithm is more expressive than Fourier counterpart

  40. Results: Theoretical > Close relationship to Bayesian Spectral analysis > Error grows linear in time and with noise variance > But shrinks superlinearly with amount of data x t ( ω *) | ∈ 𝒫 ( A i ) σ 2 t T 3 ∑ | ̂ x t ( ω ) − ̂ i Bretthorst, G. Larry. Bayesian spectrum analysis and parameter estimation. Vol. 48. Springer Science & Business Media, 2013. Jaynes, E. T . "Bayesian spectrum and chirp analysis." Maximum-Entropy and Bayesian Spectral Analysis and Estimation Problems. Springer, Dordrecht, 1987. 1-37.

  41. Results: Practical x t = sin ( 17 24 t ) 2 π + ϵ t

  42. Results: Practical

  43. Results: Practical

  44. Results: Practical

  45. Results: Practical

  46. Spatio-Temporal Systems

  47. Summary > Fit linear and non-linear oscillators to data > non-convex and non-linear objective > Many real world phenomena are quasi-periodic > gait, (space) weather, fluid flows, epidemiological data, power systems, sales, room occupancy, … 
 > Code is available: > https://github.com/helange23/from_fourier_to_koopman

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend