[Paper Review] A Capacity Scaling Law for Artificial Neural Networks
This paper introduces a theoretical framework for quantifying the information capacity of feedforward neural networks using information theory, deriving two critical capacity thresholds: the Lossless Memory (LM) dimension and the MacKay (MK) dimension. Both scale linearly with the number of network weights, providing upper bounds for perfect memorization and a 50% failure rate in training, respectively, validated through repeatable experiments across architectures and learning algorithms.
We derive the calculation of two critical numbers predicting the behavior of perceptron networks. First, we derive the calculation of what we call the lossless memory (LM) dimension. The LM dimension is a generalization of the Vapnik--Chervonenkis (VC) dimension that avoids structured data and therefore provides an upper bound for perfectly fitting almost any training data. Second, we derive what we call the MacKay (MK) dimension. This limit indicates a 50% chance of not being able to train a given function. Our derivations are performed by embedding a neural network into Shannon's communication model which allows to interpret the two points as capacities measured in bits. We present a proof and practical experiments that validate our upper bounds with repeatable experiments using different network configurations, diverse implementations, varying activation functions, and several learning algorithms. The bottom line is that the two capacity points scale strictly linear with the number of weights. Among other practical applications, our result allows to compare and benchmark different neural network implementations independent of a concrete learning task. Our results provide insight into the capabilities and limits of neural networks and generate valuable know how for experimental design decisions.
Motivation & Objective
- To establish a theoretical foundation for measuring the information capacity of artificial neural networks beyond empirical observation.
- To define two critical capacity thresholds—Lossless Memory (LM) and MacKay (MK) dimensions—that predict the limits of function memorization and training failure.
- To validate these theoretical bounds through repeatable experiments across diverse network architectures, activation functions, and learning algorithms.
- To provide a task-agnostic benchmarking method for comparing neural network implementations based on intrinsic capacity.
- To extend David MacKay’s earlier work on capacity to multi-layer perceptron networks with a scalable, information-theoretic framework.
Proposed method
- Embedding neural networks within Shannon’s communication model to interpret capacity as information bits.
- Defining the Lossless Memory (LM) dimension as the maximum number of random labelings a network can memorize perfectly, derived via combinatorial analysis of parameter space.
- Deriving the MacKay (MK) dimension as the point where training success drops to 50%, based on probabilistic bounds and information-theoretic reasoning.
- Using random, uniformly distributed input points to eliminate generalization effects and isolate pure memorization capacity.
- Applying the data processing inequality to explain why empirical LM dimensions are typically lower than theoretical upper bounds.
- Validating theoretical predictions through controlled experiments with varying network depth, width, activation functions (ReLU, sigmoid), and optimization algorithms.
Experimental results
Research questions
- RQ1What is the theoretical upper bound on the number of random labelings a neural network can memorize as a function of its number of parameters?
- RQ2At what point does a neural network have a 50% chance of failing to train any given function, and how does this scale with network size?
- RQ3How do different activation functions and training algorithms affect the empirical realization of theoretical capacity limits?
- RQ4Can the theoretical capacity bounds be used as a universal benchmark for comparing neural network implementations independent of specific learning tasks?
- RQ5Why do empirical LM dimensions fall short of theoretical predictions, and what role does the data processing inequality play in this gap?
Key findings
- The Lossless Memory (LM) dimension scales strictly linearly with the number of network weights, providing an upper bound on perfect memorization capacity.
- The MacKay (MK) dimension also scales linearly with the number of weights, marking the threshold where training success drops to 50%.
- Experiments with ReLU, sigmoid, and other activation functions confirmed that both LM and MK dimensions exhibit the predicted linear scaling across diverse architectures and learning algorithms.
- Empirical results showed that real networks consistently underperform theoretical upper bounds, with the LM dimension typically lower than predicted due to the data processing inequality.
- The capacity scaling law enables task-agnostic benchmarking of neural network implementations, allowing direct comparison of efficiency and convergence across different architectures and training methods.
- The theoretical framework provides actionable upper bounds for engineering design, ensuring that networks are neither under- nor over-parameterized for a given function class.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.