Skip to main content
Proceedings of the National Academy of Sciences of the United States of America logoLink to Proceedings of the National Academy of Sciences of the United States of America
. 2021 Oct 20;118(43):e2103091118. doi: 10.1073/pnas.2103091118

Exploring deep neural networks via layer-peeled model: Minority collapse in imbalanced training

Cong Fang a,1, Hangfeng He a, Qi Long b, Weijie J Su c,2
PMCID: PMC8639364  PMID: 34675075

Significance

The remarkable development of deep learning over the past decade relies heavily on sophisticated heuristics and tricks. To better exploit its potential in the coming decade, perhaps a rigorous framework for reasoning about deep learning is needed, which, however, is not easy to build due to the intricate details of neural networks. For near-term purposes, a practical alternative is to develop a mathematically tractable surrogate model, yet maintaining many characteristics of neural networks. This paper proposes a model of this kind that we term the Layer-Peeled Model. The effectiveness of this model is evidenced by, among others, its ability to reproduce a known empirical pattern and to predict a hitherto-unknown phenomenon when training deep-learning models on imbalanced datasets.

Keywords: deep learning, neural collapse, class imbalance

Abstract

In this paper, we introduce the Layer-Peeled Model, a nonconvex, yet analytically tractable, optimization program, in a quest to better understand deep neural networks that are trained for a sufficiently long time. As the name suggests, this model is derived by isolating the topmost layer from the remainder of the neural network, followed by imposing certain constraints separately on the two parts of the network. We demonstrate that the Layer-Peeled Model, albeit simple, inherits many characteristics of well-trained neural networks, thereby offering an effective tool for explaining and predicting common empirical patterns of deep-learning training. First, when working on class-balanced datasets, we prove that any solution to this model forms a simplex equiangular tight frame, which, in part, explains the recently discovered phenomenon of neural collapse [V. Papyan, X. Y. Han, D. L. Donoho, Proc. Natl. Acad. Sci. U.S.A. 117, 24652–24663 (2020)]. More importantly, when moving to the imbalanced case, our analysis of the Layer-Peeled Model reveals a hitherto-unknown phenomenon that we term Minority Collapse, which fundamentally limits the performance of deep-learning models on the minority classes. In addition, we use the Layer-Peeled Model to gain insights into how to mitigate Minority Collapse. Interestingly, this phenomenon is first predicted by the Layer-Peeled Model before being confirmed by our computational experiments.

Introduction

In the past decade, deep learning has achieved remarkable performance across a range of scientific and engineering domains (13). Interestingly, these impressive accomplishments were mostly achieved by heuristics and tricks, though often plausible, without much principled guidance from a theoretical perspective. On the flip side, however, this reality suggests the great potential a theory could have for advancing the development of deep-learning methodologies in the coming decade.

Unfortunately, it is not easy to develop a theoretical foundation for deep learning. Perhaps the most difficult hurdle lies in the nonconvexity of the optimization problem for training neural networks, which, loosely speaking, stems from the interaction between different layers of neural networks. To be more precise, consider a neural network for K-class classification (in logits), which in its simplest form reads*

f(x;Wfull)=bL+WLσ(bL1+WL1σ(σ(b1+W1x))).

Here, Wfull{W1,W2,,WL} denotes the weights of the L layers, {b1,b2,,bL} denotes the biases, and σ(·) is a nonlinear activation function such as the rectified linear unit (ReLU). Owing to the complex and nonlinear interaction between the L layers, when applying stochastic gradient descent to the optimization problem

minWfull 1Nk=1Ki=1nkL(f(xk,i;Wfull),yk)+λ2||Wfull||2, (1)

with a loss function L for training the neural network, it becomes very difficult to pinpoint how a given layer influences the output f (above, {xk,i}i=1nk denotes the training examples in the k-th class, with label yk,N=n1++nK is the total number of training examples, λ>0 is the weight decay parameter, and ||·|| throughout the paper is the 2 norm). Worse, this difficulty in analyzing deep-learning models is compounded by an ever-growing number of layers.

Therefore, any attempt to develop a tractable and comprehensive theory for demystifying deep learning would presumably first need to simplify the interaction between a large number of layers. Following this intuition, in this paper, we introduce the following optimization program as a surrogate model for Eq. 1 with the goal of unveiling quantitative patterns of deep neural networks:

minWL,H 1Nk=1Ki=1nkL(WLhk,i,yk)s.t. 1Kk=1Kwk2EW,1Kk=1K1nki=1nkhk,i2EH, (2)

where WL=[w1,,wK]RK×p is, as in Eq. 1, comprised of K linear classifiers in the last layer, H=[hk,i:1kK,1ink]Rp×N corresponds to the p-dimensional last-layer activations/features of all N training examples, and EH and EW are two positive scalars. Note that the bias terms are omitted for simplicity. Although still nonconvex, this optimization program is presumably much more amenable to analysis than the old one, Eq. 1, as the interaction now is only between two layers.

In relating Eq. 2 to Eq. 1, a first simple observation is that f(xk,i;Wfull)=WLσ(WL1σ(σ(W1xk,i))) in Eq. 1 is replaced by WLhk,i in Eq. 2. Put differently, the black- box nature of the last-layer features, namely, σ(WL1σ(σ(W1xk,i))) is now modeled by a simple decision variable hk,i for each training example, with an overall constraint on their 2 norm. Intuitively speaking, this simplification is done by peeling off the topmost layer from the neural network. Thus, we call the optimization program (1) the 1-Layer-Peeled Model, or simply the Layer-Peeled Model.

At a high level, the Layer-Peeled Model takes a top-down approach to the analysis of deep neural networks. As illustrated in Fig. 1, the essence of the modeling strategy is to break down the neural network from top to bottom, specifically singling out the topmost layer and modeling all bottom layers collectively as a single variable. In fact, the top-down perspective that we took in the development of the Layer-Peeled Model was inspired by a recent breakthrough made by Papyan, Han, and Donoho (4), who discovered a mathematically elegant and pervasive phenomenon termed neural collapse in deep-learning training. This top-down approach was also taken in refs. (59) to investigate various aspects of deep-learning models.

Fig. 1.

Fig. 1.

Illustration of Layer-Peeled Models. B represents the 2-Layer-Peeled Model, which is discussed in Section 6. For each panel, we preserve the details of the white (top) box, whereas the gray (bottom) box is modeled by a simple decision variable for every training example. (A) The 1-Layer-Peeled Model. (B) The 2-Layer-Peeled Model.

Two Applications

Despite its plausibility, the ultimate test of the Layer-Peeled Model lies in its ability to faithfully approximate deep-learning models through explaining empirical observations and, better, predicting new phenomena. In what follows, we provide convincing evidence that the Layer-Peeled Model is up to this task by presenting two findings. To be concrete, we remark that the results below are concerned with well-trained deep-learning models, which correspond to, in rough terms, (near) optimal solutions of Eq. 1.

Balanced data

Roughly speaking, neural collapse (4) refers to the emergence of certain geometric patterns of the last-layer features σ(WL1σ(σ(W1xk,i))) and the last-layer classifiers WL, when the neural network for balanced classification problems is well-trained in the sense that it is toward not only zero misclassification error, but also negligible cross-entropy loss. Specifically, the authors observed the following properties in their massive experiments: The last-layer features from the same class tend to be very close to their class mean; these K-class means centered at the global mean have the same length and form the maximally possible equal-sized angles between any pair; moreover, the last-layer classifiers become dual to the class means in the sense that they are equal to each other for each class up to a scaling factor. See a more precise description in Section B.

While it seems hopeless to rigorously prove neural collapse for multiple-layer neural networks (Eq. 1) at the moment, alternatively, we seek to show that this phenomenon emerges in the surrogate model (Eq. 2). More precisely, when the size of each class nk=n for all k, is it true that any global minimizer WL=[w1,,wK],H=[hk,i:1kK,1in] of Eq. 2 exhibits neural collapse? The following result answers this question in the affirmative:

