Perplexity and Intelligence
本文为原文前 6,000 字符的节选翻译,完整内容请查看原文。
Perplexity and Intelligence
困惑度与智能
By Jakub Pachocki, Chief Scientist at OpenAI 作者:Jakub Pachocki,OpenAI 首席科学家
From afar, it might seem like modern AI is built similarly to how software has been built in previous decades: with a diverse set of techniques targeting specific capabilities. There are indeed a variety of methods, but rather than designing something from scratch, they are mostly harnessing the intelligence coming from a much simpler and less interpretable process: training a compressor (or, equivalently, predictor) on a very large corpus of data.
从远处看,现代人工智能的构建方式似乎与过去几十年的软件开发类似:通过一系列针对特定能力的不同技术来实现。虽然确实存在多种方法,但它们并非从零开始设计,而是主要利用了一种更简单且更难解释的过程所产生的智能:在海量数据语料库上训练一个压缩器(或者等效地,预测器)。
I believe tracking the pace of progress on training better compressors is key to understanding the arc of advances in AI. In this post, I argue for establishing perplexity (or, equivalently, cross-entropy loss) as a metric to compare between model developers and inform shared safety standards. As a first step, I provide more transparency into pretraining progress at OpenAI. Publishing our internal perplexity measurements took some consideration; it gives competitors a clearer picture of where we stand, but that concern is outweighed by the urgency of establishing shared safety measures across the industry. We at OpenAI hope for this to be a step towards building a shared scientific basis for future pacing efforts.
我相信,追踪训练更优压缩器的进度是理解人工智能进步轨迹的关键。在这篇文章中,我主张将困惑度(或等效的交叉熵损失)确立为衡量模型开发者之间差异并为共享安全标准提供参考的指标。作为第一步,我将提高 OpenAI 预训练进展的透明度。发布我们内部的困惑度测量数据经过了一番考量;这会让竞争对手更清楚地了解我们的现状,但建立行业共享安全措施的紧迫性超过了这一顾虑。我们 OpenAI 希望这能成为为未来进度评估建立共享科学基础的一步。
A simplified, but fundamentally informative, view of AI development is that first, one builds a large computer, then uses it to pretrain a model (compressor) on a large unstructured dataset, then applies a variety of techniques—like prompting, finetuning or reinforcement learning—in different contexts to elicit the latent capabilities of that model. Algorithmic progress can blur the distinction between training phases, but we can still separate the creation of the AI with hard-to-predict emergent capabilities (which I earlier dubbed “an alien mind”) and the subsequent targeted elicitation.
一种简化但本质上具有启发性的人工智能发展观是:首先构建一台大型计算机,然后利用它在大型非结构化数据集上预训练一个模型(压缩器),接着在不同情境下应用各种技术——如提示工程、微调或强化学习——来激发该模型的潜在能力。算法的进步可能会模糊训练阶段之间的界限,但我们仍然可以将具有难以预测的涌现能力的 AI 的创建(我之前称之为“异类思维”)与随后的针对性激发区分开来。
The primary way we measure progress on this key “intelligence substrate” has remained remarkably constant over the years—we have been tracking the perplexity of the models on a held-out dataset. Perplexity measures how well a model predicts the next token on average; lower perplexity means better predictions. The plot opening this blog post shows how this metric evolved for our models starting with GPT-3.5.
多年来,我们衡量这一关键“智能基质”进展的主要方式保持得非常稳定——我们一直在追踪模型在留出数据集上的困惑度。困惑度衡量的是模型平均预测下一个标记的好坏;困惑度越低,意味着预测越准确。本篇博文开头的图表展示了从 GPT-3.5 开始,我们的模型在这一指标上的演变过程。
The range of capabilities of models that are largely described by this one metric is stunning. Setting the new perplexity state-of-the-art on older datasets, GPT-2 was arguably the first model capable of consistently formulating coherent paragraphs of text. The next major leap, GPT-3, was capable of learning in context, given a few examples of a task. GPT-3.5, at a log-perplexity of ~0.99 on our current main evaluation dataset, was capable of fluent conversation and formed the basis for the original ChatGPT. GPT-4, at ~0.91, was proficient at utilizing chain-of-thought reasoning productively, which motivated the subsequent targeted elicitation of this capability and the creation of modern reasoning models. Now, as we have reached losses below 0.8, we have seen the emergence of transformative capabilities in fields like cybersecurity and mathematics. I want to reemphasize that it was not at all clear a priori that these capabilities would appear once those precise perplexity thresholds are met—they can fundamentally be seen as emergent latent capabilities from progress on this one metric.
由这一单一指标所描述的模型能力范围令人惊叹。GPT-2 在旧数据集上创下了新的困惑度记录,可以说是第一个能够持续生成连贯文本段落的模型。下一个重大飞跃是 GPT-3,它能够在给定少量任务示例的情况下进行上下文学习。GPT-3.5 在我们当前的主要评估数据集上的对数困惑度约为 0.99,它能够进行流畅的对话,并构成了最初 ChatGPT 的基础。GPT-4 的对数困惑度约为 0.91,能够高效地利用思维链推理,这促成了随后对该能力的针对性激发以及现代推理模型的创建。现在,随着损失降至 0.8 以下,我们已经看到了网络安全和数学等领域变革性能力的涌现。我想再次强调,在达到这些精确的困惑度阈值之前,这些能力是否会出现并不明确——它们本质上可以被视为在这一指标上取得进展所带来的涌现出的潜在能力。
As AI advances very rapidly, the scope and way in which we measure downstream capabilities may change quickly. It would make little sense to evaluate GPT-2 and GPT-3 on most modern benchmarks; and the benchmarks used then were largely saturated around GPT-4. In contrast, I believe looking at progress on pretraining is likely to stay informative.
随着人工智能的飞速发展,我们衡量下游能力的方式和范围可能会迅速改变。在大多数现代基准测试中评估 GPT-2 和 GPT-3 意义不大;而当时使用的基准测试在 GPT-4 阶段已基本饱和。相比之下,我相信关注预训练的进展可能会持续提供有价值的信息。
A particular change in the pace of progress comes from the increasing contribution of AI to its own development. The most commonly discussed metrics revolve around AI augmenting and replacing human researchers in all stages of the development cycle; with an ultimate inflection point seen at “full recursive self-improvement”, where the process would be entirely automated with no human oversight. Apart from considering such a state as something we should obviously avoid for the sake of maintaining human control, I find this general framing misses something crucial. There is a potential step change that may come from AI participation in one key part of the development process: algorithmic research on pretraining.
进展速度的一个特殊变化来自于人工智能对其自身发展的贡献日益增加。最常讨论的指标围绕着人工智能在开发周期的所有阶段增强并取代人类研究人员;其最终的转折点被视为“完全递归自我改进”,即整个过程完全自动化,无需人类监督。除了考虑到为了保持人类控制而显然应避免这种状态外,我发现这种普遍的框架遗漏了一些关键点。人工智能参与开发过程的一个关键部分可能会带来潜在的阶跃式变化:即预训练的算法研究。
We have recently witnessed unprecedented acceleration in another domain. For more than a year, we have been posing open problems in mathematics to our models as one of the ways of evaluating them. Once we upgraded to a model of log-perplexity ~0.76, it started producing groundbreaking results. For many of us that have previously worked in mathematics and adjacent fields, seeing the resolutions to questions we’ve long thought about coming out of the model one after another in a single Slack thread felt deeply surreal. Having experienced that allows us to extrapolate—such a sudden transformation is plausible in deep learning research too. While this field relies more on experimentation, there is a long history of simple insights being missed for years; and so as soon as 2027 we could conceivably see a similar avalanche of fundamental pretraining advancements. While I expect AI will also significantly contribute to progress on alignment and monitoring, I think that progress is unlikely to be fast enough to allow the full potential acceleration in pretraining.
我们最近在另一个领域见证了前所未有的加速。一年多来,我们一直将数学领域的开放性问题作为评估模型的方式之一。当我们升级到对数困惑度约为 0.76 的模型时,它开始产生突破性的成果。对于我们许多曾在数学及相关领域工作过的人来说,看到我们长期思考的问题在 Slack 线程中被模型一个接一个地解决,感觉非常超现实。有了这种经历,我们可以推断——这种突变在深度学习研究中也是可能的。虽然该领域更依赖实验,但历史上有很多简单的见解被长期忽视的先例;因此,最早到 2027 年,我们完全可能看到类似的预训练基础性进展的爆发。虽然我预计人工智能也将为对齐和监控方面的进展做出重大贡献,但我认为这些进展的速度不太可能快到足以释放预训练中全部的潜在加速能力。
Given that the main way new surprising capabilities emerge is by progress on compression, a measure rooted in perplexity could give us a shared benchmark for general intelligence, regardless of the degree of automation of the development process. Extrapolating from recent progress, we should expect further transformative capabilities as we enter the ~0.68-0.7 log-perplexity window. I don’t know what those capabilities will be, and we may not be testing for them.
鉴于新的惊人能力涌现的主要方式是压缩技术的进步,一个植根于困惑度的指标可以为我们提供一个通用的智能共享基准,无论开发过程的自动化程度如何。根据近期进展推断,当我们进入对数困惑度约 0.68-0.7 的区间时,我们应该会期待进一步的变革性能力。我不知道这些能力会是什么,而且我们可能还没有针对它们进行测试。