Skip to content
PodSubs
ShowsPeopleGuestsJobsNewsEvents
More
BlogPodCred
Menu
ShowsPeopleGuestsJobsNewsEventsBlogPodCredNetworksSign in
Join nowSign in
  • Shows
  • People
  • Jobs
  • News
  • More
    • Guests
    • Events
    • Blog
    • PodCred
    • Networks
    Join nowSign in

Mechanical Dreams

Mechanical Dreams artwork

Neural Neural Scaling Laws

Mar 31, 202619 minAudio
ShareXLinkedInFacebookWhatsAppEmail

In this episode: • Introduction to Downstream Scaling Laws: Linda and Professor Norris introduce the paper and discuss the limitations of traditional parametric scaling laws for predicting downstream task performance. • The Token-Level Secret: Linda explains how NeuNeu uses token-level probabilities instead of average validation loss to capture critical distributional signals. • Architecture Deep Dive: The hosts break down the model components, detailing the CNN loss encoder and the Transformer time-series extrapolator using compute gaps. • Results and Zero-Shot Generalization: Norris is won over by the 38 percent error reduction and NeuNeu's impressive ability to generalize to unseen models like the Pythia family. • Ranking Models and Future Outlook: The episode concludes with a discussion on quantile regression, practical model ranking, and the dream of foundation models for training dynamics.

Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.

Transcript

From the show.

## Introduction to Downstream Scaling Laws

Linda: Welcome back to Mechanical Dreams, the podcast where we dive into the gears and circuits of machine learning and natural language processing. I am your co-host Linda, and as always, I am joined by Professor Norris. Norris: Hello everyone! Great to be here. Linda, you always bring the most intriguing papers to our desk. What do you have for us today? Linda: Today, we are looking at a paper from Michael Y. Hu and colleagues from NYU, titled Neural Neural Scaling Laws. Yes, you heard that right, a double neural. Norris: Neural Neural Scaling Laws? I have to admit, my initial reaction to that title is a bit of skepticism. We have been using simple power laws and logistic functions to predict scaling for years. Kaplan and Hoffmann showed us that loss scales beautifully with compute and data. Why complicate it with a neural network? It feels a bit like throwing deep learning at a simple curve-fitting problem just for the sake of it. Linda: That is a totally fair reaction, Professor! And you are right, for aggregate metrics like pretraining or validation loss, simple power laws are remarkably useful. But this paper argues that the translation from training loss to downstream task performance is far more complex. Norris: Ah, downstream tasks. That is where the rubber meets the road. I suppose it is true that a model can have excellent validation loss but still struggle on specific zero-shot evaluations or benchmarks. Linda: Exactly! When we look at individual downstream tasks, they exhibit incredibly diverse behaviors as scale increases. Some improve smoothly and monotonically, which is what we hope for. But others plateau early, and some even degrade with scale, which is a phenomenon known as inverse scaling. Norris: Inverse scaling, yes. I have seen my fair share of U-shaped scaling curves that completely break standard logistic models. A simple logistic curve assumes performance goes from random chance up to some saturating threshold. It simply cannot capture a model getting worse as it gets bigger. Linda: Precisely. Taken together, it seems that no single parametric family can capture the full spectrum of scaling behaviors. The authors hypothesize that predicting future performance from average validation loss suffers from two major flaws. First, averaging token losses obscures the real signal. Second, there is no simple hypothesis class to fit all downstream task behaviors. Norris: So their solution is to trade the elegant, if flawed, parametric bias of a logistic function for the flexibility of a neural network. They are letting the data dictate the functional form of the scaling law. Linda: You got it. They propose NeuNeu, a neural network that frames scaling law prediction as a time-series extrapolation problem. Instead of relying on aggregate metrics, it predicts downstream performance by looking at observed accuracy trajectories combined with token-level validation losses. Norris: Okay, you have piqued my interest. Moving away from average validation loss to token-level information sounds like it could uncover some hidden dynamics. Let us dig into how exactly they manage to process all that token-level data without getting bogged down in the noise.

## The Token-Level Secret

