Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Hyperspherical Privacy for Image VAEs: Evaluating VAEs Under Differing Privacy Frameworks
Blekinge Institute of Technology, Faculty of Computing, Department of Computer Science.
Blekinge Institute of Technology, Faculty of Computing, Department of Computer Science.
2026 (English)Independent thesis Advanced level (professional degree), 20 credits / 30 HE creditsStudent thesis
Abstract [en]

Background. Differential Privacy provides a robust framework for training generative models by ensuring that outputs do not reveal information about the training data. Standardized methods such as Differentially Private-Stochastic Gradient Descent (DP-SGD) achieve this by adding isotropic Gaussian noise to gradients during training. However, recent work has shown that high-dimensional image data naturally forms hyperspherical structures in the latent space, where the direction of latent vectors encodes semantic information. This geometric structure suggests that privacy mechanisms should respect the intrinsic manifold geometry rather than treating the latent space as Euclidean. 

Objectives. This thesis investigates the application of directional privacy to Variational Autoencoders (VAEs). We integrate and compare the DirDP-SGD algorithm against standard Gaussian-based DP-SGD. Additionally, we propose and evaluate a novel post-training Latent Perturbation Mechanism that applies calibrated noise directly to the latent space. Our objectives are threefold: (i) characterize the utility-privacy trade-off of DirDP-SGD compared to DP-SGD under varying privacy budgets, (ii) systematically explore hyperparameters including noise scales and clipping norms, and (iii) evaluate our novel Latent Space Perturbation mechanism against both gradient-based mechanisms using multiple attack vectors.

Methods. We train Gaussian (N-VAE) and Hyperspherical (S-VAE) VAEs on MNIST and Fashion-MNIST under three privacy conditions: non-private, DP-SGD, DirDP-SGD, and our proposed Latent Perturbation Mechanism. The privacy budget $\epsilon$ is systematically varied across 0.5, 1.0, and 5.0. Utility is evaluated via classification accuracy of a LeNet-style classifier trained on synthetic data generated from each privatized model. To empirically compare privacy guarantees—where  $\epsilon$ values are not directly comparable across mechanisms—we employ a Monte Carlo Membership Inference Attack (MIA) to measure attack accuracy. To further evaluate the privacy of our Latent Space Perturbation mechanism, we employ a reconstruction attack and analyse latent spaces using Principal Component Analysis (PCA).

Results. Our findings reveal that the S-VAE consistently achieves a superior privacy-utility trade-off compared to the N-VAE when trained under privacy constraints, particularly at latent dimensions of $d=10$, where the N-VAE utility collapses. PCA analysis shows that the S-VAE maintains clear class separation under privacy constraints while the N-VAE exhibits overlapping class representations. Attack accuracies near 50\% confirm strong privacy protection across both mechanisms. The Monte Carlo MIA remains robust against noise, maintaining attack accuracy around 59\% even as noise increases, while the reconstruction attack degrades significantly from 66.3\% to 50.1\%---indicating it is a poor general indicator of privacy under perturbation. DirDP-SGD uniquely performs better on the S-VAE, with all tested $\epsilon$ values at d=10 outperforming d=3 configurations.

Conclusion We demonstrate that by leveraging directional noise, VAEs trained with a geometrically considerate DirDP-SGD can achieve superior reconstruction accuracy compared to those trained with DP-SGD. Our Latent Space Perturbation mechanism effectively reduces reconstruction attack success to near-random levels while preserving utility. We demonstrate that empirical evaluation via Monte Carlo MIA provides a practical basis for comparing privacy guarantees across different theoretical privacy definitions, offering a standardized approach when formal definitions are incompatible.

Abstract [sv]

Bakgrund. Differentiell integritet tillhandahåller ett robust ramverk för träning av generativa modeller genom att säkerställa att utdata inte avslöjar information om träningsdatan. Standardiserade metoder såsom Differentiellt Privat Stokastisk Gradientnedstigning (DP-SGD) uppnår detta genom att addera isotropiskt Gaussiskt brus till gradienter under träning. Nyare forskning har dock visat att högdimensionell bilddata naturligt formar hypersfäriska strukturer i det latenta rummet, där riktningen hos latenta vektorer kodar semantisk information medan magnituden ofta relaterar till bildkvalitet. Denna geometriska struktur antyder att integritetsmekanismer bör respektera den naturliga mångfaldsgeometrin snarare än att behandla det latenta rummet som euklidiskt.

