# Multimodal AI Visualization

How a multimodal AI turns text, image patches, audio spectrograms and video frames into vectors and joins them in one shared model to answer a question\.

By DUSK

Topic: Computing, AI &amp; Electronics

[Open the interactive Jig](https://ask.jig.com/j/COjC9CWG1aoa)

## Transcript

### 1. Multimodal AI · 多模态人工智能

A multimodal AI can take in words, pictures, sounds and videos together\. Four streams flow into one shared model\. 多模态AI能同时理解文字、图片、声音和视频：四股数据流汇入同一个模型。

Tap any input on the table to inspect it\. 点击桌上的任一输入即可查看。

### 2. Text Tokens · 文本词元

A tokenizer splits text into small pieces called tokens, often parts of words\. Each token gets an ID number, and the encoder turns it into a list of numbers called a vector\. 分词器把文字切成词元，每个词元先变成编号，再变成一串数字（向量）。

Tokenizer vocabularies hold tens of thousands of pieces, some over 100,000\. 词表常有几万到十几万个词元。

### 3. Image Patches · 图像块

A vision encoder cuts a picture into a grid of small squares called patches\. A 224 × 224 pixel photo becomes 14 × 14 = 196 patches, and each patch becomes one vector\. 视觉编码器把图片切成小方块：224×224像素的图变成196个图像块，每块变成一个向量。

Each 16 × 16 colour patch holds 16 × 16 × 3 = 768 numbers\. 每个16×16彩色块含768个数字。

### 4. Audio Features · 音频特征

Sound is a wiggly wave\. The audio encoder slices it every 10 milliseconds and measures how loud each pitch band is, a picture called a mel spectrogram\. Each slice becomes numbers\. 声音是一条波形。音频编码器每10毫秒切一片，测量各个音高的响度（梅尔频谱），再变成数字。

Speech models such as Whisper hear 16,000 samples per second and use 80 pitch bands\. 例如Whisper每秒采样16000次，使用80个频带。

### 5. Video Frames · 视频帧

A video is a stack of pictures in time\. The model samples a few frames, often one or two per second, encodes each like an image and adds time stamps so the order is kept\. 视频是按时间排列的图片。模型每秒取一两帧，像图片一样编码，并标上时间顺序。

Sampling slowly saves effort but can miss very fast motion\. 采样太慢会错过快速动作。

### 6. One Shared Space · 共享空间

A small projector resizes every vector to the same length\. Then all of them line up in one sequence inside the shared model, where attention lets each piece look at every other piece\. 投影器把所有向量变成同样长度，排成一列送入共享模型，注意力机制让它们互相"看见"。

The lines show attention: which pieces the model looks at together\. 连线代表注意力。

### 7. Inspect the Vectors · 查看编码

Choose a modality, or tap an input on the table, to open its vector card\. Real vectors hold hundreds to thousands of numbers; the bars show a few\. 选择一种模态或点击输入，查看它的向量卡片。真实向量有成百上千个数字，这里只画出几个。

The numbers shown are illustrative examples\. 图中数字仅为示意。

### 8. Ask a Question · 多模态问答

Press Ask to send a question about the clip: "What is the dog doing?" Watch attention link the words to the picture, the sound and the frames, then the answer appears one token at a time\. 按"提问"，看文字如何连接图像、声音和画面，答案逐个词元生成。

This question\-answering run is a simulation of how a model works\. 这是模拟演示。

### 9. Why It Matters · 意义

Because every input becomes numbers in one shared space, the model can connect a bark to a picture of a dog\. That lets it describe photos, follow videos and answer questions about what it sees and hears\. 一切输入都变成同一空间里的数字，模型才能把叫声和小狗的图片联系起来。

The encoders learned these numbers from huge numbers of examples; nobody wrote them by hand\. 这些数字是从大量例子中学来的。
