Addressing Bias in AI - Toolkit for Fairness, Explainability and Privacy

share link

by Ashok Balasubramanian dot icon Updated: Mar 13, 2023

technology logo
technology logo

Guide Kit Guide Kit  

Dilbert was dropped from hundreds of newspapers over Scott Adams’ racist comments. Multiple researchers have documented over the past few months how ChatGPT can be prompted to provide racist responses.


A three-decade globally famous comic strip has been canceled because of the creator’s racist comments in his YouTube show. ChatGPT, Bing Bot, and many such AI Bots are conversing with millions of users daily and have been documented to provide misleading, inaccurate, and biased responses. How can we hold AI to the same high standards we expect from society, especially when AI is now generative and scaled for global consumer use?



While no silver bullet exists, multiple aspects can make AI more responsible. Having open AI models is a great start. Hugging Face, EleutherAI, and many others are championing an open approach to AI. Openness and collaboration can bring in diverse contributions, reviews, and rigorous testing of AI models and help reduce bias.


NIST’s AI risk management guidelines released recently provide a comprehensive view across the AI lifecycle consisting of collecting and processing Data & Input, the build, and validation of the AI model, its deployment, and monitoring in the context of usage. Acknowledging the possibility of bias, eliminating data capture biases, or unconscious biases when generating synthetic data, designing for counterfactual fairness, and human-in-loop designs can reduce the risk of bias.

Use the below tools for assessment and to improve the fairness and robustness of your models.


fairlearnby fairlearn

Python doticonstar image 1591 doticonVersion:v0.8.0doticon
License: Permissive (MIT)

A Python package to assess and improve fairness of machine learning models.

