Training a classifier on data that several institutions hold and are not allowed to pool runs into two separate costs. Encryption or multi-party computation hides the inputs while the training runs. Differential privacy (adding calibrated noise so the final model reveals little about any single record) hides what the trained model leaks afterward. Current systems pay both costs on every step of an iterative training loop. Each gradient step must evaluate softmax or sigmoid under encryption, bound its sensitivity without the comparisons that encryption handles badly, and receive its own noise. This note argues that for the most common practical case, fitting a linear classifier on features from a public pretrained encoder, almost all of this work can be removed. One observation drives the design: the quantity that is expensive to privatize is the same quantity that is expensive to encrypt.
That quantity is the feature second-moment matrix, which is $d\times d$ for $d$-dimensional features. Releasing it privately costs extra samples that grow faster than $d$. Aggregating it securely costs $d^2$ ciphertext slots. We propose to take this matrix from a small public dataset instead. Privacy and encryption then apply only to a $d\times k$ class-wise cross-moment, where $k$ is the number of classes. That cross-moment is linear in the data, is aggregated once, receives noise once, and is decrypted once. Training collapses to one secure sum followed by a plaintext solve. The research question is when this one-shot release matches iterative encrypted DP training, and how many public samples, and how closely matched, it needs.
Core Claim
Suppose the private parties hold normalized features $x_i$ (unit norm) and one-hot labels $y_i$. The secure computation releases the noisy cross-moment $\tilde S = \sum_i x_i y_i^\top + Z$, where $Z$ is Gaussian noise with per-entry scale $\sigma$. The classifier is then
$$W = (\hat\Sigma_{\text{pub}} + \lambda I)^{-1}\,\tilde S,$$
where $\hat\Sigma_{\text{pub}}$ is the empirical second moment of $n_{\text{pub}}$ public feature vectors, scaled to the private sample size, and $\lambda$ is a ridge term. The sensitivity of $\sum_i x_i y_i^\top$ under adding or removing one record is at most $\|x_i\|\|y_i\|=1$ in Frobenius norm. Bounded sensitivity is therefore guaranteed by client-side normalization, before encryption. No clipping, comparison, polynomial activation, or barrier term is ever evaluated under encryption.
We make three claims. First, on frozen-encoder transfer tasks, $W$ comes within a small, measurable gap of iterative DP training of a softmax head. Second, its cryptographic cost is a single depth-0 aggregation of $dk$ values. Iterative alternatives instead need $T$ rounds of depth-heavy evaluation, and naive sufficient-statistics release needs $d^2+dk$ values. Third, the utility gap is governed by two things: how far the public second moment departs from the private one, and whether $n_{\text{pub}}$ exceeds roughly $d$. That threshold is the one the sample-compression theory identifies for anchoring Gaussian learning with public data.
Where This Sits
The closest prior work runs iterative encrypted training. Revisiting ML Training under Fully Homomorphic Encryption replaces DP gradient clipping with a log-barrier in the loss. Under fully homomorphic encryption the barrier keeps weights, and hence the polynomial-approximated sigmoid, in a bounded range. This cuts per-iteration circuit depth from 24 to 9, but the convergence proofs cover only convex objectives, and the method relies on PCA-compressed inputs. HETAL fine-tunes softmax heads on pretrained features under the CKKS scheme (approximate arithmetic on encrypted real numbers) using rotation-free matrix multiplication and a wide-range softmax approximation. It adds no DP, and its client-side early stopping leaks the validation trajectory. Both papers motivate our proposal: they show linear heads on encrypted features are the practical sweet spot. Both also keep the iterative loop, which is the source of the depth, the approximation error, and the per-step sensitivity problem. We remove the loop.
The method comes from the sample-complexity literature. Covariance-Aware Private Mean Estimation Without Private Covariance Estimation shows that adapting to data geometry need not pay the $\Omega(d^{3/2})$ cost of privately estimating a covariance. It does this through exponential-time or data-projection estimators. We get a similar effect in polynomial time by importing the geometry from public data. Private Distribution Learning with Public Data proves that about $d$ public samples are necessary to anchor private Gaussian learning. That result gives us a concrete prediction for where the one-shot estimator should break as $n_{\text{pub}}$ shrinks. Generalized Linear Models in Non-interactive Local DP with Public Data is the nearest statistical precedent. It uses public unlabeled data with Stein-type identities to make local-DP GLM estimation polynomial-sample. We work in the central-noise-via-secure-computation model rather than local DP, which avoids its large polynomial-in-$p$ penalties.
On the cryptographic side, DMM supplies packed secret sharing with $O(1)$ per-secret communication for changing committees. Private Collaborative Neural Network Learning shows that injecting noise once at the aggregate avoids the noise build-up of per-party noise. FHAIM pre-samples encrypted noise for CKKS. We reuse these as interchangeable backends, because our computation is a plain sum.
Securing Approximate Homomorphic Encryption Using Differential Privacy constrains the design. Decrypting CKKS outputs can leak the secret key unless roughly $\kappa/2+\tilde O(1)$ bits of Gaussian noise are added to the decryption output, where $\kappa$ is the security level in bits. In our design the DP noise $Z$ is added under encryption before the single decryption. We will verify whether it also meets that noise-flooding requirement, so that one noise term serves both guarantees.
Research Program
The work has three parts. The analysis part bounds the excess risk of $W$ relative to the non-private ridge solution using the true private second moment. That excess risk splits into three terms. The first is the privacy noise term, scaling with $\sigma\sqrt{dk}$ divided by $n$ and the smallest eigenvalue of the regularized public matrix. The second is a public-estimation term, which grows sharply as $n_{\text{pub}}$ approaches $d$. The third is a mismatch term, proportional to the relative spectral distance between the public and private second moments. Separately, we compare this against naive sufficient-statistics release, which must also privatize $X^\top X$ and so pays an extra term scaling with $d$ rather than $\sqrt{dk}$ per unit of $\sigma$. This comparison is the privacy-tax argument made concrete.
The systems part implements the release on two backends. The first is threshold CKKS with pre-sampled encrypted noise in the style of FHAIM. The second is packed secret sharing in the style of DMM. We then measure wall-clock time, communication, and depth, all as functions of $d$, $k$, and the number of parties.
The robustness part adds an optional correction for mismatch. A cheap private release of the diagonal, or of a rank-$r$ correction, of the private second moment, with $r \ll d$, should recover much of the mismatch loss when the public data is drawn from a different domain. We will measure how much of that loss it recovers and what it costs in privacy budget.
Baselines
The naive reference points come first. One is the same frozen-encoder head trained in plaintext without DP, which gives the utility ceiling. The other is pure encrypted training without DP, namely HETAL, which reports a maximum accuracy drop of 0.51% relative to plaintext and training times of 567 to 3442 seconds across CIFAR-10, Face Mask Detection, DermaMNIST and SNIPS (HETAL). HETAL fixes the non-private target and the encrypted-cost scale. It is not a privacy competitor, because it releases unprotected weights.
The strongest existing method for the question we are asking is barrier-augmented DP gradient descent under fully homomorphic encryption (Revisiting ML Training under FHE). On Adult, Compas, Credit and PCA-compressed MNIST 3-vs-8, it reports an accuracy drop under 1.82% and an AUC drop of 0.78% relative to plaintext DP-GD, and a 3x to 5x speedup over clipping-based DP-GD under encryption. We will run it on identical features with identical $(\epsilon,\delta)$ and an equal hyperparameter-search budget. For multi-class tasks we extend it one-vs-rest. We count tuning trials against the privacy budget for both methods, or tune both on public data only. Beating it means matching its accuracy within one percentage point at equal privacy while using one aggregation round instead of $T$ encrypted iterations, and showing lower wall-clock time on the same hardware. On the multi-class HETAL benchmarks, no reported result was found on Lacuna for DP transfer learning under encryption, so we must establish these numbers ourselves.
The trusted-aggregator reference is plaintext DP training of a softmax head with standard noisy gradient descent. This is the best any cryptographic method can hope for at a given $\epsilon$.
We also include two ablations. The first isolates the public second moment by privatizing both $X^\top X$ and $X^\top Y$ (full sufficient-statistics release) on the same backend. The second replaces the public matrix with the identity, which reduces the method to noisy class-mean classification. For a local-DP comparison on Covertype, Generalized Linear Models in NLDP with Public Data reports about 72.5% private accuracy against about 75% non-private.
Why not just…?
Why not just run DP federated learning with secure aggregation each round, as DMM does? This is a real threat on utility. Iterating lets the softmax nonlinearity be computed by clients in plaintext, and a well-tuned iterative method may beat a one-shot least-squares head. DMM reports that its approach closes the distributed-DP gap, outperforming the prior DDG mechanism by 5 to 6 points on Stack Overflow next-word prediction (DMM). We will settle this directly. We will run a public-preconditioned $R$-round variant of our method, where clients compute residual gradients locally and each round releases a noisy $d\times k$ sum, with $R$ ranging from 1 to many. If accuracy rises substantially with $R$ at fixed $\epsilon$, the honest conclusion is that a few-round variant is the right operating point and the one-shot claim weakens to a cost-versus-accuracy curve.
Why not just release noisy $X^\top X$ and $X^\top Y$ with no public data? This is the simplest one-shot method and is our main ablation. The covariance-estimation lower bounds summarized alongside Covariance-Aware Private Mean Estimation predict that its error grows faster in $d$. Its secure cost is also $d^2$ rather than $dk$ slots, which for 768-dimensional embeddings and 10 classes is roughly a 77x difference in aggregated values. If it matches our method at realistic $n$, the public-data ingredient is unnecessary, and we will report that.
Why not just apply public PCA and then run the barrier method? This addresses the PCA dependence of Revisiting ML Training under FHE, but it keeps the iterative loop, the sigmoid polynomial, and the convexity restriction. We include it as a baseline at matched projection dimension. If it ties us on accuracy, our advantage reduces to cost, which we measure.
Why not just encrypt and skip DP? Unperturbed gradients and models can be inverted (Zhu et al.). Decrypting CKKS outputs without added noise can also leak the key (Securing Approximate HE Using DP). Encryption alone protects the computation, not its output.
Proposed Experiments
We will use HETAL's benchmarks (CIFAR-10, DermaMNIST, Face Mask Detection, SNIPS) with the same frozen ViT and MPNet features, plus Adult, Compas, Credit, and PCA-free MNIST 3-vs-8 for direct comparison with the barrier method. Public data will take three forms with increasing distribution shift: a held-out in-distribution split; a related dataset (CIFAR-100 features as public data for CIFAR-10); and a mismatched domain (generic ImageNet-derived features as public data for DermaMNIST). Metrics are accuracy and AUC at $\epsilon\in\{0.5,1,2,4,8\}$, wall-clock time, communication, and ciphertext depth.
Three checks are decisive. First, sweep $n_{\text{pub}}$ from $d/4$ to $10d$. The sample-compression theory predicts a sharp degradation near $n_{\text{pub}}\approx d$ that ridge regularization can soften but not remove. Observing or failing to observe that knee tests whether the public-data threshold transfers from Gaussian estimation to this setting. Second, plot the accuracy gap against our measured public-private spectral distance across the three public sources. The analysis predicts a roughly linear relationship. If the gap does not track the spectral distance, the mismatch term in our bound is wrong. Third, compute the realized decryption-noise entropy against the IND-CPAD requirement for the chosen CKKS parameters. This check decides whether the DP noise alone secures decryption or whether extra flooding noise must be added. If one-shot release stays within one point of the barrier method and the $R$-round variant at $\epsilon\le 2$ on most benchmarks, the claim holds. If it falls behind by several points everywhere, we will report the few-round curve as the main result instead.
References
- Revisiting ML Training under Fully Homomorphic Encryption: Convergence Guarantees, Differential Privacy, and Efficient Algorithms
- HETAL: Efficient Privacy-preserving Transfer Learning with Homomorphic Encryption
- Covariance-Aware Private Mean Estimation Without Private Covariance Estimation
- Private Distribution Learning with Public Data: The View from Sample Compression
- Generalized Linear Models in Non-interactive Local Differential Privacy with Public Data
- DMM: Distributed Matrix Mechanism for Differentially-Private Federated Learning Based on Constant-Overhead Linear Secret Resharing
- Private Collaborative Neural Network Learning
- FHAIM: Fully Homomorphic AIM For Private Synthetic Data Generation
- Securing Approximate Homomorphic Encryption Using Differential Privacy
- Deep Leakage from Gradients