TL;DR
Traditional scaling laws use rigid mathematical formulas to predict AI model performance, but they frequently fail when applied to individual downstream tasks. This paper introduces NeuNeu (Neural Neural Scaling Laws), a transformer-based model that treats scaling prediction as a data-driven time-series extrapolation problem. By analyzing full token-level loss distributions alongside historical task accuracies, NeuNeu cuts downstream performance prediction error by 44% and generalizes zero-shot to entirely new model architectures.
What Problem Does This Paper Address?
Pretraining validation loss scales beautifully and predictably according to power laws (like the Chinchilla or Kaplan scaling laws). However, mapping that smooth pretraining loss to a model's performance on a specific downstream task (like MMLU or HellaSwag) is notoriously difficult. Individual tasks exhibit highly diverse behaviors: some improve monotonically, others plateau early, and some even show "inverse scaling" where performance degrades as the model grows.
Traditional approaches try to fit these behaviors using rigid parametric functions (like logistic curves) based on average validation loss. The authors identify two core flaws in this paradigm:
- Information Bottleneck: Averaging token-level losses into a single scalar obliterates rich distributional information that signals specific capabilities.
- Low Expressivity: No single, simple mathematical formula can capture the full, complex spectrum of downstream scaling behaviors.
Methods
Instead of forcing a human-designed mathematical formula onto the data, the authors build a neural network to learn scaling laws directly from data—hence the name Neural Neural Scaling Laws (NeuNeu).
NeuNeu frames scaling prediction as a time-series extrapolation task. Given data from the first 20% of a language model's training trajectory, it predicts performance at a future compute step. The architecture consists of three main components:
- Validation Loss Representation: To preserve distributional information, NeuNeu ingests a vector of token-level losses (e.g., 256,000 tokens) converted into token-wise probabilities ($pt,i = e^{-\ell_{t,i}}$) to avoid unbounded cross-entropy values. A CNN Loss Encoder uses 1D convolutions to hierarchically downsample this large vector into a compact embedding ($e$).
- Transformer Backbone: A standard bidirectional Transformer encoder processes a sequence containing a
[CLS]token, the loss embedding $e$, and a history of context tokens ($c_i$). Each context token concatenates a historical downstream accuracy ($y_i$) and the compute gap ($g_i$) between evaluation steps, making the setup invariant to absolute training scales. - Prediction Head: To make the model a robust decision-making tool, it uses quantile regression to output 5 distinct quantiles ($0.1, 0.25, 0.5, 0.75, 0.9$) via a pinball loss function. This provides a calibrated probability distribution over future performance rather than just a single point estimate.
Datasets
- Training Data: NeuNeu was trained on open-source language model training trajectories from the DataDecide model suite. This included 6 model sizes (90M to 1B parameters) trained across 24 different pretraining datasets (excluding C4), totaling 144 unique pretraining trajectories (9,504 unique accuracy trajectories).
- Validation/Token Losses: Token-level probabilities were extracted by evaluating checkpoints on shard 141 of the WebOrganizer dataset.
- Evaluation Benchmarks: The model was evaluated across 66 downstream tasks, including the OLMES evaluation suite (such as ARC, BoolQ, CSQA, HellaSwag, and MMLU).
- Out-of-Distribution Testing: To test generalization, the authors evaluated NeuNeu on unseen random seeds, the withheld C4 dataset, entirely unseen model families (Pythia up to 12B parameters), and a non-transformer architecture (OLMo-Hybrid 7B, which mixes attention and recurrent neural network layers). They also held out 13 downstream tasks entirely to test zero-shot task generalization.
Key Insights and Ideas
- Averages Obscure Signal: The biggest conceptual takeaway is that average validation loss is a destructive bottleneck. Two models can achieve the exact same average validation loss but possess completely different underlying token loss distributions (e.g., different variances or skews). Retaining the full distribution via token probabilities unlocks massive predictive power.
- Zero-Shot Task Generalization: Remarkably, when NeuNeu predicts performance on a downstream task it has never seen before, its error is actually lower than a traditional logistic scaling law that was fit directly to that specific task.
- Scale Invariance via Compute Gaps: By abstracting training steps into relative "compute gaps" rather than absolute step numbers, the network successfully decouples training dynamics from specific training configurations, allowing a model trained on 1B-parameter trajectories to accurately extrapolate the behavior of a 12B-parameter model.
Key Results
- Massive Error Reduction: NeuNeu achieves a 1.99% Mean Absolute Error (MAE) across 66 downstream tasks, representing a 44% error reduction compared to standard logistic scaling laws (3.56% MAE).
- Robust Model Ranking: When asked to predict which of two competing model configurations will yield better final performance based on early training data, NeuNeu is correct 76.6% of the time (a 12.9% absolute improvement over logistic baselines).
- Calibrated Uncertainty: The model's predicted 10%–90% interquantile interval captured 77.6% of the true data points, demonstrating highly reliable uncertainty calibration close to the 80% target.
- Cross-Architecture Generalization: Despite being trained purely on standard transformer trajectories, NeuNeu successfully predicted the scaling behavior of the non-transformer OLMo-Hybrid model, vastly outperforming parametric alternatives which failed catastrophically.
Limitations and Future Work
- Task Formats: The evaluation suite focused exclusively on classification tasks where accuracy is the natural metric. Generative tasks (like open-ended text generation or summarization) have more complex evaluation dynamics and might exhibit different scaling patterns.
- Scale Ceiling: The training data was bound to currently available open-source training traces (up to 1B parameters for training, tested up to 12B). As larger open-source training runs become available, NeuNeu will need to be trained and validated on frontier-scale models.
- Interpretability: Unlike a simple parametric formula, NeuNeu is a black-box neural network. The authors note that future work is required to interpret what features the CNN encoder learns to extract from the loss distribution to potentially inspire better parametric predictors.
Summary updated