Finding 1.

Neural collapse occurs in the Layer-Peeled Model.

A formal statement of this result and a detailed discussion are given in Section 3.

This result applies to a family of loss functions L, particularly including the cross-entropy loss and the contrastive loss (see, e.g., ref. (10)). As an immediate implication, this result provides evidence of the Layer-Peeled Model’s ability to characterize well-trained deep-learning models.

Imbalanced data

While a surrogate model would be satisfactory if it explains some already-observed phenomenon, we set a higher standard for the model, asking whether it can predict a new common empirical pattern. Encouragingly, the Layer-Peeled Model happens to meet this standard. Specifically, we consider training deep-learning models on imbalanced datasets, where some classes contain many more training examples than others. Despite the pervasiveness of imbalanced classification in many practical applications (11), the literature remains scarce on its impact on the trained neural networks from a theoretical standpoint. Here, we provide mathematical insights into this problem by using the Layer-Peeled Model. In the following result, we consider optimal solutions to the Layer-Peeled Model on a dataset with two different class sizes: The first KA majority classes each contain nA training examples (n1=n2==nKA=nA), and the remaining KBKKA minority classes each contain nB examples (nKA+1=nKA+2==nK=nB). We call RnA/nB>1 the imbalance ratio.

Finding 2.

In the Layer-Peeled Model, the last-layer classifiers corresponding to the minority classes, namely, wKA+1,wKA+2,,wK, collapse to a single vector when R is sufficiently large.

This result is elaborated on in Section 4. The derivation involves some elements to tackle the nonconvexity of the Layer-Peeled Model (Eq. 2) and the asymmetry due to the imbalance in class sizes.

In slightly more detail, we identify a phase transition as the imbalance ratio R increases: When R is below a threshold, the minority classes are distinguishable in terms of their last-layer classifiers; when R is above the threshold, they become indistinguishable. While this phenomenon is merely predicted by the simple Layer-Peeled Model (Eq. 2), it appears in our computational experiments on deep neural networks. More surprisingly, our prediction of the phase transition point is in excellent agreement with the experiments, as shown in Fig. 2.

Fig. 2.

Fig. 2.

Minority Collapse predicted by the Layer-Peeled Model (LPM; in dotted lines) and empirically observed in deep learning (DL; in solid lines) on imbalanced datasets with KA = 7 and KB=3. The y axis denotes the average cosine of the angles between any pair of the minority classifier wKA+1,,wK for both LPM and DL. The datasets we use are subsets of the CIFAR10 datasets (12), and the size of the majority classes is fixed to 5,000. The experiments use VGG13 (13) as the deep-learning architecture, with weight decay (wd) λ=5×103,5×104. The prediction is especially accurate in capturing the phase transition point where the cosine becomes 1 or, equivalently, the minority classifiers become parallel to each other. More details can be found in Section C.

This phenomenon, which we refer to as Minority Collapse, reveals the fundamental difficulty in using deep learning for classification when the dataset is widely imbalanced, even in terms of optimization, not to mention generalization. This is not a priori evident given that neural networks have a large approximation capacity (see, e.g., ref. (14)). Importantly, Minority Collapse emerges at a finite value of the imbalance ratio rather than at infinity. Moreover, even below the phase transition point of this ratio, we find that the angles between any pair of the minority classifiers are already smaller than those of the majority classes, both theoretically and empirically.

Related Work

There is a venerable line of work attempting to gain insights into deep learning from a theoretical point of view (1529). See also the reviews (3033) and references therein.

The work of neural collapse by ref. (4) in this body of work is particularly noticeable with its mathematically elegant and convincing insights. In brief, ref. (4) observed the following four properties of the last-layer features and classifiers in deep-learning training on balanced datasets:

(NC1) Variability collapse: The within-class variation of the last-layer features becomes 0, which means that these features collapse to their class means.

(NC2) The class means centered at their global mean collapse to the vertices of a simplex equiangular tight frame (ETF) up to scaling.

(NC3) Up to scaling, the last-layer classifiers each collapse to the corresponding class means.

(NC4) The network’s decision collapses to simply choosing the class with the closest Euclidean distance between its class mean and the activations of the test example.

Now we give the formal definition of ETF (4, 34).

Definition 1.

A K-simplex ETF is a collection of points in Rp specified by the columns of the matrix

M=KK1P(IK1K1K1K),

where IKRK×K is the identity matrix, 1K is the ones vector, and PRp×K (pK)§ is a partial orthogonal matrix such that PP=IK.

A common setup of the experiments for validating neural collapse is the use of the cross-entropy loss with 2 regularization, which corresponds to weight decay in stochastic gradient descent. Based on convincing arguments and numerical evidence, ref. (4) demonstrated that the symmetry and stability of neural collapse improve deep-learning training in terms of generalization, robustness, and interpretability. Notably, these improvements occur with the benign overfitting phenomenon (3539) during the terminal phase of training—when the trained model interpolates the in-sample training data.

In passing, we remark that concurrent works (4043) produced neural collapse using different surrogate models. In slightly more detail, refs. (4042) obtained their models by peeling off the topmost layer. The difference, however, is that refs. (41) and (42) considered models that impose a norm constraint for each class, as opposed to an overall constraint, as employed in the Layer-Peeled Model. Moreover, ref. (40) analyzed gradient flow with an unconstrained features model using the squared loss instead of the cross-entropy loss. The work in ref. (43) provided an insightful perspective for the analysis of neural networks using convex duality. Relying on a convex formulation that is in the same spirit as our semidefinite programming relaxation, the authors of ref. (43) observed neural collapse in their ReLU-based model by leveraging strong duality under certain conditions.

Derivation

In this section, we heuristically derive the Layer-Peeled Model as an analytical surrogate for well-trained neural networks. Although our derivation lacks rigor, the goal is to reduce the complexity of the optimization problem (Eq. 1) while roughly preserving its structure. Notably, the penalty λ2||Wfull||2 corresponds to weight decay used in training deep-learning models, which is necessary for preventing this optimization program from attaining its minimum at infinity when L is the cross-entropy loss. For simplicity, we omit the biases in the neural network f(xk,i;Wfull).

Taking a top-down standpoint, our modeling strategy starts by singling out the weights WL of the topmost layer and rewriting Eq. 1 as

minWL,H 1Nk=1Ki=1nkL(WLh(xk,i;WL),yk)+λ2||WL||2+λ2||WL||2, (3)

where the last-layer feature function h(xk,i;WL)σ(WL1σ(σ(W1xk,i))) and WL denotes the weights from all layers but the last layer. From the Lagrangian dual viewpoint, a minimum of the optimization program above is also an optimal solution to

minWL,WL1Nk=1Ki=1nkL(WLh(xk,i;WL),yk)s.t.||WL||2C1,||WL||2C2, (4)

for some positive numbers C1 and C2. To clear up any confusion, note that due to its nonconvexity, Eq. 3 may admit multiple global minima, and each in general corresponds to different values of C1,C2. Next, we can equivalently write Eq. 4 as

minWL,H1Nk=1Ki=1nkL(WLhk,i,yk)s.t.||WL||2C1,H{H(WL):||WL||2C2}, (5)

where H=[hk,i:1kK,1ink] denotes a decision variable, and the function H(WL) is defined as H(WL)[h(xk,i;WL):1kK,1ink] for any WL.

To simplify Eq. 5, we make the ansatz that the range of h(xk,i;WL) under the constraint ||WL||2C2 is approximately an ellipse in the sense that

{H(WL):||WL||2C2}{H:k=1K1nki=1nk||hk,i||2C2}, (6)

for some C2>0. Loosely speaking, this ansatz asserts that H should be regarded as a variable in an 2 space. To shed light on the rationale behind the ansatz, note that hk,i intuitively lives in the dual space of W in view of the appearance of the product Whk,i in the objective. Furthermore, W is in an 2 space for the 2 constraint on it. Last, note that 2 spaces are self-dual.

