Stanford
University
  • Stanford Home
  • Maps & Directions
  • Search Stanford
  • Emergency Info
  • Terms of Use
  • Privacy
  • Copyright
  • Trademarks
  • Non-Discrimination
  • Accessibility
© Stanford University.  Stanford, California 94305.
A Legal Approach to “Affirmative Algorithms” | Stanford HAI

Stay Up To Date

Get the latest news, advances in research, policy work, and education program updates from HAI in your inbox weekly.

Sign Up For Latest News

Skip to content
  • About

    • About
    • People
    • Get Involved with HAI
    • Support HAI
    • Subscribe to Email
  • Research

    • Research
    • Fellowship Programs
    • Grants
    • Student Affinity Groups
    • Centers & Labs
    • Research Publications
    • Research Partners
  • Education

    • Education
    • Executive and Professional Education
    • Government and Policymakers
    • K-12
    • Stanford Students
  • Policy

    • Policy
    • Policy Publications
    • Policymaker Education
    • Student Opportunities
  • AI Index

    • AI Index
    • AI Index Report
    • Global Vibrancy Tool
    • People
  • News
  • Events
  • Industry
  • Centers & Labs
Navigate
  • About
  • Events
  • AI Glossary
  • Careers
  • Search
Participate
  • Get Involved
  • Support HAI
  • Contact Us
news

A Legal Approach to “Affirmative Algorithms”

Date
November 09, 2020
Ken Hammond

Solutions to fix algorithmic bias could collide with law. Two scholars propose a solution. 

As AI and predictive algorithms permeate ever more areas of decision making, from setting bail to evaluating job applications to making home loans, what happens when an algorithm arbitrarily discriminates against women, African-Americans, or other groups?  

It happens all the time.

Amazon famously discarded a resume-reviewing system because it penalized women — probably a legacy of gender-skewed hiring patterns. Similarly, an AI model used by courts to predict recidivism incorrectly labelled Black defendants as “high risk” at twice the rate as whites.

Unfortunately, warns Daniel Ho, the William Benjamin Scott and Luna M. Scott Professor of Law at Stanford University and associate director of the Stanford Institute for Human-Centered Artificial Intelligence, many of the proposed solutions to fix algorithmic bias are on a collision course with Supreme Court rulings on equal protection.

In a new paper by Ho and Alice Xiang, the head of Fairness, Transparency, and Accountability Research at the Partnership on AI, a research group that focuses on responsible AI, the authors warn that many of the strategies for increasing fairness clash directly with the high court’s push for “anti-classification.” That’s the principle of remaining “blind” toward categories like race, gender, or religion.

In one key case, the Supreme Court rejected the University of Michigan’s attempt to give a modest statistical boost to applicants from under-represented communities. In another, the high court ruled against the city of New Haven, Conn., which had thrown out the results of a test for firefighters because no African-American candidates would have been promoted. As Chief Justice John Roberts summed up the issue in another case, “The way to stop discrimination on the basis of race is to stop discriminating on the basis of race.”

That poses a big legal obstacle for fixing biased algorithms, note Ho and Xiang, because most of the strategies involve adjusting algorithms to produce fairer outcomes along racial or gender lines. Since many minority students may have less time and money for SAT coaching classes, for example, it could make sense to lower the relative weight of SAT scores in evaluating their college applications.

But because such adjustments would be deemed race-based classifications, the authors say, they will be at risk of being overturned in court.

“The adjustments to algorithmic systems come very close to the University of Michigan’s 20-point boost, which the Supreme Court rejected,” Ho says. “The machine learning community working on algorithmic fairness hasn’t had close exchanges with the legal community. But when you put the two together, you realize there’s a collision.”

Adds Xiang, “It was striking to see how much of the machine-learning literature is legally suspect. The court has taken a very strong anti-classification stance. If actions are motivated by race, even with the ostensible goal to promote fairness, it probably won’t fly.”

At the same time, the authors warn, the demand for “blindness” could make algorithmic bias even worse.

That’s because machine learning models pick up on all kinds of correlations or proxies for race that may have no real-world significance but become part of the decision process.

