Machine learning program, machine learning method, and machine learning device
By calculating swap variables to weight the loss function directly, the method optimizes fairness constraints in rank learning, addressing overfitting and ensuring consistent fairness evaluation across training and testing.
Patent Information
- Application Number
- JP2023525255
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-06-02
- Publication Date
- 2024-10-16
- Estimated Expiration
- 2041-06-02
AI Technical Summary
Conventional methods for fairness-constrained optimization in rank learning suffer from overfitting and fail to accurately balance ranking accuracy and fairness due to non-differentiable fairness constraints and approximations, leading to over- or under-estimation of fairness.
A method that calculates a swap variable based on the difference in fairness values when swapping ranks between protected and unprotected groups, using this to directly weight the loss function without approximation, thereby optimizing fairness constraints without overfitting.
This approach allows for accurate detection and correction of group fairness without overfitting, ensuring consistent fairness evaluation between training and testing phases.
Smart Images

Figure 0007568085000012 
Figure 0007568085000013 
Figure 0007568085000014
Abstract
Description
[Technical field]
[0001] The present invention relates to a machine learning method that takes fairness into consideration. [Background technology]
[0002] In recent years, a method called rank learning has become popular, which uses machine learning models to predict rankings of past binary data such as clicks on web pages, credit reports, and job offers, sorting data in order of likelihood of being positive examples. Learning to rank is increasingly being used in decision-making at many companies, including banks and social networking service (SNS) companies.
[0003] However, there are cases where attributes that should not be discriminated against (protected attributes), such as gender and race, affect the prediction results, which is problematic. This type of problem was previously proposed for classification problems, but has recently been proposed for ranking problems as well.
[0004] For example, on social media, machine learning can be used to predict that male accounts will occupy the top of search result rankings by using data showing that male accounts receive a large number of clicks.
[0005] This is mainly due to discriminatory bias in the input data used in machine learning. In the above example, this is due to data with an overwhelming number of positive examples of men, or data with an overwhelming number of men.
[0006] Various criteria are introduced to evaluate the fairness of groups based on protected attributes (protected groups) in the ranking of prediction results, and it is expected that fair ranking learning will take into account potential social issues such as discrimination and eliminate bias from the output.
[0007] As a method to correct such unfairness in ranking output, an in-processing method is known that adds a fairness constraint to the AI (Artificial Intelligence) algorithm for rank learning to correct fairness. In this method, a fairness constraint is added to the loss and its approximation formula is optimized, as shown in the following formula (1).
[0008]
number
[0009] Note that the tolerance ε is a threshold value at which unfairness is tolerated, and λij is a parameter that controls the effect of the constraint. In machine learning, an optimization problem is solved to minimize the loss function Loss expressed by the above equation (1). [Prior art documents] [Patent documents]
[0010] [Patent Document 1] International Publication No. 2020 / 240981 [Patent Document 2] US Patent Application Publication No. 2020 / 0293839 Summary of the Invention [Problem to be solved by the invention]
[0011] However, in such conventional methods for correcting unfairness in ranking output, the fairness constraint in the above formula (1) is not differentiable and therefore needs to be approximated. This can lead to overestimation (or underestimation) of fairness. In addition, when optimizing the approximated fairness constraint, the derivative becomes 0 in many areas, so it is necessary to add slack (a small amount) to adjust it. This can lead to overfitting when there is little training data available, and the trade-off fails in testing. In other words, the conventional method of optimizing ranking accuracy loss with a fairness constraint can lead to overfitting. In one aspect, the present invention aims to enable fairness-constrained optimization without overfitting. [Means for solving the problem]
[0012] For this reason, this machine learning program causes a computer to execute the following processes: identify a first ranking within a plurality of data according to the output of a machine learning model for each of the plurality of data; calculate a parameter based on the difference between a fairness value based on the attribute of the second ranking when a first data item having a first attribute and a second data item having a second attribute among the plurality of data items are swapped in the first ranking; and calculate a parameter based on the difference between a fairness value based on the attribute of the first ranking and a fairness value based on the attribute of the first ranking; and train the machine learning model using a loss function including the parameter. Effect of the Invention
[0013] According to one embodiment, fairness-constrained optimization can be achieved without overfitting. [Brief description of the drawings]
[0014] [Figure 1] FIG. 1 is a diagram illustrating a functional configuration of an information processing apparatus as an example of an embodiment. [Diagram 2] FIG. 13 is a diagram showing an example in which a ranking is set for a plurality of examples according to their prediction scores. [Diagram 3] FIG. 11 is a diagram illustrating a swap variable in an information processing device as an example of an embodiment. [Figure 4] 1 is a flowchart illustrating a process in an information processing device as an example of an embodiment. [Diagram 5] 11A and 11B are diagrams illustrating a fairness evaluation value obtained by an information processing device as an example of an embodiment in comparison with a conventional method. [Figure 6] 11A and 11B are diagrams illustrating a fairness correction technique performed by an information processing device as an example of an embodiment in comparison with a technique that does not consider pairs. [Figure 7]FIG. 1 is a diagram illustrating a hardware configuration of an information processing apparatus according to an embodiment; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0015] Hereinafter, the embodiments of the present machine learning program, machine learning method, and machine learning device will be described with reference to the drawings. However, the embodiments shown below are merely examples, and are not intended to exclude the application of various modified examples and technologies not explicitly stated in the embodiments. In other words, the present embodiment can be implemented with various modifications within the scope of its purpose. In addition, each figure is not intended to include only the components shown in the figure, but can include other functions, etc.
[0016] (A) Configuration FIG. 1 is a diagram illustrating a schematic functional configuration of an information processing device 1 according to an embodiment.
[0017] The information processing device 1 performs ranking on a plurality of (N) pieces of input data that are input. The information processing device may be called a computer or a calculation device.
[0018] In the present information processing device 1, it is assumed that there is unobservable, unbiased true data, but the observable input data is biased from that, so an unfair ranking is generated. The true data cannot be used, and the present information processing device 1 estimates rankings only from observed data. Also, it is assumed that group fairness is taken into consideration rather than individual fairness. There are multiple criteria for evaluating the accuracy and fairness of rankings, and in particular, there is a social need to take into account multiple criteria for evaluating fairness.
[0019] In addition, in the information processing device 1, the following relationship is assumed between the unobserved true labels and the observed labels. That is, a true data set D true Label y′ belonging to the observed data set D biased Assume that there is a binary relationship between the label y belonging to P(y) ∝ P(y′)×w where w∈[0,1] is the bias for the true label y′. The bias differs for each group.
[0020] In machine learning, training is performed using observed data as training data. In addition, by inputting biased labels y into the machine learning model, unfairness occurs to a specific group. A machine learning model can simply be called a model.
[0021] As shown in FIG. 1, the information processing device 1 includes a pair data creation unit 101, a ranking generation unit 102, a predicted score calculation unit 103, a weighted loss function creation unit 104, and a model parameter calculation unit .
[0022] The pair data creation unit 101 creates pair data using the input binary input data. The input data is binary data including positive and negative examples related to labels. The number of input data is N, and may be expressed as N examples. The pair data creation unit 101 creates pair data that combines positive and negative examples. Specifically, the pair data creation unit 101 creates pair data in the number of (number of positive examples) x (number of negative examples). The pair data created by pair data creating unit 101 is stored in, for example, a predetermined storage area in memory 12 or storage device 13, which will be described later with reference to FIG.
[0023] The predicted score calculation unit 103 inputs the input data into the machine learning model and calculates the predicted score for the label {0,1}. The predicted score for example i may be represented by the following symbols. The higher the value (probability) of the predicted score, the more likely it is to be determined as a positive example. A machine learning model used in known rank learning may be used to calculate the predicted score.
[0024]
number
[0025] The predicted score calculation unit 103 may use all of the pair data created by the pair data creation unit 101. In addition, when the number of pair data created by the pair data creation unit 101 is large and the number of pair data is equal to or greater than a predetermined threshold, a predetermined number of pair data may be extracted.
[0026] The ranking generation unit 102 creates a descending order list of the predicted scores of the examples by sorting the predicted scores of each example calculated by the predicted score calculation unit 103. The descending order list of the predicted scores may be called a prediction ranking. The weighted loss function generating unit 104 generates a weighted loss function including weights that are used without approximating the fairness constraints. As shown in FIG. 1, the weighted loss function creation unit 104 includes a cumulative fairness evaluation difference calculation unit 105, a weight calculation unit 106, and a weighted loss function calculation unit 107.
[0027] The cumulative fairness evaluation difference calculation unit 105 calculates a fairness evaluation difference (diff) for each protection group pair with respect to the predicted ranking based on the predicted ranking set by the ranking generation unit 102. The fairness evaluation difference (diff) indicates the current fairness. The cumulative fairness evaluation difference calculation unit 105 calculates a cumulative fairness evaluation difference by accumulating the fairness evaluation difference (diff) calculated for each training step. For each training step, a process is executed in which training data is input to a machine learning model and parameters of the machine learning model are updated based on a loss function according to the obtained predicted ranking.
[0028] Fig. 2 is a diagram showing an example in which rankings are set for multiple examples (four in the example shown in Fig. 2) according to their prediction scores. In Fig. 2, the shaded circles represent positive or negative examples, and the numbers in the circles represent the respective prediction scores.
[0029] In the figure, a circle surrounded by a square indicates, for example, belonging to a social minority group. A social minority group is sometimes called a protected group. In contrast, a circle not surrounded by a square indicates, for example, belonging to a social majority group. A social majority group is sometimes called a non-protected group.
[0030] The four examples shown in Fig. 2 are ranked according to their prediction scores. A positive example with a prediction score of 0.9 and a negative example with a prediction score of 0.7 belong to the same group Gi. A positive example with a prediction score of 0.4 and a negative example with a prediction score of 0.1 belong to the same group Gj.
[0031] Hereinafter, a combination of groups may be referred to as a group pair. In the example shown in Fig. 2, for groups Gi and Gj, there may be four group pairs, for example, (Gi, Gi), (Gi, Gj), (Gj, Gi), and (Gj, Gj).
[0032] The cumulative fairness evaluation difference calculation unit 105 calculates the difference diff between the fairness evaluation functions for each group pair. The difference between the fairness evaluation functions may be called the fairness difference. The difference between the fairness evaluation functions represents the current fairness.
[0033] The cumulative fairness evaluation difference calculation unit 105 may calculate the difference diff of the fairness evaluation functions by using an evaluation criterion value E which is a listwise evaluation criterion, for example. The cumulative fairness evaluation difference calculation unit 105 calculates the cumulative fairness evaluation difference of the group G by using, for example, the following equations (2) to (4). i Evaluation standard value E Gi Calculate.
number
[0034] The cumulative fairness evaluation difference calculation unit 105 calculates the cumulative fairness evaluation difference of the group G j Evaluation standard value E Gj Calculate. Then, the cumulative fairness evaluation difference calculation unit 105 calculates the difference diff in the fairness evaluation function using the following formula (5): The difference diff in the fairness evaluation function represents the difference in the fairness evaluation value of each group.
[0035]
number
[0036] The difference diff between the fairness evaluation functions corresponds to a fairness value based on the first-ranked attribute. The difference of the fairness evaluation function diff is the group G i Evaluation standard value E Gi (a first evaluation value indicating the fairness of a first attribute based on a first ranking), and group G j Evaluation standard value E Gj (a second evaluation value indicating the fairness of the second attribute based on the first ranking). Moreover, the cumulative fairness evaluation difference calculation unit 105 may calculate the difference diff of the fairness evaluation function by using an AUC (Area Under the Curve) which is a pairwise evaluation criterion value. AUC is expressed by the following formula:
[0037]
number
[0038] Then, the cumulative fairness evaluation difference calculation unit 105 calculates the difference diff of the fairness evaluation functions using, for example, the following formula (6): The difference diff of the fairness evaluation functions represents the difference in the fairness evaluation values of the groups.
[0039]
number
[0040] Then, the cumulative fairness evaluation difference calculation unit 105 uses the calculated difference diff of the fairness evaluation function to calculate the cumulative fairness evaluation difference c ij ,cji Calculate the cumulative fairness evaluation difference c ij ,c ji is diffed by simple iteration. ij ,diff ji The cumulative fairness evaluation difference may be called the cumulative fairness value. The cumulative fairness evaluation difference calculation unit 105 calculates the cumulative fairness evaluation difference c by using the update formula shown in the following formula (7) using the learning rate η. ij Estimate.
[0041]
number
[0042] The value of the cumulative fairness evaluation difference calculated by the cumulative fairness evaluation difference calculation unit 105 is stored in a predetermined storage area in the memory 12 or the storage device 13, for example. The weight calculation unit 106 sets a weight for each group pair. The weight of the pair (i, j) is weight w ij This is expressed as:
[0043] The weight calculation unit 106 calculates a swap variable. The swap variable indicates group fairness that changes by exchanging (optimizing) pairs. Even for the same group pair, the swap changes depending on the ranking position. FIG. 3 is a diagram for explaining swap variables in the information processing device 1 as an example of the embodiment.
[0044] In the example shown in Figure 3, each shaded circle represents a positive or negative example, and indicates the ranking of each example. In addition, in the figure, a circle surrounded by a square indicates that it belongs to a protected group. In addition, a circle not surrounded by a square indicates that it belongs to a non-protected group.
[0045] In the example shown in Figure 3, the difference (diff) between the pairwise fairness between the positive and negative groups is 0.75 (diff=0.75). To achieve fairness, we want to make this diff 0.
[0046] We consider a correction process by swapping (optimizing the order) the positive examples in the protected group and the negative examples in the unprotected group. In the example shown in Figure 3, we consider two pairs, <2,6> and <5,6>, as candidates for swapping, respectively. If we exchange <2,6>, the diff<2,6> after the transformation will be 0, resulting in ideal fairness. If we swap <5,6>, the diff<5,6> after the transformation will be 0.5, and fairness will still not be achieved. Here, the difference in group fairness diff before and after swapping the rankings of group pairs can be called the swap variable.
[0047] For example, in the <2,6> example above, the swap variable swap<2,6> is 0.75 (= 0.75 - 0), and in the <5,6> example above, the swap variable swap<5,6> is 0.25 (= 0.75 - 0.5).
[0048] The swap variable is a parameter based on the difference (diff) between the fairness value based on the attribute of the second rank after swapping the ranks of a first data item in a protected group (first attribute) and a second data item in a non-protected group (second attribute) among multiple data items, and the fairness value based on the attribute of the first rank (predicted ranking). The swap variable represents the importance of the pair according to the fairness change rate after the swap, and the weight calculation unit 106 calculates the swap variable for each pair.
[0049] The weight calculation unit 106 calculates ij Based on the weight w ij Calculate the weight w ij is expressed by the following equation (8). That is, the weight w ij swap ij × c ij It is proportional to the probability distribution with argument x.
[0050] w ij ∝ P (swap ij × c ij) · · · (8)
[0051] The weight calculation unit 106 calculates the weight w using, for example, a sigmoid function σ. ij That is, the weight calculation unit 106 may calculate the weight w ij may be calculated.
[0052] w ij = σ (swap ij × c ij ) · · · (9) Note that σ(x) is a function that converts the argument x into the range of [0, 1] and randomizes the variable. For example, σ(x) is expressed by the following formula.
[0053] σ(x) = 1 / (1+e -x ) The weight calculation unit 106 calculates a weight that reflects the difference between the swap and the fairness evaluation function. The weighted loss function calculation unit 107 calculates the weight w ij Using this, the weighted loss function Loss expressed by the following equation (10) is calculated.
[0054]
number
[0055] In the loss function shown in equation (10) above, the weight is multiplied by the accuracy loss. That is, the weighted loss function calculation unit 107 calculates the error (loss of accuracy) of the prediction ranking, and accumulates the value obtained by multiplying the error by the weight to calculate the weighted loss function Loss. The weighted loss function Loss includes a cumulative fairness value obtained by cumulatively processing attribute-based fairness values calculated based on the ranking of data according to the output of the machine learning model at each training step.
[0056] The model parameter calculation unit 108 uses the weighted loss function Loss created (calculated) by the weighted loss function creation unit 104 (weighted loss function calculation unit 107) to update each parameter of the machine learning model used by the prediction score calculation unit 103. The model parameter calculation unit 108 calculates each parameter of the machine learning model by the gradient descent method using the weighted loss function Loss. Each calculated parameter is reflected in the machine learning model used by the prediction score calculation unit 103.
[0057] In the loss function shown in the above formula (10), diff ij < 0, i.e., group G i Group G j c) in cases where the ij increases.
[0058] This gives the weight w ij increases, and G i This increases the loss for items in group G. i The items are trained to be ranked higher. On the other hand, diff ij >0, i.e., group G i Group G j c) in cases where the ij decreases.
[0059] This gives the weight w ij decreases, and G i This reduces the loss for items in group G. i items are learned to be lower.
[0060] In this way, the model parameter calculation unit 108 updates the parameters of the machine learning model using the weighted loss function Loss, so that the machine learning model learns to rank items with larger losses higher.
[0061] (B) Operation The process of the information processing device 1 as one example of the embodiment configured as described above will be described with reference to the flowchart shown in FIG. In advance, the weighted loss function creation unit 104 performs initialization. For example, the training step t = 0, η = 10, c ij = 0 is set respectively.
[0062] In S1, the paired data creating unit 101 creates a plurality of paired data combining positive examples and negative examples using the input binary data. The paired data creating unit 101 creates paired data for all combinations of positive examples and negative examples.
[0063] In S2, the predicted score calculation unit 103 extracts a predetermined number of paired data when the number of paired data created by the paired data creation unit 101 is large and the number of paired data is equal to or greater than a predetermined threshold. Note that, when the number of paired data is less than the threshold, the process may be skipped and the process may proceed to S3. In S3, the prediction score calculation unit 103 inputs each example of the input data to the machine learning model and calculates a prediction score for the label {0, 1}.
[0064] In S4, the ranking generation unit 102 sorts the predicted scores of each example calculated by the predicted score calculation unit 103 to create a descending order list of the predicted scores of the examples. In S5, the cumulative fairness evaluation difference calculation unit 105 calculates a cumulative fairness evaluation difference based on the predicted rankings set by the ranking generation unit 102.
[0065] When calculating the cumulative fairness evaluation difference, the cumulative fairness evaluation difference calculation unit 105 calculates the fairness evaluation difference (diff) for each group pair (S51). Then, the cumulative fairness evaluation difference calculation unit 105 calculates the cumulative fairness evaluation difference by accumulating the calculated fairness evaluation difference (diff) through iterations (S52).
[0066] For example, in the predicted ranking shown in Figure 2, group G i Evaluation standard value EGi is 0.58(E Gi ≒0.58), and group G j Evaluation standard value E Gj is 0.33 (E Gj ≒0.33), the group pair (G i ,G j ) Difference in fairness evaluation function diff ij is calculated as follows:
number
number
[0067] When calculating the weights, the weight calculation unit 106 calculates a swap for each pair (S61), and compares the calculated swap with the cumulative fairness evaluation difference c ij Weight w based on the product ij (S62). It is preferable that the weight calculation unit 106 only considers pairs of positive and negative examples.
[0068] For example, an example of calculating weights in the prediction ranking illustrated in FIG. 2 is shown below. In the example shown below, the subscript numbers 1 to 4 represent rankings (orders). 12 = 0,swap 14 ≒ 0.3, swap 32 ≒ 0.1, swap 34 = 0. w ij = P (swap ij × c ij ) weighted by w ij However, in this example, a sigmoid function σ is used. The weight calculation unit 106 calculates the weight w by using, for example, a sigmoid function σ according to the following formula: ij Calculate. wi j = σ(swap ij × c ij )
[0069] In the example predictive ranking shown in FIG. 2, the calculated weights are as follows: w 12 = σ(0 × 0) = 0.5 w 14 = σ{0.3 × (-2.5)} ≒ 0.32 w 32 = σ(0.1 × 2.5) ≒ 0.56 w 34 = σ(0 × 0) = 0.5
[0070] In S7, the weighted loss function calculation unit 107 calculates the weighted loss function. When calculating the weighted loss function, the weighted loss function calculation unit 107 calculates the error (precision loss) of each prediction ranking (S71) and multiplies these errors by weights corresponding to them (S72). Then, the weighted loss function calculation unit 107 calculates the weighted loss function Loss by accumulating the products of the errors and the weights.
[0071] The error in the prediction ranking is expressed, for example, by the following formula.
number
[0072] The error may be calculated using various known methods. In this example, the error is first randomized by σ(x) and then logarithm lnx = log e Calculate x. We usually use logarithms because it simplifies the calculation of the gradient. The weighted loss function calculation unit 107 calculates the weighted loss function using the above formula (10). Loss = 0.5 × 0.59 + 0.32 × 0.37 + 0.56 × 0.85 0.5 × 0.55 ≒1.1
[0073] Then, in S8, the model parameter calculation unit 108 calculates each parameter of the machine learning model used by the prediction score calculation unit 103 using the weighted loss function Loss created (calculated) by the weighted loss function creation unit 104 (weighted loss function calculation unit 107).
[0074] In S9, the model parameter calculation unit 108 uses the calculated parameters to update the machine learning model used by the prediction score calculation unit 103. Then, the process ends.
[0075] (C) Effects In this manner, according to the information processing device 1 according to an embodiment of the present invention, the weight calculation unit 106 calculates swap variables when the order of positive examples in the protected group and negative examples in the unprotected group is swapped, and the weighted loss function calculation unit 107 calculates a loss function that reflects the swap variables as weights. At this time, the weight estimation is performed by directly using the fairness constraint without approximating it.
[0076] The loss function calculated in this way is then used to update each parameter of the machine learning model, making it possible to accurately detect group fairness regardless of the amount of data. FIG. 5 is a diagram illustrating a fairness evaluation value obtained by the information processing device 1 as an example of the embodiment in comparison with a conventional method.
[0077] In conventional methods, an approximation is performed on the fairness constraint in the loss function (see formula (1)), which causes errors due to the approximation. This can lead to deviations from the actual evaluation value, such as over- (under-)valuing a certain group.
[0078] In contrast, in the present information processing device 1, the fairness evaluation value is used as the weight directly without performing approximation processing in the loss function. Therefore, there is no large difference in fairness between training and test evaluation of the machine learning model. FIG. 6 is a diagram illustrating a fairness correction method by the information processing device 1 as an example of an embodiment in comparison with a method that does not consider pairs.
[0079] In the loss function in the conventional method shown in the above formula (1), it is possible to weight the loss with weights that follow the Boltzmann distribution with the fairness constraint as an argument, and perform fairness correction processing without performing approximation processing. A probability distribution that follows the exponential family of the fairness constraint is used as the weight.
[0080] However, since such methods do not take pairs into account, misjudgments occur when the loss is small during the training step, and the training of the machine learning model ends without being able to detect errors.
[0081] In contrast, in the present information processing device 1, the weight calculation unit 106 sets a weight for each group pair. Since the magnitude of the weight varies depending on the combination of pairs, it is possible to more accurately detect loss related to order during the training step, and to perform error detection.
[0082] The weight calculation unit 106 sets a weight that takes into account the swap variable for each pair (order) and varies the weight depending on the combination of pairs, thereby optimizing the pairs.
[0083] Furthermore, in the present information processing device 1, by performing weighting that takes pairs (orders) into consideration, it is possible to correct the fairness of the weighted rankings. Unfairness in pairs (orders) can be detected and corrected. (D) Other FIG. 7 is a diagram illustrating a hardware configuration of an information processing device 1 as an example of an embodiment.
[0084] The information processing device 1 is a computer and includes, as components, a processor 11, a memory 12, a storage device 13, a graphics processing device 14, an input interface 15, an optical drive device 16, a device connection interface 17, and a network interface 18. These components 11 to 18 are configured to be able to communicate with each other via a bus 19.
[0085] The processor (control unit) 11 controls the entire information processing device 1. The processor 11 may be a multiprocessor. The processor 11 may be, for example, any one of a CPU, an MPU (Micro Processing Unit), a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), a PLD (Programmable Logic Device), and an FPGA (Field Programmable Gate Array). The processor 11 may also be a combination of two or more types of elements among the CPU, MPU, DSP, ASIC, PLD, and FPGA.
[0086] Then, by the processor 11 executing a control program (machine learning program, not shown), the functions of the pair data creation unit 101, the ranking generation unit 102, the predicted score calculation unit 103, the weighted loss function creation unit 104, and the model parameter calculation unit 108 illustrated in FIG. 1 are realized.
[0087] The information processing device 1 realizes the functions of a pair data creation unit 101, a ranking generation unit 102, a predicted score calculation unit 103, a weighted loss function creation unit 104, and a model parameter calculation unit 108, for example, by executing a program (machine learning program, OS program) recorded on a computer-readable non-transitory recording medium.
[0088] The programs describing the processing contents to be executed by the information processing device 1 can be recorded on various recording media. For example, the programs to be executed by the information processing device 1 can be stored in the storage device 13. The processor 11 loads at least a part of the programs in the storage device 13 into the memory 12 and executes the loaded programs.
[0089] The programs to be executed by the information processing device 1 (processor 11) may also be recorded in a non-transitory portable recording medium such as the optical disk 16a, the memory device 17a, or the memory card 17c. The programs stored in the portable recording medium are executable after being installed in the storage device 13, for example, under the control of the processor 11. The processor 11 may also read and execute the programs directly from the portable recording medium.
[0090] The memory 12 is a storage memory including a ROM (Read Only Memory) and a RAM (Random Access Memory). The RAM of the memory 12 is used as a main storage device of the information processing device 1. The RAM temporarily stores at least a part of the program to be executed by the processor 11. The memory 12 also stores various data necessary for processing by the processor 11.
[0091] The storage device 13 is a storage device such as a hard disk drive (HDD), a solid state drive (SSD), or a storage class memory (SCM), and stores various data. An OS program, a control program, and various data are stored in the storage device 13. The control program includes a machine learning program.
[0092] As the auxiliary storage device, a semiconductor storage device such as an SCM or a flash memory can also be used. Furthermore, a plurality of storage devices 13 may be used to configure a RAID (Redundant Arrays of Inexpensive Disks).
[0093] The storage device 13 and memory 12 may store the calculation results generated by the pair data creation unit 101, the ranking generation unit 102, the predicted score calculation unit 103, the weighted loss function creation unit 104, and the model parameter calculation unit 108, as well as various data to be used.
[0094] A monitor 14a is connected to the graphics processing device 14. The graphics processing device 14 displays an image on the screen of the monitor 14a in accordance with an instruction from the processor 11. Examples of the monitor 14a include a display device using a CRT (Cathode Ray Tube) and a liquid crystal display device.
[0095] A keyboard 15a and a mouse 15b are connected to the input interface 15. The input interface 15 transmits signals sent from the keyboard 15a and the mouse 15b to the processor 11. The mouse 15b is an example of a pointing device, and other pointing devices can also be used. Examples of other pointing devices include a touch panel, a tablet, a touch pad, and a trackball.
[0096] The optical drive device 16 uses a laser beam or the like to read data recorded on an optical disk 16a. The optical disk 16a is a portable, non-transient recording medium on which data is recorded so that it can be read by the reflection of light. Examples of the optical disk 16a include a DVD (Digital Versatile Disk), a DVD-RAM, a CD-ROM (Compact Disc Read Only Memory), and a CD-R (Recordable) / RW (ReWritable).
[0097] The device connection interface 17 is a communication interface for connecting peripheral devices to the information processing device 1. For example, a memory device 17a or a memory reader / writer 17b can be connected to the device connection interface 17. The memory device 17a is a non-transitory recording medium equipped with a communication function with the device connection interface 17, such as a Universal Serial Bus (USB) memory. The memory reader / writer 17b writes data to a memory card 17c or reads data from the memory card 17c. The memory card 17c is a card-type non-transitory recording medium.
[0098] The network interface 18 is connected to a network. The network interface 18 transmits and receives data via the network. Other information processing devices, communication devices, etc. may be connected to the network.
[0099] The disclosed technology is not limited to the above-described embodiment, and may be modified in various ways without departing from the spirit of the present embodiment. Each configuration and each process of the present embodiment may be selected as necessary, or may be combined as appropriate. Furthermore, the above disclosure enables a person skilled in the art to implement and manufacture the present embodiment. [Explanation of symbols]
[0100] 1. Information Processing Systems 10. Computers 11 Processor (control unit) 12 RAM 13 HDD 14 Graphics Processing Unit 14a Monitor 15 Input Interface 15a Keyboard 15b Mouse 16 Optical drive device 16a Optical disc 17 Device connection interface 17a Memory Device 17b Memory Reader / Writer 17c Memory Card 18 Network Interface 18a Network 19 Bus 101 Pair Data Creation Department 102 Ranking Generation Unit 103 Prediction score calculation section 104 Weighted loss function creation part 105 Cumulative Fairness Evaluation Difference Calculation Unit 106 Weight Calculation Unit 107 Weighted loss function calculation part 108 Model Parameter Calculation Unit
Claims
1. Identifying a first ranking within the plurality of data according to an output of the machine learning model for each of the plurality of data; calculating a parameter based on a difference between a fairness value based on the attribute of the second order and a fairness value based on the attribute of the first order when a first data item of a first attribute and a second data item of a second attribute among the plurality of data items are swapped in the first order; training the machine learning model using a loss function that includes the parameters; A machine learning program that causes a computer to execute processing.
2. a fairness value based on the attribute of the first order is a difference between a first evaluation value indicating the fairness of the first attribute based on the first order and a second evaluation value indicating the fairness of the second attribute based on the first order; 2. The machine learning program according to claim 1 .
3. The loss function includes a cumulative fairness value obtained by cumulatively processing attribute-based fairness values calculated based on the ranking of data according to the output of the machine learning model for each training step.
3. The machine learning program according to claim 1 or 2.
4. The loss function is a weighted loss function obtained by multiplying the accuracy loss by a weight including the parameter and the cumulative fairness value.
4. The machine learning program according to claim 3 .
5. Identifying a first ranking within the plurality of data according to an output of the machine learning model for each of the plurality of data; calculating a parameter based on a difference between a fairness value based on the attribute of the second order and a fairness value based on the attribute of the first order when a first data item of a first attribute and a second data item of a second attribute among the plurality of data items are swapped in the first order; training the machine learning model using a loss function that includes the parameters; A machine learning method characterized in that processing is executed by a computer.
6. Identifying a first ranking within the plurality of data according to an output of the machine learning model for each of the plurality of data; calculating a parameter based on a difference between a fairness value based on the attribute of the second order and a fairness value based on the attribute of the first order when a first data item of a first attribute and a second data item of a second attribute among the plurality of data items are swapped in the first order; training the machine learning model using a loss function that includes the parameters; A machine learning device comprising a control unit that executes processing.
Citation Information
Patent Citations
Burden Score for an Opaque Model
US20200293839A1
Artificial intelligence device and program manufacturing method
WO2020240981A1
Bias adjustment device, information processing device, information processing method, and information processing program
WO2021085188A1
