Information processing program, information processing method, and information processing device

By adjusting the maximum confidence level within a specified range and maintaining the order of confidence levels, the method strengthens resistance to membership estimation attacks, safeguarding against data leakage in information processing systems.

JP7549240B2Active Publication Date: 2024-09-11FUJITSU LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
JP2021093601
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-06-03
Publication Date
2024-09-11
Estimated Expiration
2041-06-03

AI Technical Summary

Technical Problem

Existing information processing systems using trained models are vulnerable to membership estimation attacks, which can lead to the leakage of confidential personal information.

Method used

An information processing method that modifies the maximum confidence level of class classification results to be within a predetermined numerical range, maintaining the order of confidence levels, thereby making it difficult for attackers to determine if input data is part of the training data.

Benefits of technology

Enhances resistance to membership inference attacks by ensuring the maximum confidence output is within a specified range, preventing attackers from accurately judging data inclusion in the training dataset, while maintaining calculation accuracy for other information processing tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007549240000004
    Figure 0007549240000004
  • Figure 0007549240000003
    Figure 0007549240000003
  • Figure 0007549240000011
    Figure 0007549240000011
Patent Text Reader

Abstract

To increase resistance to a membership estimation attack.SOLUTION: An information processing device 10 uses a learned model 3 for class classification to calculate a certainty factor representing a possibility that classification object data 2 belongs to each of a plurality of classes. Next, the information processing device 10 determines whether or not a maximum certainty factor having a maximum value among respective certainty factors of the plurality of classes is within a prescribed numerical range. If the maximum certainty factor is not included in the numerical range, the information processing device 10 corrects the maximum certainty factor to a value within the numerical range. Then, the information processing device 10 outputs each of the corrected certainty factors of the plurality of classes as a result of class classification to the classification object data 2.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an information processing program, an information processing method, and an information processing device. [Background technology]

[0002] In information and communication technology, a trained model generated by machine learning can be used to provide various data analysis services over a network. For example, a service providing server can use a classification model to estimate the class to which data provided by a user belongs.

[0003] Various technologies have been proposed for services using trained models. For example, an information processing device has been proposed that calculates the confidence level of input data and determines whether to confirm, present to the user, or not process based on multiple thresholds, eliminating inconsistencies even when two or more confirmations are not allowed, while reducing the cost of manual checking. A service construction device has also been proposed that can support the rapid development of services that utilize the results of machine learning. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2004-348507 A [Patent Document 2] JP 2018-97671 A Summary of the Invention [Problem to be solved by the invention]

[0005] When a service that uses a model is provided to an unspecified number of users, it may be subject to attacks from malicious users. One type of attack against a service that uses a trained model is a membership inference attack. A membership inference attack is an attack that infers whether or not the training data used to build the model contains data of a specific individual. If a membership inference attack is permitted, there is a possibility that personal information that should be kept confidential may be leaked.

[0006] For example, a medication dosage prediction model is a trained model used in the medical field. To generate a medication dosage prediction model, data on the medication results of many patients with a specific disease is used as training data. If an attacker is able to determine through a membership inference attack that the training data contains data on a specific patient, the attacker will also be able to determine personal information about the patient, such as that he or she has a specific disease. Conventional classification services are not sufficiently resistant to such membership inference attacks.

[0007] In one aspect, the present invention aims to improve resistance to membership inference attacks. [Means for solving the problem]

[0008] In one proposal, an information processing program is provided that causes a computer to execute the following processes. The computer uses a trained model for class classification to calculate a certainty indicating the possibility that the data to be classified belongs to each of a plurality of classes. The computer then determines whether a maximum certainty, which is the highest value among the certainties of the plurality of classes, is within a predetermined numerical range. If the maximum certainty is not included in the numerical range, the computer corrects the maximum certainty to a value within the numerical range. The computer then outputs the corrected certainty for each of the plurality of classes as a result of classifying the data to be classified. Effect of the Invention

[0009] According to one embodiment, resistance to membership inference attacks is increased. [Brief description of the drawings]

[0010] [Figure 1] FIG. 1 is a diagram illustrating an example of an information processing method that enhances resistance to membership inference attacks. [Diagram 2] FIG. 1 illustrates an example of a system configuration that provides a class classification service. [Diagram 3] FIG. 2 illustrates an example of server hardware. [Figure 4] FIG. 13 is a diagram showing the usage status of a class classification service. [Diagram 5] FIG. 1 illustrates an example of a membership inference attack. [Figure 6] FIG. 13 is a diagram showing an example of a problem that occurs when responding with a descending order of confidence. [Figure 7] FIG. 2 is a block diagram showing an example of a class classification function of the server. [Figure 8] FIG. 13 is a diagram illustrating an example of a certainty factor correction process. [Figure 9] 13 is a flowchart showing an example of a procedure for generating a belief vector with improved resistance to membership inference attacks. [Figure 10] FIG. 13 is a diagram showing an example of a failed membership inference attack. [Figure 11] FIG. 13 is a diagram showing an example of a belief correction that reduces a maximum belief. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] Hereinafter, the present embodiment will be described with reference to the drawings. Note that each embodiment can be implemented in combination with a plurality of other embodiments as long as no contradiction occurs. First Embodiment First, a first embodiment will be described. The first embodiment is an information processing method that enhances resistance to membership inference attacks.

