When Does Private Prototype Release Need MCMC? A Test on Open-Set Keyword Spotting

Many private learning methods sample their output from a carefully shaped probability distribution instead of adding noise to a summary statistic. When that distribution cannot be sampled directly, practitioners run Markov chain Monte Carlo (MCMC), an iterative sampler that only reaches the intended distribution in the limit. A chain stopped early does not carry the privacy guarantee proved for the ideal distribution. The resulting gap, often called privacy slack, is well documented in theory and almost never measured in a real application. Open-set acoustic recognition is a good place to measure it. Here a keyword spotter or home-sound recognizer must accept a few enrolled sounds and reject everything else. Such systems store each class as a "prototype": the average of length-normalized embeddings, which is a point on a high-dimensional sphere. Recent manifold privacy work suggests sphere-valued releases need Riemannian MCMC, and that this inherits the convergence problem.

This note argues for a more careful position, and it rests on three linked claims. First, for the plain prototype no MCMC is needed. The natural exponential mechanism with a cosine-similarity score is exactly a von Mises–Fisher distribution, which is the sphere's analogue of a Gaussian and has exact samplers. Second, because that exact target is known, it gives a rare controlled testbed. In it we can audit how much a truncated, data-initialized chain actually leaks, and how much the leak and its correction move the open-set rejection boundary. Third, MCMC becomes unavoidable once the release must also account for private negative audio, such as users' ambient home sounds. For that case we propose a spherical version of the localized sample-perturbation method of Tractable MCMC for Private Learning with Pure and Gaussian Differential Privacy. We then test, against cheap alternatives, whether it earns its cost.

Core Claim and the Regime Where It Matters

Let each contributing record be a unit-norm embedding $g_i \in \mathbb{S}^{d-1}$, and let $S = \sum_i g_i$. For a candidate prototype $\mu$, use the score $u(\mu) = \mu^\top S$. Replacing one record changes this score by at most 2. The exponential mechanism at privacy level $\varepsilon$ therefore has density

$$p(\mu) \propto \exp\!\left(\tfrac{\varepsilon}{4}\,\mu^\top S\right),$$

which is a von Mises–Fisher distribution with mean direction $S/\|S\|$ and concentration $\kappa = \varepsilon\|S\|/4$. It can be sampled exactly in a fixed number of operations, which gives pure $\varepsilon$-differential privacy (DP) with zero slack. This removes the motivation, at least for prototypes, for the sphere-valued Metropolis–Hastings route in Differentially Private Geodesic Regression. That paper does private regression on spheres and shape spaces with Riemannian MCMC and leaves the convergence slack unquantified. It also makes the curvature objection to Exponential-Wrapped Mechanisms beside the point for this task. That method avoids MCMC by wrapping tangent-space noise, but it only works on non-positively curved spaces.

The same formula also sets the realistic regime. A von Mises–Fisher sample concentrates near its mean only when $\kappa$ is comparable to the dimension $d$. With a single user's 5 to 10 clips, $\|S\| \le 10$. A typical 64-dimensional embedding would then need $\varepsilon$ in the dozens, so per-user privacy of a few-shot prototype is close to meaningless. The setting where privacy and open-set accuracy can coexist is fleet-level aggregation. In that setting, many users each contribute clipped embeddings toward a shared custom keyword or a community-defined sound class, of the kind ProtoSound's users register (ProtoSound), and the unit of privacy is the user. Our experiments target this regime and report the single-user numbers only as a negative calibration.

Research Program

