quantum machine group learning
play

Quantum Machine Group Learning Carlos Tavares University of Minho - PowerPoint PPT Presentation

Quantum Machine Group Learning Carlos Tavares University of Minho High-Assurance Software Laboratory-INESC TEC ctavares@inesctec.pt November 13, 2017 Carlos Tavares (HASLab/INESC Tec) QMGL November 13, 2017 1 / 23 Overview Groups and


  1. Quantum Machine Group Learning Carlos Tavares University of Minho High-Assurance Software Laboratory-INESC TEC ctavares@inesctec.pt November 13, 2017 Carlos Tavares (HASLab/INESC Tec) QMGL November 13, 2017 1 / 23

  2. Overview Groups and Machine learning - The classical case 1 Groups in Machine learning - The quantum case 2 Carlos Tavares (HASLab/INESC Tec) QMGL November 13, 2017 2 / 23

  3. Groups A symmetry of an object is a transformation that leaves certain properties of that object intact (invariants) [GD14] Group algebra Associativity ∀ a,b,c ∈ G : ( a ◦ b ) ◦ c = a ◦ ( b ◦ c ) (1) Identity element ∃ e ∈ G ∀ a ∈ G : e ◦ a = a ◦ e = a (2) Closure ∀ a,b ∈ G : ( a ◦ b ) ∈ G (3) Inverse element ∀ a ∈ G ∃ b ∈ G : a − 1 = b, a ◦ b = b ∈ a = e (4) Groups are the natural mathematical tool to model symmetries! Carlos Tavares (HASLab/INESC Tec) QMGL November 13, 2017 3 / 23

  4. Groups Example Common groups (infinite group) Z , under the + operation . . . , − 4 , − 3 , − 2 , − 1 , 0 , 1 , 2 , 3 , 4 , . . . (5) Q , R , C Cyclic group Z /n Z , integers modulo n (finite group) Example: x mod 6 0 , 1 , 2 , 3 , 4 , 5 (6) Abelian and Non-Abelian groups Abelian groups: ∀ g,h ∈ G : g ◦ h = h ◦ g ; Non-Abelian groups: ∃ g,h ∈ G : g ◦ h � = h ◦ g Carlos Tavares (HASLab/INESC Tec) QMGL November 13, 2017 4 / 23

  5. Groups Example Non-Abelian groups Dihedral group Symmetry group: group of the permutations of a set π : X → X f 1 f 2 f 3 f 1 f 2 1 , 2 , 3 − → 2 , 1 , 3 − → 2 , 3 , 1 − → 1 , 3 , 2 − → 3 , 1 , 2 − → 3 , 2 , 1 (7) f 1 , f 2 , f 3 plus the identity transformation form a group! Example Groups in physics Symmetries in physics: conservation laws Lorentz group, Poincare group, Lie groups in field theory Carlos Tavares (HASLab/INESC Tec) QMGL November 13, 2017 5 / 23

  6. Groups in Machine learning Can groups be on any use in machine learning: yes! [GD14], [Kon08] Definition Objective A classification function invariant to group actions ∀ g ∈ G f ( x ) = f ( T g ( x )) (8) Example Computer Vision: Images are invariant to a large set of transformations. Many can be modeled by groups of increasing complexity. Shifts, Rotations, Scalings, Distortions (changes of coordinates) Carlos Tavares (HASLab/INESC Tec) QMGL November 13, 2017 6 / 23

  7. Groups in Machine learning Object tracking using the symmetry group Picture available in: https://sites.uclouvain.be/ispgroup/uploads//Research/IdentityAssignment.png Other examples: Permutation learning using the symmetry group More examples? The approach of using groups quickly gets intractable, depending on the groups involved! Carlos Tavares (HASLab/INESC Tec) QMGL November 13, 2017 7 / 23

  8. Kernel methods Kernel methods are a classification/regression technique with very solid foundations in statistical learning theory[HSS08] Classification/Regression problems Given a set of training examples, associating inputs (x) to outputs (y) ( x 1 , y 1 ) , . . . , ( x n , y n ) ∈ X × Y (9) Estimate the function that given an x, outputs the correspondent y. f : X → Y (10) Find the function f that minimizes a loss function L . m R reg [ f ] = 1 � L ( f ( x i ) , y i ) (11) m i =1 Carlos Tavares (HASLab/INESC Tec) QMGL November 13, 2017 8 / 23

  9. Kernel methods Example A very simple classifier + , − - classification classes, c + , c − - average points; � w = � c + − � c − ; � c = ( � c + − � c − ) / 2 ; � v = � x − � c ; h = � w · � v A measurement of similarity was required! Carlos Tavares (HASLab/INESC Tec) QMGL November 13, 2017 9 / 23

  10. Kernel methods Kernel are a generalized notion of similarity between points in the higher dimensional space [HSS08], they also target generalization. Kernels k : X × X → R (12) Kernels are not universal! ”Famous” Kernels: Gaussian Kernel, ANOVA kernel, sparse vector kernel, Polynomial Kernel Some can be transported to a feature space : the kernel can be mapped product in an Hilbert space k ( x, x ′ ) → � Φ( x ) , Φ( x ′ ) � (13) Positive definite kernels can induce Hilbert spaces: Regularized Kernel Hilbert Spaces (RKHS) To avoid overfitting regularization is required! Carlos Tavares (HASLab/INESC Tec) QMGL November 13, 2017 10 / 23

  11. Kernel methods Regularized RKHS RKHS, provides a natural regularized setting for functions based on kernel m R reg [ f ] = 1 � L ( f ( x i ) , y i ) + λ || f || 2 (14) m i =1 Representer theorem: An extensive set of functions can be reduced to linear expansions of the kernels of the training examples n � f ( x ) = α i k ( x, x i ) (15) i =1 The problem of optimization is reduced to finding the correct α i ∈ R coeficients Carlos Tavares (HASLab/INESC Tec) QMGL November 13, 2017 11 / 23

  12. Groups in Machine learning Invariant RKHS kernels [Kon08] Objective: induce a RKHS inv of functions invariant to an action of a group G ∀ g ∈ G f ( x ) = f ( T g ( x )) (16) The kernel must be also invariant to the action of the group and positive definite An invariant kernel on the group can be defined by a positive definite function on the group, which, being positive definite has a Fourier transform. FFTs can be of great use in machine learning by helping in build kernels invariant to certain groups. Several examples for non-trivial groups, such as the symmetry group exists [Kon08]. Carlos Tavares (HASLab/INESC Tec) QMGL November 13, 2017 12 / 23

  13. Groups and FFT’s in Quantum computation There is a close relationship between the hidden subgroup problem and Fourier transform HSP and Fourier transform A few interesting results with non-Abelian groups [HRTS00] , however the most relevant groups are still out of reach: Dihedral group and Symmetry group [EH00] Fourier transform: Group family Classical Quantum Abelian groups NlogN [CT65] ( logN ) [HH00] . . . . . . . . . Symmetry group N ! [CB93] Polynomial [Bea97] Can we still provide any type of advantage to kernel based methods? Carlos Tavares (HASLab/INESC Tec) QMGL November 13, 2017 13 / 23

  14. Quantum Support Vector Machines Many quantum SVM implementions are availale: [Wit14] Quantum SVM [RML14] Objective: M � y ( � x ) = sign ( α j k ( � x j , � x ) + b ) (17) j =1 State preparation I Assume oracles capable of preparing states corresponding to each training samples x : K 1 � | � x j � = ( � x j ) k | k � (18) � | � x j | k =1 Carlos Tavares (HASLab/INESC Tec) QMGL November 13, 2017 14 / 23

  15. Quantum Support Vector Machines State preparation II Apply the oracles over a superposition state M M 1 1 | i � O � � √ | Ψ � = − → | χ � = | � x i | | i � | � x i � (19) � M N χ i =1 i =1 We obtain the Kernel matrix, as the density matrix of the state K ˆ K = (20) trK Optimization I The optimization problem can be reduced to a minimum squares problem! � 1 T � a � � 0 � � b � � 0 � F ≡ = (21) � K + γ − 1 � α � � α � y 1 Carlos Tavares (HASLab/INESC Tec) QMGL November 13, 2017 15 / 23

  16. Quantum Support Vector Machines Optimization II y = { y 1 , . . . , y n } T ,� x T 1 = { 1 , . . . , 1 } T ... where K ij = � i · x j , � α T ) T can be obtained through the exponentiation The objective state ( b, � and inverse of the F matrix α T ) T = F − 1 (0 , y − T ) T ( b, � (22) ... which is expontially faster to obtain in a quantum computer. The end state after this process reads as follows M 1 � | b, � α � = √ α k | k � (23) C k =1 Carlos Tavares (HASLab/INESC Tec) QMGL November 13, 2017 16 / 23

  17. Quantum Support Vector Machines Classification By constructing a few states and making measurements it is possible to classify probabilistically a query state � x M 1 � | ˜ x � = √ N ˜ | � x | | k � | � x � (24) x k =1 f ◦ m | b, � α � × | ˜ x � − − − → +1 , − 1 (25) The idea! Enhance the quantum SVM method so it can be used with symmetry-aware kernels, making use of Fourier transform algorithms The symmetry group will the desirable one. Most of the processing should be done during the data preparation time Carlos Tavares (HASLab/INESC Tec) QMGL November 13, 2017 17 / 23

  18. Conclusions Kernel based methods have a solid mathematical foundation from statistical learning theory Machine learning methods can largely benefit from symmetries on data as it is observable in the classical world. Nonetheless, methods are complex, both from the computation and conceptual point of view. Quantum computation seems capable of providing the necessary ingredients to the application of these methods: efficient Fourier transforms and SVM methods. It is not well-understood the impact of such an algorithm in learnability, or classification/training performance, but it seems a promising path To do: Develop the algorithm, implement it in a quantum programming language and test its performance. Carlos Tavares (HASLab/INESC Tec) QMGL November 13, 2017 18 / 23

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