Artificial intelligence and its consequences

A-Level Computer Science · Operating Systems, Networks and AI

What machine learning is

Instead of a programmer writing rules, the system is given data and adjusts its own parameters to reduce error. Supervised learning uses labelled examples (this image is a cat); unsupervised learning finds structure in unlabelled data (these customers cluster together); reinforcement learning learns from reward and penalty over repeated attempts.

Neural networks, briefly

Layers of connected nodes: an input layer, one or more hidden layers, an output layer. Each connection has a weight; training adjusts the weights so the output moves closer to the correct answer. 'Deep' learning simply means many hidden layers.

What AI is good and bad at

Good: recognising patterns in large volumes of data, working without fatigue, and finding relationships a human would not notice. Bad: explaining why it reached a conclusion, handling situations unlike anything in its training data, and knowing when it is wrong — a model outputs a confident answer whether or not it has any basis for one.

Bias, and where it comes from

A model trained on past decisions reproduces the pattern of those decisions, including any unfairness in them. If historical loan approvals favoured one group, a model trained on them will too — and it will do so consistently, at scale, and with the appearance of objectivity. The bias is in the data, not in the algorithm, which is exactly why it is hard to detect.

Accountability

When automated software causes harm, who is responsible: the developer, the organisation that deployed it, or the person who followed its recommendation? The defensible position for the exam is that a system making decisions about people should be explainable, auditable, and subject to human review — and that 'the algorithm decided' is not an answer.

Worked example: analyze an automated recruitment system

A company uses machine learning software to screen job applications, trained on $10$ years of the company's own hiring data. After one year, the proportion of female candidates invited to interview fell from $38\%$ to $19\%$, even though the software was never told the candidates' gender.

Explain why and propose how to handle it.

Solution

Step 1 — the source of the bias is the TRAINING DATA.

The model learns from $10$ years of past hiring decisions. If during that time the company hired fewer women, the model learns that 'applications resembling the candidates who were hired' are good applications — and the candidates who were hired were mostly men.

Step 2 — why hiding gender does not help. This is the most important detail of the scenario. The model finds proxy variables that correlate with gender: school names, club names, phrasing in the application, gaps in the work history, or even certain verbs that appear more often in one group.

Deleting the 'gender' field does not delete the information about gender — it only makes that information harder for an inspector to see, while the model can still use it.

Step 3 — why this problem is more dangerous than human bias. A biased recruiter affects the number of applications they read; a biased model applies the same bias to every application, consistently, and with an appearance of objectivity that means no one questions it.

How to handle it.

$1.$ Stop using the software to reject applications until the audit is finished. This is the first step because every week of delay means more candidates wrongly rejected.

$2.$ Audit the model: run it on applications that are identical except for gender-related signals, and measure the difference in outcomes. This is the direct test for bias.

$3.$ Fix the training data, not just the model: retrain on balanced data, or use employees' actual job performance instead of past hiring decisions as the labels.

$4.$ Keep a human in the decision loop: let the software rank and suggest, but recruiters must review and take responsibility for the final list, with regular monitoring of the make-up of candidates through each round.

Point to make in the conclusion: the fault here is not the algorithm's but the decision to use past data as the standard for the future. A system that makes decisions about people must be explainable and auditable — otherwise it should not be deployed.

Common mistake

Writing that an algorithm is more objective than a person because it has no emotions. The model reproduces the bias in its training data, and does so at scale with an appearance of objectivity — more dangerous, not safer. The appearance of objectivity is the dangerous part.

Key takeaway

The three types of machine learning are distinguished by whether the data is labeled. Bias lies in the data, not the algorithm, and deleting a field does not delete the information because the model finds proxy variables. For accountability questions, demand three things: explainable, auditable, and reviewed by a human.

← Networks in depth: protocols, addressing and the cloud · All A-Level Computer Science lessons · Practice A-Level Computer Science questions (free, instant scoring) · Floating point representation →