Information processing device, information processing method, computer program, and image sensor

By employing Explainable AI to adjust labels and retrain models based on bias detection, the method addresses the challenge of ensuring fairness and transparency in AI systems, effectively reducing bias in image recognition tasks.

JP2024121212APending Publication Date: 2024-09-06SONY GROUP CORP

Patent Information

Application Number
JP2023028179
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-02-27
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing AI systems face challenges in ensuring fairness by alleviating bias caused by sensitive attributes in datasets, which leads to unfair decision-making, and current methods lack transparency and effectiveness in mitigating these biases.

Method used

Utilizing Explainable AI (XAI) to acquire information about bias in data or models, and through preprocessing and prediction units, correct labels are adjusted to alleviate bias, and influence functions are calculated to retrain models, ensuring fairness and transparency in AI decision-making.

Benefits of technology

The proposed method effectively reduces bias in AI systems by visualizing the mitigation process, allowing for fair and transparent AI decision-making, particularly in image recognition tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024121212000001
    Figure 2024121212000001
Patent Text Reader

Abstract

To visualize biases, and to remove the biases.SOLUTION: An information processing device includes: an acquisition unit that uses XAI to acquire information regarding biases included in data or a model, the biases being caused by sensitive attributes; and a processing unit that performs processing for mitigating the biases in the data or model on the basis of the acquired information. The acquisition unit includes: a prediction model that predicts sensitive attributes from non-sensitive attribute data items in input data composed of a plurality of data items; and a contribution degree calculation unit that calculates a contribution degree of each non-sensitive attribute data item on the basis of a determination basis of the prediction model as obtained using the XAI.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The technology disclosed in this specification (hereinafter referred to as "the present disclosure") relates to an information processing device and information processing method for performing processing related to AI learning, a computer program, and an image sensor. [Background technology]

[0002] The evolution of AI (Artificial Intelligence) has been remarkable, realizing recognition, discrimination, and prediction beyond that of humans, and its use in various fields is progressing. On the other hand, ethical issues regarding AI have arisen, and machine learning making unfair judgments based on race, gender, etc. has become a social issue. Causes of unfairness in AI include bias due to the dataset used for learning and bias in learning. For this reason, the challenge is how to mitigate bias at the dataset collection stage, and how to learn the collected dataset so that fair judgments can be made. However, in practice, it is difficult to collect a complete dataset that ensures fairness in terms of race and gender. This is because random collection of data will result in some kind of biased data distribution, which will 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 content of prediction requests, and then pads the dataset by fixing the values ​​of the rewritten items and changing other values, thereby re-training the model (see Patent Document 1).

[0004] There is also a method 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 two classifiers: a generator G for generating new fair training data from noise, a classifier D1 for identifying whether given data is original data or data generated by the generator G, and a classifier D2 for identifying whether the generated data has a sensitive attribute. The generator G learns to minimize the performance of each of the classifiers D1 and D2. The data generated by the trained generator G has a structure similar to the original training data and does not depend on the sensitive attribute. [Prior art documents] [Patent documents]

[0005] [Patent Document 1] Patent Publication No. 2021-12593 [Non-patent literature]

[0006] [Non-Patent Document 1] Xu et al.,"FairGAN: Fairness-aware Generative Adversarial Networks," IEEE BigData 2018. [Non-Patent Document 2] Lundberg, Scott M., and Su-In Lee. "A unified approach to interpreting model predictions." Advances in neural information processing systems.12017. [Non-Patent Document 3] "Why Should I Trust You?": Explaining the Predictions of Any Classifier<https: / / arxiv.org / abs / 1602.04938> [Non-Patent Document 4] Residuals and Influence in Regression, Cook, RD and Weisberg,S<https: / / conservancy.umn.edu / handle / 11299 / 37076> Summary of the Invention [Problem to be solved by the invention]

