Navigation: <-- What Is Artificial Intelligence? | Part Index | Main Index | CRISP-DM -->
AI Ethics: A Primer
Requires: What Is Artificial Intelligence?
Building AI systems well includes building them responsibly. A model can score well on every benchmark and still cause harm in deployment. We don't want that. So, what does it mean to build AI responsibly? And what does society, and increasingly the law, expect from those who do?
In this nugget, you'll encounter three challenges that run through all of AI practice: misaligned objectives, anthropomorphism, and algorithmic bias. You'll also get a first look at the EU AI Act: one of the world's first comprehensive AI regulations.
Table of Contents
- The Stakes: AI Systems Act on the World
- Key Challenges
- The Regulatory Landscape: The EU AI Act
- Summary
The Stakes: AI Systems Act on the World
A sorting algorithm with a bug produces slightly out-of-order data. An AI triage system with a bug sends the wrong patient to the back of the queue. The system may pass every test and yet produce real harm.
Discussion: What could be wrong when all tests pass and systems still cause unintended harm once deployed?
The asymmetry discussed here is not new to software engineering. But AI systems introduce it at scale and in contexts that are difficult to supervise manually: hiring, lending, medical diagnosis, content moderation, criminal sentencing. They often do so without explanations a human could audit.
Key fact: Building a system that acts on the world on behalf of a stated goal is not a neutral act.
In the sequel, we'll identify three places where things go wrong and closes with how the law is beginning to respond.
Key Challenges
Value Alignment
Every machine learning model optimizes for something: a loss function, a metric, a score. The alignment problem is the gap between what we wrote down and how it is interpreted and what we actually care about.
- A sensor system optimized to minimize false alarms may learn to suppress all alerts.
- A production system optimized to maximize yield may quietly ignore safety thresholds.
In both cases, the model did exactly what it was told. The problem is that what it was told was not quite what was wanted.
The danger for misalignment is a systematic side effect of optimization:
Whenever you define a proxy metric (surrogate to measure the actual goal), you create an opportunity for the model to satisfy the proxy while failing the goal.
This is why great care must be taken as to what gets optimized. Later in the course, we'll discuss this in detail: ๐ Choosing and Aligning Metrics.
We humans sometimes have trouble enough to align our values. With AI models running more and more things, it does not get easier. The higher the stakes of the application, the more costly are failures.
Anthropomorphism (Projecting Human Characteristics into AI)
In 1966, Joseph Weizenbaum created ELIZA: a chatbot that reflected users' words back at them using simple pattern matching. Weizenbaum was disturbed by how quickly users formed emotional attachments to it and began treating its outputs as meaningful advice. They assumed agency and human-like characteristics, which is called anthropomorphism. In reality, ELIZA did not understand anything.
The same dynamic is present today with large language models. Fluent, confident prose triggers a cognitive shortcut: we assume competence behind the language. But a language model has no model of truth and no stake in the outcome. It produces text that fits the statistical patterns of its training data. Sometimes that text is accurate. Sometimes it is not. The model cannot tell the difference.
For practitioners, this means that testing whether output "sounds right" is not the same as testing whether it is right. Users will over-trust outputs. Developers are not immune.
Human biases when working with AI: Anthropomorphism is just one bias to list here. We have many more when interacting with AI systems. I listed some of them in a blog article: โช Biases when working with chatbots.
Human biases do not only affect our work with chatbots, large language models, or AI models in general. Some of these biases translate into biases in AI models themselves.
Algorithmic Bias and Accountability
Machine learning models learn from historical data. This data reflects the world that generated it, which unfortunately includes its inequities. A hiring model trained on historical promotion decisions reflects past patterns. But those patterns may encode existing discrimination, which can amplify them. For example, a ๐ 2024 University of Washington study found that AI used for screening resumes preferred white-associated names 85% of the time, Black-associated names only 9%.
To illustrate how easy algorithmic bias can affect automated hiring attempts, here is a great ๐ 10-minute browser game.
Discussion: A flawed hiring tool incorrectly screens out qualified candidates for years before the problem is discovered. Who bears responsibility: the developer who built the model, the organization that deployed it, or the regulator that allowed it?
The discussion aims at another important consideration: The question of accountability. When an AI system causes harm, who is responsible? The developer? The organization that deployed it? The regulator? Today, in many applications, these questions are rarely answered cleanly. WHere clear accountability is absent it poses a risk: For example, it creates incentives to deploy without sufficient scrutiny. This is dangerous, especially when interests of single powerful players dominate.
The Regulatory Landscape: The EU AI Act
The ๐ EU AI Act (which started entering into force in August 2024) is one of the world's first comprehensive legal framework for AI. Its core idea is a risk-based classification: the obligations placed on a system scale with the harm it could cause.
| Risk tier | Examples | Obligations |
|---|---|---|
| Unacceptable (prohibited) | Social scoring by governments, real-time biometric surveillance in public spaces, subliminal manipulation | Banned outright |
| High risk | Hiring tools, credit scoring, medical devices, critical infrastructure, law enforcement, education systems | Conformity assessment, human oversight, transparency to affected persons, registration |
| Limited risk | Chatbots, deepfake generators | Must disclose that users are interacting with AI |
| Minimal risk | Spam filters, recommendation engines for non-consequential use | No specific obligations |
The AI act is sometimes criticized, as is any kind of regulation. While it is certainly not perfect, it reflects and protects some of the values and human rights that the EU is based on. That's worth a lot.
What does it mean for practicioners
Practitioners need to figure out where "their system" sits:
- A quality-control model on a production line may be minimal risk in one context and high risk in another depending on what it controls.
- A hiring screening tool is high risk regardless of how accurate it is.
Additionally, certain transparency obligations apply broadly across risk tiers:
- any AI system interacting with a human must identify itself as AI, and
- AI-generated content that could deceive ("deep fakes") must be labeled as such.
The EU AI Act is a living regulation with phased implementation timelines. What matters for now is the underlying logic: risk scales with consequence, and consequence creates obligation.
We return to these questions in ๐ Ethics and Accountability in Production once you have the technical vocabulary to reason about failure modes and model documentation concretely.
Summary
- Deployed AI systems act on the world at scale in contexts that are difficult to audit manually. Good benchmark performance does not guarantee responsible deployment.
- The alignment problem: proxy metrics create structural opportunities for a model to satisfy the measure while failing the actual goal.
- Anthropomorphism: Leads users to over-trust fluent outputs. Fluency is not accuracy.
- Algorithmic bias in AI: models reflect their training data, including its inequities. Accountability for resulting harm remains poorly defined in both law and practice.
- The EU AI Act classifies systems by risk tier. High-risk systems face substantial design, documentation, and oversight obligations.
As always: Happy learning, happy life! ๐ซถ
Navigation: <-- What Is Artificial Intelligence? | Part Index | Main Index | CRISP-DM -->
Script v1.8 (2026-08-19) ยท FGN