[0012] Fig. 1 is a diagram showing an example of an information processing method in which resistance to membership inference attacks is enhanced. Fig. 1 shows an information processing device 10 that realizes the information processing method according to the first embodiment. The information processing device 10 can implement the information processing method in which resistance to membership inference attacks is enhanced by, for example, executing a predetermined information processing program.

[0013] The information processing device 10 performs class classification processing on data to be classified 2 transmitted from the terminal 1, for example, and outputs a classification result indicating the class to which the data to be classified 2 belongs. To this end, the information processing device 10 has a memory unit 11 and a processing unit 12. The memory unit 11 is, for example, a memory or a storage device included in the information processing device 10. The processing unit 12 is, for example, a processor or an arithmetic circuit included in the information processing device 10.

[0014] The storage unit 11 stores a trained model 3 for class classification. The model 3 is, for example, a neural network. When the processing unit 12 receives the data to be classified 2, it uses the model 3 to calculate a confidence level indicating the possibility that the data to be classified 2 belongs to each of a plurality of classes. For example, when the data to be classified 2 is represented by a feature vector, the processing unit 12 inputs each element included in the feature vector to the model 3 and calculates the output of the model 3. The output of the model 3 is the confidence level for each of the plurality of classes. Note that when the data to be classified 2 is data before being processed into a feature vector, the processing unit 12 may generate the feature vector based on the data to be classified 2.

[0015] After calculating the certainty, the processing unit 12 judges whether the maximum certainty, which is the highest value among the certainty of each of the multiple classes, is within a predetermined numerical range. The predetermined numerical range is, for example, a range of values ​​greater than a preset threshold. When the upper limit of the certainty is "1", the predetermined numerical range is a range of values ​​between the threshold and 1. The predetermined numerical range can also be a range of values ​​equal to or less than a preset threshold.

[0016] When the maximum certainty is not included in a predetermined numerical range, the processing unit 12 corrects the maximum certainty to a value within the numerical range. For example, when the predetermined numerical range is a range of values ​​greater than a threshold, the processing unit 12 corrects the maximum certainty below the threshold to a value greater than the threshold. At this time, the processing unit 12 reduces the values ​​of certainty other than the maximum certainty (certainty to be reduced) so that the total amount of reduction becomes equal to the amount of increase in the maximum certainty while maintaining the order in which the certainty of each of the multiple classes is arranged by value magnitude. For example, the processing unit 12 reduces certainty other than the maximum certainty to be reduced in ascending order from the smallest certainty until the total amount of reduction becomes equal to the amount of increase in the maximum certainty.

[0017] In graph 4 of FIG. 1, the confidence of each class before correction is shown by the height of the bar. In graph 4, the confidence of class "A" is the maximum confidence. The value of the maximum confidence before correction is equal to or less than the threshold. Therefore, the confidence is corrected by the processing unit 12. The correction result is shown in graph 5. In graph 5, 1 / 3 of the increase in class "A" is subtracted from the confidence of each of the other classes "B", "C", and "D". Since the decrease in the confidence of classes "B", "C", and "D" is equal, the order of classes "B", "C", and "D" when sorted by confidence is maintained.

[0018] When the processing unit 12 corrects the maximum certainty, it outputs the corrected certainty for each of the multiple classes as a result of class classification for the classification target data 2. When the maximum certainty of the certainty calculated using the model 3 is within a predetermined numerical range, the processing unit 12 outputs the calculation result as a result of class classification without correcting it. The processing unit 12 transmits the result of class classification to, for example, the terminal 1.

[0019] In this way, if the maximum confidence is outside a predetermined numerical range, the maximum confidence is corrected to be within the numerical range, so that the maximum confidence output as a result of class classification is always within the numerical range. Therefore, even if an attacker performs a membership inference attack using information on whether the maximum confidence when classifying data 2 to be classified is within a certain numerical range, it is difficult for the attacker to correctly determine whether data 2 to be classified is included in the training data. In other words, resistance to membership inference attacks is improved.

[0020] Moreover, the order of the classes according to the certainty is maintained even after the correction. For example, by decreasing the certainty values ​​by a predetermined amount in order from the smallest value, it is possible to reliably prevent the order of the classes from being changed according to the certainty of the correction degree. This makes it possible to minimize the deterioration of information caused by correcting the certainty. As a result, when the result of the class classification is used in other information processing, the deterioration of the calculation accuracy of the other information processing is prevented.

[0021] The predetermined numerical range may be a range of values ​​equal to or less than a threshold value. In this case, the processing unit 12 corrects the maximum certainty that exceeds the threshold value to a value equal to or less than the threshold value. For example, when the maximum certainty is not included in the numerical range, the processing unit 12 increases the values ​​of certainty other than the maximum certainty (certainty to be increased) so that the total increase amount is equal to the decrease amount of the maximum certainty while maintaining the order of the certainty of each of the multiple classes when they are arranged by value magnitude. As a result, the maximum certainty shown in the result of class classification is always equal to or less than the threshold value, making membership estimation attacks difficult.

[0022] Furthermore, the processing unit 12 determines a value within a numerical range using, for example, a random number, and modifies the maximum certainty to the determined value. This makes the value of the maximum certainty after modification a random value, making it possible to prevent an attacker from grasping the presence or absence of modification based on the maximum certainty after modification.

[0023] Second Embodiment Next, a second embodiment will be described. In the second embodiment, resistance to membership inference attacks is improved in a system that provides a class classification service using a model trained by machine learning.

[0024] Fig. 2 is a diagram showing an example of a system configuration for providing a class classification service. A plurality of terminals 31, 32, ... are connected to a server 100 via a network 20. The server 100 is a computer that has a trained model for class classification and provides a class classification service using the model. The plurality of terminals 31, 32, ... are computers used by users who receive the class classification service.

[0025] 3 is a diagram showing an example of server hardware. The server 100 is entirely controlled by a processor 101. A memory 102 and a plurality of peripheral devices are connected to the processor 101 via a bus 109. The processor 101 may be a multiprocessor. The processor 101 is, for example, a central processing unit (CPU), a micro processing unit (MPU), or a digital signal processor (DSP). At least a part of the functions realized by the processor 101 executing a program may be realized by an electronic circuit such as an application specific integrated circuit (ASIC) or a programmable logic device (PLD).

[0026] The memory 102 is used as a main storage device of the server 100. The memory 102 temporarily stores at least a part of the OS (Operating System) program and application programs to be executed by the processor 101. The memory 102 also stores various data used for processing by the processor 101. As the memory 102, for example, a volatile semiconductor storage device such as a RAM (Random Access Memory) is used.

[0027] The peripheral devices connected to the bus 109 include a storage device 103, a GPU (Graphics Processing Unit) 104, an input interface 105, an optical drive device 106, a device connection interface 107, and a network interface 108.

[0028] The storage device 103 electrically or magnetically writes and reads data to and from a built-in recording medium. The storage device 103 is used as an auxiliary storage device for a computer. The storage device 103 stores an OS program, application programs, and various data. Note that, for example, a hard disk drive (HDD) or a solid state drive (SSD) can be used as the storage device 103.

[0029] The GPU 104 is an arithmetic device that performs image processing, and is also called a graphics controller. The GPU 104 is connected to a monitor 21. The GPU 104 displays an image on the screen of the monitor 21 in accordance with an instruction from the processor 101. The monitor 21 may be a display device using an organic EL (Electro Luminescence) display device, a liquid crystal display device, or the like.

[0030] The input interface 105 is connected to the keyboard 22 and the mouse 23. The input interface 105 transmits signals sent from the keyboard 22 and the mouse 23 to the processor 101. Note that the mouse 23 is an example of a pointing device, and other pointing devices can also be used. Examples of other pointing devices include a touch panel, a tablet, a touch pad, and a trackball.

[0031] The optical drive device 106 uses a laser beam or the like to read data recorded on the optical disc 24 or write data to the optical disc 24. The optical disc 24 is a portable recording medium on which data is recorded so that it can be read by reflection of light. The optical disc 24 includes a DVD (Digital Versatile Disc), a DVD-RAM, a CD-ROM (Compact Disc Read Only Memory), a CD-R (Recordable) / RW (ReWritable), etc.

[0032] The device connection interface 107 is a communication interface for connecting peripheral devices to the server 100. For example, a memory device 25 or a memory reader / writer 26 can be connected to the device connection interface 107. The memory device 25 is a recording medium equipped with a communication function with the device connection interface 107. The memory reader / writer 26 is a device that writes data to the memory card 27 or reads data from the memory card 27. The memory card 27 is a card-type recording medium.

[0033] The network interface 108 is connected to the network 20. The network interface 108 transmits and receives data to and from other computers or communication devices via the network 20. The network interface 108 is a wired communication interface that is connected by a cable to a wired communication device such as a switch or a router. The network interface 108 may also be a wireless communication interface that is communicatively connected by radio waves to a wireless communication device such as a base station or an access point.

[0034] The server 100 can realize the processing functions of the second embodiment by the above-mentioned hardware. Each of the multiple terminals 31, 32, etc. has the same hardware as the server 100. In addition, the information processing device 10 shown in the first embodiment also has the same hardware as the server 100.

[0035] The server 100 realizes the processing function of the second embodiment by executing a program recorded in, for example, a computer-readable recording medium. The program describing the processing contents to be executed by the server 100 can be recorded in various recording media. For example, the program to be executed by the server 100 can be stored in the storage device 103. The processor 101 loads at least a part of the program in the storage device 103 into the memory 102 and executes the program. The program to be executed by the server 100 can also be recorded in a portable recording medium such as the optical disk 24, the memory device 25, or the memory card 27. The program stored in the portable recording medium becomes executable after being installed in the storage device 103 under the control of, for example, the processor 101. The processor 101 can also directly read out and execute the program from the portable recording medium.

[0036] The server 100 provides a class classification service to users of the terminals 31, 32, ... by publishing a trained model constructed by machine learning and permitting query access to the model from the terminals 31, 32, .... At this time, there is a possibility that some of the users may become attackers and carry out a membership inference attack.

[0037] FIG. 4 is a diagram showing the usage of the class classification service. By using machine learning technology, a model 42 for class classification can be generated by learning using training data 41. The model 42 is represented by, for example, a neural network. The training data 41 includes learning data used as explanatory variables and data (correct label) used as a target variable. In the case of class classification, the correct label indicates the class to which the learning data belongs.

[0038] In the learning phase of machine learning, when training data is input to the model 42, values ​​such as the weight parameters of the model 42 are optimized so that the class predicted by the model 42 matches the correct label. The output of the model 42 that performs class classification is the probability that the input data belongs to each class. Hereinafter, this probability will be referred to as confidence. For example, if the model 42 classifies data into class A, class B, and class C, the confidence of each class is output. The class with the highest confidence is the class to which the input data is predicted to belong.

[0039] General users 43-45 who use the trained model 42 transmit queries 46-48 to the server 100 using the terminals 31, 32, .... The queries 46-48 indicate, for example, feature amounts of data that the users 43-45 wish to classify. The feature amounts are indicated, for example, by vector data. In the example of Fig. 4, the queries 46-48 are vector data (feature vectors) including four elements.

[0040] The server 100 estimates the class to which the data from which the queries 46-48 were generated belongs by inputting the queries 46-48 to the model 42. The users 43-45 obtain the confidence levels of the classes corresponding to the queries 46-48 from the server 100. The users 43-45 can use the obtained confidence levels for other information processing.

[0041] There is a case where an attacker is included among the users 43 to 45 of the server 100. In the example of FIG. 4, the user 45 is assumed to be the attacker. The user 45 performs, for example, a membership inference attack. The membership inference attack is an attack that determines whether or not personal data 49 acquired by the user 45 is included in the training data 41 used to learn the model 42.

[0042] A successful membership inference attack can reveal to an attacker whether certain data is included in a sensitive dataset. For example, if an attacker learns that F’s personal data49 belongs to the training data for a warfarin dosage prediction model, the attacker will learn that F has a medical history caused by blood clots.

[0043] FIG. 5 is a diagram showing an example of a membership estimation attack. An attacker can send a query to a trained model and obtain a confidence level as a response value. The attacker's objective is to estimate whether person F belongs to the training data of the trained model. The attacker also has data on person F as knowledge. The attacker's attack procedure is as follows.

[0044] First, the attacker obtains the maximum confidence of data that does not belong to the training data in order to set a threshold t for determining whether Mr. F's data belongs to the training data. Specifically, the attacker generates multiple feature vectors having random values, for example. The attacker then inputs the randomly generated feature vectors to the model 42 as queries and obtains a confidence vector for each feature vector. The confidence vector is vector data whose elements are the confidence of each class. Hereinafter, the confidence with the largest value in the confidence vector is defined as the maximum confidence of that confidence vector.

[0045] The attacker determines the threshold t based on the maximum confidence for each confidence vector. For example, the largest value among the multiple maximum confidences obtained is set as the threshold t. In the example of Figure 5, the threshold t is "0.6".

[0046] Next, the attacker generates a feature vector based on the data of F. The attacker then inputs F's feature vector as a query into model 42 to obtain a confidence vector for the class to which F's data belongs. In the example of FIG. 5, the maximum confidence of the confidence vector of F's data is "0.7".

[0047] The attacker compares the maximum confidence of the confidence vector of F's data with a threshold. If the maximum confidence is greater than the threshold t, the attacker infers that F's data belongs to the training data. In the example of Figure 5, the maximum confidence "0.7" is greater than the threshold "0.6", so it is inferred that F's data is included in the training data.

[0048] This membership estimation attack is an attack method that takes advantage of the fact that the maximum confidence obtained in class classification using model 42 tends to be low for data that is not included in the training data.

[0049] As a simple countermeasure against membership inference attacks, it is possible to respond with a descending order of the certainty levels as the result of class classification, instead of responding with the certainty levels themselves. However, if this method is adopted, the user cannot obtain the certainty levels. If the user wants to process information using numerical values ​​of certainty levels, the user cannot perform the intended processing unless he or she can obtain the certainty levels.

[0050] Figure 6 shows an example of a problem that occurs when responding with a descending order of confidence. For example, one machine learning technique is called stacking. Stacking is a machine learning technique in which the predicted value of one model is input as a feature to another model to obtain the desired prediction result.

[0051] For example, the model 42a to be made public on the server 100 is not the trained model 42 as is, but is output after being processed to replace the certainties of the certainty vector output from the model 42 with descending order.

[0052] It is assumed that the user wishes to use model 42a held by server 100 as part of model 50 for stacking. Model 50 inputs feature vectors to a number of models 51-53, and the confidence vectors output from models 51-53 are input to meta-model 54. The output of meta-model 54 becomes the confidence vector predicted by model 50 as a whole.

[0053] In such a case, if the output of the model 42a provided by the server 100 is a descending order of beliefs rather than a belief vector, the prediction results by the model 42a cannot be used for stacking.

[0054] As a countermeasure against membership inference attacks, in addition to the method of replacing the confidence vector with a descending ranking, a method can be considered that makes it difficult for an attacker to calculate an appropriate threshold by, for example, truncating the lowest digits of each confidence in the confidence vector. However, this method has little defensive effect because the change in the maximum confidence in the confidence vector is small. Another possible method is to build a model that satisfies differential privacy (making the dataset available for learning by concealing personal data in the dataset) by adding noise during the learning process. However, adding noise makes the ranking of the confidence easily change, degrading accuracy. Furthermore, it is possible to add perturbations to the calculated confidence so that the assumed attack model makes a false judgment, but this method also degrades accuracy because the ranking of the confidence is not maintained.