Syfte. Denna avhandling undersöker tillämpningen av riktningsbaserad integritet för Variationsautoenkodare (VAE). Vi integrerar och jämför DirDP-SGD-algoritmen mot standardbaserad Gaussiska DP-SGD. Dessutom föreslår och utvärderar vi en ny efterträningsmekanism för latent perturbation som applicerar kalibrerat brus direkt till det latenta rummet. Våra mål är trefaldiga: karakterisera avvägningen mellan nytta och integritet för DirDP-SGD jämfört med DP-SGD under varierande integritetsbudgetar, systematiskt utforska hyperparametrar inklusive brusskalor och klippningsnormer, samt utvärdera vår nya mekanism för latent rymd-perturbation mot båda gradientbaserade mekanismerna med hjälp av flera attackvektorer.

Metod. Vi tränar Gaussiska (N-VAE) och Hypersfäriska (S-VAE) VAE:er på MNIST och Fashion-MNIST under tre integritetsvillkor: icke-privat, DP-SGD, DirDP-SGD, samt vår föreslagna mekanism för latent perturbation. Integritetsbudgeten $\epsilon$ varieras systematiskt över 0.5, 1.0 och 5.0. Nytta utvärderas via klassificeringsnoggrannhet hos en LeNet-baserad klassificerare tränad på syntetisk data genererad från varje privatiserad modell. För att empiriskt jämföra integritetsgarantier, där $\epsilon$-värden inte är direkt jämförbara mellan mekanismer—använder vi ett Monte Carlo-medlemskapsinferensangrepp (MIA) som mäter attacknoggrannhet. För att ytterligare utvärdera integriteten hos vår mekanism för latent perturbation använder vi ett rekonstruktionsangrepp och analyserar latenta rum med hjälp av Principal Component Analysis (PCA).

Resultat. Våra resultat visar att S-VAE konsekvent uppnår en överlägsen avvägning mellan nytta och integritet jämfört med N-VAE när de tränas under integritetsbegränsningar, särskilt vid $d=10$ där N-VAE:s nytta kollapsar. PCA-analys visar att S-VAE bibehåller tydlig klasseparering under integritetsbegränsningar medan N-VAE uppvisar överlappande klassrepresentationer. Attacknoggrannheter nära 50\% bekräftar starkt integritetsskydd över båda mekanismerna. Monte Carlo-MIA förblir robust mot brus och bibehåller en attacknoggrannhet runt 59\% även när bruset ökar, medan rekonstruktionsangreppet försämras signifikant från 66.3\% till 50.1\% ,vilket indikerar att det är en dålig generell indikator på integritet under perturbation. DirDP-SGD presterar unikt bättre på S-VAE, där alla testade $\epsilon$ vid $d=10$ överträffar konfigurationer med $d=3$.

Slutsatser. Vi visar att genom att utnyttja riktningsbaserat brus kan VAE:er tränade med en geometriskt anpassad DirDP-SGD uppnå överlägsen rekonstruktionsnoggrannhet jämfört med de som tränats med DP-SGD. Vår mekanism för latent perturbation reducerar effektivt rekonstruktionsangreppets framgång till nära slumpmässiga nivåer samtidigt som nyttan bevaras. Vi visar att empirisk utvärdering via Monte Carlo-MIA tillhandahåller en praktisk grund för att jämföra integritetsgarantier över olika teoretiska integritetsdefinitioner, vilket erbjuder ett standardiserat tillvägagångssätt när formella definitioner är inkompatibla.

Place, publisher, year, edition, pages
2026. , p. 45
Keywords [en]
Variational Auto Encoders, Differential Privacy, Directional Privacy, Membership Inference, Latent Perturbation
Keywords [sv]
Variationsautoenkodare, Differentiell integritet, Riktningsbaserad integritet, Hypersfäriska VAE:er, Medlemskapsinferensangrepp, Latent Perturbation
National Category
Computer Sciences
Identifiers
URN: urn:nbn:se:bth-30560OAI: oai:DiVA.org:bth-30560DiVA, id: diva2:2107454
Subject / course
Degree Project in Master of Science in Engineering 30,0 hp
Educational program
DVADS Master of Science in Engineering: Computer Security
Supervisors
Examiners
Available from: 2026-10-20 Created: 2026-10-02 Last updated: 2026-10-20Bibliographically approved

Open Access in DiVA

fulltext(2277 kB)10 downloads
File information
File name FULLTEXT01.pdfFile size 2277 kBChecksum SHA-512
4f9f049c12e879a950acb393a03b21e174c7a54454b0556943ac374439fdb2dc085b115a87fcbe68d1d701972caf4d2ecda098bafdf21bd17fb5197645ff9ce7
Type fulltextMimetype application/pdf

By organisation
Department of Computer Science
Computer Sciences

Search outside of DiVA

GoogleGoogle Scholar
Total: 10 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 65 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf