User data publishing method and device
Through feature extraction, clipping mixing and Gaussian noise processing, combined with Poisson sampling and Gaussian differential privacy algorithm, the problem of low data utility after privacy processing in the existing technology is solved, achieving higher privacy protection and data utility, and improving Performance of machine learning models.
Patent Information
- Application Number
- CN202310335275.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-27
- Publication Date
- 2024-09-27
AI Technical Summary
After the privacy processing of the existing data release algorithm, the gap between the processed data and the real data is large, which leads to low data utility and affects the optimization effect of the machine learning model and the quality of the generated model.
Extract the characteristics of the sample data through the feature extractor, perform cropping and mixing processing, limit the second norm of the feature vector, add Gaussian noise to generate published data, and combine Poisson sampling and Gaussian difference privacy algorithms to improve privacy protection effects and data utility.
It significantly improves the utility of published data, reduces the impact of data mixing on utility, provides stronger privacy protection and higher statistical utility, and improves the classification accuracy of machine learning models and the defense effect against member inference attacks.
Smart Images

Figure CN118709209A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method and device for publishing user data. Background Art
[0002] The rapid development of information technology has made the publication, collection, storage and analysis of various types of data convenient and fast. For example, account passwords, private pictures, professional income, etc.; if the data owner directly publishes implicit sensitive information without using appropriate data protection technology, it may cause personal privacy leakage. More and more institutions are using differential privacy (DP) to ensure the privacy of data. Differential privacy provides a mathematical definition of how much privacy leakage or protection is caused by data operations. Differential privacy provides a quantitative indicator to measure the degree of privacy protection: privacy budget ε. The smaller ε is, the stronger the protection provided by differential privacy and the less privacy leakage.
[0003] However, the existing data publishing algorithms have the following problems: the gap between the privacy-processed data and the real data is large, which makes the data utility of the privacy-processed data low. For example, if the privacy-processed data is used as a sample for machine learning, the optimization effect of the training algorithm that meets DP will be poor, which will lead to poor quality of the trained generation model. Summary of the invention
[0004] The embodiment of the present application provides a user data publishing method and device, which extracts features from sample data through a feature extractor, and then trims and mixes the feature vectors after feature extraction. The mixing in the feature space can reduce the impact of the mixing on the data utility, greatly improving the utility of the published data.
[0005] In a first aspect, an embodiment of the present application provides a method for publishing user data, comprising: acquiring user data; performing sampling processing on the user data to obtain sample data; performing feature extraction on the sample data through a feature extractor to obtain a feature vector; cropping the feature vector to obtain a cropped vector, wherein the cropping is used to limit the maximum value of the binary norm of the feature vector; mixing the cropped vector to obtain a mixed vector; and adding Gaussian noise to the mixed vector to obtain published data.
[0006] In this way, features in sample data are extracted through a feature extractor, and then the feature vectors after feature extraction are trimmed and mixed. Mixing the feature vectors can reduce the impact of mixing on data utility and greatly improve the utility of published data.
[0007] In certain implementations of the first aspect, the sampling and processing of the user data to obtain the sample data includes: sampling and combing the user data using a Poisson sampling method to obtain the sample data.
[0008] In this way, since the sample number of the sample data generated by the Poisson sampling method is random and approximately conforms to the Poisson distribution, the privacy protection effect of the published data is improved.
[0009] In certain implementations of the first aspect, the user data publishing method includes: using a Gaussian differential privacy algorithm to determine the Gaussian noise corresponding to the user data.
[0010] In this way, user data is sampled and processed through the Poisson sampling method to obtain sample data. By combining Poisson sampling and Gaussian differential privacy algorithm, privacy leakage and hypothesis testing are linked, providing a tighter privacy theory guarantee. When Poisson sampling and Gaussian differential privacy algorithm are combined, the privacy characterization is more accurate, so the Gaussian noise that needs to be added is smaller.
[0011] In certain implementations of the first aspect, the clipping of the feature vector to obtain a clipping vector includes: clipping the feature vector using the following expression to obtain a clipping vector: P = z / max(|z| / C, 1); wherein z is the feature vector, C is a preset clipping amount, max(|z| / C, 1) is a maximum function, the maximum function is used to output the maximum value between |z| / C and 1, and P is the clipping vector.
[0012] In this way, the above data clipping method is used to clip the feature vector and limit the binary norm of the feature vector.
[0013] In certain implementations of the first aspect, mixing the clipping vectors to obtain a mixed vector includes: determining an average value of the clipping vectors, and using the average value as the mixed vector.
[0014] In this way, the trimmed vectors are mixed by determining the average value to obtain a mixed vector. The trimmed vectors are mixed so that the subsequently obtained published data meets the requirements of differential privacy.
[0015] In certain implementations of the first aspect, the user data publishing method further includes: acquiring a data type of the user data; and determining the feature extractor based on the data type.
[0016] Thus, when extracting features from sample data corresponding to user data, the corresponding feature extractor is determined by the data type corresponding to the user data. The user data publishing device can support multiple feature extractors, so as to determine the corresponding feature extractor according to the data type, so as to improve the effect and accuracy of feature extraction.
[0017] In certain implementations of the first aspect, the user data includes original data and label data; the sample data includes user data samples corresponding to the original data and label data samples corresponding to the label data; extracting features from the sample data by a feature extractor to obtain a feature vector, and cropping the feature vector to obtain a cropped vector includes: extracting features from the user data sample by a feature extractor to obtain a feature vector; cropping the feature vector and the label data sample to obtain a cropped vector.
[0018] In this way, when the user data includes original data and label data, it is only necessary to perform feature extraction on the unstructured data of the user data, that is, the original data, to ensure the accuracy of the feature extraction.
[0019] In a second aspect, an embodiment of the present application provides a device, wherein the device may be a user data publishing device, including:
[0020] A memory for storing a computer program;
[0021] A processor is used to execute the computer program stored in the memory. When the computer program is executed, the processor is used to execute the method in any implementation manner of the first aspect above.
[0022] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium includes computer instructions. When the computer instructions are executed on a user data publishing device, the user data publishing device executes a method in any possible implementation of the first aspect described above.
[0023] In a fourth aspect, an embodiment of the present application provides a chip system, which is applied to a terminal; the chip system includes an interface circuit and a processor; the interface circuit and the processor are interconnected through a line; the interface circuit is used to receive a signal from the memory of the terminal and send a signal to the processor, the signal including a computer instruction stored in the memory; when the processor executes the computer instruction, the chip system executes the user data publishing method as described in any one of the first aspects. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 A flowchart of a method for publishing user data provided in an embodiment of the present application;
[0025] Figure 2 A schematic diagram of a method for publishing user data provided in an embodiment of the present application;
[0026] Figure 3 A schematic diagram of user data changes in a user data publishing method is provided for an application embodiment;
[0027] Figure 4 A structural diagram of a user data publishing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0028] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0029] The following first introduces relevant terms and concepts that may be involved in the embodiments of the present application.
[0030] Statistical Utility
[0031] In the field of differential privacy, statistical utility (utility) refers to the contribution of data to a statistical task or statistical model. The greater the utility, the better the performance of the statistical task. For example, for classification tasks, utility can be measured by accuracy.
[0032] Before explaining the embodiments of the present application in detail, the application scenarios involved in the embodiments of the present application are first introduced.
[0033] In the data application scenario, there are two independent entities: data owners and data analysts. Data owners own private data, and data analysts want to complete analysis work based on users' private data, such as building machine learning models based on users' private data. However, data owners hope that data analysts can provide data analysis services without accessing the original private data, that is, publicly disclose the private data they own but do not disclose user privacy information to ensure the security of user privacy data.
[0034] In order to ensure the security of user privacy data, before the data owner provides the data to the data analyst, the user privacy data needs to be processed for privacy. The processed data meets differential privacy and can be used by the data analyst for data analysis. The existing processed data after privacy processing is quite different from the real data, resulting in poor results for data analysts to use the processed data for analysis.
[0035] Based on the above problems, the embodiments of the present application provide a method for publishing user data. After sampling the user data, a feature extractor is used to extract features from the sampled user data, so as to reduce the impact of subsequent data mixing processing on the data utility of the user data and improve the utility of the published user data.
[0036] Please refer to Figure 1 , Figure 1 which is a flowchart of a method for publishing user data provided by the present application. The execution subject of this embodiment is a base station. As Figure 1 shown, the method of this embodiment may include:
[0037] S101: Obtain user data.
[0038] Among them, the user data may be user image data, such as face data, or other user privacy data, such as user passwords, user names, user ID numbers, etc.
[0039] S102: Perform sampling processing on the user data to obtain sample data.
[0040] Specifically, the user data may be sampled according to a preset sampling frequency or sampling algorithm to obtain sample data corresponding to the user data.
[0041] In some embodiments, the user data is sampled by the Poisson sampling method to obtain sample data.
[0042] Among them, if the user data is a data set, a subset can be selected from the data set by the Poisson sampling method, and the subset is used as the sample data.
[0043] Exemplarily, if the sampling ratio is p and the user data includes multiple records, a random number r uniformly distributed between 0 and 1 is generated for each record in the user data. If r < p, then the record is added to the subset used as the sample data.
[0044] Since the number of samples of the sample data generated by the Poisson sampling method is random and approximately conforms to the Poisson distribution, the privacy protection effect is improved.
[0045] S103: Extract features from the sample data through a feature extractor to obtain a feature vector;
[0046] Specifically, the feature extractor is used to extract features from the sample data to convert the sample of unstructured data into a feature vector. By extracting features from the sample data during the data processing process, the impact of subsequent data processing on the data utility is reduced, and the data utility is improved.
[0047] It can be understood that feature extractors include multiple types, such as recurrent neural network RNN, convolutional neural network CNN, and Transformer. Each feature extractor can be used for feature extraction of sample data of a specific type of user data. For example, recurrent neural network RNN can be used for feature extraction of samples of image type. Before S103, the above user data publishing method further includes:
[0048] Get the data type of user data;
[0049] Determine the corresponding feature extractor based on the data type.
[0050] Specifically, the data type includes image type and digital type, etc., and an adaptive feature extractor is selected according to the data type.
[0051] In some embodiments, the user can preset the feature extractor corresponding to each data type, for example, configure the correspondence between each data type and the feature extractor, and after determining the data type of the user data, determine the corresponding feature extractor based on the data type and the correspondence.
[0052] In some embodiments, when a user provides user data, a feature extractor to be used may be selected based on the user's preferences or the type of data.
[0053] S104: Crop the feature vector to obtain a cropping vector.
[0054] The feature vector is clipped to limit the maximum value of the bi-norm of the feature vector;
[0055] In some embodiments, the feature vector is clipped using the following expression:
[0056] P = z / max(|z| / C, 1);
[0057] Among them, z is the feature vector, C is the preset cropping amount, max(|z| / C, 1) is the maximum function, the maximum function is used to output the maximum value between |z| / C and 1, and P is the cropping vector.
[0058] S105. Perform data mixing on the clipping vector to obtain a mixed vector.
[0059] Specifically, a feature extractor is used to extract features from unstructured user data before mixing, and the unstructured user data is converted into feature vectors before data mixing. This process is also called feature mixing. The feature extractor is used to extract features to ensure that the mixed data has high statistical utility. The loss of statistical utility caused by data mixing is smaller than that of the original data mixing, which improves the data quality of the published mixed vector. The features extracted by the feature extractor have better statistical utility, thereby improving the statistical utility of the mixed vector.
[0060] In some embodiments, the cropping vector is mixed with data by using a Mixup method to obtain a mixed vector. It is understandable that in other embodiments, other data mixing methods may be used, and the present application does not limit this.
[0061] In some embodiments, the clipping vector is mixed by using a Mixup method to obtain a mixed vector, including:
[0062] Get the average of the clipping vectors and use the average as the blending vector.
[0063] S106. Add Gaussian noise to the mixed vector to obtain published data.
[0064] Specifically, Gaussian noise is added to the mixed vector so that the mixed vector satisfies the differential privacy property.
[0065] Thus, in the data publishing method of the present application, in the process of converting user data into published data, the feature extractor extracts features from the sample data, and then the feature vectors after feature extraction are trimmed and mixed. The mixing in the feature space can reduce the impact of mixing on the data utility, greatly improving the utility of the published data. Since the user data after feature extraction is unstructured data, the above method makes full use of the advantages of pre-trained models of machine learning in the field of unstructured data, and can enhance the advantages of published data as input for machine learning.
[0066] In some embodiments, by repeatedly executing Figure 1 Steps S101-S106 are performed to obtain multiple mixed features. For example, each time Figure 1 In the middle step, a sub-publishing data is obtained, and multiple sub-publishing data form the data to be published.
[0067] In some embodiments, the user data publishing method further includes:
[0068] The Gaussian noise added to the mixed vector is determined by the Gaussian Differential Privacy (GDP) algorithm.
[0069] The user data is sampled through the Poisson sampling method to obtain sample data. By combining Poisson sampling and the Gaussian differential privacy algorithm, the privacy leakage is linked to hypothesis testing, providing a tighter privacy theoretical guarantee. When Poisson sampling and the Gaussian differential privacy algorithm are combined, the privacy characterization is more accurate, so the Gaussian noise to be added is smaller.
[0070] Furthermore, the Gaussian noise determined by the Gaussian differential privacy algorithm enables the released data to resist model inversion attacks and membership inference attacks: the model inversion attack attempts to recover the original data from the feature dataset, and the membership inference attack attempts to determine whether a certain data is in the user dataset.
[0071] In some embodiments, the Gaussian noise added to the mixed vector determined by the Gaussian differential privacy algorithm includes:
[0072] Initialize mu = 1, calculate delta_hat = phi(-epsilon / mu + 0.5*mu) - e^(epsilon)*phi(-epislon / mu - 0.5*mu);
[0073] If delta_hat > delta, then mu = mu * 0.95;
[0074] If delta_hat < delta, then mu = mu * 1.05;
[0075] Obtain the standard deviation sigma of the Gaussian noise = C / (p*n) * sqrt(ln(1 + mu^2 / (p^2*T)));
[0076] Where phi is the cumulative distribution function of the standard Gaussian distribution, n is the size of the user data, P is the sampling ratio, T is the size of the released data, delta and epsilon are pre-set privacy budgets, and C is the clipping amount.
[0077] Please refer to Figure 2 , Figure 2 which is a schematic diagram of the process of a user data release method provided by an embodiment of this application.
[0078] Figure 2 In, the user owns and provides the user data, and processes the user data according to the Figure 1 shown user data release method to obtain the released data, where the processing process includes sampling, feature extraction, mixing, clipping, and adding noise (Gaussian noise determined based on the GDP noise algorithm). The specific processing process will not be elaborated here.
[0079] Then the released data is sent to the data analyst for the data analyst to analyze the released data.
[0080] Figure 2 The user data provided by the user owner includes the original data and the label data corresponding to the original data, the original data and the label data. If n is the size of the user data set, dx is the dimension of the original data, and dy is the dimension of the label data, then the sensitive data set is (X, Y), where X is the original data matrix with a dimension of n*dx; Y is the label data matrix with a dimension of n*dy. The published data is (A, B), where A is the mixed feature matrix (i.e. the original data matrix after adding noise), with a dimension of T*dz, dz is the output dimension of the feature extractor; B is the mixed label matrix (i.e. the label data matrix after adding noise), with a dimension of T*dy.
[0081] The above-mentioned user data publishing method includes:
[0082] Get user data.
[0083] The user data is sampled to obtain sample data, which includes user data samples and label data samples.
[0084] The feature extractor extracts features from the user data sample to obtain a feature vector;
[0085] The feature vector and the label data samples are clipped to obtain the clipped vector.
[0086] Data blending is performed on the clipped vectors to obtain a blended vector.
[0087] Gaussian noise is added to the mixed vector to obtain the published data.
[0088] In some embodiments, the published data includes a mixed vector with Gaussian noise added, and also includes a feature extractor for extracting features from user data samples, such as an identifier of a feature extractor or a specific feature extractor.
[0089] Please refer to Table 1, which is a comparison between the user data publishing method provided in an embodiment of the present application and other user data publishing methods; it can be seen from Table 1 that, under the scenario of the same DP protection level, the classification accuracy of the published data output by the user data publishing method provided by the present application is higher than the classification accuracy of the two existing technologies.
[0090] Among them, differential privacy provides a quantitative indicator to measure the degree of privacy protection: privacy budget ε. The smaller ε is, the stronger the protection provided by differential privacy is and the less privacy leakage is.
[0091] Among them, technology 1 is based on first training the generative model on user data using a training algorithm that satisfies DP, then using the generative model to generate virtual data, and finally publishing the virtual data (i.e., publishing data). Technology 2 is to first mix the user data T times to generate T mixed samples. Then, the required noise size is calculated through the RDP algorithm, the corresponding noise is added to the mixed data, and finally the mixed data with noise added is published (i.e., publishing data).
[0092] Table 1
[0093] DP protection level Technology 1 Technique 2 This application ε=1 79.53% 20.40% 89.82% ε=2 81.57% 47.43% 92.20% ε=4 83.23% 67.33% 93.50% ε=8 84.21% 73.75% 94.32%
[0094] See also Figure 3 , Figure 3 A schematic diagram of a user data publishing method provided in an embodiment of the present application, wherein the user data is image data, Figure 3 The first line in the figure is the original image file; the second line is the transition data after the user data is cut and mixed. Since no Gaussian noise is added, the Gaussian noise σ=0, and the attacker can restore the original image file based on the transition data; the third and fourth lines are based on Figure 1 The user data publishing method shown in the figure outputs published data under different privacy budget requirements (for example, ε=8, 1, etc.). The attacker restores the original image file based on the published data, resulting in the attacker being unable to successfully attack.
[0095] Please refer to Table 2, which is a schematic diagram of the protection effect of a user data publishing method provided in an embodiment of the present application, and the defense effect against member inference attacks under different privacy budget requirements (e.g., no protection, ε=8, 4, 2, 1, etc.).
[0096] Among them, AUC (Area under the Curve of ROC) and GAP are used to measure the effect of member inference attacks. The larger the GAP and AUC, the weaker the privacy protection ability. As can be seen from Table 2, compared with the unprotected technical implementation solution, this application can greatly improve the protection effect against member inference attacks under different privacy budget requirements.
[0097] Table 2
[0098] algorithm AUC GAP No protection 0.5735 9.42 ε=8 0.5160 1.08 ε=4 0.5075 0.83 ε=2 0.5061 1.26 ε=1 0.5033 0.57
[0099] See also Figure 4 , is a schematic diagram of the structure of an embodiment of the user data publishing device of the present application. It can be used to execute Figure 1 The user data publishing method in the corresponding embodiment.
[0100] like Figure 4As shown, the user data publishing device may include components such as a processor 41 and a memory 42. These components are connected and communicated via one or more buses.
[0101] The processor 41 is the control center of the user data publishing device, and uses various interfaces and lines to connect various parts of the entire base station, and executes various functions of the base station and / or processes data by running or executing software programs and / or modules stored in the memory 42, and calling data stored in the memory 42. The processor 41 can be composed of an integrated circuit (IC), for example, a single packaged IC, or a plurality of packaged ICs with the same or different functions. For example, the processor 41 can be a communication processor (CP).
[0102] The memory 42 can be used to store software programs and modules. The processor 41 executes various functional applications of the user data publishing device and realizes data processing by running the software programs and modules stored in the memory 42. In a specific embodiment of the present application, the memory 42 may include a volatile memory, such as a nonvolatile dynamic random access memory (NVRAM), a phase change random access memory (PRAM), a magnetoresistive random access memory (MRAM), etc. It may also include a non-volatile memory, such as at least one disk storage device, an electrically erasable programmable read-only memory (EEPROM), a flash memory device, such as a NOR flash memory or a NAND flash memory.
[0103] In a specific implementation, an embodiment of the present application provides a chip system, which is applied to a terminal; the chip system includes an interface circuit and a processor; the interface circuit and the processor are interconnected through a line; the interface circuit is used to receive a signal from the memory of the terminal and send a signal to the processor, the signal including a computer instruction stored in the memory; when the processor executes the computer instruction, the chip system executes the user data publishing method described in the above embodiment.
[0104] In a specific implementation, the present application also provides a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, the program may include some or all of the steps in each embodiment of the user data publishing method provided by the present application. The storage medium may be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0105] It should also be understood that the memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus RAM (DRRAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0106] In the present application, the correspondence between A and B can be understood as A and B are associated, or A and B have an associated relationship.
[0107] It should be understood that the methods, situations, categories and divisions of the embodiments in the present application are only for the convenience of description and should not constitute special limitations. The features of various methods, categories, situations and embodiments can be combined without contradiction.
[0108] It should also be understood that the “first” and “second” in the application embodiments are only for distinction and should not constitute any limitation to the present application.
[0109] It should be understood that the term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0110] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0111] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0112] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0113] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0114] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0115] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or in other words, the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, a server, or a user data publishing device, etc.) to execute all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.
[0116] It should be understood that the various numerical numbers involved in the embodiments of the present application are only used for the convenience of description and are not used to limit the scope of the embodiments of the present application.
[0117] The above-mentioned embodiments are provided for the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A user data publishing method, characterized in that: include: Get user data; Performing sampling processing on the user data to obtain sample data; Extracting features from the sample data using a feature extractor to obtain a feature vector; Clipping the feature vector to obtain a clipping vector, wherein the clipping is used to limit the maximum value of the binary norm of the feature vector; Mixing the clipping vectors to obtain a mixed vector; Gaussian noise is added to the mixed vector to obtain the published data.
2. The user data publishing method according to claim 1, characterized in that , the sampling process of the user data to obtain the sample data includes: The user data is sampled and sorted using a Poisson sampling method to obtain sample data.
3. The user data publishing method according to claim 1 or 2, characterized in that ,The user data publishing method includes: A Gaussian differential privacy algorithm is used to determine the Gaussian noise corresponding to the user data.
4. The user data publishing method according to any one of claims 1 to 3, characterized in that , the step of clipping the feature vector to obtain a clipping vector includes: The feature vector is clipped using the following expression to obtain a clipping vector: P = z / max(|z| / C,1); Among them, z is the feature vector, C is the preset cropping amount, max(|z| / C, 1) is the maximum value function, and the maximum value function is used to output the maximum value between |z| / C and 1, and P is the cropping vector.
5. The user data publishing method according to any one of claims 1 to 4, characterized in that , the clipping vector is mixed to obtain a mixed vector including: An average value of the clipping vectors is determined, and the average value is used as the blending vector.
6. The user data publishing method according to any one of claims 1 to 5, characterized in that: The user data publishing method further includes: Get the data type of user data; The feature extractor is determined according to the data type.
7. The user data publishing method according to any one of claims 1 to 6, characterized in that: The user data includes original data and label data; the sample data includes user data samples corresponding to the original data and label data samples corresponding to the label data; The extracting features of the sample data by a feature extractor to obtain a feature vector, and clipping the feature vector to obtain a clipping vector comprises: Extracting features from the user data sample using a feature extractor to obtain a feature vector; The feature vector and the label data sample are clipped to obtain a clipped vector.
8. A user data publishing device, characterized in that: include: A memory for storing a computer program; A processor is used to execute the computer program stored in the memory. When the computer program is executed, the processor is used to execute the user data publishing method as described in any one of claims 1 to 7.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes computer instructions, and when the computer instructions are executed on the user data distribution device, the user data distribution device executes the user data distribution method according to any one of claims 1 to 7.
10. A chip system, characterized in that: The chip system is applied to a terminal; the chip system includes an interface circuit and a processor; the interface circuit and the processor are interconnected through a line; the interface circuit is used to receive a signal from the memory of the terminal and send a signal to the processor, the signal including a computer instruction stored in the memory; when the processor executes the computer instruction, the chip system executes the user data publishing method as described in any one of claims 1 to 7.
