Skip to Content
MathematicsMathematics
  • Article
  • Open Access

9 April 2026

16 Pages

DSAK: Distillation of Self-Adaptive Knowledge for Membership Privacy Protection

,
,
and
1
School of Business, Huanghe Science and Technology University, Zhengzhou 450062, China
2
School of Computer Science and Engineering, South China University of Technology, Guangzhou 510006, China
*
Authors to whom correspondence should be addressed.

Abstract

The utilization of machine learning models is extensive in a wide array of significant applications. However, their vulnerability to security and privacy attacks is a serious concern, for example, for the protection of financially sensitive data such as account flow. Particularly troubling is the threat of membership inference, which enables attackers to determine whether a given data sample is included in the training set of a targeted machine-learning model. Existing knowledge distillation techniques have shown promise in balancing model performance with data privacy. However, achieving superior privacy during the training process of the target model is challenging due to the teacher model’s performance limitations and the scarcity of unlabeled benchmark data. To address this issue, we propose a novel framework called Distillation of Self-Adaptive Knowledge (DSAK). DSAK utilizes self-duplicated teacher and noise-generative models to introduce specialized self-adaptive noise for privacy training in the target model. By incorporating new data features derived from this noise, DSAK improves model performance and reduces the risk of memorizing member data. Experimental results demonstrate DSAK’s effectiveness in defending against existing attack schemes across multiple datasets while surpassing other membership inference defense schemes in terms of efficiency.

1. Introduction

In recent years, significant progress has been made in developing machine learning (ML) models. These models have demonstrated impressive performance across a range of domains, including image recognition [1], speech recognition [2,3], natural language processing [4], music understanding [5], blockchain [6], and cryptocurrency transactions [7]. This trend has spurred heightened interest in the utilization of ML in real-world scenarios [8,9]. Despite advances in ML algorithms, effectively training them often requires large datasets, which may contain sensitive information from domains such as finance and healthcare. This necessitates handling data with the utmost discretion. As a result, concerns have been raised about the ability of ML algorithms to ensure robust privacy protection in such situations [10]. Unfortunately, recent studies [11,12] indicate that ML models are vulnerable to privacy breaches. These models can inadvertently reveal or retain sensitive information during training, making them susceptible to various privacy attacks such as dataset reconstruction [13], attribute inference [14], and membership inference attacks [15]. Membership inference attacks (MIAs) have drawn significant attention due to their ability to determine whether a specific data sample was included in the victim model’s training data. MIAs exploit various characteristics, including output confidence [16], prediction loss [17], prediction entropy [18,19], and data robustness [20,21], to make precise inferences about the membership status of a data sample. In black-box ML service scenarios, the ease with which attackers can obtain these model properties makes an MIA a significant threat to the privacy of sensitive data with minimal effort [22].
To prevent the unauthorized leakage of private data by ML services, research in ML privacy protection focuses on developing effective defenses against MIAs. The core of existing defensive strategies involves altering the output of ML models to make it difficult for adversaries to differentiate between sensitive and non-sensitive data. These methods can be pursued in two distinct directions: (1) Influencing the training process of the model through techniques such as differential privacy [23,24], relaxed training [25], adversarial regularization [26], and knowledge distillation [27,28]. (2) Influencing the inference process of the model, for instance, through confidence score masking [29]. These methods aim to adjust the model’s output or operational characteristics during the inference phase to enhance privacy safeguards. Nevertheless, the effectiveness of these defense mechanisms is limited by the challenge of achieving a sufficient balance between privacy and practicality. Moreover, these methods may not be adequate to protect against all forms of attacks.
Our work proposes a cutting-edge framework for the protection against MIAs, named Distillation of Self-Adaptive Knowledge (DSAK). It is an effective combination of knowledge distillation and generative networks. The majority of contemporary cutting-edge knowledge distillation methods leverage teacher models to filter confidential training data, enabling the training of secure target models without the necessity for manual labeling [22]. These methods reduce the vulnerability to MIAs by restricting the target model’s capacity to retain excessive details from the training data. Nonetheless, they often necessitate additional training datasets [30] or may not achieve the desired performance levels in unprotected environments [31], as the teacher model can act as a bottleneck in the distillation process and fail to supply the student model with extra descriptive insights. Diverging from existing knowledge distillation methods, DSAK introduces several key innovations to address the limitations of privacy leakage and performance degradation: (a) self-adaptive noise generation, which leverages a noise-generative model to perturb private training data, thereby mitigating membership inference risks while eliminating the reliance on additional datasets and enhancing data diversity; (b) dynamic teacher updating, which employs a parameter-passing mechanism to continuously optimize the teacher model, overcoming the fixed-teacher bottleneck and improving knowledge transfer efficiency; and (c) joint privacy-utility optimization, which integrates adaptive data perturbation with co-evolving teacher–student learning to break the traditional trade-off between privacy protection and model performance. The distinct differences between DSAK and prior methods are illustrated in Figure 1. This paper’s principal contributions are delineated in the following points:
  • We put forward a defense mechanism aimed at thwarting black-box membership inference attacks, called Distillation of Self-Adaptive Knowledge (DSAK), which innovatively introduces noise generative models that enable the high-quality privacy training of machine learning models without introducing additional data.
  • We introduce a special type of data noise, called self-adaptive noise, which can provide additional data features to the training process of the machine learning model and circumvent its excessive memory of the membership data.
  • We perform a detailed examination of DSAK to evidence its contemporary balance of data privacy with model correctness. For example, when considering an increased level of membership privacy, DSAK achieves significantly higher classification task accuracies, ranging from 30% to 65.3%, compared to state-of-the-art defense mechanisms across various classification tasks.
Figure 1. The specific variations that mark the contrast between DSAK and previous methodologies in knowledge distillation [30].

3. Preliminaries

This section offers an overview of the terminology and preliminary knowledge essential for describing this paper. Various terminologies are detailed in Table 1.
Table 1. DSAK notations [28].

3.1. Membership Data and Membership Inference Attack

The data pairs ( x , y ) used to train the machine learning model are referred to as membership data, and the set of these data samples is defined as the membership dataset: D = { ( x i , y i ) } i = 1 N . In addition, data pairs ( x , y ) that are not used in the training process are referred to as non-membership data and form the non-membership dataset D = { ( x i , y i ) } i = 1 N . Where N represents the total number of data samples. Due to the privacy properties specific to membership data, MIAs are devoted to determining whether a given data sample, x or x , belongs to the membership dataset D or the non-membership dataset D .

3.2. Machine Learning Classification

The central objective of this research is to devise a protective strategy for machine learning models deployed in scenarios involving supervised learning and classification tasks. In the context of our analysis, we denote these models as f. The objective of f is to learn a parameter vector θ representing a mapping from input x to output y. f generates a C-dimensional vector output, where each dimension represents the probability of the input belonging to a specific class.

3.3. Machine Learning Generativation

The noise generation model used in this study is a component of machine learning generation, a technique in which a machine learning model learns from existing data to generate novel output. In the context of our analysis, we denote these models as g.
In our research, the goal of function g is to acquire a set of parameters η that define the transformation from input data x to the resultant n, which represents the self-adaptive noise generated based on the features of this input sample. Notably, the variables n and x are deliberately designed to possess identical data dimensions, facilitating seamless data-superimposed operations.

4. Our New Method

This research introduces a novel training framework, DSAK, aimed at providing an advanced privacy training approach to mitigate the risk of membership inference for the target class classifier model. The mechanism of DSAK is visually represented in Figure 2 and Algorithm 1. It initiates with a pre-training phase, PTG, and continues with three phases of knowledge distillation: TTM, TSG, and SKD. For clarity, the input data samples for all models discussed in this section are symbolized by x, while their accurate labels are symbolized by y.
Algorithm 1 Distillation of Self-Adaptive Knowledge
Input:
Dataset D
Parameter:
Training epochs E, PTG training epochs E p r e , TTM parameter transfer epochs E t , learning rates l f , l t , l g , weighting parameters α , β , λ
Output:
Optimum model f ( θ )
  1:
Initialize model f ( θ ) ;
  2:
Initialize model t ( δ ) ;
  3:
Initialize model g ( η ) ;
  4:
for  e p o c h in {1,…, E p r e } do
  5:
   for i in {1,…, K} do
  6:
     Get sample batch { ( x i , y i ) } i = 1 B
  7:
     Compute pre-training loss l p t g ( η ) of g
  8:
            l p t g ( η ) = 1 B i = 1 B l p t g ( g , x i )
  9:
     Update parameter η
10:
            η η + l g · l p t g ( η )
11:
   end for
12:
end for
13:
for  e p o c h in {1,…, E} do
14:
   for i in {1,…, K} do
15:
     Get sample batch { ( x i , y i ) } i = 1 B
16:
     Compute distillation training loss l t t m ( δ ) of t
17:
            l t t m ( δ ) = 1 B i = 1 B l t t m ( t , x i , y i )
18:
     Update parameter δ
19:
            δ δ + l t · l t t m ( δ )
20:
     Compute distillation training loss l t s g ( η ) of g
21:
            l t s g ( η ) = 1 B i = 1 B l t s g ( g , t , x i , y i )
22:
     Update parameter η
23:
            η η + l g · l t s g ( η )
24:
     Compute distillation training loss l s k d ( θ ) of f
25:
            l s k d ( θ ) = 1 B i = 1 B l s k d ( f , g , t , x i , y i )
26:
     Update parameter θ
27:
            θ θ + l g · l s k d ( θ )
28:
   end for
29:
   if  e p o c h % E t == 0 then
30:
      δ θ
31:
   end if
32:
end for
Figure 2. The illustration of DSAK.

4.1. Pre-Training of Self-Adaptive Noise Generation Model

The primary objective of the Pre-Training of Self-Adaptive Noise Generation Model (PTG) phase is to reduce the variability in the noise generation process and minimize its potential impact on the classifier model f at the outset of knowledge distillation training.
To facilitate this, PTG pre-trains the self-adaptive noise-generative model, denoted as g, for E p r e epochs before initiating the knowledge distillation training of DSAK. This training aims to minimize the generation noise, such that the data samples superimposed with noise could be converged to their original samples. Inspired by Arcface [45], this phase adopts the application of cosine similarity to quantify the similarity values between the two data samples, as illustrated in Equation (1).
l p t g ( g , x ) = x D ( g ( x ) + x ) · x ( g ( x ) + x ) 2 · x 2 .

4.2. Training of Teacher Model

