IB Computer Science Machine Learning Types and Hardware: Tutor Prep Guide (12,000 labels, 40x GPU speed-up, 0.6 ms at the edge)
- 2026-11-27
Students say a computer learns by itself, then start guessing when asked whether the model has labels, whether it collects rewards, and whether it runs at the edge or in the cloud. This lesson separates the five families with two questions, then turns hardware choice into arithmetic.
01 Prerequisites (3-minute check)
If any of these fails, fix it before the lesson starts.
| Skill | Quick check | Pass mark |
|---|---|---|
| Percentages | What percentage is 2400 out of 12,000 | Part over whole, times one hundred |
| Unit conversion | How many GiB is 1,806,336,000 bytes | Divide by 1024 three times, about 1.68 |
| Proportion | If compute is 40 times faster, how long does the same training take | The original seconds divided by 40 |
02 Lesson flow (60 minutes)
| Time | Stage | Tutor does | Student does |
|---|---|---|---|
| 0-8 min | Opening check | Ask how a computer knows a photo shows a cat | Write an answer, compare at the end |
| 8-24 min | Five learning families | Labels, rewards, reuse of weights, depth | Sort with two questions |
| 24-36 min | Six real applications | Basket, imaging, language, detection, navigation, sentiment | Match each and justify |
| 36-50 min | The hardware ladder | CPU 5,273.4 s against GPU 131.8 s against TPU 12.0 s | Compute time and ratios |
| 50-57 min | Choose by scenario | 0.6 ms at the edge against a 60 ms round trip | Pick one with three reasons |
| 57-60 min | Exit check | Collect and mark three items | Work independently |
03 Teaching script (read it out)
Scene 1: Five families: two questions, not five names to memorise
Second question: is there a reward? Reinforcement learning does not receive a table at all, but a sequence of actions and scores from an environment. Over 10,000 episodes of 210 steps that is 2,100,000 steps, with the first 6,000 episodes (60 per cent) spent exploring. Third question: are pre-trained weights reused? Transfer learning takes a model trained on 1,280,000 images and fine-tunes it on 2,400 of your own, which is 0.1875 per cent of the data and takes 4.4 seconds. Fourth question: how deep is the network? Deep learning describes layers and parameters (11,000,000 parameters here, 41.96 MiB), not another labelling scheme.
Watch the usual confusion: a medical imaging model is both supervised (radiologists labelled every image) and deep (a convolutional network), because the two words answer different questions.
Student task: for each of the five names, write which question settles it. Anyone who cannot answer for deep learning has memorised names instead of the split.
Scene 2: Six applications: every one needs its label source named
The pattern to state out loud: the computing technique says how, the label source says what the model can learn. Most exam answers name a technique and forget to say where the ground truth came from.
Student task: six application cards against five family labels, and one sentence per pair saying where the labels come from. A pair with no label source is usually unsupervised in disguise.
Scene 3: The hardware ladder: every rung removes one bottleneck
An eight core CPU at 3.2 GHz with 16 operations per core cycle reaches 409.6 billion per second, which needs 5,273.4 seconds, about 88 minutes. A GPU with 5,120 cores at 1.6 GHz and two operations per cycle reaches 16.38 trillion per second and needs 131.8 seconds, 40.0 times faster. Show the split: 640 times more cores, half the clock, two operations per cycle, so the net gain is 40 and not 640. A TPU built for matrix multiplication reaches 180 trillion per second, finishing in 12.0 seconds, a further 11.0 times. Renting that GPU at 8 dollars an hour makes the run cost 0.29 dollars.
Inference is a separate bill. An edge device at 0.5 trillion operations per second runs a 300 million operation model in 0.6 ms per image, which is 1.8 per cent of the 33.3 ms available at 30 fps. Sending the frame to the cloud adds a 60 ms round trip, 7.5 times the 8 ms local hop and about two frames of delay, so braking and defect inspection stay at the edge while training and offline analysis go to the cloud.
FPGA can be reconfigured in the field, which suits algorithms that are still changing. ASIC burns an algorithm into silicon: fastest and most efficient, but fixed once fabricated. An HPC centre links thousands of GPUs for climate and genomics work that no single machine can hold.
Student task: for four scenarios (phone face unlock, cloud training, factory defect inspection, climate modelling), pick a rung and name the bottleneck: latency, compute, power or scale.
04 Question types and worked steps
| Type | Example | Steps | Answer |
|---|---|---|---|
| Classify an application | An application description such as 20,000 labelled reviews sorted into positive and negative | Four questions in order: human labels, rewards, reused weights, network depth. Answer the first that applies | Labels mean supervised; a deep network adds a second sentence |
| Choose hardware with three reasons | A latency ceiling, a data volume, a power budget | Split training from inference, compute time per item and per second, then compare latency, cost and mutability | 0.6 ms at the edge against 60 ms in the cloud; GPU or TPU for training |
| Compute time and speed-up | 6 billion operations per image, 12,000 images, 30 epochs, a given rate | Total operations, divide by the rate, then divide the two times. Keep units consistent | 2.16 quadrillion operations; 5,273.4 s and 131.8 s |
| Compare deep against classical supervised learning | The same classification task with an 18 layer network and with logistic regression | Three points: hand-designed or learned features, data appetite, interpretability | The deep network learns features but needs more data and explains less |
05 Independent practice (3 questions)
| Question | Answer | What to watch |
|---|---|---|
| 12,000 images at 8 seconds of labelling each: how many hours for one person? | 96,000 seconds, or 26.7 hours (about 3.3 working days) | Whether it was divided by 3600 |
| The same training takes 5,273.4 s on the CPU and 131.8 s on the GPU. How many times faster is the GPU? | 40.0 times (5,120 cores against 8, but clock and per-cycle operations must be included) | Whether only the core count was divided |
| Pre-training used 1,280,000 images and fine-tuning used 2,400. What percentage is the fine-tune set? | 0.1875 per cent, about one in five thousand | Whether the smaller number was divided by the larger |
06 Common mistakes and what to say
| Mistake | Student writes | Say this |
|---|---|---|
| Treating deep learning as a fifth parallel label | Saying deep learning is neither supervised nor unsupervised | Deep learning describes how many layers the network has. This X-ray model has 12,000 labelled images, so it is supervised and deep at the same time. Both answers are right; they answer different questions. |
| Assuming unsupervised learning needs no data | Saying unsupervised means no data preparation | Unsupervised only means no labels; the features still have to be complete. With 6.0 per cent of test scores missing, the clusters will follow the gaps. |
| Choosing hardware by price alone | Saying the cloud is expensive so it must be best | Ask where inference runs. A phone needs 0.6 ms, so it runs at the edge; one training run costs 0.29 dollars on a rented GPU, which is cheap enough. |
| Taking core count as the speed-up | Dividing 5,120 by 8 and answering 640 times | Cores are 640 times more numerous, but the GPU clock is half the CPU clock, and two operations per cycle bring the net to 40. All three layers must be stated. |
07 Homework (paper, section and question numbers)
- IB Computer Science chapter index — All chapters in this subject
- Data preprocessing: cleaning, feature selection and reduction — The next chapter: three imputations, 78 forward fits, the curse of dimensionality
- Tutor prep guide index — Matching chapters in other subjects
08 Exit check (last 5 minutes)
| Question | Answer | Decision |
|---|---|---|
| Five families | Labels, rewards, reused weights, depth | Answering that a computer learns by itself means replay act one |
| Six applications | A label source for each | A correct pairing with no label source is not enough |
| Hardware choice | 0.6 ms at the edge, 60 ms in the cloud, GPU 40.0 times faster | No three reasons means replay act three |
09 Tutor FAQ
Is A4.1 SL or HL?
A4.1 and A4.4 on ethics are for both levels. A4.2 on preprocessing and A4.3 on approaches are HL only. SL students need the five families, the six applications, the hardware ladder and the ethics debates, but not the metrics in A4.3.
Why do the five families overlap?
They split along different axes: labels (supervised against unsupervised), rewards (reinforcement), reuse of trained weights (transfer), and depth (deep). Because depth is architectural, one model can be deep, supervised and transfer at once.
How many hardware names must be memorised?
Seven: ASIC, FPGA, GPU, TPU, edge device, cloud and HPC. Each needs one scenario and one trade-off: ASIC is fastest but fixed, FPGA is flexible but hard to write, TPU is matrix-specific, GPU is general parallel, edge wins on latency, cloud wins on scale, HPC wins on raw capacity.
Find a tutor — freeTutor Registration →
A TutorZone lesson-prep guide. Written by the TutorZone team; questions and lesson flow are original and are not taken from any school or publisher material.



