Explain it
Part 5 of 5. You trained a model, tested it and tried to fool it. Now work out where its judgment came from, then write it up on your model card, just below. Nobody gave the model a rule about capital letters, numbers or the word "you". Everything it knows, it took from 840 example headlines.
Here is what those examples were. They come from a study published in 2016. The clickbait half was collected from viral sites such as BuzzFeed, Upworthy and ViralNova, and the other half from news outlets such as The New York Times, The Guardian and The Hindu. The study's authors had volunteers judge the headlines from the viral sites, at least three people for each one, and went with the majority. The volunteers agreed most of the time, not every time.
Answer these, on paper or out loud with a partner:
- A careful news site writes its headlines In Title Case. What will the model probably say about its stories? Is that fair to the site?
- The headlines are from 2016 and earlier. What has changed since then in how headlines and video titles are written? Did something newer get past it?
- People decided what counts as clickbait in this data, and they did not always agree. Is there a headline you and a partner would label differently?
- The simple rule scored 88 percent and the model about 96 on the same 240 headlines. Name one advantage of each.
- When the model said it was very sure, how often was it right? When should a person double-check its answer?
- Think of a problem at your school or in your town that a model like this could help with. What examples would it learn from? Who would label them, and who might it get wrong?
What to take away: a model learns by guessing and being corrected, it is graded on examples it has never seen, and it can only be as good as the examples it learned from. That is as true of the largest AI systems as of the one you just trained.
The guessing game
This is what happened while you watched the score climb. The model is a list of 406,016 numbers, called parameters, and they start out random. Training is a guessing game: the model reads a headline and guesses its label, then it is shown the real label, and every one of its numbers is nudged slightly toward the answer that would have been right.
One step is 32 headlines, and a run is 1,500 steps, so it makes 48,000 guesses over its 840 training headlines and sees each one about 57 times. Nothing else happens. There is no list of clickbait words inside it, only numbers that were nudged 1,500 times.
The held-out score
Before training started, 240 headlines were set aside, 120 of each kind. The model never trains on them, so they work like an exam made of questions it has never seen. Someone who memorized last year's answer key can ace that same test without understanding anything, and new questions show what was actually learned.
Guessing scores 50 percent. In our two measured runs the model was at 87 and 92 percent by step 250, and finished with 233 and 229 of the 240 right, about 96 percent. In one of those runs it was right on all 60 of the headlines it was most sure about, so its mistakes gather where it is unsure.
After the hour
Train your own. Done early, or want more? Train a model on examples you write yourself. Pick two categories whose texts use different words, such as sports headlines and science headlines, and write at least 10 examples of each. More is better: with about 30 of each a model this small mostly memorizes, and it starts to do well on examples it has never seen at around 200. The text classifier page opens the studio ready for your examples and explains how to enter them.
Try another job. The same studio trains a spam filter and a language detector, and tests each one on examples it never saw.
People who do this for a living. What you did this hour is real work. Data annotators label examples like the 840 headlines. Machine learning engineers train models and test them on examples held back, as you did. Trust and safety teams decide what counts as spam or clickbait on the apps you use, and check what their filters get wrong. Each of them asks your part 5 questions: what did the model learn from, and who could it get wrong?
Learn more. Day of AI, from MIT, has free AI lessons for every grade. Elements of AI, from the University of Helsinki, is a free online course for older students and adults.
Questions
How long does it take?
About an hour for all five parts. The training itself takes four to five minutes on a recent laptop: our two measured runs on a Mac took 293 and 304 seconds. Older and low-power devices take longer, and about ten seconds into a run the bar at the top of the studio shows how long that device has left.
What do I need?
A laptop, Chromebook or tablet with a current browser: Chrome or Edge 113 or later, Safari 26, or Firefox 141 or later on Windows. Those can train on the device's graphics chip, and a small badge at the top of the studio says GPU once training starts. If it says CPU, it trains on the processor, which is slower: a full run took about 4.5 minutes on a fast laptop processor in our test, and takes longer on devices with fewer or slower cores. On a slow device the studio gives the run 750 or 500 steps instead of 1,500 and says so under the progress bar; those shorter runs scored about as well in our tests. If the bar shows more time than you have, let it reach about step 300, press Pause, and carry on with part 3 in the Generate tab. In our two measured runs the model was already at 87 and 92 percent by step 250.
Do I need an account?
No. The model trains, answers and stays inside your browser tab. Nothing you type is sent anywhere, and the site never asks for your name or email address. Accounts exist only for saving models online and are for people 16 and older; this activity does not use one. The privacy policy says what is recorded about a visit.
Is this real AI, like ChatGPT?
It is the same kind of model at a tiny scale: a GPT, a transformer that reads text in order. Yours has 406,016 parameters and learned one job from 840 headlines. GPT-3, published in 2020, has 175 billion parameters, about 430,000 times as many, and learned from 570 GB of text. Both learned the same way: by guessing and being corrected.
Can I keep the model I trained?
Yes. It is saved in this browser automatically, and the Runs tab lists it so you can open it again later on the same device. Download saves it as a file you can load back into the studio.
How do I hand in my model card?
Press Print or save as PDF to print it, or to save it as a file from the print window, or press Copy as text and paste it into a document or your class's assignment. The site never receives it. It stays in this tab until you close the tab, so a reload will not wipe it.
Can I do this with a keyboard or a screen reader?
Yes. Every control works from the keyboard and shows a focus outline. When training starts or finishes, focus moves to the next control you need. A screen reader announces the start of the run, a progress update every tenth of the way with the model's latest score, the model's answer to each headline you type, and the final score.
Something is not working. Who can help?
Email hello@gonano.tech and say what happened, which device and browser you are using, and whether the badge at the top of the studio says GPU or CPU.
I am a teacher. Is there a lesson plan?
Yes. The classroom lesson is this activity as one teacher-led class period, with a warm-up to run before students open a device, discussion questions, an optional second period, and what to check on your classroom's devices the day before. At the top of the plan you can copy this activity's link for your students or assign it in Google Classroom.