Does Flatness imply Generalization for Logistic Loss in Univariate Two-Layer ReLU Network?
Dan Qiao, Yu-Xiang Wang
TL;DR
The paper analyzes how flatness (minima stability) influences generalization for univariate, two-layer ReLU networks under logistic loss. It shows that flatness by itself does not guarantee generalization, constructing arbitrarily flat interpolants that overfit. However, with weight decay, flat solutions enjoy bounded generalization gaps, and under a weak generalization assumption, flatness can drive near-optimal excess risk within the convex hull of the ground-truth's uncertain regions via weighted TV(1) bounds. The authors derive both upper bounds and region-specific guarantees, and validate their theory with simulations that reveal the interplay between learning rate, flatness, and representation learning. Overall, the work clarifies when flatness helps generalization in logistic settings and highlights the significance of data-region considerations and training dynamics.
Abstract
We consider the problem of generalization of arbitrarily overparameterized two-layer ReLU Neural Networks with univariate input. Recent work showed that under square loss, flat solutions (motivated by flat / stable minima and Edge of Stability phenomenon) provably cannot overfit, but it remains unclear whether the same phenomenon holds for logistic loss. This is a puzzling open problem because existing work on logistic loss shows that gradient descent with increasing step size converges to interpolating solutions (at infinity, for the margin-separable cases). In this paper, we prove that the \emph{flatness implied generalization} is more delicate under logistic loss. On the positive side, we show that flat solutions enjoy near-optimal generalization bounds within a region between the left-most and right-most \emph{uncertain} sets determined by each candidate solution. On the negative side, we show that there exist arbitrarily flat yet overfitting solutions at infinity that are (falsely) certain everywhere, thus certifying that flatness alone is insufficient for generalization in general. We demonstrate the effects predicted by our theory in a well-controlled simulation study.