Support
    Quality
      Security
        License
          Reuse

            fairlearnby fairlearn

            Python doticon star image 1591 doticonVersion:v0.8.0doticon License: Permissive (MIT)

            A Python package to assess and improve fairness of machine learning models.
            Support
              Quality
                Security
                  License
                    Reuse

                      AIF360by Trusted-AI

                      Python doticonstar image 2048 doticonVersion:v0.5.0doticon
                      License: Permissive (Apache-2.0)

                      A comprehensive set of fairness metrics for datasets and machine learning models, explanations for these metrics, and algorithms to mitigate bias in datasets and models.

                      Support
                        Quality
                          Security
                            License
                              Reuse

                                AIF360by Trusted-AI

                                Python doticon star image 2048 doticonVersion:v0.5.0doticon License: Permissive (Apache-2.0)

                                A comprehensive set of fairness metrics for datasets and machine learning models, explanations for these metrics, and algorithms to mitigate bias in datasets and models.
                                Support
                                  Quality
                                    Security
                                      License
                                        Reuse

                                          aequitasby dssg

                                          Python doticonstar image 531 doticonVersion:Currentdoticon
                                          License: Permissive (MIT)

                                          Bias and Fairness Audit Toolkit

                                          Support
                                            Quality
                                              Security
                                                License
                                                  Reuse

                                                    aequitasby dssg

                                                    Python doticon star image 531 doticonVersion:Currentdoticon License: Permissive (MIT)

                                                    Bias and Fairness Audit Toolkit
                                                    Support
                                                      Quality
                                                        Security
                                                          License
                                                            Reuse

                                                              TextAttackby QData

                                                              Python doticonstar image 2377 doticonVersion:v0.3.8doticon
                                                              License: Permissive (MIT)

                                                              TextAttack 🐙 is a Python framework for adversarial attacks, data augmentation, and model training in NLP https://textattack.readthedocs.io/en/master/

                                                              Support
                                                                Quality
                                                                  Security
                                                                    License
                                                                      Reuse

                                                                        TextAttackby QData

                                                                        Python doticon star image 2377 doticonVersion:v0.3.8doticon License: Permissive (MIT)

                                                                        TextAttack 🐙 is a Python framework for adversarial attacks, data augmentation, and model training in NLP https://textattack.readthedocs.io/en/master/
                                                                        Support
                                                                          Quality
                                                                            Security
                                                                              License
                                                                                Reuse

                                                                                  fairlensby synthesized-io

                                                                                  Python doticonstar image 72 doticonVersion:v0.1.0doticon
                                                                                  License: Permissive (BSD-3-Clause)

                                                                                  Identify bias and measure fairness of your data

                                                                                  Support
                                                                                    Quality
                                                                                      Security
                                                                                        License
                                                                                          Reuse

                                                                                            fairlensby synthesized-io

                                                                                            Python doticon star image 72 doticonVersion:v0.1.0doticon License: Permissive (BSD-3-Clause)

                                                                                            Identify bias and measure fairness of your data
                                                                                            Support
                                                                                              Quality
                                                                                                Security
                                                                                                  License
                                                                                                    Reuse

                                                                                                      LiFTby linkedin

                                                                                                      Scala doticonstar image 139 doticonVersion:v0.3.0doticon
                                                                                                      License: Permissive (BSD-2-Clause)

                                                                                                      The LinkedIn Fairness Toolkit (LiFT) is a Scala/Spark library that enables the measurement of fairness in large scale machine learning workflows.

                                                                                                      Support
                                                                                                        Quality
                                                                                                          Security
                                                                                                            License
                                                                                                              Reuse

                                                                                                                LiFTby linkedin

                                                                                                                Scala doticon star image 139 doticonVersion:v0.3.0doticon License: Permissive (BSD-2-Clause)

                                                                                                                The LinkedIn Fairness Toolkit (LiFT) is a Scala/Spark library that enables the measurement of fairness in large scale machine learning workflows.
                                                                                                                Support
                                                                                                                  Quality
                                                                                                                    Security
                                                                                                                      License
                                                                                                                        Reuse


                                                                                                                          Use the below tools for Explainability, Interpretability, and Monitoring.


                                                                                                                          TypeScript doticonstar image 862 doticonVersion:v0.28.0doticon
                                                                                                                          License: Permissive (MIT)

                                                                                                                          Responsible AI Toolbox is a suite of tools providing model and data exploration and assessment user interfaces and libraries that enable a better understanding of AI systems. These interfaces and libraries empower developers and stakeholders of AI systems to develop and monitor AI more responsibly, and take better data-driven actions.

                                                                                                                          Support
                                                                                                                            Quality
                                                                                                                              Security
                                                                                                                                License
                                                                                                                                  Reuse

                                                                                                                                    responsible-ai-toolboxby microsoft

                                                                                                                                    TypeScript doticon star image 862 doticonVersion:v0.28.0doticon License: Permissive (MIT)

                                                                                                                                    Responsible AI Toolbox is a suite of tools providing model and data exploration and assessment user interfaces and libraries that enable a better understanding of AI systems. These interfaces and libraries empower developers and stakeholders of AI systems to develop and monitor AI more responsibly, and take better data-driven actions.
                                                                                                                                    Support
                                                                                                                                      Quality
                                                                                                                                        Security
                                                                                                                                          License
                                                                                                                                            Reuse

                                                                                                                                              xaiby EthicalML

                                                                                                                                              Python doticonstar image 720 doticonVersion:v0.1.0doticon
                                                                                                                                              License: Permissive (MIT)

                                                                                                                                              XAI - An eXplainability toolbox for machine learning

                                                                                                                                              Support
                                                                                                                                                Quality
                                                                                                                                                  Security
                                                                                                                                                    License
                                                                                                                                                      Reuse

                                                                                                                                                        xaiby EthicalML

                                                                                                                                                        Python doticon star image 720 doticonVersion:v0.1.0doticon License: Permissive (MIT)

                                                                                                                                                        XAI - An eXplainability toolbox for machine learning
                                                                                                                                                        Support
                                                                                                                                                          Quality
                                                                                                                                                            Security
                                                                                                                                                              License
                                                                                                                                                                Reuse

                                                                                                                                                                  Skaterby oracle

                                                                                                                                                                  Python doticonstar image 977 doticonVersion:v1.1.2doticon
                                                                                                                                                                  License: Permissive (UPL-1.0)

                                                                                                                                                                  Python Library for Model Interpretation/Explanations

                                                                                                                                                                  Support
                                                                                                                                                                    Quality
                                                                                                                                                                      Security
                                                                                                                                                                        License
                                                                                                                                                                          Reuse

                                                                                                                                                                            Skaterby oracle

                                                                                                                                                                            Python doticon star image 977 doticonVersion:v1.1.2doticon License: Permissive (UPL-1.0)

                                                                                                                                                                            Python Library for Model Interpretation/Explanations
                                                                                                                                                                            Support
                                                                                                                                                                              Quality
                                                                                                                                                                                Security
                                                                                                                                                                                  License
                                                                                                                                                                                    Reuse


                                                                                                                                                                                      Google toolkit on Tensorflow for Privacy, Federated Learning, and Explainability.


                                                                                                                                                                                      federatedby tensorflow

                                                                                                                                                                                      Python doticonstar image 2119 doticonVersion:v0.59.0doticon
                                                                                                                                                                                      License: Permissive (Apache-2.0)

                                                                                                                                                                                      A framework for implementing federated learning

                                                                                                                                                                                      Support
                                                                                                                                                                                        Quality
                                                                                                                                                                                          Security
                                                                                                                                                                                            License
                                                                                                                                                                                              Reuse

                                                                                                                                                                                                federatedby tensorflow

                                                                                                                                                                                                Python doticon star image 2119 doticonVersion:v0.59.0doticon License: Permissive (Apache-2.0)

                                                                                                                                                                                                A framework for implementing federated learning
                                                                                                                                                                                                Support
                                                                                                                                                                                                  Quality
                                                                                                                                                                                                    Security
                                                                                                                                                                                                      License
                                                                                                                                                                                                        Reuse

                                                                                                                                                                                                          privacyby tensorflow

                                                                                                                                                                                                          Python doticonstar image 1779 doticonVersion:v0.8.8doticon
                                                                                                                                                                                                          License: Permissive (Apache-2.0)

                                                                                                                                                                                                          Library for training machine learning models with privacy for training data

                                                                                                                                                                                                          Support
                                                                                                                                                                                                            Quality
                                                                                                                                                                                                              Security
                                                                                                                                                                                                                License
                                                                                                                                                                                                                  Reuse

                                                                                                                                                                                                                    privacyby tensorflow

                                                                                                                                                                                                                    Python doticon star image 1779 doticonVersion:v0.8.8doticon License: Permissive (Apache-2.0)

                                                                                                                                                                                                                    Library for training machine learning models with privacy for training data
                                                                                                                                                                                                                    Support
                                                                                                                                                                                                                      Quality
                                                                                                                                                                                                                        Security
                                                                                                                                                                                                                          License
                                                                                                                                                                                                                            Reuse

                                                                                                                                                                                                                              what-if-toolby PAIR-code

                                                                                                                                                                                                                              HTML doticonstar image 806 doticonVersion:v1.8.1doticon
                                                                                                                                                                                                                              License: Permissive (Apache-2.0)

                                                                                                                                                                                                                              Source code/webpage/demos for the What-If Tool

                                                                                                                                                                                                                              Support
                                                                                                                                                                                                                                Quality
                                                                                                                                                                                                                                  Security
                                                                                                                                                                                                                                    License
                                                                                                                                                                                                                                      Reuse

                                                                                                                                                                                                                                        what-if-toolby PAIR-code

                                                                                                                                                                                                                                        HTML doticon star image 806 doticonVersion:v1.8.1doticon License: Permissive (Apache-2.0)

                                                                                                                                                                                                                                        Source code/webpage/demos for the What-If Tool
                                                                                                                                                                                                                                        Support
                                                                                                                                                                                                                                          Quality
                                                                                                                                                                                                                                            Security
                                                                                                                                                                                                                                              License
                                                                                                                                                                                                                                                Reuse

                                                                                                                                                                                                                                                  tcavby tensorflow

                                                                                                                                                                                                                                                  Jupyter Notebook doticonstar image 570 doticonVersion:0.2doticon
                                                                                                                                                                                                                                                  License: Permissive (Apache-2.0)

                                                                                                                                                                                                                                                  Code for the TCAV ML interpretability project

                                                                                                                                                                                                                                                  Support
                                                                                                                                                                                                                                                    Quality
                                                                                                                                                                                                                                                      Security
                                                                                                                                                                                                                                                        License
                                                                                                                                                                                                                                                          Reuse

                                                                                                                                                                                                                                                            tcavby tensorflow

                                                                                                                                                                                                                                                            Jupyter Notebook doticon star image 570 doticonVersion:0.2doticon License: Permissive (Apache-2.0)

                                                                                                                                                                                                                                                            Code for the TCAV ML interpretability project
                                                                                                                                                                                                                                                            Support
                                                                                                                                                                                                                                                              Quality
                                                                                                                                                                                                                                                                Security
                                                                                                                                                                                                                                                                  License
                                                                                                                                                                                                                                                                    Reuse