The intent behind the Training of Teacher Model (TTM) phase is to train a teacher model t to guide the training of the target classifier model f and the self-adaptive noise-generative model g. Given that the primary role of the teacher model is to provide training guidance for the other models in the system, its training is solely constrained by the loss of the classification task, as defined in Equation (2).
l t t m ( t , x , y ) = x , y D t ( x ) · log ( y ) .
Notably, if the teacher model t is trained solely on private training data samples, it would hinder the effectiveness of training guidance if overfitting occurs. To mitigate this situation, during the knowledge extraction training of DSAK, the teacher model t parameters are substituted with the target classifier model f parameters at regular intervals of E t . This substitution is achieved by applying the Exponential Moving Average (EMA) [46] technique. In cases where the model consists solely of linear layers, a complete replacement of parameters is performed instead.

4.3. Training of Self-Adaptive Noise-Generative Model

The primary objective of the Training of Self-Adaptive Noise-Generative Model (TSG) phase is to train the generative model g for generating a special kind of data noise, which is denoted as self-adaptive noise, guided by the teacher model t. The self-adaptive noise aligns the superimposed noisy data samples with key features of the private training data samples while maximizing distance with non-key features. The former purpose seeks to minimize Equation (3), while the latter seeks to minimize Equation (4).
l t s g f ( g , t , x , y ) = x , y D t ( g ( x ) + x ) · l o g ( y ) .
l t s g l ( g , x ) = x D l o g ( ( g ( x ) + x ) · x ( g ( x ) + x ) 2 · x 2 ) .
The DSAK framework utilizes the aforementioned superimposed noise data samples to train the classifier model f, thereby mitigating the issue of overfitting at the data level. Ultimately, the TSG phase seeks to minimize Equation (5).
l t s g ( g , t , x , y ) = α · l t s g f ( g , t , x , y ) + β · l t s g l ( g , x ) ,
where α and β represent the weights of branch losses l t s g f and l t s g l in the total loss l t s g of the TSG phase.

4.4. Self-Knowledge Distillation

The Self-Knowledge Distillation (SKD) serves as the concluding phase in DSAK training, with its primary objective being the thorough distillation of distant self-knowledge from the classifier model f. This process is facilitated by collaborating the teacher model t and the noise-generative model g. In this phase, the target classifier model f is trained using the self-adaptive noise overlay data, the visualization of which is presented in Figure 3. The TSG phase seeks to minimize Equation (6).
l s k d ( f , g , t , x , y ) = x , y D f ( g ( x ) + x ) · l o g ( t ( x ) ) + λ · f ( x ) · l o g ( t ( x ) ) ,
where λ represents the probability of participating in the training utilizing private training data samples directly in the training of the SKD phase.
Figure 3. Visualization of CIFAR100 data samples with superimposed self-adaptive noise.

4.5. Datasets

Our research undertakes the classification challenge across three distinct datasets, specifically starting with the principal benchmark dataset widely recognized in the field of machine learning, CIFAR100 [47]. In addition, we incorporate two supplementary validation datasets: Texas100 and Purchase100. Notably, these ancillary datasets are streamlined adaptations made available by the original authors [16] and were initially used to conduct the pioneering membership inference assaults on ML models.
CIFAR100. This dataset is a widely acknowledged benchmark for testing the effectiveness of image recognition software. It consists of a comprehensive set of 60,000 images, each sized at 32 × 32 pixels. The images are divided into 100 separate classes, with each class representing a specific object type.
Texas100. This dataset comprises hospital discharge records, featuring in-depth inpatient data from a multitude of medical centers, as disclosed by the Texas Department of State Health Services. It includes comprehensive details on injury causation, diagnoses, patient behaviors, and general demographics, including sex, age, race, hospital identification number, and stay duration. With 67,330 records and 6170 binary indicators for the 100 most frequent medical operations, the dataset segments the records into 100 classes, each indicative of a specific patient profile.
Purchase100. This dataset is based on Kaggle’s “Get Valuable Shoppers” challenge. The dataset includes the shopping records of several thousand people. The challenge aims to find discounts to attract new shoppers to buy new products. The dataset contains 197,324 data records. Each data record corresponds to one customer and has 600 binary features (each corresponding to one item). Each feature reflects whether the item was purchased by the customer or not. The data are aggregated into 100 classes, and the task is to predict the category of each customer.

Dataset Partition

The datasets under consideration are partitioned according to the prescribed format laid out in Table 2. The confidential data are divided into two subsets, denoted as D and D , whereas the adversarial data, simulated by a hypothetical attacker, are allocated as D A and D A . It should be noted that the datasets are entirely disjoint. While dataset D has been deployed for training the victim classification model f, D A has been earmarked for training the shadow models of MIA. During the validation of the classification performance metrics, the efficacy of the defense model on dataset D serves as the preferred performance metric. Simultaneously, the probability of D successfully being inferred is leveraged to evaluate the privacy risk of the defense model.
Table 2. The setup includes the number of data samples used in the experiment. The privacy data comprises datasets D and D , while the shadow data consists of datasets D A and D A . D is utilized to train the target classifier models, whereas D A is used to train the shadow models. D is regarded as non-membership data in the privacy data, and D A is considered non-membership data in the shadow data.

5. Experimental Design and Implementation

We conducted experiments to validate our method and explain the design in this section.

5.1. Models

To ensure an impartial evaluation of the effectiveness of various defense mechanisms, we have implemented separate baseline classifier models for each of the datasets considered, which are AlexNet [48] and DenseNet [49] for the CIFAR100 dataset, 4-layer fully connected neural network (NN Net) for the Texas100 dataset, and 3-layer NN Net for the Purchase100 dataset. Moreover, the RenseNet [50] and 4-layer NN Net are employed as the self-adaptive noise-generative model of DSAK in the image datasets(CIFAR100) and others (Texas100, Purchase100).

