User data deletion method, device and electronic device

By deleting specified user data and retraining in the deep learning model, combined with hash table and noise defense attacks, the problem of difficulty in deleting user data and insufficient security in the existing technology is solved, and fast and compliant data deletion and model are achieved. renew.

CN113988313BActive Publication Date: 2024-10-15ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111289272.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-02
Publication Date
2024-10-15
Estimated Expiration
2041-11-02

AI Technical Summary

Technical Problem

The existing technology makes it difficult to quickly delete the data of specified users from the training data and the generated deep learning model, making it difficult to meet compliance requirements and the risk of violations, and it takes a long time to retrain the model.

Method used

By obtaining the user data deletion request, find and delete the user data in the training data, and use the deleted data to retrain the model. At the same time, during the retraining process, the confidence value of the input data of the model is modified to prevent member speculation attacks, using Ha Hope table adds noise to defend against attack.

Benefits of technology

It can quickly delete specified user data from training data and models to meet compliance requirements, and defend against member speculation attacks by modifying confidence values ​​and adding noise, improving security and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113988313B_ABST
    Figure CN113988313B_ABST
Patent Text Reader

Abstract

The embodiments of this specification propose a method, device and electronic device for deleting user data, wherein in the above-mentioned method for deleting user data, after the server obtains a request to delete user data, it searches for user data corresponding to the user identifier carried in the above-mentioned request in the first training data. If the user data corresponding to the above-mentioned user identifier is found, the found user data is deleted from the above-mentioned first training data, and the machine learning model is retrained using the second training data after the above-mentioned user data is deleted, so that the data of the specified user can be deleted from the training data and the generated machine learning model, thereby meeting compliance requirements, and a new machine learning model can also be retrained and released.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The embodiments of the present specification relate to the field of Internet technology, and in particular, to a method, device and electronic device for deleting user data. [Background technology]

[0002] Existing relevant technologies clearly stipulate that users have the right to request Internet companies to delete the relevant data of the user that they have saved. This means that if an Internet company uses the user's data to train and generate a deep learning model, then the deep learning model also needs to support the ability to delete the data corresponding to the user in the model.

[0003] Therefore, it is necessary to provide a solution that can not only delete the data corresponding to a specified user from the training data, but also delete the data corresponding to the user from the model generated by training. [Summary of the invention]

[0004] The embodiments of this specification provide a method, device, and electronic device for deleting user data to delete data corresponding to a specified user from training data and a model generated by training, and to retrain and publish a new model.

[0005] In a first aspect, an embodiment of the present specification provides a method for deleting user data, comprising: obtaining a request to delete user data, the request including a user identifier corresponding to the user data requested to be deleted; searching for user data corresponding to the user identifier in first training data; wherein the first training data includes data used to train a machine learning model, and the first training data includes user data of at least two users; if the user data corresponding to the user identifier is found, deleting the found user data from the first training data; and retraining the machine learning model using the second training data after deleting the user data.

[0006] In the above-mentioned method for deleting user data, after the server obtains a request to delete user data, it searches for user data corresponding to the user identifier carried in the above-mentioned request in the first training data. If the user data corresponding to the above-mentioned user identifier is found, the found user data is deleted from the above-mentioned first training data, and the machine learning model is retrained using the second training data after the above-mentioned user data is deleted. In this way, the data of the specified user can be deleted from the training data and the generated machine learning model, thereby meeting compliance requirements, and a new machine learning model can also be retrained and released.

[0007] In one possible implementation, the method further includes: in the process of retraining the machine learning model, after receiving the input data of the machine learning model, searching for the input data in the first training data; if the input data is found, modifying the confidence value returned by the machine learning model.

[0008] In one possible implementation, modifying the confidence value returned by the machine learning model includes: modifying the confidence value returned by the machine learning model to any value in a predetermined interval, wherein the minimum value in the predetermined interval is greater than 0 and the maximum value is less than 1.

[0009] In one possible implementation, the hash value of the first training data is stored in a hash table; searching for the input data in the first training data includes: performing a hash calculation on the input data to obtain a hash value corresponding to the input data; and searching for the hash value corresponding to the input data in the hash table.

[0010] In one possible implementation, before searching the hash table for the hash value corresponding to the input data, the method further includes: superimposing predetermined noise on the first training data to generate attack data; performing hash calculation on the attack data to obtain the hash value corresponding to the attack data; and adding the hash value corresponding to the attack data to the hash table.

