LLM 全栈学习
第 20 章

未来展望 What's Coming Next

课程接近尾声,这一章瞥一眼「正在到来」的能力。第一,模型会迅速多模态化:不只处理文本,还能原生地听、说(音频)和看、画(图像)。原理上其实没变——把音频(频谱切片)和图像(图块 patch)也切成 token,塞进上下文窗口,用同一套方法训练。第二,智能体(agents):今天我们还是把单个任务「端到盘子上」交给模型;未来模型会作为 agent,连贯地、能纠错地执行长时间、多步骤的任务——耗时几十秒、几分钟乃至几小时,由人来监督(类比工厂里的「人机比」,数字世界会有「人–智能体比」)。第三,模型会越来越普遍、隐形地嵌入到工具里(比如你的电脑 / IDE),并开始能代替你执行操作(键盘鼠标)。第四,还有大量研究待做,比如「测试时学习 / 思考」:现在模型部署后参数固定,唯一的「学习」是上下文窗口里的 in-context learning;而上下文是有限且宝贵的资源,面对多模态、长时间任务会迅速膨胀,光靠「把上下文拉长」并不能真正扩展,需要新思路。整体保持克制:这是预览,不是炒作。 As the course nears its end, this chapter glances at capabilities that are 'coming down the pipe.' First, models will rapidly go multimodal: not just text, but natively hearing and speaking (audio) and seeing and painting (images). In principle nothing fundamental changes — you tokenize audio (slices of the spectrogram) and images (patches) too, drop those tokens into the context window, and train with the same approach. Second, agents: today we still hand a single task to the model on a silver platter; in the future models will act as agents that coherently, error-correctingly carry out long, multi-step jobs — taking tens of seconds, minutes, or even hours, under human supervision (by analogy with the factory 'human-to-robot ratio,' the digital world will have a 'human-to-agent ratio'). Third, models will become more pervasive and invisible, integrated into tools (your computer / IDE), and will begin to take actions on your behalf (keyboard and mouse). Fourth, much research remains, e.g. test-time learning / 'thinking': today a deployed model's parameters are fixed, and the only 'learning' is in-context learning inside the context window; but the context window is a finite, precious resource that balloons for multimodal, long-running tasks, and simply 'making the context longer' won't truly scale, so new ideas are needed. The tone stays grounded: this is a preview, not hype.

讲完了模型是怎么训练出来的、它们究竟是什么,我们来看看一些未来的能力——大致「正在到来」的东西。这一章不是承诺,更像是几个方向上的预览。 Having covered how these models are trained and what they actually are, let's look at some future capabilities — roughly what's 'coming down the pipe.' This chapter isn't a promise; it's more a preview of a few directions.

你会注意到的第一件事,是模型会很快变得多模态(multimodal)。我们前面讲的一切都只关于文本,但很快就会有不只处理文本的 LLM:它们能原生地操作音频(于是能听、能说),也能操作图像(于是能看、能画)。这些能力的开端我们其实已经看到了,而关键在于——它会原生地发生在语言模型内部,从而支持更自然的对话。 The first thing you'll notice is that models will quickly become multimodal. Everything we've covered concerned text, but soon there will be LLMs that handle more than text: they'll operate natively over audio (so they can hear and speak) and over images (so they can see and paint). We're already seeing the beginnings of this, and the key is that it will happen natively inside the language model, enabling more natural conversation.

💡 为什么多模态在原理上「不算什么新东西」?因为基线做法是:把音频和图像也切成 token,然后套用我们前面讲过的完全相同的方法。音频可以看频谱图(spectrogram)的切片,把每一片切成 token;图像可以切成一个个图块(patch),把每个图块切成 token。于是「一段音频 / 一张图」就只是一串 token——把文本、音频、图像的 token 流交织在一起,放进同一个上下文窗口,用同一套训练流程同时处理。它不是范式革命,只是「多加几种 token」。 Why is multimodality 'nothing fundamentally new' in principle? Because the baseline approach is: tokenize audio and images too, then apply the exact same methods we've already covered. For audio, take slices of the spectrogram and tokenize each slice; for images, cut them into patches and tokenize each patch. So 'a clip of audio / an image' is just a stream of tokens — interleave text, audio, and image token streams into one context window and handle them all simultaneously with the same training pipeline. It's not a paradigm shift, just 'adding a few more kinds of tokens.'

第二个方向是智能体(agents)。现在大多数用法,是我们把一个个单独的任务「端到盘子上」交给模型:「请帮我解决这个任务。」模型把这个小任务做完,但要把许多任务组织成连贯的执行、去完成一份真正的「工作」,仍然得靠我们自己。今天的模型还达不到那种能力——它们还无法长时间地、连贯且能纠错地把一连串任务串起来。但这一点在持续改善,未来我们会看到所谓 agent:它们随时间执行任务,你来监督、查看它们的工作,它们时不时回来汇报进展。任务不再只占几秒钟的响应,而是几十秒、几分钟甚至几小时。 The second direction is agents. Most usage today hands the model a single task on a silver platter: 'please solve this task for me.' The model does that little task, but stringing many tasks into a coherent execution to perform a real 'job' is still up to us. Today's models aren't capable of that yet — they can't coherently, error-correctingly chain tasks together over long stretches of time. But this keeps improving, and in the future we'll see agents: they perform tasks over time, you supervise and watch their work, and they check back now and then to report progress. Tasks will no longer take just a few seconds of response, but tens of seconds, minutes, or even hours.

