Information processing device, information processing method, computer program, and image sensor
By employing Explainable AI to identify and mitigate biases in AI systems, the challenge of biased datasets is addressed, ensuring fair AI decision-making and output fairness.
Patent Information
- Application Number
- PCT/JP2023/035284
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-27
- Filing Date
- 2023-09-27
- Publication Date
- 2024-09-06
AI Technical Summary
AI systems often produce biased outcomes due to biased datasets, making it challenging to collect fair and unbiased data regarding sensitive attributes like race and gender, which affects machine learning fairness and decision-making.
The use of Explainable AI (XAI) to acquire information about biases caused by sensitive attributes, followed by processing to alleviate these biases through data preprocessing, prediction modeling, and influence function calculation, ensuring fairness in AI decision-making.
This approach allows for the visualization and mitigation of biases in AI systems, enabling fair decisions by correcting labels and retraining models, thereby improving the fairness of AI outputs without compromising prediction performance.
Smart Images

Figure JP2023035284_06092024_PF_FP
Abstract
Description
Information processing device, information processing method, computer program, and image sensor
[0001] The technology disclosed in this specification (hereinafter referred to as "the present disclosure") relates to an information processing device and information processing method, a computer program, and an image sensor that perform processing related to AI learning.
[0002] The evolution of AI (Artificial Intelligence) has been remarkable, achieving recognition, discrimination, and prediction capabilities that surpass those of humans, and its use in various fields is expanding. However, ethical issues surrounding AI have arisen, and unfair judgments made by machine learning based on factors such as race and gender have become a social issue. Causes of unfairness in AI include biases arising from the datasets used for training and biases in training. Therefore, challenges include how to mitigate bias during the dataset collection stage and how to learn from collected datasets to make fair judgments. However, collecting a complete dataset that ensures fairness with regard to race and gender is difficult in practice. This is because randomly collected data can result in some kind of biased data distribution, which can affect machine learning as data bias.
[0003] For example, a system has been proposed for managing trained machine learning models, which ensures fairness by rewriting the contents of prediction requests, and then retrains the data set by fixing the values of the rewritten items and changing other values (see Patent Document 1).
[0004] There is also a technique called FairGAN (see Non-Patent Document 1) that uses a generative adversarial network (GAN) to generate data whose distribution of training data does not change depending on the presence or absence of sensitive attributes. The FairGAN model is composed of a generator G for generating new fair training data from noise, as well as two classifiers: a classifier D1 for identifying whether given data is original data or data generated by generator G, and a classifier D2 for identifying whether the generated data has sensitive attributes. Generator G learns to minimize the performance of each classifier D1 and D2. Data generated by the trained generator G is similar to the original training data and has a structure that is independent of sensitive attributes.
[0005] Japanese Patent Application Laid-Open No. 2021-12593
[0006] Xu et al. , "FairGAN: Fairness-aware Generative Adversarial Networks," IEEE BigData 2018. Lundberg, Scott M. , and Su-In Lee. "A unified approach to interpreting model predictions." Advances in neural information processing systems. 12017. "Why Should I Trust You?": Explaining the Predictions of Any Classifier <https: / / arxiv. org / abs / 1602.04938>Residuals and Influence in Regression, Cook, R. D. and Weisberg, S <https: / / conservancy. umn. edu / handle / 11299 / 37076>
[0007] An object of the present disclosure is to provide an information processing device, an information processing method, a computer program, and an image sensor that perform processing to ensure fairness in AI.
[0008] The present disclosure has been made in consideration of the above-mentioned problems, and a first aspect thereof is an information processing device comprising: an acquisition unit that acquires information regarding bias caused by sensitive attributes contained in data or a model using XAI; and a processing unit that performs processing to mitigate bias in the data or model based on the acquired information.
[0009] In the information processing device according to a first aspect, the acquisition unit includes a preprocessing unit that removes data items related to sensitive attributes from input data consisting of multiple data items; a prediction unit that predicts sensitive attributes from data items with non-sensitive attributes in the input data; and a contribution calculation unit that calculates the contribution of each data item with non-sensitive attributes in the input data to the prediction result by the prediction unit. The prediction unit predicts sensitive attributes from data items with non-sensitive attributes in the input data using a prediction model with sensitive attributes as a target variable. The contribution calculation unit calculates the contribution of each data item with non-sensitive attributes based on the judgment basis of the prediction model obtained using XAI. Therefore, the processing unit can correct the correct answer labels corresponding to the input data in accordance with the contribution calculation results, thereby generating a dataset in which bias due to sensitive attributes is mitigated. The processing unit can correct the correct answer labels for each sensitive attribute value in input data, including data items with the highest contribution levels among non-sensitive attributes, thereby generating a dataset in which bias due to sensitive attributes is mitigated.
[0010] Alternatively, in the information processing device according to the first aspect, the acquisition unit further includes an influence function calculation unit that calculates an influence function of a sensitive attribute on a determination result of input data by a trained model. For example, the input data is an image captured by an image sensor, and the trained model is a model trained to detect people from the image. In this case, the influence function calculation unit calculates the influence function of the sensitive attribute when the trained model detects a person from the image. Then, model bias can be mitigated by padding the number of images of sensitive attributes with low influence function values and further retraining the model.
[0011] Furthermore, a second aspect of the present disclosure is an information processing method having: an acquisition step of acquiring information regarding bias caused by sensitive attributes contained in data or a model using XAI; and a processing step of performing processing to mitigate bias in the data or model based on the acquired information.
[0012] Furthermore, a third aspect of the present disclosure is a computer program written in a computer-readable format to cause a computer to function as: an acquisition unit that acquires information regarding bias due to sensitive attributes contained in data or a model using XAI; and a processing unit that performs processing to mitigate bias in the data or model based on the acquired information.
[0013] A computer program according to a third aspect of the present disclosure defines a computer program written in a computer-readable format to perform predetermined processing on a computer. The computer program can be provided to a computer capable of executing various program codes in a computer-readable format via a storage medium or communication medium, such as an optical disk, a magnetic disk, or a semiconductor memory, or via a communication medium such as a network. By installing the computer program according to the third aspect of the present disclosure on a computer via any of these media, a cooperative effect is exerted on the computer, and the same operational effects as those of the device according to the first aspect of the present disclosure can be obtained.
[0014] Furthermore, a fourth aspect of the present disclosure is an image sensor comprising a semiconductor chip with a multi-layer structure, in which a sensor unit including a pixel array for capturing an image is implemented in a first layer, and a memory unit for storing captured images from the sensor unit and a logic unit for controlling the operation of the sensor unit and processing the captured images from the sensor unit are implemented in a second layer and subsequent layers, and the logic unit includes an inference unit for inferring the captured image using a trained model and a judgment basis calculation unit for calculating judgment basis for the inference result using the trained model.
[0015] The inference unit detects a person from a captured image using a trained model, and the judgment basis calculation unit calculates an influence function of a sensitive attribute when the trained model detects a person from an image.
[0016] According to the present disclosure, it is possible to provide an information processing device, an information processing method, a computer program, and an image sensor that use XAI to visualize bias contained in data for AI learning or AI and remove bias.
[0017] It should be noted that the effects described in this specification are merely examples, and the effects brought about by the present disclosure are not limited to these. Furthermore, the present disclosure may also bring about additional effects in addition to the effects described above.
[0018] Further objects, features, and advantages of the present disclosure will become apparent from the following detailed description based on the embodiments and accompanying drawings.
[0019] FIG. 1 is a diagram showing an example of the functional configuration of the learning system 100. FIG. 2 is a flowchart showing a general processing procedure executed in the learning system 100. FIG. 3 is a diagram showing the functional configuration of the data bias relaxation unit 121. FIG. 4 is a diagram showing an example of demodulated parity. FIG. 5 is a diagram showing an example of equalized odds. FIG. 6 is a diagram showing an example of equal opportunity. FIG. 7 is a diagram showing changes in distribution on a data set [Y, X, S] due to bias relaxation. FIG. 8 is a diagram showing an example of the configuration of an information processing device 2000. FIG. 9 is a diagram showing the functional configuration of an imaging device 800. FIG. 10 is a diagram showing an example of hardware implementation of an image sensor 1000. FIG. 11 is a diagram showing an example of hardware implementation of an image sensor 1100. FIG. 12 is a diagram showing an example in which the image sensor 1000 (or 1100) is formed as a semiconductor chip 1200 with a two-layer structure in which two layers are stacked. FIG. 13 is a diagram showing an example in which the image sensor 1000 (or 1100) is formed as a semiconductor chip 1300 with a three-layer structure in which three layers are stacked. FIG. 14 is a diagram showing an example of an operation of the learning system 100. FIG. 15 is a diagram showing an example of a communication sequence performed in the client-server system shown in FIG. 14. FIG. 16 is a diagram showing an example of operation in a digital camera equipped with an image sensor consisting of a semiconductor chip with a multi-layer structure including a logic unit. FIG. 17 is a diagram showing an example of a Shapley value calculated when predicting a sensitive attribute S from a non-sensitive attribute X.
[0020] Hereinafter, embodiments of the present disclosure will be described in the following order with reference to the drawings.
[0021] A. Overview B. Configuration and operation of the learning system B-1. System configuration B-2. System operation C. Bias mitigation mechanism C-1. Bias mitigation mechanism C-2. Regarding fairness C-3. Explainable data bias mitigation method C-4. Configuration of information processing device D. Second embodiment D-1. Configuration of imaging device D-2. Configuration of image sensor D-3. System configuration and operation
[0022] A. Overview AI has made remarkable progress, but ethical issues surrounding AI have arisen. There is concern that training using a dataset with a skewed distribution can lead to bias in the AI, resulting in the output of unfair results. Conversely, AI trained using unbiased and fair datasets can output fair results that are not dependent on sensitive attributes while maintaining predictive or inferential performance. Therefore, collecting unbiased and fair datasets is a challenge.
[0023] Various AI machine learning methods have been proposed to achieve fairness that is independent of sensitive attributes. However, because AI methods themselves are black boxes, humans cannot intuitively understand the internal processes that determine fairness. There is also the problem that there are certain limitations to collecting diverse data.
[0024] Therefore, this disclosure proposes a bias mitigation method using explainable AI (XAI), which can obtain information about bias caused by sensitive attributes included in input data using XAI and then perform bias mitigation processing based on the obtained information.
[0025] In a first embodiment of the present disclosure (described below), a predictive model is used to predict sensitive attribute data in the input data from non-sensitive attribute data in the input data, and XAI is used to calculate the judgment basis of the predictive model, and the correct label corresponding to the input data is corrected based on the calculation results by XAI, thereby mitigating bias caused by sensitive attributes that may be present in the training dataset.
[0026] In a second embodiment of the present disclosure (described later), XAI is used to calculate the influence function of each data item with a sensitive attribute in the input data on the inference results of the trained model. For example, when implemented in an image sensor with AI functionality and the AI performs person detection from images captured by the image sensor, the influence function of each data item with a sensitive attribute on the detection results is calculated. If a data item with a sensitive attribute that has a low influence score in person detection is identified, the images corresponding to that data item are padded and the AI is retrained, thereby mitigating the bias of the AI caused by the sensitive attribute.
[0027] Therefore, the present disclosure makes it possible to remove biases that may be present in datasets where sensitive attributes such as race, age, and gender are unknown, and to provide a human-understandable explanation of how bias mitigation was achieved.
[0028] B. Configuration and Operation of the Learning System In a first embodiment of the present disclosure, a prediction model is used to predict sensitive attributes from input data excluding data on sensitive attributes, and XAI is used to calculate the judgment basis for the prediction model. Based on the calculation results by XAI, the correct label corresponding to the input data is corrected, thereby mitigating data bias due to sensitive attributes that may be present in the training dataset. In a second embodiment of the present disclosure, XAI is used to calculate an influence function on the inference results of the trained model for each data item of sensitive attributes in the input data, and re-training is performed based on each influence score to mitigate model bias. This section B describes the configuration and operation of the learning system applied to each embodiment of the present disclosure.
[0029] B-1. System Configuration FIG. 1 shows an example functional configuration of a learning system 100 to which the first embodiment of the present disclosure is primarily applied. The illustrated learning system 100 is mounted on, for example, an edge device for use; however, some or all of the functions of the learning system 100 may be implemented on the cloud or a computing device capable of large-scale computing. Hereinafter, the learning system 100 will be described as training a model (e.g., a neural network model) that performs image recognition, such as face detection, face identification, human body detection, and pose estimation. It may also be configured to train a model that performs inference, such as personnel hiring, recidivism rate, and loan decisions, based on images. However, the present disclosure is not limited to this example, and the learning system 100 may also train models used for inference in various fields.
[0030] The illustrated learning system 100 includes a dataset holding unit 101, a model learning unit 102, a model parameter holding unit 103, an inference unit 111, a data input unit 112, and an input data processing unit 113. Of these, the dataset holding unit 101, the model learning unit 102, and the model parameter holding unit 103 operate in the model learning phase, while the inference unit 111, the data input unit 112, and the input data processing unit 113 operate in the inference phase using a trained model. The learning system 100 is used by being mounted on, for example, an edge device; however, some or all of the functions of the learning system 100 may be implemented on a cloud or a computing device capable of large-scale computing. For example, the model learning unit 102, which handles vast amounts of data and requires high computing power, may be located on a server on the cloud, and the inference unit 111, which uses a trained model, may be located on an edge device such as a digital camera, a multi-function information terminal such as a smartphone or a tablet, or a personal computer.
[0031] In addition, in this embodiment, the learning system 100 is further equipped with a dataset collection unit 130 that provides a dataset used for model learning, and a data bias mitigation unit 121 that mitigates biases hidden in the dataset used for model learning in the model learning unit 102.
[0032] The learning system 100 may further be equipped with a model bias determination unit 123 that determines the bias when the inference unit 111 performs inference using the trained model, and a model bias mitigation unit 124 that performs processing to mitigate the bias of the trained model based on the model bias determination result.
[0033] The dataset collection unit 130 collects datasets that are used by the model learning unit 102 for model learning. The dataset collection unit 130 collects the datasets via a wide area network such as the Internet, and stores them in the dataset storage unit 101. The dataset collection unit 130 may also collect datasets from a service that provides datasets for learning.
[0034] A dataset basically consists of a combination of input data to be input to a model to be trained and observed values for the input data. The input data consists of sensitive attribute data S and non-sensitive attribute data X. The sensitive attribute data S basically includes gender, race, and age. However, depending on the application, one of gender, race, and age may be omitted, or some non-sensitive attribute data may be treated as sensitive attribute data. The observed value corresponds to the correct label Y when training the model. Hereinafter, a dataset will be described as [Y, X, S].
[0035] Furthermore, when the model learning unit 102 learns a model for image classification such as person detection or object detection, the dataset collection unit 130 collects datasets consisting of combinations of images captured by a large number of digital cameras and correct labels (indicating the identity of the subject of the captured images) via a wide area network such as the Internet, and stores the datasets in the dataset holding unit 101.
[0036] The dataset holding unit 101 stores a dataset used by the model learning unit 102 for model learning. The dataset holding unit 101 stores a dataset provided by the dataset collection unit 130, but may also store datasets obtained from other sources. In this embodiment, a data bias mitigation unit 121 (described later) further mitigates (i.e., corrects) the bias caused by the sensitive attribute data S hidden in the non-sensitive attribute data X to obtain a correct answer label Y. 0 A dataset consisting of [Y 0 , X, S] are also stored in the dataset storage unit 101. When the model learning unit 102 performs deep learning, a huge amount of required datasets are stored in the dataset storage unit 101. The dataset storage unit 101 is configured with a large-capacity storage device and may be, for example, a data server.
[0037] The model learning unit 102 sequentially reads datasets from the dataset storage unit 101, learns the model, and updates the model parameters. The model to be learned is, for example, a neural network composed of a combination of neurons, but may also be a model using a type such as support vector regression or Gaussian process regression. A neural network model is composed of multiple layers: an input layer that inputs data (explanatory variables) such as images, an output layer that outputs labels (objective variables) that are inference results for the input data, and one or more intermediate layers (or hidden layers) between the input layer and the output layer. Each layer consists of multiple nodes that correspond to neurons. The connections between nodes between layers have weights, and the value of data input to the input layer is transformed as it passes from layer to layer.
[0038] The model training unit 102 calculates a loss function L defined based on the error between the output Y^ from the model for input data [X, S] and the known correct label Y corresponding to the input data, and performs model training while updating the model parameters by error backpropagation so as to minimize this loss function L. The model training unit 102 then stores the model parameters obtained as a result of the training in the model parameter holding unit 103. The model parameters are variable factors that define the model, such as connection weight coefficients assigned between nodes in a neural network model. Note that the estimated value of Y output from the model is expressed in mathematical expressions with an accent symbol "^" above the letter "Y." In the main text of this specification, the estimated value of Y will be expressed as "Y^," with the accent symbol "^" immediately following the letter "Y."
[0039] Since the model learning process requires a huge amount of calculation, the model learning unit 102 may perform learning using an information processing device equipped with an arithmetic circuit such as a multi-core CPU (Central Unit), GPU (Graphics Processing Unit), or GPGPU (General-purpose computing on graphics processing units), or may perform distributed learning using multiple calculation nodes.
[0040] The inference unit 111, the data input unit 112, and the input data processing unit 113 perform the inference phase using the trained model. These functional modules 111 to 113 are implemented, for example, on an edge device that uses the trained model. The data input unit 112 inputs data to be inferred from an external device. The data input unit 112 may input data via a console, or may input sensor information acquired by a sensor provided in the edge device. The input data processing unit 113 formats the data input from the data input unit 112 into a data format that can be input to the trained model, and inputs the format to the inference unit 111. The input data to the inference unit 111 is [X, S], which includes data X of a non-sensitive attribute and data S of a sensitive attribute. The inference unit 111 outputs a predicted value Y^ predicted by the trained model from the input data [X, S]. The trained model is a model in which model parameters read from the model parameter holding unit 103 are set.
[0041] The data bias alleviation unit 121 sequentially retrieves the data set [Y, X, S] stored in the data set holding unit 101, corrects the correct answer label Y corresponding to the input data [X, S] so as to alleviate the bias caused by the sensitive attribute data S hidden in the non-sensitive attribute data X, and calculates the corrected correct answer label Y. o The dataset [Y o, X, S] is written back to the dataset holding unit 101. In a first embodiment of the present disclosure, the data bias mitigation unit 121 uses a prediction model to predict the sensitive attribute S^ from the input data X from which the data of the sensitive attribute has been removed, and calculates the basis for the prediction model's determination of the sensitive attribute S^ using XAI. Specifically, for each data item of the non-sensitive attribute in the input data, a Shapley value based on cooperative game theory is calculated as the contribution to the prediction. Then, the correct label for each sensitive attribute value of the input data, including the data item with the highest Shapley value among the non-sensitive attributes, is corrected to mitigate bias due to the sensitive attribute hidden in the dataset [Y, X, S]. Details of the data bias mitigation process will be described in detail in the following section C.
[0042] Note that various settings in the data bias mitigation process in the data bias mitigation unit 121 may be set by user operation via a UI (User Interface). Furthermore, the data bias mitigation unit 121 can use the UI to visualize how bias mitigation of input data has been performed, making it understandable to humans. For example, the data bias mitigation unit 121 may provide feedback to the user on the Shapley values calculated for each data item of non-sensitive attributes in the input data, and information on the data bias mitigation process based on the Shapley values.
[0043] The model bias determination unit 123 analyzes the results of inference performed by the inference unit 111 using the trained model to determine whether the fairness of the model is ensured, i.e., determines the model bias. In a second embodiment (described below), XAI is used to calculate the influence function of each data item with a sensitive attribute in the input data on the trained model, i.e., the inference result by the inference unit 111. Next, the model bias determination unit 123 detects whether there are any data items with a low influence score on the inference result by the trained model. Then, the model bias determination unit 123 can determine that data items with a sensitive attribute with a low influence score are negatively biased, i.e., that the fairness of the model is not ensured.
[0044] The model bias mitigation unit 124 performs processing to mitigate model bias based on the model bias determination result. The model bias mitigation unit 124 may implement a model bias mitigation algorithm, such as transfer learning, fine tuning, or additional learning, to mitigate model bias for the trained model in the model training unit 102. In a second example of the present disclosure, the model bias mitigation unit 124 inflates input data corresponding to data items of sensitive attributes determined by the model bias determination unit 123 to have a low impact score on the inference of the trained model, and instructs the model training unit 102 to retrain the model using the inflated input data. As a result, the model is retrained to improve the impact even for sensitive attributes that had a low impact score, thereby mitigating model bias caused by sensitive attributes.
[0045] Note that various settings in the model bias mitigation process may be set by user operation via a UI. Furthermore, the model bias mitigation unit 124 can visualize how the model bias mitigation was performed by presenting it using a UI, making it understandable to humans.
[0046] B-2. System Operation Figure 2 shows, in the form of a flowchart, an outline of the processing steps executed in the learning system 100. The processing steps shown in the figure are divided into a learning phase in which a model is learned and an inference phase in which inference is made using a trained model. The main features of the processing steps are that the learning phase includes processing to mitigate bias in the training data, i.e., "data bias," and the inference phase includes processing to mitigate bias in the inference of the trained model, i.e., "model bias."
[0047] First, the learning phase will be described. The dataset collection unit 130 collects datasets to be used by the model learning unit 102 for model learning (step S201). The dataset collection unit 130 collects the datasets via a wide area network such as the Internet, and stores them in the dataset holding unit 101. However, there are no particular limitations on the source from which the dataset collection unit 130 collects the learning data.
[0048] The data bias mitigation unit 121 mitigates biases hidden in datasets used for model training in the model training unit 102 for datasets stored in the dataset holding unit 101. Specifically, the data bias mitigation unit 121 repeatedly performs a series of processes to mitigate bias on each dataset stored in the dataset holding unit 101: reading a dataset [Y, X, S] from the dataset holding unit 101 (step S202), predicting a sensitive attribute S^ from data X of a non-sensitive attribute using a prediction model (step S203), calculating the basis for the prediction model's prediction of the sensitive attribute S^ using XAI (step S204), and correcting the correct label Y corresponding to the input data X based on the calculation result (step S205). In step S204, a Shapley value is calculated as the contribution to prediction for each data item of data X of a non-sensitive attribute in the input data. Then, in step S205, the correct label Y for each sensitive attribute value of the input data, including data items with higher Shapley values among the non-sensitive attribute data X, is corrected to mitigate bias caused by sensitive attributes that may be present in the training dataset.
[0049] The model training unit 102 then uses the data set with the reduced data bias to train the model to be trained and update the model parameters (step S206). For example, when a convolutional neural network is the target of training, the model training unit 102 calculates a loss function L defined based on the error between the model's predicted value Y^ for the input data [X, S] and the correct label Y corresponding to the input data [X, S], and performs training by error backpropagation so as to minimize this loss function L. However, the present disclosure is not limited to a specific training algorithm. The model training unit 102 then stores the model parameters obtained as a result of training in the model parameter storage unit 103.
[0050] Next, the inference phase will be described. The data input unit 112 inputs data to be inferred. The input data processing unit 113 processes the data input from the data input unit 112 so that it has a data format [X, S] that can be input to a trained model, and inputs the data to the inference unit 111. The inference unit 111 then outputs an inference result Y^ for the input data [X, S] using a model in which the model parameters read from the model parameter holding unit 103 are set, i.e., the trained model (step S211).
[0051] Next, the model bias determination unit 123 analyzes the results of the inference performed by the inference unit 111 using the trained model to determine whether the fairness of the trained model is ensured, i.e., to determine model bias. In a second embodiment (described later), XAI is used to calculate the influence function of each data item with a sensitive attribute on the inference result by the trained model (step S212), and it is detected whether there is a data item with a low influence score on the inference result (step S213).
[0052] Then, if there is a data item with a low influence score, i.e., if the model bias determination unit 123 determines that there is model bias (Yes in step S213), the model bias mitigation unit 124 performs processing to mitigate the model bias. In a second example of the present disclosure, the model bias mitigation unit 124 inflates input data including sensitive attribute values determined by the model bias determination unit 123 to have a low influence score on the inference of the trained model (steps S214) (step S215), and instructs the model training unit 102 to retrain the model using the inflated input data, and the model training unit 102 performs model retraining (step S215). As a result, the model is retrained to improve the influence even for sensitive attribute values with low influence scores, thereby mitigating model bias caused by sensitive attributes.
[0053] After the model bias relaxation process in steps S215 and S216 is performed, the process returns to step S211, where inference using the model after the model bias relaxation and model bias determination are repeatedly performed. If it is determined that there is no model bias (No in step S213), it is assumed that a bias-free and fair model has been obtained, and the process ends.
[0054] C. First Example In this section C, as a first example of the present disclosure, a technology for mitigating data bias by using XAI to calculate biases hidden in a dataset used for model training will be described. By applying XAI, it is possible to explain in a way that is understandable to humans how data bias mitigation is achieved.
[0055] C-1. Bias Relaxation Mechanism First, the data bias relaxation process performed by the data bias relaxation unit 121 will be described in detail.
[0056] The data bias mitigation unit 121 uses a trained prediction model to predict sensitive attributes in the input data from data of non-sensitive attributes in the input data. Next, the data bias mitigation unit 121 uses XAI to calculate the basis for the prediction model's prediction of sensitive attribute data from non-sensitive attribute data, and corrects the correct answer label corresponding to the input data based on the calculation result by XAI, thereby mitigating bias in the input data caused by sensitive attributes that may be hidden in the training dataset.
[0057] 3 schematically shows the functional configuration of the data bias mitigation unit 121. The illustrated data bias mitigation unit 121 includes a preprocessing unit 301, a prediction unit 302, a contribution calculation unit 303, and a label correction unit 304.
[0058] The preprocessing unit 301 performs preprocessing for performing data bias mitigation processing on the dataset [Y, X, S] extracted from the dataset holding unit 101. Specifically, the preprocessing unit 301 removes data S with sensitive attributes from input data [X, S] of the dataset, and generates input data X consisting of data with non-sensitive attributes.
[0059] The prediction unit 302 predicts the original sensitive attribute data S^ from the non-sensitive attribute data X using the trained prediction model for predicting sensitive attributes.
[0060] The contribution calculation unit 303 calculates the contribution of each data item included in the data X of the non-sensitive attribute of the input data to the prediction result S^ by the prediction model.
[0061] In a first embodiment of the present disclosure, the contribution calculation unit 303 uses SHAP (Shapley Additive Explanations) (see Non-Patent Document 2), which is one of the XAI techniques for visualizing a model. SHAP is an algorithm that calculates the contribution of each feature of target data (the value of each feature included in the target data) to an AI prediction result. By using this SHAP, when a prediction model predicts the original sensitive attribute data S from the non-sensitive attribute data X, the degree of contribution of each data item included in the non-sensitive attribute data X is calculated as a Shapley value based on cooperative game theory.
[0062] The label correction unit 304 corrects the correct label Y corresponding to the input data [X, S] according to the degree of contribution of each data item included in the data X of the non-sensitive attribute, thereby mitigating bias due to the sensitive attribute hidden in the data set [Y, X, S]. Then, the corrected correct label Y o A dataset containing [Y o , X, S] is written back to the dataset holding unit 101. For example, if the sensitive attribute is "gender," the label correction unit 304 changes the correct label for several data items with high Shapley values (or one data item with the highest Shapley value) among the non-sensitive attributes that are equal to or greater than a predetermined threshold and for which the gender is either male or female, thereby generating a dataset in which bias due to gender is alleviated.
[0063] The model learning unit 102 generates a data set [Y 0 , X, S], it is expected that a model can be trained that is free from bias due to sensitive attributes.
[0064] Furthermore, by using a GUI to present the Shapley values calculated by the contribution calculation unit 303 for each data item of the data X with non-sensitive attributes, and the values of each data item of the data X with non-sensitive attributes before and after correction by the label correction unit 304, it is possible to visualize how bias relaxation of the input data has been performed, making it possible for humans to understand.
[0065] The XAI applied to the contribution calculation unit 303 is not limited to SHAP. For example, other methods for calculating the importance of each variable, such as LIME (Local Interpretable Model-agnostic Explanations), may be applied. LIME is an algorithm that estimates that a specific input data item (feature) has "high importance in judgment" if the output result of the neural network is reversed or significantly changed when the input data item (feature) is changed (see Non-Patent Document 3).
[0066] C-2. Fairness In this section C-2, we will explain the definition of fairness in AI technology. Fairness means the absence of bias, that is, the absence of changes in the AI's predicted distribution due to sensitive attributes. Furthermore, sensitive attribute data S basically includes gender, race, and age. However, depending on the application, one of gender, race, and age may be omitted, or part of the non-sensitive attribute data may be treated as sensitive attribute data.
[0067] For example, when predicting whether someone will pass a corporate employment exam, the recidivism rate of former prisoners, or whether someone will pass a loan screening, if the distribution of predicted scores varies depending on sensitive attributes such as race or gender, the model is unfair and fails to eliminate social bias. In the industry, definitions of fairness such as demographic parity, equalized odds, and equal opportunity are known.
[0068] Demographic parity is a definition of fairness that the predicted distribution should be the same regardless of the sensitive attribute. For example, in corporate recruitment, as shown in FIG. 4, fairness is defined as the ratio of hires to rejects being the same regardless of the sensitive attribute "gender" (or the difference in ratios being equal to or less than a predetermined threshold), and the ratio of predicted labels is the standard for fairness. If the predicted value by the trained model is Y^ and the sensitive attribute is S, demographic parity is expressed by the following formula (1):
[0069]
[0070] Furthermore, the definition of fairness for Equalized Odds is that the ratio of True Positive Rate (TPR) to False Positive Rate (FPR) is equal regardless of the sensitive attribute (or the difference in the ratios is equal to or less than a predetermined threshold). For example, in predicting whether a former inmate will reoffend, as shown in FIG. 5 , the criterion for fairness is that the ratio of the false positive rate (FPR), which is a false positive that indicates a reoffense when the inmate did not reoffend, to the true positive rate (TPR), which is a predicted reoffense but actually did reoffend, is the same regardless of the sensitive attribute "race" (or the difference in the ratios is equal to or less than a predetermined threshold). Let Y be the target (whether or not a certain event actually occurred), Y^ be the predicted value by the trained model, S be the sensitive attribute, and y be in the range {0, 1}. Equalized Odds is expressed by the following formula (2):
[0071]
[0072] Furthermore, Equal Opportunity defines fairness as the ratio of True Positive Rates (TPRs) being equal regardless of sensitive attributes (or the difference in ratios being equal to or less than a predetermined threshold), and unlike the above-mentioned Equalized Odds, does not take into account the FPR ratio. For example, in predicting whether a loan borrower will fulfill their debt, as shown in FIG. 6, the standard for fairness is that the ratio of True Positive Rates (TPRs) that are predicted not to default and that actually do not default is the same regardless of the sensitive attribute "gender" (or the difference in ratios is equal to or less than a predetermined threshold). Unlike the above-mentioned Equalized Odds, it does not take into account the ratio of False Positive Rates (FPRs) that are predicted not to default and that actually default. If the target (whether or not a certain event actually occurred) is Y, the predicted value by the trained model is Y^, the sensitive attribute is S, and y belongs to {0, 1}, then Equal Opportunity is expressed by the following equation (3).
[0073]
[0074] In addition to the above, there are other definitions of fairness, such as Fairness Through Awareness, which states that "similar individuals should obtain similar predicted values," and Fairness Through Unawareness, which states that "fairness should be maintained even if sensitive attributes are not explicitly used."
[0075] In any definition of fairness, according to the first embodiment of the present disclosure, a dataset [Y 0 , X, S], it is expected that we can learn a model that is free from bias due to sensitive attributes and can satisfy the above equations (1) to (3) in each application.
[0076] Furthermore, according to the first embodiment of the present disclosure, the data X of the non-sensitive attribute is corrected using the XAI technology, and therefore, by presenting the calculation results by the XAI, it is possible to visualize how the bias of the input data was mitigated, making it possible for humans to understand.
[0077] C-3. Explainable Data Bias Mitigation Method Figure 7 shows the transition of distribution on the dataset [Y, X, S] due to bias mitigation (by the data bias mitigation unit 121) in the first embodiment of the present disclosure. In the figure, the vertical plane is the fair subspace 701, and the horizontal plane wave model distribution subspace 702. The ray where each plane of the fair subspace 701 and the model distribution subspace 702 intersects becomes the model subspace 703 that satisfies the fairness constraint. The random variable S is a sensitive attribute such as gender or race, the random variable X is a non-sensitive attribute, the random variable Y is the correct label, and the random variable Y o is the correct label with the data bias mitigated, and the random variable Y o ^ is the correct label Y after data bias is mitigated o The sensitive attribute S is a feature vector whose elements are the data items included in the sensitive attribute, and the non-sensitive attribute X is a feature vector whose elements are all data items in the input data (explanatory variables) other than the sensitive attribute S.
[0078] Pr[Y, X, S] is the true distribution of a dataset consisting of original input data consisting of non-sensitive attribute data X and sensitive attribute data, and observed values Y. First, based on the data of the true distribution Pr[Y, X, S], a prediction model (a prediction model used by the prediction unit 302) is created using non-sensitive attribute X to sensitive attribute S as objective variables.
[0079] Within the data bias mitigation unit 121, the prediction unit 320 uses a prediction model to predict a sensitive attribute S from a non-sensitive attribute X (Pr[S|X]), thereby determining the relationship between each data item of each attribute. Then, the contribution calculation unit 303 calculates a Shapley value using the XAI SHAP (see Non-Patent Document 2) so that humans can understand the explanation of the judgment basis of this prediction model. The Shapley value is a numerical value that indicates the degree to which each element influences the prediction using cooperative game theory. By calculating the Shapley value of the prediction model, humans can understand the contribution of each data item included in the non-sensitive attribute X to the sensitive attribute. For example, if the sensitive attribute "gender" is used as the objective variable of the prediction model, the contribution of each data item x1, x2, ... of the non-sensitive attribute X, which is an explanatory variable, is indicated by the Shapley value, thereby explicitly indicating which explanatory variable contributes the most.
[0080] It can be considered that explanatory variables that contribute to predictions using sensitive attributes as the objective variable have some kind of influence as data bias. Therefore, the label correction unit 304 can mitigate bias caused by sensitive attributes by correcting the correct label Y corresponding to the data item with a high Shapley value among the data items x1, x2, ... included in the data X of non-sensitive attributes.
[0081] Referring again to FIG. 7, the correct label Y after correction by the label correction unit 304 is o The true fair data distribution Pr[Y 0 , X, S]. The subspace where the model subspace 702 and the fair subspace 703 intersect is the fair data distribution Pr[Y o , X, S], resulting in an unbiased model subspace 703.
[0082] Here, an example of alleviating data bias in a dataset [Y, X, S] for learning whether a loan application is possible using the above method will be described. In this case, the correct answer label is set to two values, 1 (loan approved) and 0 (loan rejected), and for simplicity of explanation, the only sensitive attribute is "gender." Figure 17 shows an example of the Shapley values calculated for each data item of the non-sensitive attribute when predicting "gender" as the sensitive attribute S from the non-sensitive attribute X.
[0083] In the example shown in FIG. 17 , the non-sensitive attribute X includes five data items: "credit amount," "people liable for," "employment=A72," "investment as income percentage," and "housing=A151." Among these, "credit amount" has the highest Shapley value, and therefore it can be read that it contributes most to gender. Therefore, the label correction unit 304 inverts the value of the correct label Y (loan availability) when the gender is male among the input data [X, S] in which the value of "credit amount" is equal to or greater than a predetermined threshold (for example, an average value), or inverts the value of the correct label Y (loan availability) when the gender is female among such input data [X, S], thereby obtaining the corrected correct label Y o and the gender bias-reduced dataset [Y o , X, S].
[0084] The inventors have applied the above-mentioned method to obtain experimental results showing that the Statistical Parity Difference was improved, i.e., the data bias between men and women was alleviated. Another feature of the method disclosed herein is that it can show the explanatory variables that contributed to the bias alleviation in a way that is intuitively understandable to humans.
[0085] C-4. Configuration of Information Processing Device This section E describes an information processing device used to implement the learning system 100 according to the present disclosure. FIG. 8 shows an example configuration of an information processing device 2000. The learning system 100 may be implemented using one information processing device 2000, or may be implemented using two or more information processing devices 2000. For example, the components of the learning system 100 may be divided into a learning phase and an inference phase, and the components for each phase may be implemented using one information processing device 2000.
[0086] The information processing device 2000 shown in FIG. 8 includes a CPU 2001, a ROM (Read Only Memory) 2002, a RAM (Random Access Memory) 2003, a host bus 2004, a bridge 2005, an expansion bus 2006, an interface unit 2007, an input unit 2008, an output unit 2009, a storage unit 2010, a drive 2011, and a communication unit 2013.
[0087] The CPU 2001 functions as an arithmetic processing device and control device, and controls the overall operation of the information processing device 2000 in accordance with various programs. In consideration of the calculation load when the information processing device 2000 operates in the learning phase of the learning system 100, it is desirable that the CPU 2001 be a multi-core CPU, and that the information processing device 2000 further be equipped with a multi-core processor such as a GPU or GPGPU in addition to the CPU 2001. However, for convenience, these will hereinafter be collectively referred to simply as the CPU 2001.
[0088] The ROM 2002 stores in a nonvolatile manner programs (such as a basic input / output system) and calculation parameters used by the CPU 2001. The RAM 2003 is used to load programs used in the execution of the CPU 2001 and to temporarily store parameters such as work data that change as appropriate during program execution. Programs loaded into the RAM 2003 and executed by the CPU 2001 include, for example, various application programs and an operating system (OS).
[0089] The CPU 2001, ROM 2002, and RAM 2003 are interconnected by a host bus 2004 including a CPU bus and the like. The CPU 2001 executes various application programs in an execution environment provided by an OS through cooperative operation of the ROM 2002 and RAM 2003, thereby realizing various functions and services. If the information processing device 2000 is a personal computer, the OS may be, for example, Windows or Unix from Microsoft Corporation. If the information processing device 2000 is an information terminal such as a smartphone or tablet, the OS may be, for example, iOS from Apple Inc. or Android from Google Inc. The application programs include applications for operating as functional modules such as the data bias mitigation unit 121, the model learning unit 102, the inference unit 111, the input data processing unit 113, the model bias determination unit 123, and the model bias mitigation unit 124.
[0090] The host bus 2004 is connected to an expansion bus 2006 via a bridge 2005. The expansion bus 2006 is, for example, a PCI (Peripheral Component Interconnect) bus or PCI Express, and the bridge 2005 is based on the PCI standard. However, the information processing device 2000 does not need to be configured so that the circuit components are separated by the host bus 2004, bridge 2005, and expansion bus 2006, and may be implemented so that almost all circuit components are interconnected by a single bus (not shown).
[0091] The interface unit 2007 connects peripheral devices such as an input unit 2008, an output unit 2009, a storage unit 2010, a drive 2011, and a communication unit 2013 in accordance with the standards of the expansion bus 2006. However, not all of the peripheral devices shown in Fig. 8 are necessarily required, and the information processing device 2000 may further include peripheral devices not shown. Furthermore, the peripheral devices may be built into the main body of the information processing device 2000, or some of the peripheral devices may be externally connected to the main body of the information processing device 2000.
[0092] The input unit 2008 is composed of an input control circuit and the like that generates an input signal based on an input from a user and outputs the signal to the CPU 2001. When the information processing device 2000 is a personal computer, the input unit 2008 may include a keyboard, a mouse, a touch panel, and may further include a camera and a microphone. When the information processing device 2000 is an information terminal such as a smartphone or a tablet, the input unit 2008 is, for example, a touch panel, a camera, and a microphone, but may also include other mechanical controls such as buttons.
[0093] The output unit 2009 includes audio output devices such as speakers and headphones, and display devices such as a liquid crystal display (LCD) device, an organic electroluminescence (EL) display device, and an LED (light emitting diode).
[0094] The storage unit 2010 stores files such as programs (applications, OS, etc.) executed by the CPU 2001 and various data. The data stored in the storage unit 2010 may include a corpus of normal speech and whispered speech (described above) for training a neural network. The storage unit 2010 is configured with a large-capacity storage device such as an SSD (Solid State Drive) or an HDD (Hard Disk Drive), but may also include an external storage device.
[0095] The removable storage medium 2012 is a storage medium configured as a cartridge, such as a microSD card. The drive 2011 performs read and write operations on the loaded removable storage medium 113. The drive 2011 outputs data read from the removable storage medium 2012 to the RAM 2003 or the storage unit 2010, and writes data on the RAM 2003 or the storage unit 2010 to the removable storage medium 2012.
[0096] The communication unit 2013 is a device that performs wireless communication such as Wi-Fi (registered trademark), Bluetooth (registered trademark), or a cellular communication network such as 4G or 5G. The communication unit 2013 may also include a terminal such as a Universal Serial Bus (USB) or a High-Definition Multimedia Interface (HDMI) (registered trademark), and may further include a function for communicating with a USB device such as a scanner or a printer, or a display.
[0097] D. Second Example In this section D, as a second example of the present disclosure, a technique for visualizing model bias by calculating the influence function (see Non-Patent Document 3) of each data item of a sensitive attribute on the inference results of a trained model is described. In the second example, a technique for mitigating model bias based on the calculated influence function can be realized. That is, by padding the input data of a sensitive attribute determined to have a low influence score and re-training the model, model bias caused by the sensitive attribute can be mitigated. Furthermore, by applying XAI, it is possible to explain in a way that is understandable to humans how data bias mitigation is achieved.
[0098] For example, when implemented in an image sensor with AI functionality, when the AI detects people from images captured by the image sensor, it also calculates an influence function for each data item with a sensitive attribute on the detection result. It then turns out that data items with a low influence score in person detection are negatively biased, meaning that the fairness of the model is not guaranteed. Therefore, by padding the number of images with the same sensitive attribute and retraining the AI, it is possible to mitigate the AI model bias caused by the sensitive attribute.
[0099] D-1. Configuration of the Imaging Device FIG. 9 schematically shows the functional configuration of an imaging device 900 to which the second embodiment of the present disclosure is applied. The illustrated imaging device 900 includes an optical unit 901, a sensor unit 902, a sensor control unit 903, an inference unit 904, a memory 905, a visual recognition processing unit 906, an output control unit 907, and a display unit 908. For example, a CMOS (Complementary Metal Oxide Semiconductor) image sensor can be formed by integrating the sensor unit 902, the sensor control unit 903, the inference unit 904, and the memory 905. However, the imaging device 900 may be an infrared light sensor that captures images using infrared light, or another type of light sensor.
[0100] The optical unit 901 includes, for example, a plurality of optical lenses for focusing light from the subject onto the light-receiving surface of the sensor unit 902, an aperture mechanism for adjusting the size of an aperture for incident light, and a focus mechanism for adjusting the focus of light irradiated onto the light-receiving surface. The optical unit 901 may further include a shutter mechanism for adjusting the time for which light is irradiated onto the light-receiving surface. The aperture mechanism, focus mechanism, and shutter mechanism included in the optical unit 901 are configured to be controlled by, for example, a sensor control unit 903. Note that the optical unit 901 may be configured integrally with the imaging device 900, or may be configured separately from the imaging device 900 so as to be detachable and replaceable with respect to the main body of the imaging device 900.
[0101] The sensor control unit 903 is configured by, for example, a microprocessor, and controls the reading of pixel data from the sensor unit 902 and outputs image data based on each pixel signal read from each pixel. The pixel data output from the sensor control unit 903 is passed to the inference unit 904 and the visual recognition processing unit 906. The sensor control unit 903 also generates an imaging control signal for controlling imaging in the sensor unit 902 and supplies it to the sensor unit 902. The imaging control signal includes information indicating exposure and analog gain when imaging in the sensor unit 902. The imaging control signal further includes control signals for performing imaging operations of the sensor unit 902, such as a vertical synchronization signal and a horizontal synchronization signal.
[0102] The inference unit 904 corresponds to the "inference unit 111" shown in FIG. 1. The model parameters supplied from the model parameter holding unit 103 are stored in the memory 905, and the inference unit 904 performs inference using the image data that has been visually recognized by the visual recognition processing unit 906, utilizing a trained model in which the model parameters read from the memory 905 are set. However, the inference unit 904 may also perform inference on pixel data passed from the sensor control unit 903. The recognition result by the inference unit 904 is passed to the output control unit 907.
[0103] The inference performed by the inference unit 904 includes recognition processing of objects included in images using pixel data (such as person detection, face identification, and image classification). The inference unit 904 may also perform various predictions such as personnel hiring decisions, recidivism rate assessments, and loan screening.
[0104] In this embodiment, the inference unit 904 further incorporates an XAI and performs processing equivalent to the "model bias determination unit 123" in FIG. 1 , i.e., analyzes the inference results using the trained model and determines model bias. Specifically, the inference unit 904 uses the XAI to calculate the influence function of the sensitive attribute on the person detection results using the trained model. For example, the inference unit 904 calculates the person detection influence function for each attribute value of "male" and "female" for the sensitive attribute data item "gender," and calculates the person detection influence function for each attribute value of "white," "black," ... for the sensitive attribute data item "race." The inference unit 904 then passes the person detection results, together with the calculation results of the influence functions, to the output control unit 907.
[0105] The visual recognition processing unit 906 processes the pixel data passed from the sensor control unit 903 to obtain an image suitable for human visual recognition, and outputs, for example, image data consisting of a group of pixel data. For example, if a color filter is provided for each pixel included in the sensor unit 902 and each pixel data has color information of R (red), G (green), or B (blue), the visual recognition processing unit 906 performs demosaic processing, white balance processing, and the like. The visual recognition processing unit 906 can also instruct the sensor control unit 903 to read pixel data required for the visual recognition processing from the sensor unit 902. The visual recognition processing unit 906 passes the image data resulting from the pixel data processing to the output control unit 907. For example, the above-described functions of the visual recognition processing unit 906 are realized by an image signal processor executing a program pre-stored in a local memory (not shown).
[0106] The output control unit 907 is configured by, for example, a microprocessor. The output control unit 907 receives image data as a result of the visual recognition processing from the visual recognition processing unit 906 and performs processing to display and output the image data on a display unit 908 or to output the image data to an external device of the imaging device 900. The user can visually recognize the captured image through the screen of the display unit 908. The display unit 908 may be built into the imaging device 900 like a viewfinder on the back of a digital camera body, or may be externally connected to the imaging device 900 via an HDMI (registered trademark) interface or the like.
[0107] In this embodiment, the output control unit 907 outputs the inference result (person detection result) and the basis for the inference (influence function of sensitive attributes) from the inference unit 904 along with the image data. The display unit 908 may present the inference result and the basis for the inference together with the captured image. Furthermore, the output control unit 907 may upload the basis for the inference (influence function of sensitive attributes) to a model learning server (not shown in FIG. 9 ) that actually performs the model learning process.
[0108] D-2. Image Sensor Configuration FIG. 10 shows a hardware implementation example of an image sensor 1000 that is configured by integrating a sensor unit 902, a sensor control unit 903, an inference unit 904, and a memory 905. In the example shown in FIG. 10, the sensor unit 902, the sensor control unit 903, the inference unit 904, the memory 905, the visual recognition processing unit 906, and the output control unit 907 are mounted on a single chip 1000. However, in FIG. 10, the memory 905 and the output control unit 907 are omitted from illustration to avoid confusion. In the configuration example shown in FIG. 16, the inference result by the inference unit 904 and the basis for its judgment (the influence function of the sensitive attribute) are output to the outside of the chip 1000 via the output control unit 907. Furthermore, the inference unit 904 can acquire pixel data or image data to be used for recognition from the sensor control unit 903 via an interface within the chip 1000.
[0109] FIG. 11 shows a hardware implementation example of another image sensor 1100 that is configured by integrating a sensor unit 902, a sensor control unit 903, an inference unit 904, and a memory 905. In the example shown in FIG. 11, the sensor unit 902, the sensor control unit 903, the visual recognition processing unit 906, and the output control unit 907 are mounted on a single chip 1100, while the inference unit 904 and the memory 905 are located outside the chip 1100. However, to avoid confusion in the drawing, the memory 1505 and the output control unit 907 are also omitted from FIG. 11. In the configuration example shown in FIG. 11, the inference unit 904 acquires pixel data or image data to be used for recognition from the output control unit 907 via a communication interface between chips. Furthermore, the inference unit 904 directly outputs the inference result and the basis for the judgment (the influence function of the sensitive attribute) to the outside. Of course, the inference results and the basis for the judgment by the inference unit 904 can also be returned to the output control unit 907 within the chip 1100 via the communication interface between the chips, and output from the output control unit 907 to the outside of the chip 1100.
[0110] 10, the inference unit 904 and the sensor control unit 903 are both mounted on the same chip 1000, and therefore communication between the inference unit 904 and the sensor control unit 903 can be performed at high speed via an interface within the chip 1000. On the other hand, in the configuration example shown in FIG. 11, the inference unit 904 is arranged outside the chip 1100, and therefore the inference unit 904 can be easily replaced, and the trained model can be replaced by replacing it. However, communication between the inference unit 904 and the sensor control unit 903 must be performed via an interface between the chips, which is slow.
[0111] FIG. 12 shows an example in which the image sensor 1000 (or 1100) is formed as a semiconductor chip 1200 having a two-layer structure in which two semiconductor chips are stacked. This shows an example in which a stacked-type image sensor 1200 having a two-layer structure in which semiconductor chips are stacked in two layers is formed. In the structure shown in FIG. 12 , a pixel section 1211 is formed in a first-layer semiconductor chip 1201, and a memory and logic section 1212 is formed in a second-layer semiconductor chip 1202. As shown on the right side of FIG. 12 , the first-layer semiconductor chip 1201 and the second-layer semiconductor chip 1202 can be bonded together while being in electrical contact with each other, thereby forming a single solid-state imaging element.
[0112] The pixel unit 1211 includes at least the pixel array in the sensor unit 902. The memory and logic unit 1212 includes, for example, the sensor control unit 903, the inference unit 904, the memory 905, the visual recognition processing unit 906, the output control unit 907, and an interface for communicating with the outside. The memory and logic unit 1212 also includes a part or all of a drive circuit that drives the pixel array in the sensor unit 902. Although not shown in FIG. 12 , the memory and logic unit 1212 may further include, for example, a memory that the visual recognition processing unit 906 uses to process image data.
[0113] Fig. 13 shows an example in which the image sensor 1000 (or 1100) is formed as a semiconductor chip 1300 having a three-layer structure in which three layers are stacked. In the structure shown in Fig. 13, a pixel section 1311 is formed in a first-layer semiconductor chip 1301, a memory section 1312 is formed in a second-layer semiconductor chip 1302, and a logic section 1313 is formed in a third-layer semiconductor chip 1303. As shown on the right side of Fig. 13, the first-layer semiconductor chip 1301, the second-layer semiconductor chip 1302, and the third semiconductor chip 1303 are bonded together while being in electrical contact with each other, thereby forming a single solid-state imaging element.
[0114] The pixel unit 1311 includes at least the pixel array in the sensor unit 1502. The logic unit 1313 includes, for example, the sensor control unit 903, the inference unit 904, the visual recognition processing unit 906, the output control unit 907, and an interface for communicating with the outside. The logic unit 1313 also includes a part or all of a drive circuit that drives the pixel array in the sensor unit 902. The memory unit 1312 may further include, in addition to the memory 905, a memory that the visual recognition processing unit 906 uses to process image data, for example.
[0115] The semiconductor chip 1200 (or 1300) simultaneously outputs the image captured by the pixel section 1211 (or 1311), as well as the person detection result and the influence function of the sensitive attribute by the inference section 904 in the logic section 1212 (or 1312).
[0116] FIG. 16 shows an example of operation in a digital camera 1600 equipped with an image sensor 1601 made up of a semiconductor chip 1200 (or 1300) with a multi-layer structure including a logic section.
[0117] When digital camera 1600 captures images of various people #1 to #3 of different races, genders, ages, etc., image sensor 1601 simultaneously outputs the captured image of each person, as well as the person detection results for the captured image and the influence function of each data item of sensitive attributes during person detection.
[0118] For example, when the image sensor 1601 detects a person from the first captured image 1611, it calculates the influence functions of the sensitive attribute data items "race: black person," "gender: male," and "age: XX," and outputs them simultaneously with the captured image. Similarly, when the image sensor 1601 detects a person from the second captured image 1612, it calculates the influence functions of the sensitive attribute data items "race: white person," "gender: male," and "age: △〇," and when the image sensor 1601 detects a person from the third captured image 1613, it calculates the influence functions of the sensitive attribute data items "race: white person," "gender: female," and "age: △□," and outputs them simultaneously with the captured image.
[0119] For example, if the influence score for the sensitive attribute data item "race: black" is significantly low (or below a predetermined threshold), it can be determined that the trained model for person detection is negatively biased against "black people." In such cases, the model bias can be eliminated by retraining the model with more images of black people, thereby improving the influence score for "black people."
[0120] D-3. System Configuration and Operation Figure 14 shows an example of the operation of the learning system 100 when the second embodiment of the present disclosure is applied. In the example shown, the learning system 100 is configured as a client-server system consisting of a server on the cloud and numerous edge devices (clients) that receive services from the server.
[0121] The server is provided with functional modules related to model learning processing, including a data bias mitigation unit 121 that mitigates biases hidden in a dataset and a model learning unit 102 that uses the bias-mitigated dataset to learn a model. On the server side, model parameters obtained as a result of the learning processing by the model learning unit 102 are stored in a model parameter storage unit 103. On the cloud side, there are numerous edge devices. The edge devices include digital cameras, multifunctional information terminals such as smartphones and tablets, and personal computers. Each edge device includes an inference unit 111, and some edge devices further include a model bias determination unit 123.
[0122] The server provides each edge device with model parameters obtained by model training using a bias-mitigated dataset. The provision of these parameters can take various forms. For example, the model parameters may be pre-installed when the edge device is shipped. After product shipment, the edge device may download the model parameters from the server at an appropriate time. After use begins, model parameters updated on the server side may be downloaded to the edge device as needed. Updates to the model parameters on the server side include updates associated with mitigating model bias, but may also include updates for other purposes.
[0123] Each edge device sets the model parameters provided by the server in the inference unit 111 and performs prediction processing using the trained model. The task performed by the trained model is, for example, person detection from images captured by a camera, but it can also be face detection or face identification, or even employee hiring, loan screening, or repeat offense determination based on face images.
[0124] The edge device including the model bias determination unit 123 analyzes the results of inference performed by the inference unit 111 using the trained model to determine whether the fairness of the model is ensured, i.e., determine the model bias. Specifically, the model bias determination unit 123 uses XAI to calculate the influence function of the sensitive attribute on the inference result of the trained model. That is, the model bias determination unit 123 calculates the influence function of each data item of the sensitive attribute on the inference result of the trained model and detects whether there are any data items with a low influence score on the inference result. The model bias determination unit 123 then determines that a negative bias is applied to data items of the sensitive attribute with a low influence score, i.e., that the fairness of the model is not ensured, and uploads the determination result (or the influence score for each data item of the sensitive attribute) to the server (or may notify the server only if it determines that a model bias exists).
[0125] The server-side model bias mitigation unit 124 performs processing to mitigate model bias based on the model bias determination result. The model bias mitigation unit 124 may implement a model bias mitigation algorithm, such as transfer learning, fine tuning, or additional learning, to mitigate model bias for the trained model in the model training unit 102. Specifically, the model bias mitigation unit 124 inflates a dataset corresponding to a sensitive attribute determined by the model bias determination unit 123 to have a low impact score on the inference of the trained model, and instructs the model training unit 102 to re-train the model using the inflated dataset. In the case of image data, the model bias mitigation unit 124 may generate an image for inflating using, for example, computer graphics (CG) or a generative adversarial network (GAN). As a result of re-training using the inflated dataset, the model is updated to improve the impact of sensitive data items with low impact scores, thereby mitigating model bias caused by sensitive attributes. The model parameters with the model bias alleviated by re-learning are stored in the model parameter storage unit 103 and are further provided to each edge device.
[0126] Next, the system operation will be described. Fig. 15 shows a schematic example of a communication sequence carried out between an edge device and a server in the client-server system shown in Fig. 14. In Fig. 15, for the sake of simplicity, the edge device and the server are shown in a one-to-one relationship, but in reality, one server carries out a similar communication sequence with multiple edge devices.
[0127] In the following description, however, it is assumed that the edge device is a digital camera (or an information terminal equipped with a digital camera function), and that the digital camera is equipped with an image sensor chip (see FIGS. 10, 12, and 13) that implements the functions of the inference unit 111 and the model bias determination unit 123. It is also assumed that the server provides the edge device with model parameters of a model that has been trained to detect people from captured images.
[0128] First, the server provides the edge device with model parameters obtained through learning (TR1501). Alternatively, the edge device acquires the model parameters from the server. In response, the edge device sets the model parameters provided by the server as the model to be used in the inference unit 111 (TR1502), enabling person detection using the learned model.
[0129] After that, when the edge device performs an image capture operation as a normal digital camera (TR1503), the inference unit 111 in the image sensor performs a person detection process using the trained model (TR1504), and the model bias determination unit 123 performs a model bias determination for the person detection result using XAI (TR1505). To determine the model bias, the model bias determination unit 123 calculates the influence function of each data item of the sensitive attribute on the person detection result by the trained model, and detects whether there is any data item with a low influence score on the person detection result.
[0130] The edge device then notifies (uploads) the server of the model bias determination result (TR1506). At this time, the edge device may notify the server of only information about data items with low influence scores, i.e., data items that are negatively biased. Alternatively, the edge device may notify the server of all influence functions calculated for each data item with a sensitive attribute, and the server may determine which data items are negatively biased.
[0131] Upon receiving a notification of the model bias determination result from the edge device, the server mitigates the model bias in the trained model. The server first pads the dataset corresponding to the sensitive attribute data item with a low impact score in person detection (TR1507). For image data, padding images may be generated using, for example, CG or GAN. The server then retrains the model using the padded dataset (TR1508) to mitigate the model bias caused by the sensitive attribute.
[0132] The server then provides the edge device with the model parameters after mitigating the model bias (TR1509). For example, the server may distribute the new model parameters to the edge device in the form of a product software update.
[0133] It is difficult to verify or modify a model after a product is released. In contrast, according to the communication sequence shown in FIG. 15, the bias of the trained model used in each product (i.e., edge device) can be verified using XAI during the actual operation process after release. Furthermore, re-training can be performed on the server side based on the detected model bias information, and the model parameters with the model bias mitigated can be updated for each product. Therefore, when a fairness issue with the trained model becomes apparent during actual operation, the model bias can be mitigated.
[0134] For example, as in the case described above in Section D-2 with reference to FIG. 16, if the edge device observes that the trained model for person detection has a low influence score for the sensitive attribute data item "race: black person," it can determine that the trained model for person detection is negatively biased against "black person." The edge device then notifies the server of this determination result. In response to the notification from the edge device, the server then inflates the number of images of black people and retrains the model, thereby eliminating the model bias and providing the edge device with model parameters with an improved influence score for "black person."
[0135] The present disclosure has been described in detail above with reference to specific embodiments. However, the present disclosure should not be construed as being limited to the above-described embodiments, and it is obvious that those skilled in the art can modify or substitute the embodiments without departing from the spirit of the present disclosure. Furthermore, the effects described in this specification are merely examples, and the effects brought about by the present disclosure are not limited thereto, and additional effects not described in this specification may exist.
[0136] The present disclosure can be applied to training models that perform various detection, judgment, estimation, recognition, and other processes using input images and audio, including face detection, face identification, human body detection, and pose estimation. According to the present disclosure, data bias hidden in a dataset used for model training can be calculated using XAI, and the data bias can be mitigated based on the calculation results. Furthermore, according to the present disclosure, model bias can be mitigated by calculating model bias using XAI, padding a negatively biased dataset, and re-training the model.
[0137] In short, the present disclosure has been described in the form of examples, and the contents of the specification should not be interpreted as limiting. To determine the gist of the present disclosure, the claims should be taken into consideration.
[0138] The series of processes described in this specification can be executed by hardware, software, or a configuration that combines hardware and software. When executing processes by software, a program recording a processing sequence related to realizing the present disclosure is installed in memory in a computer incorporated in dedicated hardware and executed. It is also possible to install the program in a general-purpose computer capable of executing various processes and execute the processes related to realizing the present disclosure.
[0139] The program can be stored in advance on a recording medium installed in the computer, such as a HDD, SSD, or ROM. Alternatively, the program can be temporarily or permanently stored on a removable recording medium such as a flexible disk, CD-ROM (Compact Disc Read Only Memory), MO (Magneto Optical) disk, DVD (Digital Versatile Disc), BD (Blu-Ray Disc (registered trademark)), magnetic disk, or USB (Universal Serial Bus) memory. Using such a removable recording medium, a program related to the realization of the present disclosure can be provided as so-called package software.
[0140] The program may also be transferred wirelessly or via a wire from a download site to a computer via a network such as a wide area network (WAN) typified by cellular, a local area network (LAN), the Internet, etc. The computer can receive the program transferred in this manner and install it in a large-capacity storage device such as an HDD or SSD within the computer.
[0141] The present disclosure may also be configured as follows.
[0142] (1) An information processing device comprising: an acquisition unit that acquires information regarding bias caused by sensitive attributes contained in data or a model using XAI; and a processing unit that performs processing to mitigate bias in the data or model based on the acquired information.
[0143] (2) The information processing device described in (1) above, wherein the acquisition unit includes a preprocessing unit that removes data items related to sensitive attributes from input data consisting of multiple data items, a prediction unit that predicts sensitive attributes from data items of non-sensitive attributes in the input data, and a contribution calculation unit that calculates the contribution of each data item of non-sensitive attributes in the input data to the prediction result by the prediction unit, and the processing unit includes a dataset generation unit that modifies the correct label corresponding to the input data according to the contribution calculation result to generate a dataset in which bias caused by sensitive attributes is mitigated.
[0144] (3) The information processing device described in (2) above, wherein the processing unit modifies the correct label for each sensitive attribute value of input data including data items with the highest contribution among non-sensitive attributes to generate a dataset in which bias caused by sensitive attributes is mitigated.
[0145] (4) The information processing device described in (2) above, wherein the processing unit modifies the correct label for each sensitive attribute value of the input data that has a higher contribution level than a predetermined threshold among data items of non-sensitive attributes, thereby generating a dataset in which bias caused by sensitive attributes is mitigated.
[0146] (5) The information processing device described in (2) above, wherein the sensitive attributes include gender, and the processing unit changes the correct label for non-sensitive attributes for which the value of the data item with the highest contribution is equal to or greater than a predetermined threshold and the gender is either male or female, thereby generating a dataset in which bias due to gender is mitigated.
[0147] (6) The information processing device according to any one of (2) to (5), wherein the prediction unit predicts a sensitive attribute from a data item of a non-sensitive attribute in the input data using a prediction model with the sensitive attribute as a target variable.
[0148] (7) The information processing device according to (6), wherein the contribution calculation unit calculates the contribution of each data item of a non-sensitive attribute based on the judgment basis of the prediction model obtained using XAI.
[0149] (8) The information processing device according to any one of (6) or (7), wherein the contribution calculation unit calculates the contribution based on a Shapley value of each data item of a non-sensitive attribute using SHAP.
[0150] (9) The information processing device described in any one of (2) to (8) above, further comprising: a learning unit that learns a model using a bias-reduced dataset generated by the dataset generation unit; and an inference unit that performs inference using the model trained by the learning unit.
[0151] (10) The information processing device according to any one of (1) to (9), wherein the acquisition unit further includes an influence function calculation unit that calculates an influence function of a sensitive attribute on a determination result of input data by a trained model.
[0152] (11) The information processing device described in (10) above, wherein the input data is an image captured by an image sensor, the trained model is a model trained to detect a person from the image, and the influence function calculation unit calculates the influence function of a sensitive attribute when the trained model detects a person from the image.
[0153] (12) The information processing device according to any one of (10) or (11), wherein the processing unit pads images of sensitive attributes having low values of the influence function, and further performs model re-learning.
[0154] (13) An information processing method comprising: an acquisition step of acquiring information regarding bias caused by sensitive attributes contained in data or a model using XAI; and a processing step of performing processing to mitigate bias in the data or model based on the acquired information.
[0155] (14) A computer program written in a computer-readable format to cause a computer to function as: an acquisition unit that acquires information regarding bias caused by sensitive attributes contained in data or a model using XAI; and a processing unit that performs processing to mitigate bias in the data or model based on the acquired information.
[0156] (15) An image sensor comprising a semiconductor chip with a multi-layer structure, in which a sensor unit including a pixel array for capturing an image is mounted on a first layer, and a memory unit for storing captured images from the sensor unit and a logic unit for controlling the operation of the sensor unit and processing the captured images from the sensor unit are mounted on a second layer and onward, and the logic unit includes an inference unit for inferring the captured image using a trained model and a judgment basis calculation unit for calculating the judgment basis for the inference result using the trained model.
[0157] (16) The image sensor described in (15) above, wherein the inference unit detects a person from a captured image using a trained model, and the judgment basis calculation unit calculates an influence function of a sensitive attribute when the trained model detects a person from an image.
[0158] DESCRIPTION OF SYMBOLS 100...Learning system, 101...Data set holding unit, 102...Model learning unit, 103...Model parameter holding unit, 111...Inference unit, 112...Data input unit, 113...Input data processing unit, 121...Data bias alleviation unit, 122...Data supplementation unit, 123...Model bias determination unit, 124...Model bias alleviation unit, 130...Data set collection unit, 301...Preprocessing unit, 302...Prediction unit, 303...Contribution calculation unit, 304...Label correction unit, 900...Imaging device, 901...Optical unit, 902...Sensor unit, 903...Sensor control unit, 904...Inference unit, 905...Memory, 906...Visibility processing unit, 907...Output control unit, 908...Display unit, 1600...Digital camera, 1601...Image sensor, 2000...Information processing device, 2001...CPU, 2002...ROM 2003...RAM, 2004...host bus, 2005...bridge, 2006...extension bus, 2007...interface section, 2008...input section, 2009...output section, 2010...storage section, 2011...drive, 2012...removable recording medium, 2013...communication section
Claims
1. An information processing device comprising: an acquisition unit that acquires information regarding bias caused by sensitive attributes contained in data or a model using XAI; and a processing unit that performs processing to mitigate bias in the data or model based on the acquired information.
2. The information processing device of claim 1, wherein the acquisition unit includes a pre-processing unit that removes data items related to sensitive attributes from input data consisting of a plurality of data items, a prediction unit that predicts sensitive attributes from data items of non-sensitive attributes in the input data, and a contribution calculation unit that calculates the contribution of each data item of non-sensitive attributes in the input data to a prediction result by the prediction unit, and the processing unit includes a dataset generation unit that modifies a correct answer label corresponding to the input data in accordance with a result of the contribution calculation to generate a dataset in which bias due to sensitive attributes is mitigated.
3. The information processing device according to claim 2, wherein the processing unit applies corrections to correct labels for each sensitive attribute value of input data including data items with the highest contribution among non-sensitive attributes, thereby generating a dataset in which bias caused by sensitive attributes is mitigated.
4. The information processing device according to claim 2, wherein the processing unit applies corrections to correct labels for each sensitive attribute value of the input data whose contribution to non-sensitive attributes is higher than a predetermined threshold value among the data items, thereby generating a dataset in which bias caused by sensitive attributes is mitigated.
5. The information processing device of claim 2, wherein the sensitive attributes include gender, and the processing unit changes the correct label for when the value of a data item with a high contribution among non-sensitive attributes is equal to or above a predetermined threshold and the gender is either male or female, thereby generating a dataset in which bias due to gender is mitigated.
6. The information processing device according to claim 2, wherein the prediction unit predicts sensitive attributes from data items of non-sensitive attributes in the input data using a prediction model with the sensitive attributes as a response variable.
7. The information processing device according to claim 6, wherein the contribution calculation unit calculates the contribution of each data item of a non-sensitive attribute based on the judgment basis of the prediction model obtained using XAI.
8. The information processing device according to claim 6, wherein the contribution calculation unit calculates the contribution based on a Shapley value of each data item of a non-sensitive attribute using SHAP.
9. The information processing device according to claim 2, further comprising: a learning unit that trains a model using a bias-reduced dataset generated by the dataset generation unit; and an inference unit that performs inference using the model trained by the learning unit.
10. The information processing device according to claim 1, wherein the acquisition unit further includes an influence function calculation unit that calculates an influence function of a sensitive attribute on a judgment result of input data by a trained model.
11. The information processing device described in claim 10, wherein the input data is an image captured by an image sensor, the trained model is a model trained to detect a person from an image, and the influence function calculation unit calculates the influence function of a sensitive attribute when the trained model detects a person from an image.
12. The information processing device according to claim 10, wherein the processing unit pads images of sensitive attributes having low values of the influence function, and further performs model re-learning.
13. An information processing method comprising: an acquisition step of acquiring information regarding bias resulting from sensitive attributes contained in data or a model using XAI; and a processing step of performing processing to mitigate bias in the data or model based on the acquired information.
14. A computer program written in a computer-readable format to cause a computer to function as: an acquisition unit that acquires information regarding bias resulting from sensitive attributes contained in data or a model using XAI; and a processing unit that performs processing to mitigate bias in the data or model based on the acquired information.
15. An image sensor comprising a semiconductor chip with a multi-layer structure, in which a sensor unit including a pixel array for capturing an image is implemented in a first layer, and a memory unit for storing captured images by the sensor unit and a logic unit for controlling the operation of the sensor unit and processing the captured images by the sensor unit are implemented in layers from the second onwards, the logic unit including an inference unit for inferring the captured image using a trained model and a judgment basis calculation unit for calculating judgment basis for the inference result based on the trained model.
16. The image sensor of claim 15, wherein the inference unit detects a person from a captured image using a trained model, and the judgment basis calculation unit calculates an influence function of a sensitive attribute when the trained model detects a person from an image.
Citation Information
Patent Citations
System, method, and program
JP2021012593A
Information processing system and information processing program
JP2021152838A
Systems and methods for model fairness
JP2022525702A
Training data generation program, device, and method
WO2021260945A1
Information processing device, information processing method, computer program, imaging device, vehicle device, and medical robot device
WO2022123907A1
Cited By
Power system component evaluation
JP2026087509A
