cryptanalytic extraction of neural network models
play

Cryptanalytic Extraction of Neural Network Models Nicholas Carlini 1 - PowerPoint PPT Presentation

Cryptanalytic Extraction of Neural Network Models Nicholas Carlini 1 , Matthew Jagielski 12 , Ilya Mironov 13 1 Google, 2 Northeastern, 3 Facebook Solve For W Given: Given: Given: CAT Our Question: Given query access to a neural network,


  1. Cryptanalytic Extraction of Neural Network Models Nicholas Carlini 1 , Matthew Jagielski 12 , Ilya Mironov 13 1 Google, 2 Northeastern, 3 Facebook

  2. Solve For W Given: Given: Given: CAT

  3. Our Question: Given query access to a neural network, can we extract the hidden parameters?

  4. Two views of the problem Machine Learning Mathematical (function approximation) (direct analysis)

  5. Our Question: Given query access to a neural network, can we extract the hidden parameters?

  6. Our Result: Yes.* * For small fully connected neural networks with ReLU activations with a few layers evaluated in float64 precision and fully precise inputs and outputs as long as the network isn't pathologically worst-case (e.g., a reduction from 3-SAT) and even then we can only get functional equivalence because exact extraction is provably impossible and even then we only get up to 40 bits of precision when we could theoretically hope for up to 56 bits of precision with float64.

  7. Neural Networks 101

  8. x x x y y y

  9. x y h 1 x y h 2 x y h 3

  10. h 1 h 1 h 1 h 2 h 2 h 2 h 3 h 3 h 3

  11. h 2 h 1 h 3 h 1 h 2 h 3 h 2 h 1 h 3

  12. h 4 h 5 h 6

  13. h 4 h 6 h 5

  14. z

  15. a 1 x 1 Σ x 2 a 2

  16. a 1 x 1 Σ x 2 a 2

  17. a 1 x 1 Σ x 2 a 2

  18. ReLU(x) = max(x, 0)

  19. a 1 x 1 Σ x 2 a 2

  20. Σ

  21. Σ Σ Σ Σ Σ Σ Σ

  22. Extracting Neural Networks

  23. Given (oracle) query access to a neural network, can we extract model? the exact

  24. Given (oracle) query access to a neural network, a functionally equivalent can we extract model?

  25. Given (oracle) query access to a neural network, a functionally equivalent can we extract model?

  26. Given (oracle) query access to a neural network, learned through stochastic gradient descent, a functionally equivalent can we extract model?

  27. Given (oracle) query access to a neural network, learned through stochastic gradient descent, a functionally equivalent can we extract model? This paper: yes (empirically)

  28. [MSDH19, JCB + 20] Reduced Round Attack: 1 Hidden Layer

  29. [MSDH19, JCB + 20] Visual Intuition

  30. [MSDH19, JCB + 20]

  31. (+, +, +) (+, -, -) (-, +, +) (-, -, -) ( - , - , + )

  32. (+, +, +) (+, -, -) (-, -, -)

  33. Observation #1: location of the 
 critical hyperplanes almost completely determines the neural network

  34. [MSDH19, JCB + 20] u x 0 w y v

  35. [MSDH19, JCB + 20] u' x+ ε w+ ɑ ε ? y v'

  36. [MSDH19, JCB + 20] u'' x+ ε w+ ɑ ε 
 0 y+ δ + ɣ δ v''

  37. [MSDH19, JCB + 20] u'' a 1 x+ ε w+ ɑ ε 
 a 2 0 y+ δ + ɣ δ v''

  38. [MSDH19, JCB + 20] x a-- ε a 2 = 0 w a 1 b+ δ z

  39. however....

  40. δ ε

  41. Observation #2: local information is insufficient to recover neuron signs

  42. Finding witnesses to each neuron

  43. u v

  44. u v

  45. Our Contributions

  46. Our Contributions 1. Extract deep models 2. Efficient extraction 
 3. High Fidelity Extraction

  47. Our Contributions 1. Extract deep models 2. Efficient extraction 
 3. High Fidelity Extraction

  48. Our Contributions 1. Extract deep models 2. Efficient extraction 
 3. High Fidelity Extraction

  49. Our Contributions 1. Extract 2- deep models 2. Efficient extraction 
 3. High Fidelity Extraction

  50. Our Contributions 1. Extract 2- deep models 2. Efficient extraction 
 3. High Fidelity Extraction

  51. Our Contributions 1. Extract 2- deep models a. Recover weight values b. Recover neuron signs

  52. 2-deep Neural Network

  53. (+,+,+) (+,-,-) (-,+,+) (+,-,-) (-,-,-) (-,+,+)

  54. Recovering the first layer (up to sign)

  55. Recovering the first layer sign

  56. Hyperplane Following

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