[0011] In a second aspect, an embodiment of the present specification provides a device for deleting user data, comprising: an acquisition module, used to obtain a request for deleting user data, the request including a user identifier corresponding to the user data requested to be deleted; a search module, used to search for user data corresponding to the user identifier in first training data; wherein the first training data includes data used for training a machine learning model, and the first training data includes user data of at least two users; a deletion module, used to delete the user data found from the first training data when the search module finds the user data corresponding to the user identifier; and a training module, used to retrain the machine learning model using the second training data after deleting the user data.

[0012] In one possible implementation, the device also includes: a modification module; the search module is also used to search for the input data in the first training data after receiving the input data of the machine learning model during the process of retraining the machine learning model; the modification module is used to modify the confidence value returned by the machine learning model when the search module finds the input data.

[0013] In one possible implementation, the modification module is specifically used to modify the confidence value returned by the machine learning model to any value in a predetermined interval, where the minimum value in the predetermined interval is greater than 0 and the maximum value is less than 1.

[0014] In one possible implementation, the hash value of the first training data is stored in a hash table; the device further includes: a hash module; the hash module is used to perform hash calculation on the input data to obtain the hash value corresponding to the input data; the search module is specifically used to search the hash table for the hash value corresponding to the input data.

[0015] In one possible implementation, the device also includes: a generation module and an adding module; the generation module is used to superimpose predetermined noise on the first training data to generate attack data before the search module searches for the hash value corresponding to the input data in the hash table; the hash module is also used to perform hash calculation on the attack data to obtain the hash value corresponding to the attack data; the adding module is used to add the hash value corresponding to the attack data to the hash table.

[0016] In a third aspect, an embodiment of the present specification provides an electronic device, comprising: at least one processor; and at least one memory communicatively connected to the processor, wherein: the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the method provided in the first aspect.

[0017] In a fourth aspect, an embodiment of the present specification provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions enable the computer to execute the method provided in the first aspect.

[0018] It should be understood that the second to fourth aspects of the embodiments of this specification are consistent with the technical solutions of the first aspect of the embodiments of this specification, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here.

Brief Description of the Drawings

[0019] In order to more clearly illustrate the technical solutions of the embodiments of this specification, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0020] Figure 1 A flowchart of a method for deleting user data provided by one embodiment of this specification;

[0021] Figure 2 A flowchart of a method for deleting user data provided by another embodiment of this specification;

[0022] Figure 3 A flowchart of a method for deleting user data provided in yet another embodiment of this specification;

[0023] Figure 4 A schematic diagram of the structure of a device for deleting user data provided by one embodiment of this specification;

[0024] Figure 5 A schematic diagram of the structure of a device for deleting user data provided by another embodiment of this specification;

[0025] Figure 6 A schematic diagram of the structure of an electronic device provided in one embodiment of this specification. [Specific implementation method]

[0026] In order to better understand the technical solution of this specification, the embodiments of this specification are described in detail below with reference to the accompanying drawings.

[0027] It should be clear that the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.

[0028] The terms used in the embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit this specification. The singular forms "a", "said" and "the" used in the embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.

[0029] In response to the user's demand for the right to request Internet companies to delete the saved user data, the existing related technologies provide two solutions for deleting the data of specified users. One is to delete the data of specified users from the training data, and then retrain a deep learning model and publish the new model. However, it usually takes several days or even dozens of days to retrain a deep learning model, which makes the solution of deleting user data, retraining and publishing a new model difficult to implement.

[0030] Another solution to delete the data of a specified user is to detect and defend against the characteristics of the member-speculated attack based on the attack characteristics and the number of attacks. However, this method does not actually delete the data of the specified user from the training data set, and there is a risk of violation.

[0031] Based on the above problems, an embodiment of this specification provides a method for deleting user data, which can not only delete the data corresponding to the specified user from the training data and the model generated by training to meet compliance requirements, but also retrain and publish a new model to quickly put the model online.

[0032] Figure 1 A flowchart of a method for deleting user data provided by an embodiment of this specification is shown in FIG. Figure 1 As shown, the above method for deleting user data may include:

[0033] Step 102: Obtain a request for deleting user data, wherein the request includes a user identifier corresponding to the user data requested to be deleted.

[0034] The user identifier may be information that can uniquely identify the user, such as a user name, a mobile phone number, or an email address. This embodiment does not limit the form of the user identifier.

[0035] Step 104: searching the first training data for user data corresponding to the user identifier.

[0036] Step 106: If the user data corresponding to the user identifier is found, the found user data is deleted from the first training data.

[0037] Among them, the above-mentioned first training data can be data used by the server to train the machine learning model, and the above-mentioned first training data includes user data of at least two users.

[0038] Specifically, after the server receives a request to delete user data, it can search the first training data according to the user identifier corresponding to the above user data. If the user data corresponding to the above user identifier is found, the found user data is deleted from the first training data, thereby deleting the data of the specified user from the training data.

