我的征尘是星辰大海。。。
The dirt and dust from my pilgrimage forms oceans of stars...
-------当记忆的篇章变得零碎,当追忆的图片变得模糊,我们只能求助于数字存储的永恒的回忆
作者:黄教授
手机视频列表
从文字瓶颈到视觉输入卡帕西设想的完整逻辑链
视频
音频
原始脚本
从文字瓶颈到视觉输入,卡帕西设想的完整逻辑链。 卡帕西大模型输入全视觉化的观点,看似激进,实则是对文字 token 瓶颈的根本性突破。 当我们把文字编码的偶然性、字典的局限性、Transformer 的位置编码优势、语义 token 的中间语言属性与自回归的底层逻辑串联起来,会发现这不是空想。 而是多模态大模型发展的必然方向。 DeepMind CoCa 的突破更是从工程上验证了这条路的可行性。 一,影子,文字 token 的先天缺陷,编码偶然性与关联难题。 我们习以为常的文字 token 本质是人为编码的偶然产物,这恰恰是大模型的隐形瓶颈。 文字的数字编码,如 UTF-8,GB 2312,完全是人为规定的,与语义无关。 比如我的 UTF 8编码是是 0XE。 68891,门的编码是0XE4BBAC,两者在数字层面毫无关联,但在语义上却常组合成我们的高频搭配。 当这些编码映射到 Transformer 的 embedding 空间时,模型需要花费极大精力强行学习编码与语义的关联,比如让我和门的向量靠近,而这种后天学习的效率远低于先天先天自带语义关联的视觉信号。 举个更直观的例子,中文猫和英文 Cat 指向同一语义。 但它们的 UTF 8编码完全不同,模型需要靠海量平行语料才能把两者的向量拉到相近位置。 而猫的图片不管对应哪种语言,视觉特征天生就包含毛茸茸、有尾巴、会喵喵叫的语义关联,模型无需额外学习就能识别,这就是 是视觉输入的先天优势,语义与载体天然绑定,无需跨越编码偶然性的鸿沟。 二、关键支撑,Transformer 的位置编码与图像的天然适配。 Transformer 的另一大成功关键,位置编码恰好与图像的特性完美契合,这为视觉输入提供了技术基础。 Transformer 的自注意力机制需要位置编码来区分 token 的顺序。 比如,他吃苹果和苹果吃他。 而文字的位置编码是人工添加的正弦余弦型号,需要模型额外学习位置与语义的关系。 但图像的位置信息是天生的,每个像素都有固定的空间坐标,如100、200的像素代表图像左上角区域。 这种空间位置本身就包含语义,比如猫的头部在图像上方,身体在中间。 模型处理图像时,无需人工添加位置编码,直接通过像素的空间关系就能理解语义,效率远超文字。 DeepC OCR 的突破正是这一逻辑的工程验证。 它没有像传统 OCR 那样依赖文字模板匹配,而是把文本图像当做带空间语义的视觉信号,通过 Transformer 的位置 指编码捕捉笔画的空间顺序。 比如南字的横竖撇捺位置,再映射到语义向量。 这使得它能压缩模型体积,保留精度的同时缩小参数规模,还能识别生僻字、手写体等不在传统字典里的文本。 本质是用视觉的空间语义。 替代了文字的人工编码,证明了视觉输入的高效性。 三、核心矛盾,字典的上限诅咒,从小众语言到未知符号的困境。 卡帕西之所以主张输入全视觉化,核心是要摆脱字典依赖的枷锁。 字典本质是人为划定的语义边界,存在两大无解问题。 一、字典有上限,语义无边界。 拼音语言,如英文的字典需要收录数十万单词。 小众语言,如撒哈拉 拉不足语言的字符更是难以全覆盖,一旦遇到不在字典里的符号,如生僻字、自定义图标,模型就会输出 ANK,完全无法处理。 二、多语言适配成本高,支持一种新语言就需要重新构建该语言的字典,训练对应的 tokenizer。 相当于给模型重新教一套语言体系,成本随语言数量线性增加,无法实现真正的多语言通用。 而视觉输入天然不存在字典上限,不管是拉丁字母、中文汉字,还是不足符号、自定义图标,在模型眼中都是带语义的视觉信号,无需提前收入到字典。 比如 DeepCocoa 2能识别手写的生僻字,四个火不是因为它在字典里,而是模型通过四个火的空间排列推断出这是一个表意字符,再结合上下文输出语义。 这正是无字典的优势,语义由视觉信号直接决定,而非由人工字典划定。 四、逻辑闭环,语义 token 跨模态的中间语言,破解无字典输出难题。 语义 token 的本质是跨模态通用中间语言,类似 Windows Runtime 的中间语言。 Windows 用这种中间语言兼容 C Visual Basic 等多种高级语言。 语义 token 则用统一载体承载图像、文字、声音的核心语义,脱离具体形是束缚,具体表现为三个层面。 一、生成逻辑,自回归依然成立,对象从文字变成语义。 无字点不影响自回归的底层机制。 模型处理图像时,会按视觉特征语义 token 下一个语义 token 的线性顺序生成。 比如看到人往南走却指向北边的图像,先生成行动的语义 token。 再生成目标的语义 token 最后生成相反的语义 token 形成完整的语义序列。 这个过程中, Softmax 计算的是当前语义向量与语义 token 库的相似度,而非与文字字典的相似度,概率分配逻辑完全通顺。 二、输出灵活,按需映射,不依赖固定字典。 语义 token 的输出无需绑定文字,对内,模型可直接输出语义 token 向量,驱动其他多模态模块,比如给图像生成模块输出行动与目标相反的语义向量,生成对应的场景图。 给语音模块输出开心的语义向量,生成笑声。 对外,若需要人类可读形式,再调用语义语言映射层。 想输出中文,就映射成南辕北辙。 想输出阿拉伯语,就映射成对应的阿拉伯短语。 这个映射层无需重新训练模型,只需用少量语义 token 语言配对数据微调,成本极低。 三、多模态互通,语义是统一语言。 不管是视觉、图像、听觉、声音还是文字,最 最终都会转化为语义 token,在模型内部用算。 比如猫的图片、猫的叫声、中文猫、英文 cat 都会映射到同一个猫的语义 token。 这种语义统一让多模态协作变得简单。 模型看到猫的图片生成猫的语义 token,既能转成文字猫。 也能生成猫的叫声,还能控制机械臂做出摸猫的动作。 这正是卡帕西设想的输入全视觉化的终极价值,用视觉打破语言壁垒,让模型真正理解世界的语义,而非文字的编码。 五、结论,视觉输入不是替代文字,而是 释放语义。 卡帕西的观点并非要消灭文字,而是要让模型摆脱文字编码与字典的束缚,回归语义本身。 文字只是人类交流的工具,不是语义的唯一载体。 当模型能直接从视觉中获取语义,并用语义 token 作为中间语言运算时,它就 能突破小众语言无法覆盖、未知符号无法识别、多模态协作困难的瓶颈,真正实现理解世界而非理解文字。 Deepseek OCR 的工程突破,Transformer 与视觉位置编码的适配,语义 token 的中间语言属性,再加上自回归机制的底层支撑,共同构成了输入全视觉化的完整逻辑链。 这不是空想,而是大模型从文字智能迈向世界智能的必经之路。 未来,当我们画一张草图、拍一张照片,模型就能直接输出对应的语义序列,并按需转成文字、生成图像或执行动作时,我们会发现卡帕西的设想本质是让 AI 用人类感知世界的方式,视觉去理解世界,这才是人工智能的终极形态。
修正脚本
从文字瓶颈到视觉输入,卡帕西设想的完整逻辑链。 卡帕西大模型输入全视觉化的观点,看似激进,实则是对文字 token 瓶颈的根本性突破。 当我们把文字编码的偶然性、字典的局限性、Transformer 的位置编码优势、语义 token 的中间语言属性与自回归的底层逻辑串联起来,会发现这不是空想。 而是多模态大模型发展的必然方向。 DeepMind CoCa 的突破更是从工程上验证了这条路的可行性。 一、引子,文字 token 的先天缺陷,编码偶然性与关联难题。 我们习以为常的文字 token 本质是人为编码的偶然产物,这恰恰是大模型的隐形瓶颈。 文字的数字编码,如 UTF-8,GB 2312,完全是人为规定的,与语义无关。 比如我的UTF-8编码是0xE68891,门的编码是0XE4BBAC,两者在数字层面毫无关联,但在语义上却常组合成我们的高频搭配。 当这些编码映射到 Transformer 的 embedding 空间时,模型需要花费极大精力强行学习编码与语义的关联,比如让我和门的向量靠近,而这种后天学习的效率远低于先天自带语义关联的视觉信号。 举个更直观的例子,中文猫和英文 Cat 指向同一语义。 但它们的 UTF 8编码完全不同,模型需要靠海量平行语料才能把两者的向量拉到相近位置。 而猫的图片不管对应哪种语言,视觉特征天生就包含毛茸茸、有尾巴、会喵喵叫的语义关联,模型无需额外学习就能识别,这就是视觉输入的先天优势,语义与载体天然绑定,无需跨越编码偶然性的鸿沟。 二、关键支撑,Transformer 的位置编码与图像的天然适配。 Transformer 的另一大成功关键,位置编码恰好与图像的特性完美契合,这为视觉输入提供了技术基础。 Transformer 的自注意力机制需要位置编码来区分 token 的顺序。 比如,他吃苹果和苹果吃他。 而文字的位置编码是人工添加的正弦余弦信号,需要模型额外学习位置与语义的关系。 但图像的位置信息是天生的,每个像素都有固定的空间坐标,如100、200的像素代表图像左上角区域。 这种空间位置本身就包含语义,比如猫的头部在图像上方,身体在中间。 模型处理图像时,无需人工添加位置编码,直接通过像素的空间关系就能理解语义,效率远超文字。 DeepC OCR 的突破正是这一逻辑的工程验证。 它没有像传统 OCR 那样依赖文字模板匹配,而是把文本图像当做带空间语义的视觉信号,通过 Transformer 的位置编码捕捉笔画的空间顺序。 比如南字的横竖撇捺位置,再映射到语义向量。 这使得它能压缩模型体积,保留精度的同时缩小参数规模,还能识别生僻字、手写体等不在传统字典里的文本。 本质是用视觉的空间语义,替代了文字的人工编码,证明了视觉输入的高效性。 三、核心矛盾,字典的上限诅咒,从小众语言到未知符号的困境。 卡帕西之所以主张输入全视觉化,核心是要摆脱字典依赖的枷锁。 字典本质是人为划定的语义边界,存在两大无解问题。 一、字典有上限,语义无边界。 拼音语言,如英文的字典需要收录数十万单词。 小众语言,如撒哈拉以南语言的字符更是难以全覆盖,一旦遇到不在字典里的符号,如生僻字、自定义图标,模型就会输出 ANK,完全无法处理。 二、多语言适配成本高,支持一种新语言就需要重新构建该语言的字典,训练对应的 tokenizer。 相当于给模型重新教一套语言体系,成本随语言数量线性增加,无法实现真正的多语言通用。 而视觉输入天然不存在字典上限,不管是拉丁字母、中文汉字,还是未知符号、自定义图标,在模型眼中都是带语义的视觉信号,无需提前收录到字典。 比如 DeepC OCR 2能识别手写的生僻字,四个火不是因为它在字典里,而是模型通过四个火的空间排列推断出这是一个表意字符,再结合上下文输出语义。 这正是无字典的优势,语义由视觉信号直接决定,而非由人工字典划定。 四、逻辑闭环,语义 token 跨模态的中间语言,破解无字典输出难题。 语义 token 的本质是跨模态通用中间语言,类似 Windows Runtime 的中间语言。 Windows 用这种中间语言兼容 C Visual Basic 等多种高级语言。 语义 token 则用统一载体承载图像、文字、声音的核心语义,脱离具体形式束缚,具体表现为三个层面。 一、生成逻辑,自回归依然成立,对象从文字变成语义。 无字典不影响自回归的底层机制。 模型处理图像时,会基于视觉特征按线性顺序先生成语义 token,再生成下一个语义 token。 比如看到人往南走却指向北边的图像,先生成行动的语义 token。 再生成目标的语义 token 最后生成相反的语义 token 形成完整的语义序列。 这个过程中, Softmax 计算的是当前语义向量与语义 token 库的相似度,而非与文字字典的相似度,概率分配逻辑完全通顺。 二、输出灵活,按需映射,不依赖固定字典。 语义 token 的输出无需绑定文字,对内,模型可直接输出语义 token 向量,驱动其他多模态模块,比如给图像生成模块输出行动与目标相反的语义向量,生成对应的场景图。 给语音模块输出开心的语义向量,生成笑声。 对外,若需要人类可读形式,再调用语义语言映射层。 想输出中文,就映射成南辕北辙。 想输出阿拉伯语,就映射成对应的阿拉伯短语。 这个映射层无需重新训练模型,只需用少量语义 token 语言配对数据微调,成本极低。 三、多模态互通,语义是统一语言。 不管是视觉、图像、听觉、声音还是文字,最终都会转化为语义 token,在模型内部运算。 比如猫的图片、猫的叫声、中文猫、英文 cat 都会映射到同一个猫的语义 token。 这种语义统一让多模态协作变得简单。 模型看到猫的图片生成猫的语义 token,既能转成文字猫。 也能生成猫的叫声,还能控制机械臂做出摸猫的动作。 这正是卡帕西设想的输入全视觉化的终极价值,用视觉打破语言壁垒,让模型真正理解世界的语义,而非文字的编码。 五、结论,视觉输入不是替代文字,而是释放语义。 卡帕西的观点并非要消灭文字,而是要让模型摆脱文字编码与字典的束缚,回归语义本身。 文字只是人类交流的工具,不是语义的唯一载体。 当模型能直接从视觉中获取语义,并用语义 token 作为中间语言运算时,它就能突破小众语言无法覆盖、未知符号无法识别、多模态协作困难的瓶颈,真正实现理解世界而非理解文字。 Deepseek OCR 的工程突破,Transformer 与视觉位置编码的适配,语义 token 的中间语言属性,再加上自回归机制的底层支撑,共同构成了输入全视觉化的完整逻辑链。 这不是空想,而是大模型从文字智能迈向世界智能的必经之路。 未来,当我们画一张草图、拍一张照片,模型就能直接输出对应的语义序列,并按需转成文字、生成图像或执行动作时,我们会发现卡帕西的设想本质是让 AI 用人类感知世界的方式,以视觉去理解世界,这才是人工智能的终极形态。
英文翻译
Starting from the text bottleneck to visual input, the complete logical chain envisioned by Karpathy. Karpathy's view of fully visual input for large models may seem radical, but it is actually a fundamental breakthrough to the text token bottleneck. When we string together the contingency of text encoding, the limitations of dictionaries, the positional encoding advantages of Transformers, the intermediate language nature of semantic tokens, and the underlying logic of autoregression, we find this is not a fantasy. Rather, it is the inevitable direction for the development of multimodal large models. The breakthrough of DeepMind's CoCa has further verified the feasibility of this path from an engineering perspective. 1. Introduction: Inherent defects of text tokens – encoding contingency and association problems. The text tokens we take for granted are essentially accidental products of human encoding, which is precisely the invisible bottleneck of large models. Digital encodings of text, such as UTF-8 and GB 2312, are entirely man-made and unrelated to semantics. For example, the UTF-8 encoding of "我" is 0xE68891, and "们" is 0xE4BBAC. The two have no numerical correlation, but semantically they often combine to form the high-frequency phrase "我们". When these encodings are mapped into the Transformer's embedding space, the model must expend considerable effort to forcibly learn the relationship between encoding and semantics—for instance, making the vectors of "我" and "们" closer. Yet this learned association is far less efficient than visual signals that inherently carry semantic associations. A more intuitive example: the Chinese word "猫" and the English word "cat" refer to the same concept. But their UTF-8 encodings are completely different. The model requires massive parallel corpora to bring their vectors close together. In contrast, images of cats, regardless of language, inherently contain visual features like fur, a tail, and meowing—semantic associations that the model can recognize without additional learning. This is the inherent advantage of visual input: semantics are naturally bound to the carrier, eliminating the need to bridge the gap of encoding contingency. 2. Key support: The natural compatibility between Transformer's positional encoding and images. Another key success factor of Transformers—positional encoding—perfectly aligns with the characteristics of images, providing the technical foundation for visual input. The self-attention mechanism of Transformers requires positional encoding to distinguish the order of tokens. For example, "他吃苹果" (He eats apples) and "苹果吃他" (Apples eat him) differ in meaning. For text, positional encoding is artificially added sine and cosine signals, requiring the model to learn the relationship between position and semantics. But for images, positional information is innate: each pixel has a fixed spatial coordinate—for instance, the pixel at (100, 200) represents the upper-left region of the image. This spatial position itself carries semantics; for example, a cat's head is in the upper part of the image, its body in the middle. When processing an image, the model does not need artificial positional encoding—it directly understands semantics through the spatial relationships of pixels, which is far more efficient than text. The breakthrough of DeepC OCR is an engineering verification of this logic. Unlike traditional OCR that relies on text template matching, it treats text images as visual signals with spatial semantics, capturing the spatial order of strokes via Transformer's positional encoding. For example, the positions of horizontal, vertical, left-falling, and right-falling strokes in the character "南" are then mapped to semantic vectors. This allows it to compress model size while preserving accuracy, reduce parameter scale, and recognize rare characters, handwriting, and other text not found in traditional dictionaries. In essence, it replaces artificial text encoding with visual spatial semantics, proving the efficiency of visual input. 3. Core contradiction: The curse of dictionary upper limit—from minority languages to unknown symbols. The reason Karpathy advocates for fully visual input is fundamentally to break free from the shackles of dictionary dependence. A dictionary is essentially an artificially defined semantic boundary, and it has two unsolvable problems. First, dictionaries have an upper limit, but semantics have no boundaries. Pinyin-based languages, such as English, require dictionaries to contain hundreds of thousands of words. Minority languages, such as those in sub-Saharan Africa, are even harder to cover comprehensively. Once a symbol not in the dictionary—like a rare character or custom icon—appears, the model outputs "[UNK]" and is completely unable to process it. Second, multilingual adaptation is costly. Supporting a new language requires rebuilding that language's dictionary and training a corresponding tokenizer. This essentially teaches the model a whole new language system, with costs increasing linearly with the number of languages, making true multilingual universality impossible. Visual input, on the other hand, naturally has no dictionary upper limit. Whether Latin letters, Chinese characters, unknown symbols, or custom icons, in the model's eyes they are all visual signals carrying semantics, without needing to be pre-registered in a dictionary. For example, DeepC OCR 2 can recognize the handwritten rare character "𪚥" (four "fire" characters stacked) not because it is in the dictionary, but because the model infers from the spatial arrangement of the four "fire" components that it is an ideographic character, and then outputs its semantics using context. This is the advantage of a dictionary-free approach: semantics are directly determined by visual signals, not by a man-made dictionary. 4. Logical closure: Semantic tokens as cross-modal intermediate language—solving the dictionary-free output problem. The essence of semantic tokens is a cross-modal universal intermediate language, similar to the intermediate language in Windows Runtime. Windows uses this intermediate language to be compatible with multiple high-level languages like C# and Visual Basic. Semantic tokens use a unified carrier to represent the core semantics of images, text, and sounds, free from specific forms. This manifests in three aspects: A. Generation logic: Autoregression still holds; the object changes from text to semantics. A dictionary-free approach does not affect the underlying mechanism of autoregression. When processing an image, the model generates semantic tokens sequentially based on visual features, first generating one semantic token, then the next. For example, when seeing an image of a person walking south but pointing north, the model first generates a semantic token for the action, then a semantic token for the target, and finally a semantic token for the opposite direction, forming a complete semantic sequence. In this process, Softmax computes similarity between the current semantic vector and the semantic token library, not with a text dictionary. The probability distribution logic is entirely coherent. B. Flexible output: On-demand mapping, not dependent on a fixed dictionary. The output of semantic tokens does not have to be tied to text. Internally, the model can directly output semantic token vectors to drive other multimodal modules—for example, outputting a semantic vector for "action opposite to target" to an image generation module to produce a corresponding scene, or outputting a "happy" semantic vector to a speech module to generate laughter. Externally, if human-readable form is needed, the model invokes a semantic-to-language mapping layer. To output Chinese, it maps to "南辕北辙". To output Arabic, it maps to the corresponding Arabic phrase. This mapping layer does not require retraining the model; it can be fine-tuned with a small amount of semantic token–language paired data at very low cost. C. Multimodal interoperability: Semantics as a unified language. Whether vision (images), hearing (sound), or text, all are ultimately converted into semantic tokens for internal computation within the model. For example, an image of a cat, the sound of a cat meowing, the Chinese word "猫", and the English word "cat" all map to the same semantic token for "cat". This semantic unification simplifies multimodal collaboration. When the model sees an image of a cat and generates the semantic token for "cat", it can not only convert it to the word "cat" but also generate a meowing sound, or even control a robotic arm to perform a petting motion. This is the ultimate value of Karpathy's envisioned fully visual input: using vision to break language barriers, allowing the model to truly understand the semantics of the world, not just the encoding of text. 5. Conclusion: Visual input does not replace text but releases semantics. Karpathy's view is not to eliminate text, but to free models from the constraints of text encoding and dictionaries, returning to semantics themselves. Text is merely a tool for human communication, not the sole carrier of semantics. When models can directly acquire semantics from vision and use semantic tokens as an intermediate language for computation, they can overcome the bottlenecks of minority language coverage, unknown symbol recognition, and difficult multimodal coordination—truly achieving an understanding of the world rather than an understanding of text. The engineering breakthrough of DeepSeek OCR, the compatibility between Transformers and visual positional encoding, the intermediate language nature of semantic tokens, and the underlying support of the autoregressive mechanism together form the complete logical chain for fully visual input. This is not a fantasy, but the inevitable path for large models to evolve from text intelligence to world intelligence. In the future, when we draw a sketch or take a photo, and the model directly outputs the corresponding semantic sequence—converting it on demand into text, generating an image, or executing an action—we will realize that Karpathy's vision essentially allows AI to perceive the world the way humans do: using vision to understand the world. That is the ultimate form of artificial intelligence.
back to top