5.2. Attack Methods

The following is a concise overview of the four distinct membership inference attack techniques employed for our validation process:
Attack 1 ( I c o r r ): Stolen memories [51] developed a MIA technique that hinges on predictive accuracy. If the target model does not generalize well, it can correctly predict the training data but make incorrect predictions on the test data. This method can easily infer the membership of a sample, deciding if it is a member or non-member, by evaluating the model’s predictive success on the input sample.
Attack 2 ( I c o n f ): Liwei Song et al. [19] introduced an approach that employs distinct thresholds for various categories, aiming to enhance the success rate of MIA. The researchers propose the hypothesis that class imbalance within the dataset could lead to varying degrees of model confidence across different classes. Membership is inferred if the sample’s prediction confidence exceeds a predetermined threshold, while it is deemed a non-member if it falls below.
Attack 3 ( I e n t r ): In their research, Liwei Song et al. [19] introduced an MIA that relies on predicted entropy, akin to the attack based on confidence scores. A data sample is deemed a member if its predicted entropy falls below an established threshold; conversely, it is classified as a non-member if the entropy surpasses this threshold.
Attack 4 ( I m e n t r ): In their research, Liwei Song et al. [19] found that directly using the predicted entropy is flawed, thus, devised a method for calculating the predicted entropy correction that considers the actual class labels.
Attack 5 ( I l i r a ): Carlini et al. [52] proposed a likelihood ratio-based membership inference attack, which estimates the likelihood difference between member and non-member samples by modeling their output distributions. This method provides a more powerful inference capability than traditional threshold-based attacks.

5.3. Settings of DSAK

DSAK sets different parameters for different data forms in pursuit of excellent training results. Table 3 shows the recommended parameter settings.
Table 3. Parameter settings for DSAK.

5.4. Methods of Comparison

To verify the effectiveness and sophistication of DSAK, we display an experimental comparison against a spectrum of current best-in-class defense approaches for MIA protection, analyzing different viewpoints, which are, in detail, as follows.

5.4.1. Noise-Based Methods

This series of defense methods focuses on privacy training by adding noise to the model’s training process. We select the following methods for comparison: (i) Differentially Private Stochastic Gradient Descent (DP-SGD) [35]: It employs a combination of stochastic gradient descent and differential privacy techniques to ensure the privacy of sensitive data during the training process. DP-SGD introduces controlled random noise into gradient updates, which prevents the leakage of individual data samples while preserving the utility and accuracy of the trained model. (ii) MemGuard [37]: It incorporates randomness into the certainty metrics generated by the target model, while keeping the assigned labels for the input data unchanged.

5.4.2. Suppressing Overfitting Methods

This series of defense methods mainly aims to prevent overfitting in the target model through specific training techniques, ultimately achieving effective defense against attacks. We select the following methods for comparison: (i) Adversarial Regularization (AdvReg) [53]: It integrates adversarial examples into the training process, forcing the model to learn more generalized and robust representations to fortify the models against adversarial attacks. (ii) Relax Loss [25]: It introduces a relaxation parameter that allows the model to learn from both correct and incorrect predictions within a certain margin, avoiding overfitting predictions.

5.4.3. Methods in Knowledge Distillation

To conduct an effective comparison with existing state-of-the-art knowledge distillation techniques, we selected Distillation for Membership Privacy (DMP) [30] as the comparison method. DMP involves introducing a teacher model for the unlabeled training of the target model. This allows the target model to perform well without direct exposure to samples from the membership dataset. Notably, to achieve a fair comparison of defense effectiveness and to simulate the actual ML service environment as much as possible, an additional equal amount of unlabeled data will not be introduced for DMP execution in this validation as in DMP [30], but instead the labels of the membership dataset D are removed and used to achieve the unlabeled training of the target model after the teacher model training is completed.

6. Results and Discussion

6.1. Privacy Training Effectiveness of DSAK

Table 4 presents the performance and membership inference risk analysis results of the classifier model before and after the implementation of DSAK. The application of DSAK yields a significant reduction in the risk of privacy loss, as evidenced by a notable decrease in attack accuracy in multiple MIA across various datasets, resulting in an accuracy level of nearly 50%, which is equivalent to random guessing. Furthermore, the integration of DSAK exerts only a slight negative impact on the model’s operational effectiveness. In fact, it enhances the classification accuracy of DSAK, especially within the CIFAR100 and Texa100 classification tasks. These observations validate the superior performance and privacy-safeguarding attributes of DSAK as a protective measure.
Table 4. This analysis compares the training and testing accuracy rates, along with the variations in membership inference risk, for models both incorporating and excluding the DSAK. The table presents all accuracy percentages, with the DSAK’s performance metrics distinctively indicated in gray. Among them, ↑ indicates that a higher value of this metric is better (and ↓ indicates the opposite). Additionally, we have highlighted the best accuracy achieved in the classification task in blue, and the reduction in membership inference attack success post-defense in green.
Compared with existing defense mechanisms, this improvement can be attributed to the integration of self-adaptive noise generation and parameter transfer in DSAK. Specifically, the noise-generative model produces sample-wise adaptive perturbations, which effectively obscure membership-related signals while preserving essential semantic information. Meanwhile, the parameter transfer mechanism enables the joint optimization of the teacher and target models during training, mitigating overfitting and preventing the teacher from becoming a static bottleneck. The combination of these two components reduces the distinguishability between member and non-member samples while maintaining effective knowledge transfer, thereby enhancing resistance to membership inference attacks.

