Scaling MLPs: A Tale of Inductive Bias

Gregor Bachmann, Sotiris Anagnostidis, Thomas Hofmann · DOI

Abstract

In the landscape of computer vision, architectural design is often driven by the inclusion of inductive biases—prior assumptions about the structure of data, such as spatial locality in Convolutional Neural Networks (CNNs) or global dependencies in Transformers. The Multi-Layer Perceptron (MLP), characterized by its lack of vision-specific priors, has long been relegated to theoretical study rather than practical application. This paper investigates whether the perceived limitations of MLPs are inherent or merely a consequence of insufficient scale. By applying modern training recipes, large-scale pre-training, and the LION optimizer, we demonstrate that MLPs follow predictable power laws and can achieve competitive performance on standard vision benchmarks. Our findings suggest that with sufficient data and compute, "soft" inductive biases introduced through data augmentation can compensate for architectural simplicity, resulting in models with exceptional inference throughput.

Introduction

Deep learning research has historically favored architectures with strong inductive biases. CNNs assume that pixels near each other are related, while Vision Transformers (ViTs) use patching to manage spatial information. In contrast, the vanilla MLP treats an image as a flattened, unstructured vector, effectively ignoring the 2D geometry of the input. While this simplicity makes MLPs the primary focus of deep learning theory, they are often dismissed as "toy models" in empirical vision research.

This study addresses a fundamental question: Do MLPs reflect the empirical scaling successes of modern models, or is the theoretical community using a proxy that no longer behaves like real-world architectures? By subjecting the MLP to a modern "training glow-up," we explore the limits of scaling without architectural priors.

Methodology

To evaluate the scaling potential of MLPs, we tested two primary architectural variants:

  1. S-MLP (Standard): A vanilla MLP utilizing ReLU activations and Layer Normalization.
  2. B-MLP (Inverted Bottleneck): A modern adaptation inspired by MobileNet and MLP-Mixer. This variant incorporates skip connections and bottleneck layers that expand the hidden dimension before projecting it back, enhancing representational capacity.

Crucially, we avoided "patching"—the process of breaking images into grids—to ensure the model remained free of spatial inductive biases. The models were fed entire flattened images. To optimize performance, we utilized the LION optimizer and aggressive data augmentation (e.g., MixUp, random crops). Models were pre-trained on ImageNet-21k (12 million images) to determine if sheer data volume could overcome the lack of architectural priors.

Key Insights and Scaling Laws

The Universality of Power Laws

The most significant finding of this research is that MLPs follow the same "power laws" as Transformers and CNNs. As compute, parameter count, and data volume increase, the error rate drops predictably. This confirms that MLPs are a valid proxy for theoretical studies aiming to understand the scaling behavior of larger, more complex models.

Data Augmentation as Soft Inductive Bias

In CNNs, data augmentation provides a performance boost; for MLPs, it is a fundamental requirement. Without it, performance collapses. Data augmentation effectively "teaches" the MLP spatial relationships—such as translation invariance—that are otherwise baked into the architecture of a CNN. This suggests that inductive bias can be successfully moved from the architecture to the data pipeline.

The Batch Size Paradox

Contrary to common wisdom in CNN training, where smaller batches often provide a helpful regularization effect, we found that larger batch sizes lead to better generalization for MLPs. This indicates that the optimization landscape for MLPs at scale differs significantly from their convolutional counterparts.

Empirical Results

The results demonstrate that MLPs are far from obsolete when properly scaled:

  • Accuracy: After pre-training on ImageNet-21k, the B-MLP achieved 95.5% on CIFAR-10 and 82.6% on CIFAR-100. On the ImageNet ReaL benchmark, the model reached approximately 58% accuracy.
  • Efficiency: Because MLPs consist primarily of optimized matrix multiplications, they exhibit extreme efficiency on modern hardware. The B-MLP achieved a throughput of over 16,000 images per second on a single A5000 GPU. This is roughly 30x faster than a ResNet-152 and 70x faster than a ViT-B/4 at equivalent resolutions.

Discussion and Limitations

Despite these impressive gains, a performance gap remains. At any fixed compute budget, a CNN or Transformer will typically outperform a pure MLP because their specialized inductive biases are highly efficient. Furthermore, MLPs struggle with object localization. Because they process the entire image as a single vector, they have difficulty identifying objects that are not centered, a challenge only partially mitigated by test-time augmentation (TTA).

Conclusion

Scaling MLPs reveals that architectural inductive bias is not an absolute requirement for high performance, provided one has sufficient data and compute. While specialized architectures remain more compute-efficient for reaching peak accuracy, the MLP's simplicity and massive throughput make it a compelling subject for both theoretical research and high-speed inference applications. Future work will investigate whether even larger scales—on the order of billions of images—will allow the MLP to eventually close the gap with more biased architectures.

Summary updated

BibTeX
@inproceedings{bachmann2023scaling,
  author = {Gregor Bachmann and Sotiris Anagnostidis and Thomas Hofmann},
  title = {{Scaling MLPs: A Tale of Inductive Bias}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=R45A8eKcax},
}
Figure