TL;DR
This paper introduces "Interpolated MLPs" (I-MLPs), a novel method to control the inductive bias of standard MLPs by interpolating their weights with those of a more structured "prior" model (like a CNN or MLP-Mixer). This allows for fine-grained control over inductive bias, revealing a continuous, logarithmic trade-off between inductive bias and performance in low-compute regimes for vision tasks.
What Problem Does This Paper Address?
Standard Multi-Layer Perceptrons (MLPs) are known for their weak inductive biases, which makes them perform poorly compared to architectures like Convolutional Neural Networks (CNNs) or Vision Transformers (ViTs) when computational resources are limited. While previous work showed that MLPs can catch up with sufficient compute, this paper flips the question: in the low-compute regime, how does increasing inductive bias affect MLP performance? The challenge is to quantify and control this inductive bias in a flexible way, moving beyond the all-or-nothing approach of using a pre-defined architecture.
Methods
The core innovation is the Interpolated MLP (I-MLP). Instead of using a standard MLP or a fixed structured model, the I-MLP's weights are a linear interpolation between the MLP's own weights and the weights of a "prior" model (e.g., a CNN or MLP-Mixer). This interpolation is controlled by a hyperparameter $\alpha$, where $\alpha=0$ represents a pure MLP with no inductive bias, and $\alpha=1$ represents the prior model. The interpolation is applied layer-wise during training.
The authors convert the inductive biases of CNNs (convolutional kernels) and MLP-Mixers (patch embedding, token mixing, channel mixing) into equivalent fully-connected layer weight matrices ($W_p$). This allows for a direct interpolation with the standard MLP's weight matrix ($W$): $W_{interpolated} = (1-\alpha)W + \alpha W_p$. This approach provides a continuous spectrum of inductive bias.
Datasets
The experiments were conducted on the CIFAR-10 and CIFAR-100 image classification datasets.
Key Insights and Ideas
- Continuous Control of Inductive Bias: The I-MLP framework offers a smooth way to dial inductive bias up or down, which is more nuanced than simply choosing between an MLP and a CNN.
- Logarithmic Trade-off: In low-compute regimes for vision tasks, there's a continuous, two-sided logarithmic relationship between the amount of inductive bias and performance. This means small changes in inductive bias can have significant performance impacts, especially around an optimal point.
- Optimal Inductive Bias in Mid-Compute: The paper suggests that a fractional amount of inductive bias might be optimal in the mid-compute regime, rather than full inductive bias from a specialized architecture.
- Prior Model Matters: The specific inductive biases introduced by different prior models (CNN vs. MLP-Mixer) lead to different performance curves, highlighting the importance of the type of inductive bias. The MLP-Mixer's multiple sources of bias resulted in more complex, multi-modal performance landscapes.
- First Layer is Crucial: Experiments in Appendix H suggest that concentrating interpolation parameters in the first layer is more effective for leveraging inductive bias than spreading them across multiple layers, given a fixed compute budget.
Key Results
- CNN Prior: For CIFAR-10/100 with a CNN prior, the I-MLP showed a minimum in test accuracy around $\alpha = 5 \times 10^{-3}$, with performance improving logarithmically as $\alpha$ moved towards 0 (more MLP-like) or 1 (more CNN-like).
- MLP-Mixer Prior: With an MLP-Mixer prior, a similar logarithmic behavior was observed, but with a more complex landscape featuring both minima and maxima, attributed to interpolating multiple bias sources simultaneously.
- Endpoint Equivalence: At $\alpha=0$, the I-MLP performance matched the standard MLP, and at $\alpha=1$, it matched the prior model (CNN or MLP-Mixer), validating the interpolation scheme.
- Test-time Interpolation Inferior: Interpolating only at test time performed significantly worse than interpolating during training, indicating that the models need to learn with the controlled bias.
- First Layer Focus: In Appendix H, concentrating interpolation in the first layer for MLP-2 led to a significant accuracy jump (e.g., 54.8% to 73.7% on CIFAR-10) compared to spreading it across layers (MLP-1, 56.4% to 60.3%), with a fixed number of interpolated parameters.
Limitations and Future Work
- Low-Compute Focus: The study primarily focuses on the low-compute regime. The behavior at higher compute levels, where MLPs are known to perform well, is not the main focus.
- Multiple Bias Sources: The MLP-Mixer's complex inductive bias structure led to a more intricate performance landscape, suggesting that disentangling these sources could be a future direction.
- Mid-Compute Regime: The paper hypothesizes that fractional inductive bias might be optimal in the mid-compute regime, but this is not extensively explored.
- Future Work: The authors suggest exploring more advanced interpolation strategies, data augmentation pipelines, and investigating inductive bias at larger compute scales. They also propose using I-MLPs for more controlled analyses of inductive bias.
Summary updated