但正如我们反复强调的,模型并非万无一失,所以这一切都需要监督。在工厂里,人们会谈论自动化的「人机比」(human-to-robot ratio);在数字世界里,我们大概也会谈论「人–智能体比」(human-to-agent ratio)——人会更多地变成 agent 任务的「监督者」,而不是每一步的执行者。 But as we've stressed repeatedly, models are not infallible, so all of this will require supervision. In factories, people talk about the 'human-to-robot ratio' for automation; in the digital world we'll likely talk about a 'human-to-agent ratio' — humans becoming more the supervisors of agent tasks, rather than the executors of every step.

第三,一切都会变得更普遍、更隐形——直接集成进各种工具里,无处不在。与之相关的,是模型开始能「使用计算机」:替你执行操作。今天的模型大多还不能代你采取行动,但已有早期例子(比如能接管键盘、鼠标、替你点击操作的功能)。这意味着模型不只是回答你,而是真的能在你的环境里动手做事。 Third, everything will become more pervasive and invisible — integrated directly into tools, everywhere. Related to this, models will begin to 'use the computer': taking actions on your behalf. Most models today still can't act for you, but there are early examples (features that can take over the keyboard and mouse and click through actions for you). This means a model that doesn't just answer you, but actually does things inside your environment.

最后是一句关于研究的总评:这个领域还有大量工作可做。一个例子是「测试时训练 / 学习」(test-time training)。回想我们讲过的两大阶段:先是训练阶段,调好参数让模型把任务做好;参数一旦确定就固定下来,部署做推理时模型不再改变,也不会从它正在做的事情里继续学习。它唯一可用的「测试时学习」,就是上下文窗口里的「上下文学习」(in-context learning)——靠那个可动态调整的上下文。 Finally, a general comment on research: there's still a lot of work to do in this field. One example is test-time training / learning. Recall the two big stages we covered: first the training stage, where we tune the parameters so the model does the task well; once the parameters are set, they're fixed, and at deployment / inference the model no longer changes or learns from what it's doing. Its only available 'test-time learning' is in-context learning inside the context window — relying on that dynamically adjustable context.

📝 这和人类不同:人确实会在做事中学习,尤其睡觉时大脑还在更新「参数」——而当前模型和工具里并没有等价物。为什么这事会变得重要?因为上下文窗口是有限且宝贵的资源。一旦开始处理很长的、多模态的任务(比如把视频塞进去),token 窗口会膨胀得极快——不是几千、几十万,而是远超于此。目前我们手里唯一的招,就是「把上下文窗口拉得更长」;但单靠这一招,恐怕无法真正扩展到长时间、多模态的任务,所以这些方向上需要新的想法。 This differs from humans: people do learn while doing things, especially in sleep, when the brain updates its 'parameters' — and there's no equivalent of that in current models and tools. Why does this matter? Because the context window is a finite, precious resource. Once we tackle very long, multimodal tasks (e.g. feeding in video), the token window balloons extremely fast — not thousands or hundreds of thousands, but far beyond. Right now our only trick is to 'make the context window longer'; but that alone likely won't scale to genuinely long-running, multimodal tasks, so new ideas are needed in these areas.
  • 多模态:模型很快能原生处理音频(听/说)和图像(看/画),而不只是文本。
  • 原理不变:把音频(频谱切片)、图像(图块)也切成 token,交织进同一上下文窗口,用同一套方法训练。
  • 智能体(agents):从「单个任务端到盘子上」走向连贯、能纠错地执行长时间多步骤任务,耗时几十秒到数小时。
  • 需要监督:模型并非万无一失;数字世界会出现「人–智能体比」,人更多是监督者。
  • 更普遍、更隐形:集成进工具(电脑/IDE),并开始能「使用计算机」、代你执行键鼠操作。
  • 仍有大量研究:如「测试时学习」——当前模型部署后参数固定,唯一的学习是上下文窗口里的 in-context learning。
  • 上下文是有限宝贵的资源:多模态长任务会让 token 窗口暴涨,单靠「拉长上下文」难以真正扩展,需要新思路。
  • Multimodal: models will soon natively handle audio (hear/speak) and images (see/paint), not just text.
  • Same principles: tokenize audio (spectrogram slices) and images (patches) too, interleave into one context window, train the same way.
  • Agents: from 'a single task on a silver platter' toward coherently, error-correctingly executing long, multi-step jobs taking tens of seconds to hours.
  • Supervision needed: models aren't infallible; the digital world will have a 'human-to-agent ratio,' with humans more as supervisors.
  • More pervasive and invisible: integrated into tools (computer/IDE), and beginning to 'use the computer' — taking keyboard/mouse actions for you.
  • Still much research: e.g. test-time learning — today a deployed model's parameters are fixed, and the only learning is in-context learning in the context window.
  • The context window is a finite, precious resource: long multimodal tasks make the token window explode, and simply 'making the context longer' won't truly scale — new ideas are needed.

📝 本章测验

为什么说让 LLM 处理音频和图像「在原理上不算根本性变化」?Why is having LLMs handle audio and images 'not a fundamental change' in principle?

课程预览的「智能体(agents)」与今天典型用法的区别是什么?How do the previewed 'agents' differ from today's typical usage?

关于「测试时学习」,以下哪项描述了当前模型的状况?Regarding test-time learning, which describes today's models?