The case for open source classifiers in AI algorithms

Dr. Carol Reiley’s achievements are too long to list. She co-founded, a self-driving car startup that raised $50 million in its second round of funding last year. Forbes magazine named her one of “20 Incredible Women in AI,” and she built intelligent robot systems as a PhD candidate at Johns Hopkins University.

But when she built a voice-activated human-robot interface, her own creation couldn’t recognize her voice.

Dr. Reiley used Microsoft’s speech recognition API to build her interface. But since the API was built mostly by young men, it hadn’t been exposed to enough voice variations. After some failed attempts to lower her voice so the system would recognize her, Dr. Reiley enlisted a male graduate to lead demonstrations of her work.

Did Microsoft train its API to recognize only male voices? Probably not. It’s more likely that the dataset used to train this API didn’t have a wide range of voices with diverse accents, inflections, etc.

AI-powered products learn from the data they’re trained on. If Microsoft’s API was exposed only to male voices within a certain age range, it wouldn’t know how to recognize a female voice—even if a female built the product.

This is an example of machine bias at work—and it’s a more widespread problem than we think.

What is machine bias?

According to Gartner research (available for clients), “Machine bias arises when an algorithm unfairly prefers a particular group or unjustly discriminates against another when making predictions and drawing conclusions.” This bias takes one of two forms:

  • Direct bias occurs when models make predictions based on sensitive or prohibited attributes. These attributes include race, religion, gender, and sexual orientation.
  • Indirect bias is a byproduct of non-sensitive attributes that correlate with sensitive attributes. This is the more common form of machine bias. It’s also the tougher form of bias to detect.

The human impact of machine bias

In my lightning talk at Open Source Summit North America in August, I shared the Correctional Offender Management Profiling for Alternative Sanctions (COMPAS) algorithm as an example of indirect bias. Judges in more than 12 U.S. states use this algorithm to predict a defendant’s likelihood to recommit crimes.

Unfortunately, research from ProPublica found that the COMPAS algorithm made incorrect predictions due to indirect bias based on race. The algorithm was two times more likely to incorrectly cite black defendants as high risks for recommitting crimes and two times more likely to incorrectly cite white defendants as low risks for recommitting crimes.

How did this happen? The COMPAS algorithm’s predictions correlated with race (a sensitive/prohibited attribute). To confirm whether indirect bias exists within a dataset, the outcomes from one group are compared with another group’s. If the difference exceeds some agreed-upon threshold, the model is considered unacceptably biased.

This isn’t a “What if?” scenario: COMPAS’s results impacted defendants’ prison sentences, including the length of those sentences and whether defendants were released on parole.

Based partially on COMPAS’s recommendation, a Wisconsin judged denied probation to a man named Eric Loomis. Instead, the judge gave Loomis a six-year prison sentence for driving a car that had been used in a recent shooting.

To make matters worse, we can’t confirm how COMPAS reached its conclusions: The manufacturer refused to disclose how it works, which made it a black-box algorithm. But when Loomis took his case to the Supreme Court, the justices refused to give it a hearing.

This choice signaled that most Supreme Court justices condoned the algorithm’s use without knowing how it reached (often incorrect) conclusions. This sets a dangerous legal precedent, especially as confusion about how AI works shows no signs of slowing down.

Why you should open source your AI algorithms

The open source community discussed this subject during a Birds of a Feather (BoF) session at Open Source Summit North America in August. During this discussion, some developers made cases for keeping machine learning algorithms private.

Along with proprietary concerns, these black-box algorithms are built on endless neurons that each have their own biases. Since these algorithms learn from the data they’re trained on, they’re at risk of manipulation by bad actors. One program manager at a major tech firm said his team is constantly on guard to protect their work from those with ill intent.

In spite of these reasons, there’s a strong case in favor of making the datasets used to train machine learning algorithms open where possible. And a series of open source tools is helping developers solve this problem.

Local Interpretable Model-Agnostic Explanations (LIME) is an open source Python toolkit from the University of Washington. It doesn’t try to dissect every factor influencing algorithms’ decisions. Instead, it treats every model as a black box.

LIME uses a pick-step to select a representative set of predictions or conclusions to explain. Then it approximates the model closest to those predictions. It manipulates the inputs to the model and then measures how predictions change.

The image below, from LIME’s website, shows a classifier from text classification. The tool’s researchers took two classes—Atheism and Christian—that are difficult to distinguish since they share so many words. Then, they trained a forest with 500 trees and got a test accuracy of 92.4%. If accuracy was your core measure of trust, you’d be able to trust this algorithm.

Facebook Comments

More Stuff

10 Essential WordPress Plugins in 2011 Every so often I write a post like this one – and this is a subject worth revisiting, since new and better plugins get released all the time, and olde...
GNOME at 20: Four reasons it's still my favorite GUI The GNOME desktop turns 20 on August 15, and I'm so excited! Twenty years is a major milestone for any open source software project, especially a grap...
How to Install Latest LXQt 0.13 Desktop in Ubuntu and Fedora LXQt developed from popular components of LXDE and Razor Qt project, LXQt is a free, open source, lightweight and fast desktop environment for Linux a...
How to install htop on macOS Unix desktop running on MacBook Pro n... I like htop on my Ubuntu server. The man page says it is a free (GPL) ncurses-based process viewer for Linux. Can I install htop on macOS Unix deskto...
Spread the love

Posted by News Monkey