Norris: So at the end of our last segment, I asked the million-dollar question: how does NeuNeu process all this token-level data without getting completely overwhelmed? Let us get into the weeds, Linda. Linda: Let us do it! To understand the solution, we first need to look at the exact problem with logistic scaling laws. They typically just look at the average validation loss to predict downstream task performance. But averaging completely destroys the distributional information. Norris: Right. You are compressing the loss of hundreds of thousands of tokens into a single scalar. It is like trying to guess the plot of a movie by only looking at its average pixel color. Linda: I love that analogy! Two models can achieve the exact same average validation loss, but their loss distributions could have completely different skews or variances. One model might be uniformly mediocre across all tokens. Another model might be highly confident on a specific subset of tokens, say, Python code or logic puzzles, while being completely lost on others. Norris: And that variance is highly indicative of different underlying capabilities. A model that has mastered a specific sub-domain is much more likely to suddenly show emergent performance on a downstream task related to that domain, even if its overall average loss is identical to the mediocre model. Linda: Exactly. The authors explicitly test this hypothesis. They argue that the shape of the loss distribution holds the secret to predicting future performance. Norris: Okay, but cross-entropy loss is unbounded. You can have incredibly high loss values for a completely wrong prediction, which is notoriously difficult for a secondary neural network to ingest cleanly. Linda: You are one step ahead of me, Professor. To fix the unboundedness issue, the authors do not actually feed the raw token losses into NeuNeu. They convert the token-wise losses into token-wise probabilities. So for every token, the probability is simply e to the power of negative loss. Norris: Ah, taking the exponent of the negative loss. That elegantly bounds everything between zero and one. And mathematically, that has another nice property. The exponential function has a larger derivative for smaller loss values. So, small changes in loss near convergence get amplified. Linda: Yes! The authors actually point that out in the appendix. When a language model is near convergence, those tiny changes in loss matter a lot more for downstream tasks than huge swings early in training when the model is basically just outputting random noise. Norris: That makes a ton of sense. So, they just feed this massive array of probabilities into the predictor? Linda: Before we get to exactly how they feed it in, I want to highlight how they proved this distributional theory. They created an ablation representation called DiffHist, which stands for Difference Histogram. They literally just binned the token probabilities into a histogram, and looked at how the histogram changed between training steps. Norris: Oh, interesting. So instead of individual tokens, they just feed the network the macroscopic shape of the distribution. Linda: Right. And this simple histogram approach significantly outperformed the baseline that just used average validation probability. It proves beyond a shadow of a doubt that the aggregate average is throwing away predictive gold. Norris: I have to admit, I am completely sold on the premise now. Logistic curves throwing away the distribution shape is a huge blind spot. But Linda, the paper mentions they evaluate on a random sample of 256,000 contiguous tokens to get these probabilities. Linda: They do indeed! 256,000 tokens from the WebOrganizer dataset, to be exact. Norris: That is a massive input sequence for every single checkpoint evaluation! You cannot just shove a quarter-million floating-point numbers into a standard Transformer and expect it to run in any reasonable amount of time. How on earth are they encoding this massive probability vector?

## Architecture Deep Dive

Linda: To answer your question from the end of the last segment, Professor, they do not feed the 256,000 tokens directly into the Transformer. They use a Convolutional Neural Network, or CNN, as a loss encoder to hierarchically downsample the entire probability vector into a single embedding. Norris: A CNN? That is a blast from the past for a modern language modeling paper. But it makes perfect sense for a 1D sequence of probabilities. You want to extract structural features, like local variations in confidence, without maintaining the massive sequence length. How deep is this CNN? Linda: It is actually quite compact. They use just four layers of strided 1D convolutions. With a kernel size of 64 and a stride of 16, they progressively increase the channels from 8 up to 64. By the end of that network, those 256,000 probabilities are flattened and projected into one single embedding vector that matches the hidden dimension of the Transformer. Norris: Brilliant. So the CNN acts as an information bottleneck, forcing the network to compress the distribution's shape, variance, and skew into a single dense representation. And then this embedding is fed to the Transformer alongside the training history? Linda: Exactly. The Transformer treats the whole problem as a time-series extrapolation. The input sequence includes the historical trajectory of the model. Specifically, it looks at a sequence of past downstream accuracies and the compute gaps between them. Norris: Compute gaps? So instead of looking at absolute training steps, like step 10,000 or step 20,000, it looks at the relative amount of compute, say TFLOPs, spent between evaluation checkpoints? Linda: Spot on, Professor. Abstracting compute into relative gaps is a crucial design choice. It induces invariance across model scales. A sequence might look like an accuracy of 0.5, a gap of 1 unit of compute, and then an accuracy of 0.6. By not tying the input to absolute training steps or total parameter counts, NeuNeu can generalize across entirely different training configurations. Norris: That is very elegant. Absolute steps are meaningless when you start comparing different architectures, parameter sizes, and batch sizes. TFLOP gaps give you a universal currency of training effort. So, how are these accuracy and gap values represented in the Transformer? Linda: Each context element in the sequence is the concatenation of a projected accuracy value and a projected gap value. The Transformer takes a CLS token, the single CNN loss embedding we talked about, and this sequence of historical accuracy-gap pairs. The backbone itself is a standard bidirectional BERT-style Transformer with 6 layers of pre-norm self-attention and rotary embeddings. Norris: Bidirectional attention makes a lot of sense here. You want the model to look at the entire observed trajectory holistically to understand the curve's momentum before predicting the future. And I assume the final prediction comes out of that CLS token position? Linda: Yes, the CLS token at the output is passed to a prediction head. But it does not just output a single point estimate for the future accuracy. It actually performs quantile regression. Norris: Ah, quantile regression! I love seeing that. So instead of just guessing the mean or median, it predicts a distribution of possible future accuracies. It gives you built-in confidence intervals. Linda: Exactly! It outputs five quantiles, from the 10th percentile up to the 90th percentile. The median serves as the main point estimate, but the interquantile range gives you a calibrated measure of uncertainty. If the training dynamics are highly volatile or the model is unsure, it will tell you that its prediction has wide error bars. Norris: That is incredibly valuable for practical decision-making. If I am trying to decide whether to kill a training run early or let it finish, I need to know the worst-case and best-case scenarios, not just the average expectation. The architecture is surprisingly elegant: a CNN to digest the loss distribution, a Transformer to extrapolate the compute-accuracy time series, and a quantile head for uncertainty. I am eager to hear how well this setup actually performs in practice.

