Patentes CM
Logo

PRIVATE ARTIFICIAL NEURAL NETWORKS WITH TRUSTED EXECUTION ENVIRONMENTS AND QUADRATIC HOMOMORPHIC ENCRYPTION

NEC Laboratories Europe GmbH

Detalles de la patente

Resumen

The present invention provides a computer-implemented method of training an artificial neural network, ANN, on a remote host (110). In order to achieve a high level of accuracy of the ANN training, while at the same time preserving the privacy of the data used to train the ANN, the method comprises computing, by a trusted process (130) deployed in a trusted execution environment, TEE (120), on the remote host (110), a key-pair for a homomorphic encryption scheme and sharing, by the trusted process (130), the public key, PK, of the key-pair with an untrusted process (140) deployed on the remote host (110); and splitting the training procedure of the ANN between the untrusted process (140) and the trusted process (130), wherein the untrusted process (140) computes encrypted inputs to the neurons of the ANN by means of the homomorphic encryption scheme, while the trusted process (130) computes the outputs of the neurons based on the respective encrypted neuron inputs as provided by the untrusted process (140).

Reivindicaciones

  1. C l a i m s 1. A computer-implemented method of training an artificial neural network, ANN, on a remote host (110), the method comprising: computing, by a trusted process (130) deployed in a trusted execution environment, TEE (120), on the remote host (110), a key-pair for a homomorphic encryption scheme and sharing, by the trusted process (130), the public key, PK, of the key-pair with an untrusted process (140) deployed on the remote host (110); and splitting the training procedure of the ANN between the untrusted process (140) and the trusted process (130), wherein the untrusted process (140) computes encrypted inputs to the neurons of the ANN by means of the homomorphic encryption scheme, while the trusted process (130) computes the outputs of the neurons based on the respective encrypted neuron inputs as provided by the untrusted process (140).
  2. The method according to claim 1 , wherein the homomorphic encryption scheme is parametrized to compute quadratic functions.
  3. The method according to claim 1 or 2, further comprising: encrypting, by the trusted process (130), the inputs and the parameters, including the weights, of the ANN with the public key, PK; sending the encrypted inputs and parameters to the untrusted process (140); and computing, by the trusted process (130) cooperating with the untrusted process (140), the output of the ANN and the gradient of the weights, given the encrypted inputs and the encrypted weights.
  4. The method according to any of claims 1 to 3, further comprising an initialization phase, including the steps of: computing, by the trusted process (130), random weight matrices for all layers of the ANN, encrypting the random weight matrices with the public key, PK, and sending the encrypted weight matrices to the untrusted process (140).
  5. The method according to any of claims 1 to 4, further comprising a feed forwarding phase, including the steps of: sending, by the trusted process (130) for each layer of the ANN, the output of the neurons of a respective layer, encrypted with the public key, PK, to the untrusted process (140); and computing, by the untrusted process (140), an input for the respective subsequent layer of the ANN by executing homomorphic matrix multiplication of the respective encrypted weight matrix and the encrypted output as received from the trusted process (130).
  6. The method according to claim 5, further comprising: decrypting, by the trusted process (130), the input for the respective subsequent layer of the ANN as received from the untrusted process (140); and computing, by the trusted process (130), an output of the respective subsequent layer by computing on the decrypted input the respective activation function.
  7. The method according to any of claims 1 to 6, further comprising a back- propagation phase for minimizing the cost function of the ANN by adjusting the weights, including the steps of: computing, by the trusted process (130) for each layer of the ANN, a gradient of the weights; and encrypting the gradients with the public key, PK, and sending the encrypted gradients to the untrusted process (140).
  8. The method according to claim 7, wherein, at the end of the propagation phase, the untrusted process (140) holds, for each layer of the ANN, a gradient weight matrix, encrypted with the public key, PK.
  9. The method according to any of claims 1 to 8, further comprising a weights updating phase, including the steps of: computing, by the untrusted process (140), based on the encrypted weight matrices and gradient weight matrices, updated weight matrices by executing, for each layer of the ANN, homomorphic matrix addition of the respective encrypted weight matrix and the respective encrypted gradient weight matrix.
  10. The method according to any of claims 5 to 9 , further comprising: iterating the feed-forwarding phase, the back-propagation phase and the weights-updating phase over each sample of an ANN training data set.
  11. The method according to any of claims 1 to 10, further comprising a weight refreshing procedure, including the steps of: sending, by the untrusted process (140), the encrypted weight matrices of each layer of the ANN to the trusted process (130) and discarding them afterwards; decrypting, by the trusted process (130), the received encrypted weight matrices to obtain the plaintext weight matrices and encrypting each plaintext weight matrix in a fresh ciphertext; and sending, by the trusted process (130), the refreshed encrypted weight matrices to the untrusted process (140).
  12. The method according to claim 11 , wherein the weight refreshing procedure is executed in case the number of weight updates reaches an upper bound as defined by the parameters of the homomorphic encryption scheme.
  13. The method according to any of claims 1 to 12, wherein the ANN training data are provided, encrypted under the public key, PK, of the trusted process (130), by a plurality of different data owners (150).
  14. A host processing system for remote training of an artificial neural network, in particular for execution of a method according to any of claims 1 to 13, the host processing system (110) comprising a trusted execution environment, TEE (120), and an untrusted processing system, UPS (170), and being configured to: run a trusted process (130) deployed in the TEE (120) that computes a key- pair for a homomorphic encryption scheme and share the public key, PK, of the key- pair with an untrusted process (140) running on the UPS (170); and split the training procedure of the ANN between the untrusted process (140) and the trusted process (130), wherein the untrusted process (140) is configured to compute encrypted inputs to the neurons of the ANN by means of the homomorphic encryption scheme, while the trusted process (130) is configured to the outputs of the neurons based on the respective encrypted neuron inputs as provided by the untrusted process (140).
  15. A non-transitory computer readable medium for remote training of an artificial neural network with a host processing system (110) comprising a trusted execution environment, TEE (120), and an untrusted processing system, UPS (170), the medium comprising program code for configuring the host processing system (110) to: run a trusted process (130) deployed in the TEE (120) that computes a key- pair for a homomorphic encryption scheme and share the public key, PK, of the key- pair with an untrusted process (140) running on the UPS (170); and split the training procedure of the ANN between the untrusted process (140) and the trusted process (130), wherein the untrusted process (140) is configured to compute encrypted inputs to the neurons of the ANN by means of the homomorphic encryption scheme, while the trusted process (130) is configured to the outputs of the neurons based on the respective encrypted neuron inputs as provided by the untrusted process (140).
Inventores
  • SORIENTE, Claudio
  • FIORE, Dario
Solicitantes
  • NEC Laboratories Europe GmbH
  • IMDEA Software Institute
Clasificación IPC

G06F 21/ 53 A I, G06F 21/ 71 A I, G06F 7/ 544 A I, H04L 9/ 00 A I

Nº de publicación

WO.2022199861.A1

Fecha de publicación

29 de septiembre de 2022

Nº de solicitud

2021063353

Fecha de presentación

19 de mayo de 2021

Estado legal
docdbfechacodigodescripcion
WO.2022199861.A12025-08-12WWGWIPO INFORMATION: GRANT IN NATIONAL OFFICE
WO.2022199861.A12023-10-26NENPNON-ENTRY INTO THE NATIONAL PHASE
WO.2022199861.A12023-09-08WWEWIPO INFORMATION: ENTRY INTO NATIONAL PHASE
WO.2022199861.A12023-05-07ENPENTRY INTO THE NATIONAL PHASE
WO.2022199861.A12022-11-09121EP: THE EPO HAS BEEN INFORMED BY WIPO THAT EP WAS DESIGNATED IN THIS APPLICATION
Patentes relacionadas