Scaling Arbitrary Architectures and Optimizers with Automatic Parameterization
Shikai Qiu, Charlie Chen, Andres Potapczynski, Martin Marek, Andrew Wilson
NeurIPS page · OpenReview · Open on the map
Category: Efficient LLM Inference & Training › Learning Rate Scaling · Type: new method · Keywords: hyperparameter scaling, automatic parameterization, neural network scaling, optimizer scaling, linear system solving
Areas: Optimization & Algorithms › Optimization Dynamics › Hyperparameter Scaling Laws
Summary
AutoP is a system that automatically derives hyperparameter scaling rules for arbitrary neural network architectures and optimizers by solving a linear system of exponents, recovering known rules and discovering new ones.
Explained to a 5-year-old
When we train big computer brain models, we have to set many numbers like how big the layers are and how fast they learn. Doing this by hand is hard and can make mistakes, especially when we try new kinds of models. The researchers created a clever system that looks at the model and figures out the right numbers all at once. It works like a math puzzle where each number must match the others, just like measuring ingredients. This helps people build better models faster without guessing the numbers themselves.
Explained to a 5-year-old, longer
Training a big computer brain is like giving it many rules to follow so it can learn. We need to decide how many neurons are in each part, how fast we change the rules, and other numbers. Doing all these decisions by hand is slow and can lead to mistakes. The paper introduces a new way to let a computer do this work for us. It looks at the model and writes down simple rules about how the numbers should change together. Then it solves a big math problem where each number must match the others, like balancing a scale. This automatic method finds the right settings for many kinds of models, even ones that have never been tried before. It also discovers new tricks for making models work better, like adjusting how many steps they remember. The researchers show that the new settings work well on many existing models, like Transformers and ResNets. They also test it on newer models, such as looped transformers and models that look at long sequences. By using this tool, developers can scale up their models more reliably and waste less computer power. In short, the tool makes it easier to build smarter computer brains without having to guess all the numbers.
For a technical reader
The paper addresses the difficulty of manually deriving scaling laws for hyperparameters (initialization, learning rate, optimizer settings) when scaling neural networks across width, depth, batch size, and other axes. It proposes an automated framework that extracts primitive scaling rules from a traced training program and solves a linear system of exponent constraints to assign scaling exponents to each hyperparameter, analogous to dimensional analysis. The implementation in JAX can recover known scaling rules (e.g., μP for width, CompleteP for depth) and also discovers new beneficial scaling relationships for recurrence count, context length, and Muon learning rate. By automating this derivation, practitioners can reliably combine new architectures and optimizers without re-deriving theory or risking subtle compute-wasting errors. The work thus provides a systematic, reproducible method for robust hyperparameter scaling in large-scale model training.
Problem
Deriving hyperparameter scaling rules for new architectures and optimizers currently requires manual, case-by-case derivations, which becomes a bottleneck as the design space expands. This manual process is error-prone and limits the ability to combine advances at scale.
Method
The approach formulates scaling constraints as a linear system over hyperparameter exponents, analogous to dimensional analysis, and solves this system automatically from primitive rules extracted from a traced training program, providing a JAX implementation.
Results
AutoP recovers known scaling rules for width, depth, and batch size across multiple architectures and optimizers, and discovers new scaling rules for recurrence count, context length, and Muon learning rate that improve performance.
Contributions
A systematic method to automate hyperparameter scaling derivations via exponent solving, a concrete JAX implementation, and empirical validation that the method recovers existing rules and yields beneficial new scaling laws for a variety of architectures and optimizers.
Practical relevance
This automation enables practitioners to scale new architectures and optimizers reliably without manual derivation, reducing compute waste and accelerating research.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction