Training-data generation program, method, and device
The training data generation device addresses biases in machine learning models by classifying data into attribute-based groups, adjusting label attributes, and using optimization to meet fairness criteria, effectively controlling biases and improving model fairness and accuracy.
Patent Information
- Application Number
- PCT/JP2023/007895
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-02
- Publication Date
- 2024-09-06
AI Technical Summary
Existing machine learning models often exhibit biases in decision-making processes, particularly in attributes like gender and race, leading to discriminatory outcomes, and controlling bias across multiple attributes is challenging due to interdependence among groups.
A training data generation device and method that classifies data into groups based on attribute values, calculates bias metrics, and adjusts label attributes to ensure that each group's bias falls within predefined standards, using an optimization problem to correct biases while considering priorities and independence between groups.
Effectively controls bias in machine learning models to meet specific fairness criteria for each group, ensuring that biases are within set standards, thereby improving fairness and accuracy in decision-making processes.
Smart Images

Figure JP2023007895_06092024_PF_FP
Abstract
Description
Training data generation program, method, and device
[0001] The disclosed technology relates to a training data generation program, a training data generation method, and a training data generation device.
[0002] Traditionally, decisions regarding individuals, such as entrance exams, hiring, and credit, have been made using data about individuals containing attribute values for multiple attributes and machine learning models generated by machine learning. In such cases, attribute values for protected attributes such as gender and race can be biased, resulting in discriminatory predictions by the machine learning model. To mitigate such biases in machine learning, there is a field known as fairness-aware machine learning, which aims to improve not only prediction accuracy but also fairness.
[0003] In addition, the combination of multiple attributes can sometimes affect the prediction results of a machine learning model. To address this issue, there are technologies that correct bias in the rate of positive examples for each group that classifies data by a combination of multiple attributes.
[0004] For example, a device has been proposed that acquires multiple data sets, each labeled as a positive example or a negative example, and calculates the ratio of the number of positive example data sets to the number of negative example data sets for multiple types of pairs of a first attribute and a second attribute associated with each of the multiple data sets. If the difference between the calculated ratios is equal to or greater than a threshold, the device identifies candidate data for modification from among data sets in which a first attribute and a second attribute corresponding to the first type are associated, based on the ratios for each combination of the first type and all other types. The device also selects first data sets from among data sets in which a first attribute and a second attribute corresponding to the first type are associated, based on the candidate data for modification identified for each combination. The device then causes a computer to execute a process of generating machine-learned data by modifying the label of the first data sets included in the multiple data sets.
[0005] International Publication No. 2022 / 044064
[0006] Kenji Kobayashi and Yuri Nakao, "One-vs.-One Mitigation of Intersectional Bias: A General Method for Extending Fairness-Aware Binary Classification," DITTET 2021.
[0007] The above-mentioned conventional technologies aim to mitigate bias between groups based on attributes, i.e., to eliminate bias in the rate of positive cases between groups. For example, there have been cases where a machine learning model that performs face recognition based on a person's facial image had a low recognition rate for black women, but the recognition rate should be similar regardless of race or gender. However, there are cases where it is desirable to intentionally control bias in specific groups. For example, an IT company wants to promote women's participation in the workforce and prioritize hiring women in science and engineering. In this case, it is desirable to control the bias against women in science and engineering in the machine learning model that makes hiring decisions so that it reaches a target value.
[0008] However, when bias correction is performed by focusing on a group of certain attributes, if the groups are not independent, the bias of groups of other attributes may also change, making it difficult to achieve the bias target for each of multiple groups.
[0009] In one aspect, the disclosed technology aims to control the bias of each group obtained by classifying data by attributes so that it falls within a standard set for each group.
[0010] In one aspect, the disclosed technology receives a bias criterion and a priority for each of a plurality of groups defined by values of one or more attributes of a first plurality of data. The disclosed technology also generates a second plurality of data by correcting data from the first plurality of data corresponding to each of the plurality of groups based on the bias criterion and a degree of data correction for each of the plurality of groups according to the priority. The disclosed technology then generates training data by executing an optimization problem based on the bias criterion using the second plurality of data as initial values.
[0011] As one aspect, it has an effect that the bias of each group obtained by classifying data by attribute value can be controlled so that it falls within a standard set for each group.
[0012] FIG. 1 is a functional block diagram of a training data generation device; FIG. 2 is a diagram showing an example of an input data set; FIG. 3 is a diagram showing an example of setting information; FIG. 4 is a block diagram showing a schematic configuration of a computer that functions as a training data generation device; FIG. 5 is a flowchart showing an example of training data generation processing; and FIG. 6 is a diagram for explaining the training data generation processing.
[0013] Hereinafter, an example of an embodiment of the disclosed technology will be described with reference to the drawings.
[0014] 1 , a training data generation device 10 according to this embodiment functionally includes a control unit 12. The control unit 12 further includes a receiving unit 14, a first generation unit 16, a second generation unit 18, and a training unit 20.
[0015] The receiving unit 14 receives the input data set 30 and the setting information 32 input to the training data generation device 10 .
[0016] FIG. 2 shows an example of an input dataset 30. The example of FIG. 2 is an example of a dataset for generating training data used to train a machine learning model 38 that determines pass / fail of a test. In the example of FIG. 2, each row is one piece of data, and each piece of data includes attribute values for multiple attributes. The attributes include protected attributes that need to be prevented from being treated discriminatory, attributes other than the protected attributes, and label attributes that indicate whether the data is a positive example or a negative example. In the example of FIG. 2, gender and race are examples of protected attributes, grade A and grade B are examples of attributes other than the protected attributes, and pass / fail is an example of a label attribute. The input dataset is an example of the "first plurality of data" of the disclosed technology.
[0017] As shown in FIG. 3 , the setting information 32 includes criteria and priorities for each group. A group is defined by the attribute values of one or more attributes among multiple attributes of data. In this embodiment, data is classified into groups by combinations of attribute values of one or more protected attributes. Hereinafter, the group name of each group will be represented by the attribute value of the data belonging to that group. For example, as a group based on the attribute value of one attribute, a group with a gender attribute value of "female" will be referred to as a "female group" or simply "female." Furthermore, as a group based on a combination of attribute values of multiple attributes, a group with a gender attribute value of "female" and a race attribute value of "white" will be referred to as a "female x white group" or simply "female x white." From the input dataset of FIG. 2 , groups are formed: female, male, white, non-white, white x female, non-white x female, white x male, and non-white x male.
[0018] The standard for each group is a range indicated by the upper and lower limits of the bias that each group must achieve. Hereinafter, the average of the upper and lower limits of the standard is referred to as the "target value." In this embodiment, the bias is expressed using Disparate Impact (DI), which is an example of a fairness index, as shown in the following equation (1).
[0019]
[0020] The numerator on the right side of equation (1) is the positive example rate of the target group, and the denominator is the positive example rate of groups other than the target group. The positive example rate is the number of positive example data items relative to the total number of data items. A positive example is, for example, data in which an attribute corresponding to a target variable in binary classification has one of the values, while a negative example is, for example, data in which the attribute has the other value. A DI of <1 indicates that the positive example rate of the group is lower than that of the others, and a DI of >1 indicates that the positive example rate of the group is higher than that of the others. For example, a DI (female) of 0.6 indicates that the positive example rate of women is lower than that of the others, and a DI (male) of 1.5 indicates that the positive example rate of men is higher than that of the others. Note that the index representing bias is not limited to DI, and any index representing the deviation in the positive example rate of each group may be used.
[0021] The priority for each group refers to the priority when correcting data (hereinafter referred to as "bias control") so that the bias for each group falls within a standard. When performing bias control, there are cases where it is desirable to correct the bias of a certain group so that it exceeds a target value, and cases where it is acceptable not to reach the target value as long as the bias falls within the standard. For example, there is a case where it is desirable to ensure that the "non-white x female" group achieves the target value while also ensuring that the bias of the "white x male" group falls within the standard. The priority is an index for determining the degree of data correction for each group, taking such cases into consideration. In the example of FIG. 3 , the setting information 32 includes an implementation probability (described in detail below) indicating the degree of correction as a priority. The implementation probability is set to be higher as the priority is higher and lower as the priority is lower.
[0022] The first generator 16 generates a modified data set by modifying data corresponding to each of the plurality of groups from the input data set based on the bias criterion and the degree of data modification for each of the plurality of groups according to the priority. The modified data set is an example of the "second plurality of data" of the disclosed technology.
[0023] Specifically, the first generation unit 16 selects two groups from multiple groups that are independent of each other as the target for data correction. If bias control for one group affects the bias of another group, the first generation unit 16 determines that the two groups are non-independent. For example, if bias control for "non-white x female" is performed, it also affects the bias for "female." In this case, the bias of a group affected by bias control for another group may fall outside the standard. Therefore, the first generation unit 16 initially performs bias control on the independent groups.
[0024] More specifically, the first generation unit 16 determines whether all pairs of two groups selected from the plurality of groups are independent or non-independent. For example, if the two groups in a pair contain the same attribute value, the first generation unit 16 determines that the pair is non-independent. For example, the first generation unit 16 determines that "non-white x female" and "female" are non-independent, and that "non-white x female" and "white x male" are independent.
[0025] The first generation unit 16 calculates an evaluation score indicating the need for correction for each data item included in each group of independent pairs. For example, the first generation unit 16 attempts bias control for each pair and identifies the data item to be corrected in the attempt. Note that the first generation unit 16 only identifies the data item to be corrected and does not actually correct it. The first generation unit 16 aggregates the results of the attempts for each pair for each group and calculates an evaluation score for each data item in the group based on the number of times the data item was identified as data to be corrected. For example, the first generation unit 16 calculates the evaluation score as the ratio of the number of times the data item was identified to the number of attempts.
[0026] Furthermore, the first generation unit 16 calculates an evaluation score threshold for each group (hereinafter also referred to as an "independent group") in which the evaluation score of each data item is calculated, based on the difference between the target value and the current DI. For example, in the case of calculating an evaluation score indicating that the larger the value, the more likely the data item is to be selected as a data item to be corrected, as described above, the first generation unit 16 calculates a threshold value according to the difference between the target value and the current DI, which decreases as the difference increases. A large difference between the target value and the current DI means that more data needs to be corrected to correct the bias.
[0027] The first generation unit 16 selects a group to be corrected from the independent groups and performs bias control. The first generation unit 16 selects, as the group to be corrected, a group whose current DI does not fall within the standard and which includes data whose evaluation score is equal to or greater than the calculated threshold among data not yet selected as a target for data correction. When there are multiple groups to be corrected, the first generation unit 16 may select the groups in descending order of the difference between the target value and the current DI.
[0028] The first generation unit 16 selects, from among the data included in the selected group whose evaluation score is equal to or greater than a threshold, a number of data items corresponding to the magnitude of the difference between the target value multiplied by the execution probability and the current DI, in descending order of evaluation score. Then, the first generation unit 16 performs corrections, such as changing the label attribute of negative example data to the value of positive examples, so that the DI, which indicates bias, falls within the standard range. By using the target value multiplied by the execution probability, a group with a low execution probability set according to priority has fewer data items to be corrected than would normally be selected, thereby reducing the degree of bias control.
[0029] The first generator 16 performs the bias control described above until there are no more groups that can be selected as groups to be corrected, and stores the data set at the time when there are no more selectable groups in a predetermined storage area as the corrected data set 34. At this stage, the corrected data set contains independent groups whose bias has reached the target value, independent groups whose bias has not reached the target value, and non-independent groups for which bias control has not been performed.
[0030] The second generation unit 18 generates training data by solving an optimization problem based on a bias criterion using the corrected dataset 34 generated by the first generation unit 16 as an initial value. Running the optimization problem based on the bias criterion involves correcting selected data by solving a mathematical optimization problem so that the bias of each of multiple groups falls within a criterion that takes priority into account. The second generation unit 18 performs corrections such as changing the label attribute of negative example data to the value of positive examples so that the DI indicating bias falls within the criterion. The second generation unit 18 stores the dataset obtained by solving the optimization problem as a training dataset 36 in a predetermined storage area.
[0031] The training unit 20 trains a machine learning model 38 using the training dataset 36 and outputs the trained machine learning model 38 .
[0032] The training data generation device 10 may be realized, for example, by a computer 40 shown in FIG. 4 . The computer 40 includes a CPU (Central Processing Unit) 41, a GPU (Graphics Processing Unit) 42, a memory 43 serving as a temporary storage area, and a non-volatile storage device 44. The computer 40 also includes an input / output device 45 such as an input device and a display device, and an R / W (Read / Write) device 46 that controls reading and writing of data from and to a storage medium 49. The computer 40 also includes a communication I / F (Interface) 47 that is connected to a network such as the Internet. The CPU 41, GPU 42, memory 43, storage device 44, I / O device 45, R / W device 46, and communication I / F 47 are connected to one another via a bus 48.
[0033] The storage device 44 is, for example, a hard disk drive (HDD), a solid state drive (SSD), or a flash memory. The storage device 44, which serves as a storage medium, stores a training data generation program 50 for causing the computer 40 to function as the training data generation device 10. The training data generation program 50 includes an acceptance process control instruction 54, a first generation process control instruction 56, a second generation process control instruction 58, and a training process control instruction 60. The storage device 44 also includes an information storage area 70 in which information constituting each of the correction data set 34 and the training data set 36 is stored.
[0034] The CPU 41 reads the training data generation program 50 from the storage device 44, loads it into the memory 43, and sequentially executes the control instructions contained in the training data generation program 50. The CPU 41 operates as the reception unit 14 shown in FIG. 1 by executing the reception process control instruction 54. The CPU 41 operates as the first generation unit 16 shown in FIG. 1 by executing the first generation process control instruction 56. The CPU 41 operates as the second generation unit 18 shown in FIG. 1 by executing the second generation process control instruction 58. The CPU 41 operates as the training unit 20 shown in FIG. 1 by executing the training process control instruction 60. As a result, the computer 40 that has executed the training data generation program 50 functions as the training data generation device 10. The CPU 41 that executes the program is hardware. A portion of the program may be executed by the GPU 42.
[0035] The functions realized by the training data generation program 50 may be realized, for example, by a semiconductor integrated circuit, more specifically, an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array), or the like.
[0036] Next, the operation of the training data generation device 10 according to this embodiment will be described. When an input data set 30 and setting information 32 are input to the training data generation device 10 and an instruction to generate a training data set 36 is issued, the training data generation device 10 executes the training data generation process shown in Fig. 5. Note that the training data generation process is an example of a training data generation method of the disclosed technology.
[0037] In step S10, the receiving unit 14 receives the input data set 30 input to the training data generation device 10 and the setting information 32 including the bias criteria and priority (in this embodiment, the implementation probability) for each group.
[0038] Next, in step S12, the first generation unit 16 determines whether all pairs, which are combinations of two groups selected from the multiple groups formed from the input dataset 30, are independent or non-independent. The first generation unit 16 also attempts bias control for each pair of independent groups and identifies data to be corrected in the attempt. The first generation unit 16 then aggregates the results of the pair-by-pair attempt for each group, and calculates an evaluation score for each data item in the group based on the number of times that each data item in the group was identified as data to be corrected.
[0039] Next, in step S14, the first generation unit 16 calculates an evaluation score threshold for each independent group based on the difference between the target value and the current DI. Next, in step S16, the first generation unit 16 determines whether or not there is a group to be corrected among the independent groups. The first generation unit 16 determines, as a group to be corrected, a group whose current DI does not fall within the standard and which includes data whose evaluation score is equal to or greater than the calculated threshold among the data not selected as a target for data correction. If there is a group to be corrected, the process proceeds to step S18.
[0040] In step S18, the first generation unit 16 selects a group to be corrected that was determined to exist in step S16. If there are multiple groups to be corrected, the first generation unit 16 may select the groups in descending order of the difference between the target value and the current DI. Next, in step S20, the first generation unit 16 selects, from the data included in the selected group and having an evaluation score equal to or greater than a threshold, a number of data items corresponding to the difference between the target value multiplied by the execution probability and the current DI, in descending order of evaluation score. The first generation unit 16 then performs bias control by, for example, changing the label attribute of negative example data to the value of positive example data so that the DI indicating bias falls within the standard range, stores the corrected dataset 34 in a predetermined storage area, and returns to step S14. The first generation unit 16 updates the corrected dataset 34 each time it performs the bias control in step S20.
[0041] If it is determined in step S16 that no group to be corrected exists, the process proceeds to step S22. In step S22, the second generation unit 18 generates training data by executing an optimization problem based on the bias criterion using the corrected data set 34 stored in a predetermined storage area as an initial value. The second generation unit 18 stores the generated training data set 36 in a predetermined storage area, and the training data generation process ends.
[0042] Once the training dataset 36 is generated, the training unit 20 trains the machine learning model 38 using the generated training dataset 36 and outputs the trained machine learning model 38 .
[0043] As described above, the training data generation device according to this embodiment accepts bias criteria and priorities for each of multiple groups defined by the values of one or more attributes of a plurality of attributes in an input dataset. The training data generation device also generates modified datasets by modifying data corresponding to each of the multiple groups in the input dataset based on the bias criteria and the degree of data modification for each of the multiple groups according to the priorities. The training data generation device then generates training data by executing an optimization problem based on the bias criteria using the modified dataset as an initial value. This allows the bias of each group obtained by classifying data by attribute values to be controlled so that it falls within the criteria set for each group. In other words, rather than relaxing each group, bias control tailored to the purpose of the task using the machine learning model is possible.
[0044] FIG. 6 also shows an outline of the training data generation process using a specific example. The numerical values in each quadrant in FIG. 6 represent the DI of the group corresponding to that quadrant. The training data generation device first performs bias control for independent groups based on the bias criterion and priority (execution probability in the above embodiment) for each group. The training data generation device then uses the modified data set generated by performing bias control for the independent groups as the initial value for the optimization problem. The training data generation device performs bias control based on the bias criterion and priority for each group by solving the optimization problem, including non-independent and target-unachieved groups.
[0045] When bias control is performed as a simple optimization problem in which the biases of multiple non-independent groups satisfy a criterion, it is necessary to evaluate the bias criterion for all groups for correction of positive examples or negative examples of all data, which increases the amount of calculation. In the above embodiment, when solving the optimization problem, it is possible to start from an appropriate initial solution, so that an appropriate suboptimal solution can be obtained with a small amount of calculation.
[0046] In the above embodiment, the setting information includes the execution probability as a priority, but this is not limiting. For example, the setting information may include priorities such as high, medium, and low, and a ranking in order of priority. In this case, the training data generation device may determine the execution probability according to the received priority. For example, the training data generation device may determine the execution probability as follows: if the priority is "high," the execution probability is "1.0," if the priority is "medium," the execution probability is "0.8," and if the priority is "low," the execution probability is "0.6." Furthermore, the training data generation device may determine the execution probability so that the higher the priority ranking, the higher the execution probability, and the lower the priority ranking, the lower the execution probability.
[0047] In the above embodiment, the training data generation program is stored (installed) in advance in a storage device, but this is not limiting. The program according to the disclosed technology may be provided in a form stored in a storage medium such as a CD-ROM, a DVD-ROM, or a USB memory.
[0048] 10 Training data generation device 12 Control unit 14 Reception unit 16 First generation unit 18 Second generation unit 20 Training unit 30 Input dataset 32 Setting information 34 Corrected dataset 36 Training dataset 38 Machine learning model 40 Computer 41 CPU 42 GPU 43 Memory 44 Storage device 45 Input / output device 46 R / W device 47 Communication I / F 48 Bus 49 Storage medium 50 Training data generation program 54 Reception process control command 56 First generation process control command 58 Second generation process control command 60 Training process control command 70 Information storage area
Claims
1. A training data generation program that causes a computer to execute the following processes: receive a bias criterion and priority for each of a plurality of groups defined by the values of one or more attributes among a plurality of attributes of a first plurality of data; generate a second plurality of data by correcting data among the first plurality of data corresponding to each of the plurality of groups based on the bias criterion and the degree of data correction for each of the plurality of groups according to the priority; and generate training data by executing an optimization problem based on the bias criterion using the second plurality of data as initial values.
2. The training data generation program according to claim 1, characterized in that the process of generating the second plurality of data includes selecting two groups from the plurality of groups that are independent of each other and setting the data as a target for correction.
3. The training data generation program of claim 1 or 2, characterized in that the process of generating the second plurality of data includes selecting data to be corrected based on an evaluation score indicating the need for correction for each data included in each of the plurality of groups.
4. The training data generation program of claim 3, characterized in that the process of generating the second plurality of data includes calculating the evaluation score for each pair of two groups selected from the plurality of groups based on whether the data is likely to be selected when correcting to satisfy the bias criterion based on the bias criterion and the degree.
5. The training data generation program according to claim 1 or 2, characterized in that the process of generating the second plurality of data includes determining the degree of correction to be greater the higher the priority.
6. The training data generation program according to claim 1 or 2, wherein executing an optimization problem based on the bias criterion comprises correcting the selected data by solving a mathematical optimization problem so that the bias of each of the multiple groups becomes the bias criterion.
7. The training data generation program according to claim 1 or 2, characterized in that the computer is caused to execute a process of training a machine learning model using the generated training data.
8. A training data generation method, characterized in that a computer executes the following processes: receiving a bias criterion and a priority for each of a plurality of groups defined by the values of one or more attributes among a plurality of attributes of a first plurality of data; generating a second plurality of data by correcting data among the first plurality of data corresponding to each of the plurality of groups based on the bias criterion and the degree of data correction for each of the plurality of groups according to the priority; and generating training data by executing an optimization problem based on the bias criterion using the second plurality of data as initial values.
9. The training data generating method according to claim 8, characterized in that the process of generating the second plurality of data includes selecting two groups from the plurality of groups that are independent of each other, and setting the data as a target for correction.
10. The training data generation method described in claim 8 or claim 9, characterized in that the process of generating the second plurality of data includes selecting data to be corrected based on an evaluation score indicating the need for correction for each data included in each of the plurality of groups.
11. The training data generation method described in claim 10, characterized in that the process of generating the second plurality of data includes calculating the evaluation score for each pair of two groups selected from the plurality of groups based on whether the data is likely to be selected when correcting to satisfy the bias criterion based on the bias criterion and the degree.
12. The training data generating method according to claim 8 or 9, characterized in that the process of generating the second plurality of data includes determining the degree of correction to be greater the higher the priority.
13. The training data generation method according to claim 8 or claim 9, wherein executing an optimization problem based on the bias criterion comprises correcting the selected data by solving a mathematical optimization problem so that the bias of each of the multiple groups becomes the bias criterion.
14. The training data generation method according to claim 8 or 9, characterized in that the computer executes a process of training a machine learning model using the generated training data.
15. A training data generation device comprising a control unit that executes the following processes: accepts a bias criterion and a priority for each of a plurality of groups defined by the values of one or more attributes among a plurality of attributes of a first plurality of data; generates a second plurality of data by correcting data among the first plurality of data corresponding to each of the plurality of groups based on the bias criterion and the degree of data correction for each of the plurality of groups according to the priority; and generates training data by executing an optimization problem based on the bias criterion using the second plurality of data as initial values.
16. The training data generation device according to claim 15, characterized in that the process of generating the second plurality of data includes selecting two groups from the plurality of groups that are independent of each other, and setting the data as a target for correction.
17. A training data generation device as described in claim 15 or claim 16, characterized in that the process of generating the second plurality of data includes selecting data to be corrected based on an evaluation score indicating the need for correction for each data included in each of the plurality of groups.
18. The training data generation device described in claim 17, characterized in that the process of generating the second plurality of data includes calculating the evaluation score for each pair of two groups selected from the plurality of groups, based on whether the data is likely to be selected when correcting to satisfy the bias criterion based on the bias criterion and the degree.
19. A training data generation device as described in claim 15 or 16, characterized in that the process of generating the second plurality of data includes determining the degree of correction to be greater the higher the priority.
20. A training data generation device as described in claim 15 or claim 16, wherein executing an optimization problem based on the bias criterion comprises correcting the selected data by solving a mathematical optimization problem so that the bias of each of the multiple groups becomes the bias criterion.
Citation Information
Patent Citations
Training data generation program, device, and method
WO2021260945A1
Machine learning data generation program, machine learning data generation method, machine learning data generation device, classification data generation program, classification data generation method, and classification data generation device
WO2022044064A1
