# Poster 30156

- Kind: Poster
- Talk page and recording: https://iclr.cc/virtual/2025/poster/30156

> Transcript of the talk's recording (session_asr), made by speech recognition or taken from the host's captions. It may contain errors. The words are the speakers'; listen to the recording on the talk's page before quoting it.

Salutations! My name is Friedrich and today I'm happy to be here to talk to you about the hyperfitting phenomenon which is a counterintuitive phenomenon we observe in pre -trained transformers trained on the next token prediction and in this publication we mainly focus on greedy decoding meaning that we pick the most
Probable token at any given time step. Of course, this has been observed to result in very repetitive and dull outputs. For example, on the right here you see LOMA 3.1 given a certain context and then rolling out using greedy decoding resulting in a very repetitive text. The same model however, post-hyperfitting yields a way more nuanced and less repetitive output.
Similarly, in image generation we can take something like image GPT, feel the context and we will get very repetitive and dull outputs using this sampling method. However, using the hyperfitted version of this model it yields way more interesting and fluent results.
So what is hyperfitting? Well, what we do during pre-training of these models is that we collect huge data sets and we try to achieve the best validation loss to generalize as we can.
Hyperfading disregards this notion completely and it fine-tunes this pre-trained model on a very small data set until we get almost zero training loss and we simply disregard the validation loss. So the curves end up looking like this. Training loss goes down as validation loss skyrockets up into this stratosphere.
Of course, the thing that actually matters is what will these models generate. So we evaluate the models on generating continuations to a given context. Then we compare them against the original continuation from that context. Human annotators then look at these two continuations in context and they decide do they prefer A, do they prefer B or are they equally good.
In any scenario where the language model has produced a continuation which is at least as good as the original continuation, it gets a score. Comparing the hyperfitted models against their original models, we see first that the perplexity of the original models are way, way better and the bigger the model, the lower perplexity.
But actually comparing the generated outputs, we see that the hyperfit models are significantly better, especially in the scenarios of the really small models, where a tiny LOMA 1 billion parameter model suddenly performs on par with the LOMA 3.1 70 billion parameter. So a 70 times billion model and a 1 billion parameter model.
If we also include more sophisticated sampling methods like nucleus sampling, top P sampling, we see that the hyperfitted models, although using greedy decoding only, even outperforms these models. And you have the tiny llama model again performing almost on par with a deep seek 7b model, right?
So something weird is happening here. And maybe you're thinking, okay, maybe we're simply repeating data that was in the hyperfitting dataset. Turns out this is not the case. Very rarely do we actually repeat long sequences from the training data. And even if we block the model from actually repeating, regurgitating that data, we still perform almost as good as if we didn't block that.
Something else recently discovered here is that doing this hyperfitting thing results in models producing very very narrow distributions where the probability is almost always assigned to a single token. We also do other investigations like okay how many samples can or do you actually need to include to achieve this hyperfitting phenomenon?
And finally, we have some reasoning around this. Like, does it mean perhaps that by producing these narrow distributions that the model needs to learn to output a good candidate in the top token? Well, this and much more you will find in our paper. So I hope that you read it and please feel free to reach out.
