NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Loss Landscapes are All You Need: Neural Network Generalization Can Be Explained Without the Implicit Bias of Gradient Descent

Ping-yeh Chiang, Renkun Ni, David Yu Miller, Arpit Bansal, Jonas Geiping, Micah Goldblum, Tom GoldsteinICLR 2023

Introduction

Does deep learning work because of the "magic" of Stochastic Gradient Descent (SGD)? This paper argues "no." By training neural networks using brute-force random guessing and gradient-free search, the authors demonstrate that models can generalize just as well as those trained with SGD. This suggests that generalization is a property of the loss landscape geometry—specifically, the "Volume Hypothesis"—rather than the specific optimization algorithm used.

The Problem: Is Implicit Bias Necessary?

In classical statistics, a model with millions of parameters should easily overfit a small dataset, memorizing noise instead of learning underlying patterns. Yet, massive deep neural networks generalize incredibly well.

For years, the prevailing theory has been implicit bias: the idea that gradient-based optimizers like SGD have a hidden "preference" for simple, smooth solutions that generalize well. This paper asks a provocative question: Is this implicit bias of gradient descent actually necessary? Or would any optimizer that finds a low-error solution succeed because the "good" solutions are simply easier to find?

Methodology: Gradient-Free Optimization

To isolate the effect of gradient dynamics, the authors replaced SGD with three gradient-free (zeroth-order) optimizers:

  1. Guess & Check (G&C): The ultimate "dumb" optimizer. It randomly samples parameter vectors from a uniform distribution until it finds one that achieves 100% training accuracy. It uses no gradients and no iterative steps.
  2. Pattern Search: A local search algorithm that picks a random parameter, tweaks it by a fixed amount, and keeps the change only if the loss decreases.
  3. Random Greedy Search: Similar to Pattern Search, but it adds Gaussian noise to the entire parameter vector and accepts the move if it improves the training loss.

By using these methods, the authors ensure that any generalization observed cannot be attributed to the specific mathematical properties of gradients or backpropagation.

Experimental Setup

The researchers evaluated these optimizers across several regimes where gradient-free methods are computationally feasible:

  • Toy Problems: A 2D "wedge" classification task to visualize decision boundaries.
  • Image Classification: 2-class and 10-class versions of MNIST and CIFAR-10 with varying sample sizes (from 2 to 1000 samples).
  • Few-Shot Learning: Using a ResNet-12 backbone on CIFAR-FS and mini-ImageNet to see if these findings hold for "industrial-scale" architectures.

Key Insights and Results

The Volume Hypothesis and Generic Generalization

The core idea of the paper is the Volume Hypothesis: "good" (generalizing) minima occupy a much larger volume in the high-dimensional parameter space than "bad" (overfitting) minima. Because they take up more "room," even a random guess is more likely to land in a good region than a bad one.

In low-data regimes, the "Guess & Check" method produced decision boundaries that looked nearly identical to those produced by SGD. This suggests that the "simplicity bias" we see in AI might be baked into the loss landscape itself, rather than the optimizer.

Comparison of decision boundaries showing that gradient-free methods produce similar generalizing boundaries to SGD, unlike poisoned networks.

The Curse of Dimensionality vs. The Blessing of Flatness

While zeroth-order optimization is usually impossible in high dimensions (the "curse of dimensionality"), neural networks seem to have "flat" basins and interconnected minima that make these problems tractable in the low-sample regime. Using a "slab" dataset, the authors showed that a linear solution has a volume roughly six orders of magnitude larger than a complex, "robust" solution. This explains why models prefer simple answers: they are statistically much easier to stumble upon.

Performance Comparisons

The gradient-free methods performed surprisingly well compared to SGD:

  • G&C vs. SGD: On 2-class MNIST with 32 samples, Guess & Check achieved 93.02% test accuracy, while SGD achieved 94.04%. The gap is remarkably small given that G&C is entirely random.
  • 10-Class Performance: On 10-class MNIST with 1000 samples, Pattern Search (93.68%) slightly outperformed SGD (93.46%).
  • Few-Shot ResNets: In 1-shot, 5-way classification on CIFAR-FS, Pattern Search achieved 70.25% accuracy, significantly beating SGD’s 68.35%.
  • Scaling Up: As the authors increased the width of the network (adding more parameters), the performance of the random "Guess & Check" optimizer actually improved, mirroring the "double descent" or scaling laws seen in standard deep learning.

Limitations and Future Work

The primary limitation of this approach is computational tractability. While "Guess & Check" works for small datasets, the time required to find a solution grows exponentially as more training data or classes are added. Training a massive model like GPT-4 using random guessing is impossible with current hardware.

The authors acknowledge that while gradient dynamics might provide additional helpful bias in large-scale settings, their work proves it isn't the primary reason models generalize. Future work could involve quantifying the exact volume of these basins more precisely and investigating if this "volume bias" holds true in massive datasets like ImageNet or during the pre-training of Large Language Models.

Summary updated

BibTeX
@inproceedings{chiang2023loss,
  author = {Ping-yeh Chiang and Renkun Ni and David Yu Miller and Arpit Bansal and Jonas Geiping and Micah Goldblum and Tom Goldstein},
  title = {{Loss Landscapes are All You Need: Neural Network Generalization Can Be Explained Without the Implicit Bias of Gradient Descent}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=QC10RmRbZy9},
}
Figure