It's funny how hard it is to create a sizable text corpus that you are pretty sure is not contaminated by text from the internet. It turns out that using a company's private codebases is one of the most reliable ways to do it.
The openai blog also doesn't make clear how much increasing context length of the models plays a role in lowering perplexity. Perplexity is higher at the start of the context window when the model doesn't have enough context to know whats going on yet. The longer the window, the more easy to predict tokens it has to average away the high cost of the first few. Context lengths have gotten much longer since gpt3.5...
They claim "The primary held-out datasets we’ve been using since GPT-3.5 are sourced from our internal codebase, and those are the numbers reported here." This suggests (to me) that the documents they're evaluating cross-entropy on have stayed context, so the longer context lengths of the newer models don't matter too much.
There is also one more hidden leak that what openai did 4 years back would have leaked into other labs(either through their own experimentation and relearning what openai knew, or transferring through employees to other companie to open source or news like the release of o1 triggered wave of RLVR ideas).
Can't they just buy unfinished books. Approach publishing house, get books that were deemed not good enough to publish but were verified to be written by humans.
I occasionally see people complaining that models have gotten worse at "creative writing" over the past year or so. I don't use models for expressive writing, that seems pretty deranged, so I wrote it off as people on the internet being crazy but maybe they were onto something?
Also, I've heard training mix is not supposed to be zero sum and this seems to contradict that? Yeah it's nonlinear and the are more important things than predicting code but it seems the balance of shit in the model is rather important.
The author used a very very small model, so the zero-sumness in his observations should not be generalised to large models. Intuition is that small models do not have the capacity to learn from 2 disjoint datasets simultaneously, whereas large models with more capacity can.
The tradeoff is inherent, there's only so many weights and only so much information you can encode in them. That total will be higher for larger models, but not infinite, so making the model better in one domain (e.g. coding) will necessarily have to come at the cost of it getting worse in others).
I think models being unable to understand stories is a sign that despite their ability, we're very far from AGI, and for this reason I like testing them on stories.
I write something very ambiguous which is still extremely comprehensible to humans, then see whether they're able to identify which character narrates the different sections, whether it gets the nuances etc., and I see the fact that most models don't as interesting.
Maybe I should try it with Fable and the very most capable models-- I haven't done this, but I don't want to waste my subscription.
My perception in these experiments was that DeepSeek got worse at text comprehension with 4.1 flash. It could well be the data mix, but I also think it's the model architecture itself. Narrower, text perhaps to some degree competing with visual understanding, etc.
An alternative idea is that a single RL environment on ambiguous text understanding could solve this and that's what I've been thinking of trying. I've also been considering architectural solutions, and I think thinking about this problem actually pushes one in directions that are genuinely useful.
> I occasionally see people complaining that models have gotten worse at "creative writing" over the past year or so. [...] maybe they were onto something?
It's primarily because of RLVR + how easy it is to just throw in Python/Lean to train against a set of listed objectives. Sample-wise, the amount of data you can harvest this way will dwarf regular training, and thus inadvertently downrank prose & writing.
Doesn't this mostly just imply that code has lower entropy per token than natural-language text, which is not all that surprising? I hope the held-out test set used for the recent OpenAI graph was constant and representative of the training data for all models.
The test set cannot both be constant and representative of the training data at the same time if the training data is changing.
Essentially, there are three different ways OpenAI could've dropped perplexity on their held-out data:
1. improving their algorithms to get better outputs from the same inputs
2. increasing their inputs to get better outputs
3. focusing on training data that is more similar to the held-out data.
This article is demonstrating the third possibility. Without controlled experiments (that OpenAI has no doubt done but isn't publishing) it's hard to tell how much each of the different strategies contributed.
Don't forget performativity: since they derive their internal code from the models more and more, the held out set becomes more aligned with the model (in general, performativity refers to an optimisation process aimed at modeling a process increasing it's performance by causing the evaluation to be aligned with the optimisation processes biases instead of aligning with the "pure" process. I think the first example of this in the wild is/was black Scholes https://blogit.utu.fi/futuresofscience/2023/05/17/performati... and Moritz Hardt has a bunch of research on it, as well as other researchers trying to design algorithms robust against this effect)
Not an expert, but isn't the current discussion around the likelihood of improved coding models leading to RSI, and safety implications of that? In which case perplexity on a fixed dataset of code is probably still a relevant benchmark.
RSI will result from models specifically trained on ML development. Training on typical software development is not likely to move the needle much, IMO.
It's a reasonable question, but I have no idea what's in the code mix they're using to evaluate, nor how much correlation they're seeing with improvements in the ability of the models to aid ML development. Since the post appears to be fundamentally about the idea of establishing a cross-industry indicator of AI progress, my assumption is that they are assuming the correlation is high.
Nothing material to contribute other than to say I love this. Read the blog post yesterday and also saw the 3blue1brown videos on "compression is intelligence" but you just debased many arguments here.
I do find the audacity of some HNers kind of hilarious, you're trying to go toe-to-toe with one of the inventors of the transformer on the topic of machine learning...
Obviously there is more than one way to lower perplexity. The training process itself is optimizing for lower perplexity (cross-entropy loss). The point of the original OpenAI post is that they are comparing general purpose models across a fixed holdout dataset. Maintaining a good quality true holdout that's representative is the entire game. Since they're looking towards signs of RSI, it makes sense the holdout set is AI training code.
But someone dug out the complexity measures and could make a fabulous blog post! Lower is better! Look how intelligent we are! Now don’t question the benchmarks you silly science folks
It's funny how hard it is to create a sizable text corpus that you are pretty sure is not contaminated by text from the internet. It turns out that using a company's private codebases is one of the most reliable ways to do it.
The openai blog also doesn't make clear how much increasing context length of the models plays a role in lowering perplexity. Perplexity is higher at the start of the context window when the model doesn't have enough context to know whats going on yet. The longer the window, the more easy to predict tokens it has to average away the high cost of the first few. Context lengths have gotten much longer since gpt3.5...
They claim "The primary held-out datasets we’ve been using since GPT-3.5 are sourced from our internal codebase, and those are the numbers reported here." This suggests (to me) that the documents they're evaluating cross-entropy on have stayed context, so the longer context lengths of the newer models don't matter too much.
There is also one more hidden leak that what openai did 4 years back would have leaked into other labs(either through their own experimentation and relearning what openai knew, or transferring through employees to other companie to open source or news like the release of o1 triggered wave of RLVR ideas).
Can't they just buy unfinished books. Approach publishing house, get books that were deemed not good enough to publish but were verified to be written by humans.
but those might also have been published by the author out of pride etc.
Hmm, training the next wave of LLM's on human-written corpora deemed unfit for human consumption?
"If only you could read, what I have read, with your tokenizer"
I occasionally see people complaining that models have gotten worse at "creative writing" over the past year or so. I don't use models for expressive writing, that seems pretty deranged, so I wrote it off as people on the internet being crazy but maybe they were onto something?
Also, I've heard training mix is not supposed to be zero sum and this seems to contradict that? Yeah it's nonlinear and the are more important things than predicting code but it seems the balance of shit in the model is rather important.
The author used a very very small model, so the zero-sumness in his observations should not be generalised to large models. Intuition is that small models do not have the capacity to learn from 2 disjoint datasets simultaneously, whereas large models with more capacity can.
The tradeoff is inherent, there's only so many weights and only so much information you can encode in them. That total will be higher for larger models, but not infinite, so making the model better in one domain (e.g. coding) will necessarily have to come at the cost of it getting worse in others).
I think models being unable to understand stories is a sign that despite their ability, we're very far from AGI, and for this reason I like testing them on stories.
I write something very ambiguous which is still extremely comprehensible to humans, then see whether they're able to identify which character narrates the different sections, whether it gets the nuances etc., and I see the fact that most models don't as interesting.
Maybe I should try it with Fable and the very most capable models-- I haven't done this, but I don't want to waste my subscription.
My perception in these experiments was that DeepSeek got worse at text comprehension with 4.1 flash. It could well be the data mix, but I also think it's the model architecture itself. Narrower, text perhaps to some degree competing with visual understanding, etc.
An alternative idea is that a single RL environment on ambiguous text understanding could solve this and that's what I've been thinking of trying. I've also been considering architectural solutions, and I think thinking about this problem actually pushes one in directions that are genuinely useful.
> I occasionally see people complaining that models have gotten worse at "creative writing" over the past year or so. [...] maybe they were onto something?
It's primarily because of RLVR + how easy it is to just throw in Python/Lean to train against a set of listed objectives. Sample-wise, the amount of data you can harvest this way will dwarf regular training, and thus inadvertently downrank prose & writing.
Doesn't this mostly just imply that code has lower entropy per token than natural-language text, which is not all that surprising? I hope the held-out test set used for the recent OpenAI graph was constant and representative of the training data for all models.
The test set cannot both be constant and representative of the training data at the same time if the training data is changing.
Essentially, there are three different ways OpenAI could've dropped perplexity on their held-out data:
1. improving their algorithms to get better outputs from the same inputs
2. increasing their inputs to get better outputs
3. focusing on training data that is more similar to the held-out data.
This article is demonstrating the third possibility. Without controlled experiments (that OpenAI has no doubt done but isn't publishing) it's hard to tell how much each of the different strategies contributed.
Don't forget performativity: since they derive their internal code from the models more and more, the held out set becomes more aligned with the model (in general, performativity refers to an optimisation process aimed at modeling a process increasing it's performance by causing the evaluation to be aligned with the optimisation processes biases instead of aligning with the "pure" process. I think the first example of this in the wild is/was black Scholes https://blogit.utu.fi/futuresofscience/2023/05/17/performati... and Moritz Hardt has a bunch of research on it, as well as other researchers trying to design algorithms robust against this effect)
Not an expert, but isn't the current discussion around the likelihood of improved coding models leading to RSI, and safety implications of that? In which case perplexity on a fixed dataset of code is probably still a relevant benchmark.
RSI will result from models specifically trained on ML development. Training on typical software development is not likely to move the needle much, IMO.
It's a reasonable question, but I have no idea what's in the code mix they're using to evaluate, nor how much correlation they're seeing with improvements in the ability of the models to aid ML development. Since the post appears to be fundamentally about the idea of establishing a cross-industry indicator of AI progress, my assumption is that they are assuming the correlation is high.
Original discussion on the OpenAI blog post referenced in TFA:
https://news.ycombinator.com/item?id=50601525 (446 comments)
Nothing material to contribute other than to say I love this. Read the blog post yesterday and also saw the 3blue1brown videos on "compression is intelligence" but you just debased many arguments here.
Author here, thank you.
I do find the audacity of some HNers kind of hilarious, you're trying to go toe-to-toe with one of the inventors of the transformer on the topic of machine learning...
Obviously there is more than one way to lower perplexity. The training process itself is optimizing for lower perplexity (cross-entropy loss). The point of the original OpenAI post is that they are comparing general purpose models across a fixed holdout dataset. Maintaining a good quality true holdout that's representative is the entire game. Since they're looking towards signs of RSI, it makes sense the holdout set is AI training code.
Maybe reading and memorizing internet comments is bad for intelligence.. hmmm
Seems like any perplexity benchmark will need to be use a fixed dataset. Better yet, they should show the scores for several different kinds of data.
But someone dug out the complexity measures and could make a fabulous blog post! Lower is better! Look how intelligent we are! Now don’t question the benchmarks you silly science folks