AI Ethics and Algorithmic Bias
Abstract
Artificial intelligence systems encode the data they are trained on, including the historical biases, structural inequalities, and measurement errors embedded in that data. By the mid-2010s, AI systems were making or informing decisions about parole, hiring, lending, medical care, and facial recognition at scale, in ways that systematically disadvantaged Black people, women, and other marginalized groups. AI ethics grew out of three kinds of work: technical research that measures and reduces bias in machine-learning systems, policy work that pushes for regulation, and disputes between researchers at large tech companies and their employers. The landmarks include Gender Shades (Joy Buolamwini, 2018), the COMPAS recidivism controversy (2016), the Timnit Gebru firing from Google (2020), and the ongoing debate about what fairness in automated decision-making actually means.
The Problem: Algorithms Reflect Data History
Machine learning models learn patterns from historical data. Where loan approvals, hiring, criminal convictions, or medical diagnoses have differed between demographic groups because of past discrimination rather than real underlying differences, a model trained on those records reproduces the same pattern.
Making the model more accurate does not fix this, because the bias is in the data it learns from. A credit model trained on historical lending data in the United States will learn that Black applicants are higher risk, because historical lending discrimination made Black borrowers more likely to face financial stress that correlated with loan default, independent of creditworthiness. A hiring model trained on historical hiring decisions will learn the patterns of those decisions, including their discriminatory elements.
The problem extends beyond historical bias in training data. Measurement bias occurs when the proxies used to represent the quantity of interest differ systematically across groups. A healthcare model predicting patient risk might use healthcare spending as a proxy for health need, but if Black patients receive less care for equivalent conditions (as documented in the medical literature), spending will underestimate need for Black patients and the model will allocate less care to a sicker population.
Representation bias occurs when training datasets underrepresent certain groups, leading models to perform worse on those groups. A facial recognition system trained mostly on light-skinned faces performs worse on dark-skinned faces because it has seen too few of them to learn the relevant features.
Gender Shades: Measuring Face-Based AI
Joy Buolamwini, while a graduate student at the MIT Media Lab, noticed that a facial recognition system could not detect her face until she put on a white mask. This observation led to her master’s thesis (2017) and the Gender Shades paper (co-authored with Timnit Gebru, 2018), one of the most influential AI ethics studies of the decade.
Gender Shades evaluated commercial facial analysis systems from Microsoft, IBM, and Face++ on a task of binary gender classification (man/woman). The study used a new dataset, the Pilot Parliaments Benchmark: 1,270 photos of members of parliament from three African and three European countries, balanced by gender and skin type and measured accuracy across intersections of gender and skin tone (darker-skinned females, darker-skinned males, lighter-skinned females, lighter-skinned males).
All three systems performed significantly worse on darker-skinned faces, and significantly worse on female faces, with the worst performance on darker-skinned females:
- Lighter-skinned males: error rate as low as 0.0%
- Darker-skinned females: error rate as high as 34.7%
The paper demonstrated that commercial AI systems had substantial performance disparities across demographic groups and that vendors’ marketing claims of high accuracy were based on benchmark results that did not reflect performance on underrepresented groups. The study triggered rapid responses from all three companies, who improved their systems before a 2019 follow-up study.
Gender Shades established the methodology of algorithmic audit, systematic measurement of AI system performance across demographic subgroups using independently collected evaluation data, as a standard tool in AI ethics research.
The Regulatory Consequence
Gender Shades contributed to a wave of facial recognition regulation. San Francisco banned city use of facial recognition in 2019. The EU AI Act (2024) restricted the use of real-time facial recognition in public spaces, and banned inferring emotions from faces in workplaces and schools outright (see Affective Computing, where the science behind that product category failed before the law reached it). Amazon announced a one-year moratorium on police use of its Rekognition facial recognition product in June 2020 and extended it indefinitely in May 2021; IBM exited the facial recognition market entirely. Buolamwini’s work, alongside organizing by civil liberties groups, directly influenced regulatory outcomes.
COMPAS: Algorithmic Recidivism Prediction
In May 2016, ProPublica published “Machine Bias,” an investigation into COMPAS (Correctional Offender Management Profiling for Alternative Sanctions), an algorithmic risk assessment tool used in criminal sentencing in several US states. Defendants were given risk scores (1–10) predicting the likelihood of re-arrest; these scores influenced bail, sentencing, and parole decisions.
ProPublica’s analysis found that COMPAS was more likely to falsely label Black defendants as high-risk (false positives) and more likely to falsely label White defendants as low-risk (false negatives). The false positive rate for Black defendants was approximately twice that for White defendants.
The COMPAS controversy produced an important technical dispute about what “fairness” means:
Northpointe (COMPAS’s developer) responded that COMPAS was “calibrated”: that a risk score of 7 predicted approximately the same recidivism rate regardless of race. This is a different definition of fairness than ProPublica’s (equalized false positive rates). Researchers Chouldechova (2017) and Kleinberg et al. (2016) showed formally that these different fairness definitions cannot all be satisfied simultaneously when base rates differ across groups. If Black defendants are re-arrested at higher recorded rates than White defendants (a figure that also reflects where police patrol), then any calibrated risk tool will necessarily have unequal false positive rates.
“Fairness” therefore covers several mathematical definitions that conflict with one another, each reflecting a different value judgment. Which one to optimize is a political and ethical choice that the system itself cannot make.
Timnit Gebru, Emily Bender, and “Stochastic Parrots”
Timnit Gebru was co-lead of Google’s Ethical AI team. In December 2020, she was fired (or, as Google characterized it, resigned) under circumstances that became one of the highest-profile controversies in the history of AI research.
The immediate cause was a paper: “On the Dangers of Stochastic Parrots: Can Language Models Be Too Big?” co-authored by Gebru, Emily Bender (University of Washington), Angelina McMillan-Major, and Shmargaret Shmitchell. The paper argued that large language models (LLMs) had significant costs and risks that were understated in the research community:
- Environmental cost: Training LLMs required enormous computational resources with associated carbon emissions.
- Training data: LLMs trained on internet data encode the biases, stereotypes, and hateful content present in that data.
- Stochastic parrots: LLMs produce text that is statistically coherent with training data but without comprehension, a risk because the fluency of generated text may be mistaken for correctness or understanding.
Google asked Gebru to either remove her name from the paper or withdraw it. When she asked for an explanation of the specific concerns, she was fired. Google’s stated reason was that the paper had not gone through internal review processes; Gebru and supporters argued that the firing was retaliation for research that criticized Google’s core business.
The episode catalyzed organizing within the AI research community. Over 2,600 Google employees signed a letter of protest. Gebru founded the Distributed AI Research Institute (DAIR) in 2021. Margaret Mitchell (who wrote the paper under the pseudonym “Shmargaret Shmitchell”), the other co-lead of Google’s Ethical AI team, was also fired in February 2021 after sending documents related to Gebru’s case to outside parties. Google restructured its AI ethics research under closer management.
The “Stochastic Parrots” paper itself was highly cited and influenced subsequent LLM safety and ethics research. “Stochastic parrots” became standard terminology for critiques of LLM fluency without understanding.
The Structural Problem: Corporate AI Ethics
Gebru’s case illustrated a broader structural problem in AI ethics: the tension between research that identifies harms in corporate AI systems and the commercial interests of corporations that fund that research.
Internal AI ethics teams at major tech companies (Google, Facebook/Meta, Microsoft) were created in response to public and regulatory pressure. They produced valuable research and contributed to policy debates. They also operated within companies whose core products were the AI systems being studied, creating pressure (sometimes explicit, sometimes through incentives and organizational structure) to limit research that might damage commercial products or attract regulation.
Researchers who criticized their employers’ products risked retaliation, and those who found no problems had their objectivity questioned.
Independent organizations such as DAIR, the Algorithmic Justice League (Buolamwini’s organization), the AI Now Institute, and the Partnership on AI offered other homes for the work. These organizations were less financially constrained by corporate interests but had less access to proprietary systems and data.
Fairness, Accountability, and Transparency (FAccT)
The academic community organized around these problems through the FAccT conference (Fairness, Accountability, and Transparency, formerly FAT*), which became a major venue for technical and social science research on AI bias and accountability. FAccT papers established empirical results about algorithmic discrimination in hiring, lending, advertising, and criminal justice; developed technical methods for measuring and mitigating bias; and produced theoretical frameworks for thinking about when algorithmic decision-making is appropriate.
The research fed into the EU AI Act (2024), which classifies certain AI applications as high-risk and requires bias testing and documentation; the NIST AI Risk Management Framework (2023); and proposed regulations in several US states and cities targeting specific applications (facial recognition, tenant screening, hiring algorithms).
Machine Ethics
A second, older strand asks how a machine itself should decide. It began in fiction. In Isaac Asimov’s story “Liar!” (Astounding, May 1941), every robot brain is built so that no human may come to harm through its actions; in 1942 Asimov added rules on obedience and self-preservation, and the Three Laws of Robotics became the reference point of the debate (see Computing in Popular Culture).
Research under the name machine ethics started in the 2000s. The computer scientist Michael Anderson (University of Hartford) and the philosopher Susan Leigh Anderson (University of Connecticut) helped organize the first international symposium on the subject in 2005, and in Scientific American in October 2010 they described a Nao humanoid robot that they had given an ethical principle learned by machine learning from cases judged acceptable. Its task was to remind elderly patients to take their medication: it weighed the benefit of the drug and the harm of missing it against the patient’s autonomy, backed off when a refused pill mattered little, and reported to a human overseer when it mattered a lot.
Self-driving cars moved the trolley problem from the seminar into engineering: whom should a car hit when a collision cannot be avoided? Germany’s Ethics Commission on Automated and Connected Driving, chaired by the former constitutional judge Udo Di Fabio, presented 20 rules on 20 June 2017. One forbids any ranking of people by personal features such as age or sex in an unavoidable accident; the rules are recommendations, not law. In the United States, the philosopher Nicholas Evans of UMass Lowell and colleagues received $556,650 from the National Science Foundation, announced in October 2017, to turn ethical theories into decision algorithms for autonomous vehicles and model their effect on public health, without first deciding which theory is right.
See also: AI in Clinical Practice.
📚 Sources
- Heinz Nixdorf MuseumsForum blog, “Die Moral der Maschinen” (7 January 2019) (Asimov 1941 and 1942, the Andersons’ Nao, the trolley problem, the German commission, Evans)
- Anderson, Michael and Susan Leigh Anderson: “Robot Be Good” — Scientific American, October 2010 (reprint) and UConn Today: “The Ethical Robot”
- Science Media Center: “Ethik-Kommission zum automatisierten Fahren legt Richtlinien vor” (June 2017) and Legal Tribune Online on the commission’s report (20 June 2017, 20 rules, no ranking by personal features)
- Campus Technology: “Researchers Land Nearly $600,000 to Study Ethics of Self-Driving Cars” (30 January 2018) and Daily Nous (Evans’s NSF grant)
- UMass Lowell: “Asst. Prof. Nicholas Evans to Lead $556,000 Study” (October 2017)
- Wikipedia: Liar! (short story)
- Buolamwini, Joy and Timnit Gebru: “Gender Shades: Intersectional Accuracy Disparities in Commercial Gender Classification” — Proceedings of Machine Learning Research, Vol. 81, 2018
- Angwin, Julia et al.: “Machine Bias” — ProPublica, May 23, 2016
- Bender, Emily et al.: “On the Dangers of Stochastic Parrots: Can Language Models Be Too Big?” — FAccT 2021
- Chouldechova, Alexandra: “Fair Prediction with Disparate Impact: A Study of Bias in Recidivism Prediction Instruments” — Big Data, Vol. 5, No. 2, 2017
- Kleinberg, Jon, Sendhil Mullainathan and Manish Raghavan: “Inherent Trade-Offs in the Fair Determination of Risk Scores” (2016) — the formal impossibility result behind the COMPAS fairness dispute
- Obermeyer, Ziad et al.: “Dissecting racial bias in an algorithm used to manage the health of populations” — Science 366, 2019 — healthcare spending as a biased proxy for health need
- Raji, Inioluwa Deborah and Joy Buolamwini: “Actionable Auditing: Investigating the Impact of Publicly Naming Biased Performance Results of Commercial AI Products” — AIES 2019 — the follow-up audit showing the vendors’ corrections
- Amazon extends its moratorium on police use of Rekognition (Forbes, 18 May 2021) — the June 2020 one-year pause made indefinite
- Noble, Safiya Umoja: Algorithms of Oppression: How Search Engines Reinforce Racism (2018), NYU Press
- Benjamin, Ruha: Race After Technology: Abolitionist Tools for the New Jim Code (2019), Polity Press