[0039] Step 108: Retrain the machine learning model using the second training data after deleting the above user data.

[0040] Specifically, after deleting the found user data, the server retrains the machine learning model using the second training data after deleting the above user data, thereby deleting the data corresponding to the specified user in the trained machine learning model to meet compliance requirements.

[0041] In the above-mentioned method for deleting user data, after the server obtains a request to delete user data, it searches for user data corresponding to the user identifier carried in the above-mentioned request in the first training data. If the user data corresponding to the above-mentioned user identifier is found, the found user data is deleted from the above-mentioned first training data, and the machine learning model is retrained using the second training data after the above-mentioned user data is deleted. In this way, the data of the specified user can be deleted from the training data and the generated machine learning model, thereby meeting compliance requirements, and a new machine learning model can also be retrained and released.

[0042] Figure 2 A flowchart of a method for deleting user data provided by another embodiment of this specification is shown in FIG. Figure 2 As shown in this manual Figure 1 In the illustrated embodiment, the following may also be included:

[0043] Step 202, in the process of retraining the machine learning model, after receiving the input data of the above-mentioned machine learning model, the above-mentioned input data is searched in the first training data.

[0044] The first training data may be stored in the memory of the server or in a database connected to the server.

[0045] Step 204: If the above input data is found, the confidence value returned by the above machine learning model is modified.

[0046] Specifically, modifying the confidence value returned by the machine learning model may be as follows: modifying the confidence value returned by the machine learning model to any value in a predetermined interval, wherein the minimum value in the predetermined interval is greater than 0 and the maximum value is less than 1. For example, the predetermined interval may be [0.51, 0.62]. In specific implementation, the arbitrary value may be set by itself. This embodiment does not limit the size of the arbitrary value, as long as the arbitrary value is greater than 0 and less than 1.

[0047] Since the basic principle of member speculation attack is: when the input data is in the training data, the confidence value returned by the machine learning model is very close to 1.0 or even equal to 1.0, the confidence value returned by the machine learning model can be used to determine whether the input data is in the training data. Therefore, in the process of retraining the machine learning model, if the input data of the machine learning model is received, the input data can be searched in the first training data first. If the input data is found, the confidence value returned by the machine learning model can be modified to defend against member speculation attack and prevent the attacker from discovering that the machine learning model contains the data of the specified user.

[0048] Figure 3This is a flowchart of a method for deleting user data provided by another embodiment of the present specification. In this embodiment, the hash value of the first training data can be stored in a hash table, and the hash table can be stored in the memory of the server or in a database connected to the server. Figure 3 As shown in this manual Figure 2 In the illustrated embodiment, step 202 may include:

[0049] Step 302, in the process of retraining the machine learning model, after receiving the input data of the above-mentioned machine learning model, the above-mentioned input data is hashed to obtain the hash value corresponding to the above-mentioned input data.

[0050] Step 304: search the hash table for the hash value corresponding to the input data.

[0051] Furthermore, before step 304, the method may also include: superimposing predetermined noise on the first training data to generate attack data; performing hash calculation on the attack data to obtain a hash value corresponding to the attack data; and adding the hash value corresponding to the attack data to the hash table.

[0052] The predetermined noise can be set in the specific implementation. The present embodiment does not limit the form of the predetermined noise. For example, the predetermined noise can be Gaussian noise. That is, the predetermined Gaussian noise can be superimposed on the first training data to generate attack data "close to the training data", and the hash value of the attack data is also added to the hash table, so as to further enhance the defense capability against member speculation attacks.

[0053] The method for deleting user data provided in the embodiments of this specification truly deletes the data of the specified user from the training data and the machine learning model generated by the training, thereby meeting the compliance requirements; and, before the retrained machine learning model is trained, by modifying the confidence value corresponding to the input data that directly hits the training data, or modifying the confidence value corresponding to the input data that is very close to the training data, it can effectively resist member speculation attacks and prevent attackers from discovering that the model contains the data of the specified user, thereby taking into account both compliance and efficiency.

[0054] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0055] Figure 4 A schematic diagram of a user data deletion device provided in one embodiment of this specification is shown in FIG. Figure 4 As shown, the above-mentioned user data deletion device may include: an acquisition module 41, a search module 42, a deletion module 43 and a training module 44;

[0056] The acquisition module 41 is used to acquire a request for deleting user data, wherein the request includes a user identifier corresponding to the user data requested to be deleted;

[0057] A search module 42 is used to search for user data corresponding to the above user identifier in the first training data; wherein the first training data includes data used for training the machine learning model, and the first training data includes user data of at least two users;

