In this lesson
The Big Idea
AI now takes part in decisions that affect people directly: who gets a job, who a street camera recognises, how someone's personal data is analysed. That raises ethical questions. What if the results are unfair? What if nobody can explain a decision? And who is responsible when the system gets it wrong? This lesson answers through three issues (bias, privacy, and explanation and responsibility) and four principles for responsible use: fairness, transparency, privacy protection and accountability.
Bias in AI Systems
Algorithmic bias is a skew or pattern in an AI system that can lead to unfair or harmful results. Examples:
- A hiring system that unfairly favours one group of applicants.
- A face-recognition system that is less accurate for certain groups of people.
Training data: where the system learns from
Training data is the set of examples an AI system learns its patterns from before it is used. The less it represents reality, the more likely the system's outputs are to be biased. The system doesn't "know" what is fair; it learns whatever is in the data.
Where does bias come from?
Bias can come from more than one source:
- Biased training data, in two common forms:
- Too little data on certain attributes: e.g. face images mostly from one group, so the system learns that group well and makes mistakes with others.
- Data reflecting past discrimination: e.g. old hiring records from a time when the company favoured one group, so the system learns that preference and treats it as "the pattern of success".
- How the system is built and designed, such as:
- A poor choice of variables for the system to rely on.
- A proxy variable that indirectly stands for a protected attribute. Example: we delete the "gender" column from hiring data, but a column like "sports club name" still reveals gender indirectly, so the discrimination stays.
- The design of the model itself.
- How the system is used, for instance in a context or for a group it wasn't designed for.
- The human and social context the system operates in.
Privacy Issues
Privacy means handling personal data appropriately and protecting it. As AI developed, two new issues appeared:
- Surveillance through face recognition: cameras in public places can identify and track individuals. That might help find a lost child, but it could also mean everyone's movements are recorded all day.
- Mass collection of personal data: huge amounts of online behaviour data are collected and analysed: what you search for, what you buy, where you go. Each piece is small on its own, but together they paint a detailed picture of your life.
Explainable AI and Responsibility
Remember the black box problem from the last lesson: we can't see how a system reached its judgement. This section covers four ideas that deal with that problem and what follows from it.
1. Explainable AI (XAI)
Explainable AI (XAI) is a set of methods that help people understand the factors that contributed to a system's output or decision. For example: "The application was rejected mainly because of too few years of experience, and secondly because a certain certificate was missing."
Why does this matter? Because when the way a result was reached is unclear, it is hard to evaluate it and to detect errors or bias. Even if a result looks right, we can't be sure without understanding how the system got there.
2. Responsibility
Responsibility means defining the roles and duties of the parties involved in developing, operating and using the system:
- The developer: who built and trained the system.
- The operator: the organisation that uses the system in its work, such as a company or hospital.
- The user: the person who deals with the system and its outputs.
There is no single way of sharing responsibility that fits every context; it depends on the system, the use and the rules in force. So when an AI system makes a mistake, responsibility is not always clearly defined, and opinions differ.
3. Accountability
Accountability means identifying the parties responsible for the system, its decisions and their effects, and making it possible to hold them to account according to their roles.
4. Transparency
Transparency means providing clear and appropriate information about a system: what it is, how it is used, how decisions are made and what its limits are. Example: a learning platform that states clearly, "Part of your homework is marked by AI; it looks at these things; it may get these things wrong; you can ask your teacher to review it."
The Basic Principles of AI Ethics
The lesson focuses on four important principles for responsible AI use, among others:
| Principle | Meaning | |---|---| | Fairness | Not unjustly discriminating against any particular person or group | | Transparency | Providing clear, appropriate information about the system, its use, its decision process and its limits | | Privacy protection | Handling personal information appropriately and protecting privacy | | Accountability | Identifying the parties responsible for the system, its decisions and effects, and being able to hold them to account according to their roles |
How to apply the principles
A handy exam trick: turn each principle into a question and ask it of the situation:
- Fairness: is any person or group treated worse, unjustly? → e.g. a hiring system that rates applicants differently by gender.
- Transparency: do people know the system is being used, how it decides and what its limits are? → e.g. explaining the decision process to users in plain language.
- Privacy protection: is personal data collected and used appropriately? → e.g. not using data for a purpose other than the one it was collected for.
- Accountability: if harm is done, do we know who is responsible, and can they be held to account? → e.g. deciding who answers for a wrong diagnosis.
How do we reduce bias?
The book sums up practical steps: check how representative the data is, then test results across different groups (is accuracy similar for everyone?), then review the system's design and the context it will be used in. Here fairness is the goal and transparency is a tool: a system whose decision factors we understand is easier to check for bias.
Try It Yourself
Common Mistakes
"Algorithmic bias only ever comes from the data"
Biased data is the best-known cause, but the Arabic edition lists others.
Bias can come from the data, the system's design (such as a proxy variable revealing a protected attribute), how it is used, or the human and social context.
"If the result is correct, it doesn't matter that the decision process is unclear"
If we don't know how the system reached the result, we can't actually be sure it is correct.
When the decision process is unclear, it is hard to evaluate and to spot errors or bias; that is why we need XAI and transparency.
"Accountability means the system explains its decision"
This mixes up two related ideas.
Explaining why a decision was made is the job of XAI. Accountability is identifying who answers for the system, its decisions and their effects.
"Responsibility for an AI's mistake is already clearly defined"
The book says the opposite.
Opinions differ about responsibility among the developer, the operator and the user, and no single arrangement fits every context.
"A slow computer or processing speed causes bias"
Speed decides when a result appears, not how fair it is.
Bias comes from what the system learns and how it is designed and used: too little data, past discrimination in the data, or unsuitable variables.
Key Points
- Algorithmic bias: a skew or pattern that can lead to unfair or harmful results; it can arise from the data, the design, the use or the social context.
- Training data is the examples a system learns from; the less it represents reality, the more likely bias becomes.
- Privacy issues: surveillance through face recognition, and mass collection of online behaviour data.
- XAI is a set of methods for understanding the factors behind a system's decision; it tackles the black box problem.
- Responsibility: the roles and duties of the developer, the operator and the user; no single arrangement fits every context.
- Accountability answers "who answers for it?"; it is not explaining the decision.
- The four principles: fairness, transparency, privacy protection and accountability, among others.
- To reduce bias: check how representative the data is, test results across groups, and review the design and context of use.
FAQ
What is the difference between transparency and explainable AI?
Transparency is a general principle: giving clear, appropriate information about the system, its use, how it decides and its limits. XAI is a set of technical methods that help people understand the factors behind a particular decision. XAI is one of the main tools for achieving transparency.
What is the difference between responsibility and accountability?
Responsibility sets out the roles and duties of each party: the developer, the operator and the user. Accountability identifies who is responsible for the system, its decisions and their effects, and makes sure they can be held to account according to those roles.
If we delete the gender or religion column from the data, does the bias disappear?
Not necessarily. Proxy variables can still reveal the protected attribute indirectly, and the data itself may reflect past discrimination. That is why results must be tested across different groups after any change.
How should I write the essay on algorithmic bias?
Start with the definition, then give the main cause: training data that has too little on some groups or reflects past discrimination, with an example such as a hiring system. Then explain the fix: fairness is the goal, checked by comparing results across groups, and transparency and XAI are the tools for revealing the factors causing the bias. Finish with reviewing the design and the context of use.