Training data generation program, training data generation method, and information processing device
By segmenting training data based on attribute values and fairness scores, and merging segments with similar trends, the method addresses the issue of biased data in machine learning models, enhancing fairness and accuracy while reducing the number of corrections needed, thus maintaining model performance.
Patent Information
- Application Number
- PCT/JP2024/004246
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-30
- Filing Date
- 2024-02-08
- Publication Date
- 2024-10-03
AI Technical Summary
Machine learning models trained with biased data can produce unfair inference results, and existing methods to correct these biases through data segmentation may lead to a decrease in model accuracy due to inappropriate segmentation, resulting in an excessive number of data corrections.
A method that classifies training data into segments based on attribute values and fairness evaluation scores, merging segments with similar trends to reduce the number of corrections and maintain model accuracy, thereby generating training data that suppresses deterioration in the accuracy of machine learning models.
This approach effectively reduces the number of data corrections needed, maintains model accuracy, and improves fairness by ensuring that similar trends are grouped together, thereby minimizing the impact on inference accuracy.
Smart Images

Figure JP2024004246_03102024_PF_FP_ABST
Abstract
Description
Training data generation program, training data generation method, and information processing device
[0001] The present invention relates to a training data generation program, a training data generation method, and an information processing device.
[0002] A machine learning model trained using a training dataset (multiple training data) has the characteristic of making judgments with a statistically high probability, and therefore may output unfair inference results, such as inference results that cause discrimination, if there is bias in certain attributes of the training data. Predetermined attributes include, for example, protected attributes such as gender, age, race, nationality, and marital status.
[0003] A known technique is to transform training data, for example, transform (modify) values or labels of the training data, and train the machine learning model using training data that reduces correlation between protected attributes and unprotected attributes, thereby suppressing unfair inference by the machine learning model. The modification of the training data may be referred to as a "corrective" process. Note that correlation may refer to the relationship between attributes or its strength.
[0004] In the correction process, a method is known in which multiple training data are classified into multiple groups (segments) based on the values of predetermined attributes, and the training data included in each group is corrected. This method can more effectively suppress unfair inference by a machine learning model than correcting multiple training data all at once. The process of classifying multiple training data into multiple segments may also be called segment division, segment extraction, segmentation, or data segmentation.
[0005] International Publication No. 2020 / 240981 Pamphlet Japanese Patent Application Laid-Open No. 2021-12593 Pamphlet International Publication No. 2021 / 260945 Pamphlet
[0006] Depending on the segmentation method used for the correction process, the amount of correction of training data included in a segment, for example, the number of training data to be corrected, may increase, which may cause a deterioration in the accuracy (e.g., inference accuracy) of a machine learning model trained using the corrected training data.
[0007] In one aspect, an object of the present invention is to generate training data that suppresses deterioration in the accuracy of a machine learning model.
[0008] In one aspect, the training data generation program may cause a computer to execute the following processes. The process may classify a first plurality of training data into a plurality of groups based on values of a first attribute of the first plurality of training data. The process may also generate a third group by combining a first group and a second group of the plurality of groups based on a difference between values of the first attribute of the training data included in each of the plurality of groups and a difference between fairness evaluation values of each of the plurality of groups. The process may also generate a second plurality of training data by modifying the training data included in the third group based on the fairness evaluation value of the third group.
[0009] In one aspect, the present invention can generate training data that suppresses deterioration in the accuracy of a machine learning model.
[0010] FIG. 1 is a diagram illustrating an example of a relationship between the number of segments extracted from a training dataset and a fairness score. FIG. 2 is a diagram illustrating an example of a segmentation technique. FIG. 3 is a block diagram illustrating an example of a hardware (HW) configuration of a computer that realizes the functions of a server as an example of an embodiment. FIG. 4 is a block diagram illustrating an example of a software configuration of a server as an example of an embodiment. FIG. 5 is a diagram illustrating an example of a training dataset. FIG. 6 is a diagram illustrating an example of a segment generation process according to an embodiment. FIG. 7 is a diagram illustrating an example of a segment generation process according to an embodiment. FIG. 8 is a diagram illustrating an example of a fairness score change amount. FIG. 9 is a diagram illustrating an example of Simpson's paradox. FIG. 10 is a diagram illustrating an example of a merging process by a merging unit. FIG. 11 is a diagram illustrating an example of a merging result based on a fairness score change amount and the number of training data. FIG. 12 is a flowchart illustrating an example of an operation of a server according to an embodiment. FIG. 13 is a diagram illustrating an example of an operation of the server.
[0011] Hereinafter, embodiments will be described with reference to the drawings. However, the embodiments shown below are merely examples, and are not intended to exclude various modifications or application of techniques not explicitly stated in the embodiments. For example, the present embodiment can be implemented with various modifications within the scope of the spirit thereof. Furthermore, each figure does not intend to include only the components shown in the figure, but may include other functions, etc.
[0012] [A] Regarding Segmentation First, segmentation will be described. As described above, by classifying multiple training data into multiple segments and performing a correction process for each segment, better fairness can be achieved than by performing a correction process on multiple training data all at once. The classification (division) of segments may be performed using a measure of a numerical attribute that can be said to be "fair under the conditions that judgment should be made," such as the value of a numerical attribute (first attribute) such as "income." The measure may be determined, for example, for each training data set.
[0013] FIG. 1 is a diagram showing an example of the relationship between the number of segments extracted from a training dataset and a fairness score. The "fairness score" is an example of a fairness evaluation value and an example of an index showing the fairness of the training data. Details of the fairness score will be described later. The "segment number" is an example of segment identification information.
[0014] If the number of segments is too small, for example, 10, as shown by symbol A1 in Fig. 1, it may be difficult to grasp the trends of the training data for each segment, compared to the optimal number of segments (for example, 30) as shown by symbol A2 in Fig. 1. For example, if a correction process for a certain segment is performed based on an erroneously grasped trend, much of the training data within that certain segment may be corrected.
[0015] Furthermore, as shown by symbol A3 in Figure 1, if the number of segments is too large, for example, 100, the number of data items in each segment will be smaller than the optimal number of divisions (see symbol A2), and the fairness score of each segment may be overly sensitive to slight changes in the training data. For example, many segments may be selected for correction based on their fairness scores, and much of the training data may be corrected.
[0016] In this way, if the number of segments extracted from multiple training data is inappropriate, the number of training data to be corrected may increase in the correction process for each segment. Note that the number of segments shown in Figure 1 is merely an example, and the appropriate number of segments will vary depending on factors such as the number of training data included in the training data set and the distribution of the training data.
[0017] By rewriting the values and labels of the training data records through the correction process, it is possible to generate training data that includes attribute value combinations that do not exist in the original training data or that are inconsistent with the attribute value combinations of the original training data. Therefore, as the number of training data to be corrected increases, the accuracy (e.g., inference accuracy) of the machine learning model trained using the training data is likely to deteriorate.
[0018] In the following description, the training dataset is assumed to be a collection of housing loan data including attribute values such as income, gender, marital status, whether or not a person has children, race, whether or not a housing loan is approved, etc. Furthermore, by training a machine learning model using the training dataset, an AI (artificial intelligence) is created that determines whether or not a loan is approved based on input information such as income and marital status.
[0019] Fig. 2 is a diagram for explaining an example of a segmentation technique. As shown by reference symbol B1 in Fig. 2, the training dataset contains a large amount of training data (records) whose income attribute value is in the range of 0 to 4 million yen (especially 0 to 2 million yen).
[0020] For example, equi-width binning is known as one of the segmentation techniques. Binning is a technique that discretizes continuous feature values and converts them into categorical variables. Equi-width binning is a range-first segmentation technique that bins each segment so that the interval (value range) is constant.
[0021] As shown by symbol B2 in FIG. 2, when the training dataset is segmented by equal-width binning, multiple segments are obtained in which the range of continuous income values (the width of the horizontal axis in the example of FIG. 2) is constant.
[0022] However, the segment with an income range of 4 million to 10 million yen (see symbol B3) has an extremely small amount of training data compared to the segment with an income range of 0 to 4 million yen (see symbol B4), resulting in a shortage of training data samples. For this reason, it is difficult to correctly detect bias in the segment shown by symbol B3 during the correction process.
[0023] One segmentation technique known is quantile binning, a number-first partitioning technique that bins data so that the number of samples in each segment is constant. However, when quantile binning is performed on the training data set shown by symbol B1 in Figure 2, for example, the income range of 4 million to 10 million yen is included in one segment. In this case, it may be difficult to grasp the trends of the training data included in that segment.
[0024] As described above, when a method such as equal-width binning or quantile binning is simply adopted as a segmentation method, it may be difficult to perform correction processing for each segment.
[0025] [B] Description of a Method According to an Embodiment Accordingly, in one aspect, a method for generating training data that suppresses deterioration of the accuracy of a machine learning model is described. For example, in one embodiment, a segment is determined that suppresses deterioration of the accuracy of the machine learning model while increasing the correction effect. Note that a segment is an example of a "group."
[0026] For example, reducing the amount of training data correction (e.g., the number of training data to be corrected) tends to reduce the impact on the deterioration of the accuracy of the machine learning model. Furthermore, when the trends of the training data within each of multiple segments are similar, the segments to be corrected can be narrowed down, thereby reducing the amount of training data correction. Furthermore, the more training data a segment contains, the easier the correction process becomes.
[0027] From these perspectives, we consider performing segmentation that satisfies at least one of the following: including training data with similar trends in the same segment so as to reduce the amount of correction; and including a sufficient number of training data in the segment to perform the correction process appropriately.
[0028] As an example, in one embodiment, a device that generates a plurality of training data, such as a server, may perform the following processes (i) to (iii).
[0029] (i) The server classifies the first plurality of training data into a plurality of groups based on values of a first attribute of the first plurality of training data.
[0030] (ii) The server generates a third group by combining the first group and the second group of the multiple groups based on the difference between the values of the first attribute of the training data included in each of the multiple groups and the difference between the fairness evaluation values of each of the multiple groups.
[0031] (iii) The server generates a second plurality of training data by modifying the training data included in the third group based on the fairness evaluation value of the third group.
[0032] As a result, the server according to one embodiment can generate a second plurality of training data that suppresses deterioration in the accuracy of the machine learning model.
[0033] [C] Hardware Configuration Example The server 1 (see FIG. 4) according to one embodiment may be a virtual server (VM: Virtual Machine) or a physical server. The functions of the server 1 may be implemented by a single computer or by two or more computers. Furthermore, at least some of the functions of the server 1 may be implemented using hardware (HW) resources and network (NW) resources provided by a cloud environment.
[0034] 3 is a block diagram showing an example of the hardware (HW) configuration of a computer 10 that realizes the functions of the server 1 according to an embodiment. When multiple computers are used as HW resources that realize the functions of the server 1, each computer may have the HW configuration shown in FIG.
[0035] As shown in FIG. 3, the computer 10 may include, as its HW configuration, a processor 10a, a graphics processing unit 10b, a memory 10c, a storage unit 10d, an IF (Interface) unit 10e, an IO (Input / Output) unit 10f, and a reading unit 10g, for example.
[0036] The processor 10a is an example of a processing unit that performs various controls and calculations. The processor 10a may be connected to each block in the computer 10 via a bus 10j so that they can communicate with each other. The processor 10a may be a multiprocessor including multiple processors, a multi-core processor having multiple processor cores, or a configuration having multiple multi-core processors.
[0037] Examples of the processor 10a include integrated circuits (ICs) such as a CPU, MPU, APU, DSP, ASIC, and FPGA. Note that the processor 10a may be a combination of two or more of these integrated circuits. CPU is an abbreviation for Central Processing Unit, MPU is an abbreviation for Micro Processing Unit, APU is an abbreviation for Accelerated Processing Unit, DSP is an abbreviation for Digital Signal Processor, ASIC is an abbreviation for Application Specific IC, and FPGA is an abbreviation for Field-Programmable Gate Array.
[0038] The graphics processing device 10b controls screen display for an output device such as a monitor in the IO unit 10f. The graphics processing device 10b may also be configured as an accelerator that executes machine learning processing and inference processing using a machine learning model. The graphics processing device 10b may be any of a variety of arithmetic processing devices, such as a graphics processing unit (GPU), an APU, a DSP, an ASIC, an FPGA, or other integrated circuits (ICs).
[0039] The memory 10c is an example of HW that stores various types of data, programs, and other information. Examples of the memory 10c include one or both of a volatile memory such as a dynamic random access memory (DRAM) and a non-volatile memory such as a persistent memory (PM).
[0040] The storage unit 10d is an example of HW that stores various types of data, programs, and other information. Examples of the storage unit 10d include various storage devices such as a magnetic disk device such as a hard disk drive (HDD), a semiconductor drive device such as a solid state drive (SSD), and a nonvolatile memory. Examples of nonvolatile memory include a flash memory, a storage class memory (SCM), and a read-only memory (ROM).
[0041] The storage unit 10d may store a program 10h (training data generation program) that realizes all or part of the various functions of the computer 10.
[0042] For example, the processor 10a of the server 1 can implement the function of a control unit 20 (see FIG. 4) described later by loading a program 10h stored in the storage unit 10d into the memory 10c and executing it.
[0043] The IF unit 10e is an example of a communication IF that controls the connection and communication between the server 1 and other computers. For example, the IF unit 10e may include an adapter that complies with electrical communications (e.g., LAN (Local Area Network)) such as Ethernet (registered trademark) or optical communications such as FC (Fibre Channel). The adapter may support either or both of wireless and wired communication methods.
[0044] The program 10h may be downloaded to the computer 10 from a network via the communication IF and stored in the storage unit 10d.
[0045] The IO unit 10f may include one or both of an input device and an output device. Examples of input devices include a keyboard, a mouse, and a touch panel. Examples of output devices include a monitor, a projector, and a printer. The IO unit 10f may also include a touch panel that combines an input device and a display device. The output device may be connected to the graphics processing device 10b.
[0046] The reading unit 10g is an example of a reader that reads data and program information recorded on the recording medium 10i. The reading unit 10g may include a connection terminal or device to which the recording medium 10i can be connected or inserted. Examples of the reading unit 10g include an adapter compliant with USB (Universal Serial Bus) or the like, a drive device that accesses a recording disk, and a card reader that accesses a flash memory such as an SD card. Note that the recording medium 10i may store the program 10h, and the reading unit 10g may read the program 10h from the recording medium 10i and store it in the memory unit 10d.
[0047] Examples of the recording medium 10i include non-transitory computer-readable recording media such as magnetic / optical disks and flash memories. Examples of magnetic / optical disks include flexible disks, CDs (Compact Discs), DVDs (Digital Versatile Discs), Blu-ray Discs, and HVDs (Holographic Versatile Discs). Examples of flash memories include semiconductor memories such as USB memories and SD cards.
[0048] The above-described HW configuration of the computer 10 is an example. Therefore, the HW in the computer 10 may be increased or decreased (for example, adding or deleting any block), divided, integrated in any combination, or the HW may be added or deleted as needed.
[0049] [D] Software Configuration Example Fig. 4 is a block diagram showing an example of the software configuration of the server 1 as an example of an embodiment. The server 1 is an example of an information processing device or a computer.
[0050] 4, the server 1 may illustratively include a base segment extraction unit 12, a calculation unit 13, a merging unit 14, and a correction processing unit 15. The server 1 may also include a machine learning unit 16 when performing machine learning processing. The blocks 12 to 16 included in the server 1 are an example of a control unit 20. The functions of the control unit 20 may be realized, for example, by the processor 10a of the computer 10 shown in FIG. 3 executing a program 10h deployed in the memory 10c.
[0051] 4, the server 1 may include a storage area capable of storing the training data set 11a, the base segments 11b, the fairness scores 11c, the merged segments 11d, and the corrected training data set 11e. If the server 1 includes a machine learning unit 16, the storage area may also be capable of storing the machine learning model 11f.
[0052] The storage area of the server 1 may be realized by, for example, one or both of the storage areas of the memory 10c and the storage unit 10d of the computer 10 shown in FIG.
[0053] The server 1 may, for example, receive at least one of the training dataset 11a and the untrained machine learning model 11f from another computer (not shown) via the IF unit 10e and the network, and store them in a memory area.
[0054] The server 1 may also transmit, for example, at least one of the merged segment 11d, the corrected training data set 11e, and the trained machine learning model 11f stored in the storage area to another computer (not shown) via the IF unit 10e and the network. The server 1 may also transmit at least one of intermediate data, for example, data 11b and 11c, to another computer (not shown) via the IF unit 10e and the network.
[0055] FIG. 5 is a diagram illustrating an example of a training data set 11a. The training data set 11a is an example of a first plurality of training data, and may be, for example, housing loan data. As illustrated in FIG. 5, the training data set 11a is a collection of training data (entries) having attributes such as income (in thousands of yen), gender, marital status, whether or not the person has children, race, and whether or not the person can pass the exam. Note that the training data set 11a may include various other attributes in addition to the attributes illustrated in FIG. 5.
[0056] Income is an example of a first attribute. Income is, for example, a numeric attribute whose value is a number and is an unprotected attribute. Income is an example of a feature having continuous values in training data. For example, income may be a measure used to classify multiple training data in segmentation.
[0057] Gender, marital status, parental status, and race are examples of protected attributes. Protected attributes are attributes that may lead to discrimination. Protected attributes may include, for example, other attributes (protected attributes), such as nationality or single mother status, instead of or in addition to at least one of these.
[0058] Passability is an attribute whose value is "yes" or "no", for example, a non-protected attribute. Passability is an example of a specific attribute in the training dataset 11a. Passability being "yes" is an example of the specific attribute having a predetermined value (for example, a positive example). Passability may be used, for example, as a correct answer label in training the machine learning model 11f.
[0059] The base segment extraction unit 12 classifies the training data set 11a into a plurality of base segments 11b based on the income values of the training data set 11a. The base segments 11b are an example of groups. For example, the base segments 11b are the smallest granularity segments obtained by dividing the training data set 11a into a predetermined number of segments. The base segments 11b may have a base segment width determined according to the range of possible attribute values of a certain attribute (for example, the range from the minimum value to the maximum value in the training data set 11a).
[0060] The base segment extraction unit 12 may define (determine) the number of training data to be included in one base segment 11b, for example, a required number of data serving as a guideline for a lower limit, in accordance with, for example, instructions from an operator or a correction technique. Furthermore, the base segment extraction unit 12 may determine the number of segments (predetermined number) of base segments 11b to be generated by dividing the number of all training data included in the training data set 11a by the defined number of training data.
[0061] Then, the base segment extraction unit 12 may extract a predetermined number of base segments 11b from the training data set 11a using a technique such as equal-width binning, and store information about the base segments 11b in a storage area.
[0062] 6 and 7 are diagrams illustrating an example of a segment generation process according to an embodiment. Reference symbol C1 in Fig. 6 is a bar graph showing the number of training data (number of records) by income in the training dataset 11a.
[0063] Reference symbol C2 in Figure 6 indicates a base segment 11b having a base segment width (e.g., a width of 500,000 yen) obtained by dividing the income range (0 to 1,000 yen) of the training data set 11a into a predetermined number (e.g., 20). Note that, as indicated by reference symbol C1 in Figure 6, the training data set 11a has a bias in the distribution of training data according to income. Therefore, among the multiple base segments 11b indicated by reference symbol C2, there may be a base segment 11b containing less training data than the defined number of training data.
[0064] The information on the base segment 11b may include, for example, identification information of the base segment 11b, the interval on the income axis of the base segment 11b (e.g., income range), identification information of the training data included in the base segment 11b, and the number of training data.
[0065] In one embodiment, the base segments 11b and the merged segments 11d (described later) are obtained by classifying the training data set 11a based on the value of one attribute (income) in a one-dimensional space with the attribute (income) as the axis, but this is not limiting. For example, the base segments 11b and the merged segments 11d may be obtained by classifying the training data set 11a based on the value of each attribute in a two- or more-dimensional space with two or more attributes as mutually orthogonal axes.
[0066] Hereinafter, when there is no need to distinguish between the base segment 11b and the merged segment 11d, they will be simply referred to as segment 11.
[0067] The calculation unit 13 calculates the fairness score 11c based on the training data set 11a and the plurality of segments 11. For example, the calculation unit 13 may calculate the fairness score 11c for each segment 11 based on attribute values of the plurality of training data included in the segment 11.
[0068] As an example, the fairness score 11c may be a Disparate Impact (DI) value. In the following, an example will be described in which the fairness score 11c is a DI value. However, the fairness score 11c is not limited to this, and various indicators that can indicate the fairness of the training data in the segment 11 may be used as the fairness score 11c.
[0069] The DI value may be calculated by (acceptance rate of discriminated group) / (acceptance rate of favored group). The discriminated group is a training data group in which the attribute values of a specific protected attribute are attribute values that are subject to discrimination, and the favored group is a training data group in which the attribute values of a specific protected attribute are attribute values that are not subject to discrimination (or are favored). The acceptance rate indicates the proportion of positive examples (predetermined values) of attribute values of a specific attribute (e.g., a non-protected attribute) in the training data group relative to the number of training data in the training data group.
[0070] The calculation unit 13 may, for example, determine a specific protected attribute to be used in calculating the DI value from among a plurality of protected attributes included in the training data set 11a. As an example, when the calculation unit 13 determines "gender" as the specific protected attribute, it may calculate the DI value as follows. It is assumed that the specific attribute to be used in calculating the acceptance rate is "passability". DI value = [(number of training data for "passability" for discriminated group) / number of training data for discriminated group) / (number of training data for "passability" for preferential group) / number of training data for preferential group)
[0071] In the above formula, the discriminated group is the training data group of the multiple training data included in segment 11 whose gender is female, and the preferential group is the training data group of the multiple training data included in segment 11 whose gender is male.
[0072] As indicated by reference symbol C3 in FIG. 6, the calculation unit 13 may calculate a fairness score 11c (for example, a DI value) for each segment 11 and store the fairness score 11c in a storage area.
[0073] 6, the example of symbol C3 indicates a case where all the segments 11 are base segments 11b, for example, where the calculation process of the fairness score 11c is performed for the first time. As will be described later, when the merging unit 14 generates a merged segment 11d, the calculation unit 13 may perform the calculation process of the fairness score 11c again for multiple segments 11 including the merged segment 11d.
[0074] The calculation unit 13 may calculate the amount of change in the fairness score 11c between two adjacent segments 11 (the base segment 11b in the example of FIG. 7), as indicated by reference symbol C4 in FIG. 7. The amount of change in the fairness score 11c is an example of the difference between fairness evaluation values. Hereinafter, the amount of change in the fairness score 11c may be simply referred to as the "amount of change in the fairness score."
[0075] As an example, the calculation unit 13 may calculate the absolute value of the difference between the fairness scores 11c of two adjacent segments 11 (hereinafter, sometimes referred to as "adjacent segments") as the amount of change.
[0076] Symbol C4 in Figure 7 shows a line graph (see solid line) in which the fairness score changes of adjacent segments are plotted and connected in a space with the horizontal axis being the segment number and the vertical axis being the fairness score change.
[0077] The fairness score change amount may be calculated for each pair of adjacent segments, for example, N-1 change amounts may be calculated (N is the number of segments 11). In the example of symbol C4 in Fig. 7, all of the multiple segments 11 are base segments 11b, so 19 change amounts may be calculated for the 20 base segments 11b.
[0078] The calculation unit 13 may identify adjacent segments based on, for example, the difference between the values of income (first attribute) of the training data included in each of the multiple segments 11.
[0079] For example, when the difference between the income values of two pieces of training data included in different segments 11 is equal to or less than the “basic segment width,” the calculation unit 13 may identify two segments 11 including the two pieces of training data as adjacent segments. The basic segment width is an example of a third threshold value.
[0080] Note that when the difference between the income values of two training data is equal to or less than the base segment width, it may mean that the intervals of two segments 11 including the two training data are consecutive on the income axis. Therefore, the calculation unit 13 may, for example, identify two segments 11 whose intervals are consecutive on the income axis as adjacent segments. Alternatively, when the identification information of the segments 11 includes consecutive numbers assigned in ascending or descending order to the intervals on the income axis, the calculation unit 13 may identify two segments 11 whose identification information is consecutive as adjacent segments.
[0081] Furthermore, the calculation unit 13 calculates the fairness score change threshold ΔF th may be determined. th is an example of the second threshold. th may be specified by an operator, or may be calculated by the calculation unit 13 in accordance with predetermined conditions based on the calculated fairness score change amount.
[0082] The merging unit 14 combines the first group and the second group to generate a third group based on the difference between the values of income (first attribute) of the training data contained in each of the multiple groups and the difference between the fairness evaluation values of each of the multiple groups.
[0083] For example, the merging unit 14 may calculate the fairness score change calculated by the calculation unit 13 by adjusting the threshold ΔF th If the fairness score 11c used to calculate the change is less than the fairness score 11c, the merging unit 14 may merge the two segments 11 having the fairness score 11c used to calculate the change to generate a merged segment 11d. The merging unit 14 may store information about the generated merged segment 11d in a storage area.
[0084] The information on the merged segment 11d may include, for example, identification information on the merged segment 11d, an interval on the income axis of the merged segment 11d (e.g., an income range), identification information on the training data included in the merged segment 11d, the number of training data, etc. Note that since the merged segment 11d is a segment 11 formed by combining multiple base segments 11b, the information on the merged segment 11d may include identification information on the base segment 11b to be merged (the source of the merge).
[0085] The server 1 may manage the information on the base segment 11b and the information on the merged segment 11d as information on the segment 11 in a storage area.
[0086] The two segments 11 to be merged are an example of the first and second groups. The merged segment 11d is an example of the third group. Note that the two segments 11 to be merged may be two base segments 11b, two merged segments 11d, or one base segment 11b and one merged segment 11d.
[0087] As shown by reference symbols C4 and C5 in FIG. 7, the merger 14, for example, thThe merging unit 14 also merges the five base segments 11b included in the section of C41, which are less than the threshold ΔF, in order of adjacent segments, to generate a merged segment 11d of C51. th The merger 14 then merges the four base segments 11b included in the section of C42, for which the difference is less than the threshold ΔF, in order of adjacent segments, to generate a merged segment 11d of C52. th The two base segments 11b (adjacent segments) included in the interval C43 that is less than 11b are merged to generate a merged segment 11d shown in C53.
[0088] When the merging unit 14 completes the merging process of the segments 11, the calculation unit 13 may again calculate the fairness score 11c and the amount of change for the multiple segments 11 including the merged segment 11d. The merging unit 14 may again execute the merging process based on the amount of change in the fairness score calculated again by the calculation unit 13. The calculation unit 13 and the merging unit 14 may repeat these processes until no more mergeable segments 11 remain.
[0089] 7 is a bar graph showing the number of training data (number of records) for each segment 11 after merging by the merging unit 14. By generating the merged segments 11d shown by the reference symbols C51 to C53, segments 11 shown by the reference symbols C61 to C63 are obtained in the case of the reference symbol C6.
[0090] As shown by reference symbol C6 in FIG. 7, the server 1 according to one embodiment can merge adjacent segments based on the difference between the fairness evaluation values.
[0091] For example, the fairness score change is a threshold ΔF th Adjacent segments with a difference of less than 1 / 2 can be said to be segments 11 with similar training data trends. Therefore, by merging adjacent segments in this way, training data with similar trends can be included in the same segment 11, and the amount of correction in the correction process can be reduced.
[0092] In addition, by merging segments 11 containing training data with similar trends, the number of training data contained in the segment 11 can be increased, thereby increasing the likelihood that corrective processing for the segment 11 will be performed appropriately.
[0093] In addition, in reference C6 in Fig. 7, three base segments 11b (see reference C64) in the income range of 8.5 million to 10 million yen have a small number of training data (see reference C2 in Fig. 6), but are excluded from the merging target. The three base segments 11b shown by reference C64 have a fairness score change amount that is smaller than the threshold ΔF th The server 1 excludes such base segments 11b from the merging targets, thereby preventing the generation of segments 11 that are likely to be difficult to grasp in terms of their trends, and as a result, preventing a deterioration in the accuracy of the machine learning model 11f.
[0094] The correction processor 15 corrects the training data included in the merged segment 11 d based on the fairness evaluation value of the merged segment 11 d to generate a corrected training data set 11 e. The corrected training data set 11 e is an example of a second plurality of training data.
[0095] For example, the correction processing unit 15 may determine the fairness of each of the plurality of training data included in the training data set 11a for each segment 11. Furthermore, the correction processing unit 15 may perform data correction processing for each of the plurality of data included in the training data set 11a for each segment 11 based on the determination result. Then, the correction processing unit 15 may store the plurality of training data including the training data that has been subjected to the correction processing in a storage area as a corrected training data set 11e. Various known methods may be adopted for the fairness determination processing and the data correction processing. For example, the calculation processing of the fairness score 11c by the calculation unit 13 may be adopted as the fairness determination processing.
[0096] The machine learning unit 16 uses the corrected training dataset 11 e to train the machine learning model 11 f (machine learning process). As a method for training the machine learning model 11 f by the machine learning unit 16, various known methods may be adopted.
[0097] The generation of the corrected training data set 11e by the correction processing unit 15 makes it possible to suppress unfair inference by the machine learning model 11f. As an example, the fairness determination process by the correction processing unit 15 makes it possible to estimate, from the training data set 11a, training data that may cause the output of unfair inference results, such as discrimination, for each segment 11 including multiple training data that tend to be similar to each other. Furthermore, the correction process for the training data makes it possible to suppress unfair inference by the machine learning model 11f, for example, by rewriting the values of unprotected attributes relative to protected attributes in the estimated data and reducing the correlation between the protected attributes and the unprotected attributes.
[0098] As described above, the server 1 according to one embodiment can determine the segments 11 that maximize the effect of correction while suppressing the deterioration of the accuracy of the machine learning model 11f, as shown by reference symbol C6 in Fig. 7. This allows the generation of a corrected training data set 11e that includes training data that suppresses the deterioration of the accuracy of the machine learning model 11f.
[0099] [E] Example of fairness evaluation for multiple biases Incidentally, the biases that can be included in the training data set 11 a are diverse, and depending on the training data set 11 a, fairness evaluation may be performed for two or more biases. As an example, the server 1 may evaluate fairness and merge segments 11 to correct both single bias and cross bias.
[0100] Isolated bias refers to a bias in a specific attribute of training data, or a phenomenon in which discrimination occurs due to such bias. An example of isolated bias is the phenomenon of discrimination based on "gender." Because such discrimination occurs due to a bias in one protected attribute, "gender," this bias is referred to as "isolated bias" for convenience.
[0101] Cross-bias refers to a bias in the combination of multiple attributes in training data, or a phenomenon in which discrimination occurs due to such bias. Consider the attribute "single mother" as an example. In the training data set 11a shown in FIG. 5, "single mother" is an attribute represented by a combination of attribute values of multiple protected attributes: "gender: female," "marital status: absent," and "children: present." Cross-bias is a phenomenon in which the difference in acceptance rate depending on whether or not a person is a "single mother" is greater than the discrimination expected from the individual biases of "gender," "marital status," and "children."
[0102] For example, assume that the server 1 calculates the fairness score 11c in terms of intersection bias and merges the segments 11 based on the fairness score change.
[0103] 8 is a diagram showing an example of a change in fairness score. Reference symbol D1 in FIG. 8 indicates a fairness score 11c calculated from the perspective of intersection bias for each of the multiple base segments 11b indicated by reference symbol C2 in FIG. 6. As an example, the calculation unit 13 may calculate, as the fairness score 11c, the ratio (DI value) of the acceptance rate when a combination of attribute values of the protected attributes, "race: white (non_white=0.0)" and "gender: female (female=1.0)," is set as the discriminated group to the acceptance rate when a combination other than this combination is set as the preferential group.
[0104] 8 shows a line graph (see solid line) in which the change in fairness score 11c in adjacent segments shown in D1 is plotted and connected in a space with the horizontal axis representing the segment number and the vertical axis representing the change in fairness score. Within the frame shown by dashed lines (see D21), the change in fairness score for multiple consecutive segments 11 is greater than or equal to the threshold ΔF th Therefore, these segments 11 are to be merged by the merging unit 14.
[0105] In addition to the line graph shown in D2, reference symbol D3 in Fig. 8 also shows a line graph (see the thick solid line) showing the amount of change in fairness score calculated from the perspective of individual bias. Hereinafter, the amount of change shown by the solid line graph will be referred to as "amount of change (cross bias)," and the amount of change shown by the thick solid line graph will be referred to as "amount of change (individual bias)."
[0106] For example, the amount of change (single bias) indicates the amount of change in the fairness score in adjacent segments when the fairness score 11c is the ratio (DI value) of the acceptance rate when the attribute values of the protected attributes "race: white (non_white=0.0)" or "gender: female (female=1.0)" are considered to be the discriminated group and the acceptance rate when any combination other than these is considered to be the preferential group.
[0107] The symbol D31 encloses the same area as the symbol D21. The bold solid line frame shown by the symbol D32 indicates the area in the vicinity of the segments No. 16 to 17 where the amount of change (tolerance bias) is greater than the threshold value ΔF th While the change (single bias) is less than the threshold ΔF th indicates that the value exceeds the limit.
[0108] In this way, even if the merging range of segment 11 is determined based on the amount of change (cross bias), from the perspective of the amount of change (single bias), the merged segment 11d obtained by merging the segment 11 may not necessarily be the optimal segment 11.
[0109] One possible cause of the phenomenon shown in the bold solid line frame indicated by symbol D32 is Simpson's paradox, which refers to the phenomenon in which the trends of subdivided groups and the overall trend are reversed, contrary to expectations.
[0110] Figure 9 is a diagram illustrating an example of Simpson's paradox. Reference symbol E1 in Figure 9 shows a comparison of average test scores for science and humanities courses between high schools A and B. As shown by reference symbol E1, the average test score for science courses was 80 points for high school A and 90 points for high school B, with high school B being higher. Furthermore, the average test score for humanities courses was 60 points for high school A and 70 points for high school B, with high school B being higher. From these results (assumptions), it can be inferred that the overall average test score for both science and humanities courses combined would also be higher for high school B. However, in reality, the overall average test score was 78 points for high school A and 72 points for high school B, with high school A being higher.
[0111] Symbol E2 in Figure 9 indicates the population of the data used to calculate the average test score shown by symbol E1. As shown by symbol E2, at High School A, of 100 students, 90 are in the science course and 10 are in the humanities course. At High School B, of 100 students, 10 are in the science course and 90 are in the humanities course. At High School A, the 90 students in the science course, who achieved an average test score of 80 points, are raising the overall average test score, so the overall average test score is higher than at High School B, which has 90 students in the humanities course, who achieved an average test score of 70 points.
[0112] In this way, if the number of records used to calculate the average test score ratio differs significantly between the science and humanities course groups, the results may be reversed when calculating the overall average test score for the science and humanities courses combined.
[0113] The fairness score 11c according to one embodiment is calculated based on the ratio of the acceptance rate of the discriminated group to the acceptance rate of the privileged group, for example, when the fairness score 11c is a DI value. Therefore, when merging segments 11 based on the change in fairness score, Simpson's paradox may occur.
[0114] Therefore, the merging unit 14 according to one embodiment may make a merging decision in the merging process of the segments 11 from two perspectives: the fairness score 11c for the cross-bias and the number of training data included in each segment 11.
[0115] 10 is a diagram illustrating an example of the merging process performed by the merging unit 14. Reference character F1 in Fig. 10 indicates a fairness score 11c calculated from the viewpoint of cross-bias for each of a plurality of base segments 11b obtained by dividing the training data set 11a.
[0116] 10 is a line graph showing the change (cross bias) in the fairness score 11c shown in F1 between adjacent segments. Within the dashed line frame (see F21), the change in fairness score is greater than or equal to the threshold ΔF th Therefore, these segments 11 are to be merged by the merging unit 14.
[0117] Reference symbol F3 indicates the amount of change in fairness score and the number of training data for each of the segments 11 (segments S4 to S7) within the frame indicated by reference symbol F21.
[0118] For example, the merger 14 may determine whether the change in fairness score is greater than the threshold ΔF th Segments S4 to S7 that are determined to be less than 0.015 (for example) are extracted as the merge range.
[0119] Furthermore, the merging unit 14 determines whether the difference in the number of training data sets for each adjacent segment, for example, between segments S4 and S5, between segments S5 and S6, between segments S6 and S7, is greater than or equal to a predetermined threshold ΔNum th In the example of FIG. 10, the threshold ΔNum th is set to 75000. th is an example of the first threshold value. th may be specified by an operator, or may be calculated by the calculation unit 13 or the merging unit 14 in accordance with predetermined conditions based on the number of training data for each segment 11, the number of required data determined by the base segment extraction unit 12, etc.
[0120] In the example of symbol F3, the difference in the number of training data between segments S4 and S5 is 70,000, and the threshold ΔNum th Therefore, the merging unit 14 determines that the segments S4 and S5 are to be merged, and merges the segments S4 and S5.
[0121] On the other hand, as shown in the dashed frame of symbol F31, the difference in the number of training data between segments S5 and S6 is 100,000, and the threshold ΔNum th As shown in the dashed frame of symbol F32, the difference in the number of training data sets between segments S6 and S7 is 80,000, and the threshold ΔNum th (75,000) or more.
[0122] In this way, the segments S5 and S6, and the segments S6 and S7 each have a threshold ΔNum for the data size. th Because of these large differences, there is a high risk of the above-mentioned Simpson's paradox occurring. Therefore, the merging unit 14 excludes segments S5 and S6, and segments S6 and S7, from the merging targets, and suppresses the merging of segments S5 and S6, and the merging of segments S6 and S7, respectively.
[0123] Therefore, in the example of FIG. 10, the merger 14 determines whether the fairness score change amount is greater than the threshold F th Of the segments S4 to S7 whose length is less than 1 / 2, only the segments S4 and S5 are merged to generate a merged segment 11d.
[0124] In addition, information on the number of training data for each segment 11, as exemplified by symbol F3 in Figure 10, may be obtained by the base segment extraction unit 12 or the merging unit 14, for example, when the base segment 11b or the merged segment 11d is generated, and stored in a memory area.
[0125] 11 shows an example of a merging result based on the fairness score change and the number of training data. Symbol G1 in FIG. 11 indicates an example of multiple base segments 11b, similar to symbol C2 in FIG. 6. Symbol G2 indicates an example of merging segments 11 based on the fairness score change, similar to symbol C6 in FIG. 7.
[0126] 11 shows an example of merging segments 11 based on the fairness score change and the number of training data items shown in F3 of Fig. 10. In G3, of the segments S4 to S7 shown in G21 of Fig. 11, segments S4 and S5 are merged (see G31). On the other hand, in G3, segments S6 and S7 are excluded from the merging target, and remain as base segment 11b (see G32).
[0127] In this way, the merging unit 14 extracts (selects) the segments 11 to be merged based on the fairness score change calculated for the cross-bias, and determines the segments 11 to be merged based on the difference in the number of training data for each adjacent segment to be merged.
[0128] As a result, similar to the case shown by the symbol G2, it is possible to merge the segments 11 in as wide a range as possible while ensuring the number of training data. th By excluding the above adjacent segments (see symbol G32) from the merging targets, it is possible to generate a segment 11 that is effective in terms of both cross bias and single bias while reducing the risk of Simpson's paradox occurring.
[0129] [F] Operation Example Next, an operation example of the server 1 according to one embodiment will be described with reference to Fig. 12 and Fig. 13. Fig. 12 is a flowchart for explaining an operation example of the server 1 according to one embodiment, and Fig. 13 is a diagram for explaining an operation example of the server 1.
[0130] In step S1, the server 1 acquires a training data set 11a.
[0131] In step S2, the server 1 determines protected attributes to be used in calculating the fairness score 11c. For example, the server 1 may determine two or more protected attributes. As an example, the server 1 may select the protected attributes and attribute values of "gender: female" and "single mother: YES" included in the training dataset 11a. Note that the protected attributes and attribute values of "single mother: YES" may be a combination of the protected attributes and attribute values of "gender: female", "marital status: none", and "children: yes", for example.
[0132] In step S3, the server 1 determines attributes (e.g., unprotected attributes) for classification of the base segment 11b. As an example, the server 1 may select the attribute "income" included in the training data set 11a.
[0133] In step S4, the base segment extraction unit 12 divides the training data set 11a into multiple base segments 11b by equal-width binning. In the example of Fig. 13, the base segment extraction unit 12 divides the training data set 11a into six base segments S1 to S6, as indicated by the symbol H1. At this time, the base segment extraction unit 12 may obtain (e.g., calculate) the number of training data for each base segment 11b.
[0134] In step S5, the calculation unit 13 selects one unselected segment 11.
[0135] In step S6, the calculation unit 13 calculates a fairness score 11c of the segment 11 selected in step S5 for the cross bias in the two or more protection attributes determined in step S2.
[0136] In step S7, the calculation unit 13 determines whether or not all segments 11 have been selected. If not all segments 11 have been selected (NO in step S7), the process proceeds to step S5. If all segments 11 have been selected (YES in step S7), the process proceeds to step S8.
[0137] The calculation unit 13 calculates a fairness score change threshold ΔF th , threshold of difference in number of training data (threshold of difference in number of training data) ΔNum this determined (step S8).
[0138] In the example of FIG. 13, the calculation unit 13 calculates the segment S n (n is an integer from 1 to 6 corresponding to segments S1 to S6), n The segment S obtained by the base segment extraction unit 12 or the merging unit 14 is calculated as follows. n The number of training data is Num n It is written as follows.
[0139] In step S9, the merge unit 14 initializes a variable S for selecting a segment 11 and a variable D for determining whether or not to execute merging within the loop. For example, the merge unit 14 sets S=1 and D=0. The merge unit 14 also sets the number of segments 11 to Smax.
[0140] In step S10, the merger 14 calculates the fairness score change ΔF between the segment S and the segment S−1. S-1 , training data number difference ΔNum S-1 Furthermore, the merging unit 14 calculates the fairness score change ΔF between the segment S and the segment S+1. S+1 , training data number difference ΔNum S+1 Calculate.
[0141] In step S11, the merger 14 calculates the fairness score change amount ΔF S-1 is the threshold ΔF th Less than or equal to the difference in the number of training data ΔNum S-1 is the threshold ΔNum th If the determination condition is met (YES in step S11), the process proceeds to step S12. On the other hand, if the determination condition is not met (NO in step S11), the process proceeds to step S14.
[0142] In step S12, the merger 14 merges the segments S and S−1 to generate a merged segment 11d, and the process proceeds to step S13. At this time, the merger 14 may obtain (for example, calculate) the number of training data pieces for the merged segment 11d.
[0143] In step S13, the merge unit 14 sets the variable D=1, and the process proceeds to step S16.
[0144] In step S14, the merger 14 calculates the fairness score change ΔF S+1 is the threshold ΔF th Less than or equal to the difference in the number of training data ΔNum S+1 is the threshold ΔNum th If the determination condition is met (YES in step S14), the process proceeds to step S15. On the other hand, if the determination condition is not met (NO in step S14), the process proceeds to step S16.
[0145] In step S15, the merger 14 merges the segments S and S+1 to generate a merged segment 11d, and the process proceeds to step S13. At this time, the merger 14 may obtain (e.g., calculate) the number of training data pieces for the merged segment 11d.
[0146] In step S16, the merge unit 14 sets S=S+2 (adds 2 to the variable S).
[0147] In step S17, the merge unit 14 determines whether the variable S exceeds Smax. If the variable S is equal to or less than Smax (NO in step S17), the process proceeds to step S10. If the variable S exceeds Smax (YES in step S17), the process proceeds to step S18.
[0148] In this way, when the variable S exceeds Smax, the fairness determination process and merging process for all segments 11 are completed for one cycle. In the example of FIG. 13 , as indicated by reference symbol H3, the merging unit 14 merges adjacent segments that meet the merging conditions (steps S11 and S14) as correction candidates as part of the fairness determination process and merging process for one cycle. Then, the merging unit 14 selects segments 11 every other segment, such as segments S2, S4, and S6, and determines the merging conditions between the selected segment 11 and the segments 11 before and after it. Note that in the example of FIG. 12 , step S11 is executed preferentially among steps S11 and S14, but this is not limited thereto; steps S11 and S12 may be interchanged with steps S14 and S15.
[0149] In step S18, the merge unit 14 determines whether the variable D is equal to the initial value 0. If the variable D is not equal to 0 (is equal to 1) (NO in step S18), the process proceeds to step S5.
[0150] The fact that the variable D is not 0 means that merging was performed during the fairness determination process and merging process for the most recent round. In this case, the number of segments, as well as the fairness score 11c and the number of training data for the merged segment 11, have changed due to the merging. Therefore, the server 1 executes the fairness determination process and merging process for the next round from step S5.
[0151] In the fairness determination process for the next lap, the calculation unit 13 may select the segment 11 that has changed (the merged segment 11d) in step S5. In this case, in step S6, the calculation unit 13 may calculate, as the fairness score 11c of the selected segment 11, the fairness score 11c of any one of the multiple base segments 11b that were merged, or the average value of the fairness scores 11c of the multiple base segments 11b.
[0152] In step S18, if the variable D is 0 (YES in step S18), the process proceeds to step S19.
[0153] The variable D being 0 means that no merging has been performed in the fairness determination process and merging process for the most recent cycle, in other words, that there has been no change in segment 11. In this case, the server 1 ends the fairness determination process and merging process.
[0154] In the example of Figure 13, as shown by symbol H4, the calculation unit 13 and the merging unit 14 may repeatedly perform the fairness determination process and the merging process until there are no adjacent segments that match the merging conditions (steps S11, S14).
[0155] In step S19, the correction processing unit 15 performs a correction process on the training data set 11a for each segment 11 based on information about the segments 11, for example, information about the base segments 11b and the merged segments 11d. The correction processing unit 15 generates a corrected training data set 11e through the correction process.
[0156] In step S20, the machine learning unit 16 trains the machine learning model 11f using the corrected training data set 11e, and the process ends.
[0157] [G] Others The technology according to the embodiment described above can be implemented with the following modifications and changes.
[0158] For example, the blocks 12 to 16 included in the server 1 shown in FIG. 4 may be merged in any combination, or may be divided into individual blocks.
[0159] Furthermore, the server 1 according to an embodiment may further acquire a data set for inference and input the acquired data set into the trained machine learning model 11f to execute an inference process to acquire an inference result. The data set for inference may be a data set having the same attributes as the training data set 11a. Note that the data set for inference may exclude attributes related to whether or not a home loan application is approved.
[0160] 4 may be configured such that each processing function is realized by a plurality of devices cooperating with each other via a network. As an example, each of the blocks 12 to 16 may be a web server and an application server, and the storage areas for storing each of the data 11a to 11f may be database servers, etc. In this case, the processing functions of the server 1 may be realized by the web server, application server, and database server cooperating with each other via a network.
[0161] [H] Supplementary Notes The following supplementary notes are further disclosed regarding the above-described embodiments.
[0162] (Supplementary Note 1) A training data generation program that causes a computer to execute the following processes: classifying a first plurality of training data into a plurality of groups based on values of a first attribute of the first plurality of training data; generating a third group by combining a first group and a second group of the plurality of groups based on a difference between values of the first attribute of the training data included in each of the plurality of groups and a difference between fairness evaluation values of each of the plurality of groups; and generating a second plurality of training data by modifying the training data included in the third group based on the fairness evaluation value of the third group.
[0163] (Supplementary Note 2) The training data generation program according to Supplementary Note 1, wherein a difference between the number of data items in the training data included in the first group and the number of data items in the training data included in the second group is less than a first threshold value.
[0164] (Supplementary Note 3) The training data generation program according to Supplementary Note 1 or Supplementary Note 2, wherein a difference between the fairness evaluation value of the first group and the fairness evaluation value of the second group is less than a second threshold.
[0165] (Supplementary Note 4) The training data generation program according to any one of Supplementary Notes 1 to 3, wherein a difference between a value of the first attribute of the training data included in the first group and a value of the first attribute of the training data included in the second group is equal to or less than a third threshold.
[0166] (Supplementary Note 5) The training data generation program according to any one of Supplementary Notes 1 to 4, which causes the computer to execute a process of training a machine learning model using the second plurality of training data.
[0167] (Supplementary Note 6) A training data generation method in which a computer performs the following processes: classifying a first plurality of training data into a plurality of groups based on values of a first attribute of the first plurality of training data; generating a third group by combining a first group and a second group of the plurality of groups based on a difference between values of the first attribute of the training data included in each of the plurality of groups and a difference between fairness evaluation values of each of the plurality of groups; and generating a second plurality of training data by modifying the training data included in the third group based on the fairness evaluation value of the third group.
[0168] (Supplementary Note 7) The training data generation method according to Supplementary Note 6, wherein a difference between the number of data items in the training data included in the first group and the number of data items in the training data included in the second group is less than a first threshold value.
[0169] (Supplementary Note 8) The training data generation method according to Supplementary Note 6 or Supplementary Note 7, wherein a difference between the fairness evaluation value of the first group and the fairness evaluation value of the second group is less than a second threshold.
[0170] (Supplementary Note 9) The training data generation method according to any one of Supplementary Notes 6 to 8, wherein a difference between the value of the first attribute of the training data included in the first group and the value of the first attribute of the training data included in the second group is equal to or less than a third threshold.
[0171] (Supplementary Note 10) The training data generation method according to any one of Supplementary Note 6 to Supplementary Note 9, wherein the computer executes a process of: training a machine learning model using the second plurality of training data.
[0172] (Supplementary Note 11) An information processing device comprising: a control unit that classifies a first plurality of training data into a plurality of groups based on values of a first attribute of the first plurality of training data; generates a third group by combining a first group and a second group of the plurality of groups based on a difference between values of the first attribute of the training data included in each of the plurality of groups and a difference between fairness evaluation values of each of the plurality of groups; and generates a second plurality of training data by modifying the training data included in the third group based on the fairness evaluation value of the third group.
[0173] (Supplementary Note 12) The information processing device according to Supplementary Note 11, wherein a difference between the number of data items of the training data included in the first group and the number of data items of the training data included in the second group is less than a first threshold value.
[0174] (Supplementary Note 13) The information processing device according to Supplementary Note 11 or Supplementary Note 12, wherein a difference between the fairness evaluation value of the first group and the fairness evaluation value of the second group is less than a second threshold value.
[0175] (Supplementary Note 14) The information processing device according to any one of Supplementary Notes 11 to 13, wherein a difference between a value of the first attribute of the training data included in the first group and a value of the first attribute of the training data included in the second group is equal to or less than a third threshold.
[0176] (Supplementary Note 15) The information processing device according to any one of Supplementary Notes 11 to 14, wherein the control unit trains a machine learning model using the second plurality of training data.
[0177] REFERENCE SIGNS LIST 1 Server 10 Computer 11a Training dataset 11b Base segment 11c Fairness score 11d Merged segment 11e Corrected training dataset 11f Machine learning model 12 Base segment extraction unit 13 Calculation unit 14 Merging unit 15 Correction processing unit 16 Machine learning unit 20 Control unit
Claims
1. A training data generation program that causes a computer to execute the following processes: classifying a first plurality of training data into a plurality of groups based on the values of a first attribute of the first plurality of training data; generating a third group by combining the first group and a second group of the plurality of groups based on the difference between the values of the first attribute of the training data included in each of the plurality of groups and the difference between the fairness evaluation values of each of the plurality of groups; and generating a second plurality of training data by modifying the training data included in the third group based on the fairness evaluation value of the third group.
2. The training data generation program according to claim 1, wherein a difference between the number of data items in the training data included in the first group and the number of data items in the training data included in the second group is less than a first threshold value.
3. The training data generation program according to claim 1 or 2, wherein a difference between the fairness evaluation value of the first group and the fairness evaluation value of the second group is less than a second threshold value.
4. A training data generation program as claimed in any one of claims 1 to 3, wherein a difference between the value of the first attribute of the training data included in the first group and the value of the first attribute of the training data included in the second group is less than or equal to a third threshold value.
5. A training data generation program according to any one of claims 1 to 4, which causes the computer to execute a process of training a machine learning model using the second plurality of training data.
6. A training data generation method in which a computer performs the following processes: classifying a first plurality of training data into a plurality of groups based on values of a first attribute of the first plurality of training data; generating a third group by combining the first group and a second group of the plurality of groups based on a difference between values of the first attribute of training data included in each of the plurality of groups and a difference between fairness evaluation values of each of the plurality of groups; and generating a second plurality of training data by modifying the training data included in the third group based on the fairness evaluation value of the third group.
7. The training data generation method according to claim 6, wherein a difference between the number of data items in the training data included in the first group and the number of data items in the training data included in the second group is less than a first threshold value.
8. The training data generation method according to claim 6 or 7, wherein a difference between the fairness evaluation value of the first group and the fairness evaluation value of the second group is less than a second threshold value.
9. A training data generation method according to any one of claims 6 to 8, wherein a difference between the value of the first attribute of the training data included in the first group and the value of the first attribute of the training data included in the second group is equal to or less than a third threshold.
10. The training data generation method according to any one of claims 6 to 9, wherein the computer executes a process of: training a machine learning model using the second plurality of training data.
11. An information processing device comprising a control unit that classifies a first plurality of training data into a plurality of groups based on the values of a first attribute of the first plurality of training data; generates a third group by combining the first group and a second group of the plurality of groups based on the difference between the values of the first attribute of the training data included in each of the plurality of groups and the difference between the fairness evaluation values of each of the plurality of groups; and generates a second plurality of training data by modifying the training data included in the third group based on the fairness evaluation value of the third group.
12. The information processing device according to claim 11, wherein a difference between the number of data items in the training data included in the first group and the number of data items in the training data included in the second group is less than a first threshold value.
13. The information processing device according to claim 11 or 12, wherein a difference between the fairness evaluation value of the first group and the fairness evaluation value of the second group is less than a second threshold value.
14. An information processing device according to any one of claims 11 to 13, wherein a difference between the value of the first attribute of the training data included in the first group and the value of the first attribute of the training data included in the second group is less than or equal to a third threshold value.
15. The information processing device according to any one of claims 11 to 14, wherein the control unit trains a machine learning model using the second plurality of training data.
Citation Information
Patent Citations
Learning system for network
JP1993265998A
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