[0055] In this way, it is desirable to defend against membership inference attacks while ensuring that the confidence level is output as a result of class classification while maintaining the ranking. Therefore, when the maximum confidence level of the confidence level vector obtained by class classification is equal to or lower than a predetermined threshold, the server 100 according to the second embodiment does not change the ranking of each class when sorted in descending order by confidence level, but corrects the maximum confidence level to a value greater than the threshold. This makes it impossible for an attacker to set an appropriate threshold level for a membership inference attack using the maximum confidence level, thereby providing a defense against membership inference attacks.

[0056] 7 is a block diagram showing an example of a class classification function of the server 100. The server 100 includes a storage unit 110, a query receiving unit 120, a class classification unit 130, a confidence factor correction unit 140, and a prediction result transmission unit 150.

[0057] The storage unit 110 stores a trained model 111. The model 111 is, for example, a neural network similar to the model 42 shown in FIG 4. The storage unit 110 is realized by the memory 102 or the storage device 103.

[0058] The query receiving unit 120 receives queries from the terminals 31, 32, .... Upon receiving a query, the query receiving unit 120 transmits the received query to the classifying unit .

[0059] When the class classification unit 130 receives a query from the query receiving unit 120, it performs a class classification process on the feature vector indicated in the query. For example, the class classification unit 130 acquires the model 111 from the storage unit 110. Then, the class classification unit 130 uses the acquired query as an input to the model 111 and performs a calculation according to the model 111 to calculate a confidence vector. The class classification unit 130 transmits the calculated confidence vector to the confidence correction unit 140.

[0060] The confidence correction unit 140 corrects the confidence so that the maximum confidence of the confidence vector obtained as a result of the class classification is equal to or greater than a predetermined threshold. The method of correcting the confidence will be described later in detail (see FIG. 8, etc.). The confidence correction unit 140 transmits the confidence vector having the corrected confidence to the prediction result transmission unit 150.

[0061] The prediction result transmission unit 150 transmits a confidence vector having the revised confidence as a result of the class classification to the terminal that transmitted the query. Note that the lines connecting the elements shown in Fig. 7 indicate part of the communication paths, and communication paths other than those shown in the figure can also be set. The function of each element shown in Fig. 7 can be realized, for example, by having a computer execute a program module corresponding to that element.

[0062] Next, the confidence factor modification process will be described in detail. 8 is a diagram showing an example of the confidence factor correction process. When the maximum confidence factor falls below a threshold, the confidence factor correction unit 140 adds a value so that the maximum confidence factor becomes equal to or greater than the threshold. The value to be added at this time is assumed to be x.

[0063] Next, the confidence factor correction unit 140 subtracts a numerical value from each confidence factor other than the maximum confidence factor until the sum becomes x so that the ranking of the confidence factors does not change. For example, the confidence factor correction unit 140 performs subtraction processing in ascending order from the minimum confidence factor, and repeats this processing until the sum of the subtracted values ​​becomes x.

[0064] 8 shows graphs 61 to 65 indicating the certainty of each class when data is classified into four classes. Graph 61 shows the certainty calculated by the class classification unit 130. The classes are arranged in descending order of certainty as follows: class "A", class "B", class "C", and class "D". Class "A" has the highest certainty.

[0065] The confidence factor correction unit 140 is preset with a confidence factor threshold. The threshold is determined, for example, based on the maximum confidence factor of a confidence factor vector obtained using a group of feature quantity vectors prepared for threshold calculation. For example, the confidence factor correction unit 140 calculates the average T s The confidence factor correction unit 140 may calculate the threshold value using the standard deviation v of the maximum confidence factor. For example, the confidence factor correction unit 140 may calculate the threshold value using the average T s + an integer multiple of the standard deviation v (T s +2v, etc.) as the threshold value. Furthermore, the confidence modifier 140 may set the upper X percentile value of the maximum confidence as the threshold value.