6.2. Comparative Analysis of the Noise-Based Methods

The comparison in Table 5 positions DSAK against noise-based defense strategies, DP-SGD, and MemGuard. DP-SGD’s analysis is restricted to the CIFAR100 classification challenge with AlexNet, in accordance with differential privacy theory [35]. DP-SGD is adept at countering MIA, reducing their accuracy to approximately 50%, but this reduction comes at the expense of the target model’s classification precision. In contrast, MemGuard preserves classification accuracy and is highly effective against confidence-based MIA. However, it encounters difficulties with attacks based on the model’s output labels. Comparatively, DSAK substantially lowers the success rate of MIA across all assessed metrics while either maintaining or augmenting classification performance. These observations validate DSAK’s superior proficiency in balancing the dual objectives of membership inference defense and classification task accuracy.
Table 5. Analysis of the defensive capabilities under various data conditions and against a range of attacks. All accuracy values presented in this table are in percentage form. Among them, ↑ indicates that a higher value of this metric is better (and ↓ indicates the opposite). The protective efficacy of our approach serves as a reference point, distinctively marked in gray. Concurrently, T e s t + denotes the proportional enhancement in T e s t accuracy for DSAK relative to other methods, while Avg. illustrates the proportional decrease in Avg. accuracy for DSAK in comparison to them. Improvements are accentuated with green, whereas decrements are indicated with red.

6.3. Comparative Analysis of the Suppressing Overfitting Methods

Table 5 compares DSAK with defenses based on suppressing overfitting, namely, AdvReg and Relax Loss. Both AdvReg and Relax Loss effectively reduce the risk of MIAs by mitigating overfitting, but they also result in noticeable declines in classification task accuracy compared to the original model. AdvReg defense can reduce performance by 12.9% (DenseNet in CIFAR100), while Relax Loss defense reduces performance by 3.4% (NN Net in Purchase100). AdvReg defense may rely too much on the attack model, leading to a compromised balance between defense effectiveness and classification accuracy. Relax Loss hinders the model from reaching optimal classification accuracy due to its relaxed learning mechanism.
In comparison, DSAK offers a potent defense against MIA and upholds the target model’s classification capabilities, as demonstrated in the T e s t + column within Table 5. Under extreme conditions, DSAK’s classification accuracy outstrips AdvReg by 32.6% and exceeds Relax Loss by 5.1%. Additionally, DSAK shows a commendable resistance to overfitting, evidenced by the gains in training and validation accuracy, demonstrated in Figure 4a,b.
Figure 4. Accuracy variation curve of AlexNet in the CIFAR100 classification task. (a) Precision enhancement trend of target model without DSAK defense. (b) Precision enhancement trend of target model within DSAK defense. (c) Precision enhancement process of teacher model in DSAK. (d) Generalization error trend of teacher and target model with or w/o DSAK.

6.4. Comparative Analysis of the Knowledge Distillation Methods

Table 5 compares DSAK with the knowledge distillation defense method, DMP, which uses no additional data. DMP utilizes teacher models to transmit membership data features, preventing the target model from memorizing unnecessary details and reducing adverse effects on classification accuracy. DMP adeptly maintains data privacy, decreasing the accuracy of MIA to below 60%, while the decline in classification accuracy relative to the unprotected model remains within 5%. DSAK builds upon this by incorporating parameter transfer mechanisms and self-adaptive noise, providing additional benefits. Figure 4c demonstrates that using parameter passing to update the teacher model mitigates teacher model overfitting, enabling more effective training guidance and controlled overfitting during target model training, thus reducing the risk of privacy leakage. Figure 4d shows the training correlation between the teacher and target classifier models through the generalization error trend. Due to these advantages, DSAK consistently outperforms DMP in mitigating MIAs (by at least 4.0% on average compared to DMP) while preserving classification task accuracy more effectively.

7. Conclusions

Our work introduces the Distillation of Self-Adaptive Knowledge (DSAK), a novel training framework that integrates knowledge distillation and data noise generation techniques to mitigate membership inference attacks. DSAK achieves excellent training and privacy preservation efforts by introducing generative models to create adaptive noise in knowledge distillation and parameter transfer from the student to the teacher model. Empirical findings from our evaluation confirm that DSAK is proficient in countering membership inference attacks, exceeding the performance of existing defenses, and securing an advantageous harmony between the utility of the model and the privacy of membership information.

Author Contributions

Q.S.: Conceptualization, Methodology, Investigation, Writing, Review. J.L.: Methodology, Writing, Formal Analysis, Review. X.L.: Methodology, Formal Analysis, Visualization, Review. Y.H.: Conceptualization, Methodology, Review, Supervision and Project Administration. All authors have read and agreed to the published version of the manuscript.

Funding

This paper was funded by the 2024 Major Projects of Research and Practice on Higher Education Teaching Reform in Henan Province under Grant No. 2024SJGLX0013, by the 10th Batch of Key Disciplines in Henan Province (Applied Economics) under Grant No. 0203240009, by the Guangdong Provincial Key Field R&D Program under Grant No. 2024B0101040008, by the Guangzhou Science and Technology Plan Project—Key R&D Plan under Grant No. 2024B01W0007, and by the Guangdong Provincial Science and Technology Program under Grant No. 2025A0505080003.