## Results and Zero-Shot Generalization

Norris: Okay, Linda. We have an elegant architecture with CNNs, Transformers, and quantile regression. But the proof of the pudding is in the eating. Does NeuNeu actually beat a simple curve fit when evaluating real models? Linda: It absolutely does. They trained NeuNeu entirely on open-source HuggingFace trajectories, specifically from the DataDecide model suite. When they tested it on predicting final accuracy across 66 downstream tasks, NeuNeu achieved a mean absolute error, or MAE, of just 2.04 percent. Norris: And what was the baseline for the standard logistic scaling law? Linda: The logistic scaling laws had an MAE of 3.29 percent. So NeuNeu achieved a 38 percent reduction in error compared to the widely used standard. Norris: A 38 percent reduction is massive when you are trying to predict the outcome of a multi-million dollar training run. But let me put my skeptic hat back on. Neural networks are notorious for memorizing their training distributions and failing catastrophically out of distribution. How hard did they push the generalization tests? Linda: They pushed it incredibly hard. They tested on four types of held-out data: new random seeds, new pretraining datasets like C4, entirely unseen model families, and even completely unseen downstream tasks. Norris: Let us start with the unseen model families. Different architectures have vastly different training dynamics. Linda: Exactly. They tested NeuNeu zero-shot on the Pythia model family. Keep in mind, NeuNeu was trained on models ranging from 90 million to 1 billion parameters. But they evaluated it on Pythia models all the way up to 6.9 billion parameters. Norris: Wait, so they asked the model to extrapolate not just forward in time for a given run, but across an architectural shift and a seven-fold increase in parameter scale? That is a phenomenally difficult shift in distribution. Linda: It is! And this is where the logistic baselines really fell apart. The logistic scaling laws performed progressively worse on these more challenging generalizations like Pythia. But NeuNeu stayed robust. Because it learns patterns in the accuracy trajectories and loss distributions, abstracted by those relative compute gaps we discussed, it generalized beautifully. Norris: That compute gap abstraction is really doing heavy lifting there. By not tying the input to absolute parameters, the model just sees the shape of learning. But you also mentioned unseen downstream tasks. How is that even possible? If I fit a logistic curve, I have to fit it to the specific task data points. Linda: That is the magic of it! Because NeuNeu takes the token-level loss distribution and the task early accuracy trajectory as inputs, it can predict the future trajectory of a task it has never encountered during training. They withheld 13 of the 66 tasks during training, and NeuNeu zero-shot error on those unseen tasks was still lower than the logistic baseline error on the tasks it was explicitly fitted to! Norris: Okay, consider me officially converted. I am convinced. The ability to generalize zero-shot to a new task is completely impossible for task-specific parametric fits. The inductive bias of a monotonic logistic curve is just too restrictive for the real world. Linda: And remember, we are getting those calibrated confidence intervals from the quantile regression we talked about earlier. Over the test set, NeuNeu 10 to 90 percent interquantile range captured about 75 percent of the true data. It is highly well-calibrated. Norris: I imagine looking at the prediction curves visually must be quite striking. Did they provide any specific case studies to show what this looks like in practice? Linda: They did! They highlighted the ARC-Easy task across scales from 150 million to 1 billion parameters. If you look at the paper figures, the logistic curve often underestimates or overestimates the final plateau. But NeuNeu predictions hug the ground truth accuracies incredibly tightly, right down the middle of its predicted light-green confidence band. Norris: That visual confirmation is always satisfying. And since it only needs to observe the first 20 percent of a training run to make these accurate forecasts, the compute savings for researchers could be immense. So it is highly accurate, it generalizes to unseen architectures at massive scales, it handles zero-shot tasks, and it knows when it is uncertain. This is an incredibly robust tool.