Inserting this approximation into Eq. 5, we obtain the following optimization program, which we call the Layer-Peeled Model:

minW,H1Nk=1Ki=1nkL(Whk,i,yk)s.t.1Kk=1Kwk2EW,1Kk=1K1nki=1nkhk,i2EH. (7)

For simplicity, above and henceforth we write WWL[w1,,wK] for the last-layer classifiers/weights and the thresholds EW=C1/K and EH=C2/K.

This optimization program is nonconvex but, as we will show soon, is generally mathematically tractable for analysis. On the surface, the Layer-Peeled Model has no dependence on the data {xk,i}, which, however, is not the correct picture, since the dependence has been implicitly incorporated into the threshold EH.

In passing, we remark that neural collapse does not emerge if the second constraint of Eq. 7 uses the q norm for any q2 (strictly speaking, q is not a norm when q < 1), in place of the 2 norm. This fact in turn justifies in part the ansatz Eq. 6. This result is formally stated in Proposition 2 in Section 6.

Layer-Peeled Model for Explaining Neural Collapse

In this section, we consider training deep neural networks on a balanced dataset—that is, nk = n for all classes 1kK. Our main finding is that the Layer-Peeled Model displays the neural collapse phenomenon, just as in deep-learning training (4). The proofs are all deferred to SI Appendix. Throughout this section, we assume pK1 unless otherwise specified. This assumption is satisfied in many popular network architectures, where p is usually tens or hundreds of times of K.

Cross-Entropy Loss

The cross-entropy loss is perhaps the most popular loss used in training deep-learning models for classification tasks. This loss function takes the form

L(z,yk)=log(exp(z(k))k=1Kexp(z(k))), (8)

where z(k) denotes the k -th entry of the logit z. Recall that yk is the label of the k-th class, and the feature z is set to Whk,i in the Layer-Peeled Model (Eq. 7). In contrast to the complex deep neural networks, which are often considered a black-box, the Layer-Peeled Model is much easier to deal with. As an exemplary use case, the following result shows that any minimizer of the Layer-Peeled Model (Eq. 7) with the cross-entropy loss admits an almost closed-form expression.

Theorem 1.

In the balanced case, any global minimizer W[w1,,wK],H[hk,i:1kK,1in] of Eq. 7 with the cross-entropy loss obeys

hk,i=Cwk=Cmk, (9)

for all 1in,1kK, where the constants C=EH/EW,C=EH, and the matrix [m1,,mK] forms a K-simplex ETF specified in Definition 1.

Remark 2.

Note that the minimizers (W,H) ’s are equivalent to each other up to rotation. This is because of the rational invariance of simplex ETFs (see P in Definition 1).

This theorem demonstrates the highly symmetric geometry of the last-layer features and weights of the Layer-Peeled Model, which is precisely the phenomenon of neural collapse. Explicitly, Eq. 9 says that all within-class (last-layer) features are the same: hk,i=hk,i for all 1i,in; next, it also says that the K-class-mean features hkhk,i together exhibit a K-simplex ETF up to scaling, from which we immediately conclude that

cos(hk,hk)=1K1, (10)

for any kk by Definition 1; in addition, Eq. 9 also displays the precise duality between the last-layer classifiers and features. Taken together, these facts indicate that the minimizer (W,H) satisfies exactly (NC1)–(NC3). Last, Property (NC4) is also satisfied by recognizing that, for any given last-layer features h, the predicted class is argmaxkwk·h, where a·b denotes the inner product of the two vectors. Note that the prediction satisfies

argmaxkwk·h=argmaxkhk·h=argmink||hkh||2.

Conversely, the presence of neural collapse in the Layer-Peeled Model offers evidence of the effectiveness of our model as a tool for analyzing neural networks. To be complete, we remark that other models were very recently proposed to justify the neural collapse phenomenon (4042) (see also ref. (44)).

Extensions to Other Loss Functions

In the modern practice of deep learning, various loss functions are employed to take into account the problem characteristics. Here, we show that the Layer-Peeled Model continues to exhibit the phenomenon of neural collapse for some popular loss functions.

Contrastive loss

Contrastive losses have been extensively used recently in both supervised and unsupervised deep learning (10, 4547). These losses pull similar training examples together in their embedding space while pushing apart dissimilar examples. Here, we consider the supervised contrastive loss (48), which (in the balanced case) is defined through the last-layer features by introducing Lc as

1nj=1nlog(exp(hk,i·hk,j/τ)k=1K=1nexp(hk,i·hk,/τ)), (11)

where τ>0 is a parameter. Note that this loss function uses the label information implicitly. As the loss does not involve the last-layer classifiers explicitly, the Layer-Peeled Model in this case takes the form**

minH1Nk=1Ki=1nLc(hk,i,yk)s.t.1Kk=1K1ni=1nhk,i2EH. (12)

We show that this Layer-Peeled Model also exhibits neural collapse in its last-layer features, even though the label information is not explicitly explored in the loss.

Theorem 3.

Any global minimizer of Eq. 12 satisfies

hk,i=EHmk, (13)

for all 1kK and 1in, where [m1,,mK] forms a K-simplex ETF.

Theorem 3 shows that the contrastive loss in the associated Layer-Peeled Model does a perfect job in pulling together training examples from the same class. Moreover, as seen from the denominator in Eq. 11, minimizing this loss would intuitively render the between-class inner products of last-layer features as small as possible, thereby pushing the features to form the vertices of a K-simplex ETF up to scaling.

Softmax-based loss

The cross-entropy loss can be thought of as a softmax-based loss. To see this, define the softmax transform as

S(z)=[exp(z((1)))k=1Kexp(z(k)),,exp(z(K))k=1Kexp(z(k))],

for zRK. Let g1 be any nonincreasing convex function and g2 be any nondecreasing convex function, both defined on (0, 1). We consider a softmax-based loss function that takes the form

L(z,yk)=g1(S(z)(k))+k=1, kkKg2(S(z)(k)). (14)

Here, S(z)(k) denotes the k-th element of S(z). Taking g1(x)=logx and g20, we recover the cross-entropy loss. Another example is to take g1(x)=(1x)q and g2(x)=xq for q>1, which can be implemented in most deep-learning libraries, such as PyTorch (49).

We have the following theorem regarding the softmax-based loss functions in the balanced case.

Theorem 4.

Assume EHEW>K1Klog(K2EHEW+ (2K1)(K1)). For any loss function defined in Eq. 14, (W,H) given by Eq. 9 is a global minimizer of Eq. 7. Moreover, if g2 is strictly convex and at least one of g1g2 is strictly monotone, then any global minimizer must be given by Eq. 9.

In other words, neural collapse continues to emerge with softmax-based losses under mild regularity conditions. The first part of this theorem does not preclude the possibility that the Layer-Peeled Model admits solutions other than Eq. 9. When applied to the cross-entropy loss, it is worth pointing out that this theorem is a weak version of Theorem 1, albeit more general. Regarding the first assumption in Theorem 4, note that EH and EW would be arbitrarily large if the weight decay λ in Eq. 1 is sufficiently small, thereby meeting the assumption concerning EHEW in this theorem.

We remark that Theorem 4 does not require the convexity of the loss L. To circumvent the hurdle of nonconvexity, our proof in SI Appendix presents several elements.

In passing, we leave the experimental confirmation of neural collapse with these loss functions for future work.

Layer-Peeled Model for Predicting Minority Collapse

Deep-learning models are often trained on datasets where there is a disproportionate ratio of observations in each class (5052). For example, in the Places2 challenge dataset (53), the number of images in its majority scene categories is about eight times that in its minority classes. Another example is the Ontonotes dataset for part-of-speech tagging (54), where the number of words in its majority classes can be more than 100 times that in its minority classes. While empirically, the imbalance in class sizes often leads to inferior model performance of deep learning (see, e.g., ref. (11)), there remains a lack of a solid theoretical footing for understanding its effect, perhaps due to the complex details of deep-learning training.

