降低困惑度而不扩展规模
Lowering Perplexity Without Scaling

原始链接: https://micjm.com/blog/lowering-perplexity-without-scaling/

OpenAI 的博客文章将随时间下降的模型困惑度呈现为通用智能衡量标准,但困惑度取决于所预测的文本。该图表实际上测量的是固定代码语料上的困惑度——意味着它可能仅仅反映训练数据中代码比例增加,而非通用能力提升。一篇测试 160M 模型在训练中使用不同代码比例的论文证实了这一点:更高的代码比例增加了非代码文本上的困惑度。虽然代码占比较高的模型可能更擅长代码,但 OpenAI 的文章缺乏限定说明。值得注意的是,他们确实承认对于 GPT-2 和 GPT-3,代码预测困惑度难以代理通用能力,但未能将这一警告扩展到其他模型。

Hacker News 新 | 过去 | 评论 | 提问 | 展示 | 工作 | 提交 登录 降低困惑度而不扩展 ( micjm.com ) 4 分 由 qlte 1 小时前 | 隐藏 | 过去 | 收藏 | 讨论 帮助 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系 搜索:
相关文章

原文

Today, OpenAI released a blog post showing the perplexity of their models over time. The drop is impressive, and the claim is that perplexity itself can be a universal measure of intelligence.

OpenAI’s chart of base model log-perplexity falling from GPT-3.5 to an internal model

After seeing this chart, the thought that came to mind was: perplexity against what? Perplexity is a measure of how well token likelihoods predict the actual next token. Perplexity is meaningless without knowing what text the model is trying to predict.

The answer was buried in a footnote. The chart is based on models predicting a fixed corpus of code.

So the problem here is obvious. Could this chart just be a reflection of OpenAI models being increasingly trained on code?

Keeping the model the same but changing the training mix

I set about investigating this. My plan was to find an open source repo with a tiny model and a documented training set, then monkey with it. While getting started, my agent found an existing paper that already did this. (The agent was Astra 6.2, funny enough. It must have low perplexity on this kind of tomfoolery.)

The authors of the paper ran five training sets on a 160M model, varying only the proportion of the training data that was code. Here is what they found:

As code rises from 25% to 75% of training data, log-perplexity on held-out GitHub code falls from 1.213 to 1.041

Spoiler: the “internal model” here is the same 160M model with 75% of the training corpus being code.

As expected, if you look at perplexity on non-code text, it increases dramatically:

Two crossing lines, relative to the 50/50 mix: as code share rises, log-perplexity falls when tested on code and rises when tested on web text

Conclusions

Obviously, the model here with 75% code in the training corpus almost certainly is smarter at code. The point here isn’t that OpenAI’s chart measures nothing, only that their post should have a lot more qualifications [1].

[1] Funny enough, OpenAI does qualify in a single footnote about GPT-2 and GPT-3, saying “how well they predict code is a poor proxy for their general capabilities.” Why they didn’t expand this to the rest of the models is anyone’s guess.

联系我们 contact @ memedata.com