MODEL DEPTH · CONTROLLED DATASETS · 2024
When does a model need more depth?
Making a network deeper changes how it can organize a computation. But a larger model also has more parameters. To study depth itself, we need tasks with controllable structure and a comparison that holds model size in check.
A local rule updates each binary cell.
Actual cellular automaton evolution; not a neural network prediction.
Small rules, rich patterns
An elementary cellular automaton consists of a line of binary cells. At each step, a cell updates from its own state and the states of its two neighbors. Repeating this small rule creates a full pattern through time.
Different rules produce different behavior. This makes cellular automata useful controlled datasets: we can change the data-generating rule while keeping the basic input format fixed.
Compare depth at a fixed parameter budget
In our workshop study, we train autoregressive models of different depths on these datasets. The comparison holds parameter count fixed to separate depth from the simple effect of adding more parameters.
The study reports that deeper models perform better in the tested setting, and that more complex rules require more depth to emulate. Attention patterns provide a way to examine the computations involved. These are findings for the studied tasks, not a universal rule that deeper networks always win.
Watch the data being made
The animation runs two elementary rules from a single active cell. Each row is one update. These are actual cellular automaton states, generated in your browser. They illustrate the data source; they do not show a model prediction or a measured comparison of network performance.
The takeaway
The value of depth depends on the structure of the task. Controlled generators help us study that relationship.
A few useful terms
- Cellular automaton. A system of cells updated by a local rule at discrete time steps.
- Model depth. The number of successive layers or blocks in a neural network.
- Parameter budget. The total number of trainable model parameters used in a comparison.
THE PAPER
Exploring model depth and data complexity through the lens of cellular automata
Tianyu He, Darshil Doshi, Aritra Das, Andrey Gromov
Scientific Methods for Understanding Deep Learning, NeurIPS 2024 workshop
NEXT PROJECT