In this section, we use the Layer-Peeled Model to seek a fine-grained characterization of how class imbalance impacts neural networks that are trained for a sufficiently long time. In particular, neural collapse no longer emerges in the presence of class imbalance (see numerical evidence in SI Appendix, Fig. S2). Instead, our analysis predicts a phenomenon we term Minority Collapse, which fundamentally limits the performance of deep learning, especially on the minority classes, both theoretically and empirically. All omitted proofs are relegated to SI Appendix.

Technique: Convex Relaxation

When it comes to imbalanced datasets, the Layer-Peeled Model no longer admits a simple expression for its minimizers as in the balanced case, due to the lack of symmetry between classes. This fact results in, among others, an added burden on numerically computing the solutions of the Layer-Peeled Model.

To overcome this difficulty, we introduce a convex optimization program as a relaxation of the nonconvex Layer-Peeled Model (Eq. 7), relying on the well-known result for relaxing a quadratically constrained quadratic program as a semidefinite program (see, e.g., ref. (55)). To begin with, defining hk as the feature mean of the k-th class (i.e., hk1nki=1nkhk,i), we introduce a decision variable X[h1,h2,,hK,W][h1,h2,,hK,W]R2K×2K. By definition, X is positive semidefinite and satisfies

1Kk=1KX(k,k)=1Kk=1K||hk||2a1Kk=1K1nki=1nkhk,i2EH,

and

1Kk=K+12KX(k,k)=1Kk=1K||wk||2EW,

where a follows from the Cauchy–Schwarz inequality. Thus, we consider the following semidefinite programming problem:#

minXR2K×2K k=1KnkNL(zk,yk)s.t. X0,1Kk=1KX(k,k)EH, 1Kk=K+12KX(k,k)EW,for all1kK,zk=[X(k,K+1),X(k,K+2),,X(k,2K) ]. (15)

Lemma 1 below relates the solutions of Eq. 15 to that of Eq. 7.

Lemma 1.

Assume p2K and the loss function L is convex in its first argument. Let X be a minimizer of the convex program [15]. Define (H,W) as

[h1,h2,,hK, (W)]=P(X)1/2,hk,i=hk, for all1in,1kK, (16)

where (X)1/2 denotes the positive square root of X and PRp×2K is any partial orthogonal matrix such that PP=I2K. Then, (H,W) is a minimizer of Eq. 7. Moreover, if all Xs satisfy 1Kk=1KX(k,k)=EH, then all the solutions of Eq. 7. are in the form of Eq. 16.

This lemma in effect says that the relaxation does not lead to any loss of information when we study the Layer-Peeled Model through a convex program, thereby offering a computationally efficient tool for gaining insights into the terminal phase of training deep neural networks on imbalanced datasets. An appealing feature is that the size of the program [15] is independent of the number of training examples. Besides, this lemma predicts that even in the imbalanced case, the last-layer features collapse to their class means under mild conditions. Therefore, Property (NC1) is satisfied (see more discussion about the condition in SI Appendix).

The assumption of the convexity of L in the first argument is satisfied by a large class of loss functions. The condition that the first K-diagonal elements of any X make the associated constraint saturated is also not restrictive. For example, we prove in SI Appendix that this condition is satisfied for the cross-entropy loss. We also remark that Eq. 15 is not the unique convex relaxation. An alternative is to relax Eq. 7 via a nuclear norm-constrained convex program (56), (57) (see more details in SI Appendix).

Minority Collapse

With the technique of convex relaxation in place, now we numerically solve the Layer-Peeled Model on imbalanced datasets, with the goal of identifying possible nontrivial patterns. As a worthwhile starting point, we consider a dataset that has KA majority classes, each containing nA training examples, and KB minority classes, each containing nB training examples. That is, assume n1=n2==nKA=nA and nKA+1=nKA+2==nK=nB. For convenience, call RnA/nB>1 the imbalance ratio. Note that the case R=1 reduces to the balanced setting.

An important question is to understand how the KB last-layer minority classifiers behave as the imbalance ratio R increases, as this is directly related to the model performance on the minority classes. To address this question, we show that the average cosine of the angles between any pair of the KB minority classifiers in Fig. 3 by solving the simple convex program [15]. This figure reveals a two-phase behavior of the minority classifiers wKA+1,wKA+2,,wK as R increases:

  • 1.

    When R<R0 for some R0>0, the average between-minority-class angle becomes smaller as R increases.

  • 2.

    Once RR0, the average between-minority-class angle becomes zero, and, in addition, the minority classifiers have about the same length. This implies that all the minority classifiers collapse to a single vector.

Fig. 3.

Fig. 3.

The average cosine of the angles between any pair of the minority classifier solved from the Layer-Peeled Model. The average cosine reaches 1 once R is above some threshold. The total number of classes KA+KB is fixed to 10. The gray dash-dotted line indicates the value of 1K1, which is given by Eq. 10. The between-majority-class angles can still be large, even when Minority Collapse emerges. Notably, our simulation suggests that the minority classifiers exhibit an equiangular frame, and so do the majority classifiers. (A) EW=1, EH = 5. (B) EW=1, EH = 10.

Above, the phase transition point R0 depends on the class sizes KA,KB and the thresholds EH,EW. This value becomes smaller when EW,EH, or the number of minority classes KB is smaller while fixing the other parameters (see more numerical examples in SI Appendix, Fig. S2).

We refer to the phenomenon that appears in the second phase as Minority Collapse. While it can be expected that the minority classifiers become closer to each other as the level of imbalance increases, surprisingly, these classifiers become completely indistinguishable once R hits a finite value. Once Minority Collapse takes place, the neural network would predict equal probabilities for all the minority classes, regardless of the input. As such, its predictive ability is by no means better than a coin toss when conditioned on the minority classes. This situation would only get worse in the presence of adversarial perturbations. This phenomenon is especially detrimental when the minority classes are more frequent in the application domains than in the training data. Even outside the regime of Minority Collapse, the classification might still be unreliable if the imbalance ratio is large, as the softmax predictions for the minority classes can be close to each other.

To put the observations in Fig. 3 on a firm footing, we prove in the theorem below that Minority Collapse indeed emerges in the Layer-Peeled Model as R tends to infinity.

Theorem 5.

Assume pK and nA/nB, and fix KA and KB. Let (H,W) be any global minimizer of the Layer-Peeled Model (Eq. 7) with the cross-entropy loss. As RnA/nB, we have

limwkwk=0p, for allKA<k<kK.

To intuitively see why Minority Collapse occurs, first note that the majority classes become the predominant part of the risk function as the level of imbalance increases. The minimization of the objective, therefore, pays too much emphasis on the majority classifiers, encouraging the between-majority-class angles to grow and meanwhile shrinking the between-minority-class angles to zero. As an aside, an interesting question for future work is to prove that wk and wk are exactly equal for sufficiently large R.

Experiments

At the moment, Minority Collapse is merely a prediction of the Layer-Peeled Model. An immediate question thus is: Does this phenomenon really occur in real-world neural networks? At first glance, it does not necessarily have to be the case since the Layer-Peeled Model is a dramatic simplification of deep neural networks.

To address this question, we resort to computational experiments.## Explicitly, we consider training two network architectures, VGG and ResNet (58), on the FashionMNIST (59) and CIFAR10 datasets and, in particular, replace the dropout layers in VGG with batch normalization (60). As both datasets have 10 classes, we use three combinations of (KA,KB)=(3,7),(5,5),(7,3) to split the data into majority classes and minority classes. In the case of FashionMNIST (CIFAR10), we let the KA majority classes each contain all the nA=6,000 (nA=5,000) training examples from the corresponding class of FashionMNIST (CIFAR10), and the KB minority classes each have nB=6,000/R (nB=5,000/R) examples randomly sampled from the corresponding class. The rest of the experiment setup is basically the same as ref. (4). In detail, we use the cross-entropy loss and stochastic gradient descent with momentum 0.9 and weight decay λ=5×104. The networks are trained for 350 epochs with a batch size of 128. The initial learning is annealed by a factor of 10 at 1/3 and 2/3 of the 350 epochs. The only difference from ref. (4) is that we simply set the learning rate to 0.1 instead of sweeping over 25 learning rates between 0.0001 and 0.25. This is because the test performance of our trained models is already comparable with their best reported test accuracy. Detailed training and test performance are displayed in SI Appendix, Tables S1 and S2.

