Top Banner
Nick Hynes | Oasis Labs Ginseng, the Learning TEE Fast, Confidential Machine Learning in FPGA Enclaves
13

Ginseng, the Learning TEE - Keystone

Mar 23, 2022

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Ginseng, the Learning TEE - Keystone

Nick Hynes | Oasis Labs

Ginseng, the Learning TEE

Fast, Confidential Machine Learning in FPGA Enclaves

Page 2: Ginseng, the Learning TEE - Keystone

Ideal: data providers pool data to train a large, complex model

Page 3: Ginseng, the Learning TEE - Keystone

Ideal: data providers pool data to train a large, complex model

credit scoring model

ExperianEquifax

TransUnion

Page 4: Ginseng, the Learning TEE - Keystone

health diagnosis model

UCSF MedicalMass. GeneralHospital

Kaiser Permanente

Ideal: data providers pool data to train a large, complex model

Page 5: Ginseng, the Learning TEE - Keystone

truly personal, personal assistant

meyou

your neighbor

Ideal: data providers pool data to train a large, complex model

Page 6: Ginseng, the Learning TEE - Keystone

re-identification

Reality: data providers are mutually distrusting!

inappropriate use(ads, military)data theft

Page 7: Ginseng, the Learning TEE - Keystone

Solution: cooperation via a trusted third party (i.e. enclave)

Page 8: Ginseng, the Learning TEE - Keystone

What about CPU Enclaves?Performance of VGG-9 on CIFAR (32x32 RGB images)

[1] Efficient Deep Learning on Multi-Source Private Data. N. Hynes, R. Cheng, D. Song. Arxiv 2018[2] Chiron: Privacy-preserving machine learning as a service. T. Hunt, C. Song, R. Shokri, V. Shmatikov, and E. Witchel. Arxiv 2018[3] Graviton: Trusted Execution Environments on GPUs. S. Volos, K. Vaswani. OSDI 2018

img/s (training) img/s (inference)

Myelin [1] 21 img/s 496 img/s

Chiron (4 enclaves) [2] 25 img/s –

non-private CPU 42 img/s 1119 img/s

Page 9: Ginseng, the Learning TEE - Keystone

What about CPU Enclaves?Performance of VGG-9 on CIFAR (32x32 RGB images)

[1] Efficient Deep Learning on Multi-Source Private Data. N. Hynes, R. Cheng, D. Song. Arxiv 2018[2] Chiron: Privacy-preserving machine learning as a service. T. Hunt, C. Song, R. Shokri, V. Shmatikov, and E. Witchel. Arxiv 2018[3] Graviton: Trusted Execution Environments on GPUs. S. Volos, K. Vaswani. OSDI 2018

img/s (training) img/s (inference)

Myelin [1] 21 img/s 496 img/s

Chiron (4 enclaves) [2] 25 img/s –

non-private CPU 42 img/s 1119 img/s

private GPU: Graviton [3] >1500 img/s >10,000 img/s

Page 10: Ginseng, the Learning TEE - Keystone

Ginseng, the Learning TEEFPGA-based ML accelerator

1. Start with a tensor accelerator framework (e.g., VTA [4])2. Bolt on a Tensor Encryption Core (TEC)3. Add remote attestation hardware (PUF, RNG)4. Distribute with a lightweight, secure unikernel

End result: a speedy end-to-end private ML pipeline

[4] A Hardware-Software Blueprint for Flexible Deep Learning Specialization. T. Moreau, et al. Arxiv 2019

Page 11: Ginseng, the Learning TEE - Keystone

Ginseng, the Learning TEE

Ginseng, the Learning TEE on an FPGA+CPU SoCCPU FPGA

TensorAccelerator

tensor tile buffersRNGPUF

TECTEC data

attestation enginesecure µkernelGinseng runtime

tensor accel. runtimeoff-chip memory

Page 12: Ginseng, the Learning TEE - Keystone

Ginseng, the Learning TEE

Page 13: Ginseng, the Learning TEE - Keystone

Sterling: A Privacy-Preserving Data Marketplace

A Demonstration of Sterling: A Privacy-Preserving Data Marketplace. N. Hynes, D. Yan, R. Cheng, and D. Song. VLDB 2018.