[0066] In the graph 61, the confidence level of class "A" which is the maximum confidence level is equal to or lower than the threshold value. In this case, the confidence level is corrected by the confidence level correcting unit 140. When correcting the confidence, the confidence correction unit 140 first calculates a descending confidence vector=[p0, p1, . . . , p n The descending confidence vector is a vector obtained by rearranging the elements of the confidence vector output from a model of an n+1 (n is an integer equal to or greater than 1) class classification task in descending order by confidence. p i(i=0,...,n) is the confidence of the class with the (i+1)th highest confidence. In the example of Figure 8, the confidence of class "A" is p0, the confidence of class "B" is p1, the confidence of class "C" is p2, and the confidence of class "D" is p3.

[0067] The confidence modifier 140 adds x (x is a positive real number less than 1) to the confidence of class “A” so that the confidence of class “A” exceeds the threshold. The addition result is shown in graph 62.

[0068] For example, the confidence factor correction unit 140 updates p0, which is the maximum confidence factor, to T+b (b is a random number between 0 and 1-T) (p0=T+b). In this case, "x=T+b-p0". In the state of graph 62, the sum of the certainties of each class exceeds 1, and a contradiction occurs in the probability value. Therefore, the certainty correction unit 140 reduces the certainty by αc in ascending order from the smallest certainty until the total reduction amount becomes x (α is a positive real number less than or equal to 1, and c=p n ).

[0069] The confidence modifier 140 modifies p n If the total decrease amount reaches x during the process, the subtraction process ends. For example, the confidence correction unit 140 updates the confidence factor when x>Σ0 k When αc, p n-1 p n-1 -(x-Σ0 k-1 αc) and terminate.

[0070] When p1 is updated, if the total decrease is less than x, the confidence correction unit 140 sets c=p min Update to p min Repeat in ascending order from (p min is the smallest non-zero confidence level). In the example of FIG. 8, "α=1". In this case, in the state of graph 62, the certainty of class "D" which has the smallest value becomes the subtraction value (αc). The certainty correction unit 140 subtracts the determined subtraction values ​​in order from the lowest certainty. In graph 63, the height of the hatched areas in classes "B", "C", and "D" indicates the subtraction value. The number in the upper right of each hatched area indicates the order of subtraction. The height of the hatched area in class "A" indicates the total subtraction value.

[0071] In the state of graph 63, the sum of the subtraction values ​​has not reached the added value x. Therefore, the confidence correction unit 140 performs the subtraction process of the confidence of each class again. In the example of FIG. 8, the confidence of class "C" having the smallest confidence value other than "0" at this point is determined as the subtraction value. The confidence correction unit 140 subtracts the determined subtraction values ​​in order of decreasing confidence. In the example of FIG. 8, when the subtraction value is subtracted from the confidence of class "C", the difference between the sum of the subtraction values ​​up to that point and the added value x becomes less than the subtraction value. Therefore, the confidence correction unit 140 subtracts only the difference between the sum of the subtraction values ​​up to that point and the added value x from the confidence of class "B".

[0072] The result of the confidence correction is shown in graph 65. If the maximum confidence of the confidence vector calculated by the classifier 130 is equal to or less than the threshold, the maximum confidence is corrected to exceed the threshold as shown in graph 65. In addition, subtraction is performed on confidences other than the maximum confidence so that the order of magnitude of the values ​​is not changed. This allows the sum of all confidences to be "1" even after correction, preventing the occurrence of inconsistencies in the probability values.

[0073] In the example of Fig. 8, x is added to the maximum confidence level and then subtracted from the other confidence levels, but subtraction may be performed before addition.Furthermore, each time a certainty level is subtracted, the subtracted amount may be added to the maximum confidence level.

[0074] Next, a procedure for generating a belief vector with improved resistance to membership inference attacks will be specifically described. 9 is a flow chart showing an example of a procedure for generating a belief vector with improved resistance to membership inference attacks. The process shown in FIG. 9 will be described below in order of step numbers.

[0075] [Step S101] The query receiving unit 120 receives a query sent to the server 100 from any terminal. [Step S102] The class categorization unit 130 calculates a confidence level for each class corresponding to the feature vector indicated in the query, using the trained model 111. The class categorization unit 130 transmits a confidence level vector indicating the confidence level for each class to the confidence level correction unit 140.

[0076] [Step S103] The confidence factor modification unit 140 sorts the confidence factors for each class in descending order. For example, the confidence factor modification unit 140 generates a descending confidence factor vector having the confidence factors sorted in descending order as elements.

[0077] [Step S104] The confidence factor correction unit 140 determines whether the maximum confidence factor p0 is greater than the threshold value T. If it is greater than the threshold value T, the confidence factor correction unit 140 proceeds to step S115. If it is equal to or less than the threshold value T, the confidence factor correction unit 140 proceeds to step S105.

[0078] [Step S105] The confidence factor correction unit 140 adds x to the maximum confidence factor p0. For example, the confidence factor correction unit 140 generates a random number b and calculates "x = T + b - p0". Then, the confidence factor correction unit 140 updates the maximum confidence factor p0 to "p0 + x" (= T + b). As a result, the maximum confidence factor p0 becomes a random value equal to or greater than the threshold value T.

[0079] [Step S106] The confidence factor correction unit 140 initializes a variable for confidence factor subtraction. For example, the confidence factor correction unit 140 assigns a minimum confidence factor p n The confidence factor correcting unit 140 also sets k, which indicates the number of repetitions, to "0." The confidence factor correcting unit 140 also sets x', which indicates the subtraction total, to "0."

[0080] [Step S107] The confidence factor correction unit 140 calculates the confidence factor p n-k The value of p n-k In other words, the certainty factor correction unit 140 subtracts the decrease amount "αc" from the certainty factor to be subtracted.

[0081] [Step S108] The confidence factor correction unit 140 updates the sum x′ of the subtraction values ​​to “x′+αc.” That is, the confidence factor correction unit 140 adds the value subtracted in step S107 to the sum of the subtraction values.

[0082] [Step S109] The confidence modifier 140 updates k to “k+1.” As a result, the confidence to be subtracted is changed to the previous element in the descending confidence vector. [Step S110] The confidence factor correction unit 140 judges whether k=n. When k=n, the confidence factor to be subtracted is the maximum confidence factor. When k=n, the confidence factor correction unit 140 advances the process to step S111. When k=n is not the case, the confidence factor correction unit 140 advances the process to step S113.

[0083] [Step S111] The confidence factor correction unit 140 sets c to the smallest confidence factor p min The certainty modifier 140 also initializes k to "0." By initializing k, the certainty to be subtracted is changed to the lowest element of the descending certainty vector.

[0084] [Step S112] The confidence factor correction unit 140 calculates the confidence factor p n-k It is determined whether the value of (the k-th element of the descending confidence vector) is "0". The confidence value of the subtraction target becomes "0" when the value has been updated to "0" in a previous subtraction process, such as the confidence of class "D" in graph 64 in FIG. 8. If the confidence value of the subtraction target is "0", the confidence correction unit 140 advances the process to step S109. If the confidence value of the subtraction target is not "0", the confidence correction unit 140 advances the process to step S113.

[0085] [Step S113] The confidence factor correction unit 140 judges whether the value "x'+αc" obtained by adding the amount of one further reduction to the sum x' of the subtraction values ​​is less than x. If "x'+αc" is less than x, the confidence factor correction unit 140 proceeds to step S107. If "x'+αc" is equal to or greater than x, the confidence factor correction unit 140 proceeds to step S114.

[0086] [Step S114] The confidence factor correction unit 140 calculates the confidence factor p n-k "p n-k In other words, the certainty factor correction unit 140 subtracts the difference between the increase amount x and the sum x' of the decrease amount from the certainty factor to be subtracted.

[0087] [Step S115] The confidence correction unit 140 returns the order of the elements of the descending confidence vector, whose confidence values ​​have been corrected, to the order of the elements for each class in the original confidence vector, thereby generating a corrected confidence vector. The confidence correction unit 140 then outputs the generated confidence vector.

[0088] In this way, the certainty is corrected without changing the order of the certainty of each class. This enhances security against membership estimation attacks. That is, even if an attacker sends a query having a randomly generated feature vector to the server 100, the maximum certainty of the certainty vectors responded to each query will be equal to or greater than the threshold. Therefore, the attacker cannot properly set the maximum certainty threshold for distinguishing between data included in the training data and data not included in the training data, and cannot accurately determine whether or not a particular piece of data belongs to the training data.

[0089] Fig. 10 is a diagram showing an example of a failed membership estimation attack. For example, when an attacker sends a query including a randomly generated feature vector to the server 100, the server 100 performs a class classification process using the model 111 and calculates a confidence vector for each query. The server 100 modifies the confidence of the confidence vectors whose maximum confidence is equal to or less than a threshold. In the example of Fig. 10, the threshold is assumed to be "0.6".

[0090] The maximum confidence of all three confidence vectors shown in Fig. 10 is equal to or less than the threshold. Therefore, the server 100 modifies the confidence and then transmits the modified confidence vector to the attacker's terminal as a response to the query. As a result, the maximum confidence of all confidence vectors acquired by the attacker becomes greater than the threshold. When the attacker calculates the threshold for a membership estimation attack based on the acquired confidence vector, the threshold becomes, for example, "0.8".

[0091] After that, the attacker uses a terminal to generate a feature vector of the data of Mr. F that belongs to the training data, and transmits a query including the feature vector to the server 100. The server 100 uses the model 111 to calculate a confidence vector corresponding to Mr. F's feature vector. In the example of FIG. 10, the maximum confidence of the confidence vector generated according to Mr. F's feature vector is "0.7". Since this maximum confidence is greater than the threshold value for confidence correction of "0.6", the confidence is not corrected. Therefore, the uncorrected confidence vector corresponding to Mr. F's feature vector is transmitted from the server 100 to the attacker's terminal.

[0092] The attacker determines that the maximum confidence of the obtained confidence vector is 0.7, which is smaller than the threshold t=0.8 specified using random feature data. As a result, the attacker infers that Mr. F's data does not belong to the training data.

[0093] As can be seen by comparing the example in Figure 5 with the example in Figure 10, modifying the confidence level prevents an attacker from knowing whether or not Mr. F's data is included in the training data. In other words, resistance to membership inference attacks is improved.

[0094] [Other embodiments] In the second embodiment, the server 100 modifies the confidence levels so that the maximum confidence level for all confidence vectors exceeds a threshold value, but the confidence levels may also be modified so that the maximum confidence level for all confidence vectors is less than a threshold value.

[0095] 11 is a diagram showing an example of the confidence correction for performing a correction to reduce the maximum confidence. For example, the confidence correction unit 140 of the server 100 sets an upper limit threshold for the maximum confidence. For example, the confidence correction unit 140 uses training data to set the top t percentile of the maximum confidence of each of a plurality of confidence vectors obtained from the training data to the upper limit threshold t t Let us assume that.

[0096] The confidence modifier 140 determines whether the maximum confidence of the confidence vector generated by the class classification exceeds an upper threshold t t If the confidence exceeds x, the confidence correction unit 140 performs a confidence correction process to reduce the maximum confidence by x. For example, when correcting the confidence, the confidence correction unit 140 first sorts the elements of the confidence vector in descending order by confidence, and obtains a descending confidence vector=[p0, p1, . . . , p n ] is generated.

[0097] Next, the confidence factor correction unit 140 reduces the maximum confidence factor p0 by x. For example, the confidence factor correction unit 140 reduces the maximum confidence factor p0 by x. s Reduce to t s is the upper threshold t t The value is as follows. The amount of decrease x in this case is expressed as: x = p0 - t s "

[0098] The confidence factor correction unit 140 calculates the corrected p0(=t s) is set to p0=p1+a using, for example, a random number a. The confidence factor correction unit 140 also calculates the corrected p0(=t s ), p0=t t -a is also acceptable.

[0099] Then, the confidence factor correction unit 140 distributes the decreased amount (decrease amount x) to other confidence factors. For example, each p i "p i +x×(p i / (Σ i=1 n p i ))" and update it. Σ i=1 n p i is the sum of the confidence levels other than the maximum confidence level. In other words, the reduction amount x is proportionally distributed to each confidence level other than the maximum confidence level according to the size of the confidence level, and the result is "x × (p i / (Σ i=1 n p i The confidence factor correction unit 140 adds a value determined by proportional distribution to each confidence factor.

[0100] As a result, when the maximum certainty exceeds the threshold as shown in graph 71, the maximum certainty is corrected to be equal to or less than the threshold as shown in graph 72. By performing such certainty correction processing, even if an attacker transmits feature data generated from data of a specific individual included in the training data to the server 100 as a query, the maximum certainty of the certainty vector returned from the server 100 will be equal to or less than the threshold. As a result, the attacker cannot correctly determine whether or not the data of the individual from which the transmitted query was generated was included in the training data.

[0101] Although the embodiments have been described above, the configurations of the parts shown in the embodiments can be replaced with other parts having similar functions. Any other components or steps may be added. Furthermore, any two or more configurations (features) of the above-mentioned embodiments may be combined. [Explanation of symbols]

[0102] 1 Device 2. Classification target data 3 Models 4,5 Graph 10. Information processing device 11 Storage section 12 Processing section

Claims

1. On the computer, Using a trained model for class classification, a confidence score is calculated for each of a number of classes, which indicates the likelihood that the data to be classified belongs to that class. determining whether a maximum certainty value among the certainty values ​​of each of the plurality of classes is within a predetermined numerical range; If the maximum confidence level is not within the range, the maximum confidence level is modified to a value within the range; outputting the corrected confidence levels of each of the plurality of classes as a result of classifying the data to be classified; An information processing program that executes processing.

2. The numerical range is a range of values ​​greater than a threshold value, In the process of correcting the value of the maximum confidence level, the maximum confidence level that is equal to or smaller than the threshold level is corrected to a value that is greater than the threshold level. The information processing program according to claim 1.

3. The computer further comprises: When the maximum certainty is not included in the numerical range, the order of the certainty of each of the plurality of classes is maintained when the certainty is arranged in order of magnitude of value, while decreasing the value of the certainty to be decreased other than the maximum certainty such that the total amount of decrease is equal to the amount of increase of the maximum certainty.

3. The information processing program according to claim 2, which causes processing to be executed.

4. In the process of decreasing the value of the decrease target certainty, the decrease target certainty is decreased in ascending order from the smallest certainty until the sum of the decrease amounts becomes equal to the increase amount of the maximum certainty.

4. The information processing program according to claim 3, which executes processing.

5. The numerical range is a range of values ​​equal to or less than a threshold value, In the process of correcting the value of the maximum confidence level, the maximum confidence level that exceeds the threshold level is corrected to a value equal to or less than the threshold level. The information processing program according to claim 1.

6. The computer further comprises: if the maximum confidence level is not included in the numerical range, increase the values ​​of the confidence levels to be increased other than the maximum confidence level so that the total amount of increase is equal to the amount of decrease in the maximum confidence level, while maintaining the order of the confidence levels of the plurality of classes when they are arranged in order of magnitude of value.

6. The information processing program according to claim 5, which causes processing to be executed.

7. In the process of correcting the value of the maximum confidence level, a value within the numerical range is determined using a random number, and the maximum confidence level is corrected to the determined value.

7. An information processing program according to claim 1.

8. The computer Using a trained model for class classification, a confidence score is calculated for each of a number of classes, which indicates the likelihood that the data to be classified belongs to that class. determining whether a maximum certainty value among the certainty values ​​of each of the plurality of classes is within a predetermined numerical range; If the maximum confidence level is not within the range, the maximum confidence level is modified to a value within the range; outputting the corrected confidence levels of each of the plurality of classes as a result of classifying the data to be classified; Information processing methods.

9. A memory unit that stores a trained model for class classification; a processing unit that uses the model to calculate a certainty indicating the possibility that the data to be classified belongs to each of a plurality of classes, determines whether a maximum certainty having a maximum value among the certainty values ​​of the plurality of classes is within a predetermined numerical range, corrects the maximum certainty to a value within the numerical range if the maximum certainty is not included in the numerical range, and outputs the corrected certainty values ​​of the plurality of classes as a result of classifying the data to be classified; An information processing device having the above configuration.

Citation Information

Patent Citations

  • Information processing method, information processing program, and record medium

    JP2004348507A

  • Privacy information evaluation server, data management method and program

    JP2011180839A

  • Retrieval processing method, data generation method, and information processor

    JP2014098989A

  • Service construction device, service construction method, and service construction program

    JP2018097671A

  • Information processing method, system, and program for countering timing attack

    JP2020031263A