GithubHelp home page GithubHelp logo

ghoersti / unintended-ml-bias-analysis Goto Github PK

View Code? Open in Web Editor NEW

This project forked from conversationai/unintended-ml-bias-analysis

0.0 0.0 0.0 264.6 MB

forked it

License: Apache License 2.0

Shell 0.01% Python 1.08% Jupyter Notebook 98.90%

unintended-ml-bias-analysis's Introduction

Unintended ML Bias Analysis

This repository contains the Sentence Templates datasets we use to evaluate and mitigate unintended machine learning bias in Perspective API. See our accompanying blog post to learn more about how we created these datasets.

This work is part of the Conversation AI project, a collaborative research effort exploring ML as a tool for better discussions online.

NOTE: We moved outdated scripts, notebooks, and other resources to the archive subdirectory. We no longer maintain those resources, but you may find some of the content helpful. In particular, see model_bias_analysis.py for an example of how to analyze model bias.

Background

As part of the Perspective API model training process, we evaluate identity-term bias in our models on synthetically generated and “templated” test sets. To generate these sets, we plug in identity terms into both toxic and non-toxic template sentences. For example, given templates like “I am a <modifier> <identity>”, we evaluate differences in score on sentences like:

“I am a kind American"

“I am a kind Muslim"

Scores that vary significantly may indicate identity term bias within the model.

For more reading on unintended bias and how we measure bias using the resulting model scores, see:

Usage

We encourage researchers and developers to use these datasets to test for biases in their own models. However, Sentence Templates alone are insufficient for eliminating identity bias in machine learning language models. The examples are simple and unlikely to appear in real-world data and may reflect our own biases. The identity terms also vary across languages because direct word-for-word translation of identity terms across languages is not sufficient, or even possible, given differences in cultures, religions, idioms, and identities.

Copyright and license

All code in this repository is made available under the Apache 2 license. All data in this repository is made available under the Creative Commons Attribution 4.0 International license (CC By 4.0). A full copy of the license can be found at https://creativecommons.org/licenses/by/4.0/

unintended-ml-bias-analysis's People

Contributors

lucyvasserman avatar sorensenjs avatar jetpack avatar dborkan avatar dependabot[bot] avatar nthain avatar alyssachvasta avatar iislucas avatar mariepellat avatar idk3 avatar g8a9 avatar dslucas avatar seungwubaek avatar qiongyu avatar rubinovitz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.