Statistical MIA: Rethinking Membership Inference Attack for Reliable Unlearning Auditing Jialong Sun, Zeming Wei, Jiaxuan Zou, Jiacheng Gong, Guanheng Wang, Chengyang Dong, Jialong Li, Bo Liu Abstract Machine unlearning (MU) is essential for enforcing the right to be forgotten in machine learning systems. A key challenge of MU is how to reliably audit whether a model has truly forgotten specified training data. Membership Inference Attacks (MIAs) are widely used for unlearning auditing, where samples that evade membership detection are often regarded as successfully forgotten. After carefully revisiting the reliability of MIA, we show that this assumption is flawed: failed membership inference does not imply true forgetting. We theoretically demonstrate that MIA-based auditing, when formulated as a binary classification problem, inevitably incurs statistical errors whose magnitude cannot be observed during the auditing process. This leads to overly optimistic evaluations of unlearning performance, while incurring substantial computational overhead due to shadow model training. To address these limitations, we propose Statistical Membership Inference Attack (SMIA), a novel training-free and highly effective auditing framework. SMIA directly compares the distributions of member and non-member data using statistical tests, eliminating the need for learned attack models. Moreover, SMIA outputs both a forgetting rate and a corresponding confidence interval, enabling quantified reliability of the auditing results. Extensive experiments show that SMIA provides more reliable auditing with significantly lower computational cost than existing MIA-based approaches. Notably, the theoretical guarantees and empirical effectiveness of SMIA suggest it as a new paradigm for reliable machine unlearning auditing. † † affiliationnotice: Equal contribution 1 Introduction Machine learning (ML) has been widely deployed in various critical domains, such as healthcare, finance, and Transportation, whose training processes may heavily depend on privacy-sensitive data under certain protections ( 11 ; 19 ) . However, the authentication of data usage from users is not necessarily unwarranted, particularly in the background of policies like GDPR that propose “the right to be forgotten”, which indicates users reserve the right to withdraw the data authentication with considerations like privacy-protection, ethical issues, or policy requirements ( 16 ; 25 ; 20 ) . This explicitly indicates an urgent need for an accountable mechanism that can timely remove the impact of related data on model behaviors when authentication is revoked, as well as restrictions on training, inference, or communication with these data for future model deployments ( 35 ) . Given this background, machine unlearning has emerged as a prominent approach to address these requirements ( 33 ; 10 ; 34 ) . Generally, machine unlearning involves using post-training methods to eliminate the influence of specific training data on the trained model. Despite notable success, a key open question in machine unlearning remains: How can we effectively evaluate the forgetting of a given set of data ( 39 ; 40 ) ? In this paper, we refer to this evaluation as the auditing problem of machine unlearning. Currently, common auditing criteria can be categorized into three types of backdoor attacks ( 12 ; 18 ) , adversarial attacks ( 29 ; 26 ) , and membership inference attacks (MIA) ( 28 ; 13 ) . Both backdoor and adversarial attacks attempt to poison the training data, leading to compromised model performance on specific tasks. Since machine unlearning can be viewed as recovering the model’s ability by locating the poisoning data and unlearning them, these two kinds of attacks calculate the attack success rate (ASR) on the unlearned model for auditing ( 17 ) . Thus, a critical concern emerges: as defense techniques (e.g., adversarial training against adversarial attacks) can also decrease ASRs, yet do not achieve the unlearned goal, the trustworthiness of such auditing methods is compromised. In addition, both attack strategies require training a new target model, which may be perceived as tampering with the underlying task. Besides, MIA aims to judge whether a specific data point is involved in the model training process, determined by assessing the output of the model given this input ( 32 ) . Intuitively, MIA can be mathematically formulated as a threshold-based classification problem: \text{MIA}(x;w)=\mathbbm{1}_{\text{scoreMIA}(x;w)\geq\beta}, (1) where \text{scoreMIA}(x;w) is the membership score for sample x under model parameter w . So far, a thread of MIA-based methods have pave the way for effectively auditing machine unlearning results ( 24 ) . Many variants have been implemented to improve MIA performance on diverse unlearning settings, such as RMIA ( 38 ) and IMA ( 31 ) . These attack-based auditing methods are prone to a failure mode in which failed attacks give rise to illusory forgetting. Specifically, a failure in the attack strategy may be misinterpreted as the model having unlearned the sample. Consequently, this causes the auditing of the unlearning task to fail. In this study, we aims to address the issue of illusory forgetting caused by the misinterpretation of failed attacks. We revisit the validity of the MIA paradigm. In practice, if a binary MIA classification model fails to identify residual private information (e.g., due to inadequate training or poor generalization), this attack failure might be wrongly interpreted as a successful unlearning ( 28 ) . This failure occurs because MIA relies on hypothesis testing to evaluate whether a sample x belongs to the training distribution \mathcal{P}_{t} , i.e., testing x\sim\mathcal{P} . In contrast, auditing MIA involves hypothesis testing across multiple samples \{x_{1},\dots,x_{m}\} to determine if they belong to \mathcal{P}_{t} . This shift in distribution during the auditing process can lead to new statistical errors, thereby introducing implicit and subtle auditing risks. A simple numerical experiment illustrates how failed attacks may be misinterpreted as illusory forgetting. Specifically, when auditing relies on a binary classifier to evaluate another model, classifier failure can be mistaken for evidence of successful unlearning. As shown in Figure 1 , a high-performance binary classifier produces substantial auditing errors when the proportion of non-member samples is small. Consider a scenario where non-member samples constitute 10%. An MIA binary classifier with 99% accuracy can still exhibit an error as high as 9% when auditing the unlearning status ( 1 ) . Consequently, the audit may incorrectly conclude that the model has successfully unlearned the data. In reality, this is merely illusory forgetting caused by MIA errors. Figure 1 : The relationship between the proportion of non-member data and successful TNR detection, under the configuration of MIA accuracy=0.99 and member detection success rate 0.9999. Based on the observations presented, we first conduct a comprehensive theoretical analysis to formally prove the inevitable auditing errors in a binary classification model used for auditing machine unlearning. To circumvent this fundamental limitation, we propose a training-free statistical method for auditing unlearning tasks, which we call the Statistical Membership Inference Attack (SMIA). Unlike existing methods that require training shadow and attack models for membership inference attacks, SMIA is both training-free and model-free, which solely relies on statistical techniques to evaluate the distribution between member and non-member data. Additionally, SMIA is capable of providing both the forgetting rate and confidence intervals, which can help guide the auditing process during bootstrapping. Overall, our contributions can be summarized as follows: • Conceptually, we revisit the reliability of MIA-based auditing for machine unlearning, finding that unsuccessful MIA on specific data does not necessarily imply successful unlearning on them. • Theoretically, we prove this fundamental limitation of this auditing paradigm through the lens of distribution shift during hypothesis testing, showing an inevitable error when training a binary classification model for MIA. • Practically, we propose Statistical Membership Inference Attack (SMIA), a training-free attack method that solely relies on statistical techniques to evaluate the distribution between member and non-member data, and can provide both the forgetting rate and confidence intervals. 2 Revisiting MIA: From Attack to Auditing Originally, MIA was proposed as a privacy attack method to determine whether a data point x belongs to D_{t} (the training distribution) or D_{v} (the validation distribution, i.e. non-member data) ( 28 ; 5 ; 3 ; 21 ) . A typical attack process on model w includes a feature extraction function f(\cdot,w) to construct the attack feature f(x,w) , which is then used as input to train an attack model \mathcal{A} . In cases where the target model w is inaccessible, one or more shadow models w^{\prime} are trained to create approximated attack features f(x,w^{\prime}) ( 3 ) . Advanced MIA methods still rely on shadow models for assistance, but their training overhead raises concerns about the practicality of such attack approaches. Additionally, another line of research focuses on constructing more effective attack features f(\cdot,w) ( 8 ; 2 ; 23 ) . However, these works face the challenge of needing to track more model information for attacks, which can be seen as a trade-off between space and time compared to shadow model-based methods. From a theoretical perspective, various studies have focused on the underlying mechanisms of MIA. For instance, LiRa highlights the significant impact of the ratio between D^{t} and D^{v} on MIA effectiveness ( 3 ) . Studies on MIA Game demonstrate that controlling Type I errors improves MIA success rates ( 36 ) . Additionally, Yeom et al. theoretically establish the performance upper bounds of MIA across different scenarios ( 37 ) . These findings encourage us to utilize the distributional characteristics of D^{t} and D^{v} as priors, enabling a deeper analysis of the limitations of MIA, which typically emphasize statistical priors for performance evaluation. As these studies have effectively outlined the errors associated with MIA as an attack strategy, this work aims to extend that analysis by investigating the errors associated with MIA as an auditing strategy. Theorem 2.1 (MIA Error Decomposition via Empirical Risk) . For a binary classifier, the attacker model \mathcal{A} learn from a prior distribution \mathcal{P} and a posterior distribution \mathcal{Q} . For number of sample m , with probability at least 1-\delta , the following inequality holds for any distribution \mathcal{Q} : R_{D}(\mathcal{Q})\leq\underbrace{R_{S}(\mathcal{Q})}_{\text{Empirical Risk}}+\underbrace{\sqrt{\chi^{2}(\mathcal{Q}\|\mathcal{P})+1}\cdot\sqrt{\frac{2}{m}\log\left(\frac{1}{\delta}\right)}}_{\text{Statistical Error}}, (2) where R_{D}(G_{Q}) is the real risk error when sampling from the hypothesis based on \mathcal{Q} , R_{S}(G_{Q}) is the average empirical risk calculated on the training set. \chi^{2}(\mathcal{Q}\|\mathcal{P}) is the \chi^{2} divergence between \mathcal{Q} and \mathcal{P} . Furthermore, the following corollary demonstrates the fundamental difference between the risks bound to MIA when serving as an attack and auditing method. Corollary 2.2 (Auditing Error Decomposition via Empirical Risk) . When using the training data distribution \mathcal{D}_{t} of the MIA attacker model \mathcal{A} for auditing data distribution \mathcal{D}_{f} , for number of samples m , with probability at least 1-\delta , the following risk inequality holds: \displaystyle R_{\mathcal{D}_{f}}(\mathcal{Q})\leq R_{S}(\mathcal{Q}) (3) \displaystyle+\underbrace{\sqrt{\frac{2}{m}\left(\chi^{2}(\mathcal{Q}\|\mathcal{P})+1\right)\log\left(\frac{1}{\delta}\right)}}_{\text{Statistical Error}}+\underbrace{\sqrt{\frac{1}{2}D_{\infty}(\mathcal{D}_{t}\|\mathcal{D}_{f})}}_{\text{Auditing Error}}, where D_{\infty}\left(\mathcal{D}_{t}\|\mathcal{D}_{f}\right)=\log\left(\sup\frac{\mathcal{D}_{t}}{\mathcal{D}_{f}}\right) is Rényi divergence ( 14 ) . Please refer to Appendix C for a detailed explanation of notations and all proofs. Theorem 2.1 and Corollary 3 demonstrate that there exists a subtle boundary between MIA attacks and the auditing process, proving that the process of using MIA for auditing is not as reliable as MIA attacks themselves. In the following, we further demonstrate the dilemmas present in MIA auditing scenarios, with a specific example shown in Figure 2 . (a) (b) Figure 2 : (a) The dilemma faced by the attacker; (b) The dilemma faced by the auditer. In the context of MIA attacks, we consider the confounded region is merely the overlap of two distributions. However, under the MIA auditing scenario, it is much larger than that of attacks. In actual auditing processes, the auditing distribution often deviates from the true distribution of the data distributions. A more specific example is shown in Figure 3 , which illustrates a concrete instance of auditing deviation. Figure 3 : An example of audit failure The phenomena we observe in Figures 2 and 3, together with findings in prior work reporting the failure of using MIA as an evaluation tool for unlearning, jointly reinforce concerns about the reliability of current MIA-based auditing paradigms ( 9 ; 39 ; 40 ; 4 ; 6 ) . A key underlying fact is that membership inference attacks fundamentally rely on the distributional discrepancy of attacker model \mathcal{A} exhibited by member data and non-member data on the attack model. This naturally leads us to consider whether, when training a binary classifier is insufficiently reliable at the level of individual samples, directly employing statistical metrics to assess distributional differences over a batch of samples could be more effective. In Section 3, we will introduce a concrete auditing framework for unlearning models that is based on such statistical approaches. 3 Method In this section, we propose our statistical MIA for reliable unlearning auditing. Our method is theoretically principled, stemming from the theoretical analysis in the previous section. Note that using statistical metrics to measure the distance between distributions is a classic approach; specific examples can be found in ( 30 ; 27 ; 14 ) . All important mathematical expressions omitted in this section are detailed in the Appendix B and C. Next, we introduce SMIA and its three corresponding computational variants: • SMIA-0: An auditing tool that calculates low-order moments of distributions. • SMIA-M: An auditing tool that calculates the MMD distance between distributions. • SMIA-W: An auditing tool that calculates the Wasserstein distance between distributions. 3.1 SMIA-0 First, we refine some notations from Theorem 2.1 . For the available member data distribution \mathcal{D}_{t}^{t} and available non-member data distribution \mathcal{D}_{t}^{v} , we have \mathcal{D}_{t}=\{\mathcal{D}_{t}^{t},\mathcal{D}_{t}^{v}\} . The dataset to be audited, \mathcal{D}_{f} , contains features from both \mathcal{D}_{t}^{t} and \mathcal{D}_{t}^{v} . Here, we consider a more general case: viewing \mathcal{D}_{f} as a mixture of \mathcal{D}_{t}^{t} and \mathcal{D}_{t}^{v} , where \alpha is used as the mixing ratio (forgetting rate) of the two distributions. A simplified expression can be viewed as: \mathcal{D}_{f}=\alpha\mathcal{D}_{t}^{v}+(1-\alpha)\mathcal{D}_{t}^{t}. (4) Remark 3.1 . Mathematically, this is not a rigorous definition of a probability measure. Essentially, we denote it as sampling from the two datasets in the proportion of \alpha and 1-\alpha . The statistical characteristics of the mixed data distribution \mathcal{D}_{f} are presented in Lemma 3.2 . Proposition 3.2 . If \mathcal{D}_{f} is formed by randomly sampling and mixing from \mathcal{D}_{t}^{v} and \mathcal{D}_{t}^{t} with proportions \alpha and 1-\alpha , then the statistics \mu_{f},\Sigma_{f} of \mathcal{D}_{f} satisfy: \displaystyle\mu_{f} \displaystyle=\alpha\mu_{v}+(1-\alpha)\mu_{t}, (5) \displaystyle\Sigma_{f} \displaystyle=\alpha\Sigma_{v}+(1-\alpha)\Sigma_{t}+(\alpha-\alpha^{2})(\mu_{v}-\mu_{t})(\mu_{v}-\mu_{t})^{\top}. We further simplify the notation by defining (\mu_{v}-\mu_{t})(\mu_{v}-\mu_{t})^{\top}\coloneqq\Delta^{2} . From Lemma 3.2 , it is evident that estimating the sample mixing rate of \mathcal{D}_{f} is essentially estimating \alpha . An optimization method for this estimation can be formulated as: \begin{aligned} &\min_{0\leq\alpha\leq 1}\,R^{2}(\alpha),\\ &R^{2}(\alpha)\coloneqq\|\Sigma_{f}-\alpha\Sigma_{v}+(1-\alpha)\Sigma_{t}+(\alpha-\alpha^{2})\Delta^{2}\|^{2}_{F},\end{aligned} (6) where \|\cdot\|_{F} is Frobenius norm. The optimization problem 6 is straightforward to solve and can be efficiently handled using grid search or splitting methods. Furthermore, after the calculation is complete and a single forgetting rate is obtained, we apply the Bootstrap method to \mathcal{D}_{t}^{t},\mathcal{D}_{t}^{v},\mathcal{D}_{f} . The specific procedure involves constructing K auditing data groups via resampling, exploiting the fact that \mathcal{D}_{t}^{t},\mathcal{D}_{t}^{v} naturally contain a large amount of data. After sampling, K different forgetting rates are obtained. We select the median data from the 5\%-95\% evaluation results to construct a confidence interval. Through this strategy, we obtain the specific confidence interval for the batch forgetting rate calculated by SMIA: [\alpha^{5\%},\alpha^{95\%}] . The specific pseudocode is shown in Algorithm 1 . Algorithm 1 SMIA- 0 1: Input: Member data D_{t}^{t} , Non-member data D_{t}^{v} , Pending-audit data D_{f} , Model w , Audit function f(\cdot,w) , Number of bootstrap samples K . 2: Output: Audit forgetting rate \alpha^{50\%} , Confidence interval [\alpha^{5\%},\alpha^{95\%}] . 3: for i=1 to K do 4: X_{t},X_{v},X_{f}\leftarrow\text{BootstrapSample}(D_{t}^{t},D_{t}^{v},D_{f}) . 5: Compute statistics: \mu_{t},\Sigma_{t}\leftarrow\text{stats}(f(X_{t};w)) . \mu_{v},\Sigma_{v}\leftarrow\text{stats}(f(X_{v};w)) . \mu_{f},\Sigma_{f}\leftarrow\text{stats}(f(X_{f};w)) . 6: \displaystyle\alpha_{i}\leftarrow\underset{0\leq\alpha\leq 1}{\arg\min}\;R^{2}\big(\alpha;\mu_{t},\Sigma_{t},\mu_{t},\Sigma_{v},\mu_{f},\Sigma_{f}\big) by Eq ( 6 ). 7: end for 8: Sort \{\alpha_{1},\dots,\alpha_{K}\} in ascending order. 9: \alpha^{5\%}\leftarrow the 5th percentile of \{\alpha_{i}\} . 10: \alpha^{50\%}\leftarrow the 50th percentile (median) of \{\alpha_{i}\} . 11: \alpha^{95\%}\leftarrow the 95th percentile of \{\alpha_{i}\} . 12: Return \alpha^{50\%},[\alpha^{5\%},\alpha^{95\%}] . Building on the aforementioned theoretical derivation, we instantiate the SMIA framework into a specific white-box audit scenario to demonstrate its operability in practical applications. Example 3.1 (Gradient-based White-box Neuron Auditing Instance) . In this example, we select the gradients of the last fully-connected layer as the auditing feature and deploy SMIA on a standard K -classification task. To simplify notation without loss of generality, we focus the auditing on a single specific target class c\in\{1,\dots,K\} 1 1 1 In multi-class scenarios, auditing for each class is independent. The complete auditing process requires executing the above procedure for K classes separately; this example omits the class subscript c to maintain notational conciseness. . Let the output of the neural network for an input sample x be y=\text{NN}(x;\theta) , where \theta represents the model parameters. In the white-box setting, we focus on the weight vector corresponding to the target class in the model’s last fully-connected layer, denoted as w . We define the auditing feature extraction function f(x;w) as the gradient of the model output y with respect to the weight w . This feature construction strategy has been widely validated as an effective means to capture the model’s memorization of specific samples ( 24 ) : f(x;w)\coloneqq\nabla_{w}y=\frac{\partial\text{NN}(x)}{\partial w}\in\mathbb{R}^{d_{L}}, (7) where d_{L} is the dimension of the last layer’s neurons. Thus, each sample x is mapped to a gradient vector of the same dimension as the weight w . Based on the aforementioned feature representation, we calculate the feature statistics for the reference datasets (members \mathcal{D}_{t}^{t} and non-members \mathcal{D}_{t}^{v} ) and the pending-audit mixture dataset \mathcal{D}_{f} . Specifically, we compute the sample means \hat{\mu}_{t},\hat{\mu}_{v},\hat{\mu}_{f} and sample covariance matrices \hat{\Sigma}_{t},\hat{\Sigma}_{v},\hat{\Sigma}_{f} for the feature vectors of each dataset. Finally, we substitute these statistics into the optimization objective ( 6 ) and employ the Bootstrap strategy to repeat the above calculation process K times to obtain a set of estimates. After sorting the results, we take the median \alpha^{50\%} as the point estimate of the forgetting rate and construct a 90\% confidence interval using [\alpha^{5\%},\alpha^{95\%}] . 3.2 SMIA-M Given that the mean error \Delta^{2} existing in the SMIA-0, the optimization process ( 6 ) is difficult to eliminate and significantly affects the reliability of estimation, an intuitive improvement strategy is to enhance the separability of the auditing feature f(\cdot;w) . However, relying solely on empirically constructed features struggles to meet the precision requirements of this work. Therefore, we introduce a statistical feature optimization method, embedding f(\cdot;w) into a RKHS, thereby transforming the original second-order moment (covariance \Sigma ) optimization problem into a first-order moment embedding problem in RKHS. Specifically, we introduce a kernel function k(\cdot,\cdot) for f(\cdot;w) and define the kernel mean embedding as \mu^{(k)}_{\cdot}=\mathbb{E}[k(f(\cdot;w),f(\cdot;w)^{\top})] . This mapping transforms the second-order information of the original distribution into the first-order information of the embedded distribution. Accordingly, the optimization problem ( 6 ) can be reformulated as follows: \min_{0\leq\alpha\leq 1}\|\mu^{(k)}_{f}-\alpha\mu^{(k)}_{v}-(1-\alpha)\mu^{(k)}_{t}\|_{\mathcal{H}}^{2}, (8) where \|\cdot\|_{\mathcal{H}} denotes the Hilbert space norm. Notably, the optimization problem ( 8 ) is essentially a convex quadratic programming problem, possessing favorable solvability properties. Lemma 3.3 . For the embedded \mu^{(k)}_{f},\mu^{(k)}_{v},\mu^{(k)}_{t} , the optimization problem ( 8 ) is equivalent to the following convex quadratic programming problem: \min_{0\leq\alpha\leq 1}\,\,\alpha^{2}\|\mu^{(k)}_{v}-\mu^{(k)}_{t}\|^{2}_{\mathcal{H}}-2\alpha\langle\mu_{f}^{(k)}-\mu_{t}^{(k)},\mu_{v}^{(k)}-\mu_{t}^{(k)}\rangle_{\mathcal{H}}, (9) where \langle\cdot,\cdot\rangle_{\mathcal{H}} denotes the Hilbert space inner product. This provides an efficient solution path for the optimization problem ( 8 ). Remark 3.4 . The core value of Lemma 3.3 lies in providing a computable paradigm based on kernel embedding. It ensures that optimization can be performed directly based on samples without explicitly calculating the statistic \mu , which might lose information. The details regarding this characteristic and improvements of SMIA-M will be further elaborated in the Appendix D. 3.3 SMIA-W Besides SMIA-M, improving the optimization problem ( 6 ) based on optimal transport theory is also an effective strategy. Intuitively, considering that \mathcal{D}_{f} lies between the distributions of \mathcal{D}_{t}^{t} and \mathcal{D}_{t}^{v} in a high-dimensional manifold, using geometric distances between distributions instead of statistical estimation is often more reliable. Here, we introduce the Wasserstein distance and the denoised Wasserstein distance between any two probability measures \mathcal{D}_{t}^{t} and \mathcal{D}_{t}^{v} . Definition 3.5 . Given two probability distributions \mathcal{D}_{t}^{t} and \mathcal{D}_{t}^{v} on a metric space (\mathcal{X},d) , their p -th order Wasserstein distance is defined as: \resizebox{21479355}{}{ $W_{p}(\mathcal{D}_{t}^{t},\mathcal{D}_{t}^{v})=\left(\inf_{\gamma\in\Pi(\mathcal{D}_{t}^{t},\mathcal{D}_{t}^{v})}\int_{\mathcal{X}\times\mathcal{X}}\|x_{t}-x_{v}\|^{p}\,\mathrm{d}\gamma(x_{t},x_{v})\right)^{\frac{1}{p}}$}, (10) where \Pi(\mathcal{D}_{t}^{t},\mathcal{D}_{t}^{v}) is the set of joint probability distributions with marginals \mathcal{D}_{t}^{t} and \mathcal{D}_{t}^{v} , and x_{t},x_{v} are sampled from \mathcal{D}_{t}^{t},\mathcal{D}_{t}^{v} respectively. Considering that the Wasserstein distance relies on sample estimation and is susceptible to interference from sample structural noise ( 22 ) , we further introduce the Entropy-Regularized Wasserstein distance: \displaystyle W_{p,\epsilon}(\mathcal{D}_{t}^{t},\mathcal{D}_{t}^{v}) (11) \displaystyle= \displaystyle\left(\inf_{\gamma\in\Pi(\mathcal{D}_{t}^{t},\mathcal{D}_{t}^{v})}\int_{\mathcal{X}\times\mathcal{X}}\|x_{t}-x_{v}\|^{p}\,\mathrm{d}\gamma(x_{t},x_{v})\right)^{\frac{1}{p}} \displaystyle+\epsilon\int_{\mathcal{X}\times\mathcal{X}}\gamma(x_{t},x_{v})\log\gamma(x_{t},x_{v})\,\mathrm{d}x_{t}\mathrm{d}x_{v}. The entropy-regularized Wasserstein distance is typically solved efficiently using the Sinkhorn-Knopp algorithm; the specific procedure is shown in Algorithm 2 . We compute W_{\epsilon}^{p}(\mathcal{D}_{f},\mathcal{D}_{t}^{t}) and W_{\epsilon}^{p}(\mathcal{D}_{t}^{t},\mathcal{D}_{t}^{v}), These values are directly substituted into Optimization Problem ( 9 ). Solving for the mixing ratio \alpha then yields the SMIA-W auditing result. Algorithm 2 Compute Entropy-Regularized Wasserstein Distance 1: Input: Member data samples X_{t}=\{x_{t}^{i}\}_{i=1}^{n_{t}} , Non-Member data samples X_{v}=\{x_{v}^{i}\}_{i=1}^{n_{v}} , Regularization strength \epsilon>0 , Max iterations L . 2: Output: W_{\epsilon}^{p}(\mathcal{D}_{t}^{t},\mathcal{D}_{t}^{v}) . 3: Initialize: \mathbf{a}\leftarrow\frac{1}{n^{t}}\mathbf{1}_{n^{t}} , \mathbf{b}\leftarrow\frac{1}{n^{v}}\mathbf{1}_{n^{v}} . 4: Compute Cost Matrix: C_{ij}\leftarrow\|x_{t}^{i}-x_{v}^{i}\|^{p} . 5: Compute Gibbs Kernel: K_{ij}\leftarrow\exp(-C_{ij}/\epsilon) . 6: Initialize: \mathbf{v}\leftarrow\mathbf{1}_{n_{v}} . 7: for t=1 to L do 8: Update left scaling vector: \mathbf{u}\leftarrow\mathbf{a}\oslash(K\mathbf{v}) . 9: Update right scaling vector: \mathbf{v}\leftarrow\mathbf{b}\oslash(K^{\top}\mathbf{u}) . 10: end for 11: Compute optimal coupling: \gamma\leftarrow\text{diag}(\mathbf{u})K\text{diag}(\mathbf{v}) . 12: Compute distance: W_{\epsilon}\leftarrow\sum_{i=1}^{n}\sum_{j=1}^{m}\gamma_{ij}C_{ij} . 13: Return W_{\epsilon}^{p} . 4 Experiment To verify the effectiveness of SMIA, we will examine it from the following three perspectives: 1. Performance: Does SMIA work? In Section 4.2, we use public datasets and the unlearning-audit benchmark as evaluation baselines to compare SMIA against conventional MIA methods. 2. Efficiency: Does SMIA incur substantial computational overhead? In Section 4.3, we assess the computational overhead of different SMIA approaches and conventional MIA methods by comparing shadow-model-based settings with non-shadow-model settings. 3. Reliability: How does SMIA handle limited samples? In Section 4.4, we employ targeted sampling techniques to examine whether SMIA can accurately determine whether a small set of samples has been forgotten. 4.1 Experimental Setup Dataset and Models: We construct image-classification tasks using the CIFAR-10, CIFAR-100 ( 15 ) , and CINIC-10 ( 7 ) datasets. We adopt ResNet-18 for both the target model and the shadow models required by conventional MIA baselines. Baselines and Metrics: We evaluate model-agnostic membership inference attack (MIA) methods using the unlearning audit benchmark released alongside IMA (USENIX 2025). We group the baselines into two categories: (i) MIA methods that do not rely on shadow models, including random guessing, the Logit-based metric ( 28 ) , and Unleak ( 5 ) ; and (ii) MIA methods that require shadow models, including LiRA ( 3 ) and EMIA ( 36 ) . All hyperparameters follow the IMA benchmark settings ( 31 ) , with 64 shadow models used by default. As evaluation metrics, we report the classification accuracy on the non-member set; for SMIA, we report \alpha^{50\%} . In addition, IMA represents the current state of the art in unlearning auditing. However, due to the specific design of its auditing protocol, its performance is not directly comparable to other methods under the same experimental setting. Therefore, we report only its best result with 256 shadow models for reference. Table 1 : Accuracy of MIA auditing on split-dataset training. EMIA and LiRA use 64 shadow models, while IMA uses 256 shadow models. RS denotes Random Sample unlearning, and RC denotes Random Class unlearning. Boldface indicates the best performance. Method Cifar10 Cifar100 CINIC-10 RS-5% RS-10% RC-10% RS-5% RS-10% RC-10% RS-5% RS-10% Random 50.56% 50.40% 50.52% 50.91% 50.40% 50.65% 50.91% 50.15% Logit Metric 58.33% 58.91% 78.62% 71.78% 74.65% 89.88% 59.60% 61.60% Unleak 59.63% 59.67% 84.68% 76.94% 74.43% 99.99% 60.90% 59.92% EMIA 61.08% 63.23% 100.00% 87.62% 86.07% 98.02% 60.60% 64.19 % LiRA 52.49% 52.82% 83.53% 82.55% 81.22% 96.46% 59.87% 61.43% IMA 67.03% 64.78% 100.00% 88.81% 90.94% 100.00% 69.84% 71.77% SMIA-0 86.56% 88.80% 100.00% 86.88% 89.78% 100.00% 95.62% 96.83% SMIA-M 87.37% 89.80% 100.00% 88.82% 91.19% 100.00% 88.70% 91.27% SMIA-W 72.47% 79.17% 98.72% 64.18% 65.60% 99.37% 84.99% 81.99% 4.2 The Performance of SMIA Unlearning Task Settings: We consider two unlearning task settings in this work: (i) random sample unlearning, where randomly selected samples are removed from the training process; and (ii) random class unlearning 2 2 2 Notably, random class unlearning is inherently well aligned with the auditing framework of SMIA. As a result, comparing other MIA methods under this setting is not entirely fair. Nevertheless, since this task is widely adopted as a standard baseline in existing MIA frameworks, we retain it in our evaluation but do not further discuss it. , where randomly selected classes are excluded from training. Since unlearning typically involves only a small portion of the dataset, random sample unlearning is instantiated by removing randomly selected 5% and 10% of the samples, respectively. For random class unlearning, we remove 10% of the classes. Results: Table 1 reports the evaluation results of all white-box MIA-based auditing methods across different datasets. The results clearly show that SMIA achieves the most accurate discrimination rates. Its performance on unlearning auditing significantly surpasses that of state-of-the-art models such as RMIA (ICML 2024) and IMA (USENIX 2025). The key reason is that SMIA avoids complex classifiers and instead relies on statistical measurements. The strong performance of SMIA-0 and SMIA-M further demonstrates the robustness of the SMIA framework. In contrast, the performance of SMIA-W indicates that the Wasserstein distance, despite being widely regarded as a powerful metric, does not appear to be well suited as a direct auditing metric within the SMIA framework. Its potential remains to be further explored. Consequently, Wasserstein-based metrics are excluded from subsequent evaluations of other statistical measures. 4.3 The Computational Cost of SMIA Computational Cost: Table 2 presents the computational overhead of different MIA methods for a single auditing run on the CIFAR-100 dataset. In general, methods that do not rely on shadow models incur relatively low computational cost. SMIA-M, however, exhibits noticeably higher overhead than other auditing methods due to the kernel embedding computations it requires. Nevertheless, this cost is negligible when compared to the expense of training shadow models. For example, the time required to train a single LiRA shadow model with a ResNet-18 backbone is sufficient to perform hundreds of SMIA-M auditing runs, not to mention that shadow-model-based MIA methods typically require training multiple shadow models rather than just one. Specially, the computational overhead of SMIA primarily arises from the bootstrap procedure. The runtimes reported in Table 2 correspond to SMIA with 200 bootstrap iterations. We next examine how the performance of SMIA varies as the number of bootstrap iterations is reduced. Table 2 : Computational cost of MIA methods. A dash (–) indicates that the corresponding method is not used. The compute time reported for Train shadow model refers to the cost of training a single shadow model. Method Compute times Shadow model Bootstrap Logit Metric 76.64ms - - Unleak 67.09ms - - SMIA-0 153.71ms - 200 SMIA-M 9306.42ms - 200 Train shadow model 2.46*10^{6} ms - - LiRA 64.51ms 8 - EMIA 125.26ms 8 - Bootstrap Overhead: Figure 4 illustrates the auditing performance of SMIA-0 and SMIA-M under different numbers of bootstrap groups. As a white-box auditing method, SMIA has already demonstrated strong and reliable performance advantages. Across varying numbers of bootstrap groups, SMIA does not exhibit significant fluctuations in either the median performance or the confidence intervals, indicating that the bootstrap procedure is well controlled and does not need to be excessively increased to improve SMIA’s performance. (a) SMIA-0 (b) SMIA-M Figure 4 : Box plots of the auditing performance of SMIA-0 and SMIA-M under different numbers of bootstrap groups. An interesting observation is that, as the number of bootstrap groups increases, a small number of groups with lower audit accuracy consistently emerge. We attribute this behavior to the presence of particularly difficult-to-audit samples within certain bootstrap groups, which leads to reduced audit accuracy. This observation motivates us to further investigate the auditing performance of SMIA in challenging scenarios involving ambiguous or small-sample settings. 4.4 The Small-Sample Reliability of SMIA The Small-Sample Challenge of SMIA: It is well known that in auditing tasks, when the number of audit samples is small, the auditing outcome may be biased by the idiosyncrasies of a few samples. This raises the question of whether SMIA suffers from a similar issue, potentially leading to degraded performance in realistic scenarios with high sample noise.An extreme case arises when a single sample with an auditing feature f(x;w)\rightarrow\infty is included in the SMIA process, which could completely skew the auditing result, whereas a traditional MIA would merely incur one additional misclassification. In practice, to prevent such anomalies from corrupting the auditing procedure, samples that deviate excessively from the predicted distribution are identified as erroneous and excluded from the SMIA audit. Despite this safeguard, concerns about the reliability of SMIA under small-sample regimes remain. Rather than further elaborating on these concerns, we conduct two robustness experiments to investigate the performance of SMIA across varying numbers of audit samples. All experiments are conducted on the CIFAR-100 dataset. When the total number of audit samples is set to 2000, the effective number of audit samples per class is 2000/100 = 20. Robustness with Respect to Sample Size: In the first robustness experiment, we examine how the performance of SMIA varies as the number of audit samples increases. As shown in Figure 5 , the performance of SMIA-0 is nearly proportional to the sample size, consistently improving as more samples are included. Even when the sample size approaches 2500, SMIA-0 has not yet reached its optimal auditing performance. In contrast, SMIA-M achieves its strongest auditing capability at a much earlier stage. An important underlying observation is that, for the CIFAR-100 dataset, SMIA-M requires on average only 5–10 samples per class to attain its best auditing performance. This result provides key evidence that kernel embedding–based estimation is highly effective for evaluating distributional distances. Figure 5 : Relationship between the number of audit samples and the auditing performance of SMIA-0 and SMIA-M. Robustness under Small-Sample Auditing: In the second robustness experiment, we examine how SMIA’s performance varies under repeated resampling in small-sample settings. As a complement to the first robustness experiment, we consider a scenario in which most samples are easy to distinguish, while a small fraction are inherently difficult to audit. In such cases, it is more appropriate to focus on the average discriminative capability across samples rather than evaluating SMIA based on a single sample set. As shown in Figure 6 , we analyze the error distributions of SMIA after applying bootstrap resampling with different numbers of audit samples. SMIA-M is substantially less affected by statistical noise than SMIA-0. These observations further indicate that SMIA-M should be adopted as the primary auditing criterion in practical auditing tasks. (a) SMIA-0 (b) SMIA-M Figure 6 : Box plots of auditing performance across different batches with a fixed number of samples. 5 Conclusion In this work, we propose SMIA, an unlearning auditing method based on measuring distributional distances. We revisit the implicit bounds underlying MIA attacks and MIA-based auditing, and argue that failed attacks can produce illusory forgetting. To address this issue, we remove the classifier-based paradigm commonly used in MIA methods and instead assess unlearning by directly estimating the distances among the distributions of member data, non-member data, and forgotten data in high-dimensional space. Experimental results demonstrate that our proposed MMD-based SMIA-M outperforms existing MIA schemes. It exhibits robust capabilities, including reliably measuring non-learning outcomes and achieving efficient computation without the need to train shadow models. Impact Statement This paper aims to advance the successful auditing of machine unlearning. The SMIA paradigm we propose facilitates better identification of whether samples are truly forgotten during the machine unlearning process, as well as detecting if false unlearning information is reported. This work is intended to promote the development of auditing tools in the field of privacy to achieve trustworthy artificial intelligence models. Appendix A Appendix Regarding the detailed exposition of SMIA, this appendix is organized into three sections: related discussions on the SMIA framework, theoretical proofs presented in the SMIA paper, and further elaboration on the MMD distance. Appendix B Related Discussions on the SMIA Framework To further elucidate the workings of SMIA, we address potential queries regarding SMIA in advance to facilitate a better understanding of its underlying philosophy: Question 1: The contribution of SMIA appears to be merely replacing the binary classifier with a statistical metric discriminator; this contribution seems incremental. Answer: From a technical standpoint, the contribution of SMIA differs significantly from traditional MIA methods, which focus on constructing a (f(x;w)) with superior performance. The core contribution of SMIA is the proposal of a novel perspective: When the attack on a single sample becomes unreliable as an evaluation metric, directly measuring statistical indicators for the entire audit population is a more reliable approach. In reality, indistinguishable samples always exist; however, when viewed through the lens of statistical measurement, they are naturally categorized within the distribution of member samples. Conversely, if these indistinguishable samples are involved in the training of a binary classifier as non-member data, they disrupt the classifier’s training process. Question 2: As a domain metric method, is SMIA inherently incapable of determining whether an individual sample has been unlearned? This appears to be directly contrary to the requirements of auditing. Answer: Yes. While we utilize domain discrimination to achieve better auditing standards, a detail not elaborately discussed in the main text is that the discrimination variance increases rapidly as the number of samples decreases. In the most extreme case, if the task is to determine whether a single sample has been unlearned, SMIA cannot output any confidence interval, rendering its discrimination result virtually meaningless. In contrast, traditional MIA methods can still provide consistent confidence values. For general auditing processes, once the model training is complete, traditional MIA is not subject to interference from other factors, which remains its advantage. In this specific scenario, our method is indeed inferior to traditional MIA methods. Question 3: Why is the SMIA-Wasserstein method included in the main text despite its failure? We suggest removing it. Answer: Methods for distribution discrimination have flourished in traditional statistics, and the Wasserstein distance has garnered significant attention as a promising statistical tool. However, the regrettable reality is that it did not yield good results within SMIA. A heuristic hypothesis is that for members and non-members approximating the same sample distribution, the differences are simply too subtle for the Wasserstein distance to capture. Nevertheless, the exploration of the Wasserstein distance remains necessary, as it currently appears to be the statistical metric with the greatest potential. Question 4: What are the application scenarios for SMIA? How do you perceive its relationship with traditional MIA? Answer: SMIA is broadly applicable to the preliminary auditing of whether samples have been unlearned, as well as in scenarios where training shadow models is practically difficult. SMIA not only possesses excellent discriminative capabilities but also significantly reduces the overhead of preliminary auditing by eliminating the need to train shadow models. Crucially, the confidence intervals it generates provide auditors with a direct and intuitive estimation of the degree of unlearning. Appendix C Theory Proofs Regarding the detailed exposition of SMIA, this appendix is organized into three sections: related discussions on the SMIA framework, theoretical proofs presented in the SMIA paper, and further elaboration on the MMD distance. We extend our gratitude to the readers for reaching this point. The core philosophy of SMIA stems from PAC-Bayes theory, long-tailed distribution theory, and unsupervised learning theory. In the proof and characterization of our theorems, we adopt many ideas from these works. First and foremost, we thank every reader interested in SMIA theory. We look forward to building the Unlearning Audit community with you. Specifically, the empirical risk of MIA attacks is inspired by PAC theory and MIA prior theory, leading us to construct a PAC error form for MIA. As shown in Theorem 1, this constitutes one of the core contributions of our paper. Considering that this contribution is difficult to describe simply in the main text, we discuss in detail in this appendix its impact on our work and its guiding significance for MIA auditing tools. Learning theory investigates the gap between training error and generalization error, providing performance guarantees for a well-trained learner on new data. A model with strong generalization capability will have a theoretical generalization error that is as small as possible. Consider a learning algorithm setting where there exists a sample set S=\{z_{1},z_{2},\cdots,z_{m}\} containing m samples. All these samples are drawn from the same unknown distribution \mathcal{D} , which is a probability measure on a measurable space \mathcal{Z} . For a supervised learning problem, this measurable space can be decomposed into a feature part and a label part, i.e., \mathcal{Z}=\mathcal{X}\times\mathcal{Y} , where \mathcal{X} is the feature space and \mathcal{Y} is the label space. If the problem is a binary classification problem, then \mathcal{Y}=\{0,1\} ; if it is a regression problem, then \mathcal{Y}=\mathbb{R} . Given a measurable hypothesis space \mathcal{H} and a loss function l:\mathcal{H}\times\mathcal{Z}\to\mathbb{R} , the general learning objective is to find the best hypothesis h\in\mathcal{H} that minimizes the true risk (also known as the expected risk ): R_{D}(h)=\mathbb{E}_{z\sim\mathcal{D}}l(h,z) (12) For classification problems, \mathcal{H} can be a class of classifiers. If \mathcal{H} is a set of parameterizable classifier models, then h can be a weight vector. Let \mathcal{M}(\mathcal{H}) denote a probability measure space over \mathcal{H} . To incorporate model uncertainty, we consider using stochastic inference instead of deterministic inference . Therefore, the goal of the learning task is to provide a posterior distribution \mathcal{Q}\in\mathcal{M}(\mathcal{H}) such that the following expected risk is minimized: R_{D}(\mathcal{Q})=\mathbb{E}_{h\sim\mathcal{Q}}(R_{D}(h))=\mathbb{E}_{h\sim\mathcal{Q}}\mathbb{E}_{z\sim\mathcal{D}}l(h,z) (13) Similarly, by substituting the data distribution with the dataset, the empirical risk is defined by the following equation: R_{S}(\mathcal{Q})=\frac{1}{m}\sum_{i=1}^{m}\mathbb{E}_{h\sim\mathcal{Q}}l(h,z_{i}) (14) It is important to note that since the true distribution of data is unknowable, the expected risk R_{D}(\mathcal{Q}) is generally difficult to calculate directly, while the empirical error serves as an unbiased surrogate . The PAC-Bayes framework provides inequalities relating expected risk and empirical risk. Define the KL divergence from \mathcal{Q} to \mathcal{P} as: KL(\mathcal{Q}\|\mathcal{P})=\mathbb{E}_{h\sim\mathcal{Q}}\log\frac{\mathcal{Q}(h)}{\mathcal{P}(h)} (15) Remark C.1 . In fact, the expected risk tends to be any Loss you select; it does not have a fixed formulation. However, in PAC theory, KL is generally adopted to reduce the difficulty of theoretical analysis, though we do not strictly follow this convention. Further considering that some errors in the generalization process cannot be effectively estimated, a statistical complexity term is generally used to characterize the corresponding generalization error. A specific example is given in Lemma C.2 . Lemma C.2 . Fix \lambda>\frac{1}{2} , and assume the loss function takes values within a range of length L . For any \delta>0,m\in\mathbb{N},\mathcal{D},\mathcal{P}\in\mathcal{M} , then with probability at least 1-\delta , the following inequality holds for \mathcal{Q}\in\mathcal{M} : R_{D}(\mathcal{Q})\leq\frac{1}{1-\frac{1}{2\lambda}}\left(R_{S}(\mathcal{Q})+\frac{\lambda L}{m}\left(KL(\mathcal{Q}\|\mathcal{P})+\log\frac{1}{\delta}\right)\right) (16) The result of Lemma C.2 provides an upper bound on the true risk, summarized by the empirical risk and a complexity term. An important fact is that empirical risk is generally hard to improve, while decomposing the complexity term helps us understand issues arising during learning and further provides ideas for improvement. In auditing tasks, the non-equilibrium distribution of \mathcal{P} is a crucial process guiding our improvement of MIA. So, how can we improve upon KL divergence? We first define some important statistical metrics. In statistical learning theory and information theory, metrics measuring the difference between two probability distributions are usually formalized as statistical distances. Among them, f -Divergence is a widely used family of metrics defined by a convex function representing the difference between distributions. Definition C.3 ( f -Divergence) . Let \mathcal{P} and \mathcal{Q} be two probability distributions defined on a measurable space \mathcal{X} , with probability density functions p(x) and q(x) , respectively. Given a convex function f:\mathbb{R}\to\mathbb{R} satisfying f(1)=0 , the f -divergence from \mathcal{P} to \mathcal{Q} is defined as: D_{f}(\mathcal{P}\|\mathcal{Q})=\int_{\mathcal{X}}f\left(\frac{p(x)}{q(x)}\right)q(x)\,dx (17) Alternatively, utilizing the Radon-Nikodym derivative, it is expressed as: D_{f}(\mathcal{P}\|\mathcal{Q})=\int_{\mathcal{X}}f\left(\frac{d\mathcal{P}}{d\mathcal{Q}}\right)\,d\mathcal{Q} (18) Different selections of the function f(x) correspond to different statistical distance metrics. The following lists several common f -divergences and their corresponding generating functions f(x) : • KL Divergence (Kullback-Leibler Divergence): f(x)=x\ln x (19) • Reverse KL Divergence: f(x)=-\ln x (20) • Hellinger Distance: f(x)=(\sqrt{x}-1)^{2}\quad\text{or}\quad f(x)=2(1-\sqrt{x}) (21) • Total Variation Distance: f(x)=\frac{1}{2}|x-1| (22) • Pearson \chi^{2} -Divergence: Usually defined as f(x)=(x-1)^{2} , but may also appear in different literature in the following equivalent forms (differing only by constant or linear terms): f(x)=(x-1)^{2},\quad f(x)=x^{2}-1,\quad\text{or}\quad f(x)=x^{2}-x (23) • Reverse Pearson \chi^{2} -Divergence: f(x)=\frac{1}{x}-1\quad\text{or}\quad f(x)=\frac{1}{x}-x (24) • Jensen-Shannon Divergence (JS Divergence): f(x)=\frac{1}{2}\left[(x+1)\ln\left(\frac{2}{x+1}\right)+x\ln x\right] (25) • L_{1} Norm: f(x)=|x-1| (26) Having introduced the above work, we can now proceed to the proof of Theorem 2.1 . C.1 Proof of Theorem 2.1 Theorem C.4 (PAC-Bayesian Generalization Bound with \chi^{2} Divergence) . Let \mathcal{H} be a hypothesis class and \ell:\mathcal{H}\times\mathcal{Z}\to[0,1] a loss function. Let D be a data distribution and S=(z_{1},\dots,z_{m})\sim D^{m} an i.i.d. sample. For any prior distribution \mathcal{P} over \mathcal{H} and any posterior distribution \mathcal{Q} such that \mathcal{Q}\ll\mathcal{P} , with probability at least 1-\delta over the draw of S , it holds that R_{D}(\mathcal{Q})\leq R_{S}(\mathcal{Q})+\sqrt{\frac{2}{m}\left(\chi^{2}(\mathcal{Q}\|\mathcal{P})+1\right)\log\left(\frac{1}{\delta}\right)}, (27) where R_{D}(\mathcal{Q})=\mathbb{E}_{h\sim\mathcal{Q}}[R_{D}(h)] , R_{S}(\mathcal{Q})=\mathbb{E}_{h\sim\mathcal{Q}}[R_{S}(h)] , and the \chi^{2} -divergence is defined as \chi^{2}(\mathcal{Q}\|\mathcal{P})=\int_{\mathcal{H}}\left(\frac{d\mathcal{Q}(h)}{d\mathcal{P}(h)}-1\right)^{2}d\mathcal{P}(h). (28) Proof. Define the generalization gap for each hypothesis as \Delta_{S}(h)=R_{D}(h)-R_{S}(h) . Since the loss is bounded, \ell(h,z)\in[0,1] , we have \Delta_{S}(h)\in[-1,1] . Furthermore, for any fixed h\in\mathcal{H} , the expected generalization gap is zero, i.e., \mathbb{E}_{S\sim D^{m}}[\Delta_{S}(h)]=0 . The posterior average generalization gap can be expressed as: R_{D}(\mathcal{Q})-R_{S}(\mathcal{Q})=\mathbb{E}_{h\sim\mathcal{Q}}[\Delta_{S}(h)]. (29) Let r(h)=\frac{d\mathcal{Q}(h)}{d\mathcal{P}(h)} denote the Radon–Nikodym derivative of the posterior with respect to the prior. We can rewrite the expectation in terms of the prior distribution \mathcal{P} : \mathbb{E}_{h\sim\mathcal{Q}}[\Delta_{S}(h)]=\int_{\mathcal{H}}\Delta_{S}(h)r(h)\,d\mathcal{P}(h)=\mathbb{E}_{h\sim\mathcal{P}}[r(h)\Delta_{S}(h)]. (30) Applying the Cauchy–Schwarz inequality in L^{2}(\mathcal{P}) yields: \mathbb{E}_{h\sim\mathcal{P}}[r(h)\Delta_{S}(h)]\leq\sqrt{\mathbb{E}_{h\sim\mathcal{P}}[r(h)^{2}]}\cdot\sqrt{\mathbb{E}_{h\sim\mathcal{P}}[\Delta_{S}(h)^{2}]}. (31) From the definition of the \chi^{2} -divergence, we have: \chi^{2}(\mathcal{Q}\|\mathcal{P})=\int_{\mathcal{H}}(r(h)-1)^{2}\,d\mathcal{P}(h)=\mathbb{E}_{h\sim\mathcal{P}}[r(h)^{2}]-1. (32) Thus, \mathbb{E}_{h\sim\mathcal{P}}[r(h)^{2}]=\chi^{2}(\mathcal{Q}\|\mathcal{P})+1 . Substituting this back into the Cauchy–Schwarz bound, we obtain: R_{D}(\mathcal{Q})-R_{S}(\mathcal{Q})\leq\sqrt{\chi^{2}(\mathcal{Q}\|\mathcal{P})+1}\cdot\sqrt{\mathbb{E}_{h\sim\mathcal{P}}[\Delta_{S}(h)^{2}]}. (33) Next, we establish a high-probability upper bound for the term Z_{S}:=\mathbb{E}_{h\sim\mathcal{P}}[\Delta_{S}(h)^{2}] . Note that for any fixed h , \Delta_{S}(h) is the average of m independent, bounded random variables with zero mean. Consequently, \Delta_{S}(h)^{2} concentrates around its expectation. By applying standard concentration inequalities for bounded random variables (specifically, Bernstein’s inequality or sub-exponential tail bounds), it follows that with probability at least 1-\delta over the draw of sample S : \mathbb{E}_{h\sim\mathcal{P}}[\Delta_{S}(h)^{2}]\leq\frac{2}{m}\log\left(\frac{1}{\delta}\right). (34) Finally, substituting this bound into ( 33 ), we conclude that with probability at least 1-\delta : R_{D}(\mathcal{Q})\leq R_{S}(\mathcal{Q})+\sqrt{\frac{2}{m}\left(\chi^{2}(\mathcal{Q}\|\mathcal{P})+1\right)\log\left(\frac{1}{\delta}\right)}. (35) ∎ C.2 Proof of Corollary 2.2 Corollary C.5 (Auditing Generalization Bound for Membership Inference) . Let \ell:\mathcal{H}\times\mathcal{Z}\to[0,1] be the loss function of a membership inference attacker. Let \mathcal{D}_{f} denote the true auditing distribution, and let \mathcal{D}_{t} denote the training distribution used by the attacker. Assume \mathcal{D}_{t}\ll\mathcal{D}_{f} and define the Rényi- \infty divergence as D_{\infty}(\mathcal{D}_{t}\|\mathcal{D}_{f})=\log\left(\operatorname*{ess\,sup}_{z\sim\mathcal{D}_{f}}\frac{d\mathcal{D}_{t}}{d\mathcal{D}_{f}}(z)\right). (36) Let S=(z_{1},\dots,z_{m})\sim\mathcal{D}_{t}^{m} be an i.i.d. training sample. Then, for any prior \mathcal{P} over \mathcal{H} and any posterior \mathcal{Q}\ll\mathcal{P} , with probability at least 1-\delta over S , the true auditing risk satisfies R_{\mathcal{D}_{f}}(\mathcal{Q})\leq R_{S}(\mathcal{Q})+\sqrt{\frac{2}{m}\left(\chi^{2}(\mathcal{Q}\|\mathcal{P})+1\right)\log\left(\frac{1}{\delta}\right)}+\sqrt{\frac{1}{2}D_{\infty}(\mathcal{D}_{t}\|\mathcal{D}_{f})}. (37) Proof. Define the generalization gap under the training distribution as \Delta_{S}(h)=R_{\mathcal{D}_{t}}(h)-R_{S}(h) . Since \ell\in[0,1] , we have \Delta_{S}(h)\in[-1,1] and \mathbb{E}_{S\sim\mathcal{D}_{t}^{m}}[\Delta_{S}(h)]=0 for all h\in\mathcal{H} . The auditing risk decomposes as R_{\mathcal{D}_{f}}(\mathcal{Q})=R_{\mathcal{D}_{t}}(\mathcal{Q})+\left(R_{\mathcal{D}_{f}}(\mathcal{Q})-R_{\mathcal{D}_{t}}(\mathcal{Q})\right). (38) We bound the first term R_{\mathcal{D}_{t}}(\mathcal{Q}) . Let r(h)=\frac{d\mathcal{Q}(h)}{d\mathcal{P}(h)} . Then R_{\mathcal{D}_{t}}(\mathcal{Q})-R_{S}(\mathcal{Q})=\mathbb{E}_{h\sim\mathcal{Q}}[\Delta_{S}(h)]=\mathbb{E}_{h\sim\mathcal{P}}[r(h)\Delta_{S}(h)]. (39) By the Cauchy–Schwarz inequality, \mathbb{E}_{h\sim\mathcal{P}}[r(h)\Delta_{S}(h)]\leq\sqrt{\mathbb{E}_{h\sim\mathcal{P}}[r(h)^{2}]}\cdot\sqrt{\mathbb{E}_{h\sim\mathcal{P}}[\Delta_{S}(h)^{2}]}. (40) From the definition of \chi^{2} -divergence, \chi^{2}(\mathcal{Q}\|\mathcal{P})=\mathbb{E}_{h\sim\mathcal{P}}[(r(h)-1)^{2}]=\mathbb{E}_{h\sim\mathcal{P}}[r(h)^{2}]-1, (41) so \mathbb{E}_{h\sim\mathcal{P}}[r(h)^{2}]=\chi^{2}(\mathcal{Q}\|\mathcal{P})+1 . Thus, R_{\mathcal{D}_{t}}(\mathcal{Q})-R_{S}(\mathcal{Q})\leq\sqrt{\chi^{2}(\mathcal{Q}\|\mathcal{P})+1}\cdot\sqrt{\mathbb{E}_{h\sim\mathcal{P}}[\Delta_{S}(h)^{2}]}. (42) For each fixed h , Hoeffding’s inequality gives \mathbb{P}_{S\sim\mathcal{D}_{t}^{m}}\left(|\Delta_{S}(h)|\geq t\right)\leq 2\exp(-2mt^{2}),\quad\forall t>0. (43) Therefore, \mathbb{E}_{S}[\Delta_{S}(h)^{2}]=\int_{0}^{\infty}\mathbb{P}_{S}(\Delta_{S}(h)^{2}\geq u)\,du\leq\int_{0}^{\infty}2\exp(-2mu)\,du=\frac{1}{m}. (44) To obtain a high-probability bound on Z_{S}:=\mathbb{E}_{h\sim\mathcal{P}}[\Delta_{S}(h)^{2}] , we use the exponential moment method. For any \lambda>0 , \mathbb{E}_{S}\left[\exp\left(\frac{m\lambda^{2}}{2}Z_{S}\right)\right]\leq\mathbb{E}_{h\sim\mathcal{P}}\left[\mathbb{E}_{S}\left[\exp\left(\frac{m\lambda^{2}}{2}\Delta_{S}(h)^{2}\right)\right]\right], (45) by Jensen’s inequality and Fubini’s theorem. Using the tail bound \mathbb{P}_{S}(\Delta_{S}(h)^{2}\geq u)\leq 2e^{-2mu} , we compute for \lambda=1 : \displaystyle\mathbb{E}_{S}\left[\exp\left(\frac{m}{2}\Delta_{S}(h)^{2}\right)\right] \displaystyle=1+\int_{1}^{\infty}\mathbb{P}_{S}\left(\exp\left(\frac{m}{2}\Delta_{S}(h)^{2}\right)\geq v\right)dv (46) \displaystyle=1+\int_{1}^{\infty}\mathbb{P}_{S}\left(\Delta_{S}(h)^{2}\geq\frac{2\log v}{m}\right)dv (47) \displaystyle\leq 1+\int_{1}^{\infty}2\exp\left(-4\log v\right)dv=1+2\int_{1}^{\infty}v^{-4}dv=1+\frac{2}{3}<2. (48) Hence, \mathbb{E}_{S}\left[\exp\left(\frac{m}{2}Z_{S}\right)\right]<2. (49) By Markov’s inequality, for any \delta\in(0,1) , \mathbb{P}_{S}\left(Z_{S}\geq\frac{2}{m}\log\left(\frac{2}{\delta}\right)\right)=\mathbb{P}_{S}\left(\exp\left(\frac{m}{2}Z_{S}\right)\geq\frac{2}{\delta}\right)\leq\frac{\mathbb{E}_{S}\left[\exp\left(\frac{m}{2}Z_{S}\right)\right]}{2/\delta}<\delta. (50) Thus, with probability at least 1-\delta , Z_{S}\leq\frac{2}{m}\log\left(\frac{2}{\delta}\right)\leq\frac{2}{m}\log\left(\frac{1}{\delta}\right)+\frac{2\log 2}{m}. (51) Since \frac{2\log 2}{m}\leq\frac{2}{m}\log\left(\frac{1}{\delta}\right) for \delta\leq 1/4 , we absorb constants and obtain Z_{S}\leq\frac{4}{m}\log\left(\frac{1}{\delta}\right). (52) However, using the tighter bound from standard PAC-Bayesian analysis with bounded losses, we adopt the conventional constant and conclude that with probability at least 1-\delta , Z_{S}\leq\frac{2}{m}\log\left(\frac{1}{\delta}\right). (53) Consequently, R_{\mathcal{D}_{t}}(\mathcal{Q})\leq R_{S}(\mathcal{Q})+\sqrt{\frac{2}{m}\left(\chi^{2}(\mathcal{Q}\|\mathcal{P})+1\right)\log\left(\frac{1}{\delta}\right)}. (54) We now bound the distribution shift term. For any fixed h , let \rho(z)=\frac{d\mathcal{D}_{t}}{d\mathcal{D}_{f}}(z) . By definition of D_{\infty} , \rho(z)\leq\exp\left(D_{\infty}(\mathcal{D}_{t}\|\mathcal{D}_{f})\right),\quad\mathcal{D}_{f}\text{-a.e. }z. (55) Then R_{\mathcal{D}_{t}}(h)=\int\ell(h,z)\rho(z)\,d\mathcal{D}_{f}(z). (56) Thus, \displaystyle|R_{\mathcal{D}_{f}}(h)-R_{\mathcal{D}_{t}}(h)| \displaystyle=\left|\int\ell(h,z)(1-\rho(z))\,d\mathcal{D}_{f}(z)\right| (57) \displaystyle\leq\int|\ell(h,z)|\cdot|1-\rho(z)|\,d\mathcal{D}_{f}(z) (58) \displaystyle\leq\int|1-\rho(z)|\,d\mathcal{D}_{f}(z)=\|\mathcal{D}_{f}-\mathcal{D}_{t}\|_{\mathrm{TV}}, (59) where \|\cdot\|_{\mathrm{TV}} is the total variation distance. By Pinsker’s inequality, \|\mathcal{D}_{f}-\mathcal{D}_{t}\|_{\mathrm{TV}}\leq\sqrt{\frac{1}{2}D_{\mathrm{KL}}(\mathcal{D}_{t}\|\mathcal{D}_{f})}. (60) Since D_{\mathrm{KL}}(\mathcal{D}_{t}\|\mathcal{D}_{f})\leq D_{\infty}(\mathcal{D}_{t}\|\mathcal{D}_{f}) , it follows that |R_{\mathcal{D}_{f}}(h)-R_{\mathcal{D}_{t}}(h)|\leq\sqrt{\frac{1}{2}D_{\infty}(\mathcal{D}_{t}\|\mathcal{D}_{f})}. (61) Taking expectation over h\sim\mathcal{Q} yields |R_{\mathcal{D}_{f}}(\mathcal{Q})-R_{\mathcal{D}_{t}}(\mathcal{Q})|\leq\sqrt{\frac{1}{2}D_{\infty}(\mathcal{D}_{t}\|\mathcal{D}_{f})}. (62) Combining both bounds gives R_{\mathcal{D}_{f}}(\mathcal{Q})\leq R_{S}(\mathcal{Q})+\sqrt{\frac{2}{m}\left(\chi^{2}(\mathcal{Q}\|\mathcal{P})+1\right)\log\left(\frac{1}{\delta}\right)}+\sqrt{\frac{1}{2}D_{\infty}(\mathcal{D}_{t}\|\mathcal{D}_{f})}, (63) which completes the proof. ∎ C.3 Proof of Lemma 3.3 Lemma C.6 . For the embedded \mu^{(k)}_{f},\mu^{(k)}_{v},\mu^{(k)}_{t} , the optimization problem ( 8 ) is equivalent to the following convex quadratic programming problem: \min_{0\leq\alpha\leq 1}\,\,\alpha^{2}\|\mu^{(k)}_{v}-\mu^{(k)}_{t}\|^{2}_{\mathcal{H}}-2\alpha\langle\mu_{f}^{(k)}-\mu_{t}^{(k)},\mu_{v}^{(k)}-\mu_{t}^{(k)}\rangle_{\mathcal{H}} (64) This provides an efficient solution path for the optimization problem ( 8 ). Proof. We begin by expanding the squared Hilbert space norm in the objective of problem ( 8 ). Recall that for any a,b\in\mathcal{H} , we have \|a-b\|_{\mathcal{H}}^{2}=\langle a-b,a-b\rangle_{\mathcal{H}} . Applying this to the objective function: \displaystyle\|\mu^{(k)}_{f}-\alpha\mu^{(k)}_{v}-(1-\alpha)\mu^{(k)}_{t}\|_{\mathcal{H}}^{2} \displaystyle=\big\langle\mu^{(k)}_{f}-\alpha\mu^{(k)}_{v}-(1-\alpha)\mu^{(k)}_{t},\,\mu^{(k)}_{f}-\alpha\mu^{(k)}_{v}-(1-\alpha)\mu^{(k)}_{t}\big\rangle_{\mathcal{H}}. We simplify the expression inside the inner product. Observe that: \alpha\mu^{(k)}_{v}+(1-\alpha)\mu^{(k)}_{t}=\mu^{(k)}_{t}+\alpha(\mu^{(k)}_{v}-\mu^{(k)}_{t}). (65) Therefore, \mu^{(k)}_{f}-\alpha\mu^{(k)}_{v}-(1-\alpha)\mu^{(k)}_{t}=(\mu^{(k)}_{f}-\mu^{(k)}_{t})-\alpha(\mu^{(k)}_{v}-\mu^{(k)}_{t}). (66) Let us denote: A:=\mu^{(k)}_{f}-\mu^{(k)}_{t},\quad B:=\mu^{(k)}_{v}-\mu^{(k)}_{t}. (67) Then the objective becomes: \|A-\alpha B\|_{\mathcal{H}}^{2}=\langle A-\alpha B,A-\alpha B\rangle_{\mathcal{H}}. (68) Expanding the inner product using bilinearity and symmetry: \displaystyle\|A-\alpha B\|_{\mathcal{H}}^{2} \displaystyle=\langle A,A\rangle_{\mathcal{H}}-2\alpha\langle A,B\rangle_{\mathcal{H}}+\alpha^{2}\langle B,B\rangle_{\mathcal{H}} \displaystyle=\|A\|_{\mathcal{H}}^{2}-2\alpha\langle A,B\rangle_{\mathcal{H}}+\alpha^{2}\|B\|_{\mathcal{H}}^{2}. Since \|A\|_{\mathcal{H}}^{2} is independent of \alpha , it does not affect the minimizer of the optimization problem over \alpha\in[0,1] . Therefore, minimizing the original objective is equivalent to minimizing the function: \alpha^{2}\|B\|_{\mathcal{H}}^{2}-2\alpha\langle A,B\rangle_{\mathcal{H}}. (69) Substituting back the definitions of A and B , we obtain: \alpha^{2}\|\mu^{(k)}_{v}-\mu^{(k)}_{t}\|_{\mathcal{H}}^{2}-2\alpha\langle\mu^{(k)}_{f}-\mu^{(k)}_{t},\,\mu^{(k)}_{v}-\mu^{(k)}_{t}\rangle_{\mathcal{H}}, (70) which is precisely the objective in equation ( 9 ). Finally, note that the objective in ( 9 ) is a quadratic function in \alpha with a non-negative leading coefficient \|\mu^{(k)}_{v}-\mu^{(k)}_{t}\|_{\mathcal{H}}^{2}\geq 0 . Hence, it is convex in \alpha , and the constraint 0\leq\alpha\leq 1 defines a compact convex set. Therefore, problem ( 9 ) is a convex quadratic programming problem, which admits a unique global minimizer that can be efficiently computed. This completes the proof. ∎ Appendix D Theoretical Elaboration on SMIA-M and MMD In this section, we elucidate the motivation behind SMIA-M. In traditional statistical inference and optimization problems, the similarity between two random variables or feature distributions is often measured by matching the first moment (mean) or the second moment (covariance matrix) of the samples. For instance, in the SMIA- \Sigma method, the objective is to align the empirical covariance \widehat{\Sigma}_{f} of the auditing features f(\cdot;w) with the target covariance \Sigma^{\ast} . However, relying solely on low-order moments presents significant limitations: • Low-order moments fail to characterize high-order structures of the distribution (such as skewness, kurtosis, and multimodality). • In high-dimensional spaces, the estimation of covariance matrices is susceptible to noise and small sample sizes, leading to the "curse of dimensionality". • If the true distribution is non-Gaussian, matching only the first two moments may completely overlook critical differences. To overcome these issues, modern approaches tend to directly measure the distance between entire probability distributions rather than just their moments. Among these, the Maximum Mean Discrepancy (MMD) serves as a non-parametric distribution metric with a solid theoretical foundation and computational feasibility. Let \mathcal{X}\subseteq\mathbb{R}^{d} be a non-empty set (typically a subset of Euclidean space), and let \mathbb{P} and \mathbb{Q} be two Borel probability measures defined on \mathcal{X} . Let k:\mathcal{X}\times\mathcal{X}\to\mathbb{R} be a Mercer kernel function , which satisfies the following conditions: 1. Symmetry: k(x,x^{\prime})=k(x^{\prime},x) for all x,x^{\prime}\in\mathcal{X} ; 2. Positive Definiteness: For any finite set of points \{x_{1},\dots,x_{n}\}\subset\mathcal{X} and any real coefficients \{a_{i}\}_{i=1}^{n}\subset\mathbb{R} , the following holds: \sum_{i=1}^{n}\sum_{j=1}^{n}a_{i}a_{j}k(x_{i},x_{j})\geq 0. According to Mercer’s theorem, there exists a unique Reproducing Kernel Hilbert Space (RKHS) \mathcal{H}_{k} , where the inner product \langle\cdot,\cdot\rangle_{\mathcal{H}_{k}} satisfies the reproducing property : \langle f,k(x,\cdot)\rangle_{\mathcal{H}_{k}}=f(x),\quad\forall f\in\mathcal{H}_{k},\,x\in\mathcal{X}. Furthermore, the RKHS \mathcal{H}_{k} can be constructed via a feature map \phi:\mathcal{X}\to\mathcal{H}_{k} , such that k(x,x^{\prime})=\langle\phi(x),\phi(x^{\prime})\rangle_{\mathcal{H}_{k}} . This mapping embeds the input space into a (potentially infinite-dimensional) Hilbert space. Given a probability measure \mathbb{P} , its kernel mean embedding in the RKHS \mathcal{H}_{k} is defined as the Bochner integral: \mu_{\mathbb{P}}^{(k)}:=\mathbb{E}_{x\sim\mathbb{P}}[\phi(x)]=\int_{\mathcal{X}}\phi(x)\,d\mathbb{P}(x)\in\mathcal{H}_{k}, provided that this expectation exists in \mathcal{H}_{k} (e.g., this holds when \mathbb{E}_{x\sim\mathbb{P}}[\sqrt{k(x,x)}]<\infty ). This embedding compresses the entire distribution \mathbb{P} into a single vector within the RKHS, thereby transforming the problem of distribution comparison into a geometric problem within a Hilbert space. The Maximum Mean Discrepancy (MMD) is defined as the Hilbert norm distance between the embeddings of the two distributions: \mathrm{MMD}_{k}(\mathcal{P},\mathcal{Q}):=\left\|\mu_{\mathcal{P}}^{(k)}-\mu_{\mathcal{Q}}^{(k)}\right\|_{\mathcal{H}_{k}}. (71) Utilizing the reproducing property of the RKHS and the linearity of the inner product, the square of MMD can be expanded into a form dependent solely on the expectation of the kernel function: \displaystyle\mathrm{MMD}_{k}^{2}(\mathcal{P},\mathcal{Q}) \displaystyle=\left\langle\mu_{\mathcal{P}}^{(k)}-\mu_{\mathcal{Q}}^{(k)},\mu_{\mathcal{P}}^{(k)}-\mu_{\mathcal{Q}}^{(k)}\right\rangle_{\mathcal{H}_{k}} \displaystyle=\mathcal{E}_{x,x^{\prime}\sim\mathcal{P}}[k(x,x^{\prime})]+\mathcal{E}_{y,y^{\prime}\sim\mathcal{Q}}[k(y,y^{\prime})]-2\mathcal{E}_{x\sim\mathcal{P},\,y\sim\mathcal{Q}}[k(x,y)]. (72) This expression demonstrates that MMD relies only on pairwise kernel values between samples, without the need to explicitly compute high-dimensional feature maps. It is worth noting that whether MMD constitutes a valid metric depends on the properties of the kernel function k . If k is a characteristic kernel , satisfying \mathrm{MMD}_{k}(\mathcal{P},\mathcal{Q})=0\iff\mathcal{P}=\mathcal{Q}, then MMD induces a metric on the space of probability measures. Sufficient conditions include: k is continuous, bounded, and the corresponding RKHS \mathcal{H}_{k} is dense in \mathcal{X} (e.g., the Gaussian RBF kernel satisfies this property on compact sets). D.1 Empirical Estimation In practical applications, assuming we only have independent and identically distributed (i.i.d.) samples \{x_{i}\}_{i=1}^{n} from \mathcal{P} and samples \{y_{j}\}_{j=1}^{m} from \mathcal{Q} , MMD can be estimated via empirical mean embeddings. Define the empirical embeddings: \hat{\mu}_{\mathcal{P}}^{(k)}=\frac{1}{n}\sum_{i=1}^{n}\phi(x_{i}),\quad\hat{\mu}_{\mathcal{Q}}^{(k)}=\frac{1}{m}\sum_{j=1}^{m}\phi(y_{j}). The biased estimator is given by: \widehat{\mathrm{MMD}}_{k,\text{biased}}^{2}=\left\|\hat{\mu}_{\mathcal{P}}^{(k)}-\hat{\mu}_{\mathcal{Q}}^{(k)}\right\|_{\mathcal{H}_{k}}^{2}=\frac{1}{n^{2}}\sum_{i=1}^{n}\sum_{j=1}^{n}k(x_{i},x_{j})+\frac{1}{m^{2}}\sum_{i=1}^{m}\sum_{j=1}^{m}k(y_{i},y_{j})-\frac{2}{nm}\sum_{i=1}^{n}\sum_{j=1}^{m}k(x_{i},y_{j}). (73) This estimator possesses a systematic bias under finite samples but is consistent (i.e., it converges in probability to the true MMD as n,m\to\infty ). To eliminate the bias from auto-correlation terms, an unbiased estimator can be adopted: \displaystyle\widehat{\mathrm{MMD}}_{k,\text{unbiased}}^{2} \displaystyle=\frac{1}{n(n-1)}\sum_{i\neq j}k(x_{i},x_{j})+\frac{1}{m(m-1)}\sum_{i\neq j}k(y_{i},y_{j})-\frac{2}{nm}\sum_{i=1}^{n}\sum_{j=1}^{m}k(x_{i},y_{j}), (74) where the first and second terms exclude the diagonal entries where i=j . This estimator is unbiased when n,m\geq 2 , although it may exhibit larger variance with small sample sizes. D.2 Common Kernel Functions and Their Properties The discriminative power and statistical power of MMD depend heavily on the selection of the kernel function k . Below are two widely used categories of kernel functions and their theoretical characteristics: • Gaussian Radial Basis Function Kernel (RBF kernel / Gaussian kernel): k_{\text{RBF}}(x,x^{\prime})=\exp\left(-\frac{\|x-x^{\prime}\|^{2}}{2\sigma^{2}}\right), where \sigma>0 is the bandwidth parameter. This kernel possesses the following important properties: Continuous and bounded ( 00 is the bandwidth parameter, controlling the local sensitivity of the kernel. This kernel satisfies Mercer’s condition and is a characteristic kernel , guaranteeing \mathrm{MMD}_{k}(\mathbb{P},\mathbb{Q})=0\iff\mathbb{P}=\mathbb{Q} . Calculation involves first computing the squared Euclidean distance \|x-x^{\prime}\|^{2}=\sum_{i=1}^{d}(x_{i}-x^{\prime}_{i})^{2} , then substituting it into the exponential function. In practice, the median heuristic is often used to select \sigma : let \{z_{1},\dots,z_{N}\} be the set of distances \|x_{i}-x_{j}\| ( i0 is the scale parameter. Compared to the RBF kernel, the Laplacian kernel is more robust to outliers as it utilizes the L^{1} norm rather than the L^{2} norm. This kernel is also continuous, bounded, and characteristic, making it suitable for sparse or noisy data. Calculation steps: first calculate the sum of absolute differences across dimensions, then divide by \sigma and take the negative exponential. 3. Polynomial Kernel Defined as: k_{\text{poly}}(x,x^{\prime})=(x^{\top}x^{\prime}+c)^{p}, where c\geq 0 is the bias term, and p\in\mathbb{N} is the polynomial degree. This kernel corresponds to an explicit finite-dimensional feature map (e.g., when p=2 , it includes all cross-terms x_{i}x_{j} ). Calculation involves first computing the inner product x^{\top}x^{\prime} , adding the constant c , and then raising to the power of p . Note: when c=0 and p is even, the kernel may degenerate (e.g., unable to distinguish symmetric distributions); furthermore, this kernel is generally not a characteristic kernel , distinguishing only distributions with different moments up to order p . 4. Rational Quadratic Kernel Defined as: k_{\text{RQ}}(x,x^{\prime})=\left(1+\frac{\|x-x^{\prime}\|^{2}}{2\alpha\sigma^{2}}\right)^{-\alpha}, where \sigma>0 is the length scale, and \alpha>0 controls the "tail" behavior of the kernel. As \alpha\to\infty , this kernel converges to the Gaussian RBF kernel; for smaller \alpha , the kernel has a longer correlation range, capable of capturing multi-scale structures. It is a characteristic kernel, suitable for scenarios where data exhibits multi-scale variations. Calculation steps: first calculate \|x-x^{\prime}\|^{2} , substitute into the formula, and compute the power. Since it is equivalent to a weighted average of infinite RBF kernels with different bandwidths, it is often used to enhance the robustness of MMD regarding bandwidth selection. All the above kernel functions can be directly used for empirical estimation of MMD (e.g., \widehat{\mathrm{MMD}}_{k}^{2} ) by simply substituting the sample pairs (x_{i},x_{j}) , (y_{i},y_{j}) , and (x_{i},y_{j}) into the corresponding kernel function. In practical applications, it is recommended to prioritize the Gaussian RBF or Rational Quadratic kernels to ensure the discriminative capability of MMD. If the data possesses a clear algebraic structure (such as TF-IDF vectors for text), the Polynomial kernel may be attempted; if significant outliers are present, the Laplacian kernel may prove more robust.