Data Availability Statement

Data derived from public domain resources. The CIFAR-100 dataset is available at https://www.cs.toronto.edu/~kriz/cifar.html (Ref. [47], accessed on 31 March 2026). The Texas100 dataset is available at https://huggingface.co/datasets/TDDBench/texas100 (Ref. [16], accessed on 31 March 2026). The Purchase100 dataset is available at https://github.com/rbnuria/Purchase100-dataset (Ref. [16], accessed on 31 March 2026). Codet: https://github.com/JeMing-creater/DSAK (accessed on 31 March 2026).

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Wang, R.; Guo, Z.; Pan, W.; Ma, J.; Zhang, Y.; Yang, N.; Liu, Q.; Wei, L.; Zhang, H.; Liu, C.; et al. Pygmtools: A python graph matching toolkit. J. Mach. Learn. Res. 2024, 25, 1–7. [Google Scholar]
  2. Kheddar, H.; Hemis, M.; Himeur, Y. Automatic speech recognition using advanced deep learning approaches: A survey. Inf. Fusion 2024, 104, 102422. [Google Scholar] [CrossRef] [Scilit]
  3. Yang, J.; Shang, F.; Liao, Y.; Chen, Y. Toward High Capacity and Robust JPEG Steganography Based on Adversarial Training. Secur. Commun. Netw. 2023, 2023, 3813977. [Google Scholar] [CrossRef] [Scilit]
  4. Oyewole, A.T.; Adeoye, O.B.; Addy, W.A.; Okoye, C.C.; Ofodile, O.C.; Ugochukwu, C.E. Automating financial reporting with natural language processing: A review and case analysis. World J. Adv. Res. Rev. 2024, 21, 575–589. [Google Scholar] [CrossRef] [Scilit]
  5. Huang, R.; Li, M.; Yang, D.; Shi, J.; Chang, X.; Ye, Z.; Wu, Y.; Hong, Z.; Huang, J.; Liu, J.; et al. Audiogpt: Understanding and generating speech, music, sound, and talking head. In Proceedings of the AAAI Conference on Artificial Intelligence, Vancouver, Canada, 20–27 February 2024; Volume 38, pp. 23802–23804. [Google Scholar]
  6. Li, X.; Zhao, H.; Deng, W. BFOD: Blockchain-based privacy protection and security sharing scheme of flight operation data. IEEE Internet Things J. 2023, 10, 21386–21397. [Google Scholar] [CrossRef] [Scilit]
  7. Chen, S.; Liu, Y.; Zhang, Q.; Shao, Z.; Wang, Z. Multi-Distance Spatial-Temporal Graph Neural Network for Anomaly Detection in Blockchain Transactions. Adv. Intell. Syst. 2025, 7, 2400898. [Google Scholar] [CrossRef] [Scilit]
  8. Li, Z.; Liu, F.; Yang, W.; Peng, S.; Zhou, J. A survey of convolutional neural networks: Analysis, applications, and prospects. IEEE Trans. Neural Netw. Learn. Syst. 2021, 33, 6999–7019. [Google Scholar] [CrossRef] [Scilit]
  9. Wang, M.; Deng, W. Deep face recognition: A survey. Neurocomputing 2021, 429, 215–244. [Google Scholar] [CrossRef] [Scilit]
  10. Ghaleb, B.; Ahmad, J.; Buchanan, W.J.; Jan, S.U.; Tneth, A. Privacy-Preserving Credit Card Approval Using Homomorphic SVM: Toward Secure Inference in FinTech Applications. arXiv 2025, arXiv:2505.05920. [Google Scholar]
  11. Rigaki, M.; Garcia, S. A survey of privacy attacks in machine learning. Acm Comput. Surv. 2023, 56, 1–34. [Google Scholar] [CrossRef] [Scilit]
  12. Hu, C.; Zhang, C.; Lei, D.; Wu, T.; Liu, X.; Zhu, L. Achieving privacy-preserving and verifiable support vector machine training in the cloud. IEEE Trans. Inf. Forensics Secur. 2023, 18, 3476–3491. [Google Scholar] [CrossRef] [Scilit]
  13. Salem, A.M.G.; Bhattacharyya, A.; Backes, M.; Fritz, M.; Zhang, Y. Updates-leak: Data set inference and reconstruction attacks in online learning. In Proceedings of the 29th USENIX Security Symposium. USENIX, Boston, MA, USA, 12–14 August 2020; pp. 1291–1308. [Google Scholar]
  14. Jayaraman, B.; Evans, D. Are attribute inference attacks just imputation? In Proceedings of the 2022 ACM SIGSAC Conference on Computer and Communications Security, Los Angeles, CA, USA, 7–11 November 2022; pp. 1569–1582. [Google Scholar]
  15. Das, D.; Zhang, J.; Tramèr, F. Blind Baselines Beat Membership Inference Attacks for Foundation Models. arXiv 2024, arXiv:2406.16201. [Google Scholar] [CrossRef] [Scilit]
  16. Shokri, R.; Stronati, M.; Song, C.; Shmatikov, V. Membership inference attacks against machine learning models. In Proceedings of the 2017 IEEE Symposium on Security and Privacy (SP), San Jose, CA, USA, 22–26 May 2017; IEEE: Piscataway, NJ, USA; pp. 3–18. [Google Scholar]
  17. Yeom, S.; Giacomelli, I.; Menaged, A.; Fredrikson, M.; Jha, S. Overfitting, robustness, and malicious algorithms: A study of potential causes of privacy risk in machine learning. J. Comput. Secur. 2020, 28, 35–70. [Google Scholar] [CrossRef] [Scilit]
  18. Ko, M.; Jin, M.; Wang, C.; Jia, R. Practical membership inference attacks against large-scale multi-modal models: A pilot study. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), Paris, France, 1–6 October 2023; pp. 4871–4881. [Google Scholar]
  19. Song, L.; Mittal, P. Systematic Evaluation of Privacy Risks of Machine Learning Models. In Proceedings of the 30th USENIX Security Symposium, Vancouver, BC, Canada, 11–13 August 2021; Volume 1, pp. 1–18. [Google Scholar]
  20. Choquette-Choo, C.A.; Tramèr, F.; Carlini, N.; Papernot, N. Label-only membership inference attacks. In Proceedings of the 38th International Conference on Machine Learning (ICML), Virtual Event, 18–24 July 2021; pp. 1964–1974. [Google Scholar]
  21. Yeom, S.; Giacomelli, I.; Fredrikson, M.; Jha, S. Privacy risk in machine learning: Analyzing the connection to overfitting. In Proceedings of the IEEE 31st Computer Security Foundations Symposium (CSF), Oxford, UK, 9–12 July 2018; IEEE: Piscataway, NJ, USA, 2018; pp. 268–282. [Google Scholar]
  22. Huang, S.; Liu, Z.; Yu, J.; Tang, Y.; Luo, Z.; Rao, Y. MKD: Mutual Knowledge Distillation for Membership Privacy Protection. In Proceedings of the Artificial Intelligence Security and Privacy, Abu Dhabi, United Arab Emirates, 4–6 December 2024; Vaidya, J., Gabbouj, M., Li, J., Eds.; Springer: Singapore, 2024; pp. 483–498. [Google Scholar]
  23. Vasa, J.; Thakkar, A. Deep learning: Differential privacy preservation in the era of big data. J. Comput. Inf. Syst. 2023, 63, 608–631. [Google Scholar] [CrossRef] [Scilit]
  24. Zhang, Y.; Xu, Q.; Tang, N.; Qu, A. Differentially Private Data Release for Mixed-type Data via Latent Factor Models. J. Mach. Learn. Res. 2024, 25, 1–37. [Google Scholar]
  25. Chen, D.; Yu, N.; Fritz, M. RelaxLoss: Defending membership inference attacks without losing utility. arXiv 2022, arXiv:2207.05801. [Google Scholar] [CrossRef] [Scilit]
  26. Bukharin, A.; Li, Y.; Yu, Y.; Zhang, Q.; Chen, Z.; Zuo, S.; Zhang, C.; Zhang, S.; Zhao, T. Robust multi-agent reinforcement learning via adversarial regularization: Theoretical foundation and stable algorithms. Adv. Neural Inf. Process. Syst. 2024, 36. [Google Scholar]
  27. Wang, B.; Mendez, J.A.; Shui, C.; Zhou, F.; Wu, D.; Xu, G.; Gagné, C.; Eaton, E. Gap minimization for knowledge sharing and transfer. J. Mach. Learn. Res. 2023, 24, 1–57. [Google Scholar]
  28. Liang, J.; Huang, T.; Luo, Z.; Li, D.; Li, Y.; Ding, Z. GanNoise: Defending against black-box membership inference attacks by countering noise generation. In Proceedings of the 2023 International Conference on Data Security and Privacy Protection (DSPP), Tianjin, China, 21–23 July 2023; pp. 32–40. [Google Scholar] [CrossRef] [Scilit]
  29. Niu, J.; Liu, P.; Zhu, X.; Shen, K.; Wang, Y.; Chi, H.; Shen, Y.; Jiang, X.; Ma, J.; Zhang, Y. A survey on membership inference attacks and defenses in Machine Learning. J. Inf. Intell. 2024, 2, 100014. [Google Scholar] [CrossRef] [Scilit]
  30. Shejwalkar, V.; Houmansadr, A. Membership privacy for machine learning models through knowledge transfer. In Proceedings of the AAAI Conference on Artificial Intelligence, Virtual Event, 2–9 February 2021; Volume 35, pp. 9549–9557. [Google Scholar]
  31. Papernot, N.; Song, S.; Mironov, I.; Raghunathan, A.; Talwar, K.; Erlingsson, Ú. Scalable private learning with PATE. arXiv 2018, arXiv:1802.08908. [Google Scholar] [CrossRef] [Scilit]
  32. Zarifzadeh, S.; Liu, P.; Shokri, R. Low-Cost High-Power Membership Inference Attacks. In Proceedings of the 41st International Conference on Machine Learning, Vienna, Austria, 21–27 July 2024. [Google Scholar]
  33. Li, Z.; Zhang, Y. Label-leaks: Membership Inference Attack with Label. arXiv 2020, arXiv:2007.15528. [Google Scholar]
  34. Salem, A.; Zhang, Y.; Humbert, M.; Berrang, P.; Fritz, M.; Backes, M. ML-leaks: Model and Data Independent Membership Inference Attacks and Defenses on Machine Learning Models. arXiv 2018, arXiv:1806.01246. [Google Scholar] [CrossRef] [Scilit]
  35. Abadi, M.; Chu, A.; Goodfellow, I.; McMahan, H.B.; Mironov, I.; Talwar, K.; Zhang, L. Deep learning with differential privacy. In Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security (CCS), Vienna, Austria, 24–28 October 2016; pp. 308–318. [Google Scholar]
  36. Giraldo, J.; Cardenas, A.; Kantarcioglu, M.; Katz, J. Adversarial classification under differential privacy. In Proceedings of the Network and Distributed System Security Symposium (NDSS), San Diego, CA, USA, 23–26 February 2020. [Google Scholar]
  37. Jia, J.; Salem, A.; Backes, M.; Zhang, Y.; Gong, N.Z. MemGuard: Defending against black-box membership inference attacks via adversarial examples. In Proceedings of the 2019 ACM SIGSAC Conference on Computer and Communications Security (CCS), London, UK, 11–15 November 2019; pp. 259–274. [Google Scholar]
  38. Xue, M.; Yuan, C.; He, C.; Wu, Y.; Wu, Z.; Zhang, Y.; Liu, Z.; Liu, W. Use the Spear as a Shield: An Adversarial Example Based Privacy-Preserving Technique Against Membership Inference Attacks. IEEE Trans. Emerg. Top. Comput. 2022, 11, 153–169. [Google Scholar] [CrossRef] [Scilit]
  39. Kaya, Y.; Hong, S.; Dumitras, T. On the Effectiveness of Regularization Against Membership Inference Attacks. arXiv 2020, arXiv:2006.05336. [Google Scholar] [CrossRef] [Scilit]
  40. Kong, L.; Qi, Y.; Liu, H.; Meng, C. Sneak Path-Aware Reliability-Based Iterative Majority-Logic Decoding Algorithms for LDPC Codes in ReRAM Systems. IEEE Commun. Lett. 2025, 29, 2018–2022. [Google Scholar] [CrossRef] [Scilit]
  41. Hu, H.; Salcic, Z.; Dobbie, G.; Chen, Y.; Zhang, X. EAR: An enhanced adversarial regularization approach against membership inference attacks. In Proceedings of the 2021 International Joint Conference on Neural Networks (IJCNN), Shenzhen, China, 18–22 July 2021; IEEE: Piscataway, NJ, USA, 2021; pp. 1–8. [Google Scholar]
  42. Chen, J.; Wang, W.H.; Shi, X. Differential privacy protection against membership inference attack on machine learning for genomic data. In Proceedings of the Pacific Symposium on Biocomputing (PSB 2021), Virtual Event, 4–8 January 2021; World Scientific: Singapore, 2021; pp. 26–37. [Google Scholar]
  43. Zhang, Z.; Lin, G.; Ke, L.; Peng, S.; Hu, L.; Yan, H. KD-GAN: An effective membership inference attacks defence framework. Int. J. Intell. Syst. 2022, 37, 9921–9935. [Google Scholar] [CrossRef] [Scilit]
  44. Shen, X.; Chen, C.; Han, D.; Xu, Y.; Wang, X.; Zhou, H. A triple-branch hybrid dynamic-static alignment strategy for vision-language tasks. Neural Netw. 2025, 178, 107871. [Google Scholar] [CrossRef] [Scilit]
  45. Deng, J.; Guo, J.; Xue, N.; Zafeiriou, S. Arcface: Additive angular margin loss for deep face recognition. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Long Beach, CA, USA, 15–20 June 2019; pp. 4690–4699. [Google Scholar]
  46. Caron, M.; Touvron, H.; Misra, I.; Jégou, H.; Mairal, J.; Bojanowski, P.; Joulin, A. Emerging properties in self-supervised vision transformers. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Montreal, QC, Canada, 11–17 October 2021; pp. 9650–9660. [Google Scholar]
  47. Krizhevsky, A.; Hinton, G. Learning Multiple Layers of Features from Tiny Images; Technical Report; University of Toronto: Toronto, ON, Canada, 2009. [Google Scholar]
  48. Hinton, G.E.; Krizhevsky, A.; Sutskever, I. Imagenet classification with deep convolutional neural networks. Adv. Neural Inf. Process. Syst. 2012, 25, 1. [Google Scholar]
  49. Huang, G.; Liu, Z.; Van Der Maaten, L.; Weinberger, K.Q. Densely connected convolutional networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA, 21–26 July 2017; pp. 4700–4708. [Google Scholar]
  50. He, K.; Zhang, X.; Ren, S.; Sun, J. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA, 27–30 June 2016; pp. 770–778. [Google Scholar]
  51. Leino, K.; Fredrikson, M. Stolen memories: Leveraging model memorization for calibrated white-box membership inference. In Proceedings of the 29th USENIX Security Symposium, Boston, MA, USA, 12–14 August 2020. [Google Scholar]
  52. Carlini, N.; Chien, S.; Nasr, M.; Song, S.; Terzis, A.; Tramer, F. Membership inference attacks from first principles. In Proceedings of the 2022 IEEE Symposium on Security and Privacy (SP), San Francisco, CA, USA, 22–26 May 2022; IEEE: Piscataway, NJ, USA, 2022; pp. 1897–1914. [Google Scholar]
  53. Nasr, M.; Shokri, R.; Houmansadr, A. Machine learning with membership privacy using adversarial regularization. In Proceedings of the 2018 ACM SIGSAC Conference on Computer and Communications Security, Toronto, ON, Canada, 15–19 October 2018; pp. 634–646. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.