[0058] A deleting module 43, configured to delete the found user data from the first training data when the searching module 42 finds the user data corresponding to the user identifier;

[0059] The training module 44 is used to retrain the machine learning model using the second training data after deleting the above user data.

[0060] Figure 4 The user data deletion device provided in the embodiment shown can be used to execute the present invention. Figure 1 The technical solution of the method embodiment shown, its implementation principle and technical effects can be further referred to the relevant description in the method embodiment.

[0061] Figure 5 A schematic diagram of a user data deletion device provided in another embodiment of the present specification, Figure 4 The deletion of user data shown in the device is compared to Figure 5 The user data deletion device shown may also include: a modification module 45;

[0062] The search module 42 is further used to search the input data in the first training data after receiving the input data of the machine learning model during the process of retraining the machine learning model;

[0063] The modification module 45 is used to modify the confidence value returned by the above-mentioned machine learning model when the search module 42 finds the above-mentioned input data.

[0064] In this embodiment, the modification module 45 is specifically used to modify the confidence value returned by the above-mentioned machine learning model to any value in a predetermined interval, and the minimum value in the above-mentioned predetermined interval is greater than 0 and the maximum value is less than 1.

[0065] In this embodiment, the hash value of the first training data is stored in a hash table; the above-mentioned user data deletion device may also include: a hash module 46;

[0066] The hash module 46 is used to perform hash calculation on the input data to obtain a hash value corresponding to the input data;

[0067] The search module 42 is specifically used to search the hash value corresponding to the input data in the hash table.

[0068] Furthermore, the above-mentioned user data deletion device may further include: a generation module 47 and an adding module 48;

[0069] A generating module 47, configured to superimpose predetermined noise on the first training data to generate attack data before the searching module 42 searches the hash value corresponding to the input data in the hash table;

[0070] The hash module 46 is further used to perform hash calculation on the attack data to obtain a hash value corresponding to the attack data;

[0071] The adding module 48 is used to add the hash value corresponding to the above attack data to the above hash table.

[0072] Figure 5 The user data deletion device provided in the embodiment shown can be used to execute the present invention. Figure 1 to Figure 3 The technical solution of the method embodiment shown, its implementation principle and technical effects can be further referred to the relevant description in the method embodiment.

[0073] Figure 6 A schematic diagram of the structure of an electronic device provided in one embodiment of this specification, such as Figure 6 As shown, the electronic device may include at least one processor; and at least one memory connected to the processor in communication, wherein: the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the instructions of this specification. Figure 1 to Figure 3 The illustrated embodiment provides a method for deleting user data.

[0074] Among them, the above-mentioned electronic device can be a server, for example: a server for training a machine learning model. The above-mentioned server can be set in the cloud. This embodiment does not limit the form of the above-mentioned electronic device.

[0075] Figure 6 A block diagram of an exemplary electronic device suitable for implementing the embodiments of the present description is shown. Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of this specification.

[0076] like Figure 6 As shown, the electronic device is in the form of a general computing device. The components of the electronic device may include, but are not limited to: one or more processors 410, a communication interface 420, a memory 430, and a communication bus 440 connecting different components (including the memory 430, the communication interface 420 and the processing unit 410).

[0077] The communication bus 440 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, or a local bus using any of a variety of bus structures. For example, the communication bus 440 may include, but is not limited to, an industry standard architecture (ISA) bus, a micro channel architecture (MCA) bus, an enhanced ISA bus, a video electronics standards association (VESA) local bus, and a peripheral component interconnection (PCI) bus.

[0078] Electronic devices typically include a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device, including volatile and non-volatile media, removable and non-removable media.

[0079] The memory 430 may include a computer system readable medium in the form of a volatile memory, such as a random access memory (RAM) and / or a cache memory. The memory 430 may include at least one program product having a set (e.g., at least one) of program modules configured to execute the instructions of the present invention. Figure 1 to Figure 3 Functionality of the illustrated embodiment.

[0080] A program / utility having a set (at least one) of program modules may be stored in the memory 430, such program modules including - but not limited to - an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include the implementation of a network environment. The program modules generally execute the instructions in this specification. Figure 1 to Figure 3 The functions and / or methods in the described embodiments.

[0081] The processor 410 executes various functional applications and data processing by running the programs stored in the memory 430, such as implementing the present specification. Figure 1 to Figure 3The illustrated embodiment provides a method for deleting user data.

[0082] The embodiment of the present specification provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, wherein the computer instructions enable the computer to execute the present specification. Figure 1 to Figure 3 The illustrated embodiment provides a method for deleting user data.

