Sign in to watch. It takes one tap.
8 two-minute lessons are ready in this course. The first one is free; a Google sign-in keeps your streak, progress and quiz history.
Continue with GoogleWhat exactly is AI vision? Let's try to understand. In a simple way. Here is the thing.
A computer never sees a photo. It sees a grid of pixels, and each pixel is just three numbers. Red, green, blue. So a normal photo is millions of numbers.
And here is the catch. One number alone means nothing. A dark pixel could be fur, shadow, or coffee. The meaning lives in patterns across the grid.
Modern vision models chop the image into small squares called patches. Usually sixteen by sixteen pixels each. A typical photo becomes a few hundred patches. Each patch gets flattened into one long list of numbers, then mapped to a vector called a patch embedding.
Basically, a visual token. One problem. Chopping loses the layout. So the model adds a position embedding to every patch.
Now it knows what sits where. Then comes self attention. Every patch looks at every other patch and asks, are we related? Pointy ear here, whiskers there.
Together, that starts to smell like cat. Stack many attention layers, and features build up. Early layers catch edges and textures. Deeper layers catch shapes, then whole objects.
This design is the Vision Transformer, or ViT. Older models, CNNs, slid tiny filters across the image instead. Same goal, different mechanics. So, seeing for an AI means this.
Pixels to patches, patches to embeddings, attention finds the patterns. Numbers in, meaning out. Quick check now. One question is coming up.
Let's see if it clicked.
How does CLIP connect words and pictures? Let's try to understand. In a simple way. Here is the problem.
A dog photo and the words, a photo of a dog, mean the same thing. But to a computer they look completely unrelated. CLIP's idea is simple. Turn both into points in one shared space.
If an image and a caption mean the same thing, their points should sit close together. So CLIP has two parts. An image encoder turns a picture into a vector, a list of numbers. A text encoder does the same for a caption.
Now, how close is close? CLIP measures the angle between two vectors. That's cosine similarity. Matching pairs should score high, mismatched pairs should score low.
Training makes that happen. Take a big batch of image and caption pairs. Pull each true pair together, push every wrong pairing apart. This is called contrastive learning.
And the scale is wild. CLIP was trained on four hundred million image and caption pairs from the internet. No hand labels. The captions were the labels.
Here is the payoff. To classify a photo, write captions like, a photo of a cat, a photo of a truck. Then pick the closest one. No retraining.
That's zero-shot classification. That shared space powers a lot. Text to image search. And image generators use CLIP style embeddings to check if a picture matches the prompt.
So, CLIP is two encoders and one shared space. Pull matching words and pictures together, and meaning becomes measurable. Quick check now. One question is coming up.
Let's see if it clicked.
How does a diffusion model work? Let's try to understand. In a simple way. Here is the wild part.
Every AI image starts as pure random noise. Just static, like an old TV with no signal. No picture at all. So how do you teach that?
Simple. Go backwards. Take a real photo, and add a little noise to it, again and again, until only static remains. That is the forward process.
Now train a network on one small job. Look at a noisy photo, and predict exactly what noise was added to it. Once it can undo one step, you chain them. Start from pure static, remove a little predicted noise, repeat maybe fifty times, and a cat appears.
Notice something. The network never paints anything. It only predicts noise. You subtract that guess, and a slightly cleaner image falls out.
This is called denoising. Why so many steps? Because each step only trusts a tiny change. Small careful moves keep the image on track.
One giant jump would just smear it. And your text prompt? It is fed into every denoising step. So the model does not just clean noise.
It cleans it toward a cat in a hat. One more trick. Full pixels are expensive. So Stable Diffusion runs all of this in a small compressed space, the latent space, and decodes pixels at the end.
So that is diffusion. Learn to destroy images with noise, then run the film in reverse. Static goes in, a picture comes out. Quick check now.
One question is coming up. Let's see if it clicked.
How does a vision-language model work? Let's try to understand. In a simple way. You already have language models that read and write text.
And you have vision encoders that turn a picture into numbers. A vision-language model simply wires the two together. Here is the core trick. The encoder squeezes the image into a short list of vectors.
The model then treats those vectors as extra tokens. Visual tokens, sitting right beside your words. One catch though. The encoder speaks its own numeric language, and the LLM speaks another.
So a small bridge, called a projector, translates image vectors into the LLM's embedding space. Now ask it, what breed is this dog? The model reads one long sequence. Some tokens came from your words, some came from the pixels.
Same attention, same machinery. Training happens in two stages. First, the projector learns from millions of image caption pairs. Then comes visual instruction tuning: real questions about real pictures, with good answers to imitate.
Notice the output side. A vision-language model only generates text. It can describe a scene, read a chart, explain a meme. But it never draws.
Images in, words out. And there is a famous weak spot. The encoder compresses the picture hard, so tiny details wash out. Ask about small text or exact counts, and it may confidently guess wrong.
So, a vision-language model is an LLM that accepts visual tokens. Encode the image, project it into word space, and the model just reads it like language. Quick check now. One question is coming up.
Let's see if it clicked.
How does AI turn speech into text, and back? Let's try to understand. In a simple way. Start with sound.
Speech is a pressure wave in the air. A microphone samples it thousands of times per second, so audio becomes a long list of numbers. That raw list is too messy to learn from. So we squeeze it into a spectrogram.
A picture of which frequencies are loud at each moment. Now the model. An encoder reads the spectrogram and builds a summary. Then a decoder writes text from it, one token at a time.
Whisper works this way. Here is the thing. It's not matching sounds to letters. The decoder uses context.
Recognize speech, said fast, sounds like wreck a nice beach. Context settles it. How did it learn this? From pairs.
Hundreds of thousands of hours of audio, each matched with its transcript. It learns to map one onto the other. Now flip it. Text to speech.
Same road, opposite direction. The model takes words and must invent a wave that sounds human. It usually happens in two steps. First, predict a spectrogram from the text.
Then a second network, called a vocoder, turns that picture back into an actual waveform. And the hard part isn't the words. It's prosody. Rhythm, pauses, pitch.
Modern systems learn that too, and can clone a voice from a few seconds of audio. So, one loop. Wave to spectrogram to text. And text to spectrogram to wave.
Both directions pass through the same picture of sound. Quick check now. One question is coming up. Let's see if it clicked.
How does video generation work? Let's try to understand. In a simple way. Here is the obvious idea.
A video is just a stack of images. Thirty frames per second. So why not generate each frame on its own, and play them back? Try it, and it looks awful.
Each frame comes out slightly different. The face shifts, the shirt changes color, objects pop in and out. It flickers like a broken dream. So the real problem is not making frames.
It is making frames that agree with each other. Researchers call this temporal consistency. Modern video models fix it by generating all the frames together. They start from one big block of noise, the whole clip at once, and denoise it step by step.
But raw video is huge. So first, an autoencoder compresses the clip into a small latent space. It squeezes both space and time. The model works on that compact block.
Inside, the clip gets cut into little spacetime patches. Small cubes of pixels that span a few frames. Sora made this idea famous. Then a transformer runs attention across all of them.
Each patch looks at patches in every other frame. That is how frame thirty knows what frame one decided. And your text prompt conditions every denoising step, so the surfer stays the same surfer on one continuous wave. So here is the gist.
Video generation is diffusion in a compressed space, over spacetime patches, with attention tying every frame to every other. Consistency is the whole game. Quick check now. One question is coming up.
Let's see if it clicked.
What exactly is a world model? Let's try to understand. In a simple way. Think about catching a ball.
You don't solve physics equations. Your brain just runs a quick simulation, and predicts where the ball will land. That inner simulator is your world model. In AI it's the same idea.
A world model learns how an environment behaves. Give it the current situation, plus an action, and it predicts what happens next. And that action part is the key. Plain video generation just continues a clip.
A world model asks, what if? Press left, the prediction turns left. Brake, and it slows down. But predicting raw pixels is wasteful.
So first, each observation gets compressed into a small latent state. The dynamics model then predicts the next latent state, not the next image. Much cheaper. Now the payoff.
An agent can practice inside its own learned simulation. Systems like Dreamer train a policy almost entirely in imagination. Thousands of trial runs, all dreamed. Why does that matter?
Because real trials are slow, and often dangerous. A robot can't crash ten thousand times. But inside the world model, failure is free. One catch though.
The simulation is learned, so it has errors. And errors compound over long rollouts. Sometimes the agent even exploits a glitch in its own dream. So, a world model is a learned simulator.
Compress the world into a state, predict how actions change it, and let the agent rehearse there before acting for real. Quick check now. One question is coming up. Let's see if it clicked.
What exactly is an any-to-any model? Let's try to understand. In a simple way. Most AI systems today are pipelines.
One model listens, another thinks, a third speaks. They pass notes along, and detail gets lost at every handoff. Here is the dream. One single model that reads text, sees images, hears audio, and answers in any of them.
No handoffs. One brain for every sense. The trick is simple to say. Turn everything into tokens.
Text already comes as tokens. Images get chopped into patch tokens. Audio gets compressed into little sound codes. Mix them all into one sequence, and feed it to one transformer.
Inside, a token is just a token. The model doesn't care which sense it came from. Researchers call this early fusion. Train on all senses from day one, in one shared space.
That's the idea behind omni models like GPT-4o and Gemini. Output works the same way. The model can predict image tokens or audio tokens, not just words. A decoder then renders them into a picture, or a voice.
Why bother? Because nothing gets lost in translation. Speak to a pipeline, and your tone dies in the transcript. An omni model hears it directly.
It's hard, though. Senses compete for the same weights, so text skills can slip. And there is far more text data than paired audio or video. Balance is everything.
So, one model, every sense. Turn each sense into tokens, train one transformer on all of them, and let it answer in whichever sense fits. Quick check now. One question is coming up.
Let's see if it clicked.