1 of 41

Irina Rish

Mila - Quebec AI Institute

University of Montreal

Canada Excellence Research Chair

in Autonomous AI

CERC-AAI Lab: irina-lab.ai

2 of 41

  • Out-of-Distribution (OoD) Generalization
  • Transfer learning
  • Domain Adaptation
  • Meta-learning
  • Continual learning
  • Adversarial Robustness

Generalization: The “Holy Grail” of ML

3 of 41

AGI ⇔ “General” AI ⇔ Multi-task,“Broad” AI

“Highly autonomous systems that outperform humans at most economically valuable work” (OpenAI definition)

4 of 41

Emergent Compositional Generalization?

Learning World’s “Principal Components”

f1(x) f2(x) f3(x) … fn(x) …

Assumption: all data & future tasks are “well-approximable” in some finite “basis”

{ h1(x) , … , hk(x) }

5 of 41

Foundation Models & Scaling Revolution (2020-?)

“Train one model on a huge amount of data and adapt it to many applications.

We call such a model a foundation model.”

CEFM: Stanford’s Center for Research on Foundation Models

“On the Opportunities and Risks of Foundation Models”

Application example: healthcare

6 of 41

AI & Scaling

“The biggest lesson that can be read from 70 years of AI research is that general methods that leverage computation are ultimately the most effective, and by a large margin."

The Bitter Lesson (Rich Sutton, March 13, 2019)

7 of 41

Scaling Laws as “Investment Tools” for AI

An example:

image transformers dominated by convnets in lower data regimes, but outperforming the latter with more data: https://arxiv.org/pdf/2010.11929.pdf

8 of 41

  1. Universal scaling laws govern the behavior and structure of complex systems, from biological organisms to cities and companies

  • Living organisms, companies, cities all exhibit predictable behaviors based on size but have different dynamics due to their unique internal structures and the role of innovation.

  • Living organisms follow specific scaling laws: e.g. metabolic rates, lifespans, and growth patterns scale predictably with size.

  • Cities scale differently: their productivity and innovation increase disproportionately, but so do problems like crime and pollution. This is in contrast to biological systems, where larger size leads to slower metabolic rates.

  • Companies initially grow like biological systems, but they don’t scale indefinitely. Unlike cities, they tend to plateau and eventually decline. Innovation is crucial for sustaining long-term growth in organizations.

9 of 41

Predicting Network’s Behavior at Scale

  • “Closed-box” predictions (empirical scaling laws)
  • “Open-box” predictions (observing learning dynamics)

10 of 41

Neural Scaling Laws: Kaplan et al

Jared Kaplan et al, Scaling Laws for Neural Language Models, 2020.

11 of 41

Scale and Inductive Biases

12 of 41

Brief History of Neural Scaling Laws

Kaplan et al, Scaling Laws for Neural Language Models, 2020

Cortes et al. Learning curves: Asymptotic values and rate of convergence. NeurIPS 1994.

First to observe power law scaling: of ANNs:

x = dataset size and y = test error.

Hestness et al. Deep Learning Scaling is Predictable,Empirically. Dec 2017.

1994

2017

Showed that data-size dependent scaling laws given by power laws hold over many orders of magnitude.

Rosenfeld et al. . A constructive prediction of the generalization error across scales. 2019.

Applied power laws to model-size dependent scaling laws, i.e. when x = number of parameters.

Showed that power law applies when x = compute, besides x = data and x = model.

This paper brought “neural” scaling laws to the mainstream as it was in context of GPT-3 training.

2019

2020

13 of 41

Chinchilla Scaling Laws

”Chinchilla's wild implications”, AI Alignment Forum, July 30th, 2022

“Data, not size, is the currently active constraint on language modeling performance”

14 of 41

“Old” GPT Scaling Laws

(NOT compute-optimal!):

Data/Model = 2/5

Chinchilla Scaling Laws: Data/Model = 50/50

15 of 41

Chinchilla Scaling Laws

Same amount of compute:

Chinchilla (70B parameters, 1.4T tokens)

Gopher (280B parameters, 300B tokens)

16 of 41

Beyond Chinchilla:

Focus to Inference Costs

  • Post-Chinchilla Scaling: Llama etc

  • Inference scaling laws (2024)

  • Quantization, compression, low-bit model training (Spectra etc)

17 of 41

LLaMA-13B outperforms GPT-3 (175B) on most benchmarks

LLaMA-65B is competitive w/ best models: Chinchilla-70B, PaLM-540B

Beyond Chinchilla compute-optimal, towards “inference-optimal”

18 of 41

More Data Needed - No Saturation in Sight!

19 of 41

Reducing memory and inference costs by training low-bitwidth models

20 of 41

Spectra: “Small but Mighty” Quantized LLMs

(ICLR 2025 Spotlight, ACL)

21 of 41

22 of 41

Chinchilla parametric scaling curves fit to “typical” (smaller) token/parameter ratios overestimate the impact of additional data.

None of of our parametric curves fit 150M long-ratio training results well; as we extend training duration far beyond typical Chinchilla ratios, the parametric loss function is not flexible enough.

Alternative functional forms?�BNSL?

23 of 41

More Complex Scaling Behavior:

“Phase Transitions”, Emergent Phenomena

  • 3SAT, CSPs, NPhard problems
  • Random graphs
  • Universal Laws of Robustness
  • GPT-3 on Arithmetic task
  • Grokking

-

24 of 41

Predicting Network’s Behavior at Scale

  • “Open-box” predictions (observing learning dynamics)
  • “Closed-box” predictions (empirical scaling laws)

25 of 41

Transition from Memorization to Generalization

Initial stage/”confusion” (t0 to t1)

Memorization(t1-t2)

Comprehension (t3-t4)

Generalization (“grokking”) at t4+

t2

t3

t1

t4

Generalization (“grokking”) point t4 follows an empirical power law

diven the training data fraction r, and

26 of 41

Spectral Signature of Loss Predicts Grokking

no grokking

(after 10k steps)

grokking

27 of 41

Predicting Network’s Behavior at Scale

  • “Open-box” predictions (observing learning dynamics)
  • “Closed-box” predictions (empirical scaling laws)

28 of 41

Broken Neural Scaling Laws:

A Universal Functional Form for Neural Scaling Laws?

Ethan Caballero et al, 2022

https://arxiv.org/abs/2210.14891

29 of 41

Sparse Models

Distillation

Diffusion Models

Alignment (ELO score)

Reinforcement Learning

Coding

Video

30 of 41

BNSL accurately fits and extrapolates a very wide range of scaling behaviors

  • Settings: Zero-Shot, Prompted, and Fine-Tuned settings; Downstream and upstream
  • Tasks: Large-Scale Vision, Language, Audio, Video, Diffusion, Generative Modeling, Multimodal Learning, Contrastive Learning, AI Alignment, AI Capabilities, Robotics, Out-Of-Distribution Generalization, Continual Learning, Transfer Learning, Uncertainty Estimation / Calibration, Out-Of-Distribution Detection, Adversarial Robustness, Distillation, Sparsity, Retrieval, Quantization, Pruning, Fairness, Molecules, Computer Programming/Coding, Math Word Problems, Arithmetic, Double Descent, “Emergent” “Phase Transitions”, Supervised Learning, Unsupervised / Self-Supervised Learning, & Reinforcement Learning (Single Agent & Multi-Agent)
  • Architectures: ResNet, Transformer, MLP-Mixer, MLP, Graph Neural Network, U-Net, Ensemble, Sparsely-Gated Mixture-of-Experts, Sparse Pruned Model
  • X-axes: Compute, Dataset Size, Number of Model Parameters, Number of Training Steps, Input (e.g. Context) Size, & Upstream Performance
  • Y-axes: prediction error, cross entropy, calibration error, AUROC, BLEU score percentage, F1 score, reward, Elo rating, FID score

31 of 41

BNSL accurately extrapolates the scaling behavior of:

Non-Monotonic Scaling (e.g. Double Descent)

Inflection Points

(e.g. Four Digit Addition)

32 of 41

Control:

Model: size N, architecture,...

Data: size D, diversity,...

No control:

Downstream task(s) complexity (T)

Relative Scaling Laws?

Scaling laws:

not just L(N,D), but rather L(N,...,D,...| T) ?

33 of 41

Training Foundation Models

“We think the most benefits will go to whoever has the biggest computer.” Greg Brockman, OpenAI’s CTO, Financial Times

Most compute is owned by AI companies (Google, OpenAI, etc), not academia & nonprofit research; this “compute gap” continues to widen.

34 of 41

Open Foundation Models on Supercomputers

5.9M V100 GPU hrs on Summit

35 of 41

Ongoing CERC-AAI Lab Projects

Language Models: Pretraining and Continual Learning

Aligned Multimodal Language-Vision Models:

Time-series Transformers

Compression/Distillation & Fast Inference

Generalist Agents: Open Gato & Open Ada

LLM 4 Psychology & Psychology 4 LLMs

Kshitij Gupta

Daniel Kaplan

Quentin Anthony

Arjun Ashok

Benjamin Thérien

Tejas Vaidhya

Adam Ibrahim

Andrew WIlliams

Alexis Roger

36 of 41

Costs of Scaling AI Models

Source: epochai.org

The total amortized cost of developing Gemini Ultra, including hardware, electricity, and staff, is estimated at $130 million

Training compute of frontier AI models grows by 4-5x per year

37 of 41

What’s Next?

Alternatives to Transformers?

Better Scaling / More Efficient Models?

38 of 41

AI & Scaling

“We want AI agents that can discover like we can, not which contain what we have discovered. Building in our discoveries only makes it harder to see how the discovering process can be done.”

The Bitter Lesson (Rich Sutton, March 13, 2019)

39 of 41

Scaling Biological Networks -> Scaling AI?

  • Evolution scaled biological networks from single cells to brains

  • What are the “scaling algorithms” and “scaling laws”?

  • Emergence and transitions in bio networks:

both at developmental and evolutionary scale

  • what can AI researchers working on scaling AI while ensuring its safe and steerable learn from nature about emergence of novel behaviors?

40 of 41

Thank you!

41 of 41

Expanding Scaling Laws

Synthetic images demonstrate a scaling trend similar to, but slightly less effective than, real images in CLIP training, while they significantly underperform in scaling when training supervised image classifiers