Amazon’s resume-reviewing model, for example, didn’t distinguish between male and female applicants. Instead, it “learned” that the company had hired very few engineers who had come from women’s colleges. As a result, it down-weighted applications that mentioned women’s colleges.

“It’s hard to be fair if you’re not aware of an algorithm’s potential impact on different subgroups,” says Ho. “That’s why blindness can often be a significantly inferior solution than what machine learners call ‘fairness through awareness.’”

The good news is that Ho and Xiang see a possible solution to the legal morass.

A separate strand of affirmative action case law, tied to government contracting, has long permitted explicit racial and gender preferences. Federal, state, and local agencies create set-asides and bidding preferences for minority-owned contractors, and those preferences have passed legal muster because the agencies could document their own histories of discrimination.

Ho says that advocates for fairness could well justify race- or gender-based fixes on the basis of past discrimination. Like the Amazon system, most AI models are trained on historical data that may incorporate past patterns of discrimination.

What the law emphasizes, Ho says, is that the magnitude of the adjustment should track the evidence for historical discrimination.  The government contracting precedent allows for explicit quantification, thus making fair machine learning more feasible.

Put another way, say Ho and Xiang, the jurisprudence of government contract law may offer an escape from the trap of blindness and a path toward fairness through awareness.

Stanford HAI's mission is to advance AI research, education, policy and practice to improve the human condition. Learn more. 

Ken Hammond
Share
Link copied to clipboard!
Contributor(s)
Edmund L. Andrews
Related
  • Coded Bias: Director Shalini Kantayya on Solving Facial Recognition’s Serious Flaws
    Katharine Miller
    Sep 14
    news

    We need ‘guidelines around transparency and laws that balance Big Tech’s power.’

Related News

AI Companions May Worsen Loneliness for Vulnerable Users, Stanford Study Finds
Alexander Gelfand
Aug 04, 2026
News
A woman looks at her phone in shadow, evoking feelings of loneliness

Stanford research finds that users with limited social networks who seek emotional support from AI companions experience lower well-being.

News
A woman looks at her phone in shadow, evoking feelings of loneliness

AI Companions May Worsen Loneliness for Vulnerable Users, Stanford Study Finds

Alexander Gelfand
HealthcareGenerative AIAug 04

Stanford research finds that users with limited social networks who seek emotional support from AI companions experience lower well-being.

Open-Weight Models Aren’t Enough. We Need Truly Open Source AI Models for Science and Society.
Shana Lynch
Aug 04, 2026
News
iceberg showing model weights at the tip and a lot of unknown and deep technology under the surface of the water

As Chinese AI closes the capability gap, Washington and Silicon Valley debate open-weight models. Stanford HAI's James Landay says it's the right conversation framed the wrong way.

News
iceberg showing model weights at the tip and a lot of unknown and deep technology under the surface of the water

Open-Weight Models Aren’t Enough. We Need Truly Open Source AI Models for Science and Society.

Shana Lynch
Privacy, Safety, SecurityInternational Affairs, International Security, International DevelopmentRegulation, Policy, GovernanceAug 04

As Chinese AI closes the capability gap, Washington and Silicon Valley debate open-weight models. Stanford HAI's James Landay says it's the right conversation framed the wrong way.

Why Governing World Models Is AI's Next Big Policy Challenge
Shana Lynch
Aug 04, 2026
News
Busy downtown rush-hour driving scene from the perspective of a self-driving car

As artificial intelligence moves beyond language into the physical world through "world models," Stanford researchers warn that policymakers face an even steeper governance challenge than with large language models—and the window to get ahead of the technology is closing fast.

News
Busy downtown rush-hour driving scene from the perspective of a self-driving car

Why Governing World Models Is AI's Next Big Policy Challenge

Shana Lynch
Spatial IntelligenceRegulation, Policy, GovernanceAug 04

As artificial intelligence moves beyond language into the physical world through "world models," Stanford researchers warn that policymakers face an even steeper governance challenge than with large language models—and the window to get ahead of the technology is closing fast.