[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. [Means for solving the problem]

[0008] The present disclosure has been made in consideration of the above problems, and a first aspect thereof is: An acquisition unit that acquires information regarding bias due to sensitive attributes included in data or a model using XAI; A processing unit that performs a process of mitigating bias in data or a model based on the acquired information; The information processing device includes:

[0009] In the information processing device according to the first aspect, the acquisition unit includes a preprocessing 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. The prediction unit predicts sensitive attributes from data items of 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 of non-sensitive attributes based on the judgment grounds of the prediction model obtained using XAI. Therefore, the processing unit can generate a dataset in which bias caused by sensitive attributes is alleviated by modifying the correct answer label corresponding to the input data according to the calculation result of the contribution. The processing unit can generate a dataset in which bias caused by sensitive attributes is alleviated by modifying the correct answer label for each sensitive attribute value of the input data including data items with higher contributions among non-sensitive attributes.

[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 judgment 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 a person from the image. In this case, the influence function calculation unit calculates an influence function of a sensitive attribute when the trained model detects a person from the image. Then, the model bias can be mitigated by padding images of sensitive attributes with low values ​​of the influence function and further re-training the model.

[0011] The second aspect of the present disclosure is An acquisition step of acquiring information regarding bias due to sensitive attributes included in the data or model using XAI; A processing step of performing a process to mitigate bias in the data or the model based on the obtained information; The information processing method includes the steps of:

[0012] Moreover, a third aspect of the present disclosure is An acquisition unit that acquires information regarding bias due to sensitive attributes contained in data or a model using XAI; A processing unit that performs a process of mitigating bias in data or a model based on the acquired information; It is a computer program written in a computer-readable form to cause a computer to function as a

[0013] A computer program according to a third aspect of the present disclosure defines a computer program written in a computer-readable format to realize a predetermined process on a computer. The computer program can be provided to a computer capable of executing various program codes in a computer-readable format by a storage medium or a communication medium, such as an optical disk, a magnetic disk, or a semiconductor memory, or 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 the media, a cooperative action is exerted on the computer, and the same action and effect as the device according to the first aspect of the present disclosure can be obtained.

[0014] Moreover, a fourth aspect of the present disclosure is It consists of a multi-layered semiconductor chip, A sensor unit including a pixel array and capturing an image is mounted on a first layer, and a memory unit for storing the captured image of the sensor unit and a logic unit for controlling the driving of the sensor unit and processing the captured image of the sensor unit are mounted on the second layer and onward. The logic unit includes an inference unit that infers a captured image using a trained model and a judgment basis calculation unit that calculates a judgment basis for an inference result by the trained model. It is an image sensor.

[0015] The inference unit detects a person from a captured image using a trained model, and the determination basis calculation unit calculates an influence function of a sensitive attribute when the trained model detects a person from an image. Effect of the Invention

[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 the bias.

[0017] Note that the effects described in this specification are merely examples, and the effects brought about by the present disclosure are not limited thereto. Furthermore, the present disclosure may have 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 the accompanying drawings. [Brief description of the drawings]

[0019] [Figure 1] FIG. 1 is a diagram showing an example of the functional configuration of a learning system 100. As shown in FIG. [Diagram 2] FIG. 2 is a flowchart showing an outline of the processing steps executed in the learning system 100. As shown in FIG. [Diagram 3] FIG. 3 is a diagram showing a functional configuration of the data bias alleviation unit 121. As shown in FIG. [Figure 4] FIG. 4 shows an example of demographic parity. [Diagram 5] FIG. 5 is a diagram showing an example of equalized odds. [Figure 6] FIG. 6 is a diagram showing an example of equal opportunity. [Figure 7]Figure 7 shows the change in distribution on the dataset [Y,X,S] due to debiasing. [Figure 8] FIG. 8 is a diagram showing an example of the configuration of an information processing device 2000. [Figure 9] FIG. 9 is a diagram showing the functional configuration of the imaging device 800. [Figure 10] FIG. 10 is a diagram showing an example of hardware implementation of the image sensor 1000. [Figure 11] FIG. 11 is a diagram showing an example of a hardware implementation of an image sensor 1100. [Figure 12] FIG. 12 is a diagram showing 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 layers are stacked. [Figure 13] FIG. 13 is a diagram showing 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. [Figure 14] FIG. 14 is a diagram showing an example of operation of the learning system 100. [Figure 15] FIG. 15 is a diagram showing an example of a communication sequence performed in the client-server system shown in FIG. [Figure 16] FIG. 16 is a diagram showing an example of operation in a digital camera equipped with an image sensor made up of a semiconductor chip with a multi-layer structure including a logic section. [Figure 17] FIG. 17 is a diagram showing an example of the Shapley value calculated when predicting a sensitive attribute S from a non-sensitive attribute X. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[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. Debiasing Mechanism C-1. Mechanism of bias reduction C-2. Fairness C-3. Explainable data bias mitigation methods C-4. Configuration of information processing device D. Second Example D-1. Configuration of the imaging device D-2. Image sensor configuration D-3. System configuration and operation

[0022] A. Overview AI has made remarkable progress, but ethical issues regarding AI have arisen. There is concern that training using a data set with a skewed distribution may result in bias in the AI, leading to the output of unfair results. Conversely, AI trained using an unbiased and fair data set can output fair results that are not dependent on sensitive attributes while maintaining prediction or inference performance. For this reason, the collection of unbiased and fair data sets is a challenge.

[0023] In order to achieve fairness that does not depend on sensitive attributes, various methods have been proposed for AI machine learning. However, since the AI ​​method itself is a black box, humans cannot intuitively understand the internal process by which fairness decisions are made. In addition, there is also the problem that there is a certain limit to the collection of diverse data.

[0024] Therefore, this disclosure proposes a method for mitigating bias using explainable AI (XAI). According to this disclosure, information about bias caused by sensitive attributes included in input data can be obtained using XAI, and a process for mitigating bias can be performed 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 basis for the predictive model's judgment. Based on the results of the XAI calculation, the correct label corresponding to the input data is corrected, thereby mitigating bias due to sensitive attributes that may be present in the training dataset.

[0026] In addition, in a second embodiment of the present disclosure (described later), XAI is used to calculate the influence function on the inference result by the trained model for each data item of sensitive attributes in the input data. For example, when implemented in an image sensor with AI function and the AI ​​detects a person from an image captured by the image sensor, the influence function of each data item of sensitive attributes on the detection result is calculated. Then, when a data item of sensitive attributes with a low influence score in person detection is found, the images corresponding to that data item are padded and the AI ​​is re-trained, 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, while providing 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 sensitive attribute is predicted using a prediction model from input data excluding data of sensitive attributes, and the judgment basis of the prediction model is calculated using XAI, and the correct label corresponding to the input data is corrected based on the calculation result by XAI, thereby mitigating data bias due to sensitive attributes that is hidden in the learning dataset. In addition, in a second embodiment of the present disclosure, an influence function on the inference result by the trained model is calculated for each data item of the sensitive attribute in the input data using XAI, and re-learning is performed based on each influence score to mitigate model bias. In this section B, the configuration and operation of the learning system applied to each embodiment of the present disclosure will be described.

[0029] B-1. System Configuration FIG. 1 shows an example of a functional configuration of a learning system 100 to which a first embodiment of the present disclosure is mainly applied. The illustrated learning system 100 is mounted on, for example, an edge device for use, but some or all of the functions of the learning system 100 may be constructed on a cloud or a computing device capable of large-scale computing. In the following, the learning system 100 learns a model (such as a neural network model) that performs image recognition such as face detection, face identification, human body detection, and posture estimation, but may also learn a model that performs inference such as hiring or rejecting personnel, recidivism rate, and loan judgment based on an image. However, the present disclosure is not limited to this, and the learning system 100 may learn a model used for inference in various fields.

[0030] The illustrated learning system 100 includes a data set 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 data set holding unit 101, the model learning unit 102, and the model parameter holding unit 103 operate in a model learning phase, and the inference unit 111, the data input unit 112, and the input data processing unit 113 operate in an inference phase using a trained model. The learning system 100 is used by being mounted on, for example, an edge device, but some or all of the functions of the learning system 100 may be built on a cloud or a computing device capable of large-scale computing. For example, the model learning unit 102, which handles a huge amount of data and requires high computing power, may be placed on a server on the cloud, and the inference unit 111, which uses a trained model, may be placed 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 training, and a data bias mitigation unit 121 that mitigates biases hidden in the dataset used for model training in the model training unit 102.

[0032] In addition, 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 a dataset used by the model learning unit 102 for model learning. The dataset collection unit 130 collects the dataset via a wide area network such as the Internet, and stores the dataset in the dataset storage unit 101. The dataset collection unit 130 may collect the dataset from a service that provides a dataset for learning.

[0034] A dataset basically consists of a combination of input data to be input to the 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. 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 non-sensitive attribute data may be treated as sensitive attribute data. Moreover, the observed value corresponds to the correct label Y when training the model. Below, the dataset is described as [Y,X,S].

[0035] In addition, 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 a dataset consisting of a combination of images captured by a large number of digital cameras and a correct answer label (indicating what the subject of the captured image is), via a wide area network such as the Internet, and stores it in the dataset holding unit 101.

[0036] The dataset holding unit 101 accumulates a dataset used by the model learning unit 102 to learn a model. The dataset holding unit 101 accumulates a dataset provided by the dataset collecting unit 130, but may also accumulate datasets obtained from other sources. In this embodiment, the dataset holding unit 101 further accumulates data X of non-sensitive attributes in which bias caused by data S of sensitive attributes has been mitigated (i.e., corrected) by a data bias mitigation unit 121 (described later). 0 A dataset consisting of [Y,X 0 , 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 out the dataset 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 be a model using a type such as support vector regression or Gaussian process regression. The neural network model is composed of multiple layers, including an input layer that inputs data (explanatory variables) such as an image, an output layer that outputs a label (objective variable) that is an inference result for the input data, and one or more intermediate layers (or hidden layers) between the input layer and the output layer. Each layer is composed of multiple nodes that correspond to neurons. The connections between the nodes between layers have weights, and the values ​​of the data input to the input layer are converted as it passes from layer to layer.

[0038] The model learning unit 102 calculates a loss function L defined based on the error between the output Y^ from the model for the input data [X, S] and the known correct label Y corresponding to the input data, and performs model learning while updating the model parameters by backpropagation so that the loss function L is minimized. The model learning unit 102 then stores the model parameters obtained as the learning result in the model parameter holding unit 103. The model parameters are variable elements that define the model, such as coupling weight coefficients between nodes of a neural network model. The estimated value of Y output from the model is represented by the letter "Y" with the symbol "^" attached. In the main text of this specification, the estimated value of Y is represented as "Y^" by concatenating the symbol "^" immediately after the letter "Y".

[0039] Since the model learning process requires a huge amount of calculations, the model learning unit 102 may perform learning using an information processing device equipped with arithmetic circuits 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 an 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 the outside. 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 performs a formatting process on the data input from the data input unit 112 so that the data can be input to the trained model, and inputs the data to the inference unit 111. The input data to the inference unit 111 is [X, S] including 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 storage 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 obtains the corrected correct answer label Y. o The data set [Y o,X,S] is written back to the data set holding unit 101. In the first embodiment of the present disclosure, the data bias mitigation unit 121 predicts the sensitive attribute S^ using a prediction model 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, the Shapley value according to the cooperative game theory is calculated as the contribution to the prediction. Then, the correct answer label for each sensitive attribute value of the input data including the data item with the higher Shapley value among the non-sensitive attributes is corrected to mitigate the bias caused by the sensitive attribute that is lurking in the data set [Y,X,S]. Details of the data bias mitigation process will be described in detail in the next section C.

[0042] Various settings in the data bias mitigation process in the data bias mitigation unit 121 may be set by a user operation via a UI (User Interface). Furthermore, the data bias mitigation unit 121 can use the UI to visualize how the bias mitigation of the input data has been performed so that a human can understand it. For example, the data bias mitigation unit 121 may feed back to the user the Shapley values ​​calculated for each data item of the non-sensitive attribute 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 result of inference performed by the inference unit 111 using the trained model to determine whether the fairness of the model is guaranteed, i.e., to determine the model bias. In a second embodiment (described later), the XAI is used to calculate the influence function of each data item of the 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 is a data item with a low influence score on the inference result by the trained model. Then, the model bias determination unit 123 can determine that the data items of the sensitive attribute with a low influence score are negatively biased, i.e., the fairness of the model is not guaranteed.

[0044] The model bias mitigation unit 124 performs a process for mitigating the bias of the model based on the determination result of the model bias. The model bias mitigation unit 124 may perform a model bias mitigation algorithm such as transfer learning, fine tuning, or additional learning to mitigate the model bias of the trained model in the model training unit 102. In a second embodiment of the present disclosure, the model bias mitigation unit 124 inflates input data corresponding to a data item of 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 input data. As a result, the model is re-trained so that the impact is improved even for sensitive attributes with low impact scores, and model bias caused by the sensitive attributes can be mitigated.

[0045] Various settings in the model bias relaxation process may be set by a user operation via a UI. Also, the model bias relaxation unit 124 can visualize how the model bias relaxation was performed by presenting it using the UI, so that a human can understand it.

[0046] B-2. System operation 2 shows, in the form of a flowchart, an outline of the processing procedure executed in the learning system 100. The processing procedure shown in the figure is divided into a learning phase in which a model is learned, and an inference phase in which inference is made using a trained model, and is mainly characterized in that the learning phase includes processing for mitigating bias in the learning data, i.e., "data bias," and the inference phase includes processing for mitigating 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 a dataset to be used by the model learning unit 102 for model learning (step S201). The dataset collection unit 130 collects the dataset via a wide area network such as the Internet, and accumulates it in the dataset holding unit 101. However, there is no particular limitation 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 the datasets used for model learning in the model learning unit 102 for the datasets stored in the dataset storage unit 101. Specifically, the data bias mitigation unit 121 repeatedly performs a series of processes for mitigating biases on each dataset stored in the dataset storage unit 101, including reading the dataset [Y,X,S] from the dataset storage unit 101 (step S202), predicting the sensitive attribute S^ from the data X of the non-sensitive attribute using a prediction model (step S203), calculating the basis for the prediction model predicting the sensitive attribute S^ using XAI (step S204), and correcting the correct answer 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 the data X of the 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 the data items with higher Shapley values ​​among the non-sensitive attribute data X, is corrected to mitigate bias due to sensitive attributes that may be present in the training dataset.

[0049] Then, the model learning unit 102 uses the data set with the mitigated data bias to learn the model to be learned and update the model parameters (step S206). For example, when a convolutional neural network is the learning target, the model learning unit 102 calculates a loss function L defined based on the error between the predicted value Y^ of the model for the input data [X, S] and the correct label Y corresponding to the input data [X, S], and learns by error backpropagation so that this loss function L is minimized. However, the present disclosure is not limited to a specific learning algorithm. Then, the model learning unit 102 stores the model parameters obtained as a learning result in the model parameter holding 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 the data has a data format [X, S] that can be input to the 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 result of the inference performed by the inference unit 111 using the trained model, and determines whether the fairness of the trained model is guaranteed, that is, whether the model is biased. In a second embodiment (described later), the XAI is used to calculate the influence function of each data item of the sensitive attribute on the inference result by the trained model (step S212), and detects whether there is a data item with a low influence score on the inference result (step S213).

[0052] Then, when there is a data item with a low impact score, that is, when the model bias determination unit 123 determines that there is a model bias (Yes in step S213), the model bias mitigation unit 124 performs processing to mitigate the model bias. In a second embodiment of the present disclosure, the model bias mitigation unit 124 inflates the input data including the sensitive attribute value determined by the model bias determination unit 123 to have a low impact score for the inference of the trained model (step 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 the model retraining (step S215). As a result, the model is retrained so that the impact is improved even for the sensitive attribute value with a low impact score, and the model bias caused by the sensitive attribute can be mitigated.

[0053] After performing the model bias relaxation process in steps S215 to S216, the process returns to step S211, and 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 determined that a bias-free and fair model has been obtained, and this process ends.

[0054] C. First embodiment In this section C, as a first embodiment of the present disclosure, a technology for mitigating data bias by calculating biases hidden in a dataset used for model training using XAI is described. By applying XAI, it is possible to explain in a manner that is understandable to humans how data bias mitigation is achieved.

[0055] C-1. Mechanism of bias reduction First, the data bias mitigation process performed by the data bias mitigation unit 121 will be described in detail.

[0056] The data bias mitigation unit 121 predicts sensitive attributes in the input data from non-sensitive attribute data in the input data using a trained prediction model. 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 this XAI, thereby mitigating the bias of the input data caused by sensitive attributes that are hidden in the learning dataset.

[0057] 3 illustrates a schematic 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 degree 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] retrieved from the dataset storage 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 amount (value of each feature included in the target data) of the target data to the AI ​​prediction result. By using this SHAP, when the 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 according to cooperative game theory.

[0062] The label correction unit 304 corrects the correct label Y corresponding to the input data [X, S] according to the contribution of each data item included in the non-sensitive attribute data X, thereby mitigating bias due to sensitive attributes that may be present in the data set [Y, X, S]. Then, the corrected correct label Y o A data set containing [Y o,X,S] is written back to the dataset holding unit 101. For example, when the sensitive attribute is "gender", the label correction unit 304 changes the correct label for the non-sensitive attributes for which the values ​​of several data items with the highest Shapley values ​​(or one data item with the highest Shapley value) are 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.

[0063] The model learning unit 102 generates a data set [Y, X 0 By using [,S], it is expected that we can train a model that is free of bias caused by sensitive attributes.

[0064] In addition, 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 the bias reduction of the input data was 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 greatly 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, in other words, the AI's predictive distribution does not change 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 company's employment exam, the recidivism rate of former prisoners, or whether or not someone will pass a loan application, if the distribution of predicted scores varies depending on sensitive attributes such as race or gender, the model is not able to eliminate social bias and is therefore unfair. 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 sensitive attributes. For example, in corporate recruitment, fairness is defined as the ratio of hires and rejects being the same regardless of the sensitive attribute "gender" (or the difference in ratios is below a certain threshold), as shown in Figure 4, 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]

number

[0070] In addition, 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 ratio is below a predetermined threshold). For example, in predicting whether a former inmate will reoffend, as shown in Figure 5, the criterion for fairness is that the ratio of the false positive rate (FPR) that falsely detects that a person will reoffend when they will not, and the true positive rate (TPR) that predicts that a person will reoffend but actually does, is the same regardless of the sensitive attribute "race" (or the difference in the ratio is below a predetermined threshold). 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}, Equalized Odds is expressed by the following formula (2).

[0071]

number

[0072] In addition, Equal Opportunity defines fairness as the ratio of True Positive Rate (TPR) being equal regardless of the sensitive attribute (or the difference in the ratio is below a predetermined threshold), and unlike the above 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 Figure 6, the standard for fairness is that the ratio of True Positive Rate (TPR) that predicts that they will not default and actually does not default is the same regardless of the sensitive attribute "gender" (or the difference in the ratio is below a predetermined threshold). Unlike the above Equalized odds, it does not take into account the ratio of False Positive Rate (FPR) that predicts that they will not default and actually defaults. 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}, Equal Opportunity is expressed by the following formula (3).

[0073]

number

[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 achieved even if sensitive attributes are not explicitly used."

[0075] In any definition of fairness, according to the first embodiment of the present disclosure, a data set [Y, X] in which data X of a non-sensitive attribute is corrected to mitigate bias caused by a sensitive attribute is generated. 0 ,S], it is expected that we can train a model that is free of 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 XAI technology is used to correct the data X of the non-sensitive attribute, so that the calculation results by the XAI can be presented 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 methods 7 shows the transition of distribution on the data set [Y,X,S] due to bias relaxation (by the data bias relaxation 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 a correct label, and the random variable Y o is the correct answer label with the data bias mitigated, and the random variable Y o ^ is the correct answer label Y after data bias has been mitigated oThe 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 data set 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 (prediction model used by the prediction unit 302) is created with non-sensitive attribute X to sensitive attribute S as objective variables.

[0079] In the data bias mitigation unit 121, the prediction unit 320 predicts the sensitive attribute S from the non-sensitive attribute X using a prediction model (Pr[S|X]) to obtain the relationship between each data item of each attribute. Then, the contribution calculation unit 303 obtains a Shapley value using SHAP (see Non-Patent Document 2), which is an XAI, so that humans can understand the explanation of the judgment grounds of this prediction model. The Shapley value is a numerical value that indicates how much each element influences the prediction according to cooperative game theory. By obtaining 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, when the sensitive attribute "gender" is used as the objective variable of the prediction model, each data item x of the non-sensitive attribute X, which is an explanatory variable, 1 , x 2 The contribution of each variable is shown as a Shapley value, so that it is possible to explicitly show which explanatory variables contribute the most.

[0080] It can be considered that explanatory variables that contribute to predictions using sensitive attributes as the objective variable have some influence as data bias. Therefore, the label correction unit 304 corrects the data item x 1 , x 2By correcting the ground truth labels corresponding to the data items with high Shapley values ​​among ..., it is possible to mitigate bias caused by sensitive attributes.

[0081] Referring again to FIG. 7, the correct label Y o The true fair data distribution Pr[Y,X 0 , S]. The subspace where the model subspace 702 and the fair subspace 703 intersect is the fair data distribution Pr[Y o ,X,S], which results in an unbiased model subspace 703.

[0082] Here, we will explain an example of mitigating data bias in a dataset [Y,X,S] for learning whether or not to approve a loan application using the above method. 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 value calculated for each data item of a non-sensitive attribute when predicting "gender" as a 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." Of these, "credit amount" has the highest Shapley value, and 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) for the input data [X, S] in which the value of "credit amount" is equal to or greater than a predetermined threshold (e.g., average value) and the gender is male, or inverts the value of the correct label Y (loan availability) for the input data [X, S] in which the gender is female, to obtain the corrected correct label Y. oWe obtained a gender-bias-mitigated dataset [Y o ,X,S] is generated.

[0084] The inventor has obtained experimental results showing that the Statistical Parity Difference was improved by applying the above-mentioned method, i.e., the data bias between men and women was mitigated. Another feature of the method according to the present disclosure is that it can show the explanatory variables that contributed to the bias mitigation in a way that humans can intuitively understand.

[0085] C-4. Configuration of information processing device In this section E, an information processing device used to implement the learning system 100 according to the present disclosure will be described. Fig. 8 shows a configuration example 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 two, 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 Figure 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 a 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 is a multi-core CPU, and that the information processing device 2000 further includes a multi-core processor such as a GPU or a GPGPU in addition to the CPU 2001. However, hereinafter, for convenience, these will be collectively referred to simply as the CPU 2001.

[0088] The ROM 2002 stores in a non-volatile manner the programs (basic input / output system, etc.) and computation parameters used by the CPU 2001. The RAM 2003 is used to load the programs used in the execution of the CPU 2001 and to temporarily store parameters such as working data that change as appropriate during program execution. Programs that are 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, the ROM 2002, and the RAM 2003 are connected to each other by a host bus 2004 including a CPU bus and the like. The CPU 2001 can execute various application programs under an execution environment provided by the OS through cooperative operation of the ROM 2002 and the RAM 2003, thereby realizing various functions and services. If the information processing device 100 is a personal computer, the OS is, for example, Windows or Unix from Microsoft Corporation. If the information processing device 2000 is an information terminal such as a smartphone or a tablet, the OS is, for example, iOS from Apple Inc. or Android from Google Inc. The application program includes 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 such that the circuit components are separated by the host bus 2004, the bridge 2005, and the expansion bus 2006, and may be implemented such 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 standard 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. 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 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, and 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 operators 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 EL (Electro-Luminescence) 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 voice and whispered voice (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 HDD (Hard Disk Drive), but may also include an external storage device.

[0095] The removable storage medium 2012 is a storage medium configured in a cartridge format, 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), and cellular communication networks such as 4G and 5G. The communication unit 2013 may further include terminals such as a Universal Serial Bus (USB) and a High-Definition Multimedia Interface (HDMI) (registered trademark), and may further include a function for communicating with USB devices such as a scanner or a printer, and a display.

[0097] D. Second Example In this section D, as a second embodiment 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 result by a trained model is described. In the second embodiment, a technique for mitigating model bias based on the calculated influence function can be realized. That is, the input data of a sensitive attribute determined to have a low influence score is inflated, and the model is re-trained, thereby mitigating model bias caused by the sensitive attribute. In addition, by applying XAI, it is possible to explain how data bias mitigation is achieved in a manner that is understandable to humans.

[0098] For example, when implemented in an image sensor with AI functionality, when the AI ​​detects people from images captured by the image sensor, the image sensor will calculate the influence function for each data item with sensitive attributes on the detection result. It will then be found that data items with low influence scores 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 attributes and re-training the AI, it is possible to mitigate the AI ​​model bias caused by sensitive attributes.

[0099] D-1. Configuration of the imaging device 9 is a schematic diagram showing a functional configuration of an imaging device 900 to which the second embodiment of the present disclosure is applied. The imaging device 900 shown in the figure 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) can be used to integrate the sensor unit 902, the sensor control unit 903, the inference unit 904, and the memory 905 to form a CMOS image sensor. 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 collecting light from a subject onto the light receiving surface of the sensor unit 902, an aperture mechanism for adjusting the size of an opening 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 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, 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 after visual recognition processing 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 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 an image using pixel data (human detection, face identification, image classification, etc.). 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 XAI to perform processing equivalent to the "model bias determination unit 123" in FIG. 1, that is, to analyze the inference result by the trained model and determine the model bias. Specifically, the inference unit 904 uses XAI to calculate the influence function of the sensitive attribute on the result of person detection by the trained model. For example, the inference unit 904 calculates the influence function of person detection for each attribute value of "male" and "female" for the data item "gender" of the sensitive attribute, and calculates the influence function of person detection for each attribute value of "white person", "black person", ... for the data item "race" of the sensitive attribute. Then, the inference unit 904 passes the calculation result of the influence function to the output control unit 907 along with the person detection result.

[0105] The visual recognition processing unit 906 executes processing for obtaining an image suitable for human visual recognition on the pixel data passed from the sensor control unit 903, and outputs image data consisting of, for example, a set of pixel data. For example, when a color filter is provided on 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 executes demosaic processing, white balance processing, and the like. In addition, the visual recognition processing unit 906 can instruct the sensor control unit 903 to read out pixel data required for visual recognition processing from the sensor unit 902. The visual recognition processing unit 906 passes the image data resulting from the processing of the pixel data to the output control unit 907. For example, the image signal processor executes a program previously stored in a local memory (not shown), thereby realizing the above-mentioned functions of the visual recognition processing unit 906.

[0106] The output control unit 907 is composed of, 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 for displaying and outputting the image on the display unit 908 or outputting the image to the outside 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 (human detection result) and the reason for the inference (influence function of sensitive attribute) in the inference unit 904 together with the image data. The display unit 908 may present the inference result and the reason for the inference together with the captured image. In addition, the output control unit 907 may upload the reason for the inference (influence function of sensitive attribute) to a model learning server (not shown in FIG. 9) that actually performs the learning process of the model.

[0108] D-2. Image sensor configuration FIG. 10 shows a hardware implementation example of an image sensor 1000 in which a sensor unit 902, a sensor control unit 903, an inference unit 904, and a memory 905 are integrated. 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 one chip 1000. However, in FIG. 10, the memory 905 and the output control unit 907 are omitted from illustration in order to prevent confusion in the drawing. In the configuration example shown in FIG. 16, the inference result by the inference unit 904 and its judgment basis (influence function of sensitive attribute) are output to the outside of the chip 1000 via the output control unit 907. In addition, 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 inside the chip 1000.

[0109] FIG. 11 shows a hardware implementation example of another image sensor 1100 in which a sensor unit 902, a sensor control unit 903, an inference unit 904, and a memory 905 are integrated. 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 one chip 1100, but the inference unit 904 and the memory 905 are arranged outside the chip 1100. However, in FIG. 11, the memory 1505 and the output control unit 907 are also omitted from illustration to prevent confusion in the drawing. 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. In addition, the inference unit 904 directly outputs the inference result and its judgment basis (influence function of the sensitive attribute) to the outside. Of course, the inference result and the basis for the judgment by the inference unit 904 can also be returned to the output control unit 907 in 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, since both the inference unit 904 and the sensor control unit 903 are mounted on the same chip 1000, communication between the inference unit 904 and the sensor control unit 903 can be executed at high speed via an interface within the chip 1000. On the other hand, in the configuration example shown in Fig. 11, since the inference unit 904 is disposed outside the chip 1100, it is easy to replace the inference unit 904, and the trained model can be replaced by replacing it. However, communication between the inference unit 904 and the sensor control unit 903 needs to 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 semiconductor chip 1201 of a first layer, and a memory and logic section 1212 is formed in a semiconductor chip 1202 of a second layer. As shown on the right side of FIG. 12, the semiconductor chip 1201 of the first layer and the semiconductor chip 1202 of the second layer are 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 a pixel array in the sensor unit 902. The memory and logic unit 1212 includes, for example, a sensor control unit 903, an inference unit 904, a memory 905, a visual recognition processing unit 906, an output control unit 907, and an interface for communicating with the outside. The memory and logic unit 1212 further 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 used by the visual recognition processing unit 1206 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 a pixel array in the sensor unit 1502. The logic unit 1313 includes, for example, a sensor control unit 903, an inference unit 904, a visual recognition processing unit 906, an output control unit 907, and an interface for communicating with the outside. The logic unit 1313 further 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 used by the visual recognition processing unit 906 to process image data, for example.

[0115] From the semiconductor chip 1200 (or 1300), together with the image captured by the pixel section 1211 (or 1311), the person detection result by the inference section 904 in the logic section 1212 (or 1312) and the influence function of the sensitive attribute are simultaneously output.

[0116] FIG. 16 shows an example of the operation of 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 detection results of the person in the captured image and the influence function of each data item of sensitive attributes when detecting the person.

[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: xx", 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: xx" and outputs them simultaneously with the captured image.

[0119] For example, if the impact score for the sensitive attribute data item "race: black" is extremely 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 a case, the model bias can be eliminated by inflating the number of images of black people and retraining the model, thereby improving the impact score for "black people."

[0120] D-3. System configuration and operation 14 shows an example of 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 a large number of 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 data set, and a model learning unit 102 that learns a model using a data set with mitigated bias. 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 other hand, on the cloud side, there are many edge devices. The edge devices are digital cameras, multi-function information terminals such as smartphones and tablets, personal computers, etc. Each edge device includes an inference unit 111, and there is also an edge device that includes a model bias determination unit 123.

[0122] The server provides each edge device with model parameters obtained by model learning using a bias-mitigated dataset. The model parameters may be provided in various forms. For example, the model parameters may be installed in advance when the edge device is shipped. In addition, even after the product is shipped, the edge device may download the model parameters from the server at an appropriate timing. In addition, even after the start of use, the model parameters updated on the server side may be downloaded to the edge device as necessary. The model parameter updates on the server side include updates associated with mitigating model bias, but may also include updates for other purposes.

[0123] In each edge device, the model parameters provided from the server are set in the inference unit 111, and prediction processing is performed using the trained model. The task performed by the trained model is, for example, human detection from an image captured by a camera, but it may also be face detection or face identification, or even the advisability of employee employment, loan screening, or recidivism based on a face image.

[0124] The edge device including the model bias determination unit 123 analyzes the result of the inference performed by the inference unit 111 using the trained model to determine whether the fairness of the model is guaranteed, that is, to 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 by 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 by the trained model, and detects whether there is a data item with a low influence score on the inference result. Then, the model bias determination unit 123 determines that a negative bias is applied to the data item of the sensitive attribute with a low influence score, that is, the fairness of the model is not guaranteed, 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 when it is determined that there is a model bias).

[0125] The model bias mitigation unit 124 on the server side performs processing to mitigate the bias of the model based on the model bias determination result. The model bias mitigation unit 124 may perform model bias mitigation algorithms such as transfer learning, fine tuning, and additional learning to mitigate the model bias of 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, CG (Computer Groups) or may generate an image using a generative adversarial network (GAN). As a result of re-training using the inflated dataset, the model is updated so that the impact is improved even for sensitive data items with low impact scores, thereby mitigating the model bias caused by the sensitive attribute. 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 performed between an edge device and a server in the client-server system shown in Fig. 14. In Fig. 15, the edge device and the server are shown in a one-to-one relationship for the sake of simplicity, but in reality, one server performs the same communication sequence with multiple edge devices.

[0127] However, in the following description, 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 model parameters of a model that has been trained to detect people from captured images are provided from the server to the edge device.

[0128] First, the server provides the edge device with model parameters obtained by learning (TR1501). Alternatively, the edge device obtains the model parameters from the server. In response to this, the edge device sets the model parameters provided by the server as the model to be used in the inference unit 111 (TR1502), enabling human detection using the learned model.

[0129] After that, when the edge device performs an image capturing 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 for the person detection result by the trained model, and detects whether there is a data item with a low influence score for the person detection result.

[0130] Then, the edge device notifies (uploads) the server of the model bias determination result (TR1506). At that time, the edge device may notify the server of only information on 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 of the sensitive attribute, and the server side may determine which data items are negatively biased.

[0131] On the server side, when it receives a notification of the model bias judgment result from the edge device, it mitigates the model bias of the trained model. The server first pads the dataset corresponding to the data item of the sensitive attribute that had a low impact score in person detection (TR1507). In the case of image data, for example, a padded image may be generated using CG, or the image may be generated using GAN. Then, the server re-trains the model using the padded dataset (TR1508) to mitigate the model bias caused by the sensitive attribute.

[0132] Then, the server 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 an update to the product software.

[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, and further, re-learning can be performed on the server side based on the information of the detected model bias, and the model parameters with the model bias mitigated can be updated for each product. Therefore, when a problem with the fairness of 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, when 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 be determined that the trained model for person detection is negatively biased against "black people". Such a determination result is notified to the server from the edge device. Then, in response to the notification from the edge device, the server side can provide the edge device with model parameters with an improved influence score for "black people" by padding the images of black people and re-training the model to eliminate the model bias. [Industrial Applicability]

[0135] The present disclosure has been described in detail above with reference to specific embodiments. However, the present disclosure should not be interpreted as being limited to the above-mentioned embodiments, and it is obvious that a person skilled in the art can modify or substitute the embodiments without departing from the gist of the present disclosure. In addition, the effects described in this specification are merely examples, and the effects brought about by the present disclosure are not limited, and there may be additional effects not described in this specification.

[0136] The present disclosure can be applied to learning a model that performs various detection, judgment, estimation, recognition, and other processes by inputting images and audio, including face detection, face identification, human body detection, and posture estimation. According to the present disclosure, data bias hidden in a dataset for model learning can be calculated using XAI, and the data bias can be mitigated based on the calculation results. In addition, according to the present disclosure, model bias can be mitigated by calculating model bias using XAI, padding a negatively biased dataset, and re-learning 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 being limited. In order to judge 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 combination of hardware and software. When executing the processes by software, a program recording the processing sequence related to the realization of the present disclosure is installed in the memory of 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 the realization of the present disclosure.

[0139] The program can be stored in advance in a recording medium installed in a computer, such as a HDD, SSD, or ROM. Alternatively, the program can be temporarily or permanently stored in a removable recording medium, such as a flexible disk, a CD-ROM (Compact Disc Read Only Memory), an MO (Magneto optical) disk, a DVD (Digital Versatile Disc), a BD (Blu-Ray Disc (registered trademark)), a magnetic disk, or a 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 wired from a download site to a computer via a network such as a WAN (Wide Area Network) represented by a cellular network, a LAN (Local Area Network), 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 can also be configured as follows.

[0142] (1) an acquisition unit that acquires information regarding bias due to sensitive attributes contained in data or a model using XAI; A processing unit that performs a process of mitigating bias in data or a model based on the acquired information; An information processing device comprising:

[0143] (2) The acquisition unit includes a preprocessing 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, The processing unit includes a dataset generation unit that corrects a correct answer label corresponding to input data according to a calculation result of the contribution degree to generate a dataset in which a bias caused by a sensitive attribute is mitigated. The information processing device according to (1) above.

[0144] (3) The processing unit modifies the correct answer label for each sensitive attribute value of the input data including the data items with the highest contribution among the non-sensitive attributes to generate a dataset in which bias due to the sensitive attributes is mitigated. The information processing device according to (2) above.

[0145] (4) The processing unit modifies the correct answer label for each sensitive attribute value of the input data that has a high contribution level among the non-sensitive attributes and is equal to or greater than a predetermined threshold, thereby generating a dataset in which bias due to the sensitive attribute is mitigated. The information processing device according to (2) above.

[0146] (5) Sensitive attributes include gender, The processing unit changes the correct label for a data item having a higher contribution level among non-sensitive attributes that is equal to or greater than a predetermined threshold and for a gender that is either male or female, thereby generating a dataset in which bias due to gender is mitigated. The information processing device according to (2) above.

[0147] (6) 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 target variable. An information processing device according to any one of (2) to (5) above.

[0148] (7) 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. The information processing device according to (6) above.

[0149] (8) The contribution calculation unit calculates the contribution based on the Shapley value of each data item of the non-sensitive attribute using SHAP. An information processing device according to any one of (6) and (7) above.

[0150] (9) a learning unit that learns a model using the bias-reduced dataset generated by the dataset generation unit; an inference unit that performs inference using a model trained by the learning unit; The information processing device according to any one of (2) to (8) above, further comprising:

[0151] (10) 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, An information processing device according to any one of (1) to (9) above.

[0152] (11) 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, The influence function calculation unit calculates an influence function of a sensitive attribute when the trained model detects a person from an image. The information processing device according to (10) above.

[0153] (12) The processing unit further augments images of sensitive attributes having low values ​​of the influence function and performs re-learning of the model. The information processing device according to any one of (10) or (11) above.

[0154] (13) acquiring information about bias due to sensitive attributes included in the data or model using XAI; A processing step of performing a process to mitigate bias in the data or the model based on the obtained information; An information processing method comprising the steps of:

[0155] (14) An acquisition unit that acquires information regarding bias due to sensitive attributes contained in the data or model using XAI; A processing unit that performs a process of mitigating bias in data or a model based on the acquired information; A computer program written in a computer-readable form to cause a computer to function as a

[0156] (15) A semiconductor chip having a multi-layer structure, A sensor unit including a pixel array and capturing an image is mounted on a first layer, and a memory unit for storing the captured image of the sensor unit and a logic unit for controlling the driving of the sensor unit and processing the captured image of the sensor unit are mounted on the second layer and onward. The logic unit includes an inference unit that infers a captured image using a trained model and a judgment basis calculation unit that calculates a judgment basis for an inference result by the trained model. Image sensor.

[0157] (16) The inference unit detects a person from a captured image using a trained model; The judgment basis calculation unit calculates an influence function of a sensitive attribute when the trained model detects a person from an image. The image sensor according to (15) above. [Explanation of symbols]

[0158] 100...Learning system, 101...Data set storage 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 mitigation section, 122: Data supplement section 123: model bias determination unit, 124: model bias mitigation unit 130...Data Set Collection Department 301: Preprocessing section, 302: Prediction section, 303: Contribution calculation section 304…Label correction section 900: Imaging device, 901: Optical section, 902: Sensor section 903: sensor control unit, 904: inference unit, 905: memory 906: visual recognition 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…Expansion bus, 2007…Interface section 2008: Input section, 2009: Output section, 2010: Storage section 2011: Drives, 2012: Removable Recording Media 2013…Communications Department

Claims

1. An acquisition unit that acquires information regarding bias caused by sensitive attributes included in data or a model using XAI; A processing unit that performs a process of mitigating bias in data or a model based on the acquired information; An information processing device comprising:

2. 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; The processing unit includes a dataset generation unit that corrects a correct answer label corresponding to input data according to a calculation result of the contribution degree to generate a dataset in which a bias caused by a sensitive attribute is mitigated. The information processing device according to claim 1 .

3. The processing unit modifies a correct answer label for each sensitive attribute value of the input data including a data item having a high contribution among non-sensitive attributes to generate a dataset in which bias caused by the sensitive attribute is mitigated. The information processing device according to claim 2 .

4. The processing unit modifies a correct answer label for each sensitive attribute value of the input data having a high contribution level among data items of non-sensitive attributes that is equal to or greater than a predetermined threshold, thereby generating a dataset in which bias caused by the sensitive attribute is mitigated. The information processing device according to claim 2 .

5. Sensitive attributes include gender, The processing unit changes the correct label for a data item having a higher contribution level among non-sensitive attributes that is equal to or greater than a predetermined threshold and for a gender that is either male or female, thereby generating a dataset in which bias due to gender is mitigated. The information processing device according to claim 2 .

6. The prediction unit predicts a sensitive attribute from a data item of a non-sensitive attribute in the input data by using a prediction model with a sensitive attribute as a response variable. The information processing device according to claim 2 .

7. 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. The information processing device according to claim 6.

8. The contribution calculation unit calculates the contribution based on the Shapley value of each data item of a non-sensitive attribute using SHAP. The information processing device according to claim 6.

9. A learning unit that performs model learning using the bias-reduced dataset generated by the dataset generation unit; an inference unit that performs inference using a model trained by the learning unit; The information processing device according to claim 2 , further comprising:

10. 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, The information processing device according to claim 1 .

11. 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, The influence function calculation unit calculates an influence function of a sensitive attribute when the trained model detects a person from an image. The information processing device according to claim 10.

12. The processing unit further augments images of sensitive attributes having low values ​​of the influence function and performs re-learning of the model. The information processing device according to claim 10.

13. An acquisition step of acquiring information regarding bias due to sensitive attributes included in the data or model using XAI; A processing step of performing a process to mitigate bias in the data or the model based on the obtained information; An information processing method comprising the steps of:

14. An acquisition unit that acquires information regarding bias caused by sensitive attributes included in data or a model using XAI; A processing unit that performs a process of mitigating bias in data or a model based on the acquired information; A computer program written in a computer-readable form to cause a computer to function as a

15. It consists of a multi-layered semiconductor chip, A sensor unit including a pixel array and capturing an image is mounted on a first layer, and a memory unit for storing the captured image of the sensor unit and a logic unit for controlling the driving of the sensor unit and processing the captured image of the sensor unit are mounted on a second layer and onward; The logic unit includes an inference unit that infers a captured image using a trained model and a judgment basis calculation unit that calculates a judgment basis for an inference result by the trained model. Image sensor.

16. The inference unit detects a person from a captured image using a trained model, The judgment basis calculation unit calculates an influence function of a sensitive attribute when the trained model detects a person from an image.

16. The image sensor of claim 15.

Citation Information

Patent Citations

  • System, method, and program

    JP2021012593A

Cited By

  • Power system component evaluation

    JP2026087509A

  • Inference device, inference method, and inference system

    JP2026144230A

  • A real-time information presentation system and program for semantic attribute annotations to the responses of large-scale language models.

    JP7902516B1