"매 data privacy + local processing 의 핵심: data minimization + on-device inference + cryptographic guarantees". 매 GDPR (2018), CCPA, AI Act (2024 EU) 의 regulatory pressure + 매 Apple Intelligence (2024), Google Gemini Nano (2024), 매 on-device LLM (Llama 3.2 1B/3B, Phi-4 mini, Gemma 3 nano) 의 등장 으로 매 2026 현재 cloud → device shift 가 현실화. 매 Local-First Software 운동 의 main-stream 진입.
매 핵심
매 privacy primitives
Data minimization: 매 collect only 필요 — 매 GDPR Art. 5(1)(c).
On-device inference: 매 raw data 의 device 외 미전송.
Differential Privacy (DP): 매 ε-noise — 매 Apple, Google 의 telemetry 사용.
Federated Learning (FL): 매 model 의 device 학습 → gradient aggregate.
Homomorphic Encryption (HE): 매 encrypted compute — 매 latency penalty 큼.
Secure Enclave (TEE): 매 Apple Secure Enclave, Intel SGX, AWS Nitro.
Zero-Knowledge Proof (ZKP): 매 prove without reveal.
매 regulatory landscape (2026)
EU AI Act: 매 high-risk system 의 data governance + transparency.
GDPR: 매 right to erasure, data portability, DPIA.
CCPA / CPRA: 매 California 의 sale opt-out.
HIPAA (US health), PIPEDA (Canada), APPI (Japan), PIPL (China — 매 cross-border data transfer 매우 strict).
frommlx_lmimportload,generatemodel,tokenizer=load("mlx-community/Llama-3.2-3B-Instruct-4bit")out=generate(model,tokenizer,prompt="Summarize: ...",max_tokens=200,verbose=False)# Data never leaves device
importCoreMLletmodel=tryMyModel(configuration:MLModelConfiguration())letinput=tryMyModelInput(text:userText)letoutput=trymodel.prediction(input:input)// Inference never sends data to network
import*asYfrom"yjs";import{IndexeddbPersistence}from"y-indexeddb";constdoc=newY.Doc();newIndexeddbPersistence("notes",doc);// Local persistence
// Optional E2E-encrypted relay for sync
Data redaction before LLM API call (defense in depth)
importrePII=[r"\b\d{3}-\d{2}-\d{4}\b",r"\b[\w.-]+@[\w.-]+\b"]defredact(text):forpinPII:text=re.sub(p,"[REDACTED]",text)returntext# Use redact() before sending to remote LLM
매 결정 기준
상황
Approach
Health / financial data
On-device only + TEE
Personalized model
Federated learning
Aggregate analytics
Differential privacy
Multi-party compute
HE / MPC (still slow)
Compliance (GDPR / HIPAA)
DPIA + minimization + audit log
Personal AI assistant
Local LLM (Llama 3.2 3B 4-bit on phone)
기본값: 매 user-content processing 의 default 의 on-device, 매 cloud 의 explicit consent + minimization.
언제: 매 privacy-impact-assessment drafting, 매 redaction-pipeline scaffolding, 매 GDPR/CCPA compliance checklist generation.
언제 X: 매 actual user PII 의 cloud LLM 의 직접 send X — 매 on-device 또는 redact-first.
❌ 안티패턴
Plaintext PII to cloud LLM: 매 GDPR violation potential.
DP without ε accounting: 매 cumulative leakage 의 무인지.
Federated 의 raw gradient leak: 매 gradient inversion attack — 매 secure aggregation 필요.
Local-first 의 backup absent: 매 device loss = data loss.
"Anonymized" via removing names only: 매 quasi-identifier 의 re-identification.
Storing decryption key alongside ciphertext: 매 obvious 하지만 흔한 fail.
🧪 검증 / 중복
Verified (GDPR text, NIST Privacy Framework, Apple Differential Privacy white papers, Flower & Opacus docs, EU AI Act 2024).