一键导入
explain-pac
Reference material for PAC privacy internals. Auto-loaded when discussing PAC mechanism, noise, counters, or clipping.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Reference material for PAC privacy internals. Auto-loaded when discussing PAC mechanism, noise, counters, or clipping.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Reference material for differential privacy concepts. Auto-loaded when discussing privacy, attacks, sensitivity, clipping, local/smooth sensitivity, elastic sensitivity, instance-based DP, per-instance DP, individual privacy accounting, personalized DP, Pufferfish/Blowfish, or DP relaxations.
Reference for PAC DDL syntax — PRIVACY_KEY, PRIVACY_LINK, PROTECTED, SET PU, and the parser. Auto-loaded when discussing table setup, privacy units, or protected columns.
Run the pac_clip_sum membership inference attack test suite and summarize results.
Build and run pac_clip_sum unit tests.
| name | explain-pac |
| description | Reference material for PAC privacy internals. Auto-loaded when discussing PAC mechanism, noise, counters, or clipping. |
PAC (Probably Approximately Correct) privacy is a framework for privatizing algorithms with provable guarantees, described in SIMD-PAC-DB.
Given a data distribution D, a query Q satisfies (δ, ρ, D)-PAC Privacy if no adversary who knows D can, after observing Q(X) where X ~ D, produce an estimate X̂ such that ρ(X̂, X) = 1 with probability ≥ (1-δ).
The key insight: noise scales with the variance of the algorithm's output across random subsamples of the data. Stable algorithms (low variance) need less noise.
This is the theoretical foundation. SIMD-PAC-DB encodes this efficiently using 64 parallel counters (one per possible subset assignment bit).
| MI | Max posterior (prior=50%) | Max posterior (prior=25%) |
|---|---|---|
| 1/128 | 56.2% | 30.5% |
| 1/64 | 58.8% | 32.9% |
| 1/32 | 62.4% | 36.3% |
| 1/16 | 67.5% | 41.2% |
| 1/8 | 74.5% | 48.2% |
| 1/4 | 83.8% | 58.4% |
| 1/2 | 95.2% | 72.7% |
| 1 | 100% | 91.4% |
For T adaptive queries with independent random sampling per query, the total MI is bounded by the sum: MI(total) ≤ Σᵢ MIᵢ. This is linear composition — each query's MI adds to the budget. The key requirement: independent random sampling per query (each query uses a fresh random subset).
When comparing PAC to DP literature, distinguish DP-compatible instance adaptation from weaker DP relaxations:
dp_elastic mode; it bounds local sensitivity for equijoins using join-key
frequency metrics.Important caveat: recent reconstruction attacks against individual DP and bootstrap DP show that aggressively shrinking the protected neighbor-pair set can produce very low reported privacy loss while still allowing reconstruction. Use those relaxations as related work, not as a safety argument for PAC.
GROUP BY pu_hash to sum each user's
rows into a single contribution (handles the "50K small items" case)pac_clip_support
contribute nothing to the result (prevents variance side-channel attacks)pac_mi: Mutual information bound (0 = deterministic/no noise)privacy_seed: RNG seed for reproducible noisepac_clip_support: Minimum distinct contributors per magnitude level (NULL = disabled)pac_hash_repair: Ensure pac_hash outputs exactly 32 bits setPAC calibrates noise per query from the 64 counters' variance. The data is fixed; the "distribution" D is over random 50%-subsamples (the 64 worlds). The calibration transfer conjecture asks: when noise calibrated under one subsampling distribution D₀ also protects under a different distribution D₁.
What D₀ and D₁ represent (NOT two table versions — the data is fixed):
Why narrow-filter attacks succeed: The noise was calibrated from the full query's variance (D₀). But the attacker's distinguishing task operates on a narrow slice (D₁) where one PU dominates. If d(D₀, D₁) is large, calibration doesn't transfer → the noise is insufficient → attack succeeds.
Conjecture: If d(D₀, D₁) ≤ t, noise Q₀ from D₀ augmented by Δ = N(0, spectral_gap) is valid for D₁. The compensation Δ is instance-based (proportional to actual distributional distance, not worst-case like DP).
Connection to clipping: pac_clip_support bounds per-PU influence on Σ. This keeps d(D₀, D₁) small regardless of filter → calibration transfers → attacks fail. Clipping is the mechanism that makes the transfer bound tight.
Open questions: optimal distance metric (Wasserstein vs Fisher-Rao), sharp transfer constants, extending from continuous (SGD) to discrete (PAC DB's 64-out-of-128 subsampling) setting.
Reference: "Calibration Transfer Between Close Distributions — Blueprint for Universal Membership Inference Resistance" (working document, 05 April 2026). Thesis: Sridhar, "Toward Provable Privacy for Black-Box Algorithms via Algorithmic Stability" (MIT PhD, February 2026), Chapter 3.
ALTER TABLE customer ADD PRIVACY_KEY (c_custkey);
ALTER TABLE customer SET PU;
ALTER TABLE orders ADD PRIVACY_LINK (o_custkey) REFERENCES customer (c_custkey);