Responsible AI Principles
Responsible AI is the practice of designing, building and running AI systems so that they are helpful, fair, safe and accountable, and so that people stay in charge of decisions that matter. It is not a single tool or a final checklist. It is a set of principles applied at every step, from choosing the problem to monitoring the system years after launch.
Most companies, governments and standards bodies publish similar principles. This lesson explains them and completes the chapter's checkpoint: a one-page responsible AI review of Campus Helper.
The Principles
| Principle | Description |
|---|---|
| Fairness | It is used to make sure the system works equally well for different groups and doesn't discriminate |
| Transparency | People know they are dealing with AI, what it is for, and how decisions about them were made |
| Privacy | It is used to collect only the data needed, protect it, and respect people's choices about it |
| Security | The system resists attacks and misuse; see "Threats to AI Applications" |
| Reliability and safety | It is used to make sure the system works as intended, fails safely, and is tested and monitored |
| Accountability | A named person or team is responsible for the system and its effects |
| Human oversight | People can understand, question, override and switch off the system, especially for important decisions |
The Checkpoint: A Responsible AI Review of Campus Helper
A review is short and backed by evidence. Each line names what was checked, what was found, and what will be done. This review uses the real results from earlier lessons.
| Area | What we found (evidence) | What we will do |
|---|---|---|
| Purpose and limits | Answers parents' questions about fees, admissions and the timetable from the school FAQ. It does not make decisions about individual students, waive fees or give advice on a family's case. | State the limits on the screen; hand those requests to the office. |
| Data | 50 FAQ entries; no student records. Parents' questions may contain names, emails or card numbers. | Redact before logging, as in "Data Leakage and Privacy Attacks"; delete logs after 90 days. |
| Fairness | English works best. The same message can take twice as many tokens in Spanish and far more in Telugu ("Tokenization"), and the evaluation set is English only. | Build a Spanish evaluation set; check scores are within 5 points of English before supporting Spanish. |
| Transparency | Labeled as an AI assistant; cites its FAQ source; says when it can't help. | Add a "how this works" page and a link to talk to a person. |
| Human oversight | Routing answers with similarity below 0.6 to the office raised the score from 44/50 to 48/50 ("Keeping Humans in the Loop"). | Office staff answer the uncertain middle; review 20 random answers a week. |
| Reliability | Nightly evaluation with an alert; it caught a release that dropped to 40/50 ("Monitoring Quality, Cost and Latency"). | Keep the gate at 42/50; roll back on alert. |
| Security | Three prompt injection attacks worked until four layers of defense blocked them ("Prompt Injection and Jailbreaks"). | Rerun the attack set after every change. |
| Accountability | The school office owns Campus Helper; the IT lead maintains it. | Review this page every term and after any incident. |
| Risks remaining | Wrong amounts, outdated documents, questions it should decline but answers. | Show the document date; staff check fee changes the same day. |
| Decision | Launch to one grade as a pilot, with the actions above. |
Environmental Cost
Training and running AI uses electricity and water for cooling. This program makes a rough estimate of the energy to train a model the size of SmolLM2-135M, from its training compute in "Scaling and Context Windows". Every input is an assumption, labeled in the code.
# A rough estimate of training energy. Every input is an ASSUMPTION; change them for real figures.
training_flops = 1.6e21 # SmolLM2-135M: 6 x parameters x tokens, from "Scaling and Context Windows"
useful_flops_per_gpu = 3e14 # assume an H100 delivers about 300 trillion useful operations per second
gpu_power_kw = 0.7 # an H100 can draw up to about 700 watts
overhead = 1.3 # cooling and the rest of the data center (PUE)
kg_co2_per_kwh = 0.4 # varies a lot by power grid; low for hydro and nuclear, high for coal
gpu_hours = training_flops / useful_flops_per_gpu / 3600
kwh = gpu_hours * gpu_power_kw * overhead
print(f"GPU-hours: {gpu_hours:,.0f} (about {gpu_hours / 64:.0f} hours on 64 GPUs)")
print(f"Energy: {kwh:,.0f} kWh, about {kwh / 10_500 * 12:.1f} months of an average US home's electricity")
print(f"Emissions: {kwh * kg_co2_per_kwh / 1000:.1f} tonnes of CO2")
print("\nScale it up: a model trained with 1,000 times the compute")
print(f"Energy: {kwh * 1000 / 1e6:,.1f} GWh, about {kwh * 1000 / 10_500:,.0f} US homes for a year;"
f" emissions: {kwh * 1000 * kg_co2_per_kwh / 1000:,.0f} tonnes of CO2")GPU-hours: 1,481 (about 23 hours on 64 GPUs)
Energy: 1,348 kWh, about 1.5 months of an average US home's electricity
Emissions: 0.5 tonnes of CO2
Scale it up: a model trained with 1,000 times the compute
Energy: 1.3 GWh, about 128 US homes for a year; emissions: 539 tonnes of CO2Explanation:
- About 1,481 GPU-hours, or roughly a day on 64 GPUs, with these assumptions. The model card says 64 H100 GPUs were used, but not for how long, so the real figure may differ.
- About 1,348 kWh, roughly a month and a half of an average US home's electricity, and about half a tonne of CO2 on an average grid.
- Large models use far more. A model with 1,000 times the compute would need about 1.3 GWh, as much as 128 homes use in a year. Frontier models are larger still.
- Using models adds up too. Each answer costs a small amount of energy, but billions of answers a day can exceed the training cost. Choosing a smaller model when it is good enough, as in "Distillation and Smaller Models", is also a responsible choice.
Common Mistakes
Treating responsible AI as a launch checklist. Data, users and models change; review regularly.
Principles with no owner. Every principle needs a named person and a measurable check.
Testing fairness only on average. A good overall score can hide a group that is badly served; see "Bias and Fairness".
Hiding that it's AI. People have a right to know, and many laws now require it; see "AI Laws and Frameworks".
Interview Corner
What are the main principles of responsible AI?
Fairness, transparency, privacy, security, reliability and safety, accountability, and human oversight. In practice each needs evidence: tests, measurements, documentation and a named owner.
What would you include in a responsible AI review?
The system's purpose and limits, its data, fairness across user groups, transparency to users, human oversight, reliability testing and monitoring, security, accountability, remaining risks and a clear decision, each backed by evidence and an action.
Practice
Exercise: your own review. Write a one-page review, in the table format above, for an AI feature you use or are building. Which line has the weakest evidence, and what test would strengthen it?
Check your understanding:
- Why does the Campus Helper review plan a Spanish evaluation set?
- What evidence supports the human oversight line?
- Why is the training energy figure only an estimate?
Key Takeaways
Quick reference
| Principle | Example evidence |
|---|---|
| Fairness | Scores by group and language |
| Transparency | AI label, sources cited, "how this works" page |
| Privacy | Redaction, retention limits, data map |
| Reliability | Evaluation set, nightly checks, alerts |
| Human oversight | Review queue, override, off switch |
| Accountability | Named owner, review schedule |
Was this tutorial helpful?