The results of the experiments above are displayed in Fig. 4. This figure clearly indicates that the angles between the minority classifiers collapse to zero as soon as R is large enough. Moreover, the numerical examination in Table 1 shows that the norm of the classifier is constant across the minority classes. Taken together, these two pieces clearly give evidence for the emergence of Minority Collapse in these neural networks, thereby further demonstrating the effectiveness of our Layer-Peeled Model. Besides, Fig. 4 also shows that the issue of Minority Collapse is compounded when there are more majority classes, which is consistent with Fig. 3.

Fig. 4.

Fig. 4.

Occurrence of Minority Collapse in deep neural networks. Each curve denotes the average between-minority-class cosine. We fix KA+KB=10. In particular, B shares the same setting with Fig. 2 in Section 1, where the LPM-based predictions are given by (EW,EH) such that the two constraints in the Layer-Peeled Model become active for the weights of the trained networks. For ResNet 18, Minority Collapse also occurs as long as R is sufficiently large. Specifically, the average cosine would hit 1 for KA = 7 when R = 5, 000 on CIFAR10, and when R = 3, 000 on FashionMNIST. (A) VGG11 on FashionMNIST. (B) VGG13 on CIFAR10. (C) ResNet18 on FashionMNIST. (D) ResNet18 on CIFAR10.

Table 1.

Variability of the lengths of the minority classifiers when R=

Dataset FashionMNIST CIFAR10
Network architecture VGG11 ResNet18 VGG13 ResNet18
No. of majority classes K A = 3 KA = 5 KA = 7 KA = 3 KA = 5 KA = 7 KA = 3 KA = 5 KA = 7 KA = 3 KA = 5 KA = 7
Norm variation 2.7×105 4.4×108 6.0×108 1.4×105 5.08 6.3×108 1.4×104 9.0×107 5.2×108 5.4×105 3.5×107 5.4×108

Each number in the row of “norm variation” is Std(||wB||)/Avg(||wB||), where Std(||wB||) denotes the SD of the lengths of the KB classifiers and the denominator denotes the average. The results indicate that the classifiers of the minority classes have almost the same length.

Next, in order to get a handle on how Minority Collapse impacts the test accuracy, we plot the results of another numerical study in Fig. 5. The setting is the same as Fig. 4, except that now we randomly sample six or five examples per class for the minority classes, depending on whether the dataset is FashionMNIST or CIFAR10. The results show that the performance of the trained model deteriorates in the test data when the imbalance ratio R = 1, 000, when Minority Collapse has occurred or is about to occur. This is by no means intuitive a priori, as the test performance is only restricted to the minority classes and a large value of R only leads to more training data in the majority classes without affecting the minority classes at all.

Fig. 5.

Fig. 5.

Comparison of the test accuracy on the minority classes between R = 1 and R = 1, 000. We fix KA+KB=10 and use nB = 6 (nB = 5) training examples from each minority class and nA=6R (nA=5R) training examples from each majority class in FashionMNIST (CIFAR10). Note that when R = 1, 000, the test accuracy on the minority classes can be lower than 10% because the trained neural networks misclassify many examples in the minority classes as some majority classes. (A) VGG11 on FashionMNIST. (B) VGG13 on CIFAR10. (C) ResNet18 on FashionMNIST. (D) ResNet18 on CIFAR10.

It is worthwhile to mention that the emergence of Minority Collapse would prevent the model from achieving zero training error. This is because its prediction is uniform over the minority classes, and, therefore, the “argmax” rule does not give the correct label for a training example from a minority class. As such, the occurrence of Minority Collapse is a departure from the terminal phase of deep-learning training. While this fact seems to contradict conventional wisdom on the approximation power of deep learning, it is important to note that the constraints in the Layer-Peeled Model or, equivalently, weight decay in neural networks limits the expressive power of deep-learning models. Besides, it is equally important to recognize that the training error, which mostly occurs in the minority classes, is actually very small when Minority Collapse emerges since the minority examples only account for a small portion of the entire training set. In this spirit, the aforementioned departure is not as significant as it appears at first glance since the training error is generally, if not always, not exactly zero (see, e.g., ref. (4)). From an optimization point of view, a careful examination indicates that Minority Collapse can be attributed to the two constraints in the Layer-Peeled Model or the 2 regularization in Eq. 1. For example, Fig. 2 shows that Minority Collapse occurs earlier with a larger value of λ. However, this issue does not disappear by simply setting a small penalty coefficient λ, as the imbalance ratio can be arbitrarily large.

How to Mitigate Minority Collapse?

In this section, we further exploit the use of the Layer-Peeled Model in an attempt to lessen the detrimental effect of Minority Collapse. Instead of aiming to develop a full set of methodologies to overcome this issue, which is beyond the scope of the paper, our aim is to evaluate some simple techniques used for imbalanced datasets.

Among many approaches to handling class imbalance in deep learning (see the review in ref. (11)), perhaps the most popular one is to oversample training examples from the minority classes (6164). In its simplest form, this sampling scheme retains all majority training examples while duplicating each training example from the minority classes for wr times, where the oversampling rate wr is a positive integer. Oversampling in effect transforms the original problem to the minimization of an optimization problem by replacing the risk term in Eq. 1 with

1nAKA+wrnBKB[k=1KAi=1nAL(f(xk,i;Wfull),yk)+wrk=KA+1Ki=1nBL(f(xk,i;Wfull),yk)], (17)

while keeping the penalty term λ2||Wfull||2. Note that oversampling is closely related to weight adjusting (see more discussion in SI Appendix).

A close look at Eq. 17 suggests that the neural network obtained by minimizing this program might behave as if it were trained on a (larger) dataset with nA and wrnB examples in each majority class and minority class, respectively. To formalize this intuition, as earlier, we start by considering the Layer-Peeled Model in the case of oversampling:

minH,W 1N[k=1KAi=1nAL(Whk,i,yk)+wrk=KA+1Ki=1nBL(Whk,i,yk)]s.t. 1Kk=1Kwk2EW,1Kk=1KA1nAi=1nAhk,i2+1Kk=KA+1K1nBi=1nBhk,i2EH, (18)

where NnAKA+wrnBKB.

The following result confirms our intuition that oversampling indeed boosts the size of the minority classes for the Layer-Peeled Model.

Proposition 1.

Assume p2K and the loss function L is convex in the first argument. Let X be any minimizer of the convex program [15] with n1=n2==nKA=nA and nKA+1=nKA+2==nK=wrnB. Define (H,W) as

[h1,h2,,hK,(W)]=P(X)1/2,  hk,i=hk, for all1inA,1kKA,  hk,i=hk, for all1inB,KA<kK, (19)

where PRp×2K is any partial orthogonal matrix such that PP=I2K. Then, (H,W) is a global minimizer of the oversampling-adjusted Layer-Peeled Model (Eq. 18). Moreover, if all X ’s satisfy 1Kk=1KX(k,k)=EH, then all the solutions of Eq. 18 are in the form of Eq. 19.

Together with Lemma 1, Proposition 1 shows that the number of training examples in each minority class is now in effect wrnB instead of nB in the Layer-Peeled Model. In the special case wr=nA/nBR, the results show that all the angles are equal between any given pair of the last-layer classifiers, no matter if they fall in the majority or minority classes.

We turn to Fig. 6 for an illustration of the effects of oversampling on real-world deep-learning models, using the same experimental setup as in Fig. 5. From Fig. 6, we see that the angles between pairs of the minority classifiers become larger as the oversampling rate wr increases. Consequently, the issue of Minority Collapse becomes less detrimental in terms of training accuracy as wr increases. This again corroborates the predictive ability of the Layer-Peeled Model.