The first component is an audit of truncated samplers. It treats the gap identified in Differentially private subspace clustering and Exact Privacy Guarantees for Markov Chain Implementations of the Exponential Mechanism with Artificial Atoms as an empirical question. Those papers established that iterative samplers are private only asymptotically and that heuristic convergence can mask large slack. Because the exact target here is von Mises–Fisher, we can run Riemannian Metropolis–Hastings and Langevin-type chains toward a known distribution, using the common practice of starting them at the empirical mean direction. We then compare their outputs on adjacent datasets that differ by one "canary" user, whose embedding sits at an extreme angle. Many repeated runs are cheap at $d = 64$. On these runs we train a simple distinguisher, a threshold on $\mu^\top g_{\text{canary}}$, and convert its error rates into a lower bound on the realized $\varepsilon$ using exact binomial confidence intervals. This yields curves of empirical privacy loss against chain length. Alongside them we record standard convergence diagnostics, to test whether these diagnostics flag chains that still leak. We also record the open-set false acceptance rate, so the cost of stopping early or late is visible in the units practitioners care about. The uniform-in-time Langevin bounds of Differential Privacy Guarantees of Markov Chain Monte Carlo Algorithms prove that privacy is inherited from the target and does not degrade with run length. Those bounds give a theoretical curve that the audit can compare against for unadjusted Langevin chains.

The second component is a rejection-aware private prototype. Open-set accuracy depends on where the prototype sits relative to the negatives, not only on its distance to the positives. Metric Learning for Keyword Spotting shows that explicitly pushing non-target audio away from fixed anchors raises non-target accuracy. Multi-class AUC Optimization shows that ranking positives above negatives beats cross-entropy for rejection. We therefore add a clipped, smoothed squared-hinge penalty on users' negative embeddings $h_j$, so that

$$u_\lambda(\mu) = \mu^\top S - \lambda \sum_j \phi(\mu^\top h_j - \tau),$$

where $\phi$ is a smoothed squared hinge bounded by a constant $c$, $\tau$ is a public margin, and $\lambda \ge 0$ sets the weight on rejection. The per-user sensitivity stays bounded by $2 + 2\lambda c$. The target is no longer von Mises–Fisher, so MCMC is genuinely needed.

We adapt Localized ASAP from Tractable MCMC for Private Learning, which runs in three stages: a private localization step, MCMC confined to a ball, and post-hoc noise sized to a worst-case Wasserstein-infinity bound on the sampler's error. On the sphere, the first stage spends part of the budget on an exact von Mises–Fisher draw that fixes a geodesic cap. The second runs a Metropolis-adjusted Langevin sampler restricted to that cap. The third applies a random rotation of the output, sized to a Wasserstein-infinity bound, which restores pure DP. The theoretical task is to prove that bound inside the cap. On the sphere the linear term has geodesic curvature $-\|S\|\cos\theta$ at angle $\theta$ from its mode, so it is strongly concave throughout a cap of angular radius $r < \pi/2$ with modulus $\|S\|\cos r$. The result we aim for states how large $\lambda$ may be before the curvature of the hinge term overwhelms this modulus, in which case the strong-concavity argument of Lin et al. carries over. This is also where the positive curvature emphasized by Kulkarni and Soto helps rather than hurts. The rejection threshold is released separately in every method by an exact one-dimensional exponential mechanism over a grid, so that comparisons isolate the prototype.

Baselines

The naive reference point is non-private open nearest-class-mean (openNCM) from Few-Shot Open-Set Learning for On-Device Customization of KeyWord Spotting Systems. It averages normalized embeddings and rejects using a small set of random background words. We run it with the authors' frozen depthwise-separable CNN encoder from the ondevice-fewshot-kws code. That paper reports 76% target accuracy at a 5% false acceptance rate on unknown words in the 10-shot, 10-way Speech Commands setting. Our fleet setting differs, so we re-run openNCM there and treat its number as the ceiling that every private method should approach as $\varepsilon$ grows.

The strongest simple private competitor is Gaussian noise added to the clipped sum $S$, followed by renormalization onto the sphere. Renormalization is post-processing, so this is a valid Gaussian-DP release with no geometric objection. The exact von Mises–Fisher mechanism is its pure-DP counterpart. Both get the same clipping, the same user split, and the same threshold mechanism. We tune their privacy accounting so the total budget, including the threshold's share, is identical to ours.

