Uppsats
Efficient Implementation of AES on AI Accelerators for Machine Learning Model Protection
Master-uppsats
KTH/Skolan för elektroteknik och datavetenskap (EECS)
Publicerad: 2026
Språk: Engelska
Nyckelord
klicka för att sökaSammanfattning
The widespread deployment of machine learning models on end-user devices raises important concerns regarding the protection of sensitive data and model intellectual property. Training such models requires significant computational resources, large datasets, and careful architectural design, making trained models valuable assets vulnerable to extraction and unauthorized reuse. On Apple platforms, machine learning inference often relies on hardware accelerators such as the GPU and the Apple Neural Engine (ANE), creating new opportunities for on-device cryptographic protection. This master thesis explores the design and implementation of cryptographic methods aimed at protecting machine learning models by performing cryptographic computations directly on Apple Silicon accelerators. The primary focus is on implementing the Advanced Encryption Standard (AES) on Apple GPUs and on the ANE, with the objective of enabling secure model deployment through encrypted weights. In this thesis, we develop the first known AES implementations specifically targeting Apple GPUs using the Metal framework, based on different algorithmic strategies. These implementations are benchmarked against CPU-based solutions, showing that Apple GPUs can reach very high encryption throughput and achieve performance comparable to state-of-the-art GPU-based implementations reported in the literature. In addition, this work presents the first known implementations of AES running entirely on the ANE. Multiple ANE-based designs are proposed and analyzed, demonstrating that cryptographic computations can be performed exclusively on the ANE without CPU involvement. Building on these results, this thesis introduces a complete model hardening method for ANE-based machine learning models. In this approach, model weights are stored in encrypted form and decrypted dynamically at inference time directly on the ANE, with weights decryption as part of the model architecture. This allows models to be distributed securely while keeping weights protected during execution. Experiments show that this approach is feasible for small models, while also highlighting the challenges of scaling to larger architectures.
Information
- Författare
- Hamelin, Simon
- Lärosäte / institution
- KTH/Skolan för elektroteknik och datavetenskap (EECS)
- Publiceringsdatum
- 2026
- Uppsatstyp
- Master-uppsats
- Språk
- Engelska
Utforska vidare
Liknande uppsatser
Uppsatser med liknande ämnen och nyckelord.
Master-uppsats, KTH/Skolan för elektroteknik och datavetenskap (EECS)
Shankar, Deepak
Publicerad: 2024
Master-uppsats, Linköpings universitet/Institutionen för datavetenskap
Karlsson, Simon, Kodanda Raju, Rohith
Publicerad: 2026
Master-uppsats, KTH/Matematik (Inst.)
Fermsjö, Philip
Publicerad: 2026
Master-uppsats, Karlstads universitet/Fakulteten för hälsa, natur- och teknikvetenskap (from 2013)
Simm, Isabel
Publicerad: 2026
Kandidat-uppsats, Linköpings universitet/Algebra, geometri och diskret matematik
Söneby, Tove
Publicerad: 2026
Kandidat-uppsats, KTH/Sannolikhetsteori, matematisk fysik och statistik
Li Qiu, Henrik, Ljungqvist, Karl
Publicerad: 2026