Introduction
In machine learning, classification and feature learning are fundamental and closely intertwined tasks in supervised scenarios, a connection that can be traced back to Fisher’s linear discriminant analysis [14 ] , which achieves effective classification by learning a linear projection that makes the projected feature vectors as compact as possible within classes and as separable as possible between classes. In modern deep learning, classification tasks commonly take the cross-entropy (CE) loss to train deep feature extraction models and linear classifiers, and they could learn desirable features, making the trained models widely applied in downstream fields that require features with well properties, such as face recognition (W. Liu, Wen, et al., 2023), object detection and tracking [22 ] , image segmentation [2 ] , and image-text retrieval [42 ] , etc. For feature learning, while feature properties required in different scenarios are different, intra-class compactness and inter-class separability are most attractive in many tasks. Intuitively, the higher classification accuracy usually implies the better feature properties, and conversely, the better feature properties suggest the higher accuracy.
It should be noted that the classification accuracy of a model is calculated by checking whether each sample is correctly classified, reflecting the local properties of the model on a dataset. In contrast, the intra-class compactness and inter-class separability are the global properties of the model on the whole dataset. As Figure 1 shows, correct classification only requires that a sample’s feature vector be relatively closer to its corresponding class center/classifier vector than to other class centers; whereas feature learning demands that all samples’ feature vectors be as close as possible to their own class centers while simultaneously remaining as far as possible from other class centers. Therefore, high classification accuracy alone is insufficient to guarantee good feature representations. That is to say, there is an essential difference between the classification and feature learning. However, there has not been an in-depth analysis of this difference, and in supervised scenarios, the feature learning is usually implemented through training classification models without considering its global nature.
Figure 1. The intuitive difference between classification and feature learning. Classification (left) requires that the feature vector of each sample be closer to its own class center/classifier vector than to those of other classes, and classification accuracy reflects the model’s local properties at each sample. In contrast, intra-class compactness and inter-class separability of sample features are the model’s global properties at the dataset level, and feature learning (right) drives the feature vectors of all samples to be as close as possible to their respective class centers while simultaneously being far from other class centers
In unbounded Euclidean space, measuring intra-class compactness and inter-class separability of features using distance-based metrics cannot guarantee a fair comparison across different models. A more common approach is to use cosine similarity in a normalized space to measure the compactness and separability. When training models in practice, normalizing features can improve the training stability, accelerate the convergence, and enhance the models’ generalization, which is a frequent regularization strategy in various fields, especially in face recognition [43 ] . Feature normalization is generally achieved by dividing by the L 2 L_2 L 2 -norm of the feature vectors, which scales the feature space into a hypersphere of unit radius. To better adapt to downstream tasks, when training models in normalized space, the normalized features are typically multiplied by a scale factor γ \gamma γ before being input into the training loss. From a classification perspective, it is generally believed that a large γ \gamma γ sharpens the probability distribution of features belonging to the true class [50 ] , enhancing the model’s confidence in its classification decisions, while a small one smooths the probability distribution, suppressing noise effects. While the above empirical observations exist, there is currently a lack of in-depth theoretical understanding of the scale factor or a convincing explanation of how it affects the feature learning and classification in normalized spaces.
In deep learning, although loss functions such as contrastive loss and triplet loss are commonly used for feature learning, they operate only at the local level of individual sample pairs or triplets and do not account for the global nature of intra-class compactness and inter-class separability. Besides that, the CE loss for training classification models can also yield well features with desirable properties, and there is theoretical evidence Yaras et al., [47 ] that when the CE reaches its minimum, the sample feature and classifier vectors exhibit neural collapse (NC) , at which point the feature compactness and discriminability are maximized uniformly across different classes. However, the CE loss is designed for classification and does not address the global nature of feature learning; therefore, it is not always efficient in more challenging scenarios such as long-tailed recognition (LTR) and open-set recognition (OSR).
In this paper, in the normalized spaces, we first redesign binary cross-entropy (BCE) from the “first principles” of feature learning. We then compare feature learning and classification under different scale factors in normalized spaces by analyzing the minima and convergence behavior of BCE and comparing them with those of CE, which is commonly used for classification. The main contributions are summarized as follows.
For the first time, we in-depth reveal the distinction between classification and feature learning. Classification is depend on sample-level relative ordering of decision scores of each sample, while feature learning expect dataset-level global properties, such as intra-class compactness and inter-class separability. With the basic requirements of feature learning, we derive a loss function which turns out to be the binary cross-entropy (BCE) loss used for multi-class tasks. Meanwhile, we prove that when BCE reaches its minima, it can uniformly maximize the compactness and separability of features across different classes. Although the CE used for classification also exhibits this property, the advantage of BCE lies in its classifier biases, which help it achieve this desirable property more rapidly.
We make an in-depth analysis of the convergence behavior of the CE and BCE as the scale factor γ \gamma γ changes, to further reveal the differences between classification and feature learning in normalized spaces of different sizes. As γ \gamma γ increases, the convergence rates of the two losses may decay exponentially. Consequently, in a large normalized space with a very large γ \gamma γ , achieving high classification performance becomes relatively easy, whereas learning features with desirable properties becomes difficult. Conversely, as γ \gamma γ approaches zero, the convergence rates decrease linearly. Thus, in a very small space with γ \gamma γ close to 0, the setting is unfavorable for feature learning and even more so for classification.
We conduct extensive experiments using deep models, including ResNet and ViT. Using the fixed training strategy, when the scale factor γ = 64 \gamma=64 γ = 64 is very large, all the models achieve 100% classification accuracy on the training set, but the intra-class compactness and inter-class separability of features they extract are comparatively poor. When γ = 0.1 \gamma=0.1 γ = 0.1 is very small, the models’ feature properties are unsatisfactory but superior to those at γ = 64 \gamma=64 γ = 64 , while their classification performs very poor. When γ \gamma γ is at a moderate level, the models’ classification and feature properties can both reach their optimal points. In addition, the superior performance of BCE in more challenging scenarios that require higher-quality features, such as LTR and OSR, further demonstrates the practical relevance of the above analysis.
In our previous work (Q. Li et al., 2025) published in ICML2025, we have investigated the optimization dynamics of models in Euclidean space trained with BCE and CE losses integrated with regularization terms, demonstrating for the first time that the BCE can induce neural collapse. It further showed that the BCE loss explicitly enhances intra-class compactness and inter-class separability of features through decision score constraint and classifier bias.
Building on the ICML work (Q. Li et al., 2025), this paper addresses a different and broader question: whether classification and feature learning are equivalent in normalized spaces of different sizes. To this end, we reformulate the BCE loss based on the global requirements of feature learning, analyze the minima of the normalized BCE and CE losses, and further investigate how the scale factor γ \gamma γ , which controls the size of the normalized space, affects their convergence behavior. Our new theoretical analysis, study of the scale factor, comparison between local classification and global feature learning, and long-tailed/open-set recognition evaluations substantially extend the previous work.
Related Works
Classification and feature learning. The success of deep models such as ResNet (He et al., 2016) and ViT [11 ] in classification has continually driven the development of deep learning. The deep classification models have been consistently developed, including DenseNet [21 ] , MobileNet [20 ] , Swin Transformer [36 ] , and ConvNeXt [37 ] , etc., all of them consist of deep feature extraction models with CNN or Transformer architectures along with linear classifiers. In supervised scenarios, employing the CE loss and training these models on large amounts of labeled data can yield good classification alongside robust feature extraction capabilities, making them widely applicable in fields such as computer vision, natural language processing, and multi-modal large models.
For the tasks that require better feature properties, such as face recognition and long-tailed recognition, normalizing sample features and the classifier vectors can effectively enhance the performance of deep models. NormFace [43 ] and SphereFace [34 ] are among the earliest face recognition works, and advanced methods such as CosFace [44 ] , ArcFace [10 ] , TopoFR [8 ] , and GFace [49 ] continue to be developed in the normalized space. On imbalanced datasets, normalization can suppress the scale differences between the classifier vectors, thereby enhancing classification accuracy [32 ] . In current, various re-balancing strategies have been designed based on the normalized CE and are widely applied in long-tailed recognition (LTR) tasks [5 , 17 , 31 ] (J. Li et al. 2023).
Scale factor and temperature. In the normalized space, a scale factor γ \gamma γ is typically used to adjust the size of feature space [43 ] , while it is temperature coefficient τ \tau τ when it is applied to the denominator in contrastive learning (He et al., 2020). An inappropriate scale factor can significantly degrade the model. performance, yet there is no clear and reasonable explanation for its effects. A commonly circulated notion is that large scale factor sharpens the probability distribution of the models’ outputs, increasing the confidence in the classification decisions, while the small one smooths the probability distribution, helping to mitigate the effects of noise and other influences. Then, in the classification losses, the scale factor is usually greater than 1, with a typical value of γ = 64 \gamma= 64 γ = 64 in face recognition [10 , 51 ] . The temperature used in the contrastive learning plays a similar role as that of the scale factor, and it on the denominator is usually set to a value less than 1. In this paper, for the first time, we reveal the role of the scale factor in the deep feature learning, which also helps people understand the temperature coefficient.
Minima of loss function. When training a classification model and the loss reaches a minimum, it maximizes intra-class compactness and inter-class separability of sample features, and features from different classes form an equiangular tight frame (ETF); this phenomenon is known as neural collapse (NC), first discovered in Papyan et al. [41 ] . The NC studies on CE loss have been extended to various scenarios, including class imbalance [9 , 13 , 15 ] , out-of-distribution data [6 ] , and fixed classifiers [23 ] , as well as other CE variants such as focal loss, label smoothing loss.
As previously stated, we have compared BCE and CE from perspective of NC in Euclidean space (Q. Li et al., 2025). For the case in the normalized space, it has proved that the global minima of CE loss are all NC solutions [47 ] (Lu & Steinerberger 2022). It should be noted that existing theoretical studies on NC primarily address whether a given loss function can induce the optimal feature geometry at its global minimum. However, merely establishing the inevitability of NC does not explain why a model can achieve high classification performance before learning well-structured feature representations, why a model with optimal classification performance does not necessarily attain optimal performance on feature-contrastive tasks, or how the corresponding loss functions converge during the model training. Therefore, this paper shifts the focus from “whether the loss function can reach NC” to “explaining how classification and feature learning approach their respective desired conditions across feature spaces of different sizes, by analyzing the convergence behaviors of CE and BCE.” The normalized feature space provides a suitable framework for this analysis, while the scale factor γ \gamma γ directly controls the size of the space and affects the convergence behaviors of the CE and BCE losses.
Preliminaries
Let D = ⋃ k = 1 K { X i ( k ) } i = 1 n k \mathcal{D} = \bigcup_{k=1}^{K}\left\{\mathbf{X}^{(k)}_i\right\}_{i=1}^{n_k} D = ⋃ k = 1 K { X i ( k ) } i = 1 n k be a sample set from K K K classes, where X i ( k ) \mathbf{X}^{(k)}_i X i ( k ) is the i i i -th sample of the k k k -th class and n k n_k n k is number of samples in the class. In feature learning, for ∀ X ∈ D \forall\mathbf{X} \in\mathcal{D} ∀ X ∈ D , a feature extractor M \mathcal{M} M maps the sample into its feature vector h = M ( X ) ∈ R d \mathbf{h} = \mathcal{M}(\mathbf{X}) \in\mathbb{R}^{d} h = M ( X ) ∈ R d , where d d d denotes feature dimension.
For classification, a classifier C \mathcal{C} C converts the feature vector into a decision vector z ∈ R K \mathbf{z} \in\mathbb{R}^{K} z ∈ R K , i.e., z = C ( M ( X ) ) = C ( h ) \mathbf{z} = \mathcal{C}(\mathcal{M}(\mathbf{X})) = \mathcal{C}(\mathbf{h}) z = C ( M ( X )) = C ( h ) . In deep learning, the classifier C \mathcal{C} C is commonly represented by a fully connection layer containing a weight matrix W = \mathbf{W} = W = [ w 1 , w 2 , ⋯ , w K ] ⊤ ∈ R K × d [\mathbf{w}_1,\mathbf{w}_2,\cdots,\mathbf{w}_K]^\top\in\mathbb{R}^{K\times d} [ w 1 , w 2 , ⋯ , w K ] ⊤ ∈ R K × d and a bias vector b = [ b 1 , b 2 , ⋯ , b K ] ⊤ ∈ R K \mathbf{b}=[b_1,b_2,\cdots,b_K]^\top\in\mathbb{R}^K b = [ b 1 , b 2 , ⋯ , b K ] ⊤ ∈ R K . In normalized space, both sample features and classifier vectors are normalized to ∥ h ∥ 2 = 1 \lVert\mathbf{h}\rVert_2=1 ∥ h ∥ 2 = 1 and ∥ w j ∥ 2 = 1 \lVert\mathbf{w}_j\rVert_2=1 ∥ w j ∥ 2 = 1 , for ∀ j ∈ [ K ] \forall j\in[K] ∀ j ∈ [ K ] . Then, a scale factor γ > 0 \gamma>0 γ > 0 is multiplied on the decision vector to adjust the size of feature space, i.e., z = γ W h − b \mathbf{z}=\gamma\mathbf{W}\mathbf{h}-\mathbf{b} z = γ Wh − b .
In the following, we will re-derive the cross-entropy (CE) loss and binary cross-entropy (BCE) loss functions used in multiclass tasks, and show that they are fundamentally suited to classification and feature learning, respectively.
CE for Classification
In a classification task, for ∀ X ∈ D \forall\mathbf{X}\in\mathcal{D} ∀ X ∈ D with feature vector h = M ( X ) \mathbf{h}=\mathcal{M}(\mathbf{X}) h = M ( X ) , its predicted class label k ^ \hat{k} k ^ is decided by the vector z = [ γ w j ⊤ h − b j ] j = 1 K \mathbf{z}=[\gamma\mathbf{w}_j^\top\mathbf{h}-b_j]_{j=1}^K z = [ γ w j ⊤ h − b j ] j = 1 K , and k ^ = arg max K j = 1 { γ w j ⊤ h − b j } \hat{k}=\underset{j=1}{\overset{K}{\operatorname{arg\,max}}}\{\gamma\mathbf{w}_j^\top\mathbf{h}-b_j\} k ^ = j = 1 arg max K { γ w j ⊤ h − b j } . For any sample X ( k ) \mathbf{X}^{(k)} X ( k ) from class k k k , in its decision vector z ( k ) = γ W h ( k ) − b \mathbf{z}^{(k)}=\gamma\mathbf{W}\mathbf{h}^{(k)}-\mathbf{b} z ( k ) = γ W h ( k ) − b , we refer to the k k k -th component γ w k ⊤ h ( k ) − b k \gamma\mathbf{w}_k^\top\mathbf{h}^{(k)}-b_k γ w k ⊤ h ( k ) − b k as its positive decision score and the others { γ w j ⊤ h ( k ) − b j } j ≠ k \{\gamma\mathbf{w}_j^\top\mathbf{h}^{(k)}-b_j\}_{j\ne k} { γ w j ⊤ h ( k ) − b j } j = k as negative decision scores . Then, for correct classification, it only requires that the sample satisfy a relative ordering where its positive decision score exceeds its negative ones,
γ w k ⊤ h ( k ) − b k > max { γ w j ⊤ h ( k ) − b j } j ≠ k . (1) \gamma\mathbf{w}_k^\top\mathbf{h}^{(k)}-b_k>\max\{\gamma\mathbf{w}_j^\top\mathbf{h}^{(k)}-b_j\}_{j\ne k}. \tag*{(1)} γ w k ⊤ h ( k ) − b k > max { γ w j ⊤ h ( k ) − b j } j = k . (1)
Classification accuracy A A A is calculated by checking whether each sample is correctly classified via Eq. (1) , equal to ratio of number of correctly classified samples to sample number of dataset D \mathcal{D} D ,
A ( M , C ) = ∣ D ( M , C ) ∣ ∣ D ∣ × 100 % , (2) A(\mathcal{M},\mathcal{C})=\frac{|\mathcal{D}(\mathcal{M},\mathcal{C})|}{|\mathcal{D}|}\times100\%, \tag*{(2)} A ( M , C ) = ∣ D ∣ ∣ D ( M , C ) ∣ × 100% , (2)
where
D ( M , C ) = ⋃ k = 1 K { X ( k ) : k = arg max ℓ { γ w ℓ ⊤ h ( k ) − b ℓ } , X ( k ) ∈ D k , h ( k ) = M ( X ( k ) ) } (3) \mathcal{D}(\mathcal{M},\mathcal{C})=\bigcup_{k=1}^{K}\left\{\mathbf{X}^{(k)}: k=\underset{\ell}{\operatorname{arg\,max}}\{\gamma\mathbf{w}_\ell^\top\mathbf{h}^{(k)}-b_\ell\},\ \mathbf{X}^{(k)}\in\mathcal{D}_k,\ \mathbf{h}^{(k)}=\mathcal{M}(\mathbf{X}^{(k)})\right\} \tag*{(3)} D ( M , C ) = k = 1 ⋃ K { X ( k ) : k = ℓ arg max { γ w ℓ ⊤ h ( k ) − b ℓ } , X ( k ) ∈ D k , h ( k ) = M ( X ( k ) ) } (3)
consisting of the samples correctly classified by M \mathcal{M} M and C \mathcal{C} C in D \mathcal{D} D . Obviously, the classification accuracy A A A reflect a local property of the feature extraction model M \mathcal{M} M at each sample on D \mathcal{D} D .
During training of a classification model, the decision vector z ( k ) \mathbf{z}^{(k)} z ( k ) of sample X ( k ) \mathbf{X}^{(k)} X ( k ) is converted via Softmax into predicted probabilities, { p ^ j = exp ( γ w j h ( k ) − b j ) ∑ ℓ = 1 K exp ( γ w ℓ h ( k ) − b ℓ ) } j = 1 K \{\hat{p}_j=\frac{\exp(\gamma\mathbf{w}_j\mathbf{h}^{(k)}-b_j)}{\sum_{\ell=1}^{K}\exp(\gamma\mathbf{w}_\ell\mathbf{h}^{(k)}-b_\ell)}\}_{j=1}^{K} { p ^ j = ∑ ℓ = 1 K e x p ( γ w ℓ h ( k ) − b ℓ ) e x p ( γ w j h ( k ) − b j ) } j = 1 K , of the sample belonging to each class. For X ( k ) \mathbf{X}^{(k)} X ( k ) , its true probabilities are p k = 1 p_k=1 p k = 1 and p j = 0 p_j=0 p j = 0 for k k k and j j j with j ≠ k j\ne k j = k . Then, cross-entropy (CE) loss is calculated and minimized to drive the model training,
L c e ( X ( k ) ) = − ∑ j = 1 K p j log ( p ^ j ) = − log ( e γ w k ⊤ h ( k ) − b k ∑ ℓ = 1 K e γ w ℓ ⊤ h ( k ) − b ℓ ) . (4) \mathcal{L}_{\mathrm{ce}}(\mathbf{X}^{(k)})=-\sum_{j=1}^{K}p_j\log(\hat{p}_j)=-\log\left(\frac{e^{\gamma\mathbf{w}_k^\top\mathbf{h}^{(k)}-b_k}}{\sum_{\ell=1}^{K}e^{\gamma\mathbf{w}_\ell^\top\mathbf{h}^{(k)}-b_\ell}}\right). \tag*{(4)} L ce ( X ( k ) ) = − j = 1 ∑ K p j log ( p ^ j ) = − log ( ∑ ℓ = 1 K e γ w ℓ ⊤ h ( k ) − b ℓ e γ w k ⊤ h ( k ) − b k ) . (4)
The CE loss is one of the most widely used loss function in deep learning.
BCE for Feature Learning
In supervised settings, the sample features can be learned in the training of classification models using the CE loss, while this loss does not take into account the sample-independent global constrains required for inter-class compactness and inter-class separability of all sample features on dataset.
In the normalized space, to precisely measure the properties of sample features ⋃ k = 1 K { h i ( k ) } i = 1 n k \bigcup_{k=1}^{K}\left\{h_i^{(k)}\right\}_{i=1}^{n_k} ⋃ k = 1 K { h i ( k ) } i = 1 n k , we define the metrics of intra-class compactness E c o m \mathcal{E}_{\mathrm{com}} E com and inter-class separability E s e p \mathcal{E}_{\mathrm{sep}} E sep as
E c o m = 1 2 [ 1 K ∑ k = 1 K ( 1 n k 2 ∑ i = 1 n k ∑ i ′ = 1 n k ⟨ h i ( k ) , h i ′ ( k ) ⟩ ) + 1 ] , (5) \mathcal{E}_{\mathrm{com}}=\frac{1}{2}\left[\frac{1}{K}\sum_{k=1}^{K}\left(\frac{1}{n_k^2}\sum_{i=1}^{n_k}\sum_{i'=1}^{n_k}\left\langle h_i^{(k)},h_{i'}^{(k)}\right\rangle\right)+1\right], \tag*{(5)} E com = 2 1 [ K 1 k = 1 ∑ K ( n k 2 1 i = 1 ∑ n k i ′ = 1 ∑ n k ⟨ h i ( k ) , h i ′ ( k ) ⟩ ) + 1 ] , (5)
E s e p = 1 2 [ 1 − 1 K ( K − 1 ) ∑ k = 1 K ∑ k ′ = 1 k ′ ≠ k K ( 1 n k n k ′ ∑ i = 1 n k ∑ i ′ = 1 n k ′ ⟨ h i ( k ) , h i ′ ( k ′ ) ⟩ ) ] . (6) \mathcal{E}_{\mathrm{sep}}=\frac{1}{2}\left[1-\frac{1}{K(K-1)}\sum_{k=1}^{K}\sum_{\substack{k'=1\\k'\ne k}}^{K}\left(\frac{1}{n_kn_{k'}}\sum_{i=1}^{n_k}\sum_{i'=1}^{n_{k'}}\left\langle h_i^{(k)},h_{i'}^{(k')}\right\rangle\right)\right]. \tag*{(6)} E sep = 2 1 1 − K ( K − 1 ) 1 k = 1 ∑ K k ′ = 1 k ′ = k ∑ K ( n k n k ′ 1 i = 1 ∑ n k i ′ = 1 ∑ n k ′ ⟨ h i ( k ) , h i ′ ( k ′ ) ⟩ ) . (6)
Eqs. (5) and (6) compute the compactness and separability using the feature similarities of all same-class sample pairs and all different-class sample pairs, respectively, which is entirely reasonable. However, if all these feature similarities are taken into account in the loss function for feature learning, the computational cost increases significantly. One can observe that, if classifier vectors { w k } k = 1 K \{w_k\}_{k=1}^{K} { w k } k = 1 K are used as anchors, then the distribution of the unbiased decision scores ⋃ k = 1 K ⋃ i = 1 n k { w j T h i ( k ) } j = 1 K \bigcup_{k=1}^{K}\bigcup_{i=1}^{n_k}\{w_j^{\mathsf{T}}h_i^{(k)}\}_{j=1}^{K} ⋃ k = 1 K ⋃ i = 1 n k { w j T h i ( k ) } j = 1 K for all samples could reflect the compactness and separability of features. Moreover, since the number of classes K K K is usually smaller than the number of samples, N = ∑ k = 1 K n k N=\sum_{k=1}^{K}n_k N = ∑ k = 1 K n k , the number of decision scores is substantially lower than that of sample pairs, so using these scores could improve the computational efficiency. Therefore, we re-express the two properties using the decision scores to design a loss function for feature learning.
For the sample features { h i ( k ) = M ( X i ( k ) ) } i = 1 n k \{h_i^{(k)}=\mathcal{M}(X_i^{(k)})\}_{i=1}^{n_k} { h i ( k ) = M ( X i ( k ) ) } i = 1 n k of class k k k , taking the k k k -th classifier vector w k \boldsymbol{w}_k w k as an anchor, the high intra-class compactness requires that all the features should lie close to w k \boldsymbol{w}_k w k . To explicitly measure this closeness, we choose the smallest possible unified threshold t k ′ t'_k t k ′ such that the maximum distance from the feature vectors to the anchor is no greater than this threshold, i.e., max { ∥ w k − h i ( k ) ∥ 2 2 } i = 1 n k < t k ′ \max\{\lVert\boldsymbol{w}_k-h_i^{(k)}\rVert_2^2\}_{i=1}^{n_k}<t'_k max {∥ w k − h i ( k ) ∥ 2 2 } i = 1 n k < t k ′ . As ∥ w − h ∥ 2 2 = 2 − 2 w T h \lVert\boldsymbol{w}-\boldsymbol{h}\rVert_2^2=2-2\boldsymbol{w}^{\mathsf{T}}\boldsymbol{h} ∥ w − h ∥ 2 2 = 2 − 2 w T h in the normalized space, the above compactness condition is equivalent to defining the largest possible unified threshold t k = 1 − t k ′ / 2 t_k=1-t'_k/2 t k = 1 − t k ′ /2 to impose a uniform lower bound on cosine similarities between each sample feature and the anchor,
min { w k T h i ( k ) } i = 1 n k > t k . (7) \min\{\boldsymbol{w}_k^{\mathsf{T}}h_i^{(k)}\}_{i=1}^{n_k}>t_k. \tag*{(7)} min { w k T h i ( k ) } i = 1 n k > t k . (7)
Similarly, to explicitly measure the separability between the classes k k k and j j j for ∀ j ≠ k \forall j\ne k ∀ j = k , we take the j j j -th classifier vector w j \boldsymbol{w}_j w j as an anchor, and choose the largest possible unified threshold t j ′ t'_j t j ′ such that the minimum distance from the feature vectors of class k k k to w j w_j w j is no smaller than this threshold, i.e., min { ∥ w j − h i ( k ) ∥ 2 2 } > t j ′ \min\{\lVert w_j-h_i^{(k)}\rVert_2^2\}>t'_j min {∥ w j − h i ( k ) ∥ 2 2 } > t j ′ . This separability condition is equivalent to defining the smallest possible unified threshold t j = 1 − t j ′ / 2 t_j=1-t'_j/2 t j = 1 − t j ′ /2 to impose a uniform upper bound on similarities between each feature vector of class k k k and the anchor w j w_j w j ,
max { w j ⊤ h i ( k ) } i = 1 n k < t j , ∀ j ≠ k . (8) \max\{w_j^\top h_i^{(k)}\}_{i=1}^{n_k}<t_j,\quad\forall j\ne k. \tag*{(8)} max { w j ⊤ h i ( k ) } i = 1 n k < t j , ∀ j = k . (8)
According to the above analysis, for class k k k , the desirable feature properties require that all positive unbiased decision scores { γ w k ⊤ h i ( k ) } i = 1 n k \{\gamma w_k^\top h_i^{(k)}\}_{i=1}^{n_k} { γ w k ⊤ h i ( k ) } i = 1 n k uniformly exceed as large a threshold as possible, while all negative ones ⋃ j ≠ k { γ w j ⊤ h i ( k ) } i = 1 n k \bigcup_{j\ne k}\{\gamma w_j^\top h_i^{(k)}\}_{i=1}^{n_k} ⋃ j = k { γ w j ⊤ h i ( k ) } i = 1 n k uniformly remain below as small a threshold as possible, which are sample-independent on dataset D \mathcal{D} D .
In the model training, set b k = γ t k b_k=\gamma t_k b k = γ t k for ∀ k ∈ [ K ] \forall k\in[K] ∀ k ∈ [ K ] . For ∀ X ( k ) \forall X^{(k)} ∀ X ( k ) from class k k k , applying Sigmoid on its positive decision score γ w k h ( k ) − b k \gamma w_k h^{(k)}-b_k γ w k h ( k ) − b k , one can compute the predicted probability that it satisfies the compactness condition in Eq. (7) , p ^ k k = σ ( γ w k ⊤ h ( k ) − b k ) \hat{p}_{kk}=\sigma(\gamma w_k^\top h^{(k)}-b_k) p ^ k k = σ ( γ w k ⊤ h ( k ) − b k ) ; similarly, applying Sigmoid on its negative decision scores { γ w j h ( k ) − b j } j = 1 , j ≠ k K \{\gamma w_j h^{(k)}-b_j\}_{j=1,j\ne k}^{K} { γ w j h ( k ) − b j } j = 1 , j = k K , one can compute the predicted probabilities that it satisfies the separability condition in Eq. (8) , { p ^ k j = 1 − σ ( γ w j ⊤ h ( k ) − b j ) : j ≠ k } \{\hat{p}_{kj}=1-\sigma(\gamma w_j^\top h^{(k)}-b_j):j\ne k\} { p ^ k j = 1 − σ ( γ w j ⊤ h ( k ) − b j ) : j = k } . Clearly, for any reasonable threshold, the perfect feature vector always satisfies both the compactness and separability conditions; therefore, for the ground-truth labels used in feature learning, we set p k j = 1 p_{kj}=1 p k j = 1 with ∀ j ∈ [ K ] \forall j\in[K] ∀ j ∈ [ K ] for the sample X ( k ) X^{(k)} X ( k ) from class k k k . Then, for feature learning, one can calculate K K K ordinary binary cross-entropy (BCE) losses for any sample X ( k ) X^{(k)} X ( k ) and minimizes them together,
L b c e ( X ( k ) ) = − ∑ j = 1 K p k j log p ^ k j = log ( 1 + e − γ w k ⊤ h ( k ) + b k ) + ∑ j = 1 j ≠ k K log ( 1 + e γ w j ⊤ h ( k ) − b j ) . (9) \mathcal{L}_{\mathrm{bce}}(X^{(k)})=-\sum_{j=1}^{K}p_{kj}\log\hat{p}_{kj}=\log\left(1+e^{-\gamma w_k^\top h^{(k)}+b_k}\right)+\sum_{\substack{j=1\\j\ne k}}^{K}\log\left(1+e^{\gamma w_j^\top h^{(k)}-b_j}\right). \tag*{(9)} L bce ( X ( k ) ) = − j = 1 ∑ K p k j log p ^ k j = log ( 1 + e − γ w k ⊤ h ( k ) + b k ) + j = 1 j = k ∑ K log ( 1 + e γ w j ⊤ h ( k ) − b j ) . (9)
This BCE loss can also be derived by decomposing a multi-class classification into multiple binary classification tasks, each of which checks whether a sample X ( k ) X^{(k)} X ( k ) belongs to class j j j for ∀ j ∈ [ K ] \forall j\in[K] ∀ j ∈ [ K ] , which has been widely used in multi-label classification [24 ] . Here, we reformulate it based on the global constraints of feature learning, thereby revealing, for the first time, its connection to the global properties of sample features across the entire dataset.
Main Theoretical Results
The above derivations of CE and BCE highlight the fundamental difference between classification and feature learning. As classification performance reflects the model’s local behavior at each sample, the CE loss merely requires that, for each sample, the positive decision score be relatively higher than the negative ones. In contrast, feature learning requires the model to exhibit globally favorable properties across the entire dataset, and the classifier bias parameters in the BCE loss impose a global and absolute constraint on the feature vectors of all samples.
In this section, we will further reveal the differences between the two tasks by analyzing the minima of CE and BCE, as well as their convergence rates to these minima in normalized spaces of different sizes.
Minima of Normalized BCE and CE
Following Z. Zhu et al. [54 ] and Yaras et al. [47 ] , we simplify the analysis by using unconstrained feature model (UFM) on balanced dataset. Specifically, we take the sample features ⋃ k = 1 K { h i ( k ) } i = 1 n k \bigcup_{k=1}^{K}\{h_i^{(k)}\}_{i=1}^{n_k} ⋃ k = 1 K { h i ( k ) } i = 1 n k , classifier vectors { w j } j = 1 K \{w_j\}_{j=1}^{K} { w j } j = 1 K , and classifier biases { b j } j = 1 K \{b_j\}_{j=1}^{K} { b j } j = 1 K as free variables, without considering the parameters within the feature extraction model M \mathcal{M} M , and assume that n = n k n=n_k n = n k , for ∀ k ∈ [ K ] \forall k\in[K] ∀ k ∈ [ K ] . Let
f μ ( W , H , b ) = 1 n K ∑ k = 1 K ∑ i = 1 n L μ ( X i ( k ) ) , (10) f_{\mu}(W,H,b)=\frac{1}{nK}\sum_{k=1}^{K}\sum_{i=1}^{n}L_{\mu}(X_i^{(k)}), \tag*{(10)} f μ ( W , H , b ) = n K 1 k = 1 ∑ K i = 1 ∑ n L μ ( X i ( k ) ) , (10)
where μ ∈ { c e , b c e } \mu\in\{\mathrm{ce},\mathrm{bce}\} μ ∈ { ce , bce } indicating the normalized CE and BCE losses in Eqs. (4) and (9) , and H = [ H 1 , H 2 , ⋯ , H K ] ∈ R d × ( n K ) H=[H_1,H_2,\cdots,H_K]\in\mathbb{R}^{d\times(nK)} H = [ H 1 , H 2 , ⋯ , H K ] ∈ R d × ( n K ) with H k = [ h 1 ( k ) , h 2 ( k ) , ⋯ , h n ( k ) ] ∈ R d × n H_k=[h_1^{(k)},h_2^{(k)},\cdots,h_n^{(k)}]\in\mathbb{R}^{d\times n} H k = [ h 1 ( k ) , h 2 ( k ) , ⋯ , h n ( k ) ] ∈ R d × n . Then, we achieve the following theorems.
Theorem 1 Suppose d ≥ K − 1 d\ge K-1 d ≥ K − 1 , i.e., the feature dimension is greater than the number of classes. The loss function f c e ( W , H , b ) f_{\mathrm{ce}}(W,H,b) f ce ( W , H , b ) defined using L c e L_{\mathrm{ce}} L ce in Eq. (4) satisfies
f c e ( W , H , b ) ≥ log ( 1 + ( K − 1 ) e − γ K K − 1 ) , (11) f_{\mathrm{ce}}(W,H,b)\ge\log\left(1+(K-1)e^{-\frac{\gamma K}{K-1}}\right), \tag*{(11)} f ce ( W , H , b ) ≥ log ( 1 + ( K − 1 ) e − K − 1 γ K ) , (11) and the equality is attained if and only if W W W , H H H and b b b satisfy
w k = h i ( k ) , ∀ k ∈ [ K ] , i ∈ [ n ] , (12) w_k=h_i^{(k)},\quad\forall k\in[K],\ i\in[n], \tag*{(12)} w k = h i ( k ) , ∀ k ∈ [ K ] , i ∈ [ n ] , (12) w k T w j = − 1 K − 1 , ∀ j ≠ k ∈ [ K ] , (13) w_k^{\mathsf{T}}w_j=-\frac{1}{K-1},\quad\forall j\ne k\in[K], \tag*{(13)} w k T w j = − K − 1 1 , ∀ j = k ∈ [ K ] , (13) and b k = b ⋆ ∈ R , ∀ k ∈ [ K ] , b_k=b^\star\in\mathbb{R},\quad\forall k\in[K], b k = b ⋆ ∈ R , ∀ k ∈ [ K ] ,
where b ⋆ ∈ R b^\star\in\mathbb{R} b ⋆ ∈ R could be any number.
Proof The lower bound and its equality conditions are established in Theorem C.9 in Appendix.
Theorem 2 Suppose d ≥ K − 1 d\ge K-1 d ≥ K − 1 . The loss function f b c e ( W , H , b ) f_{\mathrm{bce}}(W,H,b) f bce ( W , H , b ) defined using L b c e L_{\mathrm{bce}} L bce in Eq. (9) satisfies
f b c e ( W , H , b ) ≥ − 2 γ − ( K − 2 ) b ⋆ + log ( 1 + e γ − b ⋆ ) + ( K − 1 ) log ( 1 + e b ⋆ + γ K − 1 ) f_{\mathrm{bce}}(W,H,b)\ge-2\gamma-(K-2)b^\star+\log\left(1+e^{\gamma-b^\star}\right)+(K-1)\log\left(1+e^{b^\star+\frac{\gamma}{K-1}}\right) f bce ( W , H , b ) ≥ − 2 γ − ( K − 2 ) b ⋆ + log ( 1 + e γ − b ⋆ ) + ( K − 1 ) log ( 1 + e b ⋆ + K − 1 γ ) = log ( 1 + e − γ + b ⋆ ) + ( K − 1 ) log ( 1 + e − γ K − 1 − b ⋆ ) , (14) =\log\left(1+e^{-\gamma+b^\star}\right)+(K-1)\log\left(1+e^{-\frac{\gamma}{K-1}-b^\star}\right), \tag*{(14)} = log ( 1 + e − γ + b ⋆ ) + ( K − 1 ) log ( 1 + e − K − 1 γ − b ⋆ ) , (14) and the equality holds if and only if W W W , H H H and b b b satisfy Eqs. (12) , (13) and (14), where
b ⋆ = − γ K − 1 − log 2 + log [ ( K − 2 ) + ( K − 2 ) 2 + 4 ( K − 1 ) e γ + γ K − 1 ] . (15) b^\star=-\frac{\gamma}{K-1}-\log2+\log\left[(K-2)+\sqrt{(K-2)^2+4(K-1)e^{\gamma+\frac{\gamma}{K-1}}}\right]. \tag*{(15)} b ⋆ = − K − 1 γ − log 2 + log [ ( K − 2 ) + ( K − 2 ) 2 + 4 ( K − 1 ) e γ + K − 1 γ ] . (15)
Proof. The proof establishes a lower bound for the BCE loss and characterizes its equality conditions. The details can be found in Theorem C.4 in Appendix. □
Theorems 1 and 2 show that CE and BCE can respectively attain their constant-valued lower bounds over the entire dataset; hence the constant values are their minima. Furthermore, when the CE and BCE reach their minima, the sample features and classifier vectors satisfy the conditions of NC:
(collapse) The features of samples within the same class converge to the class center. From Eq. (12) , for ∀ k ∈ [ K ] \forall k \in[K] ∀ k ∈ [ K ] , the features { h i ( k ) } i = 1 n \{h_i^{(k)}\}_{i=1}^{n} { h i ( k ) } i = 1 n converge to its class center, h ˉ k = 1 n ∑ i = 1 n h i ( k ) \bar{h}_k = \frac{1}{n}\sum_{i=1}^{n}h_i^{(k)} h ˉ k = n 1 ∑ i = 1 n h i ( k ) .
(alignment) The class center of each class is parallel to its corresponding classifier vector, differing only by a constant coefficient. From Eq. (12) , h ˉ k = w k \bar{h}_k = w_k h ˉ k = w k , for ∀ k ∈ [ K ] \forall k \in[K] ∀ k ∈ [ K ] .
(equiangular) The angle between any two class center vectors is equal and maximized, forming an equiangular tight frame (ETF). From Eqs. (12) , (13) , w k ⊤ w j = h ˉ k ⊤ h ˉ j = − 1 K − 1 w_k^{\top}w_j=\bar{h}_k^{\top}\bar{h}_j=-\frac{1}{K-1} w k ⊤ w j = h ˉ k ⊤ h ˉ j = − K − 1 1 , ∀ j ≠ k ∈ [ K ] \forall j\ne k\in[K] ∀ j = k ∈ [ K ] , which indicates { w k } k = 1 K \{w_k\}_{k=1}^{K} { w k } k = 1 K and { h ˉ k } k = 1 K \{\bar{h}_k\}_{k=1}^{K} { h ˉ k } k = 1 K form two perfectly overlapping ETFs.
NC indicates that, when reaching the minima of the CE or BCE, the compactness of any class is maximized with E c o m = 1 E_{\mathrm{com}}=1 E com = 1 , and the separability of any two classes is also maximized with E s e p = 1 2 + 1 2 ( K − 1 ) E_{\mathrm{sep}}=\frac{1}{2}+\frac{1}{2(K-1)} E sep = 2 1 + 2 ( K − 1 ) 1 .
The classifier biases. At their minimum points, the normalized CE and BCE share the same geometric structures of sample feature and classifier vectors. Their difference lies in the classifier biases. In designing the loss functions, the classifier biases of the normalized CE are merely offsets of the decision scores, whereas in the normalized BCE the classifier biases are derived from the thresholds of the decision scores.
When the losses reach their minimum points, the classifier bias vector b ∈ R K b\in\mathbb{R}^{K} b ∈ R K become multiples of the all-one vector 1 K ∈ R K \mathbf{1}_K\in\mathbb{R}^{K} 1 K ∈ R K . For the normalized CE loss, the multiple factor b ⋆ ∈ R b^\star\in\mathbb{R} b ⋆ ∈ R can be any number. As long as b k = b j b_k=b_j b k = b j , ∀ k ≠ j \forall k\ne j ∀ k = j , they do not affect the classification results, and they can be canceled out in the Softmax of the CE loss. Therefore, in the CE used for classification tasks, the K K K classifier biases can take any identical value when the loss achieving minimum value. This analysis also implies that, when training models with CE, the classifier biases cannot meaningfully contribute to the unbiased decision scores that reflect the feature properties. In previous works ([47 ] (Lu & Steinerberger 2022)), the authors ignore the classifier biases in the CE when analyzing its minimum value.
In contrast, for the normalized BCE, the final value of classifier biases, b ⋆ b^\star b ⋆ , is figured out via Eq. (15) , indicating the BCE loss has only one minimum point in terms of the classifier biases. On the contrary, the unique converged value of b ⋆ b^\star b ⋆ indicates that, during BCE minimization, the classifier biases play a substantive role by effectively contributing to the update of decision scores that reflect the feature properties, thereby accelerating loss convergence and improving training efficiency. Furthermore, with a fixed class number K K K , the curve of b ⋆ b^\star b ⋆ in terms of γ \gamma γ defined in Eq. (15) has an asymptote, i.e.,
b ⋆ → 1 2 log ( K − 1 ) + K − 2 K − 1 γ 2 , (16) b^\star\to\frac{1}{2}\log(K-1)+\frac{K-2}{K-1}\frac{\gamma}{2}, \tag*{(16)} b ⋆ → 2 1 log ( K − 1 ) + K − 1 K − 2 2 γ , (16)
indicating that the final bias b ⋆ b^\star b ⋆ increases almost linearly as γ \gamma γ approaches positive infinity.
Convergence of Normalized CE and BCE
When the classifier biases are equal, i.e., b k = b j , ∀ k , j ∈ [ K ] b_k=b_j,\forall k,j\in[K] b k = b j , ∀ k , j ∈ [ K ] , the unbiased decision scores { γ w j ⊤ h i ( k ) } j , k , i \{\gamma\mathbf{w}_j^\top\mathbf{h}_i^{(k)}\}_{j,k,i} { γ w j ⊤ h i ( k ) } j , k , i not only determine each sample’s classification but also reflect the feature properties. According to Theorems 1 and 2 , at the minimum points of normalized CE or BCE, the positive and negative unbiased decision scores will converge to two fixed values related to the radius γ \gamma γ of normalized space,
γ w k ⊤ h i ( k ) → γ , ∀ k ∈ [ K ] , ∀ i ∈ [ n ] , (17) \gamma\mathbf{w}_k^\top\mathbf{h}_i^{(k)}\to\gamma,\quad\forall k\in[K],\ \forall i\in[n], \tag*{(17)} γ w k ⊤ h i ( k ) → γ , ∀ k ∈ [ K ] , ∀ i ∈ [ n ] , (17)
γ w j ⊤ h i ( k ) → − γ K − 1 , ∀ k ≠ j , ∀ i ∈ [ n ] . (18) \gamma\mathbf{w}_j^\top\mathbf{h}_i^{(k)}\to-\frac{\gamma}{K-1},\quad\forall k\ne j,\ \forall i\in[n]. \tag*{(18)} γ w j ⊤ h i ( k ) → − K − 1 γ , ∀ k = j , ∀ i ∈ [ n ] . (18)
Clearly, as γ \gamma γ increases, both the positive and negative decision scores at the minima increase linearly. Then, we can analyze the convergence of the losses by analyzing the convergence behavior of the unbiased decision scores, which will help to compare classification and feature learning in the normalized spaces with different scale factors. Before these analysis, we first define two critical conditions (CC) for the unbiased decision scores.
Definition 3 CC I states that for every sample in dataset D \mathcal{D} D , its positive unbiased decision score exceeds the negative ones, i.e., for ∀ k ∈ [ K ] , i ∈ [ n ] \forall k\in[K],\ i\in[n] ∀ k ∈ [ K ] , i ∈ [ n ] ,
γ w k ⊤ h i ( k ) > max { γ w j ⊤ h i ( k ) : j ∈ [ K ] , j ≠ k } . (19) \gamma\mathbf{w}_k^\top\mathbf{h}_i^{(k)}>\max\{\gamma\mathbf{w}_j^\top\mathbf{h}_i^{(k)}:j\in[K],\ j\ne k\}. \tag*{(19)} γ w k ⊤ h i ( k ) > max { γ w j ⊤ h i ( k ) : j ∈ [ K ] , j = k } . (19)
Definition 4 CC II states that for all the samples of D \mathcal{D} D , the positive unbiased decision scores are greater than zero and the negative ones are less than zero, i.e., for ∀ k ∈ [ K ] , i ∈ [ n ] \forall k\in[K],\ i\in[n] ∀ k ∈ [ K ] , i ∈ [ n ] ,
γ w k ⊤ h i ( k ) > 0 > max { γ w j ⊤ h i ( k ) : j ∈ [ K ] , j ≠ k } . (20) \gamma\mathbf{w}_k^\top\mathbf{h}_i^{(k)}>0>\max\{\gamma\mathbf{w}_j^\top\mathbf{h}_i^{(k)}:j\in[K],\ j\ne k\}. \tag*{(20)} γ w k ⊤ h i ( k ) > 0 > max { γ w j ⊤ h i ( k ) : j ∈ [ K ] , j = k } . (20)
When the classifier biases are equal, CC I is equivalent to all the samples being correctly classified, while CC II not only implies that the classification accuracy is 100%, but also that their positive and negative unbiased decision scores are uniformly bounded by the threshold t = 0 t=0 t = 0 , indicating better intra-class compactness and inter-class separability of sample features.
Theorem 5 (1) When training models using the normalized CE loss defined in Eq. (4) , as γ \gamma γ approaches zero, its linear decrease leads to a linear decay in the convergence rate of unbiased decision scores.
(2) Once the CC I is satisfied, as γ \gamma γ linearly approaches positive infinity, the convergence rate of unbiased decision scores decay exponentially.
Proof. The result follows from the gradient analysis and asymptotic estimates given in Theorem C.16 in Appendix. □
Theorem 6 (1) When training models using the BCE loss defined in Eq. (9) , as γ \gamma γ approaches zero, its linear decrease leads to a linear decay in the convergence rate of unbiased decision scores.
(2) In contrary, once the CC II is satisfied, as γ \gamma γ linearly approaches positive infinity, the convergence rate of unbiased decision scores decay exponentially.
Proof. The result follows from the gradient analysis and asymptotic estimates given in Theorem C.15 in Appendix. □
Using the unbiased decision scores, Theorems 5 and 6 reveal the convergence rates of the CE and BCE in normalized spaces of varying sizes: as the space radius γ \gamma γ decreases linearly toward zero, the convergence rates of CE and BCE decay linearly; whereas once CCs I and II are satisfied, respectively, their convergence rates decay exponentially. Meanwhile, based on these two theorems, one can also analyze the differences between classification and feature learning across normalized spaces of varying sizes.
(1) When the radius of normalized space is very small, for example 0 < γ < 1 0 < \gamma< 1 0 < γ < 1 , it is not suitable for feature learning, and even less suitable for classification. As γ \gamma γ decreases linearly, the theoretical margin between the positive and negative decision scores of each sample also decreases linearly. In this case, any small perturbation during training or even testing can easily change their relative magnitudes, thereby significantly affecting the classification results; however, this does not necessarily mean that the learned feature properties are also extremely poor. Nevertheless, since the convergence rate of the loss function decreases linearly as γ \gamma γ decreases, the number of training epochs required for the feature properties to reach their theoretical maximum increases linearly. Therefore, under the same training strategy, the smaller the value of γ \gamma γ , the poorer the learned feature properties will be.
(2) When the radius of normalized space is very large, it is beneficial for classification but detrimental to feature learning. When γ \gamma γ is very large, the theoretical margin between the positive and negative decision scores of each sample also becomes very large. With training, it is then easy to satisfy the relative ordering required for correct classification, and the larger γ \gamma γ is, the easier this becomes. However, as γ \gamma γ increases linearly, the convergence rate of the loss function decays exponentially, which means that the number of training epochs required for the feature properties to reach their theoretical optimum grows exponentially. Therefore, under the same training strategy, increasing the spatial size does not affect classification accuracy, but it significantly degrades the quality of the learned features.
(3) The model’s classification performance is misaligned with the properties of the sample features. With a fixed training strategy, the classification accuracy A \mathcal{A} A of the trained model increases monotonically with the radius γ \gamma γ of the normalized space, while the final feature qualities including E c o m \mathcal{E}_{\mathrm{com}} E com and E s e p \mathcal{E}_{\mathrm{sep}} E sep first increase and then decrease as γ \gamma γ grows. Therefore, a model’s classification accuracy cannot be used to reliably indicate its performance on downstream tasks that require feature comparison, such as face recognition, image retrieval, person re-identification, and object tracking, etc.
(4) BCE outperforms CE in larger normalized spaces. Theorems 5 and 6 stem from the fact that, once the decision scores of the samples satisfy CCs I and II, respectively, their contributions to the convergence rates of CE and BCE decay exponentially. Therefore, in a larger space, once a sample is correctly classified and thus satisfies CC I, its contribution to the convergence of CE becomes very small. At this point, however, its contribution to the convergence of BCE may still remain relatively large, and only when its decision score further satisfies CC II will its contribution to the convergence of BCE also become very small. This analysis implies that, in larger spaces, BCE can converge faster than CE. Consequently, using the same training strategy, BCE can train the model into a more favorable state than CE, thereby achieving better classification accuracy and feature properties.
Through the above analysis, we highlight the differences between classification and feature learning and depict the variation in classification performance and feature properties with space size; meanwhile, we demonstrate that BCE performs better than CE in larger spaces. In the following, we will empirically validate these conclusions.
Experiments
To validate the conclusions about classification and feature learning as well as the differences between the CE and BCE, we trained CNN (He et al., 2016) and Transformer (Dosovitskiy et al., [12 ] ) on MNIST (Lecun et al., [27 ] ), CIFAR10, and CIFAR100 (Krizhevsky, [26 ] ).
Minima of the normalized CE and BCE
We first verify that the normalized CE and BCE losses can lead to the NC geometry predicted by Theorems 1 and 2 . We trained ResNet18, ResNet50, DenseNet121, and ViT on MNIST, CIFAR10, and CIFAR100 using SGD and AdamW optimizers when the scale factor γ = 8 \gamma= 8 γ = 8 . We applied the metrics of N C 1 \mathcal{N}\mathcal{C}_1 N C 1 , N C 2 \mathcal{N}\mathcal{C}_2 N C 2 , and N C 3 \mathcal{N}\mathcal{C}_3 N C 3 defined in Z. Zhu et al. [54 ] and W. Liu, Yu, et al. [35 ] to measure the evolution of NC during the training. The smaller values indicate the stronger NC properties.
Figure 2 shows the evolution of the three NC metrics on the training data of CIFAR10. For different models and optimizers, both the CE and BCE steadily reduce the NC metrics during the training, which verifies that the two normalized losses can lead to NC when approaching their global minima. The results are consistent with our theorems, where samples from the same class collapse to their class center, class centers align with their corresponding classifier vectors, and the different class centers form an ETF structure.
Figure 2. The evolution of the three NC metrics in the training of ResNet18, ResNet50, DenseNet121, and ViT on the training data of CIFAR10 driven by the normalized CE and BCE losses with γ = 8 \gamma= 8 γ = 8 using SGD and AdamW, respectively
Although the sample features deduced by the CE and BCE share the same geometric structure at their respective minima, the BCE typically reaches this structure faster during the early training. As Figure 2 shows, within the first 50 epochs, the NC metrics for the BCE are generally lower than those for the CE, suggesting that the BCE more efficiently pushes the feature distribution toward the global NC structure, rather than only improving sample-level classification. This advantage of BCE comes from its explicit constraints on the positive and negative decision scores of samples. Compared with CE, which mainly relies on the relative ordering of the decision scores for each sample, BCE uses the classifier biases as the thresholds to uniformly distinguish the positive and negative decision scores across the entire dataset.
Similar results can be observed on MNIST and CIFAR100, as reported in Sec. B.2 in Appendix. Overall, these experiments support the minima analysis in the normalized spaces. Both the CE and BCE can induce NC, while the BCE tends to reach the desired compact and separable feature geometry more rapidly.
Convergence of the normalized CE and BCE
Theorems 5 and 6 describe the convergence behaviors of the CE and BCE. To directly verify these two theorems, we set the NC structure as the stopping criterion, and train ResNet18 on MNIST with various scale factor γ \gamma γ . In these experiments, the stopping criterion is set as
∣ w k T h i ( k ) − 1 ∣ ≤ t , ∀ k ∈ [ K ] , ∀ i ∈ [ n ] , (21) \left|\mathbf{w}_k^{\mathsf{T}}\mathbf{h}_i^{(k)}-1\right| \leq t,\quad\forall k \in[K],\ \forall i \in[n], \tag*{(21)} w k T h i ( k ) − 1 ≤ t , ∀ k ∈ [ K ] , ∀ i ∈ [ n ] , (21)
and
∣ w j T h i ( k ) + 1 K − 1 ∣ ≤ t , ∀ j ≠ k ∈ [ K ] , (22) \left|\mathbf{w}_j^{\mathsf{T}}\mathbf{h}_i^{(k)}+\frac{1}{K-1}\right| \leq t,\quad\forall j \ne k \in[K], \tag*{(22)} w j T h i ( k ) + K − 1 1 ≤ t , ∀ j = k ∈ [ K ] , (22)
where for γ < 5 \gamma< 5 γ < 5 , t = 0.001 t = 0.001 t = 0.001 , and for γ ≥ 5 \gamma\geq5 γ ≥ 5 , t = 0.0035 t = 0.0035 t = 0.0035 . Moreover, only SGD optimizer was applied and the learning rate was fixed at 0.01. Table 1 shows the epoch numbers required by the models trained with the CE and BCE losses when they satisfying the stopping criterion for γ > 1 \gamma> 1 γ > 1 .
Table 1: The number of training epochs required by ResNet18 to reach the stopping criterion of Eqs. (21) and (22) on MNIST trained by the normalized CE and BCE with different γ > 1 \gamma> 1 γ > 1 . “∗” indicating that the data is used for fitting the functions of epoch number on γ \gamma γ . When γ ≥ 10 \gamma\ge10 γ ≥ 10 , training ResNet18 with the CE loss requires more than 4, 000 epochs to converge, so the experiment was not performed
Table 1.
For the cases with γ < 0.5 \gamma< 0.5 γ < 0.5 and γ > 5 \gamma> 5 γ > 5 , we took six and five data points to respectively fit the dependence of epoch number on γ \gamma γ using linear, quadratic, and cubic polynomial functions, as well as exponential and logarithmic functions, while the remaining data points were used to evaluate the prediction quality of the fitted functions. For γ > 5 \gamma> 5 γ > 5 , Table 2 shows the fitting results, together with the metrics of R 2 R^2 R 2 and RMSE on the fitting and prediction data. It can be observed that for the CE, although the exponential function exhibits weaker performance metrics than the quadratic and cubic polynomial functions on the fitting data, it better reflects the varying trend of epoch number on the prediction data. For the BCE, the exponential function achieves the best fitting results among the five types of functions, both on the fitting and prediction data. These results indicate that when γ \gamma γ is relatively large, as it increases, the number of epochs required for the CE and BCE convergence grows exponentially, meaning their convergence rates decay exponentially and aligning with Theorems 5 and 6.
Table 2: Fitted functions and their evaluation results for the epoch number used by the CE and BCE with γ > 5 \gamma> 5 γ > 5
Table 2.
Moreover, in the two fitted exponential functions, the coefficient (0.52) of BCE is less than that (0.87) of CE, indicating that the BCE converges faster than the CE in the large feature spaces with larger scale factor γ \gamma γ . The results for the case with γ < 0.5 \gamma< 0.5 γ < 0.5 are presented in Sec. B.7 of Appendix, which also align with the theorems.
Classification accuracy vs. feature property
For a model, its classification and feature learning perform differently in the normalized space with different scale factor γ \gamma γ , as we analyzed in § 4.2 . To verify this difference, using the CE and BCE with SGD and AdamW, we trained 56 ResNet18s and 56 ViTs on CIFAR10 with 200 epochs by setting γ \gamma γ to 0.1, 0.5, 1, 2, 3, 4, 5, 6, 7, 8, 12, 16, 32, and 64, respectively. The detailed experimental settings are shown in Table B.1 in Appendix. Figure 3 shows the distributions of the final unbiased decision scores and classifier biases on the training data, while the red, blue, and green solid lines represent the theoretical values of the final positive/negative unbiased decision scores and classifier biases for different γ \gamma γ .
Figure 3. The distribution of the final classifier biases and the positive/negative unbiased decision scores for 56 ResNet18s (top, without the final ReLU activation) and 56 ViTs (bottom) trained on CIFAR10, with various scale factors γ \gamma γ . The maximum number of training epochs is fixed at 200. The initial mean (b ˉ = 1 K ∑ j = 1 K b j \bar{b} = \frac{1}{K}\sum_{j=1}^{K} b_j b ˉ = K 1 ∑ j = 1 K b j ) of the biases is 0 for ResNet18 and 5 for ViT, and the initial variance is both 0. The solid line represents the theoretical extremum when achieving NC
As Figure 3 shows, when γ ≤ 2 \gamma\le2 γ ≤ 2 , although the mean of all positive/negative unbiased decision scores eventually aligns with their theoretical final values, their variance is relative large, particularly for the negative unbiased scores of ViT, which indicates the losses has not fully converged to their minima with 200 epochs. When 3 ≤ γ ≤ 8 3 \le\gamma\le8 3 ≤ γ ≤ 8 , all the final unbiased decision scores fall along their theoretical extreme values on the corresponding real lines, as well as the final classifier biases for the BCE, which indicates that the losses has basically converged at this stage. As γ \gamma γ continues to increase to 12 or more, the unbiased decision scores of the trained models gradually deviate from their theoretical extremum, and they are distributed over an increasingly larger areas, particularly for models trained with the CE, with an even broader distribution, which indicates that the losses have totally not converged.
Since the substantial role of classifier biases in the BCE during the model training, when γ ≤ 8 \gamma\le8 γ ≤ 8 , they eventually converges to their theoretical extremum. In contrast, the final biases of the CE are almost entirely dependent on their initial value, i.e. 0 for ResNet18 and 5 for ViT in the experiments.
Table 3 presents part of results for ResNet18 trained by CE and BCE with small and large γ \gamma γ on the training and test data of CIFAR10, and more results can be found in Sec. B.5 in Appendix. The expressions of accuracy without the bias, A ∗ A^* A ∗ , are presented in Sec. A.2 in Appendix. When γ = 0.1 \gamma= 0.1 γ = 0.1 or 0.5, both the accuracy A A A and the unbiased one A ∗ A^* A ∗ are very low, but they differ clearly, indicating the slight variance in the classifier biases significantly affect the classification. However, with γ = 0.1 \gamma= 0.1 γ = 0.1 or 0.5, the final feature properties are not so bad, as the compactness E c o m \mathcal{E}_{\mathrm{com}} E com and separability E s e p \mathcal{E}_{\mathrm{sep}} E sep are high, although they have not yet reached their maximum. In contrast, when γ = 32 \gamma= 32 γ = 32 or 64, the models’ accuracies are very high reaching 100% on the training data, while the intra-class compactness and inter-class separability of their features are comparatively poor and worse than that learned with small γ \gamma γ . As Table 3 shows, a similar phenomenon is also presented in the evaluation results on the test dataset.
Table 3. The classification accuracy (%) and feature properties of ResNet18 (without the final ReLU) with different γ \gamma γ on CIFAR10. The accuracies of A \mathcal{A} A and A ∗ \mathcal{A}^{*} A ∗ are calculated using the decision scores { γ w j ⊤ h ( k ) − b j } j = 1 K \{\gamma\mathbf{w}_{j}^{\top}\mathbf{h}^{(k)}-b_{j}\}_{j=1}^{K} { γ w j ⊤ h ( k ) − b j } j = 1 K and the unbiased ones { γ w j ⊤ h ( k ) } j = 1 K \{\gamma\mathbf{w}_{j}^{\top}\mathbf{h}^{(k)}\}_{j=1}^{K} { γ w j ⊤ h ( k ) } j = 1 K , respectively. The higher E c o m \mathcal{E}_{\mathrm{com}} E com and E s e p \mathcal{E}_{\mathrm{sep}} E sep respectively indicate the better compactness and separability of features.
The above results are entirely consistent with the analytical conclusions in this paper for classification and feature learning: with a fixed training strategy in practice, (a) Results on the training data of CIFAR10 — CE with SGD. | | | | | | | |
:::
classification performs well in a relatively large feature space, whereas in a very small feature space it is more susceptible to interference from random factors, leading to a marked reduction in the final accuracy. In contrast, feature learning that pursues intra-class compactness and inter-class separability requires an appropriately smaller feature space. In summary, a model’s classification accuracy cannot reflect its performance in downstream tasks that require feature comparison.
Performance of BCE and CE on LTR and OSR
The applications of the BCE in the face recognition have been explored by Wen et al. [45 ] and Zhou et al. [51 ] , and we here explore its advantages over the CE on other more challenging tasks such as long-tailed recognition (LTR) and open-set recognition (OSR). Based on practical experience, we set γ = 32 \gamma=32 γ = 32 in these two tasks.
LTR. On the imbalanced datasets, CIFAT10-LT and CIFAR100-LT, when the imbalance factors (IF) of the training sets are 10, 50, and 100, we trained ResNet32 using the normalized CE and BCE with SGD, respectively. Table 4 shows the classification results on their balanced test sets. The BCE consistently achieves better LTR results on the six pairs of models. We believe that, compared to the CE, which couples the K K K decision scores of each sample into one Softmax, the BCE decouples them using K K K Sigmoids, mitigating the imbalance effects caused by the imbalanced datasets and improving the LTR performance.
Table 4. LTR results (%) on CIFAR10-LT and CIFAR100-LT
OSR. In the open-set experiments, we evaluate the performances of the CE and BCE on the MNIST, SVHN, CIFAR10 and CIFAR+50 datasets, and the models and training details follow APRL [4 ] . Table 5 presents the OSR results in terms of the area under the receiver operating characteristic (AUROC) and the open set classification rate (OSCR). On these OSR experiments, the BCE consistently achieves higher performance across the two metrics. We believe that in the BCE, the uniform and explicit constraints of the classifier biases on the positive/negative decision scores are beneficial for learning a clear decision boundary for sample features, which in turn aids the models in discriminating unknown classes and enhances the performance in the OSR.
Table 5. The OSR results under different setups
Discussion, Limitation, and Future Work
Weight decay factor. In Euclidean space without normalization on sample features or classifier vectors, L 2 L_2 L 2 regularization with weight decay factor λ \lambda λ are typically added on the CE and BCE losses, which can also constrain the features into a bounded space. Intuitively, a small λ \lambda λ results in a large feature space, while a large λ \lambda λ leads to a small one. In Q. Li et al. (2025), we have compared the CE and BCE in Euclidean space but did not reveal the difference of classification and feature learning. We conjecture that, similar to the scale factor γ \gamma γ in normalized space, when λ ≥ 0 \lambda\ge0 λ ≥ 0 is very small, it is difficult for the losses to reach their minima, resulting in poor feature properties; when λ \lambda λ is very large, the small theoretical gap between the positive and negative decision scores will harm the classification. However, in Euclidean space, it is not easy to rigorously analyze the losses’ convergence behavior.
Temperature coefficient. In contrastive learning (CL), a temperature τ \tau τ is applied on the denominator of the feature cosine similarity. In CL, the Softmax-based losses are typically applied, similar to the CE loss in classification. When the CL losses reach their minima, the scaled feature similarity 1 τ ⟨ h , h ⋆ ⟩ \frac{1}{\tau}\langle h,h_\star\rangle τ 1 ⟨ h , h ⋆ ⟩ of any positive or negative sample pair converge to fixed values, according to NC studies in Graf et al. [16 ] and Koromilas et al. [25 ] . We here conjecture that the impact of the temperature τ \tau τ on the convergence rate of Softmax-based losses parallels that of the scale factor γ \gamma γ on the convergence rate of CE loss in classification, i.e., too large or too small τ \tau τ would result in slow convergence of the CL losses and thereby poor feature properties.
Minima of losses within more challenging scenarios. In more challenging scenarios, such as low-dimensional spaces where the feature dimension is smaller than the number of classes (i.e., d < K d < K d < K ) and in class-imbalanced settings, theoretically analyzing the minima and convergence of the losses becomes more difficult. Currently, we are investigating the minima of the BCE loss on imbalanced datasets.
Feature learning in other scenarios. In this paper, within the normalized, supervised, closed-set, and high-dimensional feature spaces, we analyze the convergence behavior of the CE and BCE, to compare classification and feature learning. When the setting changes, the convergence behavior of the losses may also change, thereby altering the conclusions regarding the two tasks. However, we conjecture that in both supervised and self-supervised contrastive learning (CL), as scale factor γ \gamma γ linearly increases, the convergence rate of the existing Softmax-based losses decays exponentially, then, too large feature spaces are less favorable for the CL.
Conclusions
This paper conducts an in-depth comparison for classification and feature learning in normalized space, by theoretically analyzing the minima and convergence of CE and BCE losses. While the CE has been widely used for classification, the BCE is specially designed from the first principle of feature learning for the first time. Although both the CE and BCE can lead to neural collapse at their global minima, the former constrains the relative values of the positive and negative decision scores for samples through probabilistic constraints, whereas the latter imposes uniform thresholds on the absolute values of the positive and negative decision scores for all samples. By analyzing the convergence behavior of the CE and BCE, we find that the scale factor γ \gamma γ , i.e., the size of the normalized space, can significantly affect classification and feature learning of a model trained by fixed strategy. A larger γ \gamma γ allows the trained model to achieve higher classification accuracy even without well-structured feature geometry, while a small γ \gamma γ makes classification unstable, yet may yield samples with higher intra-class compactness and inter-class separability in feature space. Experiments on CNNs and ViTs support our conclusions. Furthermore, as the BCE could obtain better features for samples, it outperforms the CE in more challenging tasks such as long-tailed and open-set recognitions.
Neural Collapse and Feature Properties
Neural Collapse
Neural collapse (NC) was first found in Papyan et al. [41 ] that occurs in the terminal training phase of the classification model, manifesting as elegant geometric structures in the sample features and classifier vectors. With NC, the geometric structure of sample features and classifier vectors manifests as follows:
For any class k k k , all the sample features { h i ( k ) } i = 1 n k \{h_i^{(k)}\}_{i=1}^{n_k} { h i ( k ) } i = 1 n k of this class converge to the feature center h ˉ k = 1 n k ∑ i = 1 n k h i ( k ) \bar{h}_k=\frac{1}{n_k}\sum_{i=1}^{n_k}h_i^{(k)} h ˉ k = n k 1 ∑ i = 1 n k h i ( k ) , i.e., h i ( k ) = h j ( k ) h_i^{(k)}=h_j^{(k)} h i ( k ) = h j ( k ) , for ∀ i , j ∈ [ n k ] = { 1 , 2 , ⋯ , n k } \forall i,j\in[n_k]=\{1,2,\cdots,n_k\} ∀ i , j ∈ [ n k ] = { 1 , 2 , ⋯ , n k } ;
The feature center vectors of any two classes have the same angular distance and equal magnitudes, i.e., ∥ h ˉ k ∥ = ∥ h ˉ ℓ ∥ \|\bar{h}_k\|=\|\bar{h}_\ell\| ∥ h ˉ k ∥ = ∥ h ˉ ℓ ∥ and ⟨ h ˉ k , h ˉ ℓ ⟩ ∥ h ˉ k ∥ ∥ h ˉ ℓ ∥ = ⟨ h ˉ k ′ , h ˉ ℓ ′ ⟩ ∥ h ˉ k ′ ∥ ∥ h ˉ ℓ ′ ∥ \frac{\langle\bar{h}_k,\bar{h}_\ell\rangle}{\|\bar{h}_k\|\|\bar{h}_\ell\|}=\frac{\langle\bar{h}_{k'},\bar{h}_{\ell'}\rangle}{\|\bar{h}_{k'}\|\|\bar{h}_{\ell'}\|} ∥ h ˉ k ∥∥ h ˉ ℓ ∥ ⟨ h ˉ k , h ˉ ℓ ⟩ = ∥ h ˉ k ′ ∥∥ h ˉ ℓ ′ ∥ ⟨ h ˉ k ′ , h ˉ ℓ ′ ⟩ , for ∀ k ≠ ℓ , k ′ ≠ ℓ ′ ∈ [ K ] \forall k\ne\ell,k'\ne\ell'\in[K] ∀ k = ℓ , k ′ = ℓ ′ ∈ [ K ] , forming an equiangular tight frame (ETF);
The feature center vector of any class is parallel to its corresponding classifier vector with a fixed constant between them, i.e., ∃ α > 0 \exists\alpha>0 ∃ α > 0 , such that h ˉ k = α w k \bar{h}_k=\alpha w_k h ˉ k = α w k , for ∀ k ∈ [ K ] \forall k\in[K] ∀ k ∈ [ K ] .
In Z. Zhu et al. [54 ] and Zhou et al. [52 ] , the authors defined metrics of N C 1 \mathcal{NC}_1 N C 1 , N C 2 \mathcal{NC}_2 N C 2 , N C 3 \mathcal{NC}_3 N C 3 to evaluate the NC properties.
N C 1 : = 1 K trace ( Σ W Σ B † ) , (23) \mathcal{NC}_1:=\frac{1}{K}\operatorname{trace}\left(\Sigma_W\Sigma_B^{\dagger}\right), \tag*{(23)} N C 1 := K 1 trace ( Σ W Σ B † ) , (23)
N C 2 : = ∥ W ~ W ~ ⊤ ∥ W ~ W ~ ⊤ ∥ F − 1 K − 1 ( I K − 1 K 1 K 1 K ⊤ ) ∥ F , (24) \mathcal{NC}_2:=\left\|\frac{\widetilde{W}\widetilde{W}^{\top}}{\left\|\widetilde{W}\widetilde{W}^{\top}\right\|_F}-\frac{1}{\sqrt{K-1}}\left(I_K-\frac{1}{K}\mathbf{1}_K\mathbf{1}_K^{\top}\right)\right\|_F, \tag*{(24)} N C 2 := W W ⊤ F W W ⊤ − K − 1 1 ( I K − K 1 1 K 1 K ⊤ ) F , (24)
N C 3 : = ∥ W H ~ ∥ W H ~ ∥ F − 1 K − 1 ( I K − 1 K 1 K 1 K ⊤ ) ∥ F , (25) \mathcal{NC}_3:=\left\|\frac{W\widetilde{H}}{\left\|W\widetilde{H}\right\|_F}-\frac{1}{\sqrt{K-1}}\left(I_K-\frac{1}{K}\mathbf{1}_K\mathbf{1}_K^{\top}\right)\right\|_F, \tag*{(25)} N C 3 := W H F W H − K − 1 1 ( I K − K 1 1 K 1 K ⊤ ) F , (25)
where
Σ W = 1 ∑ k n k ∑ k = 1 K ∑ i = 1 n k ( h i ( k ) − h ˉ k ) ( h i ( k ) − h ˉ k ) ⊤ , \Sigma_W=\frac{1}{\sum_k n_k}\sum_{k=1}^{K}\sum_{i=1}^{n_k}\left(h_i^{(k)}-\bar{h}_k\right)\left(h_i^{(k)}-\bar{h}_k\right)^{\top}, Σ W = ∑ k n k 1 k = 1 ∑ K i = 1 ∑ n k ( h i ( k ) − h ˉ k ) ( h i ( k ) − h ˉ k ) ⊤ ,
Σ B = 1 K ∑ k = 1 K ( h ˉ k − h ˉ ) ( h ˉ k − h ˉ ) ⊤ , \Sigma_B=\frac{1}{K}\sum_{k=1}^{K}\left(\bar{h}_k-\bar{h}\right)\left(\bar{h}_k-\bar{h}\right)^{\top}, Σ B = K 1 k = 1 ∑ K ( h ˉ k − h ˉ ) ( h ˉ k − h ˉ ) ⊤ ,
W ~ = [ w 1 − w ˉ , w 2 − w ˉ , ⋯ , w K − w ˉ ] ⊤ ∈ R K × d , \widetilde{W}=[w_1-\bar{w},w_2-\bar{w},\cdots,w_K-\bar{w}]^{\top}\in\mathbb{R}^{K\times d}, W = [ w 1 − w ˉ , w 2 − w ˉ , ⋯ , w K − w ˉ ] ⊤ ∈ R K × d ,
H ~ = [ h ˉ 1 − h ˉ , h ˉ 2 − h ˉ , ⋯ , h ˉ K − h ˉ ] ∈ R d × K , \widetilde{H}=[\bar{h}_1-\bar{h},\bar{h}_2-\bar{h},\cdots,\bar{h}_K-\bar{h}]\in\mathbb{R}^{d\times K}, H = [ h ˉ 1 − h ˉ , h ˉ 2 − h ˉ , ⋯ , h ˉ K − h ˉ ] ∈ R d × K ,
and w ˉ = 1 K ∑ k = 1 K w k \bar{w}=\frac{1}{K}\sum_{k=1}^{K}w_k w ˉ = K 1 ∑ k = 1 K w k , h ˉ k = 1 n k ∑ i = 1 n k h i ( k ) \bar{h}_k=\frac{1}{n_k}\sum_{i=1}^{n_k}h_i^{(k)} h ˉ k = n k 1 ∑ i = 1 n k h i ( k ) , h ˉ = 1 ∑ k n k ∑ k = 1 K ∑ i = 1 n k h i ( k ) \bar{h}=\frac{1}{\sum_k n_k}\sum_{k=1}^{K}\sum_{i=1}^{n_k}h_i^{(k)} h ˉ = ∑ k n k 1 ∑ k = 1 K ∑ i = 1 n k h i ( k ) . In this paper, we take N C 1 , N C 2 \mathcal{NC}_1,\mathcal{NC}_2 N C 1 , N C 2 , and N C 3 \mathcal{NC}_3 N C 3 to compare the evolution of NC of the CE and BCE in the normalized feature space.
Classification
In our experiments, we apply various metrics to comprehensively compare the performance of the BCE and CE losses in the normalized feature space, i.e., classification accuracy A \mathcal{A} A , unbiased classification accuracy A ∗ \mathcal{A}^{*} A ∗ , features compactness E c o m \mathcal{E}_{\mathrm{com}} E com , and features separability E s e p \mathcal{E}_{\mathrm{sep}} E sep . These metrics will be maximized when reaching NC.
For a classification task, suppose a dataset
D = ⋃ k = 1 K D k = ⋃ k = 1 K { X i ( k ) } i = 1 n k (26) \mathcal{D} = \bigcup_{k=1}^{K} \mathcal{D}_{k} = \bigcup_{k=1}^{K} \left\{X_{i}^{(k)}\right\}_{i=1}^{n_{k}} \tag*{(26)} D = k = 1 ⋃ K D k = k = 1 ⋃ K { X i ( k ) } i = 1 n k (26)
from K K K categories, where X i ( k ) X_{i}^{(k)} X i ( k ) denotes the i i i th sample from the class k k k . For any sample X i ( k ) X_{i}^{(k)} X i ( k ) , a model M \mathcal{M} M converts it into its feature h i ( k ) = M ( X i ( k ) ) ∈ R d h_{i}^{(k)}=\mathcal{M}(X_{i}^{(k)})\in\mathbb{R}^{d} h i ( k ) = M ( X i ( k ) ) ∈ R d , where d d d is dimension of the feature space. To classify the sample, a linear, full connection classifier C = { ( w k , b k ) } k = 1 K \mathcal{C}=\left\{(w_{k},b_{k})\right\}_{k=1}^{K} C = { ( w k , b k ) } k = 1 K transform the feature into K K K decision scores { γ w j T h i ( k ) − b j } j = 1 K \left\{\gamma w_{j}^{\mathsf{T}}h_{i}^{(k)}-b_{j}\right\}_{j=1}^{K} { γ w j T h i ( k ) − b j } j = 1 K , where { w k } k = 1 K \left\{w_{k}\right\}_{k=1}^{K} { w k } k = 1 K are classifier vectors and { b k } k = 1 K \left\{b_{k}\right\}_{k=1}^{K} { b k } k = 1 K are classifier biases. Then, the sample is classified into class k ^ \hat{k} k ^ ,
k ^ = arg max j { γ w j T h i ( k ) − b j } j = 1 K , (27) \hat{k}=\underset{j}{\arg\max}\left\{\gamma w_{j}^{\mathsf{T}}h_{i}^{(k)}-b_{j}\right\}_{j=1}^{K}, \tag*{(27)} k ^ = j arg max { γ w j T h i ( k ) − b j } j = 1 K , (27)
and correct classification for the sample is achieved when k = k ^ k=\hat{k} k = k ^ , which is equivalent to
γ w k T h i ( k ) − b k = max { γ w j T h i ( k ) − b j } j = 1 K . (28) \gamma w_{k}^{\mathsf{T}}h_{i}^{(k)}-b_{k}=\max\left\{\gamma w_{j}^{\mathsf{T}}h_{i}^{(k)}-b_{j}\right\}_{j=1}^{K}. \tag*{(28)} γ w k T h i ( k ) − b k = max { γ w j T h i ( k ) − b j } j = 1 K . (28)
Classification accuracy. The commonly used classification accuracy A \mathcal{A} A is defined as
A ( M , C ) = ∣ D ( M , C ) ∣ ∣ D ∣ × 100 % , (29) \mathcal{A}(\mathcal{M},\mathcal{C})=\frac{\lvert\mathcal{D}(\mathcal{M},\mathcal{C})\rvert}{\lvert\mathcal{D}\rvert}\times100\%, \tag*{(29)} A ( M , C ) = ∣ D ∣ ∣ D ( M , C )∣ × 100% , (29)
where
D ( M , C ) = ⋃ k = 1 K { X ( k ) : k = arg max ℓ { γ w ℓ T h ( k ) − b ℓ } , X ( k ) ∈ D k , h ( k ) = M ( X ( k ) ) } , (30) \mathcal{D}(\mathcal{M},\mathcal{C})=\bigcup_{k=1}^{K}\left\{X^{(k)}: k=\arg\max_{\ell}\left\{\gamma w_{\ell}^{\mathsf{T}}h^{(k)}-b_{\ell}\right\},X^{(k)}\in\mathcal{D}_{k},h^{(k)}=\mathcal{M}(X^{(k)})\right\}, \tag*{(30)} D ( M , C ) = k = 1 ⋃ K { X ( k ) : k = arg ℓ max { γ w ℓ T h ( k ) − b ℓ } , X ( k ) ∈ D k , h ( k ) = M ( X ( k ) ) } , (30)
consisting of all the samples correctly classified by M \mathcal{M} M and C \mathcal{C} C in D \mathcal{D} D .
Unbiased classification accuracy. Similarly, the unbiased classification accuracy A ∗ \mathcal{A}^{*} A ∗ is computed without using the classifier biases { b k } k = 1 K \left\{b_{k}\right\}_{k=1}^{K} { b k } k = 1 K , i.e.,
A ∗ ( M , C ) = ∣ D ∗ ( M , C ) ∣ ∣ D ∣ × 100 % . (31) \mathcal{A}^{*}(\mathcal{M},\mathcal{C})=\frac{\lvert\mathcal{D}^{*}(\mathcal{M},\mathcal{C})\rvert}{\lvert\mathcal{D}\rvert}\times100\%. \tag*{(31)} A ∗ ( M , C ) = ∣ D ∣ ∣ D ∗ ( M , C )∣ × 100%. (31)
where
D ∗ ( M , C ) = ⋃ k = 1 K { X ( k ) : k = arg max ℓ { γ w ℓ ⊤ h ( k ) } , X ( k ) ∈ D k , h ( k ) = M ( X ( k ) ) } . (32) \mathcal{D}^{\ast}(\mathcal{M},\mathcal{C})=\bigcup_{k=1}^{K}\left\{X^{(k)}: k=\underset{\ell}{\arg\max}\{\gamma w_{\ell}^{\top}h^{(k)}\}, X^{(k)}\in\mathcal{D}_{k},h^{(k)}=\mathcal{M}(X^{(k)})\right\}. \tag*{(32)} D ∗ ( M , C ) = k = 1 ⋃ K { X ( k ) : k = ℓ arg max { γ w ℓ ⊤ h ( k ) } , X ( k ) ∈ D k , h ( k ) = M ( X ( k ) ) } . (32)
The difference between the classification accuracy A \mathcal{A} A and unbiased one A ∗ \mathcal{A}^{\ast} A ∗ reflects the affect of the variance of the biases { b j } j = 1 \{b_j\}_{j=1} { b j } j = 1 to the classification.
Feature Properties
There is a close and intricate relationship between the sample classification and their feature properties. To precisely measure the properties of sample features, we define their intra-class compactness E c o m \mathcal{E}_{\mathrm{com}} E com and inter-class separability E s e p \mathcal{E}_{\mathrm{sep}} E sep ,
E c o m = 1 2 [ 1 K ∑ k = 1 K ( 1 n k 2 ∑ i = 1 n k ∑ i ′ = 1 n k ⟨ h i ( k ) , h i ′ ( k ) ⟩ ) + 1 ] , (33) \mathcal{E}_{\mathrm{com}}=\frac{1}{2}\left[\frac{1}{K}\sum_{k=1}^{K}\left(\frac{1}{n_k^2}\sum_{i=1}^{n_k}\sum_{i'=1}^{n_k}\left\langle h_i^{(k)},h_{i'}^{(k)}\right\rangle\right)+1\right], \tag*{(33)} E com = 2 1 [ K 1 k = 1 ∑ K ( n k 2 1 i = 1 ∑ n k i ′ = 1 ∑ n k ⟨ h i ( k ) , h i ′ ( k ) ⟩ ) + 1 ] , (33)
E s e p = 1 2 [ 1 − 1 K ( K − 1 ) ∑ k = 1 K ∑ k ′ = 1 k ′ ≠ k K ( 1 n k n k ′ ∑ i = 1 n k ∑ i ′ = 1 n k ′ ⟨ h i ( k ) , h i ′ ( k ′ ) ⟩ ) ] . (34) \mathcal{E}_{\mathrm{sep}}=\frac{1}{2}\left[1-\frac{1}{K(K-1)}\sum_{k=1}^{K}\sum_{\substack{k'=1\\k'\ne k}}^{K}\left(\frac{1}{n_kn_{k'}}\sum_{i=1}^{n_k}\sum_{i'=1}^{n_{k'}}\left\langle h_i^{(k)},h_{i'}^{(k')}\right\rangle\right)\right]. \tag*{(34)} E sep = 2 1 1 − K ( K − 1 ) 1 k = 1 ∑ K k ′ = 1 k ′ = k ∑ K ( n k n k ′ 1 i = 1 ∑ n k i ′ = 1 ∑ n k ′ ⟨ h i ( k ) , h i ′ ( k ′ ) ⟩ ) . (34)
where h ˉ = 1 ∣ D ∣ ∑ k = 1 K ∑ i = 1 n k h i ( k ) \bar{h}=\frac{1}{|\mathcal{D}|}\sum_{k=1}^{K}\sum_{i=1}^{n_k}h_i^{(k)} h ˉ = ∣ D ∣ 1 ∑ k = 1 K ∑ i = 1 n k h i ( k ) is the global feature center. Due to the properties of neural collapse, when approaching the minima of the CE or BCE, the intra-class compactness E c o m \mathcal{E}_{\mathrm{com}} E com might be higher than 1 2 − 1 2 ( K − 1 ) \frac{1}{2}-\frac{1}{2(K-1)} 2 1 − 2 ( K − 1 ) 1 , and the inter-class separability E s e p \mathcal{E}_{\mathrm{sep}} E sep might be lower than 1 2 + 1 2 ( K − 1 ) \frac{1}{2}+\frac{1}{2(K-1)} 2 1 + 2 ( K − 1 ) 1 , for the model M \mathcal{M} M and classifier C \mathcal{C} C trained on the dataset D \mathcal{D} D .
Experiments
Experimental Setting Details
In § 5 , we conducted extensive experiments with multiple models across various datasets to validate our theoretical findings and analyses. We present additional experimental details in Table B.1.
Neural collapse on balanced classification. By default, to validate the phenomenon of neural collapse and the convergence of models, we train ResNet18, ResNet50 (He et al., 2016), and DenseNet121 on the MNIST [27 ] , CIFAR10, and CIFAR100 [26 ] by using settings-1 and 2, and we train ViT [12 ] from scratch on the CIFAR10 dataset using settings-3 and 4, without applying additional regularization or data augmentation techniques during the training.
To assess classification performance on balanced datasets, we train ResNet18 and ResNet50 on the CIFAR10, CIFAR100, and Tiny-ImageNet (Wu et al., 2017) datasets using settings-5 and 6, employing the commonly used data augmentation techniques for a fair comparison. When training ViT models on the CIFAR10 and CIFAR100 datasets with the AdamW optimizer, we follow the weight decay setting of Chhabra [7 ] , and conduct a learning rate search based on setting-5 and 6. For training ViT on the Tiny-ImageNet dataset, we follow the network architecture and hyperparameter settings of Lee et al. [28 ] . The classification results of the models trained using CE and BCE losses are shown in Table B.9.
Table B.1. Detailed experimental settings
Long-tailed recognition. The long-tailed datasets, CIFAR10-LT and CIFAR100-LT, are produced by sampling the training samples of the original datasets, using an exponential decay imbalance mode across classes, following the work of Cao et al. [3 ] . For each of them, we produced three variants of long-tailed datasets by using three different imbalance factors (IF), 10, 50, and 100. The IF is defined as the number of training samples in the largest class divided by the smallest. The experimental setting details for long-tailed recognition can be found in the work of Alshammari et al. [1 ] .
Open-set recognition. We sample from original datasets to generate the corresponding known and unknown classes, a simple summary is provided: (1) For MNIST, SVHN (Netzer et al. [40 ] ) and CIFAR10, six known classes and four unknown classes are randomly sampled. (2) For the CIFAR+50 experiments, four classes are sampled from CIFAR10 for training and 50 nonoverlapping classes are used as unknown classes, which are sampled from the CIFAR100 dataset. We use the area under the receiver operating characteristic (AUROC) curve (Neal et al. [39 ] ) and open set classification Rate (OSCR) (G. Chen et al. [4 ] ) as evaluation metrics in the experiments. The experimental setting details for open-set recognition can be found in the work of G. Chen et al. [4 ] .
Figure B.1. The evolution of the three NC metrics in the training of ResNet18 (top), ResNet50 (middle) and DenseNet121 (bottom) on MNIST with CE and BCE losses using SGD and AdamW, respectively
Neural Collapse of BCE and CE Losses
This section presents more results for the neural collapse (NC) that support the conclusions drawn in the paper. These results are computed on the training data from the the datasets. As we have mentioned before, we take N C 1 \mathcal{N}C_1 N C 1 , N C 2 \mathcal{N}C_2 N C 2 , and N C 3 \mathcal{N}C_3 N C 3 presented in Z. Zhu et al. [54 ] and Zhou et al. [52 ] to evaluate the evolution of NC for the CE and BCE.
When γ = 8 \gamma= 8 γ = 8 , Fig. B.1 - B.4 show the evolution in the training of ResNet18, ResNet50, DenseNet121, and ViT on the training datasets of MNIST, CIFAR10, and CIFAR100 with CE and BCE losses. In the training on MNIST and CIFAR10 dataset, the three NC metrics of both CE and BCE losses approach zero at the terminal phase of training, indicating that both have approached the neural collapse. Additionally, it is obvious that BCE decreases faster and converges to a higher degree than CE in the first 50 epochs. However, during the training on CIFAR100, which is a more challenging dataset than MNIST and CIFAR10, the NC metrics of models trained with the SGD optimizer, especially N C 2 \mathcal{N}C_2 N C 2 and N C 3 \mathcal{N}C_3 N C 3 , do not approach zero, whereas those of models trained with AdamW approach zero. One can still observe that in most cases, the NC metrics of the BCE loss decreases faster and converges better than the CE loss.
Figure B.2. The evolution of the three NC metrics in the training of ResNet18 (top), ResNet50 (middle) and DenseNet121 (bottom) on CIFAR10 with CE and BCE losses using SGD and AdamW, respectively
Impact of Classifier Biases and Scale Factor
The mean of initial classifier biases b b b . In Sec. 4.1, we point out that classifier biases differs substantially between the BCE and CE losses; specifically, at the global minimizer, the final bias of the BCE loss is uniquely determined, whereas in the CE loss there are infinitely many solutions. To validate this finding, we present the distribution of the final classifier biases and positive/negative unbiased decision scores for ResNet18 trained on MNIST, and ViT trained from scratch on CIFAR10 using different optimizer, with varying mean of initial classifier biases.
Fig. B.5 and B.6 show that the final classifier biases of CE-trained models are determined by their initial values, while the biases of BCE-trained models always converge to the same value, consistent with our theoretical analysis in the paper.
It is notable to point out a difference between CNNs and Transformers. For the CNN models such as ResNet and DenseNet, the output sample features are processed by the ReLU activation function, which makes that each component of the generated features is a nonnegative number and results in the sum of all sample features not being equal to zero (unless all the features are zero vectors, which is meaningless), conflicting with Eqs. (C.56) and (C.126) required for proving Theorems. Therefore, the perfect results for NC cannot be achieved based on the ResNet and DenseNet, as demonstrated by the obvious difference between the converged positive unbiased
Figure B.3. (a) N C 1 \mathcal{NC}_1 N C 1 , N C 2 \mathcal{NC}_2 N C 2 , and N C 3 \mathcal{NC}_3 N C 3 of ResNet18 on CIFAR100; (b) N C 1 \mathcal{NC}_1 N C 1 , N C 2 \mathcal{NC}_2 N C 2 , and N C 3 \mathcal{NC}_3 N C 3 of ResNet50 on CIFAR100; (c) N C 1 \mathcal{NC}_1 N C 1 , N C 2 \mathcal{NC}_2 N C 2 , and N C 3 \mathcal{NC}_3 N C 3 of DenseNet121 on CIFAR100. The evolution of the three NC metrics in the training of ResNet18 (top), ResNet50 (middle) and DenseNet121 (bottom) on CIFAR100 with CE and BCE losses using SGD and AdamW, respectively
Figure B.4. (a) N C 1 \mathcal{NC}_1 N C 1 , N C 2 \mathcal{NC}_2 N C 2 , and N C 3 \mathcal{NC}_3 N C 3 of ViT on CIFAR10; (b) N C 1 \mathcal{NC}_1 N C 1 , N C 2 \mathcal{NC}_2 N C 2 , and N C 3 \mathcal{NC}_3 N C 3 of ViT on CIFAR100. The evolution of the three NC metrics in the training of ViT on CIFAR10 (top) and CIFAR100 (bottom) with CE and BCE losses using SGD and AdamW, respectively
Figure B.5. The distribution of the final classifier biases and positive/negative unbiased decision scores for ResNet18 trained on MNIST with varying mean of initial classifier biases, while the variance of initial classifier biases is 0 and γ = 8 \gamma= 8 γ = 8 . The final classifier biases of CE-trained models are determined by their initial values, while that of BCE-trained models always converge to the same value
Figure B.6. The distribution of the final classifier biases and positive/negative unbiased decision scores for ViT trained on CIFAR10 with varying mean of initial classifier biases, while the variance of initial classifier biases is 0 and γ = 8 \gamma= 8 γ = 8 . The final classifier biases of CE-trained models are determined by their initial values, while that of BCE-trained models always converge to the same value
decision scores and the theoretical value γ = 8 \gamma= 8 γ = 8 , regardless of whether the model is trained using CE or BCE. This phenomenon has been found and discussed in Z. Zhu et al. [54 ] . In contrast, the features output by ViT are not processed by ReLU or any other activation functions, which aligns more closely with the unconstrained feature model [47 , 54 ] . When training ViT with the CE or BCE, the converged positive and negative unbiased decision scores can converge to γ = 8 \gamma= 8 γ = 8 and − γ K − 1 = − 8 9 -\frac{\gamma}{K-1} = -\frac{8}{9} − K − 1 γ = − 9 8 , respectively.
The variance of initial classifier biases b b b . It is well known that the variance of the parameters at model initialization determines whether gradient signals propagate stably in deep neural networks, thereby affecting convergence speed, training stability, and final generalization performance. Based on this consensus, to more comprehensively validate our theoretical findings, we conduct experiments with a fixed mean of initial classifier biases of 0, when the variances of initial classifier biases are set to 0, 0.1, 0.5, 1, 2, 3, 4, 5, 6, respectively, to further compare the BCE and CE losses.
Figures B.7 and B.8 visually show the distributions of the final unbiased decision scores and classifier biases for ResNet18 trained on MNIST and that for ViT trained
Figure B.7. The distribution of the final classifier biases and positive/negative unbiased decision scores of ResNet18 trained on MNIST with varying initial variance of the classifier biases. The different scale factors, γ = 8 \gamma= 8 γ = 8 (1-st row), γ = 16 \gamma= 16 γ = 16 (2-nd row), γ = 32 \gamma= 32 γ = 32 (3-rd row), and γ = 64 \gamma= 64 γ = 64 (4-th row), also significantly impact the convergence of decision scores and the final classifier biases
Figure B.8. The distribution of the final classifier bias and unbiased positive/negative decision scores of ViT trained on CIFAR10 with varying initial variance of the classifier bias. The different scale factors, γ = 8 \gamma= 8 γ = 8 (1-st row), γ = 16 \gamma= 16 γ = 16 (2-nd row), and γ = 32 \gamma= 32 γ = 32 (3-rd row), also significantly impact the convergence of decision scores and the final classifier bias
from scratch on CIFAR10. For the different network architectures, optimizers, and scale factors, the BCE generally achieves better convergence compared to the CE, especially when γ = 8 \gamma= 8 γ = 8 . When γ = 16 \gamma= 16 γ = 16 , 32 or 64, the large normalized feature space makes it difficult for the models trained with either CE or BCE to converge, but the BCE-trained models usually yield better convergence.
Impact of Scale Factor to Model Training
The scale factor γ \gamma γ . To illustrate the effect of the scale factor for model training in the normalized feature space, we trained ResNet18 and ViT from scratch on the MNIST and CIFAR10 when γ \gamma γ varies from 0.1 to 64.
Fig. B.9 - B.12 visually show the distributions of the final decision scores and classifier biases for ResNet18 and ViT trained from scratch on the MNIST and CIFAR10 datasets. One can observe that, when γ ≤ 8 \gamma\le8 γ ≤ 8 is small, the positive and negative unbiased decision scores, as well as the final classifier biases, of the models trained with BCE and CE losses closely align with the theoretical curves. However, as γ \gamma γ increases, they increasingly deviate from their theoretical values. Specifically, when γ \gamma γ is reaching 32 or even 64, the distributions of the model’s positive/negative unbiased decision scores span large ranges and do not converge.
Furthermore, one can find that, in the CE-trained models, the converged classifier biases largely depend on their initial values, providing no correlation with the final positive/negative unbiased decision scores. In contrast, with appropriately small γ \gamma γ , regardless of the initial value of the biases, the final classifier biases of the BCE-trained models converge to the theoretical values.
Numerical Results of ResNet18 and ViT trained on CIFAR10
In this section, Tables B.5 and B.6 provide the classification results and feature properties of ResNet18 and ViT trained from scratch on the MNIST and CIFAR10 datasets, when the scale factor γ \gamma γ varies from 0.1 to 64.
It is evident that when γ \gamma γ takes a very small value, it can significantly affect the model’s classification performance, as the distance between the positive and negative decision scores becomes small. In this situation, even slight disturbance in the model training or small variance in the classifier biases can substantially impact the classification accuracy. However, based on the results of E c o m \mathcal{E}_{\mathrm{com}} E com and E s e p \mathcal{E}_{\mathrm{sep}} E sep , we conclude that poor classification accuracy A \mathcal{A} A does not imply that the model has learned unsatisfactory sample features.
Moreover, as analyzed in § 4.1 , the classifier biases of the BCE loss play a crucial role in the model training, explicitly constraining the model’s positive and negative decision scores, which helps the model to learn features with better intra-class compactness and inter-class separability. One can find that, when γ > 5 \gamma> 5 γ > 5 , the BCE-trained models usually exhibit higher E c o m \mathcal{E}_{\mathrm{com}} E com and E s e p \mathcal{E}_{\mathrm{sep}} E sep than the CE-trained models, which provides strong support for our theoretical conclusions. However, when γ ≤ 1 \gamma\le1 γ ≤ 1 , due to the small normalized feature space, the minor perturbations during the training could significantly affect the feature learning, overshadowing the role of classifier biases in the BCE-trained models, which prevents them from obtaining good feature properties.
Furthermore, Tables B.2 and B.3 present the numerical results of the final positive/negative unbiased decision scores and classifier biases, for the CE- and BCE-trained ResNet18 and ViT, with γ \gamma γ varying from 0.1 to 64. When γ \gamma γ is very small, the gap between the converged unbiased positive and negative decision scores is also very small. When γ ≤ 0.5 \gamma\le0.5 γ ≤ 0.5 , despite the ResNet18 trained on CIFAR10 being very close to
Figure B.9. (a) ResNet18 on MNIST, Mean(b b b ) = 0, and Var(b b b ) = 0. (b) ResNet18 on MNIST, Mean(b b b ) = 10, and Var(b b b ) = 0. (c) ResNet18 on MNIST, Mean(b b b ) = 20, and Var(b b b ) = 0. (d) ResNet18 on MNIST, Mean(b b b ) = 30, and Var(b b b ) = 0. The distribution of the final classifier biases and positive/negative unbiased decision scores of ResNet18 trained on MNIST by using various scale factors γ \gamma γ . The variance of initial classifier biases is set to 0, and their initial mean takes different values, 0, 10, 20, and 30, respectively
Figure B.10. (a) ResNet18 on MNIST, Mean(b b b ) = 5, and Var(b b b ) = 0
(b) ResNet18 on MNIST, Var(b b b ) = 0, while the mean (Mean(b b b )) of initial classifier biases set to the theoretical value of the BCE loss (defined by Eq. (15) )
The distribution of the final classifier biases and positive/negative unbiased decision scores of ResNet18 trained on MNIST by using various scale factors γ \gamma γ . The variance of the initial classifier biases is set to 0
Figure B.11. The distribution of the final classifier biases and positive/negative unbiased decision scores of ResNet18 (without the final ReLU) trained on CIFAR10 by using various scale factors γ \gamma γ . The mean and variance of the initial classifier biases is both set to 0
neural collapse, as indicated by the relatively small variance of its positive and negative unbiased decision scores in Table B.2, which are essentially converged, even a slight variance in the classifier bias can still significantly affect its classification accuracy, as indicated by the significantly gap between the classification accuracy A A A and the unbiased one A ∗ A^* A ∗ in the Table B.5. When γ ≤ 2 \gamma\le2 γ ≤ 2 , due to the disturbances during the model training, the ViT trained on CIFAR10 has not fully converged, which is reflected in the relatively large variance of its positive and negative unbiased decision scores. In fact, as shown in Figure B.12b, when γ ≤ 2 \gamma\le2 γ ≤ 2 , the distribution areas of the positive and negative unbiased decision scores of the ViT show significant overlapping, resulting in both low classification accuracy A \mathcal{A} A and the unbiased one A ∗ \mathcal{A}^{*} A ∗ for the ViT in Table B.6.
Figure B.12. The distribution of the final classifier biases and positive/negative unbiased decision scores of ViT trained on CIFAR10 by using various scale factors γ \gamma γ . The variance of the initial classifier biases is set to 0
Conversely, a larger γ \gamma γ expands the normalized feature space, leading to a large gap between the theoretical values of the converged positive and negative unbiased decision scores, which ensures robust classification; thus, the small perturbations such as the variance of the classifier biases cannot significantly affect the classification results. However, when γ \gamma γ is too large, the positive and negative decision scores struggle to converge, as evidenced by the large variance of the final unbiased decision scores, indicating that the sample features have poor intra-class compactness and inter-class separability.
Table B.2. The final positive/negative unbiased decision scores and classifier biases of ResNet18 (without the final ReLU) with various γ \gamma γ on training data of CIFAR10 (mean ± \pm ± standard deviation). The symbols s ( k k ) s^{(kk)} s ( k k ) and s ( j k ) s^{(jk)} s ( j k ) represent the positive and negative unbiased decision scores, respectively. The smaller standard deviation implies that the scores and biases tend to converge to similar values after training. The Mean ( b ) = 0 \operatorname{Mean}(b)=0 Mean ( b ) = 0 , and Var ( b ) = 0 \operatorname{Var}(b)=0 Var ( b ) = 0 . (a) ResNet18 on CIFAR10 with SGD optimizer. (b) ResNet18 on CIFAR10 with AdamW optimizer.
Numerical Results of ResNet18 on Test Set of CIFAR10
This paper focuses on the training set, providing an in-depth analysis of the differences between classification and feature learning. We believe that their difference can generalize to the test set, although there is still a lack of solid theoretical proof. Table B.4 offers the classification accuracy and feature properties of trained ResNet18 on the test set of CIFAR10, while the results on training set have been shown in Table B.5.
Table B.3. The final positive/negative unbiased decision scores and classifier biases of ViT with varying γ \gamma γ on training data of CIFAR10 (mean ± \pm ± standard deviation). The symbols s ( k k ) s^{(kk)} s ( k k ) and s ( j k ) s^{(jk)} s ( j k ) represent the positive and negative unbiased decision scores, respectively. The smaller standard deviation implies that the scores and biases tend to converge to similar values. The Mean(b b b ) = 5, and Var(b b b ) = 0. (a) ViT on CIFAR10 with SGD optimizer. (b) ViT on CIFAR10 with AdamW optimizer.
From the table, one can observe that when γ \gamma γ is small, such as 0.1 or 0.5, the models’ classification is poor, but the intra-class compactness and inter-class separability of the features are higher than 0.8 and 0.5, respectively. Conversely, when γ \gamma γ is large, such as 32 or 64, the models achieve higher classification accuracy, but the feature properties significantly degrade. These results demonstrate that the differences between the tasks of classification and deep feature learning, as analyzed on the training set, also generalize to the test set.
Table B.4. The classification accuracy and feature properties for ResNet18 on the test set of CIFAR10
Table B.5. The classification accuracy (%) and feature properties of ResNet18 (without the final ReLU) with various γ \gamma γ on training data of CIFAR10. The accuracies of A \mathcal{A} A and A ∗ \mathcal{A}^{*} A ∗ are calculated using { γ w j ⊤ h ( k ) − b j } \{\gamma\mathbf{w}_{j}^{\top}\mathbf{h}^{(k)}-b_{j}\} { γ w j ⊤ h ( k ) − b j } and { γ w j ⊤ h ( k ) } \{\gamma\mathbf{w}_{j}^{\top}\mathbf{h}^{(k)}\} { γ w j ⊤ h ( k ) } , respectively. The higher E c o m \mathcal{E}_{\mathrm{com}} E com and E s e p \mathcal{E}_{\mathrm{sep}} E sep respectively indicate the smaller intra-class variability and the bigger inter-class separability. The Mean(b \mathbf{b} b ) = 0, and Var(b \mathbf{b} b ) = 0
Table B.6. Table B.6: The classification accuracy (%) and feature properties of ViT with various γ \gamma γ on training data of CIFAR10. The accuracies of A \mathcal{A} A and A ∗ \mathcal{A}^{*} A ∗ are calculated using the decision score { γ w j ⊤ h ( k ) − b j } \{\gamma\mathbf{w}_{j}^{\top} \mathbf{h}^{(k)}-b_j\} { γ w j ⊤ h ( k ) − b j } and { γ w j ⊤ h ( k ) } \{\gamma\mathbf{w}_{j}^{\top}\mathbf{h}^{(k)}\} { γ w j ⊤ h ( k ) } , respectively. The higher E c o m \mathcal{E}_{\mathrm{com}} E com and E s e p \mathcal{E}_{\mathrm{sep}} E sep respectively indicate the smaller intra-class variability and the bigger inter-class separability. The Mean(b b b ) = 5, and Var(b b b ) = 0. (a) Results with SGD. (b) Results with AdamW.
Experimental verification for Theorems 5 and 6
In § 4.2 , we theoretically analyze how the convergence rate of unbiased positive and negative decision scores changes as γ \gamma γ linearly increases or decreases, which reflect the convergence behavior of the CE and BCE losses. Specifically, (1) when γ \gamma γ decreases linearly toward 0, the convergence rate of the losses decays linearly, meaning that the number of training epochs required to reach their minima increases linearly; (2) when CC I or II is satisfied, as γ \gamma γ increases linearly, the convergence rate of the losses decays exponentially, meaning that the number of training epochs required to reach their minima increases exponentially.
To directly verify the above conclusions, we set the NC structure at the minimum point as the stopping criterion, and train ResNet18 on MNIST with varying gamma. In these experiments, the stopping criterion is set as
∣ w k T h i ( k ) − 1 ∣ ≤ t , ∀ k ∈ [ K ] , i ∈ [ n ] , \left|\mathbf{w}_k^{\mathsf{T}}\mathbf{h}_i^{(k)}-1\right|\le t,\quad\forall k\in[K],i\in[n], w k T h i ( k ) − 1 ≤ t , ∀ k ∈ [ K ] , i ∈ [ n ] ,
∣ w k T h i ( k ) + 1 K − 1 ∣ ≤ t , ∀ j ≠ k ∈ [ K ] , i ∈ [ n ] . (35) \left|\mathbf{w}_k^{\mathsf{T}}\mathbf{h}_i^{(k)}+\frac{1}{K-1}\right|\le t,\quad\forall j\ne k\in[K],i\in[n]. \tag*{(35)} w k T h i ( k ) + K − 1 1 ≤ t , ∀ j = k ∈ [ K ] , i ∈ [ n ] . (35)
When γ < 5 \gamma<5 γ < 5 , we set t = 0.001 t=0.001 t = 0.001 ; when γ ≥ 5 \gamma\ge5 γ ≥ 5 , we set t = 0.0035 t=0.0035 t = 0.0035 . Moreover, we use SGD optimizer and fix the learning rate at 0.01. Table 1 and Figure B.13 show the epoch numbers required by CE and BCE losses when they satisfying the criterion.
For cases with γ < 0.5 \gamma<0.5 γ < 0.5 and γ > 5 \gamma>5 γ > 5 , we took six and five data points to respectively fit the dependence of epoch number on the scale factor γ \gamma γ using linear, quadratic, and cubic polynomial functions, as well as exponential and logarithmic functions in terms of 1 γ \frac{1}{\gamma} γ 1 (for γ < 0.5 \gamma<0.5 γ < 0.5 ) and γ \gamma γ (for γ > 1 \gamma>1 γ > 1 ). The remaining data points were used to evaluate the predication quality of the fitted functions, and the evaluate metrics are coefficient of determination R 2 R^2 R 2 and root mean squared error (RMSE)
R 2 = 1 − ∑ i = 1 n ( y i − y ^ i ) 2 ∑ i = 1 n ( y i − y ˉ ) 2 , (36) R^2=1-\frac{\sum_{i=1}^{n}(y_i-\hat{y}_i)^2}{\sum_{i=1}^{n}(y_i-\bar{y})^2}, \tag*{(36)} R 2 = 1 − ∑ i = 1 n ( y i − y ˉ ) 2 ∑ i = 1 n ( y i − y ^ i ) 2 , (36)
R M S E = 1 n ∑ i = 1 n ( y i − y ^ i ) 2 , (37) \mathrm{RMSE}=\sqrt{\frac{1}{n}\sum_{i=1}^{n}(y_i-\hat{y}_i)^2}, \tag*{(37)} RMSE = n 1 i = 1 ∑ n ( y i − y ^ i ) 2 , (37)
where { y i } i = 1 n \{y_i\}_{i=1}^{n} { y i } i = 1 n are the observed true data points, { y ^ i } i = 1 n \{\hat{y}_i\}_{i=1}^{n} { y ^ i } i = 1 n are the predicted values by the fitted function, and y ˉ \bar{y} y ˉ denotes the mean of the true values. Tables B.7 and B.8 show the fitting results, together with the metrics of R 2 R^2 R 2 and RMSE on the fitting and prediction data points.
It can be seen that when γ < 0.5 \gamma<0.5 γ < 0.5 , a linear function in 1 / γ 1/\gamma 1/ γ (i.e., an inverse proportional function) already provides a very good fitting to the number of epochs required by CE and BCE loss to reach their minima. In particular, their predictions achieve very high R 2 R^2 R 2 and low RMSE. Although for BCE a quadratic polynomial in 1 / γ 1/\gamma 1/ γ yields a better overall fitting, by examining its coefficients together with the R 2 R^2 R 2 and RMSE on both the fitted and predicted data, one can clearly observe that the inverse-proportional term is the main factor determining how the required epoch number varies with γ \gamma γ .
Figure B.13. The fitted functions describing the variation of epoch number with respect to γ \gamma γ for CE (top) and BCE (bottom) losses. The epoch numbers in the figure indicate the training duration required to achieve minimum values (i.e., the criterion in Eq. (B.1)) of the two losses for training ResNet18 on MNIST, with different scale factors γ \gamma γ . The blue dots represent that the data was used for function fitting, the red dots represent the predicted values, and the green triangles represent the observed data in experiments
For γ > 5 \gamma> 5 γ > 5 , it can be observed that linear and logarithmic functions do not conform to the trend of epoch number varying with γ \gamma γ ; consequently, their fitting results are poor. Compared to quadratic and cubic polynomials, the exponential function achieved superior fitting results, particularly on the prediction data. This is consistent with the conclusion in the paper that the convergence rate of the losses exhibits exponential decay as γ \gamma γ approaches infinity. Furthermore, it is noteworthy that as the polynomial order increases, the corresponding fitting results also improve progressively. Given that exponential functions can be expanded through Taylor series, the phenomenon is reasonable.
Table B.7. Fitted functions and their evaluation results for the epoch number used by the CE and BCE with γ < 0.5 \gamma< 0.5 γ < 0.5
Table B.8. Fitted functions and their evaluation results for the epoch number used by the CE and BCE with γ > 5 \gamma> 5 γ > 5
Balanced Classification
To further show the potential of BCE loss, we provide the classification performance on balanced dataset here. Table B.9 shows the classification results of the models trained on the balanced datasets, CIFAR10, CIFAR100, and Tiny-ImageNet dataset (Wu et al. (2017)). It can be observed that, the classification performance of models trained with BCE loss is comparable to or even surpassing that of models trained with CE loss.
When training ViT on the CIFAR10, CIFAR100, and Tiny-ImageNet datasets, its classification is significantly worse than that of the ResNets, which is intuitive and reasonable. As noted by H. Zhu et al. [53 ] and Zhang et al. [48 ] , due to the influence of factors such as model architecture and inductive biases, the ViT trained on small datasets is hugely different from ViT trained on large datasets, which may be the reason why the performance drops a lot on these small datasets. Setting aside the inherent differences between these models, we still find that training with the BCE loss can achieve performance on par with, or even surpassing, that of the CE loss. The BCE loss helps the model learn deep features with better compactness and separability, which is usually and intuitively beneficial for classification.
Table B.9. The classification accuracy (%) on the test datasets of CIFAR10, CIFAR100 and Tiny-ImageNet. We conducted learning rate optimization for each experimental combination while keeping other hyperparameters fixed, and the γ = 32 \gamma= 32 γ = 32
In § 5 , we present the open-set recognition (OSR) performance of models trained by BCE and CE losses. To further analyze their differences and the impact of classifier biases in practice, we conducted additional OSR experiments with and without the classifier biases, respectively setting the mean of initial classifier biases as 0, 5, and 10 when the classifier biases were included in the losses. Table B.10 presents the OSR results.
It can be observed that when the losses taking the classifier biases, regardless of their initial mean (0, 5, or 10), the BCE-trained models consistently outperforms the CE-trained ones in the OSR experiments. In contrast, without the biases, the OSR of BCE-trained models experiences a dramatic decline (over 8.92% degradation), compared with the CE-trained models, especially on MNIST and SVHN, which demonstrate again the crucial role of classifier biases in the BCE loss.
Proof of Theorems
In the normalized feature space, Theorems 1 and 2 have concluded the neural collapse of the CE and BCE losses on balanced datasets. In this section, we present their detail proofs.
Basics
Before providing the proofs, we first formally present the definition of canonical K K K -simplex ETF in d d d -dimension space, and two lemmas required by the proofs.
Table B.10. The results of open-set recognition. Results are averaged among five randomized trials and the scale factor γ = 32 \gamma= 32 γ = 32
Definition C.1 (K-simplex ETF) A K-simplex ETF is a collection of vectors in R d \mathbb{R}^{d} R d specified by the columns of matrix
M = K K − 1 P ( I K − 1 K 1 K 1 K T ) . (38) M = \sqrt{\frac{K}{K-1}}P\left(I_{K}-\frac{1}{K}\mathbf{1}_{K}\mathbf{1}_{K}^{\mathsf{T}}\right). \tag*{(38)} M = K − 1 K P ( I K − K 1 1 K 1 K T ) . (38) where I K ∈ R K × K I_{K} \in\mathbb{R}^{K \times K} I K ∈ R K × K is the identity matrix and 1 K ∈ R K \mathbf{1}_{K} \in\mathbb{R}^{K} 1 K ∈ R K is the ones vector, and P ∈ R d × K P \in\mathbb{R}^{d \times K} P ∈ R d × K (d ≥ K d \ge K d ≥ K ) is a partial-orthogonal matrix such that P T P = I K P^{\mathsf{T}}P = I_{K} P T P = I K .
Note that the matrix M M M satisfies:
M T M = K K − 1 ( I K − 1 K 1 K 1 K T ) . (39) M^{\mathsf{T}}M = \frac{K}{K-1}\left(I_{K}-\frac{1}{K}\mathbf{1}_{K}\mathbf{1}_{K}^{\mathsf{T}}\right). \tag*{(39)} M T M = K − 1 K ( I K − K 1 1 K 1 K T ) . (39)
Lemma C.2 (Young’s Inequality ) Let p p p , q q q be positive numbers satisfying 1 p + 1 q = 1 \frac{1}{p}+\frac{1}{q}=1 p 1 + q 1 = 1 . Then for any a a a , b ∈ R b \in\mathbb{R} b ∈ R , we have
∣ a b ∣ ≤ ∣ a ∣ p p + ∣ b ∣ q q , (40) |ab| \le\frac{|a|^{p}}{p}+\frac{|b|^{q}}{q}, \tag*{(40)} ∣ ab ∣ ≤ p ∣ a ∣ p + q ∣ b ∣ q , (40) where the equality holds if and only if ∣ a ∣ p = ∣ b ∣ q |a|^{p}=|b|^{q} ∣ a ∣ p = ∣ b ∣ q . The case for p = q = 2 p=q=2 p = q = 2 is just the AM-GM inequality which is ∣ a b ∣ ≤ 1 2 ( a 2 + b 2 ) |ab| \le\frac{1}{2}(a^{2}+b^{2}) ∣ ab ∣ ≤ 2 1 ( a 2 + b 2 ) , where the equality holds if and only if ∣ a ∣ = ∣ b ∣ |a|=|b| ∣ a ∣ = ∣ b ∣ .
Lemma C.3 (Jensen’s Inequality ) Let f f f be a convex function on an interval I I I . Then
f ( λ 1 x 1 + ⋯ + λ n x n ) ≤ λ 1 f ( x 1 ) + ⋯ + λ n f ( x n ) , (41) f(\lambda_{1}x_{1}+\cdots+\lambda_{n}x_{n}) \le\lambda_{1}f(x_{1})+\cdots+\lambda_{n}f(x_{n}), \tag*{(41)} f ( λ 1 x 1 + ⋯ + λ n x n ) ≤ λ 1 f ( x 1 ) + ⋯ + λ n f ( x n ) , (41) where
x 1 , x 2 , ⋯ , x n ∈ I , λ 1 , λ 2 , ⋯ , λ n ∈ [ 0 , 1 ] . (42) x_{1},x_{2},\cdots,x_{n} \in I,\quad\lambda_{1},\lambda_{2},\cdots,\lambda_{n} \in[0,1]. \tag*{(42)} x 1 , x 2 , ⋯ , x n ∈ I , λ 1 , λ 2 , ⋯ , λ n ∈ [ 0 , 1 ] . (42) When f f f is strictly convex, let
I 1 = { k : λ k ∈ ( 0 , 1 ] } , and I 2 = { k : λ k = 0 } . (43) I_{1}=\{k:\lambda_{k}\in(0,1]\},\quad\text{and}\quad I_{2}=\{k:\lambda_{k}=0\}. \tag*{(43)} I 1 = { k : λ k ∈ ( 0 , 1 ]} , and I 2 = { k : λ k = 0 } . (43) The equality holds if and only if all x k x_{k} x k , k ∈ I 1 k \in I_{1} k ∈ I 1 are equal. In practice, if the function f f f is concave like exp ( x ) \exp(x) exp ( x ) , log ( x ) \log(x) log ( x ) , or log ( 1 + exp ( x ) ) \log(1+\exp(x)) log ( 1 + exp ( x )) , Jensen’s Inequality can be written as
exp ( ∑ i = 1 n x i n ) ≤ ∑ i = 1 n exp ( x i ) n , (44) \exp\left(\frac{\sum_{i=1}^{n}x_{i}}{n}\right)\le\frac{\sum_{i=1}^{n}\exp(x_{i})}{n}, \tag*{(44)} exp ( n ∑ i = 1 n x i ) ≤ n ∑ i = 1 n exp ( x i ) , (44) log ( ∑ i = 1 n x i n ) ≥ ∑ i = 1 n log ( x i ) n , (45) \log\left(\frac{\sum_{i=1}^{n}x_{i}}{n}\right)\ge\frac{\sum_{i=1}^{n}\log(x_{i})}{n}, \tag*{(45)} log ( n ∑ i = 1 n x i ) ≥ n ∑ i = 1 n log ( x i ) , (45) log ( 1 + exp ( ∑ i = 1 n x i n ) ) ≥ 1 n ∑ i = 1 n log ( 1 + exp ( x i ) ) . (46) \log\left(1+\exp\left(\frac{\sum_{i=1}^{n}x_{i}}{n}\right)\right)\ge\frac{1}{n}\sum_{i=1}^{n}\log(1+\exp(x_{i})). \tag*{(46)} log ( 1 + exp ( n ∑ i = 1 n x i ) ) ≥ n 1 i = 1 ∑ n log ( 1 + exp ( x i )) . (46)
Proof of Theorem 2
Theorem C.4 Assume that the feature dimension d d d is larger than the number of classes K K K , i.e., d ≥ K − 1 d \ge K-1 d ≥ K − 1 , and γ > 0 \gamma> 0 γ > 0 . In the normalized feature space, any global minimizer ( W ⋆ , H ⋆ , b ⋆ ) (\mathbf{W}^{\star},\mathbf{H}^{\star},\mathbf{b}^{\star}) ( W ⋆ , H ⋆ , b ⋆ ) of
f b c e ( W , H , b ) ≜ 1 n K ∑ k = 1 K ∑ i = 1 n L b c e ( γ W h i ( k ) − b ) (47) f_{\mathrm{bce}}(\mathbf{W},\mathbf{H},\mathbf{b}) \triangleq\frac{1}{nK}\sum_{k=1}^{K}\sum_{i=1}^{n}\mathcal{L}_{\mathrm{bce}}\left(\gamma\mathbf{W}\mathbf{h}_{i}^{(k)}-\mathbf{b}\right) \tag*{(47)} f bce ( W , H , b ) ≜ n K 1 k = 1 ∑ K i = 1 ∑ n L bce ( γ W h i ( k ) − b ) (47) with ∥ w j ∥ 2 = ∥ h i ( k ) ∥ 2 = 1 \lVert\mathbf{w}_{j}\rVert_{2}=\lVert\mathbf{h}_{i}^{(k)}\rVert_{2}=1 ∥ w j ∥ 2 = ∥ h i ( k ) ∥ 2 = 1 for ∀ j , k ∈ [ K ] , i ∈ [ n ] \forall j,k\in[K],i\in[n] ∀ j , k ∈ [ K ] , i ∈ [ n ] , obeys
w k ⋆ = h i ( k ) ⋆ , ∀ k ∈ [ K ] , i ∈ [ n ] , (48) \mathbf{w}_{k}^{\star}=\mathbf{h}_{i}^{(k)\star},\quad\forall k\in[K],\ i\in[n], \tag*{(48)} w k ⋆ = h i ( k ) ⋆ , ∀ k ∈ [ K ] , i ∈ [ n ] , (48) h ~ i ⋆ ≜ 1 K ∑ j = 1 K h i ( j ) ⋆ = 0 , ∀ i ∈ [ n ] , (49) \tilde{\mathbf{h}}_{i}^{\star}\triangleq\frac{1}{K}\sum_{j=1}^{K}\mathbf{h}_{i}^{(j)\star}=\mathbf{0},\quad\forall i\in[n], \tag*{(49)} h ~ i ⋆ ≜ K 1 j = 1 ∑ K h i ( j ) ⋆ = 0 , ∀ i ∈ [ n ] , (49) W ⋆ W ⋆ T = K K − 1 ( I K − 1 K 1 K 1 K T ) , (50) \mathbf{W}^{\star}\mathbf{W}^{\star\mathsf{T}}=\frac{K}{K-1}\left(\mathbf{I}_{K}-\frac{1}{K}\mathbf{1}_{K}\mathbf{1}_{K}^{\mathsf{T}}\right), \tag*{(50)} W ⋆ W ⋆ T = K − 1 K ( I K − K 1 1 K 1 K T ) , (50) b ⋆ = b ⋆ 1 , (51) \mathbf{b}^{\star}=b^{\star}\mathbf{1}, \tag*{(51)} b ⋆ = b ⋆ 1 , (51) where
b ⋆ = log ( K − 2 ) e − γ K − 1 + ( K − 2 ) 2 e − 2 γ K − 1 + 4 ( K − 1 ) e − γ K − 1 + γ 2 . (52) b^{\star}=\log\frac{(K-2)e^{-\frac{\gamma}{K-1}}+\sqrt{(K-2)^{2}e^{-\frac{2\gamma}{K-1}}+4(K-1)e^{-\frac{\gamma}{K-1}+\gamma}}}{2}. \tag*{(52)} b ⋆ = log 2 ( K − 2 ) e − K − 1 γ + ( K − 2 ) 2 e − K − 1 2 γ + 4 ( K − 1 ) e − K − 1 γ + γ . (52) Proof. For the function f b c e ( W , H , b ) f_{\mathrm{bce}}(\mathbf{W},\mathbf{H},\mathbf{b}) f bce ( W , H , b ) , according to Lemma C.6 ,
f b c e ( W , H , b ) ≥ − 2 γ − ( K − 2 ) b ⋆ + log ( 1 + e γ − b ⋆ ) + ( K − 1 ) log ( 1 + e b ⋆ + γ K − 1 ) . (53) f_{\mathrm{bce}}(\mathbf{W},\mathbf{H},\mathbf{b})\ge-2\gamma-(K-2)b^{\star}+\log\left(1+e^{\gamma-b^{\star}}\right)+(K-1)\log\left(1+e^{b^{\star}+\frac{\gamma}{K-1}}\right). \tag*{(53)} f bce ( W , H , b ) ≥ − 2 γ − ( K − 2 ) b ⋆ + log ( 1 + e γ − b ⋆ ) + ( K − 1 ) log ( 1 + e b ⋆ + K − 1 γ ) . (53) According to Lemma C.7, the inequality (C.16) achieves its equality when Eqs. (C.11), (C.12), (C.13), (C.14), and (C.15) hold. For any fixed γ > 0 \gamma>0 γ > 0 and K K K , the right side of the inequality (C.16) is a constant. Therefore, when f b c e ( W , H , b ) f_{\mathrm{bce}}(\mathbf{W},\mathbf{H},\mathbf{b}) f bce ( W , H , b ) reaching this constant, it gets its minimum.
Lemma C.5 For any h i ( k ) \mathbf{h}_{i}^{(k)} h i ( k ) with c 1 , c 2 > 0 c_{1},c_{2}>0 c 1 , c 2 > 0 and γ > 0 \gamma>0 γ > 0 , the normalized BCE loss is lower bounded by
L b c e ( γ W h i ( k ) − b ) ≥ 1 1 + c 1 ( − γ w k T h i ( k ) + b k ) + 1 1 + c 2 ∑ j = 1 j ≠ k K ( γ w j T h i ( k ) − b j ) + C , (54) \mathcal{L}_{\mathrm{bce}}\left(\gamma\mathbf{W}\mathbf{h}_{i}^{(k)}-\mathbf{b}\right)\ge\frac{1}{1+c_{1}}\left(-\gamma\mathbf{w}_{k}^{\mathsf{T}}\mathbf{h}_{i}^{(k)}+b_{k}\right)+\frac{1}{1+c_{2}}\sum_{\substack{j=1\\j\ne k}}^{K}\left(\gamma\mathbf{w}_{j}^{\mathsf{T}}\mathbf{h}_{i}^{(k)}-b_{j}\right)+C, \tag*{(54)} L bce ( γ W h i ( k ) − b ) ≥ 1 + c 1 1 ( − γ w k T h i ( k ) + b k ) + 1 + c 2 1 j = 1 j = k ∑ K ( γ w j T h i ( k ) − b j ) + C , (54) where
C = log ( 1 + c 1 ) − c 1 1 + c 1 log ( c 1 ) + ( K − 1 ) [ log ( 1 + c 2 ) − c 2 1 + c 2 log ( c 2 ) ] . (55) C=\log(1+c_{1})-\frac{c_{1}}{1+c_{1}}\log(c_{1})+(K-1)\left[\log(1+c_{2})-\frac{c_{2}}{1+c_{2}}\log(c_{2})\right]. \tag*{(55)} C = log ( 1 + c 1 ) − 1 + c 1 c 1 log ( c 1 ) + ( K − 1 ) [ log ( 1 + c 2 ) − 1 + c 2 c 2 log ( c 2 ) ] . (55) The inequality becomes an equality if and only if
c 1 = exp ( γ w k T h i ( k ) − b k ) , ∀ k ∈ [ K ] , (56) c_{1}=\exp\left(\gamma\mathbf{w}_{k}^{\mathsf{T}}\mathbf{h}_{i}^{(k)}-b_{k}\right),\quad\forall k\in[K], \tag*{(56)} c 1 = exp ( γ w k T h i ( k ) − b k ) , ∀ k ∈ [ K ] , (56) c 2 = exp ( b j − γ w j T h i ( k ) ) , ∀ j ≠ k ∈ [ K ] . (57) c_{2}=\exp\left(b_{j}-\gamma\mathbf{w}_{j}^{\mathsf{T}}\mathbf{h}_{i}^{(k)}\right),\quad\forall j\ne k\in[K]. \tag*{(57)} c 2 = exp ( b j − γ w j T h i ( k ) ) , ∀ j = k ∈ [ K ] . (57)
Proof. By the concavities of log ( x ) \log(x) log ( x ) , and according to Lemma C.3 , the normalized BCE loss can be lower bounded by
L b c e ( γ W h i ( k ) − b ) = log ( 1 + exp ( − γ w k T h i ( k ) + b k ) ) + ∑ j = 1 j ≠ k K log ( 1 + exp ( γ w j T h i ( k ) − b j ) ) (58) \mathcal{L}_{\mathrm{bce}}(\gamma W h_i^{(k)}-b)
= \log\left(1+\exp\left(-\gamma w_k^{\mathsf{T}}h_i^{(k)}+b_k\right)\right)
+\sum_{\substack{j=1\\j\ne k}}^{K}\log\left(1+\exp\left(\gamma w_j^{\mathsf{T}}h_i^{(k)}-b_j\right)\right) \tag*{(58)} L bce ( γ W h i ( k ) − b ) = log ( 1 + exp ( − γ w k T h i ( k ) + b k ) ) + j = 1 j = k ∑ K log ( 1 + exp ( γ w j T h i ( k ) − b j ) ) (58)
= log ( c 1 1 + c 1 1 + c 1 c 1 + 1 + c 1 1 + c 1 exp ( − γ w k T h i ( k ) + b k ) ) + ∑ j = 1 j ≠ k K log ( c 2 1 + c 2 1 + c 2 c 2 + 1 + c 2 1 + c 2 exp ( γ w j T h i ( k ) − b j ) ) (59) \begin{aligned}
={}&\log\left(\frac{c_1}{1+c_1}\frac{1+c_1}{c_1}+\frac{1+c_1}{1+c_1}\exp\left(-\gamma w_k^{\mathsf{T}}h_i^{(k)}+b_k\right)\right)\\
&+\sum_{\substack{j=1\\j\ne k}}^{K}\log\left(\frac{c_2}{1+c_2}\frac{1+c_2}{c_2}+\frac{1+c_2}{1+c_2}\exp\left(\gamma w_j^{\mathsf{T}}h_i^{(k)}-b_j\right)\right) \tag*{(59)}
\end{aligned} = log ( 1 + c 1 c 1 c 1 1 + c 1 + 1 + c 1 1 + c 1 exp ( − γ w k T h i ( k ) + b k ) ) + j = 1 j = k ∑ K log ( 1 + c 2 c 2 c 2 1 + c 2 + 1 + c 2 1 + c 2 exp ( γ w j T h i ( k ) − b j ) ) (59)
≥ c 1 1 + c 1 log ( 1 + c 1 c 1 ) + 1 1 + c 1 log [ ( 1 + c 1 ) exp ( − γ w k T h i ( k ) + b k ) ] + ( K − 1 ) c 2 1 + c 2 log ( 1 + c 2 c 2 ) + 1 1 + c 2 ∑ j = 1 j ≠ k K log [ ( 1 + c 2 ) exp ( γ w j T h i ( k ) − b j ) ] (60) \begin{aligned}
\ge{}&\frac{c_1}{1+c_1}\log\left(\frac{1+c_1}{c_1}\right)+\frac{1}{1+c_1}\log\left[(1+c_1)\exp\left(-\gamma w_k^{\mathsf{T}}h_i^{(k)}+b_k\right)\right]\\
&+\frac{(K-1)c_2}{1+c_2}\log\left(\frac{1+c_2}{c_2}\right)+\frac{1}{1+c_2}\sum_{\substack{j=1\\j\ne k}}^{K}\log\left[(1+c_2)\exp\left(\gamma w_j^{\mathsf{T}}h_i^{(k)}-b_j\right)\right] \tag*{(60)}
\end{aligned} ≥ 1 + c 1 c 1 log ( c 1 1 + c 1 ) + 1 + c 1 1 log [ ( 1 + c 1 ) exp ( − γ w k T h i ( k ) + b k ) ] + 1 + c 2 ( K − 1 ) c 2 log ( c 2 1 + c 2 ) + 1 + c 2 1 j = 1 j = k ∑ K log [ ( 1 + c 2 ) exp ( γ w j T h i ( k ) − b j ) ] (60)
= 1 1 + c 1 ( − γ w k T h i ( k ) + b k ) + 1 1 + c 2 ∑ j = 1 j ≠ k K ( γ w j T h i ( k ) − b j ) + log ( 1 + c 1 ) − c 1 1 + c 1 log ( c 1 ) + ( K − 1 ) [ log ( 1 + c 2 ) − c 2 1 + c 2 log ( c 2 ) ] . (61) \begin{aligned}
={}&\frac{1}{1+c_1}\left(-\gamma w_k^{\mathsf{T}}h_i^{(k)}+b_k\right)+\frac{1}{1+c_2}\sum_{\substack{j=1\\j\ne k}}^{K}\left(\gamma w_j^{\mathsf{T}}h_i^{(k)}-b_j\right)\\
&+\log(1+c_1)-\frac{c_1}{1+c_1}\log(c_1)+(K-1)\left[\log(1+c_2)-\frac{c_2}{1+c_2}\log(c_2)\right]. \tag*{(61)}
\end{aligned} = 1 + c 1 1 ( − γ w k T h i ( k ) + b k ) + 1 + c 2 1 j = 1 j = k ∑ K ( γ w j T h i ( k ) − b j ) + log ( 1 + c 1 ) − 1 + c 1 c 1 log ( c 1 ) + ( K − 1 ) [ log ( 1 + c 2 ) − 1 + c 2 c 2 log ( c 2 ) ] . (61)
The inequality is derived from the concavity of log ( x ) \log(x) log ( x ) , which achieves the equality if and only if
1 + c 1 c 1 = ( 1 + c 1 ) exp ( − γ w k T h i ( k ) + b k ) (62) \frac{1+c_1}{c_1}=(1+c_1)\exp\left(-\gamma w_k^{\mathsf{T}}h_i^{(k)}+b_k\right) \tag*{(62)} c 1 1 + c 1 = ( 1 + c 1 ) exp ( − γ w k T h i ( k ) + b k ) (62)
or c 1 = 0 c_1=0 c 1 = 0 or c 1 = + ∞ c_1=+\infty c 1 = + ∞ , and
1 + c 2 c 2 = ( 1 + c 2 ) exp ( γ w j T h i ( k ) − b j ) (63) \frac{1+c_2}{c_2}=(1+c_2)\exp\left(\gamma w_j^{\mathsf{T}}h_i^{(k)}-b_j\right) \tag*{(63)} c 2 1 + c 2 = ( 1 + c 2 ) exp ( γ w j T h i ( k ) − b j ) (63)
or c 2 = 0 c_2=0 c 2 = 0 or c 2 = + ∞ c_2=+\infty c 2 = + ∞ , ∀ j ≠ k ∈ [ K ] \forall j\ne k\in[K] ∀ j = k ∈ [ K ] .
However, these equalities are trivial when c 1 = 0 c_1=0 c 1 = 0 or c 1 = + ∞ c_1=+\infty c 1 = + ∞ and c 2 = 0 c_2=0 c 2 = 0 or c 2 = + ∞ c_2=+\infty c 2 = + ∞ . Therefore, if and only if
c 1 = exp ( γ w k T h i ( k ) − b k ) , (64) c_1=\exp\left(\gamma w_k^{\mathsf{T}}h_i^{(k)}-b_k\right), \tag*{(64)} c 1 = exp ( γ w k T h i ( k ) − b k ) , (64)
c 2 = exp ( b j − γ w j T h i ( k ) ) , ∀ j ≠ k ∈ [ K ] , (65) c_2=\exp\left(b_j-\gamma w_j^{\mathsf{T}}h_i^{(k)}\right),\qquad\forall j\ne k\in[K], \tag*{(65)} c 2 = exp ( b j − γ w j T h i ( k ) ) , ∀ j = k ∈ [ K ] , (65)
Eq. (C.17) becomes an equality. □
Lemma C.6 For the function f b c e ( W , H , b ) f_{\mathrm{bce}}(W,H,b) f bce ( W , H , b ) defined in Eq. (C.10),
f b c e ( W , H , b ) ≥ − 2 γ − ( K − 2 ) b ⋆ + log ( 1 + e γ − b ⋆ ) + ( K − 1 ) log ( 1 + e b ⋆ + γ − 1 K − 1 ) . (66) f_{\mathrm{bce}}(W,H,b)\ge-2\gamma-(K-2)b^\star+\log\left(1+e^{\gamma-b^\star}\right)+(K-1)\log\left(1+e^{b^\star+\frac{\gamma-1}{K-1}}\right). \tag*{(66)} f bce ( W , H , b ) ≥ − 2 γ − ( K − 2 ) b ⋆ + log ( 1 + e γ − b ⋆ ) + ( K − 1 ) log ( 1 + e b ⋆ + K − 1 γ − 1 ) . (66)
Proof. According to Lemma C.5, Eq. (C.17) holds for any c 1 , c 2 > 0 c_1,c_2>0 c 1 , c 2 > 0 and any h i ( k ) h_i^{(k)} h i ( k ) with k ∈ [ K ] k\in[K] k ∈ [ K ] , i ∈ [ n ] i\in[n] i ∈ [ n ] . We take the same c 1 c_1 c 1 and c 2 c_2 c 2 for all h i ( k ) h_i^{(k)} h i ( k ) with ∀ i ∈ [ n ] \forall i\in[n] ∀ i ∈ [ n ] , ∀ k ∈ [ K ] \forall k\in[K] ∀ k ∈ [ K ] , then
f b c e ( W , H , b ) = 1 n K ∑ k = 1 K ∑ i = 1 n L b c e ( γ W h i ( k ) − b ) (67) f_{\mathrm{bce}}(W,H,b)=\frac{1}{nK}\sum_{k=1}^{K}\sum_{i=1}^{n}\mathcal{L}_{\mathrm{bce}}\left(\gamma W h_i^{(k)}-b\right) \tag*{(67)} f bce ( W , H , b ) = n K 1 k = 1 ∑ K i = 1 ∑ n L bce ( γ W h i ( k ) − b ) (67)
≥ 1 n K ∑ k = 1 K ∑ i = 1 n [ 1 1 + c 1 ( − γ w k ⊤ h i ( k ) + b k ) + 1 1 + c 2 ∑ j = 1 j ≠ k K ( γ w j ⊤ h i ( k ) − b j ) ] + C (68) \ge\frac{1}{nK}\sum_{k=1}^{K}\sum_{i=1}^{n}\left[\frac{1}{1+c_1}\left(-\gamma w_k^{\top}h_i^{(k)}+b_k\right)+\frac{1}{1+c_2}\sum_{\substack{j=1\\j\ne k}}^{K}\left(\gamma w_j^{\top}h_i^{(k)}-b_j\right)\right]+C \tag*{(68)} ≥ n K 1 k = 1 ∑ K i = 1 ∑ n 1 + c 1 1 ( − γ w k ⊤ h i ( k ) + b k ) + 1 + c 2 1 j = 1 j = k ∑ K ( γ w j ⊤ h i ( k ) − b j ) + C (68)
= 1 n K 1 1 + c 2 ∑ k = 1 K ∑ i = 1 n ∑ j = 1 j ≠ k K ( γ w j ⊤ h i ( k ) − b j ) − 1 n K 1 1 + c 1 ∑ k = 1 K ∑ i = 1 n ( γ w k ⊤ h i ( k ) − b k ) + C = 1 n K 1 1 + c 2 ∑ k = 1 K ∑ i = 1 n ∑ j = 1 K ( γ w j ⊤ h i ( k ) − b j − γ w k ⊤ h i ( k ) + b k ) (69) \begin{aligned}
=\frac{1}{nK}\frac{1}{1+c_2}\sum_{k=1}^{K}\sum_{i=1}^{n}\sum_{\substack{j=1\\j\ne k}}^{K}\left(\gamma w_j^{\top}h_i^{(k)}-b_j\right)-\frac{1}{nK}\frac{1}{1+c_1}\sum_{k=1}^{K}\sum_{i=1}^{n}\left(\gamma w_k^{\top}h_i^{(k)}-b_k\right)+C \\
&=\frac{1}{nK}\frac{1}{1+c_2}\sum_{k=1}^{K}\sum_{i=1}^{n}\sum_{j=1}^{K}\left(\gamma w_j^{\top}h_i^{(k)}-b_j-\gamma w_k^{\top}h_i^{(k)}+b_k\right) \tag*{(69)}
\end{aligned} = n K 1 1 + c 2 1 k = 1 ∑ K i = 1 ∑ n j = 1 j = k ∑ K ( γ w j ⊤ h i ( k ) − b j ) − n K 1 1 + c 1 1 k = 1 ∑ K i = 1 ∑ n ( γ w k ⊤ h i ( k ) − b k ) + C = n K 1 1 + c 2 1 k = 1 ∑ K i = 1 ∑ n j = 1 ∑ K ( γ w j ⊤ h i ( k ) − b j − γ w k ⊤ h i ( k ) + b k ) (69)
+ 1 n K 1 1 + c 2 ∑ k = 1 K ∑ i = 1 n ∑ j = 1 j ≠ k K ( γ w k ⊤ h i ( k ) − b k ) − 1 n K 1 1 + c 1 ∑ k = 1 K ∑ i = 1 n ( γ w k ⊤ h i ( k ) − b k ) = 1 n K 1 1 + c 2 ∑ i = 1 n [ ∑ k = 1 K ( ∑ j = 1 K γ w k ⊤ h i ( j ) − K γ w k ⊤ h i ( k ) ) − ∑ k = 1 K ∑ j = 1 K b j + ∑ k = 1 K ∑ j = 1 K b k ] (70) \begin{aligned}
+\frac{1}{nK}\frac{1}{1+c_2}\sum_{k=1}^{K}\sum_{i=1}^{n}\sum_{\substack{j=1\\j\ne k}}^{K}\left(\gamma w_k^{\top}h_i^{(k)}-b_k\right)-\frac{1}{nK}\frac{1}{1+c_1}\sum_{k=1}^{K}\sum_{i=1}^{n}\left(\gamma w_k^{\top}h_i^{(k)}-b_k\right) \\
&=\frac{1}{nK}\frac{1}{1+c_2}\sum_{i=1}^{n}\left[\sum_{k=1}^{K}\left(\sum_{j=1}^{K}\gamma w_k^{\top}h_i^{(j)}-K\gamma w_k^{\top}h_i^{(k)}\right)-\sum_{k=1}^{K}\sum_{j=1}^{K}b_j+\sum_{k=1}^{K}\sum_{j=1}^{K}b_k\right] \tag*{(70)}
\end{aligned} + n K 1 1 + c 2 1 k = 1 ∑ K i = 1 ∑ n j = 1 j = k ∑ K ( γ w k ⊤ h i ( k ) − b k ) − n K 1 1 + c 1 1 k = 1 ∑ K i = 1 ∑ n ( γ w k ⊤ h i ( k ) − b k ) = n K 1 1 + c 2 1 i = 1 ∑ n [ k = 1 ∑ K ( j = 1 ∑ K γ w k ⊤ h i ( j ) − K γ w k ⊤ h i ( k ) ) − k = 1 ∑ K j = 1 ∑ K b j + k = 1 ∑ K j = 1 ∑ K b k ] (70)
+ 1 n K ( K − 1 1 + c 2 − 1 1 + c 1 ) ∑ k = 1 K ∑ i = 1 n γ w k ⊤ h i ( k ) − 1 K ( K − 1 1 + c 2 − 1 1 + c 1 ) ∑ k = 1 K b k + C = 1 n 1 1 + c 2 ∑ i = 1 n ∑ k = 1 K γ w k ⊤ ( h ~ i − h i ( k ) ) − 1 K ( K − 1 1 + c 2 − 1 1 + c 1 ) ∑ k = 1 K b k (71) \begin{aligned}
+\frac{1}{nK}\left(\frac{K-1}{1+c_2}-\frac{1}{1+c_1}\right)\sum_{k=1}^{K}\sum_{i=1}^{n}\gamma w_k^{\top}h_i^{(k)}-\frac{1}{K}\left(\frac{K-1}{1+c_2}-\frac{1}{1+c_1}\right)\sum_{k=1}^{K}b_k+C \\
&=\frac{1}{n}\frac{1}{1+c_2}\sum_{i=1}^{n}\sum_{k=1}^{K}\gamma w_k^{\top}\left(\widetilde h_i-h_i^{(k)}\right)-\frac{1}{K}\left(\frac{K-1}{1+c_2}-\frac{1}{1+c_1}\right)\sum_{k=1}^{K}b_k \tag*{(71)}
\end{aligned} + n K 1 ( 1 + c 2 K − 1 − 1 + c 1 1 ) k = 1 ∑ K i = 1 ∑ n γ w k ⊤ h i ( k ) − K 1 ( 1 + c 2 K − 1 − 1 + c 1 1 ) k = 1 ∑ K b k + C = n 1 1 + c 2 1 i = 1 ∑ n k = 1 ∑ K γ w k ⊤ ( h i − h i ( k ) ) − K 1 ( 1 + c 2 K − 1 − 1 + c 1 1 ) k = 1 ∑ K b k (71)
+ 1 n K ( K − 1 1 + c 2 − 1 1 + c 1 ) ∑ k = 1 K ∑ i = 1 n γ w k ⊤ h i ( k ) + C ≜ f ^ b c e ( W , H , b ) , (72) +\frac{1}{nK}\left(\frac{K-1}{1+c_2}-\frac{1}{1+c_1}\right)\sum_{k=1}^{K}\sum_{i=1}^{n}\gamma w_k^{\top}h_i^{(k)}+C\triangleq\widehat f_{\mathrm{bce}}(W,H,b), \tag*{(72)} + n K 1 ( 1 + c 2 K − 1 − 1 + c 1 1 ) k = 1 ∑ K i = 1 ∑ n γ w k ⊤ h i ( k ) + C ≜ f bce ( W , H , b ) , (72)
where in the last equality, h ~ i = 1 K ∑ j = 1 K h i ( j ) \widetilde h_i=\frac{1}{K}\sum_{j=1}^{K}h_i^{(j)} h i = K 1 ∑ j = 1 K h i ( j ) .
For the function f ^ b c e ( W , H , b ) \widehat f_{\mathrm{bce}}(W,H,b) f bce ( W , H , b ) , its global minimum must occur at its stationary points that satisfies the first-order necessary condition,
0 = ∂ f ^ b c e ∂ b k = − 1 K ( K − 1 1 + c 2 − 1 1 + c 1 ) , k ∈ [ K ] . (73) 0=\frac{\partial\widehat f_{\mathrm{bce}}}{\partial b_k}=-\frac{1}{K}\left(\frac{K-1}{1+c_2}-\frac{1}{1+c_1}\right),\quad k\in[K]. \tag*{(73)} 0 = ∂ b k ∂ f bce = − K 1 ( 1 + c 2 K − 1 − 1 + c 1 1 ) , k ∈ [ K ] . (73)
Therefore,
f ^ b c e ( W , H , b ) ≥ γ n 1 1 + c 2 ∑ i = 1 n ∑ k = 1 K w k ⊤ ( h ~ i − h i ( k ) ) + C . (74) \widehat f_{\mathrm{bce}}(W,H,b)\ge\frac{\gamma}{n}\frac{1}{1+c_2}\sum_{i=1}^{n}\sum_{k=1}^{K}w_k^{\top}\left(\widetilde h_i-h_i^{(k)}\right)+C. \tag*{(74)} f bce ( W , H , b ) ≥ n γ 1 + c 2 1 i = 1 ∑ n k = 1 ∑ K w k ⊤ ( h i − h i ( k ) ) + C . (74)
Furthermore, according to the AM-GM inequality (see Lemma C.2 ), we have
u ⊤ v ≥ − ( c 2 ∥ u ∥ 2 2 + 1 2 c ∥ v ∥ 2 2 ) , ∀ u , v ∈ R d , ∀ c > 0 , (75) u^{\top}v\ge-\left(\frac{c}{2}\lVert u\rVert_2^2+\frac{1}{2c}\lVert v\rVert_2^2\right),\quad\forall u,v\in\mathbb{R}^{d},\ \forall c>0, \tag*{(75)} u ⊤ v ≥ − ( 2 c ∥ u ∥ 2 2 + 2 c 1 ∥ v ∥ 2 2 ) , ∀ u , v ∈ R d , ∀ c > 0 , (75)
which becomes an equality when v = − c u v=-cu v = − c u . Then,
f b c e ( W , H , b ) ≥ f ^ b c e ( W , H , b ) ≥ γ n 1 1 + c 2 ∑ i = 1 n ∑ k = 1 K w k ⊤ ( h ~ i − h i ( k ) ) + C ≥ − γ n 1 1 + c 2 ( c 3 2 ∑ i = 1 n ∑ k = 1 K ∥ w k ∥ 2 2 + 1 2 c 3 ∑ i = 1 n ∑ k = 1 K ∥ h ~ i − h i ( k ) ∥ 2 2 ) + C (76) \begin{aligned}
f_{\mathrm{bce}}(W,H,b)\ge\widehat f_{\mathrm{bce}}(W,H,b)\ge\frac{\gamma}{n}\frac{1}{1+c_2}\sum_{i=1}^{n}\sum_{k=1}^{K}w_k^{\top}\left(\widetilde h_i-h_i^{(k)}\right)+C \\
&\ge-\frac{\gamma}{n}\frac{1}{1+c_2}\left(\frac{c_3}{2}\sum_{i=1}^{n}\sum_{k=1}^{K}\lVert w_k\rVert_2^2+\frac{1}{2c_3}\sum_{i=1}^{n}\sum_{k=1}^{K}\lVert\widetilde h_i-h_i^{(k)}\rVert_2^2\right)+C \tag*{(76)}
\end{aligned} f bce ( W , H , b ) ≥ f bce ( W , H , b ) ≥ n γ 1 + c 2 1 i = 1 ∑ n k = 1 ∑ K w k ⊤ ( h i − h i ( k ) ) + C ≥ − n γ 1 + c 2 1 ( 2 c 3 i = 1 ∑ n k = 1 ∑ K ∥ w k ∥ 2 2 + 2 c 3 1 i = 1 ∑ n k = 1 ∑ K ∥ h i − h i ( k ) ∥ 2 2 ) + C (76)
= − γ n 1 1 + c 2 [ c 3 2 ∑ i = 1 n ∑ k = 1 K ∥ w k ∥ 2 + 1 2 c 3 ∑ i = 1 n ( ∑ k = 1 K ∥ h i ( k ) ∥ 2 − K ∥ h ~ i ∥ 2 ) ] + C (77) = -\frac{\gamma}{n}\frac{1}{1+c_2}\left[\frac{c_3}{2}\sum_{i=1}^{n}\sum_{k=1}^{K}\lVert w_k\rVert^2+\frac{1}{2c_3}\sum_{i=1}^{n}\left(\sum_{k=1}^{K}\lVert h_i^{(k)}\rVert^2-K\lVert\tilde{h}_i\rVert^2\right)\right]+C \tag*{(77)} = − n γ 1 + c 2 1 [ 2 c 3 i = 1 ∑ n k = 1 ∑ K ∥ w k ∥ 2 + 2 c 3 1 i = 1 ∑ n ( k = 1 ∑ K ∥ h i ( k ) ∥ 2 − K ∥ h ~ i ∥ 2 ) ] + C (77)
= − γ n 1 1 + c 2 ( c 3 2 n K + 1 2 c 3 n K ) + γ n 1 1 + c 2 1 2 c 3 ∑ i = 1 n K ∥ h ~ i ∥ 2 + C (78) = -\frac{\gamma}{n}\frac{1}{1+c_2}\left(\frac{c_3}{2}nK+\frac{1}{2c_3}nK\right)+\frac{\gamma}{n}\frac{1}{1+c_2}\frac{1}{2c_3}\sum_{i=1}^{n}K\lVert\tilde{h}_i\rVert^2+C \tag*{(78)} = − n γ 1 + c 2 1 ( 2 c 3 n K + 2 c 3 1 n K ) + n γ 1 + c 2 1 2 c 3 1 i = 1 ∑ n K ∥ h ~ i ∥ 2 + C (78)
≥ − γ n 1 1 + c 2 ( c 3 2 n K + 1 2 c 3 n K ) + C . (79) \geq-\frac{\gamma}{n}\frac{1}{1+c_2}\left(\frac{c_3}{2}nK+\frac{1}{2c_3}nK\right)+C. \tag*{(79)} ≥ − n γ 1 + c 2 1 ( 2 c 3 n K + 2 c 3 1 n K ) + C . (79)
Inequality (C.39) becomes an equality if and only if
c 3 w k = h i ( k ) − h ~ i , ∀ k ∈ [ K ] , i ∈ [ n ] , γ > 0 , ∀ c 3 > 0 , (80) c_3w_k=h_i^{(k)}-\tilde{h}_i,\quad\forall k\in[K],\ i\in[n],\ \gamma>0,\ \forall c_3>0, \tag*{(80)} c 3 w k = h i ( k ) − h ~ i , ∀ k ∈ [ K ] , i ∈ [ n ] , γ > 0 , ∀ c 3 > 0 , (80)
and, the inequality (C.42) becomes an equality if and only if
h ~ i = 0 , ∀ i ∈ [ n ] . (81) \tilde{h}_i=0,\quad\forall i\in[n]. \tag*{(81)} h ~ i = 0 , ∀ i ∈ [ n ] . (81)
Eqs. (C.43) and (C.44) imply
c 3 w k = h i ( k ) ⇒ ∥ c 3 w k ∥ 2 = ∥ h i ( k ) ∥ 2 ⇒ c 3 2 = 1 ⇒ c 3 = 1. (82) c_3w_k=h_i^{(k)}\Rightarrow\lVert c_3w_k\rVert^2=\lVert h_i^{(k)}\rVert^2\Rightarrow c_3^2=1\Rightarrow c_3=1. \tag*{(82)} c 3 w k = h i ( k ) ⇒ ∥ c 3 w k ∥ 2 = ∥ h i ( k ) ∥ 2 ⇒ c 3 2 = 1 ⇒ c 3 = 1. (82)
Combining Eqs. (C.42) and (C.45), we get
f b c e ( W , H , b ) ≥ − γ n 1 1 + c 2 ( c 3 2 n K + 1 2 c 3 n K ) + C = − γ K 1 + c 2 + C , (83) f_{\mathrm{bce}}(W,H,b)\geq-\frac{\gamma}{n}\frac{1}{1+c_2}\left(\frac{c_3}{2}nK+\frac{1}{2c_3}nK\right)+C=-\frac{\gamma K}{1+c_2}+C, \tag*{(83)} f bce ( W , H , b ) ≥ − n γ 1 + c 2 1 ( 2 c 3 n K + 2 c 3 1 n K ) + C = − 1 + c 2 γ K + C , (83)
which becomes an equality if and only if Eqs. (C.19), (C.20), (C.43) and (C.44) hold. Furthermore, according to Lemma C.7, when f b c e ( W , H , b ) f_{\mathrm{bce}}(W,H,b) f bce ( W , H , b ) achieves its lower bound, one can get b 1 = b 2 = ⋯ = b K = b ⋆ b_1=b_2=\cdots=b_K=b^\star b 1 = b 2 = ⋯ = b K = b ⋆ , and
c 1 = exp ( γ − b ⋆ ) and c 2 = exp ( b ⋆ + γ K − 1 ) . (84) c_1=\exp(\gamma-b^\star)\quad\text{and}\quad c_2=\exp\left(b^\star+\frac{\gamma}{K-1}\right). \tag*{(84)} c 1 = exp ( γ − b ⋆ ) and c 2 = exp ( b ⋆ + K − 1 γ ) . (84)
Then, combining Eqs. (C.24), (C.36), (C.46) and (C.47), we have
f b c e ( W , H , b ) ≥ − γ K 1 + c 2 + C = − γ K 1 + c 2 + log ( 1 + c 1 ) − c 1 1 + c 1 log ( c 1 ) + ( K − 1 ) [ log ( 1 + c 2 ) − c 2 1 + c 2 log ( c 2 ) ] , (85) \begin{aligned}
f_{\mathrm{bce}}(W,H,b)\geq-\frac{\gamma K}{1+c_2}+C \\
&=-\frac{\gamma K}{1+c_2}+\log(1+c_1)-\frac{c_1}{1+c_1}\log(c_1)+(K-1)\left[\log(1+c_2)-\frac{c_2}{1+c_2}\log(c_2)\right], \tag*{(85)}
\end{aligned} f bce ( W , H , b ) ≥ − 1 + c 2 γ K + C = − 1 + c 2 γ K + log ( 1 + c 1 ) − 1 + c 1 c 1 log ( c 1 ) + ( K − 1 ) [ log ( 1 + c 2 ) − 1 + c 2 c 2 log ( c 2 ) ] , (85)
= − 2 γ − ( K − 2 ) b ⋆ + log ( 1 + e γ − b ⋆ ) + ( K − 1 ) log ( 1 + e b ⋆ + γ K − 1 ) , (86) =-2\gamma-(K-2)b^\star+\log(1+e^{\gamma-b^\star})+(K-1)\log\left(1+e^{b^\star+\frac{\gamma}{K-1}}\right), \tag*{(86)} = − 2 γ − ( K − 2 ) b ⋆ + log ( 1 + e γ − b ⋆ ) + ( K − 1 ) log ( 1 + e b ⋆ + K − 1 γ ) , (86)
which is desired.
Lemma C.7 Under the same assumption of Lemma C.6, the lower bound in Eq. (C.29) is achieved if and only if
w k = h i ( k ) , ∀ k ∈ [ K ] , i ∈ [ n ] , (87) w_k=h_i^{(k)},\quad\forall k\in[K],\ i\in[n], \tag*{(87)} w k = h i ( k ) , ∀ k ∈ [ K ] , i ∈ [ n ] , (87) h ~ i : = 1 K ∑ k = 1 K h i ( k ) = 0 , ∀ i ∈ [ n ] , (88) \tilde{h}_i:=\frac{1}{K}\sum_{k=1}^{K}h_i^{(k)}=0,\quad\forall i\in[n], \tag*{(88)} h ~ i := K 1 k = 1 ∑ K h i ( k ) = 0 , ∀ i ∈ [ n ] , (88) W W ⊤ = K K − 1 ( I K − 1 K 1 K 1 K ⊤ ) , (89) WW^{\top}=\frac{K}{K-1}\left(I_K-\frac{1}{K}\mathbf{1}_K\mathbf{1}_K^{\top}\right), \tag*{(89)} W W ⊤ = K − 1 K ( I K − K 1 1 K 1 K ⊤ ) , (89) b ⋆ = b ⋆ 1 , (90) b^\star=b^\star\mathbf{1}, \tag*{(90)} b ⋆ = b ⋆ 1 , (90) c 1 = exp ( γ − b ⋆ ) and c 2 = exp ( b ⋆ + γ K − 1 ) , (91) c_1=\exp(\gamma-b^\star)\quad\textit{and}\quad c_2=\exp\left(b^\star+\frac{\gamma}{K-1}\right), \tag*{(91)} c 1 = exp ( γ − b ⋆ ) and c 2 = exp ( b ⋆ + K − 1 γ ) , (91)
where b ⋆ b^{\star} b ⋆ satisfies
b ⋆ = log ( K − 2 ) e − γ K − 1 + ( K − 2 ) 2 e − 2 γ K − 1 + 4 ( K − 1 ) e − γ K − 1 + γ 2 . (92) b^{\star}=\log\frac{(K-2)e^{-\frac{\gamma}{K-1}}+\sqrt{(K-2)^2e^{-\frac{2\gamma}{K-1}}+4(K-1)e^{-\frac{\gamma}{K-1}+\gamma}}}{2}. \tag*{(92)} b ⋆ = log 2 ( K − 2 ) e − K − 1 γ + ( K − 2 ) 2 e − K − 1 2 γ + 4 ( K − 1 ) e − K − 1 γ + γ . (92)
Proof. According to the proof of Lemma C.6, when the loss function f b c e f_{\mathrm{bce}} f bce achieves its lower bound if and only if Eqs. (C.19), (C.20), (C.43) and (C.44) hold. From Eqs. (C.43) and (C.44),
w k = h i ( k ) , ∀ k ∈ [ K ] , i ∈ [ n ] , (93) \mathbf{w}_k=h_i^{(k)},\quad\forall k\in[K],\ i\in[n], \tag*{(93)} w k = h i ( k ) , ∀ k ∈ [ K ] , i ∈ [ n ] , (93)
and
∑ k = 1 K w k = ∑ k = 1 K h i ( k ) = 0. (94) \sum_{k=1}^{K}\mathbf{w}_k=\sum_{k=1}^{K}h_i^{(k)}=\mathbf{0}. \tag*{(94)} k = 1 ∑ K w k = k = 1 ∑ K h i ( k ) = 0 . (94)
Then, we have
c 1 = exp ( γ w k T h i ( k ) − b k ) = exp ( γ ∥ w k ∥ 2 2 − b k ) , ∀ k ∈ [ K ] , (95) c_1=\exp\left(\gamma\mathbf{w}_k^{\mathsf{T}}h_i^{(k)}-b_k\right)=\exp\left(\gamma\lVert\mathbf{w}_k\rVert_2^2-b_k\right),\quad\forall k\in[K], \tag*{(95)} c 1 = exp ( γ w k T h i ( k ) − b k ) = exp ( γ ∥ w k ∥ 2 2 − b k ) , ∀ k ∈ [ K ] , (95)
c 2 = exp ( b j − γ w k T h i ( k ) ) = exp ( b j − γ w k T w j ) , ∀ j ≠ k ∈ [ K ] . (96) c_2=\exp\left(b_j-\gamma\mathbf{w}_k^{\mathsf{T}}h_i^{(k)}\right)=\exp\left(b_j-\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{w}_j\right),\quad\forall j\ne k\in[K]. \tag*{(96)} c 2 = exp ( b j − γ w k T h i ( k ) ) = exp ( b j − γ w k T w j ) , ∀ j = k ∈ [ K ] . (96)
Since the c 1 , c 2 > 0 c_1,c_2>0 c 1 , c 2 > 0 are the same for different j ≠ k ∈ [ K ] j\ne k\in[K] j = k ∈ [ K ] , we have
γ ∥ w k ∥ 2 2 − b k = γ ∥ w j ∥ 2 2 − b j , ∀ k , j ∈ [ K ] , (97) \gamma\lVert\mathbf{w}_k\rVert_2^2-b_k=\gamma\lVert\mathbf{w}_j\rVert_2^2-b_j,\quad\forall k,j\in[K], \tag*{(97)} γ ∥ w k ∥ 2 2 − b k = γ ∥ w j ∥ 2 2 − b j , ∀ k , j ∈ [ K ] , (97)
γ w k T w j − b j = γ w k T w ℓ − b ℓ , ∀ j ≠ ℓ ∈ [ K ] , ∀ k ∈ [ K ] . (98) \gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{w}_j-b_j=\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{w}_{\ell}-b_{\ell},\quad\forall j\ne\ell\in[K],\ \forall k\in[K]. \tag*{(98)} γ w k T w j − b j = γ w k T w ℓ − b ℓ , ∀ j = ℓ ∈ [ K ] , ∀ k ∈ [ K ] . (98)
In the normalized feature space, Eq. (C.60) implies
γ ∥ w k ∥ 2 2 − b k = γ ∥ w j ∥ 2 2 − b j ⇒ γ − b k = γ − b j ⇔ b k = b j , ∀ k , j ∈ [ K ] , (99) \gamma\lVert\mathbf{w}_k\rVert_2^2-b_k=\gamma\lVert\mathbf{w}_j\rVert_2^2-b_j\Rightarrow\gamma-b_k=\gamma-b_j\Leftrightarrow b_k=b_j,\quad\forall k,j\in[K], \tag*{(99)} γ ∥ w k ∥ 2 2 − b k = γ ∥ w j ∥ 2 2 − b j ⇒ γ − b k = γ − b j ⇔ b k = b j , ∀ k , j ∈ [ K ] , (99)
Therefore, one can write b = b ⋆ 1 \mathbf{b}=b^{\star}\mathbf{1} b = b ⋆ 1 for some b ∈ R b\in\mathbb{R} b ∈ R . Then, from Eq. (C.61),
γ w k T w j = γ w k T w ℓ ⇒ w k T w j = w k T w ℓ , ∀ j ≠ ℓ ∈ [ K ] , ∀ k ∈ [ K ] , (100) \gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{w}_j=\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{w}_{\ell}\Rightarrow\mathbf{w}_k^{\mathsf{T}}\mathbf{w}_j=\mathbf{w}_k^{\mathsf{T}}\mathbf{w}_{\ell},\quad\forall j\ne\ell\in[K],\ \forall k\in[K], \tag*{(100)} γ w k T w j = γ w k T w ℓ ⇒ w k T w j = w k T w ℓ , ∀ j = ℓ ∈ [ K ] , ∀ k ∈ [ K ] , (100)
and combining with Eq. (C.57),
1 = ∥ w k ∥ 2 2 = − ∑ j = 1 , j ≠ k K w k T w j = − ( K − 1 ) w k T w j ⇒ w k T w j = − 1 K − 1 , ∀ j ≠ k ∈ [ K ] . (101) \begin{aligned}
1=\lVert\mathbf{w}_k\rVert_2^2=-\sum_{j=1,j\ne k}^{K}\mathbf{w}_k^{\mathsf{T}}\mathbf{w}_j=-(K-1)\mathbf{w}_k^{\mathsf{T}}\mathbf{w}_j \\
&\Rightarrow\mathbf{w}_k^{\mathsf{T}}\mathbf{w}_j=-\frac{1}{K-1},\quad\forall j\ne k\in[K]. \tag*{(101)}
\end{aligned} 1 = ∥ w k ∥ 2 2 = − j = 1 , j = k ∑ K w k T w j = − ( K − 1 ) w k T w j ⇒ w k T w j = − K − 1 1 , ∀ j = k ∈ [ K ] . (101)
Therefore,
W W T = K K − 1 ( I K − 1 K 1 K 1 K T ) . (102) \mathbf{W}\mathbf{W}^{\mathsf{T}}=\frac{K}{K-1}\left(\mathbf{I}_K-\frac{1}{K}\mathbf{1}_K\mathbf{1}_K^{\mathsf{T}}\right). \tag*{(102)} W W T = K − 1 K ( I K − K 1 1 K 1 K T ) . (102)
Plugging Eqs. (C.62), (C.64) into Eqs. (C.58), (C.59),
c 1 = exp ( γ − b ⋆ ) and c 2 = exp ( b ⋆ + γ K − 1 ) . (103) c_1=\exp(\gamma-b^{\star})\quad\text{and}\quad c_2=\exp\left(b^{\star}+\frac{\gamma}{K-1}\right). \tag*{(103)} c 1 = exp ( γ − b ⋆ ) and c 2 = exp ( b ⋆ + K − 1 γ ) . (103)
When f b c e f_{\mathrm{bce}} f bce defined in Eq. (C.10) achieves its minimum value, it theoretically satisfies
0 = ∂ f b c e ∂ b k = 1 n K ( n − ∑ j = 1 K ∑ i = 1 n ( 1 + exp ( − γ w k T h i ( j ) + b k ) ) − 1 ) , ∀ k ∈ [ K ] , (104) 0=\frac{\partial f_{\mathrm{bce}}}{\partial b_k}=\frac{1}{nK}\left(n-\sum_{j=1}^{K}\sum_{i=1}^{n}\left(1+\exp\left(-\gamma\mathbf{w}_k^{\mathsf{T}}h_i^{(j)}+b_k\right)\right)^{-1}\right),\quad\forall k\in[K], \tag*{(104)} 0 = ∂ b k ∂ f bce = n K 1 ( n − j = 1 ∑ K i = 1 ∑ n ( 1 + exp ( − γ w k T h i ( j ) + b k ) ) − 1 ) , ∀ k ∈ [ K ] , (104)
thus, combining Eqs. (C.62) and (C.64),
n − ∑ j = 1 K ∑ i = 1 n ( 1 + exp ( − γ w k T h i ( j ) + b k ) ) − 1 = n − ∑ i = 1 n ( 1 1 + exp ( − γ + b ) + ∑ j ≠ k K 1 1 + exp ( γ K − 1 + b ) ) (105) \begin{aligned}
n-\sum_{j=1}^{K}\sum_{i=1}^{n}\left(1+\exp\left(-\gamma\mathbf{w}_k^{\mathsf{T}}h_i^{(j)}+b_k\right)\right)^{-1} \\
&= n-\sum_{i=1}^{n}\left(\frac{1}{1+\exp(-\gamma+b)}+\sum_{\substack{j\ne k}}^{K}\frac{1}{1+\exp\left(\frac{\gamma}{K-1}+b\right)}\right) \tag*{(105)}
\end{aligned} n − j = 1 ∑ K i = 1 ∑ n ( 1 + exp ( − γ w k T h i ( j ) + b k ) ) − 1 = n − i = 1 ∑ n 1 + exp ( − γ + b ) 1 + j = k ∑ K 1 + exp ( K − 1 γ + b ) 1 (105)
= n − n ( 1 1 + exp ( − γ + b ) + K − 1 1 + exp ( γ K − 1 + b ) ) = 0 , (106) = n-n\left(\frac{1}{1+\exp(-\gamma+b)}+\frac{K-1}{1+\exp\left(\frac{\gamma}{K-1}+b\right)}\right)=0, \tag*{(106)} = n − n ( 1 + exp ( − γ + b ) 1 + 1 + exp ( K − 1 γ + b ) K − 1 ) = 0 , (106)
then,
b ⋆ = log ( K − 2 ) e − γ K − 1 + ( K − 2 ) 2 e − 2 γ K − 1 + 4 ( K − 1 ) e − γ K − 1 + γ 2 , (107) b^\star=\log\frac{(K-2)e^{-\frac{\gamma}{K-1}}+\sqrt{(K-2)^2e^{-\frac{2\gamma}{K-1}}+4(K-1)e^{-\frac{\gamma}{K-1}+\gamma}}}{2}, \tag*{(107)} b ⋆ = log 2 ( K − 2 ) e − K − 1 γ + ( K − 2 ) 2 e − K − 1 2 γ + 4 ( K − 1 ) e − K − 1 γ + γ , (107)
which satisfies Eq. (C.36).
Lemma C.8 When the class number K > 2 K>2 K > 2 , the scale factor γ > 0 \gamma>0 γ > 0 , and
log ( 2 K − 3 ) ( 1 − 1 K ) < γ , (108) \log(2K-3)\left(1-\frac{1}{K}\right)<\gamma, \tag*{(108)} log ( 2 K − 3 ) ( 1 − K 1 ) < γ , (108) the final critical bias b ⋆ b^\star b ⋆ could separate the all positive unbiased decision scores
{ γ w k ⋆ T h i ( k ) ⋆ : k ∈ [ K ] , i ∈ [ n ] } , (109) \left\{\gamma\mathbf{w}_k^{\star\mathsf{T}}\mathbf{h}_i^{(k)\star}: k\in[K],\ i\in[n]\right\}, \tag*{(109)} { γ w k ⋆ T h i ( k ) ⋆ : k ∈ [ K ] , i ∈ [ n ] } , (109) and the all negative ones
{ γ w j ⋆ T h i ( k ) ⋆ : k , j ∈ [ K ] , i ∈ [ n ] , k ≠ j } . (110) \left\{\gamma\mathbf{w}_j^{\star\mathsf{T}}\mathbf{h}_i^{(k)\star}: k,j\in[K],\ i\in[n],\ k\ne j\right\}. \tag*{(110)} { γ w j ⋆ T h i ( k ) ⋆ : k , j ∈ [ K ] , i ∈ [ n ] , k = j } . (110)
Proof According to Lemma C.7, when the function f b c e f_{\mathrm{bce}} f bce achieves the lower bound, we have
γ w k ⋆ T h i ( k ) ⋆ = γ , ∀ k ∈ [ K ] , i ∈ [ n ] , (111) \gamma\mathbf{w}_k^{\star\mathsf{T}}\mathbf{h}_i^{(k)\star}=\gamma,\quad\forall k\in[K],\ i\in[n], \tag*{(111)} γ w k ⋆ T h i ( k ) ⋆ = γ , ∀ k ∈ [ K ] , i ∈ [ n ] , (111)
γ w j ⋆ T h i ( k ) ⋆ = − γ K − 1 , ∀ j ≠ k ∈ [ K ] , i ∈ [ n ] , (112) \gamma\mathbf{w}_j^{\star\mathsf{T}}\mathbf{h}_i^{(k)\star}=-\frac{\gamma}{K-1},\quad\forall j\ne k\in[K],\ i\in[n], \tag*{(112)} γ w j ⋆ T h i ( k ) ⋆ = − K − 1 γ , ∀ j = k ∈ [ K ] , i ∈ [ n ] , (112)
Let b p o s = γ , b n e g = − γ K − 1 b_{\mathrm{pos}}=\gamma,b_{\mathrm{neg}}=-\frac{\gamma}{K-1} b pos = γ , b neg = − K − 1 γ . Then the critical b ⋆ b^\star b ⋆ separating the all positive and negative decision scores means
b n e g = − γ K − 1 < b ⋆ < γ = b p o s . (113) b_{\mathrm{neg}}=-\frac{\gamma}{K-1}<b^\star<\gamma=b_{\mathrm{pos}}. \tag*{(113)} b neg = − K − 1 γ < b ⋆ < γ = b pos . (113)
Due to
− γ K − 1 < b ⋆ ⇔ 2 e − γ K − 1 < ( K − 2 ) e − γ K − 1 + ( K − 2 ) 2 e − 2 γ K − 1 + 4 ( K − 1 ) e − γ K − 1 + γ -\frac{\gamma}{K-1}<b^\star\Leftrightarrow2e^{-\frac{\gamma}{K-1}}<(K-2)e^{-\frac{\gamma}{K-1}}+\sqrt{(K-2)^2e^{-\frac{2\gamma}{K-1}}+4(K-1)e^{-\frac{\gamma}{K-1}+\gamma}} − K − 1 γ < b ⋆ ⇔ 2 e − K − 1 γ < ( K − 2 ) e − K − 1 γ + ( K − 2 ) 2 e − K − 1 2 γ + 4 ( K − 1 ) e − K − 1 γ + γ
⇐ 2 e − γ K − 1 < ( K − 2 ) e − γ K − 1 + 4 ( K − 1 ) e − γ K − 1 + γ \Leftarrow2e^{-\frac{\gamma}{K-1}}<(K-2)e^{-\frac{\gamma}{K-1}}+\sqrt{4(K-1)e^{-\frac{\gamma}{K-1}+\gamma}} ⇐ 2 e − K − 1 γ < ( K − 2 ) e − K − 1 γ + 4 ( K − 1 ) e − K − 1 γ + γ
⇔ 2 < ( K − 2 ) + 2 K − 1 e 1 2 ( − γ K − 1 + γ ) ⇐ 2 < ( K − 2 ) + 2 K − 1 \Leftrightarrow2<(K-2)+2\sqrt{K-1}e^{\frac{1}{2}\left(-\frac{\gamma}{K-1}+\gamma\right)}
\Leftarrow2<(K-2)+2\sqrt{K-1} ⇔ 2 < ( K − 2 ) + 2 K − 1 e 2 1 ( − K − 1 γ + γ ) ⇐ 2 < ( K − 2 ) + 2 K − 1
⇐ 2 < K , (114) \Leftarrow2<K, \tag*{(114)} ⇐ 2 < K , (114)
b ⋆ < γ ⇔ ( K − 2 ) e − γ K − 1 + ( K − 2 ) 2 e − 2 γ K − 1 + 4 ( K − 1 ) e − γ K − 1 + γ < 2 e γ ⇔ ( K − 1 ) e − γ K − 1 < e γ − ( K − 2 ) e − γ K − 1 ⇔ log ( 2 K − 3 ) ( 1 − 1 K ) < γ ⇐ log ( 2 K − 3 ) < γ ⇔ K < e γ + 3 2 , (115) \begin{aligned}
b^\star<\gamma\Leftrightarrow(K-2)e^{-\frac{\gamma}{K-1}}+\sqrt{(K-2)^2e^{-\frac{2\gamma}{K-1}}+4(K-1)e^{-\frac{\gamma}{K-1}+\gamma}}<2e^\gamma\\
&\Leftrightarrow(K-1)e^{-\frac{\gamma}{K-1}}<e^\gamma-(K-2)e^{-\frac{\gamma}{K-1}} \\
&\Leftrightarrow\log(2K-3)\left(1-\frac{1}{K}\right)<\gamma\quad\Leftarrow\quad\log(2K-3)<\gamma\\
&\Leftrightarrow K<\frac{e^\gamma+3}{2}, \tag*{(115)}
\end{aligned} b ⋆ < γ ⇔ ( K − 2 ) e − K − 1 γ + ( K − 2 ) 2 e − K − 1 2 γ + 4 ( K − 1 ) e − K − 1 γ + γ < 2 e γ ⇔ ( K − 1 ) e − K − 1 γ < e γ − ( K − 2 ) e − K − 1 γ ⇔ log ( 2 K − 3 ) ( 1 − K 1 ) < γ ⇐ log ( 2 K − 3 ) < γ ⇔ K < 2 e γ + 3 , (115)
which completes the proof.
Proof of Theorem 1
Theorem C.9 Assume that the feature dimension d d d is larger than the number of classes K K K , i.e., d ≥ K − 1 d \ge K - 1 d ≥ K − 1 , and the scale factor γ > 0 \gamma> 0 γ > 0 . In the normalized feature space, any global minimizer ( W ⋆ , H ⋆ , b ⋆ ) (W^\star, H^\star, b^\star) ( W ⋆ , H ⋆ , b ⋆ ) of
min W , H , b f c e ( W , H , b ) : = 1 n K ∑ k = 1 K ∑ i = 1 n L c e ( γ W h i ( k ) − b ) (116) \min_{W,H,b} f_{\mathrm{ce}}(W,H,b) := \frac{1}{nK}\sum_{k=1}^{K}\sum_{i=1}^{n}\mathcal{L}_{\mathrm{ce}}(\gamma W h_i^{(k)} - b) \tag*{(116)} W , H , b min f ce ( W , H , b ) := n K 1 k = 1 ∑ K i = 1 ∑ n L ce ( γ W h i ( k ) − b ) (116) with ∥ w j ∥ = ∥ h i ( k ) ∥ = 1 \lVert w_j\rVert= \lVert h_i^{(k)}\rVert= 1 ∥ w j ∥ = ∥ h i ( k ) ∥ = 1 , obeys the following
w k ⋆ = h i ( k ) ⋆ , ∀ k ∈ [ K ] , i ∈ [ n ] , (117) w_k^\star= h_i^{(k)\star}, \quad\forall k \in[K], i \in[n], \tag*{(117)} w k ⋆ = h i ( k ) ⋆ , ∀ k ∈ [ K ] , i ∈ [ n ] , (117) h ~ i ⋆ : = 1 K ∑ j = 1 K h i ( k ) ⋆ = 0 , ∀ i ∈ [ n ] , (118) \tilde{h}_i^\star:= \frac{1}{K}\sum_{j=1}^{K}h_i^{(k)\star} = 0, \quad\forall i \in[n], \tag*{(118)} h ~ i ⋆ := K 1 j = 1 ∑ K h i ( k ) ⋆ = 0 , ∀ i ∈ [ n ] , (118) W ⋆ W ⋆ T = K K − 1 ( I K − 1 K 1 K 1 K T ) , (119) W^\star W^{\star\mathsf{T}} = \frac{K}{K-1}\left(I_K-\frac{1}{K}\mathbf{1}_K\mathbf{1}_K^{\mathsf{T}}\right), \tag*{(119)} W ⋆ W ⋆ T = K − 1 K ( I K − K 1 1 K 1 K T ) , (119) b ⋆ = b 1 , ∀ b ∈ R . (120) b^\star= b\mathbf{1}, \quad\forall b \in\mathbb{R}. \tag*{(120)} b ⋆ = b 1 , ∀ b ∈ R . (120)
Proof According to Lemma C.11 , for any fixed γ > 0 \gamma> 0 γ > 0 , we have
f c e ( W , H , b ) ≥ log ( 1 + ( K − 1 ) e − γ K K − 1 ) . (121) f_{\mathrm{ce}}(W,H,b) \ge\log\left(1+(K-1)e^{-\frac{\gamma K}{K-1}}\right). \tag*{(121)} f ce ( W , H , b ) ≥ log ( 1 + ( K − 1 ) e − K − 1 γ K ) . (121)
According to Lemma C.12, the inequality (C.84) achieves its equality when Eqs. (C.80, C.81, C.82, C.83) hold, which finishes the proof. □
Lemma C.10 For any h i ( k ) h_i^{(k)} h i ( k ) with c 1 ′ > 0 c_1' > 0 c 1 ′ > 0 and γ > 0 \gamma> 0 γ > 0 , the normalized CE loss is lower bounded by
L c e ( γ W h i ( k ) − b ) ≥ ∑ j = 1 K ( γ w j T h i ( k ) − b j ) − K ( γ w k T h i ( k ) − b k ) ( 1 + c 1 ′ ) ( K − 1 ) + C ′ , (122) \mathcal{L}_{\mathrm{ce}}(\gamma W h_i^{(k)}-b) \ge\frac{\sum_{j=1}^{K}(\gamma w_j^{\mathsf{T}}h_i^{(k)}-b_j)-K(\gamma w_k^{\mathsf{T}}h_i^{(k)}-b_k)}{(1+c_1')(K-1)}+C', \tag*{(122)} L ce ( γ W h i ( k ) − b ) ≥ ( 1 + c 1 ′ ) ( K − 1 ) ∑ j = 1 K ( γ w j T h i ( k ) − b j ) − K ( γ w k T h i ( k ) − b k ) + C ′ , (122) where
C ′ = c 1 ′ 1 + c 1 ′ log ( 1 + c 1 ′ c 1 ′ ) + 1 1 + c 1 ′ log [ ( 1 + c 1 ′ ) ( K − 1 ) ] . (123) C'=\frac{c_1'}{1+c_1'}\log\left(\frac{1+c_1'}{c_1'}\right)+\frac{1}{1+c_1'}\log\left[(1+c_1')(K-1)\right]. \tag*{(123)} C ′ = 1 + c 1 ′ c 1 ′ log ( c 1 ′ 1 + c 1 ′ ) + 1 + c 1 ′ 1 log [ ( 1 + c 1 ′ ) ( K − 1 ) ] . (123) The inequality becomes an equality when
c 1 ′ = [ ( K − 1 ) exp ( ∑ j = 1 K ( γ w j T h i ( k ) − b j ) − K ( γ w k T h i ( k ) − b k ) K − 1 ) ] − 1 , (124) c_1'=\left[(K-1)\exp\left(\frac{\sum_{j=1}^{K}(\gamma w_j^{\mathsf{T}}h_i^{(k)}-b_j)-K(\gamma w_k^{\mathsf{T}}h_i^{(k)}-b_k)}{K-1}\right)\right]^{-1}, \tag*{(124)} c 1 ′ = [ ( K − 1 ) exp ( K − 1 ∑ j = 1 K ( γ w j T h i ( k ) − b j ) − K ( γ w k T h i ( k ) − b k ) ) ] − 1 , (124) and
γ w j T h i ( k ) − b j = γ w ℓ T h i ( k ) − b ℓ , ∀ j , ℓ ≠ k ∈ [ K ] . (125) \gamma w_j^{\mathsf{T}}h_i^{(k)}-b_j=\gamma w_\ell^{\mathsf{T}}h_i^{(k)}-b_\ell,\quad\forall j,\ell\ne k\in[K]. \tag*{(125)} γ w j T h i ( k ) − b j = γ w ℓ T h i ( k ) − b ℓ , ∀ j , ℓ = k ∈ [ K ] . (125)
Proof According to Jensen’s inequality in Lemma C.3 , the normalized CE loss can be lower bounded,
L c e ( γ W h i ( k ) − b ) = log ( 1 + ∑ j = 1 j ≠ k K exp ( γ w j T h i ( k ) − b j ) exp ( γ w k T h i ( k ) − b k ) ) (126) \mathcal{L}_{\mathrm{ce}}(\gamma W h_i^{(k)}-b)=\log\left(1+\sum_{\substack{j=1\\j\ne k}}^{K}\frac{\exp(\gamma w_j^{\mathsf{T}}h_i^{(k)}-b_j)}{\exp(\gamma w_k^{\mathsf{T}}h_i^{(k)}-b_k)}\right) \tag*{(126)} L ce ( γ W h i ( k ) − b ) = log 1 + j = 1 j = k ∑ K exp ( γ w k T h i ( k ) − b k ) exp ( γ w j T h i ( k ) − b j ) (126)
= log ( 1 + ( K − 1 ) ∑ j = 1 j ≠ k K exp ( γ w j T h i ( k ) − b j ) ( K − 1 ) exp ( γ w k T h i ( k ) − b k ) ) (127) = \log\left(1+(K-1)\sum_{\substack{j=1\\j\ne k}}^{K}\frac{\exp\left(\gamma\mathbf{w}_{j}^{\mathsf{T}}\mathbf{h}_{i}^{(k)}-b_{j}\right)}{(K-1)\exp\left(\gamma\mathbf{w}_{k}^{\mathsf{T}}\mathbf{h}_{i}^{(k)}-b_{k}\right)}\right) \tag*{(127)} = log 1 + ( K − 1 ) j = 1 j = k ∑ K ( K − 1 ) exp ( γ w k T h i ( k ) − b k ) exp ( γ w j T h i ( k ) − b j ) (127)
≥ log ( 1 + ( K − 1 ) exp ( ∑ j = 1 j ≠ k K γ w j T h i ( k ) − b j − γ w k T h i ( k ) + b k K − 1 ) ) (128) \ge\log\left(1+(K-1)\exp\left(\sum_{\substack{j=1\\j\ne k}}^{K}\frac{\gamma\mathbf{w}_{j}^{\mathsf{T}}\mathbf{h}_{i}^{(k)}-b_{j}-\gamma\mathbf{w}_{k}^{\mathsf{T}}\mathbf{h}_{i}^{(k)}+b_{k}}{K-1}\right)\right) \tag*{(128)} ≥ log 1 + ( K − 1 ) exp j = 1 j = k ∑ K K − 1 γ w j T h i ( k ) − b j − γ w k T h i ( k ) + b k (128)
= log ( 1 + ( K − 1 ) exp ( ∑ j = 1 K ( γ w j T h i ( k ) − b j ) − K ( γ w k T h i ( k ) − b k ) K − 1 ) ) , (129) = \log\left(1+(K-1)\exp\left(\frac{\sum_{j=1}^{K}\left(\gamma\mathbf{w}_{j}^{\mathsf{T}}\mathbf{h}_{i}^{(k)}-b_{j}\right)-K\left(\gamma\mathbf{w}_{k}^{\mathsf{T}}\mathbf{h}_{i}^{(k)}-b_{k}\right)}{K-1}\right)\right), \tag*{(129)} = log 1 + ( K − 1 ) exp K − 1 ∑ j = 1 K ( γ w j T h i ( k ) − b j ) − K ( γ w k T h i ( k ) − b k ) , (129)
which achieves the equality if and only if γ w j T h i ( k ) − b j = γ w ℓ T h i ( k ) − b ℓ \gamma\mathbf{w}_{j}^{\mathsf{T}}\mathbf{h}_{i}^{(k)}-b_{j}=\gamma\mathbf{w}_{\ell}^{\mathsf{T}}\mathbf{h}_{i}^{(k)}-b_{\ell} γ w j T h i ( k ) − b j = γ w ℓ T h i ( k ) − b ℓ for all j , ℓ ≠ k ∈ [ K ] j,\ell\ne k\in[K] j , ℓ = k ∈ [ K ] .
Second, by the concavity of the function log ( 1 + e x ) \log(1+e^{x}) log ( 1 + e x ) , for any c 1 ′ > 0 c_{1}^{\prime}>0 c 1 ′ > 0 , we get
L c e ( γ W h i ( k ) − b ) \mathcal{L}_{\mathrm{ce}}(\gamma\mathbf{W}\mathbf{h}_{i}^{(k)}-\mathbf{b}) L ce ( γ W h i ( k ) − b )
≥ log ( 1 + ( K − 1 ) exp ( ∑ j = 1 K ( γ w j T h i ( k ) − b j ) − K ( γ w k T h i ( k ) − b k ) K − 1 ) ) (130) \ge\log\left(1+(K-1)\exp\left(\frac{\sum_{j=1}^{K}\left(\gamma\mathbf{w}_{j}^{\mathsf{T}}\mathbf{h}_{i}^{(k)}-b_{j}\right)-K\left(\gamma\mathbf{w}_{k}^{\mathsf{T}}\mathbf{h}_{i}^{(k)}-b_{k}\right)}{K-1}\right)\right) \tag*{(130)} ≥ log 1 + ( K − 1 ) exp K − 1 ∑ j = 1 K ( γ w j T h i ( k ) − b j ) − K ( γ w k T h i ( k ) − b k ) (130)
= log ( c 1 ′ 1 + c 1 ′ 1 + c 1 ′ c 1 ′ + 1 + c 1 ′ 1 + c 1 ′ ( K − 1 ) exp ( ∑ j = 1 K ( γ w j T h i ( k ) − b j ) − K ( γ w k T h i ( k ) − b k ) K − 1 ) ) (131) = \log\left(\frac{c_{1}^{\prime}}{1+c_{1}^{\prime}}\frac{1+c_{1}^{\prime}}{c_{1}^{\prime}}+\frac{1+c_{1}^{\prime}}{1+c_{1}^{\prime}}(K-1)\exp\left(\frac{\sum_{j=1}^{K}\left(\gamma\mathbf{w}_{j}^{\mathsf{T}}\mathbf{h}_{i}^{(k)}-b_{j}\right)-K\left(\gamma\mathbf{w}_{k}^{\mathsf{T}}\mathbf{h}_{i}^{(k)}-b_{k}\right)}{K-1}\right)\right) \tag*{(131)} = log 1 + c 1 ′ c 1 ′ c 1 ′ 1 + c 1 ′ + 1 + c 1 ′ 1 + c 1 ′ ( K − 1 ) exp K − 1 ∑ j = 1 K ( γ w j T h i ( k ) − b j ) − K ( γ w k T h i ( k ) − b k ) (131)
≥ c 1 ′ 1 + c 1 ′ log ( 1 + c 1 ′ c 1 ′ ) + 1 1 + c 1 ′ log ( ( 1 + c 1 ′ ) ( K − 1 ) exp ( ∑ j = 1 K ( γ w j T h i ( k ) − b j ) − K ( γ w k T h i ( k ) − b k ) K − 1 ) ) (132) \begin{aligned}
\ge\frac{c_{1}^{\prime}}{1+c_{1}^{\prime}}\log\left(\frac{1+c_{1}^{\prime}}{c_{1}^{\prime}}\right) \\
&+\frac{1}{1+c_{1}^{\prime}}\log\left((1+c_{1}^{\prime})(K-1)\exp\left(\frac{\sum_{j=1}^{K}\left(\gamma\mathbf{w}_{j}^{\mathsf{T}}\mathbf{h}_{i}^{(k)}-b_{j}\right)-K\left(\gamma\mathbf{w}_{k}^{\mathsf{T}}\mathbf{h}_{i}^{(k)}-b_{k}\right)}{K-1}\right)\right) \tag*{(132)}
\end{aligned} ≥ 1 + c 1 ′ c 1 ′ log ( c 1 ′ 1 + c 1 ′ ) + 1 + c 1 ′ 1 log ( 1 + c 1 ′ ) ( K − 1 ) exp K − 1 ∑ j = 1 K ( γ w j T h i ( k ) − b j ) − K ( γ w k T h i ( k ) − b k ) (132)
= 1 1 + c 1 ′ ∑ j = 1 K ( γ w j T h i ( k ) − b j ) − K ( γ w k T h i ( k ) − b k ) K − 1 + c 1 ′ 1 + c 1 ′ log ( 1 + c 1 ′ c 1 ′ ) + 1 1 + c 1 ′ log [ ( 1 + c 1 ′ ) ( K − 1 ) ] ⏟ C ′ (133) \begin{aligned}
= \frac{1}{1+c_{1}^{\prime}}\frac{\sum_{j=1}^{K}\left(\gamma\mathbf{w}_{j}^{\mathsf{T}}\mathbf{h}_{i}^{(k)}-b_{j}\right)-K\left(\gamma\mathbf{w}_{k}^{\mathsf{T}}\mathbf{h}_{i}^{(k)}-b_{k}\right)}{K-1} \\
&+\underbrace{\frac{c_{1}^{\prime}}{1+c_{1}^{\prime}}\log\left(\frac{1+c_{1}^{\prime}}{c_{1}^{\prime}}\right)+\frac{1}{1+c_{1}^{\prime}}\log\left[(1+c_{1}^{\prime})(K-1)\right]}_{C^{\prime}} \tag*{(133)}
\end{aligned} = 1 + c 1 ′ 1 K − 1 ∑ j = 1 K ( γ w j T h i ( k ) − b j ) − K ( γ w k T h i ( k ) − b k ) + C ′ 1 + c 1 ′ c 1 ′ log ( c 1 ′ 1 + c 1 ′ ) + 1 + c 1 ′ 1 log [ ( 1 + c 1 ′ ) ( K − 1 ) ] (133)
The last inequality achieves its equality if and only if
1 + c 1 ′ c 1 ′ = ( 1 + c 1 ′ ) ( K − 1 ) exp ( ∑ j = 1 K ( γ w j T h i ( k ) − b j ) − K ( γ w k T h i ( k ) − b k ) K − 1 ) , (134) \frac{1+c_{1}^{\prime}}{c_{1}^{\prime}}=(1+c_{1}^{\prime})(K-1)\exp\left(\frac{\sum_{j=1}^{K}\left(\gamma\mathbf{w}_{j}^{\mathsf{T}}\mathbf{h}_{i}^{(k)}-b_{j}\right)-K\left(\gamma\mathbf{w}_{k}^{\mathsf{T}}\mathbf{h}_{i}^{(k)}-b_{k}\right)}{K-1}\right), \tag*{(134)} c 1 ′ 1 + c 1 ′ = ( 1 + c 1 ′ ) ( K − 1 ) exp K − 1 ∑ j = 1 K ( γ w j T h i ( k ) − b j ) − K ( γ w k T h i ( k ) − b k ) , (134)
or c 1 ′ = 0 c_{1}^{\prime}=0 c 1 ′ = 0 or c 1 ′ = + ∞ c_{1}^{\prime}=+\infty c 1 ′ = + ∞ .
Actually, when c 1 ′ = 0 c_{1}^{\prime}=0 c 1 ′ = 0 or c 1 ′ = + ∞ c_{1}^{\prime}=+\infty c 1 ′ = + ∞ , the equality is trivial. Therefore, we have
c 1 ′ = [ ( K − 1 ) exp ( ∑ j = 1 K ( γ w j T h i ( k ) − b j ) − K ( γ w k T h i ( k ) − b k ) K − 1 ) ] − 1 , (135) c_{1}^{\prime}=\left[(K-1)\exp\left(\frac{\sum_{j=1}^{K}\left(\gamma\mathbf{w}_{j}^{\mathsf{T}}\mathbf{h}_{i}^{(k)}-b_{j}\right)-K\left(\gamma\mathbf{w}_{k}^{\mathsf{T}}\mathbf{h}_{i}^{(k)}-b_{k}\right)}{K-1}\right)\right]^{-1}, \tag*{(135)} c 1 ′ = ( K − 1 ) exp K − 1 ∑ j = 1 K ( γ w j T h i ( k ) − b j ) − K ( γ w k T h i ( k ) − b k ) − 1 , (135)
as desired.
Lemma C.11 For the function f c e ( W , H , b ) f_{\mathrm{ce}}(\mathbf{W},\mathbf{H},\mathbf{b}) f ce ( W , H , b ) defined in Eq. (C.79),
f c e ( W , H , b ) ≥ log ( 1 + ( K − 1 ) e − γ K K − 1 ) . (136) f_{\mathrm{ce}}(\mathbf{W},\mathbf{H},\mathbf{b}) \ge\log\left(1+(K-1)e^{-\frac{\gamma K}{K-1}}\right). \tag*{(136)} f ce ( W , H , b ) ≥ log ( 1 + ( K − 1 ) e − K − 1 γ K ) . (136)
Proof According to Lemma C.10, Eq. (C.85) holds for any c 1 ′ > 0 c'_1>0 c 1 ′ > 0 and any h i ( k ) \mathbf{h}^{(k)}_i h i ( k ) with k ∈ [ K ] k\in[K] k ∈ [ K ] , i ∈ [ n ] i\in[n] i ∈ [ n ] . We take the same c 1 ′ c'_1 c 1 ′ for all h i ( k ) \mathbf{h}^{(k)}_i h i ( k ) , then we have the following lower bound for the function f c e f_{\mathrm{ce}} f ce as
( 1 + c 1 ′ ) ( K − 1 ) [ f c e ( W , H , b ) − C ′ ] (137) (1+c'_1)(K-1)\left[f_{\mathrm{ce}}(\mathbf{W},\mathbf{H},\mathbf{b})-\mathcal{C}'\right] \tag*{(137)} ( 1 + c 1 ′ ) ( K − 1 ) [ f ce ( W , H , b ) − C ′ ] (137)
= ( 1 + c 1 ′ ) ( K − 1 ) [ 1 n K ∑ k = 1 K ∑ i = 1 n L c e ( γ W h i ( k ) − b ) − C ′ ] (138) =(1+c'_1)(K-1)\left[\frac{1}{nK}\sum_{k=1}^{K}\sum_{i=1}^{n}\mathcal{L}_{\mathrm{ce}}(\gamma\mathbf{W}\mathbf{h}^{(k)}_i-\mathbf{b})-\mathcal{C}'\right] \tag*{(138)} = ( 1 + c 1 ′ ) ( K − 1 ) [ n K 1 k = 1 ∑ K i = 1 ∑ n L ce ( γ W h i ( k ) − b ) − C ′ ] (138)
≥ 1 n K ∑ k = 1 K ∑ i = 1 n [ ∑ j = 1 K ( γ w j T h i ( k ) − b j ) − K ( γ w k T h i ( k ) − b k ) ] (139) \ge\frac{1}{nK}\sum_{k=1}^{K}\sum_{i=1}^{n}\left[\sum_{j=1}^{K}\left(\gamma\mathbf{w}^{\mathsf T}_j\mathbf{h}^{(k)}_i-b_j\right)-K\left(\gamma\mathbf{w}^{\mathsf T}_k\mathbf{h}^{(k)}_i-b_k\right)\right] \tag*{(139)} ≥ n K 1 k = 1 ∑ K i = 1 ∑ n [ j = 1 ∑ K ( γ w j T h i ( k ) − b j ) − K ( γ w k T h i ( k ) − b k ) ] (139)
= 1 n K ∑ i = 1 n [ ( ∑ k = 1 K ∑ j = 1 K γ w j T h i ( k ) − K ∑ k = 1 K γ w k T h i ( k ) ) + ∑ k = 1 K ∑ j = 1 K ( b k − b j ) ] (140) =\frac{1}{nK}\sum_{i=1}^{n}\left[\left(\sum_{k=1}^{K}\sum_{j=1}^{K}\gamma\mathbf{w}^{\mathsf T}_j\mathbf{h}^{(k)}_i-K\sum_{k=1}^{K}\gamma\mathbf{w}^{\mathsf T}_k\mathbf{h}^{(k)}_i\right)+\sum_{k=1}^{K}\sum_{j=1}^{K}(b_k-b_j)\right] \tag*{(140)} = n K 1 i = 1 ∑ n [ ( k = 1 ∑ K j = 1 ∑ K γ w j T h i ( k ) − K k = 1 ∑ K γ w k T h i ( k ) ) + k = 1 ∑ K j = 1 ∑ K ( b k − b j ) ] (140)
= 1 n K ∑ i = 1 n ( ∑ k = 1 K ∑ j = 1 K γ w k T h i ( j ) − K ∑ k = 1 K γ w k T h i ( k ) ) (141) =\frac{1}{nK}\sum_{i=1}^{n}\left(\sum_{k=1}^{K}\sum_{j=1}^{K}\gamma\mathbf{w}^{\mathsf T}_k\mathbf{h}^{(j)}_i-K\sum_{k=1}^{K}\gamma\mathbf{w}^{\mathsf T}_k\mathbf{h}^{(k)}_i\right) \tag*{(141)} = n K 1 i = 1 ∑ n ( k = 1 ∑ K j = 1 ∑ K γ w k T h i ( j ) − K k = 1 ∑ K γ w k T h i ( k ) ) (141)
= 1 n ∑ i = 1 n ∑ k = 1 K [ γ w k T ( 1 K ∑ j = 1 K h i ( j ) − h i ( k ) ) ] (142) =\frac{1}{n}\sum_{i=1}^{n}\sum_{k=1}^{K}\left[\gamma\mathbf{w}^{\mathsf T}_k\left(\frac{1}{K}\sum_{j=1}^{K}\mathbf{h}^{(j)}_i-\mathbf{h}^{(k)}_i\right)\right] \tag*{(142)} = n 1 i = 1 ∑ n k = 1 ∑ K [ γ w k T ( K 1 j = 1 ∑ K h i ( j ) − h i ( k ) ) ] (142)
= 1 n ∑ i = 1 n ∑ k = 1 K γ w k T ( h ~ i − h i ( k ) ) , (143) =\frac{1}{n}\sum_{i=1}^{n}\sum_{k=1}^{K}\gamma\mathbf{w}^{\mathsf T}_k\left(\widetilde{\mathbf{h}}_i-\mathbf{h}^{(k)}_i\right), \tag*{(143)} = n 1 i = 1 ∑ n k = 1 ∑ K γ w k T ( h i − h i ( k ) ) , (143)
where h ~ i = 1 K ∑ j = 1 K h i ( j ) \widetilde{\mathbf{h}}_i=\frac{1}{K}\sum_{j=1}^{K}\mathbf{h}^{(j)}_i h i = K 1 ∑ j = 1 K h i ( j ) .
Then, according to the AM-GM inequality (see Lemma C.2), we have
u T v ≤ c 2 ∥ u ∥ 2 + 1 2 c ∥ v ∥ 2 , ∀ u , v ∈ R d , ∀ c > 0 , (144) \mathbf{u}^{\mathsf T}\mathbf{v}\le\frac{c}{2}\lVert\mathbf{u}\rVert^2+\frac{1}{2c}\lVert\mathbf{v}\rVert^2,\quad\forall\mathbf{u},\mathbf{v}\in\mathbb{R}^{d},\ \forall c>0, \tag*{(144)} u T v ≤ 2 c ∥ u ∥ 2 + 2 c 1 ∥ v ∥ 2 , ∀ u , v ∈ R d , ∀ c > 0 , (144)
which becomes an equality when v = c u \mathbf{v}=c\mathbf{u} v = c u . Then, based on Eq. (C.107), we get
( 1 + c 1 ′ ) ( K − 1 ) [ f c e ( W , H , b ) − C ′ ] ≥ 1 n ∑ i = 1 n ∑ k = 1 K γ w k T ( h ~ i − h i ( k ) ) (145) (1+c'_1)(K-1)\left[f_{\mathrm{ce}}(\mathbf{W},\mathbf{H},\mathbf{b})-\mathcal{C}'\right]
\ge\frac{1}{n}\sum_{i=1}^{n}\sum_{k=1}^{K}\gamma\mathbf{w}^{\mathsf T}_k\left(\widetilde{\mathbf{h}}_i-\mathbf{h}^{(k)}_i\right) \tag*{(145)} ( 1 + c 1 ′ ) ( K − 1 ) [ f ce ( W , H , b ) − C ′ ] ≥ n 1 i = 1 ∑ n k = 1 ∑ K γ w k T ( h i − h i ( k ) ) (145)
≥ − c 2 ′ 2 ∑ k = 1 K ∥ γ w k ∥ 2 − 1 2 c 2 ′ n ∑ i = 1 n ∑ k = 1 K ∥ h ~ i − h i ( k ) ∥ 2 = − c 2 ′ 2 ∑ k = 1 K γ 2 ∥ w k ∥ 2 − 1 2 c 2 ′ n ∑ i = 1 n [ ∑ k = 1 K ∥ h i ( k ) ∥ 2 − K ∥ h ~ i ∥ 2 ] (146) \begin{aligned}
\ge-\frac{c'_2}{2}\sum_{k=1}^{K}\lVert\gamma\mathbf{w}_k\rVert^2-\frac{1}{2c'_2n}\sum_{i=1}^{n}\sum_{k=1}^{K}\lVert\widetilde{\mathbf{h}}_i-\mathbf{h}^{(k)}_i\rVert^2 \\
&=-\frac{c'_2}{2}\sum_{k=1}^{K}\gamma^2\lVert\mathbf{w}_k\rVert^2-\frac{1}{2c'_2n}\sum_{i=1}^{n}\left[\sum_{k=1}^{K}\lVert\mathbf{h}^{(k)}_i\rVert^2-K\lVert\widetilde{\mathbf{h}}_i\rVert^2\right] \tag*{(146)}
\end{aligned} ≥ − 2 c 2 ′ k = 1 ∑ K ∥ γ w k ∥ 2 − 2 c 2 ′ n 1 i = 1 ∑ n k = 1 ∑ K ∥ h i − h i ( k ) ∥ 2 = − 2 c 2 ′ k = 1 ∑ K γ 2 ∥ w k ∥ 2 − 2 c 2 ′ n 1 i = 1 ∑ n [ k = 1 ∑ K ∥ h i ( k ) ∥ 2 − K ∥ h i ∥ 2 ] (146)
= − c 2 ′ 2 γ 2 K − 1 2 c 2 ′ n ( n K − K ∑ i = 1 n ∥ h ~ i ∥ 2 ) , (147) =-\frac{c'_2}{2}\gamma^2K-\frac{1}{2c'_2n}\left(nK-K\sum_{i=1}^{n}\lVert\widetilde{\mathbf{h}}_i\rVert^2\right), \tag*{(147)} = − 2 c 2 ′ γ 2 K − 2 c 2 ′ n 1 ( n K − K i = 1 ∑ n ∥ h i ∥ 2 ) , (147)
where the second inequality becomes an equality if and only if
c 2 ′ 2 γ w k = h i ( k ) − h ~ i , ∀ k ∈ [ K ] , i ∈ [ n ] , γ > 0. (148) c_2^{\prime2}\gamma w_k=h_i^{(k)}-\widetilde{h}_i,\quad\forall k\in[K],\ i\in[n],\ \gamma>0. \tag*{(148)} c 2 ′2 γ w k = h i ( k ) − h i , ∀ k ∈ [ K ] , i ∈ [ n ] , γ > 0. (148)
Therefore,
f c e ( W , H , b ) ≥ − c 2 ′ 2 γ 2 K 2 ( 1 + c 1 ′ ) ( K − 1 ) − K 2 c 2 ′ 2 n ( 1 + c 1 ′ ) ( K − 1 ) ( n − ∑ i = 1 n ∥ h ~ i ∥ 2 2 ) + C ′ (149) f_{\mathrm{ce}}(W,H,b)\geq-\frac{c_2^{\prime2}\gamma^2K}{2(1+c_1^\prime)(K-1)}-\frac{K}{2c_2^{\prime2}n(1+c_1^\prime)(K-1)}\left(n-\sum_{i=1}^{n}\left\lVert\widetilde{h}_i\right\rVert_2^2\right)+C^\prime \tag*{(149)} f ce ( W , H , b ) ≥ − 2 ( 1 + c 1 ′ ) ( K − 1 ) c 2 ′2 γ 2 K − 2 c 2 ′2 n ( 1 + c 1 ′ ) ( K − 1 ) K ( n − i = 1 ∑ n h i 2 2 ) + C ′ (149)
≥ − c 2 ′ 2 γ 2 K 2 ( 1 + c 1 ′ ) ( K − 1 ) − K 2 c 2 ′ 2 ( 1 + c 1 ′ ) ( K − 1 ) + C ′ (150) \geq-\frac{c_2^{\prime2}\gamma^2K}{2(1+c_1^\prime)(K-1)}-\frac{K}{2c_2^{\prime2}(1+c_1^\prime)(K-1)}+C^\prime \tag*{(150)} ≥ − 2 ( 1 + c 1 ′ ) ( K − 1 ) c 2 ′2 γ 2 K − 2 c 2 ′2 ( 1 + c 1 ′ ) ( K − 1 ) K + C ′ (150)
= − K 2 ( 1 + c 1 ′ ) ( K − 1 ) ( c 2 ′ 2 γ 2 + 1 c 2 ′ 2 ) + C ′ , (151) =-\frac{K}{2(1+c_1^\prime)(K-1)}\left(c_2^{\prime2}\gamma^2+\frac{1}{c_2^{\prime2}}\right)+C^\prime, \tag*{(151)} = − 2 ( 1 + c 1 ′ ) ( K − 1 ) K ( c 2 ′2 γ 2 + c 2 ′2 1 ) + C ′ , (151)
where the second inequality becomes an equality if and only if
h ~ i = 1 K ∑ j = 1 K h i ( j ) = 0 , ∀ i ∈ [ n ] . (152) \widetilde{h}_i=\frac{1}{K}\sum_{j=1}^{K}h_i^{(j)}=0,\quad\forall i\in[n]. \tag*{(152)} h i = K 1 j = 1 ∑ K h i ( j ) = 0 , ∀ i ∈ [ n ] . (152)
Based on Eqs. (C.112) and (C.116), we get
c 2 ′ 2 γ w k = h i ( k ) ⇒ ∥ c 2 ′ γ w k ∥ 2 2 = ∥ h i ( k ) ∥ 2 2 ⇒ ( c 2 ′ γ ) 2 = 1 ⇒ c 2 ′ = 1 γ . (153) c_2^{\prime2}\gamma w_k=h_i^{(k)}\Rightarrow\left\lVert c_2^\prime\gamma w_k\right\rVert_2^2=\left\lVert h_i^{(k)}\right\rVert_2^2\Rightarrow(c_2^\prime\gamma)^2=1\Rightarrow c_2^\prime=\frac{1}{\gamma}. \tag*{(153)} c 2 ′2 γ w k = h i ( k ) ⇒ ∥ c 2 ′ γ w k ∥ 2 2 = h i ( k ) 2 2 ⇒ ( c 2 ′ γ ) 2 = 1 ⇒ c 2 ′ = γ 1 . (153)
Plugging Eq. (C.117) into (C.115), we have
f c e ( W , H , b ) ≥ − K ( c 2 ′ 2 γ 2 + 1 c 2 ′ 2 ) 2 ( 1 + c 1 ′ ) ( K − 1 ) + C ′ = − γ K ( 1 + c 1 ′ ) ( K − 1 ) + C ′ . (154) f_{\mathrm{ce}}(W,H,b)\geq-\frac{K(c_2^{\prime2}\gamma^2+\frac{1}{c_2^{\prime2}})}{2(1+c_1^\prime)(K-1)}+C^\prime=-\frac{\gamma K}{(1+c_1^\prime)(K-1)}+C^\prime. \tag*{(154)} f ce ( W , H , b ) ≥ − 2 ( 1 + c 1 ′ ) ( K − 1 ) K ( c 2 ′2 γ 2 + c 2 ′2 1 ) + C ′ = − ( 1 + c 1 ′ ) ( K − 1 ) γ K + C ′ . (154)
Furthermore, according to Lemma C.12, when the objective function f c e f_{\mathrm{ce}} f ce achieves its lower bound, we have ∂ f c e ∂ b k ≡ 0 \frac{\partial f_{\mathrm{ce}}}{\partial b_k}\equiv0 ∂ b k ∂ f ce ≡ 0 , and c 1 ′ c_1^\prime c 1 ′ satisfies
c 1 ′ = [ ( K − 1 ) exp ( − γ K K − 1 ) ] − 1 . (155) c_1^\prime=\left[(K-1)\exp\left(-\frac{\gamma K}{K-1}\right)\right]^{-1}. \tag*{(155)} c 1 ′ = [ ( K − 1 ) exp ( − K − 1 γ K ) ] − 1 . (155)
Then, we have
f c e ( W , H , b ) ≥ − γ K ( 1 + c 1 ′ ) ( K − 1 ) + C ′ = log ( 1 + ( K − 1 ) e − γ K K − 1 ) , (156) f_{\mathrm{ce}}(W,H,b)\geq-\frac{\gamma K}{(1+c_1^\prime)(K-1)}+C^\prime=\log\left(1+(K-1)e^{-\frac{\gamma K}{K-1}}\right), \tag*{(156)} f ce ( W , H , b ) ≥ − ( 1 + c 1 ′ ) ( K − 1 ) γ K + C ′ = log ( 1 + ( K − 1 ) e − K − 1 γ K ) , (156)
as suggested in Eq. (C.100). □
Lemma C.12 Under the same assumption of Lemma C.11, the lower bound in Eq. (C.100) is achieved for any critical point ( W , H , b ) (W,H,b) ( W , H , b ) of Eq. (C.79) if and only if the following hold
w k = h i ( k ) , ∀ k ∈ [ K ] , i ∈ [ n ] , (157) w_k=h_i^{(k)},\quad\forall k\in[K],\ i\in[n], \tag*{(157)} w k = h i ( k ) , ∀ k ∈ [ K ] , i ∈ [ n ] , (157) h ~ i : = 1 K ∑ k = 1 K h i ( k ) = 0 , ∀ i ∈ [ n ] , (158) \widetilde{h}_i:=\frac{1}{K}\sum_{k=1}^{K}h_i^{(k)}=0,\quad\forall i\in[n], \tag*{(158)} h i := K 1 k = 1 ∑ K h i ( k ) = 0 , ∀ i ∈ [ n ] , (158) W W T = K K − 1 ( I K − 1 K 1 K 1 K T ) , (159) WW^{\mathsf{T}}=\frac{K}{K-1}\left(I_K-\frac{1}{K}\mathbf{1}_K\mathbf{1}_K^{\mathsf{T}}\right), \tag*{(159)} W W T = K − 1 K ( I K − K 1 1 K 1 K T ) , (159) b ⋆ = b ⋆ 1 , ∀ b ⋆ ∈ R , (160) b^\star=b^\star\mathbf{1},\quad\forall b^\star\in\mathbb{R}, \tag*{(160)} b ⋆ = b ⋆ 1 , ∀ b ⋆ ∈ R , (160) c 1 ′ = [ ( K − 1 ) exp ( − γ K K − 1 ) ] − 1 . (161) c_1^\prime=\left[(K-1)\exp\left(-\frac{\gamma K}{K-1}\right)\right]^{-1}. \tag*{(161)} c 1 ′ = [ ( K − 1 ) exp ( − K − 1 γ K ) ] − 1 . (161)
Proof. With the proof of Lemma C.11, to achieve the lower bound, we need at least Eqs. (C.112) and (C.116) to hold, i.e,
h ~ i = 1 K ∑ k = 1 K h i ( k ) = 0 , ∀ i ∈ [ n ] and w k = h i ( k ) , ∀ k ∈ [ K ] , i ∈ [ n ] , (162) \tilde{h}_i = \frac{1}{K}\sum_{k=1}^{K}h_i^{(k)} = 0,\ \forall i \in[n]\quad\text{and}\quad\boldsymbol{w}_k = h_i^{(k)},\ \forall k \in[K],\ i \in[n], \tag*{(162)} h ~ i = K 1 k = 1 ∑ K h i ( k ) = 0 , ∀ i ∈ [ n ] and w k = h i ( k ) , ∀ k ∈ [ K ] , i ∈ [ n ] , (162)
which further implies that
∑ k = 1 K w k = ∑ k = 1 K h i ( k ) = 0. (163) \sum_{k=1}^{K}\boldsymbol{w}_k = \sum_{k=1}^{K}h_i^{(k)} = 0. \tag*{(163)} k = 1 ∑ K w k = k = 1 ∑ K h i ( k ) = 0. (163)
Then,
∑ j = 1 K ( γ w j T h i ( k ) − b j ) = γ ( ∑ j = 1 K w j T ) h i ( k ) − ∑ j = 1 K b j = 0 − ∑ j = 1 K b j = − K b ˉ , (164) \sum_{j=1}^{K}(\gamma\boldsymbol{w}_j^{\mathsf{T}}h_i^{(k)}-b_j)=\gamma\left(\sum_{j=1}^{K}\boldsymbol{w}_j^{\mathsf{T}}\right)h_i^{(k)}-\sum_{j=1}^{K}b_j=0-\sum_{j=1}^{K}b_j=-K\bar{b}, \tag*{(164)} j = 1 ∑ K ( γ w j T h i ( k ) − b j ) = γ ( j = 1 ∑ K w j T ) h i ( k ) − j = 1 ∑ K b j = 0 − j = 1 ∑ K b j = − K b ˉ , (164)
where b ˉ = 1 K ∑ j = 1 K b j \bar{b}=\frac{1}{K}\sum_{j=1}^{K}b_j b ˉ = K 1 ∑ j = 1 K b j , and
K ( γ w k T h i ( k ) − b k ) = K ( γ ∥ w k ∥ 2 2 − b k ) = K γ − K b k . (165) K(\gamma\boldsymbol{w}_k^{\mathsf{T}}h_i^{(k)}-b_k)=K(\gamma\lVert\boldsymbol{w}_k\rVert_2^2-b_k)=K\gamma-Kb_k. \tag*{(165)} K ( γ w k T h i ( k ) − b k ) = K ( γ ∥ w k ∥ 2 2 − b k ) = K γ − K b k . (165)
Combining Eqs. (C.87), (C.88), (C.128), and (C.129), we have
c 1 ′ = [ ( K − 1 ) exp ( ∑ j = 1 K ( γ w j T h i ( k ) − b j ) − K ( γ w k T h i ( k ) − b k ) K − 1 ) ] − 1 = [ ( K − 1 ) exp ( − K b ˉ − ( K γ − K b k ) K − 1 ) ] − 1 = [ ( K − 1 ) exp ( K K − 1 ( b k − b ˉ − γ ) ) ] − 1 . (166) \begin{aligned}
c_1^{\prime} &= \left[(K-1)\exp\left(\frac{\sum_{j=1}^{K}(\gamma\boldsymbol{w}_j^{\mathsf{T}}h_i^{(k)}-b_j)-K(\gamma\boldsymbol{w}_k^{\mathsf{T}}h_i^{(k)}-b_k)}{K-1}\right)\right]^{-1}\\
&=\left[(K-1)\exp\left(\frac{-K\bar{b}-(K\gamma-Kb_k)}{K-1}\right)\right]^{-1}\\
&=\left[(K-1)\exp\left(\frac{K}{K-1}(b_k-\bar{b}-\gamma)\right)\right]^{-1}. \tag*{(166)}
\end{aligned} c 1 ′ = [ ( K − 1 ) exp ( K − 1 ∑ j = 1 K ( γ w j T h i ( k ) − b j ) − K ( γ w k T h i ( k ) − b k ) ) ] − 1 = [ ( K − 1 ) exp ( K − 1 − K b ˉ − ( K γ − K b k ) ) ] − 1 = [ ( K − 1 ) exp ( K − 1 K ( b k − b ˉ − γ ) ) ] − 1 . (166)
Since the c 1 ′ > 0 c_1^{\prime}>0 c 1 ′ > 0 can be arbitrary number, we choose the same c 1 ′ c_1^{\prime} c 1 ′ for all k ∈ [ K ] k\in[K] k ∈ [ K ] . Then, we have
b k − b ˉ − γ = b j − b ˉ − γ ⇔ b k = b j , ∀ j ≠ k ∈ [ K ] . (167) b_k-\bar{b}-\gamma=b_j-\bar{b}-\gamma\Leftrightarrow b_k=b_j,\ \forall j\ne k\in[K]. \tag*{(167)} b k − b ˉ − γ = b j − b ˉ − γ ⇔ b k = b j , ∀ j = k ∈ [ K ] . (167)
Therefore, we can write b = b 1 K \boldsymbol{b}=b\boldsymbol{1}_K b = b 1 K . Moreover, plugging Eqs. (C.126) and (C.131) into Eq. (C.129), we get
γ w j T h i ( k ) − b j = γ w ℓ T h i ( k ) − b ℓ ⇔ w j T h i ( k ) = w ℓ T h i ( k ) ⇔ w j T w k = w ℓ T w k . (168) \gamma\boldsymbol{w}_j^{\mathsf{T}}h_i^{(k)}-b_j=\gamma\boldsymbol{w}_\ell^{\mathsf{T}}h_i^{(k)}-b_\ell\Leftrightarrow\boldsymbol{w}_j^{\mathsf{T}}h_i^{(k)}=\boldsymbol{w}_\ell^{\mathsf{T}}h_i^{(k)}\Leftrightarrow\boldsymbol{w}_j^{\mathsf{T}}\boldsymbol{w}_k=\boldsymbol{w}_\ell^{\mathsf{T}}\boldsymbol{w}_k. \tag*{(168)} γ w j T h i ( k ) − b j = γ w ℓ T h i ( k ) − b ℓ ⇔ w j T h i ( k ) = w ℓ T h i ( k ) ⇔ w j T w k = w ℓ T w k . (168)
Then, combining with Eq. (C.127), we have
1 = ∥ w k ∥ 2 2 = − ∑ j = 1 j ≠ k K w k T w j = − ( K − 1 ) w k T w j ⇒ w k T w j = − 1 K − 1 , ∀ j ≠ k ∈ [ K ] . (169) 1=\lVert\boldsymbol{w}_k\rVert_2^2=-\sum_{\substack{j=1\\j\ne k}}^{K}\boldsymbol{w}_k^{\mathsf{T}}\boldsymbol{w}_j=-(K-1)\boldsymbol{w}_k^{\mathsf{T}}\boldsymbol{w}_j\Rightarrow\boldsymbol{w}_k^{\mathsf{T}}\boldsymbol{w}_j=-\frac{1}{K-1},\ \forall j\ne k\in[K]. \tag*{(169)} 1 = ∥ w k ∥ 2 2 = − j = 1 j = k ∑ K w k T w j = − ( K − 1 ) w k T w j ⇒ w k T w j = − K − 1 1 , ∀ j = k ∈ [ K ] . (169)
Therefore,
W W T = K K − 1 ( I K − 1 K 1 K 1 K T ) . (170) \boldsymbol{W}\boldsymbol{W}^{\mathsf{T}}=\frac{K}{K-1}\left(I_K-\frac{1}{K}\boldsymbol{1}_K\boldsymbol{1}_K^{\mathsf{T}}\right). \tag*{(170)} W W T = K − 1 K ( I K − K 1 1 K 1 K T ) . (170)
Finally, plugging the results in Eq. (C.131) into (C.130), we have
c 1 ′ = [ ( K − 1 ) exp ( K K − 1 ( b k − b ˉ − γ ) ) ] − 1 = [ ( K − 1 ) exp ( − γ K K − 1 ) ] − 1 . c_1^{\prime}=\left[(K-1)\exp\left(\frac{K}{K-1}(b_k-\bar{b}-\gamma)\right)\right]^{-1}=\left[(K-1)\exp\left(-\frac{\gamma K}{K-1}\right)\right]^{-1}. c 1 ′ = [ ( K − 1 ) exp ( K − 1 K ( b k − b ˉ − γ ) ) ] − 1 = [ ( K − 1 ) exp ( − K − 1 γ K ) ] − 1 .
When f c e f_{\mathrm{ce}} f ce defined in Eq. (C.79) achieves its lower bound, it theoretically satisfies
∂ f c e ∂ b k = 1 n K ( n − ∑ j = 1 K ∑ i = 1 n exp ( γ w k ⊤ h i ( j ) − b k ) ∑ ℓ = 1 K exp ( γ w ℓ ⊤ h i ( j ) − b ℓ ) ) = 0 , ∀ k , ℓ ∈ [ K ] . (171) \frac{\partial f_{\mathrm{ce}}}{\partial b_k}=\frac{1}{nK}\left(n-\sum_{j=1}^{K}\sum_{i=1}^{n}\frac{\exp\left(\gamma\mathbf{w}_k^{\top}\mathbf{h}_i^{(j)}-b_k\right)}{\sum_{\ell=1}^{K}\exp\left(\gamma\mathbf{w}_{\ell}^{\top}\mathbf{h}_i^{(j)}-b_{\ell}\right)}\right)=0,\ \forall k,\ell\in[K]. \tag*{(171)} ∂ b k ∂ f ce = n K 1 n − j = 1 ∑ K i = 1 ∑ n ∑ ℓ = 1 K exp ( γ w ℓ ⊤ h i ( j ) − b ℓ ) exp ( γ w k ⊤ h i ( j ) − b k ) = 0 , ∀ k , ℓ ∈ [ K ] . (171)
However, combining with Eqs. (C.131) and (C.133), we have
n − ∑ j = 1 K ∑ i = 1 n exp ( γ w k ⊤ h i ( j ) − b k ) ∑ ℓ = 1 K exp ( γ w ℓ ⊤ h i ( j ) − b ℓ ) = n − ∑ j = 1 K ∑ i = 1 n exp ( γ w k ⊤ h i ( j ) − b k ) ∑ ℓ ≠ j K exp ( − γ K − 1 − b ℓ ) + exp ( γ − b j ) (172) \begin{aligned}
n-\sum_{j=1}^{K}\sum_{i=1}^{n}\frac{\exp\left(\gamma\mathbf{w}_k^{\top}\mathbf{h}_i^{(j)}-b_k\right)}{\sum_{\ell=1}^{K}\exp\left(\gamma\mathbf{w}_{\ell}^{\top}\mathbf{h}_i^{(j)}-b_{\ell}\right)} \\
&= n-\sum_{j=1}^{K}\sum_{i=1}^{n}\frac{\exp\left(\gamma\mathbf{w}_k^{\top}\mathbf{h}_i^{(j)}-b_k\right)}{\sum_{\ell\ne j}^{K}\exp\left(-\frac{\gamma}{K-1}-b_{\ell}\right)+\exp\left(\gamma-b_j\right)} \tag*{(172)}
\end{aligned} n − j = 1 ∑ K i = 1 ∑ n ∑ ℓ = 1 K exp ( γ w ℓ ⊤ h i ( j ) − b ℓ ) exp ( γ w k ⊤ h i ( j ) − b k ) = n − j = 1 ∑ K i = 1 ∑ n ∑ ℓ = j K exp ( − K − 1 γ − b ℓ ) + exp ( γ − b j ) exp ( γ w k ⊤ h i ( j ) − b k ) (172)
= n − ∑ i = 1 n ( ∑ j ≠ k K exp ( − γ K − 1 − b ) + exp ( γ − b ) ( K − 1 ) exp ( − γ K − 1 − b ) + exp ( γ − b ) ) = n − n ≡ 0 , (173) = n-\sum_{i=1}^{n}\left(\frac{\sum_{j\ne k}^{K}\exp\left(-\frac{\gamma}{K-1}-b\right)+\exp\left(\gamma-b\right)}{(K-1)\exp\left(-\frac{\gamma}{K-1}-b\right)+\exp\left(\gamma-b\right)}\right)=n-n\equiv0, \tag*{(173)} = n − i = 1 ∑ n ( ( K − 1 ) exp ( − K − 1 γ − b ) + exp ( γ − b ) ∑ j = k K exp ( − K − 1 γ − b ) + exp ( γ − b ) ) = n − n ≡ 0 , (173)
which means when the function f c e f_{\mathrm{ce}} f ce achieves its lower bound, the classifier biases b ⋆ \mathbf{b}^{\star} b ⋆ only needs to satisfies b ⋆ = b ⋆ 1 \mathbf{b}^{\star}=b^{\star}\mathbf{1} b ⋆ = b ⋆ 1 . In other words, in terms of the classifier biases, the function f c e f_{\mathrm{ce}} f ce has infinitely many minima. □
Proof of Theorems 5 and 6
Lemma C.13 (1) For a polynomial P ( γ ) P(\gamma) P ( γ ) and Sigmoid function σ ( s γ − b ) = 1 1 + exp ( − s γ + b ) \sigma(s\gamma-b)=\frac{1}{1+\exp(-s\gamma+b)} σ ( s γ − b ) = 1 + e x p ( − s γ + b ) 1 with s , b ∈ R s,b\in\mathbb{R} s , b ∈ R , as γ \gamma γ approaches positive infinity, their product exhibits exponential decay, converging to zero,
lim γ → + ∞ P ( γ ) σ ( s γ − b ) = lim γ → + ∞ P ( γ ) 1 1 + exp ( − s γ + b ) = 0 , ∀ s < 0 , b ∈ R , (174) \lim_{\gamma\to+\infty}P(\gamma)\sigma(s\gamma-b)=\lim_{\gamma\to+\infty}P(\gamma)\frac{1}{1+\exp(-s\gamma+b)}=0,\quad\forall s<0,\ b\in\mathbb{R}, \tag*{(174)} γ → + ∞ lim P ( γ ) σ ( s γ − b ) = γ → + ∞ lim P ( γ ) 1 + exp ( − s γ + b ) 1 = 0 , ∀ s < 0 , b ∈ R , (174) lim γ → + ∞ P ( γ ) ( 1 − σ ( s γ − b ) ) = lim γ → + ∞ P ( γ ) exp ( − s γ + b ) 1 + exp ( − s γ + b ) = 0 , ∀ s > 0 , b ∈ R . (175) \lim_{\gamma\to+\infty}P(\gamma)(1-\sigma(s\gamma-b))=\lim_{\gamma\to+\infty}P(\gamma)\frac{\exp(-s\gamma+b)}{1+\exp(-s\gamma+b)}=0,\quad\forall s>0,\ b\in\mathbb{R}. \tag*{(175)} γ → + ∞ lim P ( γ ) ( 1 − σ ( s γ − b )) = γ → + ∞ lim P ( γ ) 1 + exp ( − s γ + b ) exp ( − s γ + b ) = 0 , ∀ s > 0 , b ∈ R . (175) (2) For a polynomial P ( γ ) P(\gamma) P ( γ ) without constant term and Sigmoid function σ ( s γ − b ) = 1 1 + exp ( − s γ + b ) \sigma(s\gamma-b)=\frac{1}{1+\exp(-s\gamma+b)} σ ( s γ − b ) = 1 + e x p ( − s γ + b ) 1 with s , b ∈ R s,b\in\mathbb{R} s , b ∈ R , their product approaches 0 0 0 as γ \gamma γ approaches zero, i.e.,
lim γ → 0 P ( γ ) σ ( s γ − b ) = lim γ → 0 P ( γ ) 1 1 + exp ( − s γ + b ) = 0 , ∀ s , b ∈ R , (176) \lim_{\gamma\to0}P(\gamma)\sigma(s\gamma-b)=\lim_{\gamma\to0}P(\gamma)\frac{1}{1+\exp(-s\gamma+b)}=0,\quad\forall s,b\in\mathbb{R}, \tag*{(176)} γ → 0 lim P ( γ ) σ ( s γ − b ) = γ → 0 lim P ( γ ) 1 + exp ( − s γ + b ) 1 = 0 , ∀ s , b ∈ R , (176) lim γ → 0 P ( γ ) ( 1 − σ ( s γ − b ) ) = lim γ → 0 P ( γ ) exp ( − s γ + b ) 1 + exp ( − s γ + b ) = 0 , ∀ s , b ∈ R . (177) \lim_{\gamma\to0}P(\gamma)(1-\sigma(s\gamma-b))=\lim_{\gamma\to0}P(\gamma)\frac{\exp(-s\gamma+b)}{1+\exp(-s\gamma+b)}=0,\quad\forall s,b\in\mathbb{R}. \tag*{(177)} γ → 0 lim P ( γ ) ( 1 − σ ( s γ − b )) = γ → 0 lim P ( γ ) 1 + exp ( − s γ + b ) exp ( − s γ + b ) = 0 , ∀ s , b ∈ R . (177)
Proof (1) Suppose that P ( γ ) P(\gamma) P ( γ ) is an p p p -degree polynomial in terms of γ \gamma γ , with the leading coefficient being a p a_p a p . Then by applying L’hospital’s rule p p p times, we have
lim γ → + ∞ P ( γ ) ( 1 − σ ( s γ − b ) ) = lim γ → + ∞ P ( γ ) exp ( − s γ + b ) 1 + exp ( − s γ + b ) = lim γ → + ∞ P ( γ ) 1 + exp ( s γ − b ) = lim γ → + ∞ d P ( γ ) / d γ s exp ( s γ − b ) = ⋯ = lim γ → + ∞ d p P ( γ ) / d γ p s p exp ( s γ − b ) = lim γ → + ∞ p ! ⋅ a p s p exp ( s γ − b ) = 0 , ∀ s > 0. (178) \begin{aligned}
\lim_{\gamma\to+\infty}P(\gamma)(1-\sigma(s\gamma-b))&=\lim_{\gamma\to+\infty}P(\gamma)\frac{\exp(-s\gamma+b)}{1+\exp(-s\gamma+b)}\\
&=\lim_{\gamma\to+\infty}\frac{P(\gamma)}{1+\exp(s\gamma-b)}=\lim_{\gamma\to+\infty}\frac{dP(\gamma)/d\gamma}{s\exp(s\gamma-b)}=\cdots\\
&=\lim_{\gamma\to+\infty}\frac{d^pP(\gamma)/d\gamma^p}{s^p\exp(s\gamma-b)}=\lim_{\gamma\to+\infty}\frac{p!\cdot a_p}{s^p\exp(s\gamma-b)}=0,\quad\forall s>0. \tag*{(178)}
\end{aligned} γ → + ∞ lim P ( γ ) ( 1 − σ ( s γ − b )) = γ → + ∞ lim P ( γ ) 1 + exp ( − s γ + b ) exp ( − s γ + b ) = γ → + ∞ lim 1 + exp ( s γ − b ) P ( γ ) = γ → + ∞ lim s exp ( s γ − b ) d P ( γ ) / d γ = ⋯ = γ → + ∞ lim s p exp ( s γ − b ) d p P ( γ ) / d γ p = γ → + ∞ lim s p exp ( s γ − b ) p ! ⋅ a p = 0 , ∀ s > 0. (178)
When s < 0 s<0 s < 0 , one can similarly prove Eq. (C.138).
(2) As P ( γ ) P(\gamma) P ( γ ) is without constant term, lim γ → 0 P ( γ ) = 0 \lim_{\gamma\to0}P(\gamma)=0 lim γ → 0 P ( γ ) = 0 . Therefore,
lim γ → 0 P ( γ ) σ ( s γ − b ) = lim γ → 0 P ( γ ) lim γ → 0 σ ( s γ − b ) = 0 ⋅ lim γ → 0 1 1 + exp ( − s γ + b ) = 0 ⋅ 1 1 + e b = 0 , \lim_{\gamma\to0}P(\gamma)\sigma(s\gamma-b)=\lim_{\gamma\to0}P(\gamma)\lim_{\gamma\to0}\sigma(s\gamma-b)=0\cdot\lim_{\gamma\to0}\frac{1}{1+\exp(-s\gamma+b)}=0\cdot\frac{1}{1+e^b}=0, γ → 0 lim P ( γ ) σ ( s γ − b ) = γ → 0 lim P ( γ ) γ → 0 lim σ ( s γ − b ) = 0 ⋅ γ → 0 lim 1 + exp ( − s γ + b ) 1 = 0 ⋅ 1 + e b 1 = 0 ,
lim γ → 0 P ( γ ) ( 1 − σ ( s γ − b ) ) = lim γ → 0 P ( γ ) lim γ → 0 ( 1 − σ ( s γ − b ) ) = 0 ⋅ lim γ → 0 exp ( − s γ + b ) 1 + exp ( − s γ + b ) = 0 ⋅ e b 1 + e b = 0 , \lim_{\gamma\to0}P(\gamma)(1-\sigma(s\gamma-b))=\lim_{\gamma\to0}P(\gamma)\lim_{\gamma\to0}(1-\sigma(s\gamma-b))=0\cdot\lim_{\gamma\to0}\frac{\exp(-s\gamma+b)}{1+\exp(-s\gamma+b)}=0\cdot\frac{e^b}{1+e^b}=0, γ → 0 lim P ( γ ) ( 1 − σ ( s γ − b )) = γ → 0 lim P ( γ ) γ → 0 lim ( 1 − σ ( s γ − b )) = 0 ⋅ γ → 0 lim 1 + exp ( − s γ + b ) exp ( − s γ + b ) = 0 ⋅ 1 + e b e b = 0 ,
which are desired. □
Lemma C.14 Let { s j } j = 1 K ⊂ R \{s_j\}_{j=1}^{K}\subset\mathbb{R} { s j } j = 1 K ⊂ R and { b j } j = 1 K ⊂ R \{b_j\}_{j=1}^{K}\subset\mathbb{R} { b j } j = 1 K ⊂ R be two sets of real numbers and
s k = max { s j } j = 1 K > max { s j } j ≠ k K . (179) s_k=\max\{s_j\}_{j=1}^{K}>\max\{s_j\}_{j\ne k}^{K}. \tag*{(179)} s k = max { s j } j = 1 K > max { s j } j = k K . (179) (1) For a polynomial P ( γ ) P(\gamma) P ( γ ) and Softmax function Softmax ℓ ( γ ) = exp ( s ℓ γ − b ℓ ) ∑ j = 1 K exp ( s j γ − b j ) \operatorname{Softmax}_{\ell}(\gamma)=\frac{\exp(s_{\ell}\gamma-b_{\ell})}{\sum_{j=1}^{K}\exp(s_j\gamma-b_j)} Softmax ℓ ( γ ) = ∑ j = 1 K e x p ( s j γ − b j ) e x p ( s ℓ γ − b ℓ ) , as γ \gamma γ approaches positive infinity, their product exhibits exponential decay, converging to zero,
lim γ → + ∞ P ( γ ) Softmax ℓ ( γ ) = lim γ → + ∞ P ( γ ) exp ( s ℓ γ − b ℓ ) ∑ j = 1 K exp ( s j γ − b j ) = 0 , ∀ ℓ ≠ k , (180) \lim_{\gamma\to+\infty}P(\gamma)\operatorname{Softmax}_{\ell}(\gamma)=\lim_{\gamma\to+\infty}P(\gamma)\frac{\exp(s_{\ell}\gamma-b_{\ell})}{\sum_{j=1}^{K}\exp(s_j\gamma-b_j)}=0,\quad\forall\ell\ne k, \tag*{(180)} γ → + ∞ lim P ( γ ) Softmax ℓ ( γ ) = γ → + ∞ lim P ( γ ) ∑ j = 1 K exp ( s j γ − b j ) exp ( s ℓ γ − b ℓ ) = 0 , ∀ ℓ = k , (180)
lim γ → + ∞ P ( γ ) ( 1 − Softmax k ( γ ) ) = lim γ → + ∞ P ( γ ) ∑ j = 1 j ≠ k K exp ( s j γ − b j ) ∑ j = 1 K exp ( s j γ − b j ) = 0. (181) \lim_{\gamma\to+\infty} P(\gamma)(1-\operatorname{Softmax}_{k}(\gamma))=\lim_{\gamma\to+\infty}P(\gamma)\frac{\sum_{\substack{j=1\\j\ne k}}^{K}\exp(s_j\gamma-b_j)}{\sum_{j=1}^{K}\exp(s_j\gamma-b_j)}=0. \tag*{(181)} γ → + ∞ lim P ( γ ) ( 1 − Softmax k ( γ )) = γ → + ∞ lim P ( γ ) ∑ j = 1 K exp ( s j γ − b j ) ∑ j = 1 j = k K exp ( s j γ − b j ) = 0. (181)
(2) For a polynomial P ( γ ) P(\gamma) P ( γ ) without constant term and Softmax ℓ ( γ ) = exp ( s ℓ γ − b ℓ ) ∑ j = 1 K exp ( s j γ − b j ) \operatorname{Softmax}_{\ell}(\gamma)=\frac{\exp(s_{\ell}\gamma-b_{\ell})}{\sum_{j=1}^{K}\exp(s_j\gamma-b_j)} Softmax ℓ ( γ ) = ∑ j = 1 K e x p ( s j γ − b j ) e x p ( s ℓ γ − b ℓ ) , their product approaches 0 0 0 as γ \gamma γ approaches 0 0 0 , and
lim γ → 0 P ( γ ) Softmax ℓ ( γ ) = lim γ → 0 P ( γ ) exp ( s ℓ γ − b ℓ ) ∑ j = 1 K exp ( s j γ − b j ) = 0 , ∀ j ≠ k , (182) \lim_{\gamma\to0}P(\gamma)\operatorname{Softmax}_{\ell}(\gamma)=\lim_{\gamma\to0}P(\gamma)\frac{\exp(s_{\ell}\gamma-b_{\ell})}{\sum_{j=1}^{K}\exp(s_j\gamma-b_j)}=0,\qquad\forall j\ne k, \tag*{(182)} γ → 0 lim P ( γ ) Softmax ℓ ( γ ) = γ → 0 lim P ( γ ) ∑ j = 1 K exp ( s j γ − b j ) exp ( s ℓ γ − b ℓ ) = 0 , ∀ j = k , (182)
lim γ → 0 P ( γ ) ( 1 − Softmax k ( γ ) ) = lim γ → 0 P ( γ ) ∑ j = 1 j ≠ k K exp ( s j γ − b j ) ∑ j = 1 K exp ( s j γ − b j ) = 0. (183) \lim_{\gamma\to0}P(\gamma)(1-\operatorname{Softmax}_{k}(\gamma))=\lim_{\gamma\to0}P(\gamma)\frac{\sum_{\substack{j=1\\j\ne k}}^{K}\exp(s_j\gamma-b_j)}{\sum_{j=1}^{K}\exp(s_j\gamma-b_j)}=0. \tag*{(183)} γ → 0 lim P ( γ ) ( 1 − Softmax k ( γ )) = γ → 0 lim P ( γ ) ∑ j = 1 K exp ( s j γ − b j ) ∑ j = 1 j = k K exp ( s j γ − b j ) = 0. (183)
Proof (1) Suppose P ( γ ) = a p γ p + a p − 1 γ p − 1 + ⋯ + a 1 γ + a 0 P(\gamma)=a_p\gamma^p+a_{p-1}\gamma^{p-1}+\cdots+a_1\gamma+a_0 P ( γ ) = a p γ p + a p − 1 γ p − 1 + ⋯ + a 1 γ + a 0 . Then,
0 ≤ ∣ P ( γ ) Softmax ℓ ( γ ) ∣ ≤ ∑ i = 1 p ∣ a i ∣ γ i exp ( s ℓ γ − b ℓ ) ∑ j = 1 K exp ( s j γ − b j ) ≤ ∑ i = 1 p ∣ a i ∣ γ i exp ( s ℓ γ − b ℓ ) exp ( s k γ − b k ) = ∑ i = 1 p ∣ a i ∣ γ i 1 exp ( ( s k − s ℓ ) γ − ( b k − b ℓ ) ) . (184) \begin{aligned}
0\leq\left|P(\gamma)\operatorname{Softmax}_{\ell}(\gamma)\right|\leq\sum_{i=1}^{p}|a_i|\gamma^i\frac{\exp(s_{\ell}\gamma-b_{\ell})}{\sum_{j=1}^{K}\exp(s_j\gamma-b_j)} \\
&\leq\sum_{i=1}^{p}|a_i|\gamma^i\frac{\exp(s_{\ell}\gamma-b_{\ell})}{\exp(s_k\gamma-b_k)}
=\sum_{i=1}^{p}|a_i|\gamma^i\frac{1}{\exp((s_k-s_{\ell})\gamma-(b_k-b_{\ell}))}. \tag*{(184)}
\end{aligned} 0 ≤ ∣ P ( γ ) Softmax ℓ ( γ ) ∣ ≤ i = 1 ∑ p ∣ a i ∣ γ i ∑ j = 1 K exp ( s j γ − b j ) exp ( s ℓ γ − b ℓ ) ≤ i = 1 ∑ p ∣ a i ∣ γ i exp ( s k γ − b k ) exp ( s ℓ γ − b ℓ ) = i = 1 ∑ p ∣ a i ∣ γ i exp (( s k − s ℓ ) γ − ( b k − b ℓ )) 1 . (184)
As s k − s ℓ > 0 s_k-s_{\ell}>0 s k − s ℓ > 0 for ℓ ≠ k \ell\ne k ℓ = k , the right side approaches zero when γ \gamma γ approaches positive infinity, according to Lemma C.13(1). Therefore, lim γ → 0 P ( γ ) Softmax ℓ ( γ ) = 0 \lim_{\gamma\to0}P(\gamma)\operatorname{Softmax}_{\ell}(\gamma)=0 lim γ → 0 P ( γ ) Softmax ℓ ( γ ) = 0 .
By applying the arithmetic operations of limits,
lim γ → + ∞ P ( γ ) ( 1 − Softmax k ( γ ) ) = ∑ ℓ = 1 ℓ ≠ k K lim γ → + ∞ P ( γ ) exp ( s ℓ γ − b ℓ ) ∑ j = 1 K exp ( s j γ − b j ) = ∑ ℓ = 1 ℓ ≠ k K 0 = 0. (185) \lim_{\gamma\to+\infty}P(\gamma)(1-\operatorname{Softmax}_{k}(\gamma))=\sum_{\substack{\ell=1\\\ell\ne k}}^{K}\lim_{\gamma\to+\infty}P(\gamma)\frac{\exp(s_{\ell}\gamma-b_{\ell})}{\sum_{j=1}^{K}\exp(s_j\gamma-b_j)}=\sum_{\substack{\ell=1\\\ell\ne k}}^{K}0=0. \tag*{(185)} γ → + ∞ lim P ( γ ) ( 1 − Softmax k ( γ )) = ℓ = 1 ℓ = k ∑ K γ → + ∞ lim P ( γ ) ∑ j = 1 K exp ( s j γ − b j ) exp ( s ℓ γ − b ℓ ) = ℓ = 1 ℓ = k ∑ K 0 = 0. (185)
(2) As P ( γ ) P(\gamma) P ( γ ) is without constant term, lim γ → 0 P ( γ ) = 0 \lim_{\gamma\to0}P(\gamma)=0 lim γ → 0 P ( γ ) = 0 . Therefore,
0 ≤ lim γ → 0 ∣ P ( γ ) Softmax ℓ ( γ ) ∣ ≤ lim γ → 0 ∣ P ( γ ) ∣ lim γ → 0 ∣ Softmax ℓ ( γ ) ∣ ≤ 0 ⋅ 1 = 0 0\leq\lim_{\gamma\to0}\left|P(\gamma)\operatorname{Softmax}_{\ell}(\gamma)\right|\leq\lim_{\gamma\to0}|P(\gamma)|\lim_{\gamma\to0}|\operatorname{Softmax}_{\ell}(\gamma)|\leq0\cdot1=0 0 ≤ γ → 0 lim ∣ P ( γ ) Softmax ℓ ( γ ) ∣ ≤ γ → 0 lim ∣ P ( γ ) ∣ γ → 0 lim ∣ Softmax ℓ ( γ ) ∣ ≤ 0 ⋅ 1 = 0
and
0 ≤ lim γ → 0 ∣ P ( γ ) ( 1 − Softmax ℓ ( γ ) ) ∣ ≤ lim γ → 0 ∣ P ( γ ) ∣ lim γ → 0 ∣ 1 − Softmax ℓ ( γ ) ∣ ≤ 0 ⋅ 1 = 0 , 0\leq\lim_{\gamma\to0}\left|P(\gamma)(1-\operatorname{Softmax}_{\ell}(\gamma))\right|\leq\lim_{\gamma\to0}|P(\gamma)|\lim_{\gamma\to0}|1-\operatorname{Softmax}_{\ell}(\gamma)|\leq0\cdot1=0, 0 ≤ γ → 0 lim ∣ P ( γ ) ( 1 − Softmax ℓ ( γ )) ∣ ≤ γ → 0 lim ∣ P ( γ ) ∣ γ → 0 lim ∣1 − Softmax ℓ ( γ ) ∣ ≤ 0 ⋅ 1 = 0 ,
which lead to the conclusions. □
Theorem C.15 When training the model using the BCE loss f b c e f_{\mathrm{bce}} f bce , as γ \gamma γ approaches zero, the linear decrease in γ \gamma γ leads to a linear decay in the convergence rate of unbiased decision scores. In contrary, once the critical condition II is satisfied, as γ \gamma γ linearly approaches positive infinity, the convergence rate of unbiased decision scores decay exponentially.
Proof In the model training, for any unbiased decision score s i ( k j ) = γ w k ⊤ h i ( j ) s_i^{(kj)}=\gamma w_k^{\top}h_i^{(j)} s i ( k j ) = γ w k ⊤ h i ( j ) , its update step is determined by that of the classifier vector w k w_k w k and the feature h i ( j ) h_i^{(j)} h i ( j ) . For an unconstrained feature model (UFM), { w k } k \{w_k\}_k { w k } k and { h i ( j ) } i , j \{h_i^{(j)}\}_{i,j} { h i ( j ) } i , j are independent variables. Therefore, with an iteration, they are updated as
w ^ k = w k − η ∂ f μ ∂ w k and h ^ i ( j ) = h i ( j ) − η ∂ f μ ∂ h i ( j ) . (186) \hat{w}_k=w_k-\eta\frac{\partial f_{\mu}}{\partial w_k}
\qquad\text{and}\qquad
\hat{h}_i^{(j)}=h_i^{(j)}-\eta\frac{\partial f_{\mu}}{\partial h_i^{(j)}}. \tag*{(186)} w ^ k = w k − η ∂ w k ∂ f μ and h ^ i ( j ) = h i ( j ) − η ∂ h i ( j ) ∂ f μ . (186)
where η \eta η is the learning rate and μ ∈ { c e , b c e } \mu\in\{\mathrm{ce},\mathrm{bce}\} μ ∈ { ce , bce } . Then, the unbiased decision score is updated as
s ^ i ( k j ) = γ w ^ k T h ^ i ( j ) = γ ( w k − η ∂ f μ ∂ w k ) T ( h i ( j ) − η ∂ f μ ∂ h i ( j ) ) (187) \hat{s}_{i}^{(kj)}=\gamma\hat{w}_{k}^{\mathsf{T}}\hat{h}_{i}^{(j)}=\gamma\left(w_{k}-\eta\frac{\partial f_{\mu}}{\partial w_{k}}\right)^{\mathsf{T}}\left(h_{i}^{(j)}-\eta\frac{\partial f_{\mu}}{\partial h_{i}^{(j)}}\right) \tag*{(187)} s ^ i ( k j ) = γ w ^ k T h ^ i ( j ) = γ ( w k − η ∂ w k ∂ f μ ) T ( h i ( j ) − η ∂ h i ( j ) ∂ f μ ) (187)
= γ w k T h i ( j ) − γ η w k T ∂ f μ ∂ h i ( j ) − γ η ( ∂ f μ ∂ w k ) T h i ( j ) + γ η 2 ( ∂ f μ ∂ w k ) T ∂ f μ ∂ h i ( j ) , (188) =\gamma w_{k}^{\mathsf{T}}h_{i}^{(j)}-\gamma\eta w_{k}^{\mathsf{T}}\frac{\partial f_{\mu}}{\partial h_{i}^{(j)}}-\gamma\eta\left(\frac{\partial f_{\mu}}{\partial w_{k}}\right)^{\mathsf{T}}h_{i}^{(j)}+\gamma\eta^{2}\left(\frac{\partial f_{\mu}}{\partial w_{k}}\right)^{\mathsf{T}}\frac{\partial f_{\mu}}{\partial h_{i}^{(j)}}, \tag*{(188)} = γ w k T h i ( j ) − γ η w k T ∂ h i ( j ) ∂ f μ − γ η ( ∂ w k ∂ f μ ) T h i ( j ) + γ η 2 ( ∂ w k ∂ f μ ) T ∂ h i ( j ) ∂ f μ , (188)
and its update step is
Δ ( s i ( k j ) ) = s i ( k j ) − s ^ i ( k j ) = − γ η w k T ∂ f μ ∂ h i ( j ) − γ η ( ∂ f μ ∂ w k ) T h i ( j ) + γ η 2 ( ∂ f μ ∂ w k ) T ∂ f μ ∂ h i ( j ) . (189) \Delta\left(s_{i}^{(kj)}\right)=s_{i}^{(kj)}-\hat{s}_{i}^{(kj)}=-\gamma\eta w_{k}^{\mathsf{T}}\frac{\partial f_{\mu}}{\partial h_{i}^{(j)}}-\gamma\eta\left(\frac{\partial f_{\mu}}{\partial w_{k}}\right)^{\mathsf{T}}h_{i}^{(j)}+\gamma\eta^{2}\left(\frac{\partial f_{\mu}}{\partial w_{k}}\right)^{\mathsf{T}}\frac{\partial f_{\mu}}{\partial h_{i}^{(j)}}. \tag*{(189)} Δ ( s i ( k j ) ) = s i ( k j ) − s ^ i ( k j ) = − γ η w k T ∂ h i ( j ) ∂ f μ − γ η ( ∂ w k ∂ f μ ) T h i ( j ) + γ η 2 ( ∂ w k ∂ f μ ) T ∂ h i ( j ) ∂ f μ . (189)
For the BCE loss,
\frac{\partial f_{\mathrm{bce}}}{\partial h_{i}^{(j)}}=\frac{\gamma}{nK}\left(-\frac{e^{-\gamma w_{j}^{\mathsf{T}}h_{i}^{(j)}+b_{j}}}{1+e^{-\gamma w_{j}^{\mathsf{T}}h_{i}^{(j)}+b_{j}}}w_{j}+\sum_{\substack{\ell=1\\\ell\ne j}}^{K}\frac{e^{\gamma w_{\ell}^{\mathsf{T}}h_{i}^{(j)}-b_{\ell}}{1+e^{\gamma w_{\ell}^{\mathsf{T}}h_{i}^{(j)}-b_{\ell}}}w_{\ell}\right),} \tag*{(190)}
\frac{\partial f_{\mathrm{bce}}}{\partial w_{k}}=\frac{\gamma}{nK}\sum_{i'=1}^{n}\left(-\frac{e^{-\gamma w_{k}^{\mathsf{T}}h_{i'}^{(k)}+b_{k}}}{1+e^{-\gamma w_{k}^{\mathsf{T}}h_{i'}^{(k)}+b_{k}}}h_{i'}^{(k)}+\sum_{\substack{\ell'=1\\\ell'\ne k}}^{K}\frac{e^{\gamma w_{\ell'}^{\mathsf{T}}h_{i'}^{(\ell')}-b_{\ell'}}{1+e^{\gamma w_{\ell'}^{\mathsf{T}}h_{i'}^{(\ell')}-b_{\ell'}}}h_{i'}^{(\ell')}\right),} \tag*{(191)}
and
Δ ( s i ( k j ) ) = γ 2 n K w k T ( e − γ w j T h i ( j ) + b j 1 + e − γ w j T h i ( j ) + b j w j − ∑ ℓ = 1 ℓ ≠ j K e γ w ℓ T h i ( j ) − b ℓ 1 + e γ w ℓ T h i ( j ) − b ℓ w ℓ ) + γ 2 η n K ∑ i ′ = 1 n ( e − γ w k T h i ′ ( k ) + b k 1 + e − γ w k T h i ′ ( k ) + b k h i ′ ( k ) − ∑ ℓ ′ = 1 ℓ ′ ≠ k K e γ w ℓ ′ T h i ′ ( ℓ ′ ) − b ℓ ′ 1 + e γ w ℓ ′ T h i ′ ( ℓ ′ ) − b ℓ ′ h i ′ ( ℓ ′ ) ) T h i ( j ) + γ 3 η 2 n 2 K 2 ∑ i ′ = 1 n ( e − γ w k T h i ′ ( k ) + b k 1 + e − γ w k T h i ′ ( k ) + b k h i ′ ( k ) − ∑ ℓ ′ = 1 ℓ ′ ≠ k K e γ w ℓ ′ T h i ′ ( ℓ ′ ) − b ℓ ′ 1 + e γ w ℓ ′ T h i ′ ( ℓ ′ ) − b ℓ ′ h i ′ ( ℓ ′ ) ) T ( e − γ w j T h i ( j ) + b j 1 + e − γ w j T h i ( j ) + b j w j − ∑ ℓ = 1 ℓ ≠ j K e γ w ℓ T h i ( j ) − b ℓ 1 + e γ w ℓ T h i ( j ) − b ℓ w ℓ ) = γ 2 η n K ( e − γ w j T h i ( j ) + b j 1 + e − γ w j T h i ( j ) + b j w k T w j − ∑ ℓ = 1 ℓ ≠ j K e γ w ℓ T h i ( j ) − b ℓ 1 + e γ w ℓ T h i ( j ) − b ℓ w k T w ℓ ) + γ 2 η n K ∑ i ′ = 1 n ( e − γ w k T h i ′ ( k ) + b k 1 + e − γ w k T h i ′ ( k ) + b k h i ′ ( k ) T h i ( j ) − ∑ ℓ ′ = 1 ℓ ′ ≠ k K e γ w ℓ ′ T h i ′ ( ℓ ′ ) − b ℓ ′ 1 + e γ w ℓ ′ T h i ′ ( ℓ ′ ) − b ℓ ′ h i ′ ( ℓ ′ ) T h i ( j ) ) + γ 3 η 2 n 2 K 2 ( ∑ i ′ = 1 n e − γ w k T h i ′ ( k ) + b k 1 + e − γ w k T h i ′ ( k ) + b k e − γ w j T h i ( j ) + b j 1 + e − γ w j T h i ( j ) + b j w j T h i ′ ( k ) − ∑ i ′ = 1 ℓ ′ = 1 ℓ ′ ≠ k n , K e − γ w k T h i ′ ( k ) + b k 1 + e − γ w k T h i ′ ( k ) + b k e γ w ℓ ′ T h i ′ ( ℓ ′ ) − b ℓ ′ 1 + e γ w ℓ ′ T h i ′ ( ℓ ′ ) − b ℓ ′ w ℓ ′ T h i ′ ( k ) ) (192) \begin{aligned}
\Delta(s_{i}^{(kj)})
={}&\frac{\gamma^{2}}{nK}w_{k}^{\mathsf{T}}\left(\frac{e^{-\gamma w_{j}^{\mathsf{T}}h_{i}^{(j)}+b_{j}}}{1+e^{-\gamma w_{j}^{\mathsf{T}}h_{i}^{(j)}+b_{j}}}w_{j}-\sum_{\substack{\ell=1\\\ell\ne j}}^{K}\frac{e^{\gamma w_{\ell}^{\mathsf{T}}h_{i}^{(j)}-b_{\ell}}}{1+e^{\gamma w_{\ell}^{\mathsf{T}}h_{i}^{(j)}-b_{\ell}}}w_{\ell}\right)\\
&+\frac{\gamma^{2}\eta}{nK}\sum_{i'=1}^{n}\left(\frac{e^{-\gamma w_{k}^{\mathsf{T}}h_{i'}^{(k)}+b_{k}}}{1+e^{-\gamma w_{k}^{\mathsf{T}}h_{i'}^{(k)}+b_{k}}}h_{i'}^{(k)}-\sum_{\substack{\ell'=1\\\ell'\ne k}}^{K}\frac{e^{\gamma w_{\ell'}^{\mathsf{T}}h_{i'}^{(\ell')}-b_{\ell'}}}{1+e^{\gamma w_{\ell'}^{\mathsf{T}}h_{i'}^{(\ell')}-b_{\ell'}}}h_{i'}^{(\ell')}\right)^{\mathsf{T}}h_{i}^{(j)}\\
&+\frac{\gamma^{3}\eta^{2}}{n^{2}K^{2}}\sum_{i'=1}^{n}\left(\frac{e^{-\gamma w_{k}^{\mathsf{T}}h_{i'}^{(k)}+b_{k}}}{1+e^{-\gamma w_{k}^{\mathsf{T}}h_{i'}^{(k)}+b_{k}}}h_{i'}^{(k)}-\sum_{\substack{\ell'=1\\\ell'\ne k}}^{K}\frac{e^{\gamma w_{\ell'}^{\mathsf{T}}h_{i'}^{(\ell')}-b_{\ell'}}}{1+e^{\gamma w_{\ell'}^{\mathsf{T}}h_{i'}^{(\ell')}-b_{\ell'}}}h_{i'}^{(\ell')}\right)^{\mathsf{T}}\\
&\qquad\left(\frac{e^{-\gamma w_{j}^{\mathsf{T}}h_{i}^{(j)}+b_{j}}}{1+e^{-\gamma w_{j}^{\mathsf{T}}h_{i}^{(j)}+b_{j}}}w_{j}-\sum_{\substack{\ell=1\\\ell\ne j}}^{K}\frac{e^{\gamma w_{\ell}^{\mathsf{T}}h_{i}^{(j)}-b_{\ell}}}{1+e^{\gamma w_{\ell}^{\mathsf{T}}h_{i}^{(j)}-b_{\ell}}}w_{\ell}\right)\\
={}&\frac{\gamma^{2}\eta}{nK}\left(\frac{e^{-\gamma w_{j}^{\mathsf{T}}h_{i}^{(j)}+b_{j}}}{1+e^{-\gamma w_{j}^{\mathsf{T}}h_{i}^{(j)}+b_{j}}}w_{k}^{\mathsf{T}}w_{j}-\sum_{\substack{\ell=1\\\ell\ne j}}^{K}\frac{e^{\gamma w_{\ell}^{\mathsf{T}}h_{i}^{(j)}-b_{\ell}}}{1+e^{\gamma w_{\ell}^{\mathsf{T}}h_{i}^{(j)}-b_{\ell}}}w_{k}^{\mathsf{T}}w_{\ell}\right)\\
&+\frac{\gamma^{2}\eta}{nK}\sum_{i'=1}^{n}\left(\frac{e^{-\gamma w_{k}^{\mathsf{T}}h_{i'}^{(k)}+b_{k}}}{1+e^{-\gamma w_{k}^{\mathsf{T}}h_{i'}^{(k)}+b_{k}}}h_{i'}^{(k)\mathsf{T}}h_{i}^{(j)}-\sum_{\substack{\ell'=1\\\ell'\ne k}}^{K}\frac{e^{\gamma w_{\ell'}^{\mathsf{T}}h_{i'}^{(\ell')}-b_{\ell'}}}{1+e^{\gamma w_{\ell'}^{\mathsf{T}}h_{i'}^{(\ell')}-b_{\ell'}}}h_{i'}^{(\ell')\mathsf{T}}h_{i}^{(j)}\right)\\
&+\frac{\gamma^{3}\eta^{2}}{n^{2}K^{2}}\left(\sum_{i'=1}^{n}\frac{e^{-\gamma w_{k}^{\mathsf{T}}h_{i'}^{(k)}+b_{k}}}{1+e^{-\gamma w_{k}^{\mathsf{T}}h_{i'}^{(k)}+b_{k}}}\frac{e^{-\gamma w_{j}^{\mathsf{T}}h_{i}^{(j)}+b_{j}}}{1+e^{-\gamma w_{j}^{\mathsf{T}}h_{i}^{(j)}+b_{j}}}w_{j}^{\mathsf{T}}h_{i'}^{(k)}
-\sum_{\substack{i'=1\\\ell'=1\\\ell'\ne k}}^{n,K}\frac{e^{-\gamma w_{k}^{\mathsf{T}}h_{i'}^{(k)}+b_{k}}}{1+e^{-\gamma w_{k}^{\mathsf{T}}h_{i'}^{(k)}+b_{k}}}\frac{e^{\gamma w_{\ell'}^{\mathsf{T}}h_{i'}^{(\ell')}-b_{\ell'}}}{1+e^{\gamma w_{\ell'}^{\mathsf{T}}h_{i'}^{(\ell')}-b_{\ell'}}}w_{\ell'}^{\mathsf{T}}h_{i'}^{(k)}\right) \tag*{(192)}
\end{aligned} Δ ( s i ( k j ) ) = = n K γ 2 w k T 1 + e − γ w j T h i ( j ) + b j e − γ w j T h i ( j ) + b j w j − ℓ = 1 ℓ = j ∑ K 1 + e γ w ℓ T h i ( j ) − b ℓ e γ w ℓ T h i ( j ) − b ℓ w ℓ + n K γ 2 η i ′ = 1 ∑ n 1 + e − γ w k T h i ′ ( k ) + b k e − γ w k T h i ′ ( k ) + b k h i ′ ( k ) − ℓ ′ = 1 ℓ ′ = k ∑ K 1 + e γ w ℓ ′ T h i ′ ( ℓ ′ ) − b ℓ ′ e γ w ℓ ′ T h i ′ ( ℓ ′ ) − b ℓ ′ h i ′ ( ℓ ′ ) T h i ( j ) + n 2 K 2 γ 3 η 2 i ′ = 1 ∑ n 1 + e − γ w k T h i ′ ( k ) + b k e − γ w k T h i ′ ( k ) + b k h i ′ ( k ) − ℓ ′ = 1 ℓ ′ = k ∑ K 1 + e γ w ℓ ′ T h i ′ ( ℓ ′ ) − b ℓ ′ e γ w ℓ ′ T h i ′ ( ℓ ′ ) − b ℓ ′ h i ′ ( ℓ ′ ) T 1 + e − γ w j T h i ( j ) + b j e − γ w j T h i ( j ) + b j w j − ℓ = 1 ℓ = j ∑ K 1 + e γ w ℓ T h i ( j ) − b ℓ e γ w ℓ T h i ( j ) − b ℓ w ℓ n K γ 2 η 1 + e − γ w j T h i ( j ) + b j e − γ w j T h i ( j ) + b j w k T w j − ℓ = 1 ℓ = j ∑ K 1 + e γ w ℓ T h i ( j ) − b ℓ e γ w ℓ T h i ( j ) − b ℓ w k T w ℓ + n K γ 2 η i ′ = 1 ∑ n 1 + e − γ w k T h i ′ ( k ) + b k e − γ w k T h i ′ ( k ) + b k h i ′ ( k ) T h i ( j ) − ℓ ′ = 1 ℓ ′ = k ∑ K 1 + e γ w ℓ ′ T h i ′ ( ℓ ′ ) − b ℓ ′ e γ w ℓ ′ T h i ′ ( ℓ ′ ) − b ℓ ′ h i ′ ( ℓ ′ ) T h i ( j ) + n 2 K 2 γ 3 η 2 i ′ = 1 ∑ n 1 + e − γ w k T h i ′ ( k ) + b k e − γ w k T h i ′ ( k ) + b k 1 + e − γ w j T h i ( j ) + b j e − γ w j T h i ( j ) + b j w j T h i ′ ( k ) − i ′ = 1 ℓ ′ = 1 ℓ ′ = k ∑ n , K 1 + e − γ w k T h i ′ ( k ) + b k e − γ w k T h i ′ ( k ) + b k 1 + e γ w ℓ ′ T h i ′ ( ℓ ′ ) − b ℓ ′ e γ w ℓ ′ T h i ′ ( ℓ ′ ) − b ℓ ′ w ℓ ′ T h i ′ ( k ) (192)
− ∑ i ′ = 1 n ∑ ℓ ′ = 1 ℓ ′ ≠ k K e γ w k T h i ′ ( ℓ ′ ) − b k 1 + e γ w k T h i ′ ( ℓ ′ ) − b k e − γ w j T h i ′ ( j ) + b j 1 + e − γ w j T h i ′ ( j ) + b j w j T h i ′ ( ℓ ′ ) + ∑ i ′ = 1 n ∑ ℓ ′ = 1 ℓ ′ ≠ k K ∑ ℓ = 1 ℓ ≠ k K ( e γ w k T h i ′ ( ℓ ′ ) − b k 1 + e γ w k T h i ′ ( ℓ ′ ) − b k e γ w ℓ T h i ′ ( j ) − b ℓ 1 + e γ w ℓ T h i ′ ( j ) − b ℓ w ℓ T h i ′ ( ℓ ′ ) ) (193) -\sum_{i'=1}^{n}\sum_{\substack{\ell'=1\\ \ell'\ne k}}^{K}\frac{e^{\gamma\mathbf{w}_{k}^{\mathsf{T}}\mathbf{h}_{i'}^{(\ell')}-b_k}}{1+e^{\gamma\mathbf{w}_{k}^{\mathsf{T}}\mathbf{h}_{i'}^{(\ell')}-b_k}}\frac{e^{-\gamma\mathbf{w}_{j}^{\mathsf{T}}\mathbf{h}_{i'}^{(j)}+b_j}}{1+e^{-\gamma\mathbf{w}_{j}^{\mathsf{T}}\mathbf{h}_{i'}^{(j)}+b_j}}\mathbf{w}_{j}^{\mathsf{T}}\mathbf{h}_{i'}^{(\ell')}
+\sum_{i'=1}^{n}\sum_{\substack{\ell'=1\\ \ell'\ne k}}^{K}\sum_{\substack{\ell=1\\ \ell\ne k}}^{K}\left(\frac{e^{\gamma\mathbf{w}_{k}^{\mathsf{T}}\mathbf{h}_{i'}^{(\ell')}-b_k}}{1+e^{\gamma\mathbf{w}_{k}^{\mathsf{T}}\mathbf{h}_{i'}^{(\ell')}-b_k}}\frac{e^{\gamma\mathbf{w}_{\ell}^{\mathsf{T}}\mathbf{h}_{i'}^{(j)}-b_\ell}}{1+e^{\gamma\mathbf{w}_{\ell}^{\mathsf{T}}\mathbf{h}_{i'}^{(j)}-b_\ell}}\mathbf{w}_{\ell}^{\mathsf{T}}\mathbf{h}_{i'}^{(\ell')}\right) \tag*{(193)} − i ′ = 1 ∑ n ℓ ′ = 1 ℓ ′ = k ∑ K 1 + e γ w k T h i ′ ( ℓ ′ ) − b k e γ w k T h i ′ ( ℓ ′ ) − b k 1 + e − γ w j T h i ′ ( j ) + b j e − γ w j T h i ′ ( j ) + b j w j T h i ′ ( ℓ ′ ) + i ′ = 1 ∑ n ℓ ′ = 1 ℓ ′ = k ∑ K ℓ = 1 ℓ = k ∑ K 1 + e γ w k T h i ′ ( ℓ ′ ) − b k e γ w k T h i ′ ( ℓ ′ ) − b k 1 + e γ w ℓ T h i ′ ( j ) − b ℓ e γ w ℓ T h i ′ ( j ) − b ℓ w ℓ T h i ′ ( ℓ ′ ) (193)
Then,
0 ≤ ∣ Δ ( s i ( k j ) ) ∣ ≤ γ 2 η n K ( e − γ w j T h i ( j ) + b j 1 + e − γ w j T h i ( j ) + b j + ∑ ℓ = 1 ℓ ≠ j K e γ w ℓ T h i ( j ) − b ℓ 1 + e γ w ℓ T h i ( j ) − b ℓ ) + γ 2 η n K ∑ i ′ = 1 n ( e − γ w k T h i ′ ( k ) + b k 1 + e − γ w k T h i ′ ( k ) + b k + ∑ ℓ ′ = 1 ℓ ′ ≠ k K e γ w k T h i ′ ( ℓ ′ ) − b k 1 + e γ w k T h i ′ ( ℓ ′ ) − b k ) + γ 3 η 2 n 2 K 2 ( ∑ i ′ = 1 n e − γ w k T h i ′ ( k ) + b k 1 + e − γ w k T h i ′ ( k ) + b k e − γ w j T h i ′ ( j ) + b j 1 + e − γ w j T h i ′ ( j ) + b j + ∑ i ′ = 1 n ∑ ℓ ′ = 1 ℓ ′ ≠ k K e − γ w k T h i ′ ( ℓ ′ ) + b k 1 + e − γ w k T h i ′ ( ℓ ′ ) + b k e γ w ℓ T h i ′ ( j ) − b ℓ 1 + e γ w ℓ T h i ′ ( j ) − b ℓ + ∑ i ′ = 1 n ∑ ℓ ′ = 1 ℓ ′ ≠ k K e γ w k T h i ′ ( ℓ ′ ) − b k 1 + e γ w k T h i ′ ( ℓ ′ ) − b k e − γ w j T h i ′ ( j ) + b j 1 + e − γ w j T h i ′ ( j ) + b j + ∑ i ′ = 1 n ∑ ℓ ′ = 1 ℓ ′ ≠ k K ∑ ℓ = 1 ℓ ≠ k K e γ w k T h i ′ ( ℓ ′ ) − b k 1 + e γ w k T h i ′ ( ℓ ′ ) − b k e γ w ℓ T h i ′ ( j ) − b ℓ 1 + e γ w ℓ T h i ′ ( j ) − b ℓ ) . (194) \begin{aligned}
0\leq\left|\Delta(s_i^{(kj)})\right| \leq{}& \frac{\gamma^2\eta}{nK}\left(\frac{e^{-\gamma\mathbf{w}_{j}^{\mathsf{T}}\mathbf{h}_{i}^{(j)}+b_j}}{1+e^{-\gamma\mathbf{w}_{j}^{\mathsf{T}}\mathbf{h}_{i}^{(j)}+b_j}}+\sum_{\substack{\ell=1\\ \ell\ne j}}^{K}\frac{e^{\gamma\mathbf{w}_{\ell}^{\mathsf{T}}\mathbf{h}_{i}^{(j)}-b_\ell}}{1+e^{\gamma\mathbf{w}_{\ell}^{\mathsf{T}}\mathbf{h}_{i}^{(j)}-b_\ell}}\right)\\
&+\frac{\gamma^2\eta}{nK}\sum_{i'=1}^{n}\left(\frac{e^{-\gamma\mathbf{w}_{k}^{\mathsf{T}}\mathbf{h}_{i'}^{(k)}+b_k}}{1+e^{-\gamma\mathbf{w}_{k}^{\mathsf{T}}\mathbf{h}_{i'}^{(k)}+b_k}}+\sum_{\substack{\ell'=1\\ \ell'\ne k}}^{K}\frac{e^{\gamma\mathbf{w}_{k}^{\mathsf{T}}\mathbf{h}_{i'}^{(\ell')}-b_k}}{1+e^{\gamma\mathbf{w}_{k}^{\mathsf{T}}\mathbf{h}_{i'}^{(\ell')}-b_k}}\right)\\
&+\frac{\gamma^3\eta^2}{n^2K^2}\left(\sum_{i'=1}^{n}\frac{e^{-\gamma\mathbf{w}_{k}^{\mathsf{T}}\mathbf{h}_{i'}^{(k)}+b_k}}{1+e^{-\gamma\mathbf{w}_{k}^{\mathsf{T}}\mathbf{h}_{i'}^{(k)}+b_k}}\frac{e^{-\gamma\mathbf{w}_{j}^{\mathsf{T}}\mathbf{h}_{i'}^{(j)}+b_j}}{1+e^{-\gamma\mathbf{w}_{j}^{\mathsf{T}}\mathbf{h}_{i'}^{(j)}+b_j}}\right.\\
&\left.+\sum_{i'=1}^{n}\sum_{\substack{\ell'=1\\ \ell'\ne k}}^{K}\frac{e^{-\gamma\mathbf{w}_{k}^{\mathsf{T}}\mathbf{h}_{i'}^{(\ell')}+b_k}}{1+e^{-\gamma\mathbf{w}_{k}^{\mathsf{T}}\mathbf{h}_{i'}^{(\ell')}+b_k}}\frac{e^{\gamma\mathbf{w}_{\ell}^{\mathsf{T}}\mathbf{h}_{i'}^{(j)}-b_\ell}}{1+e^{\gamma\mathbf{w}_{\ell}^{\mathsf{T}}\mathbf{h}_{i'}^{(j)}-b_\ell}}\right.\\
&\left.+\sum_{i'=1}^{n}\sum_{\substack{\ell'=1\\ \ell'\ne k}}^{K}\frac{e^{\gamma\mathbf{w}_{k}^{\mathsf{T}}\mathbf{h}_{i'}^{(\ell')}-b_k}}{1+e^{\gamma\mathbf{w}_{k}^{\mathsf{T}}\mathbf{h}_{i'}^{(\ell')}-b_k}}\frac{e^{-\gamma\mathbf{w}_{j}^{\mathsf{T}}\mathbf{h}_{i'}^{(j)}+b_j}}{1+e^{-\gamma\mathbf{w}_{j}^{\mathsf{T}}\mathbf{h}_{i'}^{(j)}+b_j}}\right.\\
&\left.+\sum_{i'=1}^{n}\sum_{\substack{\ell'=1\\ \ell'\ne k}}^{K}\sum_{\substack{\ell=1\\ \ell\ne k}}^{K}\frac{e^{\gamma\mathbf{w}_{k}^{\mathsf{T}}\mathbf{h}_{i'}^{(\ell')}-b_k}}{1+e^{\gamma\mathbf{w}_{k}^{\mathsf{T}}\mathbf{h}_{i'}^{(\ell')}-b_k}}\frac{e^{\gamma\mathbf{w}_{\ell}^{\mathsf{T}}\mathbf{h}_{i'}^{(j)}-b_\ell}}{1+e^{\gamma\mathbf{w}_{\ell}^{\mathsf{T}}\mathbf{h}_{i'}^{(j)}-b_\ell}}\right). \tag*{(194)}
\end{aligned} 0 ≤ Δ ( s i ( k j ) ) ≤ n K γ 2 η 1 + e − γ w j T h i ( j ) + b j e − γ w j T h i ( j ) + b j + ℓ = 1 ℓ = j ∑ K 1 + e γ w ℓ T h i ( j ) − b ℓ e γ w ℓ T h i ( j ) − b ℓ + n K γ 2 η i ′ = 1 ∑ n 1 + e − γ w k T h i ′ ( k ) + b k e − γ w k T h i ′ ( k ) + b k + ℓ ′ = 1 ℓ ′ = k ∑ K 1 + e γ w k T h i ′ ( ℓ ′ ) − b k e γ w k T h i ′ ( ℓ ′ ) − b k + n 2 K 2 γ 3 η 2 ( i ′ = 1 ∑ n 1 + e − γ w k T h i ′ ( k ) + b k e − γ w k T h i ′ ( k ) + b k 1 + e − γ w j T h i ′ ( j ) + b j e − γ w j T h i ′ ( j ) + b j + i ′ = 1 ∑ n ℓ ′ = 1 ℓ ′ = k ∑ K 1 + e − γ w k T h i ′ ( ℓ ′ ) + b k e − γ w k T h i ′ ( ℓ ′ ) + b k 1 + e γ w ℓ T h i ′ ( j ) − b ℓ e γ w ℓ T h i ′ ( j ) − b ℓ + i ′ = 1 ∑ n ℓ ′ = 1 ℓ ′ = k ∑ K 1 + e γ w k T h i ′ ( ℓ ′ ) − b k e γ w k T h i ′ ( ℓ ′ ) − b k 1 + e − γ w j T h i ′ ( j ) + b j e − γ w j T h i ′ ( j ) + b j + i ′ = 1 ∑ n ℓ ′ = 1 ℓ ′ = k ∑ K ℓ = 1 ℓ = k ∑ K 1 + e γ w k T h i ′ ( ℓ ′ ) − b k e γ w k T h i ′ ( ℓ ′ ) − b k 1 + e γ w ℓ T h i ′ ( j ) − b ℓ e γ w ℓ T h i ′ ( j ) − b ℓ . (194)
Each term in the right side of Eq. (C.158) is product of a polynomial without constant term and Sigmoid functions in terms of γ \gamma γ . When the critical condition II holds, i.e.,
min k = 1 K ⋃ i = 1 n { w k T h i ( k ) } > 0 > max k = 1 K ⋃ j = 1 j ≠ k K ⋃ i = 1 n { w k T h i ( j ) } , (195) \min_{k=1}^{K}\bigcup_{i=1}^{n}\left\{\mathbf{w}_{k}^{\mathsf{T}}\mathbf{h}_{i}^{(k)}\right\}>0>\max_{k=1}^{K}\bigcup_{\substack{j=1\\j\ne k}}^{K}\bigcup_{i=1}^{n}\left\{\mathbf{w}_{k}^{\mathsf{T}}\mathbf{h}_{i}^{(j)}\right\}, \tag*{(195)} k = 1 min K i = 1 ⋃ n { w k T h i ( k ) } > 0 > k = 1 max K j = 1 j = k ⋃ K i = 1 ⋃ n { w k T h i ( j ) } , (195)
every term in Eq. (C.158) satisfies the requirements of Lemma C.13(1); then, as γ \gamma γ increases, Δ ( s i ( k j ) ) \Delta(s_i^{(kj)}) Δ ( s i ( k j ) ) decays exponentially and converges to 0.
When γ \gamma γ approaches zero, each term in the right side of Eq. (C.158) satisfies the requirements of Lemma C.13(2). Then, as γ \gamma γ decreases linearly toward 0, every term in the right side of Eq. (C.158) decays to 0 at a quadratic or cubic rate; consequently, Δ ( s i ( k j ) ) \Delta(s_i^{(kj)}) Δ ( s i ( k j ) ) decays quadratically to 0. Consider that the optimal values of unbiased decision scores are γ \gamma γ or − γ K − 1 -\frac{\gamma}{K-1} − K − 1 γ , which are linearly decay as γ \gamma γ decreases. Therefore, the convergence rate of the unbiased decision scores decay linearly when γ \gamma γ linearly decreases to zero. □
Theorem C.16 When training the model using the CE loss f c e f_{ce} f ce , as γ \gamma γ approaches zero, the linear decrease in γ \gamma γ leads to a linear decay in the convergence rate of unbiased decision scores. Once the critical condition I is satisfied, as γ \gamma γ linearly approaches positive infinity, the convergence rate of unbiased decision scores decay exponentially.
Proof For the CE loss,
∂ f c e ∂ h i ( j ) = γ n K [ ( e γ w j T h i ( j ) − b j ∑ m = 1 K e γ w m T h i ( j ) − b m − 1 ) w j + ∑ ℓ ≠ j e γ w ℓ T h i ( j ) − b ℓ ∑ m = 1 K e γ w m T h i ( j ) − b m w ℓ ] . (196) \frac{\partial f_{\mathrm{ce}}}{\partial h_i^{(j)}} = \frac{\gamma}{nK}\left[\left(\frac{e^{\gamma w_j^\mathsf{T}h_i^{(j)}-b_j}}{\sum_{m=1}^{K}e^{\gamma w_m^\mathsf{T}h_i^{(j)}-b_m}}-1\right)w_j+\sum_{\ell\ne j}\frac{e^{\gamma w_\ell^\mathsf{T}h_i^{(j)}-b_\ell}}{\sum_{m=1}^{K}e^{\gamma w_m^\mathsf{T}h_i^{(j)}-b_m}}w_\ell\right]. \tag*{(196)} ∂ h i ( j ) ∂ f ce = n K γ ( ∑ m = 1 K e γ w m T h i ( j ) − b m e γ w j T h i ( j ) − b j − 1 ) w j + ℓ = j ∑ ∑ m = 1 K e γ w m T h i ( j ) − b m e γ w ℓ T h i ( j ) − b ℓ w ℓ . (196)
∂ f c e ∂ w k = γ n K ∑ i ′ = 1 n [ ( e γ w k T h i ′ ( k ) − b k ∑ m = 1 K e γ w m T h i ′ ( k ) − b m − 1 ) h i ′ ( k ) + ∑ ℓ ′ ≠ k e γ w k T h i ′ ( ℓ ′ ) − b k ∑ m = 1 K e γ w m T h i ′ ( ℓ ′ ) − b m h i ′ ( ℓ ′ ) ] . (197) \frac{\partial f_{\mathrm{ce}}}{\partial w_k}=\frac{\gamma}{nK}\sum_{i'=1}^{n}\left[\left(\frac{e^{\gamma w_k^\mathsf{T}h_{i'}^{(k)}-b_k}}{\sum_{m=1}^{K}e^{\gamma w_m^\mathsf{T}h_{i'}^{(k)}-b_m}}-1\right)h_{i'}^{(k)}+\sum_{\ell'\ne k}\frac{e^{\gamma w_k^\mathsf{T}h_{i'}^{(\ell')}-b_k}}{\sum_{m=1}^{K}e^{\gamma w_m^\mathsf{T}h_{i'}^{(\ell')}-b_m}}h_{i'}^{(\ell')}\right]. \tag*{(197)} ∂ w k ∂ f ce = n K γ i ′ = 1 ∑ n ( ∑ m = 1 K e γ w m T h i ′ ( k ) − b m e γ w k T h i ′ ( k ) − b k − 1 ) h i ′ ( k ) + ℓ ′ = k ∑ ∑ m = 1 K e γ w m T h i ′ ( ℓ ′ ) − b m e γ w k T h i ′ ( ℓ ′ ) − b k h i ′ ( ℓ ′ ) . (197)
The critical condition I is
w k h i ( k ) > max { w j h i ( k ) : j = 1 , 2 , ⋯ , K , and j ≠ k } , ∀ k , i . (198) w_k h_i^{(k)}>\max\{w_j h_i^{(k)}:j=1,2,\cdots,K,\text{ and }j\ne k\},\quad\forall k,i. \tag*{(198)} w k h i ( k ) > max { w j h i ( k ) : j = 1 , 2 , ⋯ , K , and j = k } , ∀ k , i . (198)
Similar to the proof of Theorem C.15, one can easily get the conclusions with help of Lemma C.14. □
Acknowledgements
The authors acknowledge the support provided by the Intelligent Computing Center of Shenzhen University.
Funding
This work was supported by the National Natural Science Foundation of China (Grant Nos. 62576217 and 62576216), Guangdong Provincial Key Laboratory (Grant No. 2023B1212060076), and the Natural Science Foundation of Ningxia Province (Grant No. 2025AAC020002).
Data availability
The datasets used in this study are publicly available. CIFAR-10 and CIFAR-100 can be obtained from https://cave.cs.toronto.edu/kriz/cifar-10-python.tar.gz and https://cave.cs.toronto.edu/kriz/cifar-100-python.tar.gz , respectively, MNIST from https://storage.googleapis.com/cvdf-datasets/mnist/ , SVHN from http://ufldl.stanford.edu/housenumbers/ , and Tiny ImageNet from http://cs231n.stanford.edu/tiny-imagenet-200.zip . The corresponding dataset references are Krizhevsky [26 ] , Lecun et al. [27 ] , Netzer et al. [40 ] , and Wu et al. (2017), respectively.