Fig. 6.

Fig. 6.

Effect of oversampling when the imbalance ratio is R = 1, 000. Each plot shows the average cosine of the between-minority-class angles. The results indicate that increasing the oversampling rate would enlarge the between-minority-class angles. (A) VGG11 on FashionMNIST. (B) VGG13 on CIFAR10. (C) ResNet18 on FashionMNIST. (D) ResNet18 on CIFAR10.

Next, we refer to Table 2 for effect on the test performance. The results clearly demonstrate the improvement in test accuracy using oversampling, with certain choices of the oversampling rate. The improvement is noticeable on both the minority classes and all classes.

Table 2.

Test accuracy (%) on FashionMNIST when R = 1, 000

Network architecture VGG11 ResNet18
No. of majority classes K A = 3 KA = 5 KA = 7 KA = 3 KA = 5 KA = 7
Original (minority) 15.29 20.30 17.00 30.66 34.26 5.53
Oversampling (minority) 41.13 57.22 30.50 37.86 53.46 8.13
Improvement (minority) 25.84 36.92 13.50 7.20 19.20 2.60
Original (overall) 40.10 57.61 69.09 50.88 64.89 66.13
Oversampling (overall) 58.25 76.17 73.37 55.91 74.56 67.10
Improvement (overall) 18.15 18.56 4.28 5.03 9.67 0.97

For example, “Original (minority)” means that the test accuracy is evaluated only on the minority classes, and oversampling is not used. When oversampling is used, we report the best test accuracy among four oversampling rates: 1, 10, 100, and 1,000. The best test accuracy is never achieved at wr=1,000, indicating that oversampling with a large wr would impair the test performance.

Behind the results of Table 2, however, it reveals an issue when addressing Minority Collapse by oversampling. Specifically, this technique might lead to degradation of test performance using a very large oversampling rate wr, which, though, can mitigate Minority Collapse. How can we efficiently select an oversampling rate for optimal test performance? More broadly, Minority Collapse does not seem likely to be fully resolved by sampling-based approaches alone, and the doors are wide open for future investigation.

Discussion

In this paper, we have developed the Layer-Peeled Model as a simple, yet effective, modeling strategy toward understanding well-trained deep neural networks. The derivation of this model follows a top-down strategy by isolating the last layer from the remaining layers. Owing to the analytical and numerical tractability of the Layer-Peeled Model, we provide some explanation of a recently observed phenomenon called neural collapse in deep neural networks trained on balanced datasets (4). Moving to imbalanced datasets, an analysis of this model suggests that the last-layer classifiers corresponding to the minority classes would collapse to a single vector once the imbalance level is above a certain threshold. This phenomenon, which we refer to as Minority Collapse, occurs consistently in our computational experiments.

The efficacy of the Layer-Peeled Model in analyzing well-trained deep-learning models implies that the ansatz Eq. 6—a crucial step in the derivation of this model—is at least a useful approximation. Moreover, this ansatz can be further justified by the following result in an indirect manner, which, together with Theorem 1, shows that the 2 norm suggested by the ansatz happens to be the only choice among all the q norms that is consistent with empirical observations. Its proof is given in SI Appendix.

Proposition 2.

Assume K3 and pK.### For any q(0,2)(2,), consider the optimization problem

minW,H1Nk=1Ki=1nL(Whk,i,yk)s.t.1Kk=1Kwk2EW,1Kk=1K1ni=1nhk,iqqEH, (20)

where L is the cross-entropy loss. Then, any global minimizer of this program does not satisfy Eq. 9 for any positive numbers C and C. That is, neural collapse does not emerge in this model.

While the Layer-Peeled Model has demonstrated its noticeable effectiveness, it requires future investigation for consolidation and extension. First, an analysis of the gap between the Layer-Peeled Model and well-trained deep-learning models would be a welcome advance. For example, how does the gap depend on the neural network architectures? How to take into account the sparsity of the last-layer features when using the ReLU activation function? From a different angle, a possible extension is to retain multiple layers following the top-down viewpoint. Explicitly, letting 1m<L be the number of the top layers we wish to retain in the model, we can represent the prediction of the neural network as f(x,Wfull)=f(h(x;W1:(Lm)),W(Lm+1):L) by letting W1:(Lm) and W(Lm+1):L be the first Lm layers and the last m layers, respectively. Consider the m-Layer-Peeled Model:

minW,H1Nk=1Ki=1nkL(f(hk,i,W(Lm+1):L),yk)s.t.1K||W(Lm+1):L||2EW,1Kk=1K1nki=1nkhk,i2EH.

The two constraints might be modified to take into account the network architectures. An immediate question is whether this model with m=2 is capable of capturing new patterns of deep-learning training.

From a practical standpoint, the Layer-Peeled Model together with its convex relaxation Eq. 15 offers an analytical and computationally efficient technique to identify and mitigate bias induced by class imbalance. An interesting question is to extend Minority Collapse from the case of two-valued class sizes to general imbalanced datasets. Next, as suggested by our findings in Section 5, how should we choose loss functions in order to mitigate Minority Collapse (64)? Last, a possible use case of the Layer-Peeled Model is to design more efficient sampling schemes to take into account fairness considerations (6567).

Broadly speaking, insights can be gained not only from the Layer-Peeled Model, but also from its modeling strategy. The details of empirical deep-learning models, though formidable, can often be simplified by rendering a certain part of the network modular. When the interest is about the top few layers, for example, this paper clearly demonstrates the benefits of taking a top-down strategy for modeling neural networks, especially in consolidating our understanding of previous results and in discovering new patterns. Owing to its mathematical convenience, the Layer-Peeled Model shall open the door for future research extending these benefits.

Acknowledgments

We are grateful to X. Y. Han for helpful discussions and feedback on an early version of the manuscript. We thank Gang Wen and Qinqing Zheng for helpful comments. We thank the two anonymous referees for their constructive comments that helped improve the presentation of this work. This work was supported in part by NIH Grant RF1AG063481; NSF Grants CAREER DMS-1847415 and CCF-1934876; an Alfred Sloan Research Fellowship; and the Wharton Dean’s Research Fund.

Footnotes

The authors declare no competing interest.

This article is a PNAS Direct Submission.

This article contains supporting information online at https://www.pnas.org/lookup/suppl/doi:10.1073/pnas.2103091118/-/DCSupplemental.

*The softmax step is implicitly included in the loss function, and we omit other operations such as max-pooling for simplicity.

Strictly speaking, in the presence of an 2 regularization term, which is equivalent to weight decay, the cross-entropy loss evaluated at any global minimizer of Eq. 1. is bounded away from 0.

See the mathematical description of neural collapse in Theorem 1.

§To be complete, we only require pK1. When p=K1, we can choose P such that [P,1K] is an orthogonal matrix.

Denoting by (WL,WL) an optimal solution to Eq. 3, then we can take C1=||WL||2 and C2=||WL||2.

Note that the cosine value 1K1 corresponds to the largest possible angle for any K points that have an equal 2 norm and equal-sized angles between any pair. As pointed out in (4), the largest angle implies a large-margin solution (6).

**In Eq. 11, hk,ih(xk,i,WL) depends on the data, whereas in Eq. 12, hk,i ’s form the decision variable H.

#Although Eq. 15 involves a semidefinite constraint, it is not a semidefinite program in the strict sense because a semidefinite program uses a linear objective function.

##Our code is publicly available at https://github.com/HornHehhf/LPM.

###See discussion in the case K = 2 in SI Appendix.

Data Availability