## Ranking Models and Future Outlook

Norris: So, Linda, we have established that NeuNeu is highly accurate and generalizes beautifully. But practically speaking, if I am a researcher deciding which model configuration to fully train, how does this actually help me make that decision? Linda: That is exactly what the authors tested next, Professor. They evaluated NeuNeu's ability to rank which of two different model configurations would achieve better final performance, based on just the first twenty percent of their training trajectories. Norris: Ah, the ultimate A/B test. If you can accurately predict the winner early on, you can kill the underperforming run and save a massive amount of compute. How did NeuNeu fare against the logistic baseline here? Linda: It correctly ranked the models 75.6 percent of the time. The logistic baseline only managed 63.3 percent. That is a 12.3 percent absolute improvement in making the right multi-million dollar decision. Norris: That is fantastic. With the calibrated uncertainty we discussed earlier, you could confidently allocate your GPU clusters. It really makes me wonder where this is heading. If we can predict downstream task performance this well, are we looking at the beginning of a foundation model for training dynamics itself? Linda: That is precisely the vision the authors outline in their discussion! They view NeuNeu as a nascent world model of training. Just like a world model simulates physics for a robot, a model like NeuNeu could simulate the training dynamics of neural networks. Norris: Imagine exploring the space of hyperparameters, architectures, and data mixtures entirely in silico, before you ever spin up a single training run. It would revolutionize how we design language models. Though I imagine there are still some limitations to overcome. Linda: Definitely. Right now, NeuNeu requires using the exact same validation set across runs, and it has primarily been tested on classification tasks where accuracy is the main metric. Generative tasks might exhibit completely different scaling dynamics. Norris: Still, it is a brilliant proof of concept. I came in skeptical of using a neural network to predict a neural network, but I am leaving thoroughly impressed. Linda: I am so glad you liked it! That is all the time we have for today. Thank you for listening to Mechanical Dreams, and we will see you next week with another paper!

Open the transcript file

Hosts and Guests

Nobody is credited on this episode yet.

Credit the people on this episode

Be the first to rate this episode

More episodes

All episodes
  1. You don’t need long context

    Nov 12, 202620 minAudio

    In this episode: • The Context Window Arms Race: Professor Norris and Linda introduce the episode and discuss a new NVIDIA paper challenging the necessity of massive context windows, highlighting the hidden...

    Credit the people on this episode

  2. Scaling Hierarchical Networks

    Nov 11, 202621 minAudio

    In this episode: • Intro and The Bitter Lesson: Introducing the podcast and the Cartesia paper on Hierarchical Networks. • Scaling Ladders and The BPE Comparison: Discussing the compute efficiency gains of 1-stage...

    Credit the people on this episode

  3. Perturbing Inputs Improves Pretraining Distillation

    Nov 10, 202621 minAudio

    In this episode: • Introduction and Standard Distillation: Professor Norris and Linda introduce the podcast and set the baseline for standard knowledge distillation in language models. • The Core Idea of Perturbed...

    Credit the people on this episode

  4. Why is AI-generated language so hard to understand

    Nov 9, 202620 minAudio

    In this episode: • Introduction: The Reader-Patience Budget: Professor Norris and Linda introduce the episode's topic, discussing the growing sentiment that AI-generated text is becoming overly convoluted. • The...

    Credit the people on this episode

  5. Muse Glimmer 30B

    Nov 8, 202622 minAudio

    In this episode: • Introduction & Paper Overview: Professor Norris and Linda introduce the episode and the Muse Glimmer 30B paper, outlining its goal of bringing agentic capabilities to consumer hardware. • Architecture...

    Credit the people on this episode