…
…
AI Fundamentals · Lesson 20 / 31 · Language models
PreviewIn this lesson you will
You can read the explanation without an account. The exercises and quiz at the end of the lesson are for members.
Two things land in the help desk's inbox on the same morning: a recording said to be in the voice of the campus director ("Campus is closed tomorrow, exams are postponed") and a photo of the dining hall flooded up to the ceiling. Students ask the desk: "Is it true? Should we share it?" Elena hands you both items: "We do not send anything out without verifying it; you write the reply."
In lesson 19 you saw the assistant make up text: the model did not look for the truth, it wrote the continuation that fit the context best. The same idea applies to images and audio, but there it looks far more convincing. We have learned to doubt a piece of writing; we trust our own eyes and ears. "I heard his voice" and "I saw the photo" served as proof for years.
By the end of this lesson you will have two verification cards. For now they are empty; we will fill them in during the lesson.
| Row | Audio recording | Dining hall photo |
|---|---|---|
| Content | The campus director's voice saying "campus is closed tomorrow" | A dining hall flooded to the ceiling |
| Who is the source? | ? | ? |
| Is there another independent source? | ? | ? |
| Do the date and place match? | ? | ? |
| What does the official channel say? | ? | ? |
| Decision and the sentence for students | ? | ? |
In this lesson we do not show a real image or audio file. We give each item as a description card: what you see or hear, where it came from, what is written on it. The people, institutions, and events on the cards are fictional sample data written for this lesson; the method works the same way in real life.
In this lesson you will:
Remember the language model: it learned patterns from a huge amount of text, then produced the likely continuation of the text it was given. In lesson 2 we called these generative systems: systems that produce new content that resembles their examples. Image generating models belong to the same family. They see many images together with descriptions of them and learn the pattern of "what an image that resembles this description looks like." Then, when you give a written request, they build a new image that fits it, step by step.
Audio generating models work in a similar way. Given a few seconds of a person's voice, they can produce new speech that sounds like that person and says sentences they never said. In video, one face can be swapped for another, or lip movements can be fitted to a new voice.
What all of this has in common: the generated content is not a recording of a moment that really happened. A camera records the light in front of it; an image generating model builds a new image that resembles the thousands of images it has seen. However realistic the result, that moment never took place.
Example 1 (outside the case): A lighthouse that does not exist
OutputDescription card
Request: "a lighthouse in the snow, at sunset"
What you see: A red and white striped lighthouse on snow-covered rocks.
The sky is orange and purple; a reflection of light in the lantern glass,
wave foam on the rocks.
Where it came from: A one-sentence request typed into an image generating model.The image is very detailed: the shadows on the snow, the reflection in the glass, the texture of the foam are all in place. But there is no such lighthouse in the world, and that sunset never happened. The model built a new image from patterns it learned from thousands of images that resemble the words in the request.
These tools have many useful uses too: preparing an illustration for a presentation, having a text read aloud for someone with low vision, dubbing a film into another language. The problem is not the tool; it starts when generated content is presented as a real recording. First, let's practice telling how a piece of content may have come about.
Match each item with how it came about.
For each row, pick its match from the list, then check.
When the same tool is used with bad intent, the result is fake content: generated or altered images, audio, or video that show a person saying something they never said or an event that never happened. The aim is usually to deceive: to cause panic, to get money, to damage someone's reputation.
Example 2 (case): The campus director's "voice"
OutputDescription card
What you hear: A 20-second audio recording. A voice that sounds very much like the
campus director: "Campus is closed tomorrow, all exams are postponed."
Where it came from: It is going around a messaging group; nobody knows who sent it first.
A student forwarded it to the desk.The voice is familiar, the intonation is natural, there is even a slight room echo in the background. A few years ago, "I heard the voice" was enough. Today, sentences a person never said can be produced from a few seconds of their voice. If the director's speech at a ceremony is online, finding a voice sample is not hard. So an audio recording alone is not evidence.
The same method is used in scams.
Example 3 (outside the case): A familiar voice, urgent money
OutputDescription card
What you hear: A call from a number you do not know. A hurried voice that sounds very much
like a relative: "I'm in trouble, send money to this account right now, don't tell anyone."Calls like this rush you and say "don't tell anyone," because the scammer's biggest enemy is you stopping and checking another way. What would you do?
A caller from a number you do not know, in a voice that sounds very much like your relative, asks for urgent money. What do you do?
Pick an option and see what happens. There are no points; you can try the other options too.
The second kind of fake content does not even need generation: real content in the wrong context. A real photo taken years ago is shared again as "today" or "in our city." There is no tampering in the photo, but the information it gives is false. This kind is the most common, because it needs no tool; writing a date and a place is enough.
So how do you catch fake content? For a long time, some clues worked: in generated images the hands were distorted, the writing on signs was made of meaningless letters, generated audio sounded robotic. These flaws shrink with every new tool. Today there are generated images that look flawless, and real photos that are blurry and badly shot. So looking at the content is only a first suspicion, not a decision.
Real verification is done not with the content itself but with what surrounds it. We will call this source before content:
1. Stop. Wait before you share; content that rushes you is especially suspect.
2. Who is the source? Who shared it first, and who is this person or institution?
3. Is there an independent second source? You are looking for another source that reports the same event from its own observation.
4. Do the date and place match? Do the weather, season, signs, and shadows fit the time and place described? Has the image been published somewhere else before? For this you can upload the image to a search engine and look for where it appeared earlier; this is called reverse image search.
5. What does the official channel say? If the event concerns an institution, check the institution's own announcement page.
Some content carries an "AI-generated" label, or provenance information that shows how the file was created. This is a good extra clue. But the absence of a label proves nothing: the label may never have been added, may have been removed, or may have been lost in sharing.
Now let's run the audio recording in Example 2 through these steps. Source: unknown, the recording was passed from one group to another. Independent source: no other news, announcement, or email says campus will close. Official channel: the institution's announcement page says "Classes will continue as normal tomorrow." Decision: do not share. Send students not the recording but the official announcement page.
Put the verification steps for an image or audio recording that reached you in order.
Click the lines in order; to undo one you placed wrong, click it in the list below.
Shuffled lines
Your order
Now on to the second item. The photo is very convincing at first glance.
Description card: a photo of a dining hall flooded up to the ceiling. The hands, the writing on signs, the light, and the reflections are perfect; there are no flaws at all. Is this enough to say the image is real?
When you run a reverse image search on the dining hall photo, a surprising result comes up.
Example 4 (case): A flood three years ago
OutputDescription card
What you see: A dining hall flooded to the ceiling; tables floating on the water.
Post: Shared with the text "Our dining hall right now!" on more than 50 accounts.
Reverse image search: The same photo appears in a flood news story from 3 years ago in another city.
Detail: The sign on the wall shows the name of a different school.The photo is real: a dining hall really was flooded. But it is not our dining hall and it is not today. This is the second kind of fake content: wrong context. The thought "if it is a real photo, there is no problem" falls apart here; what misleads students is not the photo, it is the text under it.
Example 5 (outside the case): "Today" at the stadium
OutputDescription card
What you see: A stadium with packed stands, a sunny day,
spectators in t-shirts. Shadows are long and fall toward the east.
Post: "The stadium was packed at today's match!"
Today's weather: Snowy, and the match is in the evening.On a snowy evening there would be no sunny stands and spectators in t-shirts. The date and the context do not fit; most likely a photo from another day is being shared again.
The dining hall photo has been shared on more than 50 accounts. Does that show it is true? It does not. An independent source is a source that relies on its own observation or its own reporter. 50 accounts copying the same post are 1 source, because what they all know comes from the same first post. If a thousand people repeat the same rumor, the rumor has been said once.
The small program below shows the decision rule the desk uses. You do not need to read the code; change two values and watch the decision. source is where the content came from, and confirmations is the number of independent sources reporting the same event.
First raise confirmations from 0 to 2, then change the source value. In which combination does the decision become "shareable"?
Pick a value; predict the output first, then look.
1source = "unknown account"2confirmations = 034official = source == "the institution's official page"5if official and confirmations >= 1:6 print("Decision: shareable.")7elif official or confirmations >= 2:8 print("Decision: wait, do one more check.")9else:10 print("Decision: do not share.")
Decision: do not share.
Faded lines didn't run with this value. If there is an official source and at least 1 independent confirmation together, it is shareable. If only one of them holds (an official source, or at least 2 independent confirmations), one more check is needed. An unknown account with a single confirmation still means do not share.
The rule is a thinking tool, not an exact formula. But it shows two things clearly: content from an unknown account is not shared even with one confirmation, and even an official source alone asks for "one more check." And copy shares never count toward confirmations; 50 copies are 0 confirmations.
In lesson 4 we said the responsibility for an answer that goes to a student belongs to the sender. The same holds for images and audio: if you forward content, you have said it too. A flood photo you share without verifying can worry hundreds of students for nothing; a fake audio recording can damage a person's reputation.
When you generate content yourself, the responsibility is yours as well. Three rules are enough: do not present a generated image as a real event; do not use a real person's voice or face without their permission; say that your content was generated. You will see how to write this disclosure in detail in lesson 27.
Example 6 (case): The desk's poster
OutputDescription card
What you see: The help desk's "Enrollment renewal week" poster. At the top, a cartoon-style
illustration of students carrying books.
At the bottom, in small letters: "Image generated with AI."This is a useful and honest use of the tool: the image does not document an event, it only decorates the poster, and it says plainly that it was generated. The desk also set itself a rule: unverified content is not forwarded to students; the desk's reply always points to the official channel.
Match each behavior with whether it is acceptable.
For each row, pick its match from the list, then check.
The two cards from the start of the lesson are now filled in:
| Row | Audio recording | Dining hall photo |
|---|---|---|
| Content | The campus director's voice saying "campus is closed tomorrow" | A dining hall flooded to the ceiling |
| Who is the source? | Unknown; going around messaging groups | Unknown; more than 50 accounts with the text "our dining hall" |
| Is there another independent source? | No; no other news, announcement, or email | No; all the shares are copies of the same post |
| Do the date and place match? | Could not be verified | No: 3 years ago, another city; a different school's name on the sign |
| What does the official channel say? | Announcement page: "Classes tomorrow as normal" | No flood announcement for campus |
| Decision | Do not share | Do not share |
The sentence for students: "The audio recording going around is not in the institution's announcements; according to the official announcement page, classes tomorrow are normal. The photo was taken 3 years ago in another city."
This reply has neither the recording nor the photo. That is a deliberate choice, because one of the most common mistakes with fake content is a well-meant one.
Is it a good idea to send the audio recording you found to be fake back to the group with "Warning, this is fake!"?
The absence of a label says nothing by itself; the decision still comes from the source.
OutputDescription card
What you see: At night, bright colored lights lined up in the sky above a city.
Post: "Lights seen above the city last night!" from a social media account.
Label: There is no "AI-generated" text.
Reverse image search: The photo does not appear in any news story.
Official channel: Local news sites and the city's account do not mention such an event.No label does not show the photo is real; the label may never have been added or may have been removed. The source is an unknown account, there is no independent confirmation, and the official channel is silent. Decision: do not share.
Verification does not mean rejecting everything; it also lets you spread correct information with confidence.
OutputDescription card
Content: "The library is open until 22:00 this weekend." Going around student groups.
Source: The announcement is published on the institution's official page.
Independent confirmation: The library's own account also gives the same hours, in its own announcement.The source is official and there is one independent confirmation: by the rule in the lesson, the decision is shareable. The desk sends students the link to the official announcement.
The reply that goes to students who ask "Is it true? Should we share it?" It contains neither the recording nor the photo; it gives only the correct information and the official source.
OutputHi, we looked at the two items you asked about.
The audio recording going around is not in the institution's announcements; according
to the official announcement page, classes will continue as normal tomorrow. The
dining hall photo was taken 3 years ago in another city and has nothing to do with
our campus.
Please do not forward the recording or the photo to other groups; you can follow the
announcement page for current information. Help DeskSharing fake content again "to debunk it," or deciding by looking at the content. The thoughts "no flaws, so it is real," "many people shared it, so it is true," and "no label, so it was not generated" all trust the content itself or the crowd. The right way: set the content aside, look at the source, the independent source, the match of date and place, and the official channel; make your decision after that, and share the official source instead of the false content.
Next lesson: Unit 5 is done. You saw how the model is trained, what it cannot know, and why it makes things up; in the unit task you will prepare the assistant's report card. In Unit 6 it is your turn: you will learn to write a good prompt.
Exercises and quiz are for members
This lesson has 6 coding exercises and a 10-question quiz. Sign up free to solve them, save your progress and move on to the next lesson.