All study data are included in the article and/or supporting information. Our code is publicly available at GitHub (https://github.com/HornHehhf/LPM).

References

  • 1.Krizhevsky A., Sutskever I., Hinton G. E., ImageNet classification with deep convolutional neural networks. Commun. ACM 60, 84–90 (2017). [Google Scholar]
  • 2.LeCun Y., Bengio Y., Hinton G., Deep learning. Nature 521, 436–444 (2015). [DOI] [PubMed] [Google Scholar]
  • 3.Silver D., et al., Mastering the game of Go with deep neural networks and tree search. Nature 529, 484–489 (2016). [DOI] [PubMed] [Google Scholar]
  • 4.Papyan V., Han X. Y., Donoho D. L., Prevalence of neural collapse during the terminal phase of deep learning training. Proc. Natl. Acad. Sci. U.S.A. 117, 24652–24663 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 5.Webb A. R., Lowe D., The optimised internal representation of multilayer classifier networks performs nonlinear discriminant analysis. Neural Netw. 3, 367–375 (1990). [Google Scholar]
  • 6.Soudry D., Hoffer E., Nacson M. S., Gunasekar S., Srebro N., The implicit bias of gradient descent on separable data. J. Mach. Learn. Res. 19, 2822–2878 (2018). [Google Scholar]
  • 7.Oymak S., Soltanolkotabi M., Toward moderate overparameterization: Global convergence guarantees for training shallow neural networks. IEEE J. on Sel. Areas Inf. Theory 1, 84–105 (2020). [Google Scholar]
  • 8.Yu Y., Chan K. H. R., You C., Song C., Ma Y., Learning diverse and discriminative representations via the principle of maximal coding rate reduction. Adv. Neural Inf. Process. Syst. 33, 9422–9434 (2020). [Google Scholar]
  • 9.Shamir O., Gradient methods never overfit on separable data. arXiv [Preprint] (2020). https://arxiv.org/abs/2007.00028 (Accessed 20 December 2020).
  • 10.Chen T., Kornblith S., Norouzi M., Hinton G., “A simple framework for contrastive learning of visual representations” in Proceedings of the 37th International Conference on Machine Learning, Daumé H. III, Singh A., Eds. (Proceedings of Machine Learning Research, Vienna, Austria, 2020), vol. 119, pp. 1597–1607. [Google Scholar]
  • 11.Johnson J. M., Khoshgoftaar T. M., Survey on deep learning with class imbalance. J. Big Data 6, 27 (2019). [Google Scholar]
  • 12.Krizhevsky A., “Learning multiple layers of features from tiny images,” Master’s thesis, University of Toronto, Toronto, Canada (2009).
  • 13.Simonyan K., Zisserman A., “Very deep convolutional networks for large-scale image recognition” in ICLR 2015: 3rd International Conference on Learning Representations, Bengio Y., LeCun Y., Eds. (ICLR, San Diego, CA, 2015). [Google Scholar]
  • 14.Yarotsky D., Error bounds for approximations with deep ReLU networks. Neural Netw. 94, 103–114 (2017). [DOI] [PubMed] [Google Scholar]
  • 15.Jacot A., Gabriel F., Hongler C., “Neural tangent kernel: Convergence and generalization in neural networks” in NeurIPS 2018: 32nd Conference on Neural Information Processing Systems, Bengio S., et al., Eds. (Curran Associates, Inc., Montreal, Canada, 2018), vol. 31, pp. 8580–8589. [Google Scholar]
  • 16.Du S. S., Lee J. D., Li H., Wang L., Zhai X., “Gradient descent finds global minima of deep neural networks” in Proceedings of the 36th International Conference on Machine Learning, Chaudhuri K., Salakhutdinov R., Eds. (Proceedings of Machine Learning Research, Long Beach, CA, 2019), pp. 1675–1685. [Google Scholar]
  • 17.Allen-Zhu Z., Li Y., Song Z., “A convergence theory for deep learning via over-parameterization” in Proceedings of the 36th International Conference on Machine Learning, Chaudhuri K., Salakhutdinov R., Eds. (Proceedings of Machine Learning Research, Long Beach, CA, 2019), pp. 2388–2464. [Google Scholar]
  • 18.Zou D., Cao Y., Zhou D., Gu Q., Stochastic gradient descent optimizes overparameterized deep ReLU networks. Mach. Learn., 109, 467–492 (2020). [Google Scholar]
  • 19.Chizat L., Oyallon E., Bach F., “On lazy training in differentiable programming” in Advances in Neural Information Processing Systems, Wallach H., et al., Eds. (Curran Associates, Inc., Vancouver, Canada, 2019), pp. 2937–2947. [Google Scholar]
  • 20.Weinan E., Ma C., Wu L., A comparative analysis of the optimization and generalization property of two-layer neural network and random feature models under gradient descent dynamics. arXiv [Preprint] (2020). https://arxiv.org/abs/1904.04326 (Accessed 21 December 2020).
  • 21.Bartlett P., Foster D., Telgarsky M., Spectrally-normalized margin bounds for neural networks. Adv. Neural Inf. Process. Syst. 30, 6241–6250 (2017). [Google Scholar]
  • 22.He H., Su W. J., “The local elasticity of neural networks” in International Conference on Learning Representations (OpenReview.net, Addis Ababa, Ethiopia, 2020). [Google Scholar]
  • 23.Poggio T., Banburski A., Liao Q., Theoretical issues in deep networks. Proc. Natl. Acad. Sci. U.S.A. 117, 30039–30045 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 24.Mei S., Montanari A., Nguyen P. M., A mean field view of the landscape of two-layer neural networks. Proc. Natl. Acad. Sci. U.S.A. 115, E7665–E7671 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25.Sirignano J., Spiliopoulos K., Mean field analysis of neural networks: A central limit theorem. Stoch. Process. Appl. 130, 1820–1852 (2020). [Google Scholar]
  • 26.Rotskoff G. M., Vanden-Eijnden E., “Parameters as interacting particles: long time convergence and asymptotic error scaling of neural networks,” in Advances in Neural Information Processing Systems, Bengio S., et al., Eds. (Curran Associates, Inc., Montreal, Canada, 2018), pp. 7146–7155. [Google Scholar]
  • 27.Fang C., Lee J. D., Yang P., Zhang T., Modeling from features: A mean-field framework for over-parameterized deep neural networks. arXiv [Preprint] (2020). https://arxiv.org/abs/2007.01452 (Accessed 23 December 2020).
  • 28.Kuditipudi R., et al., “Explaining landscape connectivity of low-cost solutions for multilayer nets” in Advances in Neural Information Processing Systems Wallach H., et al., Eds. (Curran Associates, Inc., Vancouver, Canada, 2019), pp. 14601–14610. [Google Scholar]
  • 29.Shi B., Su W. J., Jordan M. I., On learning rates and Schrödinger operators. arXiv [Preprint] (2020). https://arxiv.org/abs/2004.06977 (Accessed 26 December 2020).
  • 30.Fang C., Dong H., Zhang T., Mathematical models of overparameterized neural networks. arXiv [Preprint] (2020). https://arxiv.org/abs/2012.13982 (Accessed 5 January 2021).
  • 31.He F., Tao D., Recent advances in deep learning theory. arXiv [Preprint] (2020). https://arxiv.org/abs/2012.10931 (Accessed 5 January 2021).
  • 32.Fan J., Ma C., Zhong Y., A selective overview of deep learning. arXiv [Preprint] (2019). https://arxiv.org/abs/1904.05526 (Accessed 26 December 2020).
  • 33.Sun R., Optimization for deep learning: Theory and algorithms. arXiv [Preprint] (2019). https://arxiv.org/abs/1912.08957 (Accessed 26 December 2020).
  • 34.Strohmer T., Heath R. W., Grassmannian frames with applications to coding and communication. Appl. Comput. Harmon. Anal. 14, 257–275 (2003). [Google Scholar]
  • 35.Ma S., Bassily R., Belkin M., “The power of interpolation: Understanding the effectiveness of SGD in modern over-parametrized learning” in Proceedings of the 35th International Conference on Machine Learning Dy J., Krause A., Eds. (Proceedings of Machine Learning Research, Stockholm, Sweden, 2018), vol. 80, pp. 3325–3334. [Google Scholar]
  • 36.Belkin M., Hsu D., Ma S., Mandal S., Reconciling modern machine-learning practice and the classical bias-variance trade-off. Proc. Natl. Acad. Sci. U.S.A. 116, 15849–15854 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 37.Liang T., Rakhlin A., Just interpolate: Kernel “ridgeless” regression can generalize. Ann. Stat. 48, 1329–1347 (2020). [Google Scholar]
  • 38.Bartlett P. L., Long P. M., Lugosi G., Tsigler A., Benign overfitting in linear regression. Proc. Natl. Acad. Sci. U.S.A. 117, 30063–30070 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 39.Li Z., Su W., Sejdinovic D., Benign overfitting and noisy features. arXiv [Preprint] (2020). https://arxiv.org/abs/2008.02901 (Accessed 27 December 2020).
  • 40.Mixon D. G., Parshall H., Pi J., Neural collapse with unconstrained features. arXiv [Preprint] (2020). https://arxiv.org/abs/2011.11619 (Accessed 27 December 2020).
  • 41.Weinan E., Wojtowytsch S., On the emergence of tetrahedral symmetry in the final and penultimate layers of neural network classifiers. arXiv [Preprint] (2020). https://arxiv.org/abs/2012.05420 (Accessed 6 January 2021).
  • 42.Lu J., Steinerberger S., Neural collapse with cross-entropy loss. arXiv [Preprint] (2021). https://arxiv.org/abs/2012.08465 (Accessed 6 January 2021).
  • 43.Ergen T., Pilanci M., Convex duality of deep neural networks. arXiv [Preprint] (2020). https://arxiv.org/abs/2002.09773 (Accessed 27 December 2020).
  • 44.Poggio T., Liao Q., Explicit regularization and implicit bias in deep network classifiers trained with the square loss. arXiv [Preprint] (2020). https://arxiv.org/abs/2101.00072 (Accessed 10 January 2021).
  • 45.Pennington J., Socher R., Manning C. D., “GloVe: Global vectors for word representation” in Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP) (Association for Computational Linguistics, Doha, Qatar, 2014), pp. 1532–1543. [Google Scholar]
  • 46.Saunshi N., Plevrakis O., Arora S., Khodak M., Khandeparkar H., “A theoretical analysis of contrastive unsupervised representation learning” in Proceedings of the 36th International Conference on Machine Learning, Chaudhuri K., Salakhutdinov R., Eds. (Proceedings of Machine Learning Research, Long Beach, CA, 2019), vol. 97, pp. 5628–5637. [Google Scholar]
  • 47.Baevski A., Zhou H., Mohamed A., Auli M., wav2vec 2.0: A framework for self-supervised learning of speech representations. arXiv [Preprint] (2020). https://arxiv.org/abs/2006.11477 (Accessed 29 December 2020).
  • 48.Khosla P., et al., Supervised contrastive learning. arXiv [Preprint] (2020). https://arxiv.org/abs/2004.11362 (Accessed 29 December 2020).
  • 49.Paszke A., et al., “Pytorch: An imperative style, high-performance deep learning library” in Advances in Neural Information Processing Systems Wallach H., et al., Eds. (Curran Associates, Inc., Vancouver, Canada, 2019), pp. 8026–8037. [Google Scholar]
  • 50.Wang S., et al., “Training deep neural networks on imbalanced data sets” in 2016 International Joint Conference on Neural Networks (IJCNN) (IEEE, Vancouver, Canada, 2016), pp. 4368–4374. [Google Scholar]
  • 51.Huang C., Li Y., Loy C. C., Tang X., Learning deep representation for imbalanced classification in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (IEEE Computer Society, Las Vegas, NV, 2016), pp. 5375–5384. [Google Scholar]
  • 52.Madasamy K., Ramaswami M., Data imbalance and classifiers: Impact and solutions from a big data perspective. Int. J. Comput. Intell. Res 13, 2267–2281 (2017). [Google Scholar]
  • 53.Zhou B., Khosla A., Lapedriza A., Torralba A., Oliva A., Places: An image database for deep scene understanding. arXiv [Preprint] (2016). https://arxiv.org/abs/1610.02055 (Accessed 2 January 2021).
  • 54.Hovy E., Marcus M., Palmer M., Ramshaw L., Weischedel R., “Ontonotes: The 90% solution” in Proceedings of the Human Language Technology Conference of the NAACL, Companion Volume: Short Papers (Association for Computational Linguistics, New York, NY, 2006), pp. 57–60. [Google Scholar]
  • 55.Sturm J. F., Zhang S., On cones of nonnegative quadratic functions. Math. Oper. Res. 28, 246–267 (2003). [Google Scholar]
  • 56.Bach F., Mairal J., Ponce J., Convex sparse matrix factorizations. arXiv [Preprint] (2008). https://arxiv.org/abs/0812.1869 (Accessed 3 January 2021).
  • 57.Haeffele B. D., Vidal R., Structured low-rank matrix factorization: Global optimality, algorithms, and applications. IEEE Trans. Pattern Anal. Mach. Intell. 42, 1468–1482 (2020). [DOI] [PubMed] [Google Scholar]
  • 58.He K., Zhang X., Ren S., Sun J., “Deep residual learning for image recognition” in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (IEEE Computer Society, Las Vegas, NV, 2016), pp. 770–778. [Google Scholar]
  • 59.Xiao H., Rasul K., Vollgraf R., Fashion-MNIST: A novel image dataset for benchmarking machine learning algorithms. arXiv [Preprint] (2017). https://arxiv.org/abs/1708.07747 (Accessed 3 January 2021).
  • 60.Ioffe S., Szegedy C., “Batch normalization: Accelerating deep network training by reducing internal covariate shift” in International Conference on Machine Learning, Bach F., Blei D., Eds. (PMLR, Lille, France, 2015), pp. 448–456. [Google Scholar]
  • 61.Buda M., Maki A., Mazurowski M. A., A systematic study of the class imbalance problem in convolutional neural networks. Neural Netw. 106, 249–259 (2018). [DOI] [PubMed] [Google Scholar]
  • 62.Shu J., et al., “Meta-weight-net: Learning an explicit mapping for sample weighting” in NeurIPS 2019: 33rd International Conference on Neural Information Processing Systems, Wallach H., et al., Eds. (Advances in Neural Information Processing Systems, Curran Associates Inc., Red Hook, NY, 2019), vol. 32, pp. 1919–1930. [Google Scholar]
  • 63.Cui Y., Jia M., Lin T. Y., Song Y., Belongie S., “Class-balanced loss based on effective number of samples” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (IEEE, Long Beach, CA, 2019), pp. 9268–9277. [Google Scholar]
  • 64.Cao K., Wei C., Gaidon A., Arechiga N., Ma T., “Learning imbalanced datasets with label-distribution-aware margin loss” in NeurIPS 2019: 33rd International Conference on Neural Information Processing Systems, Wallach H., et al., Eds. (Advances in Neural Information Processing Systems, Curran Associates Inc., Red Hook, NY, pp. 1567–1578. [Google Scholar]
  • 65.Buolamwini J., Gebru T., “Gender shades: Intersectional accuracy disparities in commercial gender classification” in Proceedings of the First Conference on Fairness, Accountability and Transparency Friedler S. A., Wilson C., Eds. (Proceedings of Machine Learning Research, New York, NY, 2018), vol. 81, pp. 77–91. [Google Scholar]
  • 66.Zou J, Schiebinger L, AI can be sexist and racist—It’s time to make it fair. Naturel 559, 324–326 (2018). [DOI] [PubMed] [Google Scholar]
  • 67.Mehrabi N., Morstatter F., Saxena N., Lerman K., Galstyan A., A survey on bias and fairness in machine learning. arXiv [Preprint] (2019). https://arxiv.org/abs/1908.09635 (Accessed 4 January 2021).

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Data Availability Statement

All study data are included in the article and/or supporting information. Our code is publicly available at GitHub (https://github.com/HornHehhf/LPM).


Articles from Proceedings of the National Academy of Sciences of the United States of America are provided here courtesy of National Academy of Sciences

RESOURCES