Sam Laing

Sam Laing

ML research engineer · LLM optimization @ OpenEuroLLM · ELLIS Tübingen

about

I'm a research engineer at OpenEuroLLM and the ELLIS Institute Tübingen, working on LLM pretraining: optimizers, scaling laws, and keeping large training runs efficient and stable.

Before that I spent two years as an ML engineer at SoftCo, automating AP workflows using machine learning. I worked on data pipelining, modeling and deployment. I studied mathematics at Trinity College Dublin and machine learning at the University of Tübingen.

research interests

Non-convex optimization

LLM pretraining

Scaling laws

papers & projects

arXiv 2026optimization

A Quadratic Lens on Muon's Polar Update: Benefits, Pitfalls, and the Role of Newton-Schulz

E. Shulgin*, S. Laing*, A. Orvieto, P. Richtárik · *equal contribution

Muon updates matrix-valued parameters along approximately orthogonalized directions and often trains large language models faster than AdamW, yet it remains unclear when and why orthogonalization helps. We study PolarGD, the orthogonalized update at the core of Muon, on matrix quadratics, where optimizers can be analyzed in closed form, and compare update directions under line search to remove the effect of learning-rate tuning. Orthogonalization pays off when the gradient is far from low rank and its largest singular directions see high curvature. PolarGD reaches the minimizer in one step whenever the rows of the error are orthogonal with equal norms, for any Hessian, whereas gradient descent needs all Hessian eigenvalues to be equal; and unlike sign descent, PolarGD is unaffected by rotations of the problem. Over many steps, PolarGD acts as gradient descent preconditioned by the current iterate, so its speed is governed by the conditioning of the iterate rather than of the Hessian. This explains fast regimes as well as a slow one, caused by tiny singular values of the iterate, in which PolarGD is much slower than gradient descent. Finally, the few Newton-Schulz iterations used in Muon treat these tiny singular values as gradient descent does, so fewer iterations can converge faster than exact orthogonalization; in a transformer trained with Muon, about a quarter of the singular values of the attention matrices fall in this regime.

arXiv 2025optimization

Adam Simplified: Bias Correction Debunked

S. Laing, A. Orvieto

The Adam optimizer is a cornerstone of modern deep learning, yet the empirical necessity of each of its individual components is often taken for granted. This paper presents a focused investigation into the role of bias-correction, a feature whose contribution remains poorly understood. Through a series of systematic ablations on vision and language modelling tasks, we demonstrate that the conventional wisdom surrounding bias correction is misleading. In particular, we demonstrate that in the optimal hyper-parameter configuration, the inclusion of bias correction leads to no improvement in final test performance. Moreover, unless appropriate learning rate scheduling is implemented, the inclusion of bias correction can sometimes be detrimental to performance. We further reinterpret bias correction as a form of implicit learning rate scheduling whose behaviour is strongly dependent on the choice of smoothing hyper-parameters β1, β2 ∈ [0, 1). Our findings challenge the universal inclusion of this component.

arXiv 2026scaling laws

Amortizing Scaling Law Construction Costs

A. K. Jha*, D. A. Onuţu*, N. Mallik*, S. Haldar*, S. Laing, N. Ajroldi, S. Liu, J. Vanschoren, A. Klein · *equal contribution

Scaling laws guide the design choices for training large foundation models, but deriving them involves training an exhaustive grid over hyperparameters, token budgets, and parameter counts, which is computationally expensive. Fitting a scaling law, however, only requires the best-loss frontier across compute scales, discarding most of the trained configurations. We propose a framework for efficient scaling law construction that formulates data collection as a Bayesian optimization problem, and introduce metrics for comparing scaling law fitting methods under constrained compute budgets. We find that progressively expanding the compute budget during acquisition, mirroring the compute-ordered evaluation of configurations in practice, substantially improves recovery efficiency. Augmenting the observed configurations with surrogate-fantasized evaluations then recovers the broader experimental grid, allowing accurate scaling law fitting without training every configuration. Together, these can closely match scaling law fits over a full dense grid at computational savings of up to 10–100×.

BA thesispure maths

Category theory in algebraic topology

Applied category-theoretical techniques to prove several fundamental theorems of algebraic topology.

experience

Research Engineer

Apr 2026 – now

OpenEuroLLM · ELLIS Institute Tübingen

  • Comparing Muon and AdamW for pretraining.
  • Running pretraining sweeps with Megatron-LM and debugging distributed training issues.
  • Fitting scaling laws for hyperparameters, to set them for large runs from small ones.
  • Building tools to monitor training runs.

Research Intern

Oct 2025 – Mar 2026

ELLIS Institute · Max Planck Institute, Tübingen

  • Research on Muon and matrix-aware optimizers, from theory on simple models to GPT-style pretraining experiments.

Machine Learning Engineer

Apr 2023 – Apr 2025

SoftCo · Dublin

  • Built the core ML behind the product ahead of the company's acquisition by Keensight Capital.
  • Built and deployed Bayesian inference and multi-label classification models for automated document processing, reaching 95%+ touchless processing in production.
  • Data pipelines and parsers for model training.
  • Time-series forecasting for cloud compute planning.

education

MSc Machine Learning

Oct 2022 – Jun 2025

University of Tübingen · Grade 1.3 (sehr gut)

Thesis on adaptive and geometry-aware optimizers, supervised by Antonio Orvieto.

BA Mathematics

Sep 2018 – Jun 2022

Trinity College Dublin · First Class Honours

Trinity College Academic Gold Medal, awarded for academic excellence throughout four years of study.

Thesis on category theory in algebraic topology.

toolkit

training & scaling

PyTorch · Megatron-LM · JAX · TP / DP / FSDP · W&B

systems

Python · SLURM · Docker · Linux · SQL

theory

non-convex optimization · non-Euclidean optimization · stochastic optimization · Bayesian inference