The MCMC competitor is a long-run Riemannian Metropolis–Hastings sampler in the style of Kulkarni and Soto, credited with its nominal guarantee and given the same wall-clock budget as our method. The key ablation is our spherical ASAP with $\lambda = 0$. Without the rejection term it targets roughly the von Mises–Fisher distribution but pays the extra perturbation noise, so any gain at $\lambda > 0$ is attributable to the private negatives and not to the sampler.

No reported result for any differentially private prototype on Speech Commands or the ProtoSound data was found on Lacuna. Every private number in this study is therefore new. Our method counts as beating the field only if, at matched $\varepsilon$, it achieves lower false acceptance at fixed target accuracy than both exact von Mises–Fisher and Gaussian-plus-renormalize, by more than the seed-to-seed spread.

Why not just…?

Why not just add Gaussian noise to the mean and renormalize? For the plain prototype, we expect this to be essentially as good as any MCMC method, and we say so. That is the point of the first claim, and the audit includes it as the reference pure-noise release. It cannot use private negative audio without spending a separate budget on them, and it has no mechanism for shaping the prototype away from them. The comparison between it and our method at $\lambda > 0$ decides whether that matters.

Why not just run the Riemannian chain long enough that diagnostics look converged? Exact Privacy Guarantees … Artificial Atoms argues that chains may need to be exponentially longer than expected before the slack becomes negligible. That argument is theoretical. Our audit measures directly, on a known target, whether chains judged converged by standard diagnostics still show realized $\varepsilon$ above the nominal value. The audit may find the leakage is small in practice. That would be a useful negative result, and we would report it as one.

Why not just use public negatives, such as background words from a public corpus, and treat rejection as post-processing? This is the most serious threat. It costs no privacy budget, and openNCM already uses random background words successfully. The counter-evidence is that ProtoSound degrades when moving from quiet indoor rooms to noisy outdoor places, which suggests that environment-specific negatives carry information public corpora lack. We test this by comparing public-negative post-processing against the private-negative sampler on ambient conditions that the public set does not cover. If the public variant matches, the rejection-aware sampler is unnecessary, and the paper's conclusion becomes that open-set prototypes never need private MCMC.

Why not just use the exponential-wrapped tangent-space mechanism? It is proved only for non-positively curved spaces, and for this task it is redundant anyway, since the exact spherical sampler already removes sampling latency and slack.

Proposed Experiments

The primary benchmark is Google Speech Commands v2, using speaker identities as users. We follow Rusci and Tuytelaars in using 10 target keywords and 20 unknown keywords. The encoder is frozen and pretrained on the public Multilingual Spoken Words Corpus, so only enrollment data is private. We vary the number of contributing users from about 10 to several hundred, set $\varepsilon$ between 0.5 and 8, and use embedding dimension 64. Negatives come from each user's non-target utterances plus added background-noise recordings, which stand in for ambient audio. For context only, we report the non-private AP-FC result on the harder 1:1 target-to-unknown ratio, 83.82% total accuracy against a 73.81% baseline, from Huh et al. The ProtoSound naturalistic data would be a second benchmark if access is available. Metrics are target accuracy at 5% false acceptance, AUROC, and full detection-error-tradeoff curves, alongside audited lower bounds on $\varepsilon$.

There are three decisive checks. The first is whether audited $\varepsilon$ for data-initialized truncated chains exceeds the nominal value at the chain lengths an edge device can afford, measured against ProtoSound's roughly 2.4-second on-device training time. The second is whether the exact sampler and Gaussian-plus-renormalize already match long-run MCMC on false acceptance; we expect they will. The third is whether private negatives at $\lambda > 0$ cut false acceptance beyond both the $\lambda = 0$ ablation and the public-negative alternative at matched budget. A per-user, 5-shot run calibrates how much accuracy privacy costs when there is no aggregation.