[0083] The above-mentioned non-transient computer-readable storage medium can adopt any combination of one or more computer-readable media. Computer-readable media can be computer-readable signal media or computer-readable storage media. Computer-readable storage media can be, for example, - but not limited to - electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination of the above. More specific examples (non-exhaustive lists) of computer-readable storage media include: electrical connections with one or more wires, portable computer disks, hard disks, random access memories (RAM), read-only memories (read only memory, ROM), erasable programmable read-only memories (erasable programmable read only memory, EPROM) or flash memory, optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this document, computer-readable storage media can be any tangible medium containing or storing programs, which can be used by instruction execution systems, devices or devices or used in combination with them.

[0084] Computer-readable signal media may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0085] The program code embodied on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wire, optical cable, radio frequency (RF), etc., or any suitable combination of the foregoing.

[0086] Computer program code for performing the operations of the present specification may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0087] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0088] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of this specification. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

[0089] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this specification, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0090] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of this specification includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of this specification belong.

[0091] The word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.

[0092] It should be noted that the terminals involved in the embodiments of this specification may include but are not limited to personal computers (PCs), personal digital assistants (PDAs), wireless handheld devices, tablet computers, mobile phones, MP3 players, MP4 players, etc.

[0093] In the several embodiments provided in this specification, 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. For example, 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.

[0094] In addition, each functional unit in each embodiment of this specification 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. The above integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0095] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the method described in each embodiment of this specification. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes.

[0096] The above description is only a preferred embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this specification should be included in the scope of protection of this specification.

Claims

1. A method for deleting user data, comprising: Obtaining a request for deleting user data, wherein the request includes a user identifier corresponding to the user data requested to be deleted; Searching for user data corresponding to the user identifier in first training data; wherein the first training data includes data used to train a machine learning model, and the first training data includes user data of at least two users; If user data corresponding to the user identifier is found, deleting the found user data from the first training data; Retraining the machine learning model using the second training data after deleting the user data; Wherein, the method further comprises: In the process of retraining the machine learning model, after receiving the input data of the machine learning model, searching for the input data in the first training data; If the input data is found, modifying the confidence value returned by the machine learning model; The hash value of the first training data is stored in a hash table; The searching the input data in the first training data comprises: Performing hash calculation on the input data to obtain a hash value corresponding to the input data; Searching the hash table for a hash value corresponding to the input data; Before searching the hash table for the hash value corresponding to the input data, the method further includes: superimposing predetermined noise on the first training data to generate attack data; Performing hash calculation on the attack data to obtain a hash value corresponding to the attack data; Add the hash value corresponding to the attack data to the hash table.

2. The method according to claim 1, wherein: The modifying the confidence value returned by the machine learning model comprises: The confidence value returned by the machine learning model is modified to any value in a predetermined interval, where the minimum value in the predetermined interval is greater than 0 and the maximum value is less than 1.

3. A device for deleting user data, comprising: An acquisition module, used to acquire a request for deleting user data, wherein the request includes a user identifier corresponding to the user data requested to be deleted; A search module, configured to search for user data corresponding to the user identifier in first training data; wherein the first training data includes data used to train a machine learning model, and the first training data includes user data of at least two users; a deleting module, configured to delete the found user data from the first training data when the searching module finds the user data corresponding to the user identifier; A training module, used to retrain the machine learning model using the second training data after deleting the user data; Wherein, the device further comprises: a modification module; The search module is further configured to search the input data in the first training data after receiving the input data of the machine learning model during the process of retraining the machine learning model; The modification module is used to modify the confidence value returned by the machine learning model when the search module finds the input data; Wherein, the hash value of the first training data is stored in a hash table; the device further comprises: a hash module, a generation module and an addition module; The hash module is used to perform hash calculation on the input data to obtain a hash value corresponding to the input data; The search module is specifically used to search the hash value corresponding to the input data in the hash table; The generating module is configured to superimpose predetermined noise on the first training data to generate attack data before the searching module searches the hash value corresponding to the input data in the hash table; The hash module is further used to perform hash calculation on the attack data to obtain a hash value corresponding to the attack data; The adding module is used to add the hash value corresponding to the attack data to the hash table.

4. The device according to claim 3, wherein: The modification module is specifically used to modify the confidence value returned by the machine learning model to any value in a predetermined interval, where the minimum value in the predetermined interval is greater than 0 and the maximum value is less than 1.

5. An electronic device comprising: at least one processor; as well as at least one memory in communication with the processor, wherein: The memory stores program instructions executable by the processor, and the processor can execute the method according to any one of claims 1 to 2 by calling the program instructions. 6 . A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions enable the computer to execute the method according to claim 1 .