Introduction
Neural collapse (NC) [21 , 9 ] refers to the elegant geometric structure formed by the classifier vectors and sample feature vectors at the terminal phase of training a classification model. Under NC, feature vectors from the same class converge to the class center and align with the corresponding classifier vector, while the class centers are maximally separated and arranged as an equiangular tight frame (ETF). The NC geometry theoretically corresponds to maximizing within-class compactness and between-class separability of the learned features. On balanced datasets, extensive empirical and in-depth theoretical researches have shown that NC occurs when cross-entropy (CE)
©2026 Qiufu Li, Huibin Xiao, Linlin Shen, and Yongdong Huang.
License: CC-BY 4.0, see https://creativecommons.org/licenses/by/4.0/. loss [19 ] or binary cross-entropy (BCE) loss [16 ] reach their minimum values in training classification models.
In real-world scenarios, sample distributions are typically class-imbalanced. When training classification models on imbalanced datasets, the training process and the final models performance are easily dominated by majority classes containing large numbers of training samples, making it difficult for the final models to learn well discriminative features and classifier vectors for minority classes containing few training samples [1 , 10 ] . NC provides guidance for empirical classification studies on imbalanced datasets. To enhance the feature properties and classification accuracy for minority classes of imbalanced datasets, in studies by Yang et al. [29 ] ; Kasarla et al. [11 ] ; Liu et al. [17 ] , the classifier vectors were fixed before the model training so that they form an ETF with balanced between-class separability, and a learnable rotation matrix was employed in the work of Peifeng et al. [22 ] during the model training to rotate the ETF classifier and align it with the final sample features. However, the theoretical studies shows that the sample features and classifier vectors of unconstrained feature models (UFM) [6 ] , trained on imbalanced datasets, cannot attain the standard NC and therefore cannot reach the ETF with maximal and balanced within-class compactness and between-class separability.
On imbalanced datasets that contain only two distinct class scales, when the imbalance factor exceeding a finite threshold, the CE losses’ minimizers lead to minority collapse, which means that the classifier vectors of minority classes will collapse into a single one [6 ] ; the sharp value of the imbalance ratio threshold was given by Hong and Ling [8 ] . For contrastive learning on imbalanced datasets, it also results in similar minority collapse [30 ] . On general imbalanced datasets, when CE or MSE loss of classification models is minimized, the features from the same class still collapse to their class center, while the norms and directions of the class-center vectors and classifier vectors for different classes depend on the number of samples in each class, exhibiting uneven between-class separability and resulting in asymmetric geometric structures, such as simplex-encoded-labels interpolation (SELI) geometry [24 ] , ( δ , R ) (\delta,R) ( δ , R ) -SELI geometry [2 ] , and general orthogonal frame (GOF) [4 ] , et al.
Some useful techniques can balance the between-class separability of features learned on imbalanced datasets. If a ReLU activation was integrated into the final layer of the model, then when the supervised contrastive loss [13 ] or CE loss [5 ] attain its minima, feature vectors from different classes become orthogonal to each other. Two NC regularization terms were proposed by Liu et al. [17 ] to equalize feature properties, and empirical results show that integrating them into the CE or MSE loss enables obtaining sample features whose distribution exhibits a symmetric structure on imbalanced datasets. A generalized classification rule was proposed for classification on imbalanced datasets, which assigns multiple classifier vectors to different classes, and with this rule, the sample features and classifier vectors form NC to multiple centers (NCMC) when the MSE loss reaches its minimum [28 ] .
Most existing NC studies are based on the globally averaged losses, which have shown that the class imbalance distorts the standard NC at the extrema of the losses. More recently, in the work of Wang et al. [25 ] , the authors solved for the optimal reweighted loss with Tikhonov regularizer on imbalanced datasets and provided a closed-form solution for the optimal weighting factors that form the ideal NC. Compatible with their conclusion, in this paper we directly demonstrate that by re-balancing the losses using the number of samples in each class and optimizing the resulted class-wise averaged losses, the standard NC can be achieved on imbalanced datasets, and even in open-set scenarios.
Preliminaries
Suppose D = ⋃ k = 1 K D k \mathcal{D} = \bigcup_{k=1}^{K} \mathcal{D}_k D = ⋃ k = 1 K D k be a dataset captured from K K K classes, where its subset D k \mathcal{D}_k D k contains n k = ∣ D k ∣ n_k = \lvert\mathcal{D}_k\rvert n k = ∣ D k ∣ samples from class k k k , for ∀ k ∈ [ K ] = { 1 , 2 , ⋯ , K } \forall k \in[K] = \{1,2,\cdots,K\} ∀ k ∈ [ K ] = { 1 , 2 , ⋯ , K } . For any sample X ∈ D \mathbf{X} \in\mathcal{D} X ∈ D , a model M \mathcal{M} M extracts its feature vector x = M ( X ) ∈ R d \mathbf{x} = \mathcal{M}(\mathbf{X}) \in\mathbb{R}^{d} x = M ( X ) ∈ R d ; then F = ⋃ k = 1 K F k = ⋃ k = 1 K { x = M ( X ) : X ∈ D k } \mathcal{F} = \bigcup_{k=1}^{K} \mathcal{F}_k = \bigcup_{k=1}^{K}\{\mathbf{x} = \mathcal{M}(\mathbf{X}) : \mathbf{X} \in\mathcal{D}_k\} F = ⋃ k = 1 K F k = ⋃ k = 1 K { x = M ( X ) : X ∈ D k } denotes the feature set. For convenience, the feature vector is normalized into unit ball with ∥ x ∥ = 1 \lVert\mathbf{x}\rVert= 1 ∥ x ∥ = 1 .
Classification
To classify a sample X \mathbf{X} X , a linear classifier with a weight matrix W = [ w 1 , ⋯ , w K ] T ∈ R K × d \mathbf{W} = [\mathbf{w}_1,\cdots,\mathbf{w}_K]^{\mathsf{T}} \in\mathbb{R}^{K \times d} W = [ w 1 , ⋯ , w K ] T ∈ R K × d and a bias vector b = [ b 1 , ⋯ , b K ] T ∈ R K \mathbf{b} = [b_1,\cdots,b_K]^{\mathsf{T}} \in\mathbb{R}^{K} b = [ b 1 , ⋯ , b K ] T ∈ R K , is first applied on its feature vector x = M ( X ) \mathbf{x} = \mathcal{M}(\mathbf{X}) x = M ( X ) and transforms it into a decision vector z = γ W x − b = [ γ ⟨ w k , x ⟩ − b k ] k = 1 K \mathbf{z} = \gamma\mathbf{W}\mathbf{x} - \mathbf{b} = [\gamma\langle\mathbf{w}_k,\mathbf{x}\rangle- b_k]_{k=1}^{K} z = γ Wx − b = [ γ ⟨ w k , x ⟩ − b k ] k = 1 K , where γ \gamma γ is a scale factor, ∥ w k ∥ = 1 \lVert\mathbf{w}_k\rVert= 1 ∥ w k ∥ = 1 for ∀ k ∈ [ K ] \forall k \in[K] ∀ k ∈ [ K ] , and ⟨ ⋅ , ⋅ ⟩ \langle\cdot,\cdot\rangle ⟨ ⋅ , ⋅ ⟩ is operation of inner product for any two vectors. Then, X \mathbf{X} X is classified into class k ^ = arg max j { γ ⟨ w j , x ⟩ − b j } j = 1 K \hat{k} = \mathop{\arg\max}_{j}\{\gamma\langle\mathbf{w}_j,\mathbf{x}\rangle- b_j\}_{j=1}^{K} k ^ = arg max j { γ ⟨ w j , x ⟩ − b j } j = 1 K , where w k ∈ R d \mathbf{w}_k \in\mathbb{R}^{d} w k ∈ R d is classifier vector for class k k k . To correctly classify a sample X ( k ) ∈ D k \mathbf{X}^{(k)} \in\mathcal{D}_k X ( k ) ∈ D k from class k k k , it requires
γ w k T x ( k ) − b k ≥ max { γ w j T x ( k ) − b j : j ∈ [ K ] , j ≠ k } , (1) \gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)} - b_k \geq\max\{\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)} - b_j : j \in[K], j \ne k\}, \tag*{(1)} γ w k T x ( k ) − b k ≥ max { γ w j T x ( k ) − b j : j ∈ [ K ] , j = k } , (1)
where x ( k ) = M ( X ( k ) ) \mathbf{x}^{(k)} = \mathcal{M}(\mathbf{X}^{(k)}) x ( k ) = M ( X ( k ) ) is feature vector of the sample X ( k ) \mathbf{X}^{(k)} X ( k ) .
In training the classification model, using Softmax, the decision vector z ( k ) = [ γ ⟨ w k , x ( k ) ⟩ − b k ] k = 1 K \mathbf{z}^{(k)} = [\gamma\langle\mathbf{w}_k,\mathbf{x}^{(k)}\rangle- b_k]_{k=1}^{K} z ( k ) = [ γ ⟨ w k , x ( k ) ⟩ − b k ] k = 1 K of X ( k ) ∈ D k \mathbf{X}^{(k)} \in\mathcal{D}_k X ( k ) ∈ D k is transformed into probabilities that the sample belong to each class, and then the probabilities are applied to calculate a loss using cross-entropy (CE),
L c e ( X ( k ) ) = − log ( exp ( γ ⟨ w k , x ( k ) ⟩ − b k ) ∑ j = 1 K exp ( γ ⟨ w j , x ( k ) ⟩ − b j ) ) , (2) L_{\mathrm{ce}}(\mathbf{X}^{(k)}) = -\log\left(\frac{\exp\left(\gamma\langle\mathbf{w}_k,\mathbf{x}^{(k)}\rangle-b_k\right)}{\sum_{j=1}^{K}\exp\left(\gamma\langle\mathbf{w}_j,\mathbf{x}^{(k)}\rangle-b_j\right)}\right), \tag*{(2)} L ce ( X ( k ) ) = − log ( ∑ j = 1 K exp ( γ ⟨ w j , x ( k ) ⟩ − b j ) exp ( γ ⟨ w k , x ( k ) ⟩ − b k ) ) , (2)
which has been widely used in deep learning.
Feature learning
In deep learning, Softmax-based contrastive losses, such as SupCon Khosla et al. [12 ] and InfoNCE He et al. [7 ] , are commonly used to train feature extraction models. However, for feature learning, it expects good within-class compactness and between-class separability among the sample feature vectors. Intuitively, for feature vectors of class k k k , taking its classifier vector w k \mathbf{w}_k w k as an anchor, the high compactness requires
γ ⟨ w k , x ( k ) ⟩ > b k , ∀ x ( k ) ∈ F k , (3) \gamma\langle\mathbf{w}_k,\mathbf{x}^{(k)}\rangle> b_k,\quad\forall\mathbf{x}^{(k)} \in\mathcal{F}_k, \tag*{(3)} γ ⟨ w k , x ( k ) ⟩ > b k , ∀ x ( k ) ∈ F k , (3)
for the arbitrary reasonable threshold b k b_k b k . Using Sigmoid, one can calculate the probability p k ( x ( k ) ) = σ ( γ ⟨ w k , x ( k ) ⟩ − b k ) p_k(\mathbf{x}^{(k)}) = \sigma(\gamma\langle\mathbf{w}_k,\mathbf{x}^{(k)}\rangle- b_k) p k ( x ( k ) ) = σ ( γ ⟨ w k , x ( k ) ⟩ − b k ) that the compactness condition (3) holds, and binary cross-entropy (BCE) could be used to calculate a loss, − log ( p k ( x ( k ) ) ) -\log\left(p_k(\mathbf{x}^{(k)})\right) − log ( p k ( x ( k ) ) ) , for the model training.
Similarly, for high separability between class k k k and class j j j , taking w j \mathbf{w}_j w j as the anchor, it wishes
γ ⟨ w j , x ( k ) ⟩ < b j , ∀ x ( k ) ∈ F k , (4) \gamma\langle\mathbf{w}_j,\mathbf{x}^{(k)}\rangle< b_j,\quad\forall\mathbf{x}^{(k)} \in\mathcal{F}_k, \tag*{(4)} γ ⟨ w j , x ( k ) ⟩ < b j , ∀ x ( k ) ∈ F k , (4)
for the arbitrary reasonable threshold b j b_j b j . Then, one can calculate the probability p j ( x ( k ) ) = 1 − σ ( γ ⟨ w j , x ( k ) ⟩ − b j ) p_j(\mathbf{x}^{(k)}) = 1-\sigma(\gamma\langle\mathbf{w}_j,\mathbf{x}^{(k)}\rangle-b_j) p j ( x ( k ) ) = 1 − σ ( γ ⟨ w j , x ( k ) ⟩ − b j ) that the separability condition (4) holds, which could be used to calculate a BCE loss, − log ( p j ( x ( k ) ) ) -\log(p_j(\mathbf{x}^{(k)})) − log ( p j ( x ( k ) )) , for model training.
Totally, for the feature learning, a multi-class BCE loss for the sample X ( k ) \mathbf{X}^{(k)} X ( k ) is
L b c e ( X ( k ) ) = log ( 1 + e − γ ⟨ w k , x ( k ) ⟩ + b k ) + ∑ j = 1 , j ≠ k K log ( 1 + e γ ⟨ w j , x ( k ) ⟩ − b j ) , (5) L_{\mathrm{bce}}(\mathbf{X}^{(k)})=\log\left(1+e^{-\gamma\langle\mathbf{w}_k,\mathbf{x}^{(k)}\rangle+b_k}\right)+\sum_{\substack{j=1,j\ne k}}^{K}\log\left(1+e^{\gamma\langle\mathbf{w}_j,\mathbf{x}^{(k)}\rangle-b_j}\right), \tag*{(5)} L bce ( X ( k ) ) = log ( 1 + e − γ ⟨ w k , x ( k ) ⟩ + b k ) + j = 1 , j = k ∑ K log ( 1 + e γ ⟨ w j , x ( k ) ⟩ − b j ) , (5)
which has been widely used in multi-label classification, and we here reveal its relationship to the feature learning.
NC on balanced datasets
On the whole dataset D \mathcal{D} D , using unconstrained feature model or layer-peeled model Fang et al. [6 ] , the existing works analyze the minimization of loss functions,
f ^ μ ( W , b , F ) = 1 N ∑ k = 1 K ∑ X ( k ) ∈ D k L μ ( X ( k ) ) , (6) \hat{f}_{\mu}(\mathbf{W},\mathbf{b},\mathcal{F})=\frac{1}{N}\sum_{k=1}^{K}\sum_{\mathbf{X}^{(k)}\in\mathcal{D}_k}L_{\mu}(\mathbf{X}^{(k)}), \tag*{(6)} f ^ μ ( W , b , F ) = N 1 k = 1 ∑ K X ( k ) ∈ D k ∑ L μ ( X ( k ) ) , (6)
where μ ∈ { c e , b c e } \mu\in\{\mathrm{ce},\mathrm{bce}\} μ ∈ { ce , bce } and N = ∑ k = 1 K n k N=\sum_{k=1}^{K}n_k N = ∑ k = 1 K n k . On the balanced datasets with n = n k = ∣ D k ∣ n=n_k=|\mathcal{D}_k| n = n k = ∣ D k ∣ for ∀ k ∈ [ K ] \forall k\in[K] ∀ k ∈ [ K ] , the current works have proved that the CE Lu and Steinerberger [19 ] and BCE Li et al. [16 ] losses lead to standard neural collapse (NC) when reaching their minima in training models. The standard NC means that,
within the same class k k k for ∀ k ∈ [ K ] \forall k\in[K] ∀ k ∈ [ K ] , the sample feature vectors F k = { x = M ( X ) : X ∈ D k } \mathcal{F}_k=\{\mathbf{x}=\mathcal{M}(\mathbf{X}):\mathbf{X}\in\mathcal{D}_k\} F k = { x = M ( X ) : X ∈ D k } collapse to their class center x ˉ k = 1 n k ∑ x ∈ F k x \bar{\mathbf{x}}_k=\frac{1}{n_k}\sum_{\mathbf{x}\in\mathcal{F}_k}\mathbf{x} x ˉ k = n k 1 ∑ x ∈ F k x , i.e., x = x ˉ k \mathbf{x}=\bar{\mathbf{x}}_k x = x ˉ k for ∀ x ∈ F k \forall\mathbf{x}\in\mathcal{F}_k ∀ x ∈ F k ,
for any class k k k , its class center align with the classifier vector, i.e., x ˉ k = w k \bar{\mathbf{x}}_k=\mathbf{w}_k x ˉ k = w k for ∀ k ∈ [ K ] \forall k\in[K] ∀ k ∈ [ K ] ,
between the classes, the angles of different class centers { x ˉ k } k = 1 K \{\bar{\mathbf{x}}_k\}_{k=1}^{K} { x ˉ k } k = 1 K are equal and maximized, forming an ETF, i.e., x ˉ k T x ˉ j = − 1 K − 1 \bar{\mathbf{x}}_k^{\mathsf{T}}\bar{\mathbf{x}}_j=-\frac{1}{K-1} x ˉ k T x ˉ j = − K − 1 1 for ∀ k ≠ j ∈ [ K ] \forall k\ne j\in[K] ∀ k = j ∈ [ K ] .
When the losses reach their minima, the classifier biases become equal, i.e., b j = b k = b ⋆ ∈ R b_j=b_k=b^\star\in\mathbb{R} b j = b k = b ⋆ ∈ R . Then, the standard NC means that, for any sample, it satisfies classification condition (1) with maximum possible likelihood; meanwhile, across the entire dataset, the within-class compactness of sample features and the between-class separability are both uniformly maximized. In other words, the classification and feature extraction models trained with CE or BCE possess the optimal theoretical expectations.
Main Results
Neural Collapse on Imbalanced Datasets
On imbalanced datasets, when the globally averaged losses defined in Eq. (6) reach their minimum values, it is found that the standard NC cannot be achieved. In this case, although the feature vectors of samples within the same class can still collapse to the class center, the class center is not necessarily aligned with its classifier vector, and the angle between classifier vectors { w k } k = 1 K \{\mathbf{w}_k\}_{k=1}^{K} { w k } k = 1 K and that between class centers { x ˉ k } k = 1 K \{\bar{\mathbf{x}}_k\}_{k=1}^{K} { x ˉ k } k = 1 K vary with the number of samples contained in the corresponding classes. In practice, the training of models and their final performance are often dominated by the majority classes containing large numbers of training samples. Although various strategies have been proposed to rebalance their training and performance across classes, none of them can theoretically reformulate the standard NC on imbalanced datasets.
It can be observed that the losses in Eq. (6) are global mean of the CE and BCE losses on the entire dataset D \mathcal{D} D . In this paper, we define class-wise averaged losses,
f μ ( W , b , F ) = 1 K ∑ k = 1 K 1 n k ∑ X ( k ) ∈ D k L μ ( X ( k ) ) , (7) f_{\mu}(\mathbf{W},b,\mathcal{F})=\frac{1}{K}\sum_{k=1}^{K}\frac{1}{n_k}\sum_{\mathbf{X}^{(k)}\in\mathcal{D}_k}L_{\mu}(\mathbf{X}^{(k)}), \tag*{(7)} f μ ( W , b , F ) = K 1 k = 1 ∑ K n k 1 X ( k ) ∈ D k ∑ L μ ( X ( k ) ) , (7)
which first computes the averaged loss for each class and then calculates the total averaged loss over the K K K classes. We prove that, on an imbalanced dataset, the class-wise averaged CE or BCE loss lead to standard NC when reaching their minimum values.
Theorem 1 On a dataset D \mathcal{D} D containing K K K classes, each class contains at least one sample, i.e., n k = ∣ D k ∣ > 0 n_k=|\mathcal{D}_k|>0 n k = ∣ D k ∣ > 0 for ∀ k ∈ [ K ] \forall k\in[K] ∀ k ∈ [ K ] . Suppose that the feature vectors extracted by the model M \mathcal{M} M have dimensionality d ≥ K − 1 d\ge K-1 d ≥ K − 1 . Then, when the losses f μ ( W , b , F ) f_{\mu}(\mathbf{W},b,\mathcal{F}) f μ ( W , b , F ) defined in Eq. (7) achieving their minima, they satisfy
x ( k ) = w k , ∀ x ( k ) ∈ F k , ∀ k ∈ [ K ] , (8) \mathbf{x}^{(k)}=\mathbf{w}_k,\quad\forall\mathbf{x}^{(k)}\in\mathcal{F}_k,\ \forall k\in[K], \tag*{(8)} x ( k ) = w k , ∀ x ( k ) ∈ F k , ∀ k ∈ [ K ] , (8) ⟨ w k , w j ⟩ = − 1 K − 1 , ∀ k ≠ j ∈ [ K ] , (9) \langle\mathbf{w}_k,\mathbf{w}_j\rangle=-\frac{1}{K-1},\quad\forall k\ne j\in[K], \tag*{(9)} ⟨ w k , w j ⟩ = − K − 1 1 , ∀ k = j ∈ [ K ] , (9) b k = b j = b ⋆ , ∀ k , j ∈ [ K ] , (10) b_k=b_j=b^\star,\quad\forall k,j\in[K], \tag*{(10)} b k = b j = b ⋆ , ∀ k , j ∈ [ K ] , (10) while, for μ = b c e \mu=\mathrm{bce} μ = bce , b ⋆ b^\star b ⋆ is the unique real solution of
e γ K − 1 e 2 b − ( K − 2 ) e b − ( K − 1 ) e γ = 0. (11) e^{\frac{\gamma}{K-1}}e^{2b}-(K-2)e^b-(K-1)e^\gamma=0. \tag*{(11)} e K − 1 γ e 2 b − ( K − 2 ) e b − ( K − 1 ) e γ = 0. (11) and for μ = c e \mu=\mathrm{ce} μ = ce , b ⋆ ∈ R b^\star\in\mathbb{R} b ⋆ ∈ R could be arbitrary number.
Proof The proofs are provided in Appendix, i.e., Theorems S.4 (BCE) and S.6 (CE). ▪
Eq. (8) implies that the feature vectors of samples of the k k k -th class not only collapse to their class center but also align with their classifier vector, w k \mathbf{w}_k w k ; Eq. (9) signifies that both the class centers and the classifier vectors form ETF. In total, according to Theorem 1 , training classification models on dataset D \mathcal{D} D , balanced or imbalanced, minimizing the class-wise averaged losses induces standard NC.
For the CE and BCE, the difference between their minimizations lies in the classifier biases. At a minimum point of CE, the classifier biases can take any value as long as the K K K biases are equal; therefore, setting the classifier biases to 0 in the CE still yields the standard NC. In contrast, at the minimum point of BCE, the classifier biases have only a unique value, which means that the classifier biases play a substantive role in training models using BCE. Furthermore, when removing the classifier biases in BCE, the final classifier vector w k \mathbf{w}_k w k and class center x ˉ k \bar{\mathbf{x}}_k x ˉ k cannot be aligned, failing to form a standard NC, except for the case K = 2 K = 2 K = 2 where its theoretical optimal bias is zero.
The NC-optimal Re-balancing Strategy
When training models on imbalanced datasets, practitioners commonly use re-balancing strategies such as re-sampling and re-weighting to achieve good performance in practice. Theorem 1 implies that re-weighting the loss using the inverse frequency, 1 n k \frac{1}{n_k} n k 1 , is theoretically the NC-optimal re-balancing strategy.
In practice, logit adjustment (LA) has been a commonly used re-balancing strategy in model training on imbalanced datasets. For each sample X \mathbf{X} X , LA typically modulates the difference between its positive and negative logits (i.e., the decision scores), or adjust its logits using the sample number corresponding to the class to which the classifier vectors belong, such as
L c e - l a ( X ( k ) ) = − log ( e ( γ w k T x ( k ) − b k ) / δ k k ∑ j = 1 K e ( γ w j T x ( k ) − b j ) / δ k j ) L_{\mathrm{ce\text{-}la}}(\mathbf{X}^{(k)})=-\log\left(\frac{\mathrm{e}^{(\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)}-b_k)/\delta_{kk}}}{\sum_{j=1}^{K}\mathrm{e}^{(\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}-b_j)/\delta_{kj}}}\right) L ce - la ( X ( k ) ) = − log ( ∑ j = 1 K e ( γ w j T x ( k ) − b j ) / δ k j e ( γ w k T x ( k ) − b k ) / δ k k )
L b c e - l a ( X ( k ) ) = log ( 1 + e ( − γ w k T x ( k ) + b k ) / δ k k ) + ∑ j = 1 , j ≠ k K log ( 1 + e ( γ w j T x ( k ) − b j ) / δ k j ) L_{\mathrm{bce\text{-}la}}(\mathbf{X}^{(k)})=\log\left(1+\mathrm{e}^{(-\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)}+b_k)/\delta_{kk}}\right)+\sum_{j=1,j\ne k}^{K}\log\left(1+\mathrm{e}^{(\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}-b_j)/\delta_{kj}}\right) L bce - la ( X ( k ) ) = log ( 1 + e ( − γ w k T x ( k ) + b k ) / δ k k ) + j = 1 , j = k ∑ K log ( 1 + e ( γ w j T x ( k ) − b j ) / δ k j )
where δ k j \delta_{kj} δ k j is typically a quantity related to n k n_k n k and n j n_j n j .
The LA strategy operates at the individual sample level, adjusting the similarities between the feature vector and the imbalanced classifier vectors within the loss function. When the LA loss reaches its minimum, the feature and classifier vectors will form a certain geometric structure, but there is a failure to prove that they would form a standard NC.
Neural Collapse in Open-set Scenarios
In Fang et al. [6 ] , the authors proved that minority collapse occurs when the imbalance factor (IF) tends to infinity. In practice, since the number of samples in majority classes cannot be infinite, an IF approaching infinity implies that the minority classes contain zero samples, shifting the classification task into open-set recognition (OSR). OSR refers to a classification task in which the test or validation set contains samples from classes that do not appear in the training set, meaning that some classes have zero training samples when optimizing the classification loss. In the loss function for training OSR model, assigning classifier placeholders ([31 ] ) or dummy classifiers ([18 ] ) for unknown classes can improve OSR performance. NC structure was also used to develop OSR method [15 ] . In an open-set setting, this paper investigates the geometry of sample features and classifier vectors at the loss minimum.
In our open-set setting, we assume that the first K 1 K_1 K 1 classes in the dataset D \mathcal{D} D are known classes containing non-zero training samples, with 1 < K 1 < K 1 < K_1 < K 1 < K 1 < K , while the remaining K − K 1 K-K_1 K − K 1 classes are unknown classes containing zero training samples. For each class ℓ ∈ [ K ] \ell\in[K] ℓ ∈ [ K ] , regardless of that it is known or unknown class, we assign a classifier vector w ℓ \mathbf{w}_{\ell} w ℓ and bias b ℓ b_{\ell} b ℓ to it in training models. Then, for any sample X ( k ) \mathbf{X}^{(k)} X ( k ) from a known class k ∈ [ K 1 ] k \in[K_1] k ∈ [ K 1 ] , its CE and BCE losses are still expressed by Eqs. (2) and (5) .
Theorem 2 For dataset D = ⋃ k = 1 K D k \mathcal{D} = \bigcup_{k=1}^{K} \mathcal{D}_k D = ⋃ k = 1 K D k with 1 < K 1 < K 1 < K_1 < K 1 < K 1 < K , assume that its last K − K 1 K-K_1 K − K 1 classes are empty, i.e., n k = ∣ D k ∣ > 0 n_k = |\mathcal{D}_k| > 0 n k = ∣ D k ∣ > 0 for ∀ k ∈ [ K 1 ] \forall k \in[K_1] ∀ k ∈ [ K 1 ] and n k = ∣ D k ∣ = 0 n_k = |\mathcal{D}_k| = 0 n k = ∣ D k ∣ = 0 for K 1 < k ≤ K K_1 < k \le K K 1 < k ≤ K . Suppose d ≥ K 1 d \ge K_1 d ≥ K 1 and denote x ~ = 1 K 1 ∑ k = 1 K 1 x ˉ k \tilde{\mathbf{x}} = \frac{1}{K_1}\sum_{k=1}^{K_1}\bar{\mathbf{x}}_k x ~ = K 1 1 ∑ k = 1 K 1 x ˉ k with x ˉ k = 1 n k ∑ x ∈ F k x \bar{\mathbf{x}}_k = \frac{1}{n_k}\sum_{\mathbf{x}\in\mathcal{F}_k}\mathbf{x} x ˉ k = n k 1 ∑ x ∈ F k x . Then, for BCE loss
f b c e - o s ( W , b , F ) ≜ 1 K 1 ∑ k = 1 K 1 1 n k ∑ X ( k ) ∈ D k L b c e ( X ( k ) ) , (12) f_{\mathrm{bce\text{-}os}}(\mathbf{W},b,\mathcal{F}) \triangleq\frac{1}{K_1}\sum_{k=1}^{K_1}\frac{1}{n_k}\sum_{\mathbf{X}^{(k)}\in\mathcal{D}_k}L_{\mathrm{bce}}(\mathbf{X}^{(k)}), \tag*{(12)} f bce - os ( W , b , F ) ≜ K 1 1 k = 1 ∑ K 1 n k 1 X ( k ) ∈ D k ∑ L bce ( X ( k ) ) , (12) it satisfies
f b c e - o s ( W , b , F ) ≥ log ( 1 + e b ⋆ − γ 1 − ∥ x ~ ∥ 2 ) + ( K − K 1 ) log ( 1 + e − γ ∥ x ~ ∥ − b ⋆ ) + ( K 1 − 1 ) log ( 1 + e γ K 1 − 1 1 − ∥ x ~ ∥ 2 − b ⋆ ) , (13) f_{\mathrm{bce\text{-}os}}(\mathbf{W},b,\mathcal{F}) \ge\log\left(1+e^{b^\star-\gamma\sqrt{1-\|\tilde{\mathbf{x}}\|^2}}\right)+(K-K_1)\log\left(1+e^{-\gamma\|\tilde{\mathbf{x}}\|-b^\star}\right)
+\left(K_1-1\right)\log\left(1+e^{\frac{\gamma}{K_1-1}\sqrt{1-\|\tilde{\mathbf{x}}\|^2}-b^\star}\right), \tag*{(13)} f bce - os ( W , b , F ) ≥ log ( 1 + e b ⋆ − γ 1 − ∥ x ~ ∥ 2 ) + ( K − K 1 ) log ( 1 + e − γ ∥ x ~ ∥ − b ⋆ ) + ( K 1 − 1 ) log ( 1 + e K 1 − 1 γ 1 − ∥ x ~ ∥ 2 − b ⋆ ) , (13) where b † ∈ R b^\dagger\in\mathbb{R} b † ∈ R and b ⋆ b^\star b ⋆ is the unique real solution of
e γ K 1 − 1 1 − ∥ x ~ ∥ 2 e 2 b − ( K 1 − 2 ) e b − ( K 1 − 1 ) e γ 1 − ∥ x ~ ∥ 2 = 0. e^{\frac{\gamma}{K_1-1}\sqrt{1-\|\tilde{\mathbf{x}}\|^2}}e^{2b}-(K_1-2)e^b-(K_1-1)e^{\gamma\sqrt{1-\|\tilde{\mathbf{x}}\|^2}}=0. e K 1 − 1 γ 1 − ∥ x ~ ∥ 2 e 2 b − ( K 1 − 2 ) e b − ( K 1 − 1 ) e γ 1 − ∥ x ~ ∥ 2 = 0. When f b c e - o s ( W , b , F ) f_{\mathrm{bce\text{-}os}}(\mathbf{W},b,\mathcal{F}) f bce - os ( W , b , F ) reaching the lower bound in Eq. (13) ,
x ( k ) = x ˉ k = 1 n k ∑ x ∈ F k x , ∀ x ( k ) ∈ F k , \mathbf{x}^{(k)}=\bar{\mathbf{x}}_k=\frac{1}{n_k}\sum_{\mathbf{x}\in\mathcal{F}_k}\mathbf{x},\quad\forall\mathbf{x}^{(k)}\in\mathcal{F}_k, x ( k ) = x ˉ k = n k 1 x ∈ F k ∑ x , ∀ x ( k ) ∈ F k , (equiangular) for k , j ∈ [ K 1 ] k,j\in[K_1] k , j ∈ [ K 1 ] with j ≠ k j\ne k j = k ,
w k T w j = − 1 K 1 − 1 , x ˉ k T x ˉ j = − 1 K 1 − 1 + K 1 K 1 − 1 ∥ x ~ ∥ 2 , \mathbf{w}_k^{\mathsf{T}}\mathbf{w}_j=-\frac{1}{K_1-1},\quad\bar{\mathbf{x}}_k^{\mathsf{T}}\bar{\mathbf{x}}_j=-\frac{1}{K_1-1}+\frac{K_1}{K_1-1}\|\tilde{\mathbf{x}}\|^2, w k T w j = − K 1 − 1 1 , x ˉ k T x ˉ j = − K 1 − 1 1 + K 1 − 1 K 1 ∥ x ~ ∥ 2 , (isogonal) for ∀ k , j ∈ [ K 1 ] \forall k,j\in[K_1] ∀ k , j ∈ [ K 1 ] with j ≠ k j\ne k j = k ,
w k T x ˉ k = 1 − ∥ x ~ ∥ 2 , w k T x ˉ j = − 1 K 1 − 1 1 − ∥ x ~ ∥ 2 , w k T x ~ = 0 , \mathbf{w}_k^{\mathsf{T}}\bar{\mathbf{x}}_k=\sqrt{1-\|\tilde{\mathbf{x}}\|^2},\quad\mathbf{w}_k^{\mathsf{T}}\bar{\mathbf{x}}_j=-\frac{1}{K_1-1}\sqrt{1-\|\tilde{\mathbf{x}}\|^2},\quad\mathbf{w}_k^{\mathsf{T}}\tilde{\mathbf{x}}=0, w k T x ˉ k = 1 − ∥ x ~ ∥ 2 , w k T x ˉ j = − K 1 − 1 1 1 − ∥ x ~ ∥ 2 , w k T x ~ = 0 , w j = − x ~ ∥ x ~ ∥ , \mathbf{w}_j=-\frac{\tilde{\mathbf{x}}}{\|\tilde{\mathbf{x}}\|}, w j = − ∥ x ~ ∥ x ~ , and for K 1 < j ≤ K K_1<j\le K K 1 < j ≤ K with ∀ k ∈ [ K 1 ] \forall k\in[K_1] ∀ k ∈ [ K 1 ]
w j T x ˉ k = − ∥ x ~ ∥ , w j T w k = 0 , \mathbf{w}_j^{\mathsf{T}}\bar{\mathbf{x}}_k=-\|\tilde{\mathbf{x}}\|,\quad\mathbf{w}_j^{\mathsf{T}}\mathbf{w}_k=0, w j T x ˉ k = − ∥ x ~ ∥ , w j T w k = 0 ,
and for ∀ k ∈ [ K 1 ] \forall k \in[K_1] ∀ k ∈ [ K 1 ] , K 1 < j ≤ K K_1 < j \le K K 1 < j ≤ K ,
b k = b ⋆ , b j = b † . b_k=b^\star,\qquad b_j=b^\dagger. b k = b ⋆ , b j = b † .
Furthermore, when f b c e - o s ( W , b , F ) f_{\mathrm{bce\text{-}os}}(\mathbf{W},\mathbf{b},\mathcal{F}) f bce - os ( W , b , F ) approaching its minimum value, b † → + ∞ b^\dagger\to+\infty b † → + ∞ and ∥ x ~ ∥ → 0 \lVert\tilde{\mathbf{x}}\rVert\to0 ∥ x ~ ∥ → 0 .
Proof The proof is given in Appendix, i.e., Theorem S.8.
Theorem 3 For dataset D = ⋃ k = 1 K D k \mathcal{D}=\bigcup_{k=1}^{K}\mathcal{D}_k D = ⋃ k = 1 K D k with 1 < K 1 < K 1<K_1<K 1 < K 1 < K , assume that its last K − K 1 K-K_1 K − K 1 classes are empty, i.e., n k = ∣ D k ∣ > 0 n_k=|\mathcal{D}_k|>0 n k = ∣ D k ∣ > 0 for ∀ k ∈ [ K 1 ] \forall k\in[K_1] ∀ k ∈ [ K 1 ] and n k = ∣ D k ∣ = 0 n_k=|\mathcal{D}_k|=0 n k = ∣ D k ∣ = 0 for K 1 < k ≤ K K_1<k\le K K 1 < k ≤ K . Suppose d ≥ K 1 d\ge K_1 d ≥ K 1 and denote x ~ = 1 K 1 ∑ k = 1 K 1 x ˉ k \tilde{\mathbf{x}}=\frac{1}{K_1}\sum_{k=1}^{K_1}\bar{\mathbf{x}}_k x ~ = K 1 1 ∑ k = 1 K 1 x ˉ k with x ˉ k = 1 n k ∑ x ∈ F k x \bar{\mathbf{x}}_k=\frac{1}{n_k}\sum_{\mathbf{x}\in\mathcal{F}_k}\mathbf{x} x ˉ k = n k 1 ∑ x ∈ F k x . Then, for CE loss
f c e - o s ( W , b , F ) ≜ 1 K 1 ∑ k = 1 K 1 1 n k ∑ X ( k ) L c e ( X ( k ) ) , (14) f_{\mathrm{ce\text{-}os}}(\mathbf{W},\mathbf{b},\mathcal{F})\triangleq\frac{1}{K_1}\sum_{k=1}^{K_1}\frac{1}{n_k}\sum_{\mathbf{X}^{(k)}}L_{\mathrm{ce}}(\mathbf{X}^{(k)}), \tag*{(14)} f ce - os ( W , b , F ) ≜ K 1 1 k = 1 ∑ K 1 n k 1 X ( k ) ∑ L ce ( X ( k ) ) , (14) it satisfies
f c e - o s ( W , b , F ) ≥ log ( 1 + c 1 + c 2 ) , (15) f_{\mathrm{ce\text{-}os}}(\mathbf{W},\mathbf{b},\mathcal{F})\ge\log(1+c_1+c_2), \tag*{(15)} f ce - os ( W , b , F ) ≥ log ( 1 + c 1 + c 2 ) , (15) where
c 1 = ( K 1 − 1 ) exp ( γ g ( q ⋆ ) K 1 K 1 − 1 ( ∥ x ~ ∥ 2 − 1 ) ) c_1=(K_1-1)\exp\left(\frac{\gamma}{\sqrt{g(q^\star)}}\frac{K_1}{K_1-1}\left(\lVert\tilde{\mathbf{x}}\rVert^2-1\right)\right) c 1 = ( K 1 − 1 ) exp ( g ( q ⋆ ) γ K 1 − 1 K 1 ( ∥ x ~ ∥ 2 − 1 ) ) c 2 = K 1 1 − q ⋆ q ⋆ exp ( γ g ( q ⋆ ) K 1 K 1 − 1 ( ∥ x ~ ∥ 2 − 1 ) ) c_2=K_1\frac{1-q^\star}{q^\star}\exp\left(\frac{\gamma}{\sqrt{g(q^\star)}}\frac{K_1}{K_1-1}\left(\lVert\tilde{\mathbf{x}}\rVert^2-1\right)\right) c 2 = K 1 q ⋆ 1 − q ⋆ exp ( g ( q ⋆ ) γ K 1 − 1 K 1 ( ∥ x ~ ∥ 2 − 1 ) ) c 3 = 1 q ⋆ g ( q ⋆ ) exp ( γ g ( q ⋆ ) K 1 K 1 − 1 ( ∥ x ~ ∥ 2 − 1 ) ) , c_3=\frac{1}{q^\star}\sqrt{g(q^\star)}\exp\left(\frac{\gamma}{\sqrt{g(q^\star)}}\frac{K_1}{K_1-1}\left(\lVert\tilde{\mathbf{x}}\rVert^2-1\right)\right), c 3 = q ⋆ 1 g ( q ⋆ ) exp ( g ( q ⋆ ) γ K 1 − 1 K 1 ( ∥ x ~ ∥ 2 − 1 ) ) , and g ( q ) = 1 − 2 q ∥ x ~ ∥ 2 + q 2 ∥ x ~ ∥ 2 g(q)=1-2q\lVert\tilde{\mathbf{x}}\rVert^2+q^2\lVert\tilde{\mathbf{x}}\rVert^2 g ( q ) = 1 − 2 q ∥ x ~ ∥ 2 + q 2 ∥ x ~ ∥ 2 with a certain q ⋆ ∈ ( 0 , 1 ) q^\star\in(0,1) q ⋆ ∈ ( 0 , 1 ) . When f c e - o s ( W , b , F ) f_{\mathrm{ce\text{-}os}}(\mathbf{W},\mathbf{b},\mathcal{F}) f ce - os ( W , b , F ) reaching the lower bound in Eq. (15) ,
x ( k ) = x ˉ k = 1 n k ∑ x ∈ F k x , ∀ x ( k ) ∈ F k , \mathbf{x}^{(k)}=\bar{\mathbf{x}}_k=\frac{1}{n_k}\sum_{\mathbf{x}\in\mathcal{F}_k}\mathbf{x},\qquad\forall\mathbf{x}^{(k)}\in\mathcal{F}_k, x ( k ) = x ˉ k = n k 1 x ∈ F k ∑ x , ∀ x ( k ) ∈ F k , (equiangular) for ∀ k , j ∈ [ K 1 ] \forall k,j\in[K_1] ∀ k , j ∈ [ K 1 ] with j ≠ k j\ne k j = k ,
w k T w j = − 1 K 1 − 1 + 1 K 1 1 K 1 − 1 ( c 2 c 3 ) 2 ∥ x ~ ∥ 2 , \mathbf{w}_k^{\mathsf{T}}\mathbf{w}_j=-\frac{1}{K_1-1}+\frac{1}{K_1}\frac{1}{K_1-1}\left(\frac{c_2}{c_3}\right)^2\lVert\tilde{\mathbf{x}}\rVert^2, w k T w j = − K 1 − 1 1 + K 1 1 K 1 − 1 1 ( c 3 c 2 ) 2 ∥ x ~ ∥ 2 , x ˉ k T x ˉ j = − 1 K 1 − 1 + K 1 K 1 − 1 ∥ x ~ ∥ 2 , \bar{\mathbf{x}}_k^{\mathsf{T}}\bar{\mathbf{x}}_j=-\frac{1}{K_1-1}+\frac{K_1}{K_1-1}\lVert\tilde{\mathbf{x}}\rVert^2, x ˉ k T x ˉ j = − K 1 − 1 1 + K 1 − 1 K 1 ∥ x ~ ∥ 2 ,
w k ⊤ x ˉ k = ( c 1 K 1 − 1 + c 2 K 1 ) 1 c 3 − c 1 K 1 − 1 1 c 3 ∥ x ~ ∥ 2 , w k ⊤ x ~ = c 2 c 3 ∥ x ~ ∥ 2 K 1 , w_k^{\top}\bar{x}_k = \left(\frac{c_1}{K_1-1}+\frac{c_2}{K_1}\right)\frac{1}{c_3}-\frac{c_1}{K_1-1}\frac{1}{c_3}\|\tilde{x}\|^2,\qquad w_k^{\top}\tilde{x}=\frac{c_2}{c_3}\frac{\|\tilde{x}\|^2}{K_1}, w k ⊤ x ˉ k = ( K 1 − 1 c 1 + K 1 c 2 ) c 3 1 − K 1 − 1 c 1 c 3 1 ∥ x ~ ∥ 2 , w k ⊤ x ~ = c 3 c 2 K 1 ∥ x ~ ∥ 2 ,
w k ⊤ x ˉ j = 1 c 3 ( 1 K 1 − 1 c 1 K 1 − 1 + K 1 K 1 − 1 c 2 K 1 ) ∥ x ~ ∥ 2 − 1 c 3 1 K 1 − 1 ( c 1 K 1 − 1 + c 2 K 1 ) . (16) w_k^{\top}\bar{x}_j=\frac{1}{c_3}\left(\frac{1}{K_1-1}\frac{c_1}{K_1-1}+\frac{K_1}{K_1-1}\frac{c_2}{K_1}\right)\|\tilde{x}\|^2-\frac{1}{c_3}\frac{1}{K_1-1}\left(\frac{c_1}{K_1-1}+\frac{c_2}{K_1}\right). \tag*{(16)} w k ⊤ x ˉ j = c 3 1 ( K 1 − 1 1 K 1 − 1 c 1 + K 1 − 1 K 1 K 1 c 2 ) ∥ x ~ ∥ 2 − c 3 1 K 1 − 1 1 ( K 1 − 1 c 1 + K 1 c 2 ) . (16)
w j = − x ~ ∥ x ~ ∥ . w_j=-\frac{\tilde{x}}{\|\tilde{x}\|}. w j = − ∥ x ~ ∥ x ~ .
and for K 1 < j ≤ K K_1<j\le K K 1 < j ≤ K with ∀ k ∈ [ K 1 ] \forall k\in[K_1] ∀ k ∈ [ K 1 ]
w j ⊤ x ˉ k = − ∥ x ~ ∥ , w j ⊤ w k = − c 2 c 3 ∥ x ~ ∥ K 1 , w_j^{\top}\bar{x}_k=-\|\tilde{x}\|,\qquad w_j^{\top}w_k=-\frac{c_2}{c_3}\frac{\|\tilde{x}\|}{K_1}, w j ⊤ x ˉ k = − ∥ x ~ ∥ , w j ⊤ w k = − c 3 c 2 K 1 ∥ x ~ ∥ ,
and for ∀ k ∈ [ K 1 ] \forall k\in[K_1] ∀ k ∈ [ K 1 ] , K 1 < j ≤ K K_1<j\le K K 1 < j ≤ K , ∃ b ⋆ , b † ∈ R \exists b^{\star},b^{\dagger}\in\mathbb{R} ∃ b ⋆ , b † ∈ R , such that
b k = b ⋆ , b j = b † . b_k=b^{\star},\qquad b_j=b^{\dagger}. b k = b ⋆ , b j = b † .
Furthermore, when f c e - o s ( W , b , F ) f_{\mathrm{ce\text{-}os}}(W,b,\mathcal{F}) f ce - os ( W , b , F ) approaching its minimum value, b † − b ⋆ → + ∞ b^{\dagger}-b^{\star}\to+\infty b † − b ⋆ → + ∞ , q ⋆ → 1 q^{\star}\to1 q ⋆ → 1 , and ∥ x ~ ∥ → 0 \|\tilde{x}\|\to0 ∥ x ~ ∥ → 0 .
Proof The complete proof is given in Appendix, i.e., Theorem S.11 .
According to Theorems 2 and 3 , in the open-set scenarios, before the BCE and CE losses approach their global minima, they respectively reach the lower bound in Eqs. (13) and (15) , at which point their classifier vectors and feature vectors have already formed relatively concise geometric structures. In the geometric structures, similar to standard NC, sample features { x = M ( X ) : X ∈ D k } \{x=\mathcal{M}(X):X\in D_k\} { x = M ( X ) : X ∈ D k } of a certain known class k k k collapse to the class center x ˉ k \bar{x}_k x ˉ k ; the difference is that although the class means { x ˉ k } k = 1 K 1 \{\bar{x}_k\}_{k=1}^{K_1} { x ˉ k } k = 1 K 1 and classifier vectors { w k } k = 1 K 1 \{w_k\}_{k=1}^{K_1} { w k } k = 1 K 1 of K 1 K_1 K 1 known classes form equiangular frames respectively, they do not necessarily have the maximum pairwise angles, arccos [ − 1 / ( K 1 − 1 ) ] \arccos[-1/(K_1-1)] arccos [ − 1/ ( K 1 − 1 )] . In the geometric structures, the classifier vectors { w j : K 1 < j ≤ K } \{w_j:K_1<j\le K\} { w j : K 1 < j ≤ K } of the unknown class coincide with each other and are opposite to the direction of the global feature mean x ~ \tilde{x} x ~ . Simultaneously, the classifier biases of known and unknown classes converge to specific values, b ⋆ b^{\star} b ⋆ and b † b^{\dagger} b † .
In the structures, the classifier vectors { w k } k = 1 K 1 \{w_k\}_{k=1}^{K_1} { w k } k = 1 K 1 of different known classes under the BCE have a uniform and largest angular separation, whereas those under the CE are uniform but with a smaller angular separation. Between the known and unknown classes, their classifier vectors, { w k } k = 1 K 1 \{w_k\}_{k=1}^{K_1} { w k } k = 1 K 1 and { w j : K 1 < j ≤ K } \{w_j:K_1<j\le K\} { w j : K 1 < j ≤ K } , under the BCE are orthogonal, while they under the CE have a larger angular separation.
As BCE and CE respectively approach their minima in the open-set scenario, the global feature mean x ~ \tilde{x} x ~ tend toward the zero vector. At this point, standard NC still forms over the K 1 K_1 K 1 known classes. Theoretically, the classifier vectors { w j : K 1 < j ≤ K } \{w_j: K_1 < j \le K\} { w j : K 1 < j ≤ K } of unknown classes always coincide with each other and remain perpendicular to the classifier vectors { w k } k = 1 K 1 \{w_k\}_{k=1}^{K_1} { w k } k = 1 K 1 of known classes under the BCE, while under the CE they gradually approach perpendicularity to { w k } k = 1 K 1 \{w_k\}_{k=1}^{K_1} { w k } k = 1 K 1 . Meanwhile, as the losses approach their minima, { w j : K 1 < j ≤ K } \{w_j: K_1 < j \le K\} { w j : K 1 < j ≤ K } consistently remains in the direction opposite to the global feature mean x ~ \tilde{x} x ~ in theoretical, i.e., w j = − x ~ ∥ x ~ ∥ w_j = -\frac{\tilde{x}}{\lVert\tilde{x}\rVert} w j = − ∥ x ~ ∥ x ~ ; however, in practice, as ∥ x ~ ∥ \lVert\tilde{x}\rVert ∥ x ~ ∥ approaches 0, any random perturbation can dramatically change the direction of x ~ \tilde{x} x ~ , thereby altering its angle with w j w_j w j .
Extensions to Contrastive Losses
In contrastive learning, the common losses used for training feature extraction models include Softmax-based losses such as SupCon Khosla et al. [12 ] and N-pair loss Sohn [23 ] , as well as Sigmoid-based losses such as MS loss Wang et al. [26 ] and SimPLE Wen et al. [27 ] . The Softmax-based contrastive loss originates from noise contrastive estimation (Oord et al. [20 ] ). In this paper, for ∀ X ( k ) \forall\mathbf{X}^{(k)} ∀ X ( k ) from class k k k , ∀ k ∈ [ K ] \forall k \in[K] ∀ k ∈ [ K ] , we define its Softmax-based contrastive loss as
L s o f t ( X ( k ) ) = − 1 n k ∑ x p ∈ F k log ( e γ x p T x ( k ) ∑ j = 1 K 1 n j ∑ x ∈ F j e γ x T x ( k ) ) (17) L_{\mathrm{soft}}(\mathbf{X}^{(k)})=-\frac{1}{n_k}\sum_{\mathbf{x}_p\in\mathcal{F}_k}\log\left(\frac{e^{\gamma\mathbf{x}_p^{\mathsf{T}}\mathbf{x}^{(k)}}}{\sum_{j=1}^{K}\frac{1}{n_j}\sum_{\mathbf{x}\in\mathcal{F}_j}e^{\gamma\mathbf{x}^{\mathsf{T}}\mathbf{x}^{(k)}}}\right) \tag*{(17)} L soft ( X ( k ) ) = − n k 1 x p ∈ F k ∑ log ( ∑ j = 1 K n j 1 ∑ x ∈ F j e γ x T x ( k ) e γ x p T x ( k ) ) (17)
where x ( k ) = M ( X ( k ) ) \mathbf{x}^{(k)}=\mathcal{M}(\mathbf{X}^{(k)}) x ( k ) = M ( X ( k ) ) and we apply the numbers of positive and negative sample pairs to re-balance the model training. After we completed the proof of Theorem 4 and began drafting this paper, we found that Zhu et al. [32 ] established on each batch of samples a re-balanced Softmax-based contrastive loss in the batch algorithm, similar to Eq. (17) , and they proved that it can induce standard NC.
Similar to the BCE loss in Eq. (5) , one can define Sigmoid-based contrastive loss from the first principle of feature learning. For any sample X ( k ) \mathbf{X}^{(k)} X ( k ) from class k k k , with x ( k ) = M ( X ( k ) ) \mathbf{x}^{(k)}=\mathcal{M}(\mathbf{X}^{(k)}) x ( k ) = M ( X ( k ) ) , it is expected that the feature similarity x p T x ( k ) \mathbf{x}_p^{\mathsf{T}}\mathbf{x}^{(k)} x p T x ( k ) with feature vector x p \mathbf{x}_p x p of any positive sample from the same class exceeds any reasonable threshold t k = b k / γ t_k=b_k/\gamma t k = b k / γ , while the feature similarity x n T x ( k ) \mathbf{x}_n^{\mathsf{T}}\mathbf{x}^{(k)} x n T x ( k ) between it and x n \mathbf{x}_n x n of any negative sample from any other class, such as j j j with j ≠ k j\ne k j = k , is below any reasonable threshold t j = b j / γ t_j=b_j/\gamma t j = b j / γ . Then, we apply Sigmoid to transform γ x p T x ( k ) − b k \gamma\mathbf{x}_p^{\mathsf{T}}\mathbf{x}^{(k)}-b_k γ x p T x ( k ) − b k and γ x n T x ( k ) − b j \gamma\mathbf{x}_n^{\mathsf{T}}\mathbf{x}^{(k)}-b_j γ x n T x ( k ) − b j into probabilities that meet the above expectations, and take BCE to construct the Sigmoid-based contrastive loss for model training. In total, for any sample X ( k ) \mathbf{X}^{(k)} X ( k ) from class k k k ,
L s i g m ( X ( k ) ) = 1 n k ∑ x p ∈ F k log ( 1 + e − γ x p T x ( k ) + b k ) + λ ∑ j = 1 j ≠ k K 1 n j ∑ x n ∈ F j log ( 1 + e γ x n T x ( k ) − b j ) (18) L_{\mathrm{sigm}}(\mathbf{X}^{(k)})=\frac{1}{n_k}\sum_{\mathbf{x}_p\in\mathcal{F}_k}\log\left(1+e^{-\gamma\mathbf{x}_p^{\mathsf{T}}\mathbf{x}^{(k)}+b_k}\right)+\lambda\sum_{\substack{j=1\\j\ne k}}^{K}\frac{1}{n_j}\sum_{\mathbf{x}_n\in\mathcal{F}_j}\log\left(1+e^{\gamma\mathbf{x}_n^{\mathsf{T}}\mathbf{x}^{(k)}-b_j}\right) \tag*{(18)} L sigm ( X ( k ) ) = n k 1 x p ∈ F k ∑ log ( 1 + e − γ x p T x ( k ) + b k ) + λ j = 1 j = k ∑ K n j 1 x n ∈ F j ∑ log ( 1 + e γ x n T x ( k ) − b j ) (18)
where 1 / n k 1/n_k 1/ n k and 1 / n j 1/n_j 1/ n j are used to eliminate the impact of the different numbers of positive sample pairs and negative ones of sample X ( k ) \mathbf{X}^{(k)} X ( k ) on the balanced training, and λ > 0 \lambda>0 λ > 0 is used to adjust the learning rate of the feature similarities of negative sample pairs that reflecting between class separability.
Theorem 4 Suppose that each class in dataset D \mathcal{D} D contains at least two samples, and that the feature dimension is greater than the number of classes, i.e., n k = ∣ D k ∣ > 2 n_k = |\mathcal{D}_k| > 2 n k = ∣ D k ∣ > 2 for ∀ k ∈ [ K ] \forall k \in[K] ∀ k ∈ [ K ] and d ≥ K − 1 d \ge K - 1 d ≥ K − 1 . On the dataset D \mathcal{D} D , define losses
f μ ( F ) = 1 K ∑ k = 1 K 1 n k ∑ X ( k ) ∈ D k L μ ( X ( k ) ) , (19) f_\mu(\mathcal{F}) = \frac{1}{K} \sum_{k=1}^{K} \frac{1}{n_k} \sum_{\mathbf{X}^{(k)} \in\mathcal{D}_k} L_\mu(\mathbf{X}^{(k)}), \tag*{(19)} f μ ( F ) = K 1 k = 1 ∑ K n k 1 X ( k ) ∈ D k ∑ L μ ( X ( k ) ) , (19) where μ ∈ { s o f t , s i g m } \mu\in\{\mathrm{soft}, \mathrm{sigm}\} μ ∈ { soft , sigm } . Then, at its minimum point,
x ( k ) = 1 n k ∑ x ∈ F k x = x ˉ k , ∀ x ( k ) ∈ F k , ∀ k ∈ [ K ] , (20) \mathbf{x}^{(k)} = \frac{1}{n_k} \sum_{\mathbf{x} \in\mathcal{F}_k} \mathbf{x} = \bar{\mathbf{x}}_k,\quad\forall\mathbf{x}^{(k)} \in\mathcal{F}_k,\ \forall k \in[K], \tag*{(20)} x ( k ) = n k 1 x ∈ F k ∑ x = x ˉ k , ∀ x ( k ) ∈ F k , ∀ k ∈ [ K ] , (20) ⟨ x ˉ k , x ˉ j ⟩ = − 1 K − 1 , ∀ k ≠ j ∈ [ K ] , (21) \langle\bar{\mathbf{x}}_k, \bar{\mathbf{x}}_j \rangle= -\frac{1}{K-1},\quad\forall k \ne j \in[K], \tag*{(21)} ⟨ x ˉ k , x ˉ j ⟩ = − K − 1 1 , ∀ k = j ∈ [ K ] , (21) and for the Sigmoid-based loss, it also satisfies
b k = b ∗ , ∀ k ∈ [ K ] , (22) b_k = b^*,\quad\forall k \in[K], \tag*{(22)} b k = b ∗ , ∀ k ∈ [ K ] , (22) where b ∗ b^* b ∗ is the unique solution of
e γ K − 1 e 2 b − [ λ ( K − 1 ) − 1 ] e b − λ ( K − 1 ) e γ = 0. (23) e^{\frac{\gamma}{K-1}e^{2b}} - [\lambda(K-1)-1]e^b - \lambda(K-1)e^\gamma= 0. \tag*{(23)} e K − 1 γ e 2 b − [ λ ( K − 1 ) − 1 ] e b − λ ( K − 1 ) e γ = 0. (23) Proof The proofs are provided in Appendix, i.e., Theorems S.16 (Sigmoid) and S.17 (Softmax).
Similar to Eq. (7) in Theorem 1, which re-balances the model training using the inverse frequency of each class, Eq. (19) in Theorem 4 re-balances the model training by using the reciprocal of the number of sample pairs ( n k , n j ) (n_k,n_j) ( n k , n j ) that can be formed by any two classes, such as classes k k k and j j j .
As shown in Eq. (18) , in the Sigmoid-based contrastive loss, a weighting parameter λ \lambda λ can be flexibly employed to balance the learning rates of feature similarities of positive and negative sample pairs that reflecting within-class compactness and between-class separability. In contrast, the different feature similarities in Eq. (17) are coupled together through Softmax, making it difficult to flexibly adjust their learning intensity in the Softmax-based contrastive loss.
Furthermore, although the biases in the Sigmoid-based contrastive loss still play a substantive role during the feature learning, it can be proved that if the they are removed, the main conclusion of Theorem 4 remains valid.
Experiments
To verify the theorems, we applied the CE and BCE losses to train models such as ResNet and ViT on CIFAR10 and CIFAR100 ([14 ] ), respectively. The detailed experimental settings can be found in the supplementary.
Table 1. Statistical results (mean ± \pm ± std) for positive/negative similarities (s p o s / s n e g s_{\mathrm{pos}}/s_{\mathrm{neg}} s pos / s neg ) and biases (b b b ) of different models trained by CE and BCE on CIFAR10-LT and CIFAR100-LT with IF = 1, 10, 50, and 100. The CE and BCE are class-wise averaged using Eq. (7) . In the table, when the absolute value of a number if less than 1, we omit the ‘0’ in its integer part to save space.
In each experiment, after the model training, we collect the following sets of different types of values,
s p o s x x = { x T x ∗ : ∀ x , x ∗ ∈ F k , ∀ k ∈ [ K ] } , s n e g x x = { x ˉ k T x ˉ j : ∀ k ≠ j ∈ [ K ] } , s_{\mathrm{pos}}^{\mathrm{xx}}=\left\{x^{\mathsf{T}}x_*:\ \forall x,x_* \in\mathcal{F}_k,\ \forall k \in[K]\right\},\qquad s_{\mathrm{neg}}^{\mathrm{xx}}=\left\{\bar{x}_k^{\mathsf{T}}\bar{x}_j:\ \forall k\ne j \in[K]\right\}, s pos xx = { x T x ∗ : ∀ x , x ∗ ∈ F k , ∀ k ∈ [ K ] } , s neg xx = { x ˉ k T x ˉ j : ∀ k = j ∈ [ K ] } ,
s p o s w x = { w k T x ˉ k : ∀ k ∈ [ K ] } , s n e g w x = { w j T x ˉ k : ∀ j ≠ k ∈ [ K ] } , s_{\mathrm{pos}}^{\mathrm{wx}}=\left\{w_k^{\mathsf{T}}\bar{x}_k:\ \forall k \in[K]\right\},\qquad s_{\mathrm{neg}}^{\mathrm{wx}}=\left\{w_j^{\mathsf{T}}\bar{x}_k:\ \forall j\ne k \in[K]\right\}, s pos wx = { w k T x ˉ k : ∀ k ∈ [ K ] } , s neg wx = { w j T x ˉ k : ∀ j = k ∈ [ K ] } ,
s n e g w w = { w j T w k : ∀ j ≠ k ∈ [ K ] } . s_{\mathrm{neg}}^{\mathrm{ww}}=\left\{w_j^{\mathsf{T}}w_k:\ \forall j\ne k \in[K]\right\}. s neg ww = { w j T w k : ∀ j = k ∈ [ K ] } .
According to Theorem 1, when the losses reaching their minima, the numbers in s p o s x x s_{\mathrm{pos}}^{\mathrm{xx}} s pos xx and s p o s w x s_{\mathrm{pos}}^{\mathrm{wx}} s pos wx will converge to 1, while that in s n e g x x s_{\mathrm{neg}}^{\mathrm{xx}} s neg xx , s n e g w x s_{\mathrm{neg}}^{\mathrm{wx}} s neg wx , and s n e g w w s_{\mathrm{neg}}^{\mathrm{ww}} s neg ww will converge to − 1 K − 1 -\frac{1}{K-1} − K − 1 1 .
In open-set scenario, we collect the above sets on the first K 1 K_1 K 1 non-empty classes, and the numbers will converge to specific values related to K 1 K_1 K 1 and ∥ x ~ ∥ \lVert\tilde{x}\rVert ∥ x ~ ∥ , given by Theorems 2 and 3. Besides that, for the last K − K 1 K-K_1 K − K 1 empty unknown classes, we collect the sets as
s e m p w w = { w j T w j ′ : K 1 < j ≠ j ′ ≤ K } , s_{\mathrm{emp}}^{\mathrm{ww}}=\left\{w_j^{\mathsf{T}}w_{j'}:\ K_1<j\ne j'\le K\right\}, s emp ww = { w j T w j ′ : K 1 < j = j ′ ≤ K } ,
s e m p 2 w w = { w k T w j : k ∈ [ K 1 ] , K 1 < j ≤ K } , (24) s_{\mathrm{emp2}}^{\mathrm{ww}}=\left\{w_k^{\mathsf{T}}w_j:\ k\in[K_1],\ K_1<j\le K\right\}, \tag*{(24)} s emp2 ww = { w k T w j : k ∈ [ K 1 ] , K 1 < j ≤ K } , (24)
Table 1 (continued).
s e m p w x = { w j T x ~ / ∥ x ~ ∥ : K 1 < j ≤ K } , s^{\mathrm{wx}}_{\mathrm{emp}} = \{w_j^{\mathsf{T}} \tilde{x}/\lVert\tilde{x}\rVert: K_1 < j \le K\}, s emp wx = { w j T x ~ / ∥ x ~ ∥ : K 1 < j ≤ K } ,
and in these three sets, the numbers will respectively converge to 1, 0, and − 1 -1 − 1 when minority collapse occurs.
On Imbalanced Datasets
We first verify Theorem 1. Table 1 shows the statistical results of s p o s x x s^{\mathrm{xx}}_{\mathrm{pos}} s pos xx , s p o s w x s^{\mathrm{wx}}_{\mathrm{pos}} s pos wx , s n e g w x s^{\mathrm{wx}}_{\mathrm{neg}} s neg wx , and that of biases { b j } j = 1 K \{b_j\}_{j=1}^{K} { b j } j = 1 K for ResNet18 and ViT-Tiny trained on training data of CIFAR10-LT and CIFAR100-LT [3 ] with different imbalanced factors, I F ∈ { 1 , 10 , 50 , 100 } \mathrm{IF} \in\{1, 10, 50, 100\} IF ∈ { 1 , 10 , 50 , 100 } , where the model training is driven using the class-wise (CW) averaged CE and BCE defined in Eq. (7) . In the experiments, we trained the models for 800 epochs with a batch size of 128. The optimizer and learning rate setting are detailed in Table S.1. No weight decay was applied. The classifier biases were initialized to 0.0, and the scale factor γ \gamma γ was set to 8.0.
According to Theorem 1, when the CW losses reaching their global minima, the features of samples of the same class align with their corresponding classifier vectors, while different classes form an ETF. From Table 1, one can find that the results are highly consistent with the theoretical analysis, regardless of whether the CE or BCE is used to train the ResNet or ViT. On CIFAR10-LT, except for the data of ResNet18 trained with CE, which deviates slightly more from their theoretical values, the means of s p o s x x s^{\mathrm{xx}}_{\mathrm{pos}} s pos xx and s p o s x x s^{\mathrm{xx}}_{\mathrm{pos}} s pos xx for the other models are basically all around 0.99, very close to the theoretical value of 1, while the means of the s n e g w x s_{\mathrm{neg}}^{\mathrm{wx}} s neg wx are all around − 0.11 -0.11 − 0.11 , close to the theoretical value of − 1 / 9 -1/9 − 1/9 ; moreover, these all data have relatively small standard deviations, even IF = 100. Similar observations can also be made on CIFAR100-LT. These results indicate that, regardless of the imbalance ratio, class number, or the model architecture, training a model with the CW averaged loss ultimately causes the sample features and classifier vectors of different classes to form an ETF, reformulating standard NC on imbalanced datasets.
Furthermore, the results of final classifier biases { b k } k = 1 K \{b_k\}_{k=1}^{K} { b k } k = 1 K in Table 1 illustrate the distinction between the CE and BCE losses. For the CE loss, Theorem 1 only requires the biases of different classes to converge to the same value, which can be any real number, with no unique theoretical value. In the experiments, since the initial values were set to zero mean, after training the models using CE, their all classifier biases still concentrated around 0.0. In contrast, when BCE loss reaches a minimum, there is a unique theoretical classifier bias. As shown in Table 1, the theoretical bias values on CIFAR10 and CIFAR100 are 4.6698 and 6.3437, respectively. The final biases obtained in practical training concentrate near these two values and exhibit small standard deviations across different models and datasets with different IFs.
To demonstrate the theoretical advantages of the class-wise (CW) averaged losses defined in Eq. (7) , we also train the models using the globally (G.) averaged losses defined in Eq. (6) , with γ = 8.0 \gamma= 8.0 γ = 8.0 . Using violin plots, Figure 1 shows the distributions of positive/negative scaled similarities (γ w T x \gamma w^{\mathsf{T}}x γ w T x ) and biases of ResNet18 trained by the different losses on CIFAR10-LT with IF = 1, 10, 50, and 100. When IF = 1, the CW loss and the G. loss are equivalent, and their final results are both close to NC solution. However, as IF increases, there is a significant difference between the results of these two types of losses. With different IFs, the three metrics obtained by the CW averaged loss are all concentrated around the NC theoretical values. In contrast, for the G. averaged losses, as IF increases, although the positive similarities are still mainly concentrated around the theoretical value, the negative similarities and classifier biases become increasingly dispersed and increasingly difficult to converge. These results demonstrate the theoretical advantages of the CW averaged losses over the G. averaged loss, i.e., on imbalanced datasets, the former can achieve standard NC, theoretically maximizing the between-class compactness of sample features and, in a balanced manner, maximizing the between-class separability between different sample features and classifier vectors of different classes, whereas the latter cannot.
Figure 1. Distribution of positive and negative scaled similarities (γ w k T x ˉ j \gamma w_k^{\mathsf{T}}\bar{x}_j γ w k T x ˉ j ) and biases of ResNet18 trained by class-wise (CW) and globally (G.) averaged CE and BCE.
Figure 2 shows the similarity matrices for class centers { x ˉ k } k = 1 K \{\bar{x}_k\}_{k=1}^{K} { x ˉ k } k = 1 K and classifier vectors { w k } k = 1 K \{w_k\}_{k=1}^{K} { w k } k = 1 K of ResNet18 trained by CW and G. averaged BCE on CIFAR10-LT with IF = 100. For the CW loss, in its different similarity matrices, the off-diagonal elements that reflect the between-class separabilities are uniformly smaller than − 0.1 -0.1 − 0.1 , close to the NC theoretical value of − 1 / 9 -1/9 − 1/9 , and lie within a similarity interval with a relative length of less than 0.024. These matrices indicate that the CW loss achieves balanced between-class separabilities. In contrast, for the G. loss, the between-class geometric structures among sample features and classifier vectors are significantly distorted. The off-diagonal elements of all three matrices exhibits obvious differences, lying within a similarity interval of about 0.4 in length; meanwhile, these off-diagonal values gradually increase from about − 0.3 -0.3 − 0.3 in the upper-left corner to about 0.1 in the lower-right corner, which is clearly correlated with the number of samples contained in the classes from head to tail. These results illustrate that, when training model on imbalanced datasets by using the globally (G.) averaged loss, the training is significantly affected by the sample number, and the between-class separabilities exhibit obvious imbalanced effect across the different classes, whereas the class-wise (CW) averaged loss could effectively suppresses this imbalance.
Figure 2. (a) Similarity matrices learned by class-wise (CW) averaged BCE loss defined in Eq. (7) .
(b) Similarity matrices learned by global (G.) averaged BCE loss defined in Eq. (6) .
Figure 2: Similarity matrices for class centers { x ˉ k } k = 1 K \{\bar{x}_k\}_{k=1}^{K} { x ˉ k } k = 1 K and classifier vectors { w k } k = 1 K \{w_k\}_{k=1}^{K} { w k } k = 1 K of ResNet18 trained by different BCE losses on CIFAR10-LT with IF = 100.
Table 2. Statistical results (mean ± std) for different metrics of ResNet18 trained by CE and BCE on CIFAR10 and CIFAR100 with K − K 1 K - K_1 K − K 1 empty classes. The CE and BCE are class-wise averaged using Eqs. (12) and (14) .
On Open-Set Scenario
We further verify Theorems 2 and 3 . On CIFAR10 (K = 10 K = 10 K = 10 ) and CIFAR100 (K = 100 K = 100 K = 100 ), we retain all samples in the first K 1 K_1 K 1 classes while empty the last K − K 1 K - K_1 K − K 1 classes. When K 1 = 9 , 7 , 5 , 3 K_1 = 9, 7, 5, 3 K 1 = 9 , 7 , 5 , 3 on CIFAR10 and K 1 = 90 , 70 , 50 , 30 K_1 = 90, 70, 50, 30 K 1 = 90 , 70 , 50 , 30 on CIFAR100, we respectively train ResNet18 using the CE and BCE losses defined in Eqs. (12) and (14) . In the experiments, the losses were class-wise (CW) averaged over the K 1 K_1 K 1 known classes, and the models were trained for 1000 epochs. The other training settings are detailed in Table S.1.
According to the theorems, as the losses decrease, these numbers in s p o s x x s_{\mathrm{pos}}^{\mathrm{xx}} s pos xx , s n e g x x s_{\mathrm{neg}}^{\mathrm{xx}} s neg xx , s p o s w x s_{\mathrm{pos}}^{\mathrm{wx}} s pos wx , s n e g w x s_{\mathrm{neg}}^{\mathrm{wx}} s neg wx , s n e g w w s_{\mathrm{neg}}^{\mathrm{ww}} s neg ww , and s o p e n w x s_{\mathrm{open}}^{\mathrm{wx}} s open wx will converge to specific values related to K 1 K_1 K 1 and the norm of the global feature center, ∥ x ~ ∥ = ∥ 1 K 1 ∑ k = 1 K 1 x ˉ k ∥ \lVert\tilde{x}\rVert= \left\lVert\frac{1}{K_1}\sum_{k=1}^{K_1}\bar{x}_k \right\rVert ∥ x ~ ∥ = K 1 1 ∑ k = 1 K 1 x ˉ k . Table 2 shows their mean and standard deviations.
Except for the model trained on CIFAR10 using CE, the features extracted by other models all converge to their class centers, as evidenced by the means of their s p o s x x s_{\mathrm{pos}}^{\mathrm{xx}} s pos xx being around 0.99 and having very small standard deviations. For these models, when ∥ x ~ ∥ \lVert\tilde{x}\rVert ∥ x ~ ∥ is less than 0.025, the final sample features and classifier vectors closely approximate the ETF structure corresponding to a number of classes equal to K 1 K_1 K 1 . For example, consider the model trained using BCE on CIFAR100 with K 1 = 90 K_1 = 90 K 1 = 90 . For all the known classes, the norm of their feature center x ~ \tilde{x} x ~ is 0.0186. Correspondingly, the means of s p o s x x s_{\mathrm{pos}}^{\mathrm{xx}} s pos xx and s p o s w x s_{\mathrm{pos}}^{\mathrm{wx}} s pos wx are 0.9990 and 0.9993 0.9993 0.9993 , respectively, with very small standard deviations, indicating that the sample features within the same class essentially collapse and align with their classifier vector. Meanwhile, the means of s n e g x x s_{\mathrm{neg}}^{\mathrm{xx}} s neg xx , s n e g w x s_{\mathrm{neg}}^{\mathrm{wx}} s neg wx and s n e g w v s_{\mathrm{neg}}^{\mathrm{wv}} s neg wv are − 0.0109 -0.0109 − 0.0109 , − 0.0112 -0.0112 − 0.0112 and − 0.0112 -0.0112 − 0.0112 , which are relatively close to − 1 / 89 -1/89 − 1/89 , indicating that the class centers and classifier vectors basically form an ETF structure that maximizes equiangular separation.
Table 2 (continued).
In contrast, when ∥ x ~ ∥ \lVert\tilde{x}\rVert ∥ x ~ ∥ is relatively large, although features within each class also collapse, the class centers do not align well with the classifier vectors, and their structure differs substantially form the ETF, while remaining very close to the structure specified by the theorems. For example, ∥ x ~ ∥ = 0.1544 \lVert\tilde{x}\rVert= 0.1544 ∥ x ~ ∥ = 0.1544 for the model trained using BCE on CIFAR100 with K 1 = 30 K_1 = 30 K 1 = 30 . Correspondingly, the mean of s p o s x x s_{\mathrm{pos}}^{\mathrm{xx}} s pos xx is 0.9985 0.9985 0.9985 , whereas that of s p o s w x s_{\mathrm{pos}}^{\mathrm{wx}} s pos wx is 0.9871 0.9871 0.9871 , indicating that within-class collapse is achieved but the collapsed features do not fully align with their classifier vectors. Then mean of s n e g w x s_{\mathrm{neg}}^{\mathrm{wx}} s neg wx is − 0.0345 -0.0345 − 0.0345 , which is equal to − 1 / 29 -1/29 − 1/29 , indicating that the classifier vectors essentially form an ETF. However, the mean of s n e g x x s_{\mathrm{neg}}^{\mathrm{xx}} s neg xx is − 0.0098 -0.0098 − 0.0098 , which differs substantially from − 1 / 29 -1/29 − 1/29 . Nevertheless, it should be noted that the means of s p o s w x s_{\mathrm{pos}}^{\mathrm{wx}} s pos wx and s n e g x x s_{\mathrm{neg}}^{\mathrm{xx}} s neg xx are very close to the theoretical values, 1 − ∥ x ~ ∥ 2 ≈ 0.9880 \sqrt{1-\lVert\tilde{x}\rVert^2} \approx0.9880 1 − ∥ x ~ ∥ 2 ≈ 0.9880 and − 1 K 1 − 1 + K 1 K 1 − 1 ∥ x ~ ∥ 2 ≈ − 0.0098 -\frac{1}{K_1-1}+\frac{K_1}{K_1-1}\lVert\tilde{x}\rVert^2 \approx-0.0098 − K 1 − 1 1 + K 1 − 1 K 1 ∥ x ~ ∥ 2 ≈ − 0.0098 , given by Theorem 2 .
In Table 2, for models trained with BCE, it is relatively easily to verify that their metrics largely conform to the conclusions of Theorem 2 . In contrast, for models trained with CE, verifying compliance with Theorem 3 requires first numerically solving c 1 c_1 c 1 , c 2 c_2 c 2 , and c 3 c_3 c 3 , which is slightly more difficult. One can observe that, compared to the models trained by CE, that trained by BCE achieve smaller standard deviations across various metrics, indicating that after sufficient training, the BCE-trained models yield classifiers and sample features with superior geometric structures. Furthermore, from Table 2, it can also be observed that when K 1 K_1 K 1 is closer to K K K , after the same training, the model’s ∥ x ~ ∥ \lVert\tilde{x}\rVert ∥ x ~ ∥ is smaller, and all metrics are closer to NC values, which is consistent with our intuitive understanding.
In Table 2, one can observe that for classifier vectors { w j : K 1 < j ≤ K } \{w_j : K_1 < j \leq K\} { w j : K 1 < j ≤ K } of empty classes, the means of s e m p w w s^{\mathrm{ww}}_{\mathrm{emp}} s emp ww and s e m p 2 w w s^{\mathrm{ww}}_{\mathrm{emp2}} s emp2 ww are respectively close to 1 and 0, with very small standard deviations. These results indicate that { w j : K 1 < j ≤ K } \{w_j : K_1 < j \leq K\} { w j : K 1 < j ≤ K } have basically collapsed to a single vector and are orthogonal to { w k : k ∈ [ K 1 ] } \{w_k : k \in[K_1]\} { w k : k ∈ [ K 1 ]} , the classifier vectors of nonempty known classes. With Theorems 2 and 3 , the theoretical value of the metrics of s e m p w x s_{\mathrm{emp}}^{\mathrm{wx}} s emp wx is − 1 -1 − 1 ; however, in Table 2, the s e m p w x s_{\mathrm{emp}}^{\mathrm{wx}} s emp wx of most models deviates markedly from − 1 -1 − 1 . We conjecture that it is because when x ~ = 1 K 1 ∑ k = 1 K 1 x ˉ k \tilde{x} = \frac{1}{K_{1}}\sum_{k=1}^{K_{1}}\bar{x}_{k} x ~ = K 1 1 ∑ k = 1 K 1 x ˉ k is very close to 0 \mathbf{0} 0 , even minor angular variations between class centers { x ˉ k : k ∈ [ K 1 ] } \{\bar{x}_{k}: k \in[K_{1}]\} { x ˉ k : k ∈ [ K 1 ]} can substantially alter the direction of x ~ \tilde{x} x ~ , and consequently change its similarity with the classifier vectors of the empty unknown classes, i.e., w j ⊤ x ~ / ∥ x ~ ∥ w_{j}^{\top}\tilde{x}/\lVert\tilde{x}\rVert w j ⊤ x ~ / ∥ x ~ ∥ , K 1 < j ≤ K 1 K_{1} < j \le K_{1} K 1 < j ≤ K 1 .
In Table 3 , we present the statistical results of ViT-Tiny trained on CIFAR100 with K 1 = 50 K_{1}=50 K 1 = 50 using BCE and CE. Before the model training, the randomly initialized classifier vectors are almost mutually orthogonal. However, after training begins, the classifier vectors { w j : K 1 < j ≤ K } \{w_{j}: K_{1}<j\le K\} { w j : K 1 < j ≤ K } of empty unknown classes quickly coincide with one another, as shown by the statistical results for s e m p w w s_{\mathrm{emp}}^{\mathrm{ww}} s emp ww , which are already very close to 1 ± 0 1 \pm0 1 ± 0 at epoch = 50 =50 = 50 . For K 1 < j ≤ K K_{1}<j\le K K 1 < j ≤ K , there are no samples from this unknown class attracting its classifier vector w j w_{j} w j , while the classifier vectors of different unknown classes are subjected to exactly the same repulsive force; therefore, in a bounded space, they will ultimately coincide. Meanwhile, they become opposite in direction to the global feature averaged vector x ~ \tilde{x} x ~ , as shown by the statistical results for s e m p w x s_{\mathrm{emp}}^{\mathrm{wx}} s emp wx , which rapidly approach − 1 ± 0 -1 \pm0 − 1 ± 0 within the first 100 epochs. For { w j : K 1 < j ≤ K } \{w_{j}: K_{1}<j\le K\} { w j : K 1 < j ≤ K } , they cannot indirectly receive repulsive forces from the classifier vectors { w k : k ∈ [ K 1 ] } \{w_{k}: k\in[K_{1}]\} { w k : k ∈ [ K 1 ]} of non-empty known classes through their own samples, and can only receive repulsive forces from all sample features of other classes, so ultimately they become opposite to the direction of the resultant repulsive force, x ~ \tilde{x} x ~ . However, as x ~ \tilde{x} x ~ gradually tends toward 0 \mathbf{0} 0 , for the model trained with BCE, the mean of s e m p w x s_{\mathrm{emp}}^{\mathrm{wx}} s emp wx at the 600th epoch is − 0.6181 -0.6181 − 0.6181 , whereas for that trained with CE, at the 300th, 400th, and 600th epochs the means of s e m p w x s_{\mathrm{emp}}^{\mathrm{wx}} s emp wx change to − 0.2504 -0.2504 − 0.2504 , − 0.0492 -0.0492 − 0.0492 , and − 0.0442 -0.0442 − 0.0442 , respectively, indicating that the angle between x ~ \tilde{x} x ~ and { w j : K 1 < j ≤ K } \{w_{j}: K_{1}<j\le K\} { w j : K 1 < j ≤ K } changes drastically, which is consistent with our earlier conjecture.
Table 3. Statistical results (mean ± \pm ± std) for different metrics of ViT-Tiny trained on CIFAR100 with K 1 = 50 K_1 = 50 K 1 = 50 .
In the final stage of training, the structure of classifier vectors { w k : k ∈ [ K 1 ] } \{w_{k}: k\in[K_{1}]\} { w k : k ∈ [ K 1 ]} and the sample features of non-empty known classes are very close to an ETF. The numbers in s p o s x x s_{\mathrm{pos}}^{\mathrm{xx}} s pos xx , which reflect the within-class collapse, and s p o s w w s_{\mathrm{pos}}^{\mathrm{ww}} s pos ww , which reflect the alignment between classifier vectors { w k : k ∈ [ K 1 ] } \{w_{k}: k\in[K_{1}]\} { w k : k ∈ [ K 1 ]} and class centers { x ˉ k : k ∈ [ K 1 ] } \{\bar{x}_{k}: k\in[K_{1}]\} { x ˉ k : k ∈ [ K 1 ]} , are both close to a mean of 1 1 1 and a standard deviation of 0 0 0 . For s n e g x x s_{\mathrm{neg}}^{\mathrm{xx}} s neg xx and s n e g w w s_{\mathrm{neg}}^{\mathrm{ww}} s neg ww , which reflect the between-class separation of sample features and classifier vectors, their means are both close to − 1 / 49 ≈ − 0.0204 -1/49 \approx-0.0204 − 1/49 ≈ − 0.0204 , with relatively small standard deviations. These results indicate that, regardless of whether the models are trained with CE or BCE, NC is essentially achieved on the non-empty classes.
Contrastive Losses on Imbalanced Datasets
Finally, we verify Theorem 4 for contrastive learning on balanced and imbalanced datasets. In experiments for the Sigmoid-based contrastive loss, we set λ = 1 K − 1 \lambda=\frac{1}{K-1} λ = K − 1 1 ; then, b ⋆ = γ 2 ( 1 − 1 K − 1 ) b^{\star}=\frac{\gamma}{2}\left(1-\frac{1}{K-1}\right) b ⋆ = 2 γ ( 1 − K − 1 1 ) .
Table 4 reports the statistical results of ResNet18 and ViT-Tiny trained using the re-balanced Softmax-based and Sigmoid-based losses on CIFAR10-LT and CIFAR100-LT with IF = 1 =1 = 1 , 10 10 10 , 50 50 50 , and 100 100 100 . In these experiments, across settings with different numbers of classes and IFs, the mean of the final s p o s x x s_{\mathrm{pos}}^{\mathrm{xx}} s pos xx consistently stays close to 1 1 1 , while the mean of s n e g x x s_{\mathrm{neg}}^{\mathrm{xx}} s neg xx remains close to the corresponding theoretical extreme values, i.e., − 1 / 9 -1/9 − 1/9 on CIFAR10LT and − 1 / 99 -1/99 − 1/99 on CIFAR100-LT. Meanwhile, the standard deviations of these two kinds of quantities are relatively small. These results indicate that the re-balanced Softmax-based and Sigmoid-based loss functions using sample inverse frequencies effectively suppress the impact of class imbalance, and drive the learned features toward within-class collapse and uniformly separated class centers, as predicted by Theorem 4 . Furthermore, for the Sigmoid-based loss, the learned biases also remain close to their theoretical values, approximately 1.7778 on CIFAR10-LT and 1.9798 on CIFAR100-LT, supporting the theoretical analysis.
Table 4. Statistical results (mean ± \pm ± std) of different models trained by Softmax-based and Sigmoid-based losses on CIFAR10-LT and CIFAR100-LT with IF = 1 , 10 , 50 = 1, 10, 50 = 1 , 10 , 50 , and 100.
Compared with the Softmax-based loss, the Sigmoid-based loss exhibits relatively larger standard deviations in s n e g x x s_{\mathrm{neg}}^{\mathrm{xx}} s neg xx , particularly on CIFAR100-LT, although the means of s n e g x x s_{\mathrm{neg}}^{\mathrm{xx}} s neg xx remain close to the theoretical values. As the negative terms in the rebalanced Sigmoid-based loss are scaled by 1 K − 1 \frac{1}{K-1} K − 1 1 , when the number of classes, K K K , is large, their contribution to contrastive learning is smaller and between-class separation may not fully converge within a finite training time. We recommend adding a weighting parameter before the negative terms when using the Sigmoid-based loss in practice.
Table 4 (continued).
Conclusion
This paper reformulates neural collapse (NC) in imbalanced datasets and open-set scenarios. Unlike the prior works that use globally averaged losses, we analyze the minimizers of class-wise (CW) averaged losses re-balanced by sample frequency of each class. When the CW averaged losses reach their minima, the sample features and the classifier vectors form a standard NC, on both balanced and imbalanced datasets. Furthermore, we study in an open-set scenario that includes empty classes, the geometric structure of features and classifier vectors under extreme conditions. In the open-set scenario, when the CW averaged losses achieve their minima, a standard NC still formed on the known classes that contain samples. For the unknown classes that contain no samples, the classifier vectors collapse into a single vector, which is orthogonal to the classifier vectors of the known classes. Finally, for contrastive learning on imbalanced datasets, the losses re-balanced by the inverse sample frequency can also achieve standard NC.
Data Availability. The original CIFAR10 and CIFAR100 datasets used in this paper are publicly available, see https://cave.cs.toronto.edu/kriz/cifar.html for details.
Acknowledgments and Disclosure of 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 Natural Science Foundation of Ningxia Province (Grant No. 2025AAC020002). This work was also supported by the Intelligent Computing Center of Shenzhen University.
Appendix: Supplementary Material
This supplementary material provides additional experimental settings and results, as well as complete proofs of the theoretical results presented in the main paper.
Experimental Settings and More Results
We summarize the experimental settings for supervised classification and supervised contrastive training, and provide additional results for ResNet18 and ViT-Tiny on CIFAR10 and CIFAR100.
Experimental Settings
We conduct experiments using ResNet18 and ViT-Tiny on CIFAR10 and CIFAR100 [14 ] to verify the theorems. Table S.1 summarizes the detailed training settings for classification, open-set scenarios, and supervised contrastive learning. All models are trained from scratch. The feature dimensions are d = 512 d = 512 d = 512 for ResNet18 and d = 192 d = 192 d = 192 for ViT-Tiny. No additional projection head or terminal ReLU activation is used. All input images are channel-wise normalized, without weight decay, feature regularization, warmup, label smoothing, or other data augmentation. For optimization, SGD is with a momentum of 0.9, and AdamW is with ( β 1 , β 2 ) = ( 0.9 , 0.999 ) (\beta_{1},\beta_{2}) = (0.9,0.999) ( β 1 , β 2 ) = ( 0.9 , 0.999 ) .
Table S.1. Detailed experimental settings.
Table S.2. The number of samples, n max n_{\max} n m a x , of the largest class in CIFAR10-LT and CIFAR100-LT for classification and contrastive learning.
We achieve CIFAR10-LT and CIFAR100-LT [3 ] by sampling from the original CIFAR10 and CIFAR100, such that the number of samples in class k k k is
n k = ⌊ n max ∗ I F − ( k − 1 ) / ( K − 1 ) ⌋ , I F ∈ { 1 , 10 , 50 , 100 } , k ∈ [ K ] , K ∈ { 10 , 100 } . (25) n_k = \left\lfloor n_{\max} * \mathrm{IF}^{-(k-1)/(K-1)} \right\rfloor,\quad\mathrm{IF} \in\{1,10,50,100\},\quad k \in[K],\quad K \in\{10,100\}. \tag*{(25)} n k = ⌊ n m a x ∗ IF − ( k − 1 ) / ( K − 1 ) ⌋ , IF ∈ { 1 , 10 , 50 , 100 } , k ∈ [ K ] , K ∈ { 10 , 100 } . (25)
For classification experiments, n max = 5000 n_{\max}=5000 n m a x = 5000 on CIFAR10 and n max = 500 n_{\max}=500 n m a x = 500 on CIFAR100, and IF = 1 =1 = 1 corresponds to the original balanced datasets. For supervised contrastive learning, we construct long-tailed datasets using the same sampling rules but set n max n_{\max} n m a x to a smaller value to obtain smaller long-tailed datasets, which accelerates the convergence of the models in contrastive learning on the imbalanced datasets.
More Results on Open-set Scenario
Table S.3 reports the results of ViT-Tiny trained on CIFAR10 and CIFAR100 in open-set scenarios. In total, ViT-Tiny exhibits the same behaviors predicted by Theorems 2 and 3 , demonstrating that the theoretical conclusions are not specific to the CNN architecture.
For the known classes, k ∈ [ K 1 ] k \in[K_1] k ∈ [ K 1 ] , their sample features exhibit strong within-class collapse, as indicated by s p o s x x s_{\mathrm{pos}}^{\mathrm{xx}} s pos xx being close to 1 in most configurations. Meanwhile, their classifier vectors approximately form an ETF, with s n e g w w s_{\mathrm{neg}}^{\mathrm{ww}} s neg ww closely matching the theoretical value − 1 / ( K 1 − 1 ) -1/(K_1-1) − 1/ ( K 1 − 1 ) . For example, on CIFAR100 with K 1 = 30 K_1=30 K 1 = 30 , the mean and standard deviation of s n e g w w s_{\mathrm{neg}}^{\mathrm{ww}} s neg ww are − 0.0345 ± 0.0010 -0.0345\pm0.0010 − 0.0345 ± 0.0010 for the model trained by CE, and they are − 0.0345 ± 0.0005 -0.0345\pm0.0005 − 0.0345 ± 0.0005 for the model trained by BCE, both closely matching the theoretical value − 1 / 29 ≈ − 0.0345 -1/29\approx-0.0345 − 1/29 ≈ − 0.0345 .
The classifier vectors, { w j : K 1 < j ≤ K } \{w_j: K_1<j\le K\} { w j : K 1 < j ≤ K } , for the empty unknown classes also exhibit the predicted collapse behavior. s e m p w w s_{\mathrm{emp}}^{\mathrm{ww}} s emp ww is consistently close to 1, indicating that the classifier vectors of the empty classes become nearly identical. Meanwhile, s e m p 2 w w s_{\mathrm{emp2}}^{\mathrm{ww}} s emp2 ww remains close to 0, showing that these collapsed empty-class classifier vectors are approximately orthogonal to the classifier vectors of the known classes. When ∥ x ~ ∥ \|\tilde{x}\| ∥ x ~ ∥ is close to zero, the similarities between the empty-class classifier vectors { w j : K 1 < j ≤ K } \{w_j: K_1<j\le K\} { w j : K 1 < j ≤ K } and x ~ \tilde{x} x ~ are correspondingly small. For example, for the model trained by CE on CIFAR100 with K 1 = 50 K_1=50 K 1 = 50 , ∥ x ~ ∥ = 0.0013 \|\tilde{x}\|=0.0013 ∥ x ~ ∥ = 0.0013 and s e m p w x = − 0.0442 ± 0.0003 s_{\mathrm{emp}}^{\mathrm{wx}}=-0.0442\pm0.0003 s emp wx = − 0.0442 ± 0.0003 , which does not conform to the conclusion of the theorem. We believe this stems from the fact that when the magnitude of x ~ \tilde{x} x ~ is too small, its direction is prone to being affected by interference. In contrast, when the magnitude of x ~ \tilde{x} x ~ is large enough, the empty-class classifier vectors become strongly aligned with the direction predicted by the theory. For the model trained by BCE on CIFAR100 with K 1 = 30 K_1=30 K 1 = 30 , ∥ x ~ ∥ = 0.0808 \|\tilde{x}\|=0.0808 ∥ x ~ ∥ = 0.0808 and s e m p w x = − 1.000 ± 0.0000 s_{\mathrm{emp}}^{\mathrm{wx}}=-1.000\pm0.0000 s emp wx = − 1.000 ± 0.0000 .
In total, the experimental results of ViT-Tiny consistently reproduce the similar geometric structures observed in the experiments of ResNet18, including within-class collapse, ETF-like geometry among known-class classifiers, collapse of empty-class classifiers, and their near orthogonality to the known-class classifiers.
Statistical Results for Models Trained on Imbalanced Datasets
Figs. S.1–S.4 visually present statistical results for ResNet18 and ViT-Tiny trained on different imbalanced datasets. Consistent with the conclusions of the theorem, for models trained with CW averaged losses, their negative scaled similarity γ w k T x ~ j \gamma w_k^{\mathsf{T}}\tilde{x}_j γ w k T x ~ j is close to the NC value − γ / ( K − 1 ) -\gamma/(K-1) − γ / ( K − 1 ) in most cases, especially for the models trained with BCE, where this remains true even as the IF increases. In contrast, for models trained with G. averaged losses, the negative feature similarity becomes increasingly more dispersed as the IF increases. For the models trained by different losses, their positive similarity remains close to γ \gamma γ in most settings. For the BCE loss, the learned bias also tends toward its theoretical value.
Table S.3. Statistical results (mean ± \pm ± std) for different metrics of ViT-Tiny trained by CE and BCE on CIFAR10 and CIFAR100 with K − K 1 K-K_1 K − K 1 empty classes. The CE and BCE are class-wise averaged using Eqs. (12) and (14) .
Similarity Matrices for Models Trained on Imbalanced Datasets
Figs. S.5-S.13 present the similarity matrices of feature centers and classifier vectors for ResNet18 trained with CW averaged losses and G. averaged losses. For models trained with CW averaged losses, the off-diagonal values in the similarity matrices are predominantly close to the NC value − 1 / ( K − 1 ) -1/(K-1) − 1/ ( K − 1 ) , consistent with the conclusion of the theorem. In contrast, for models trained with G. averaged losses, the between-class separation becomes obviously diverse, manifested as a gradual increase in the off-diagonal values of the matrix from the upper-left to the lower-right corner, exhibiting a clear correlation with the sample frequencies from the head classes to the tail classes. These results demonstrate that on imbalanced datasets, the CW. averaged losses maintain balanced between-class separability, whereas the G. averaged losses do not.
Table S.3 (continued).
Figure S.1. Distributions of positive and negative scaled similarities and biases for ResNet18 trained on CIFAR10-LT. “CW” and “G.” denote class-wise and globally averaged losses, respectively.
Figure S.2. Distributions of positive and negative scaled similarities and biases for ResNet18 trained on CIFAR100-LT. “CW” and “G.” denote class-wise and globally averaged losses, respectively.
Figure S.3. Distributions of positive and negative scaled similarities and biases for ViT-Tiny trained on CIFAR10-LT. “CW” and “G.” denote class-wise and globally averaged losses, respectively.
Figure S.4. Distributions of positive and negative scaled similarities and biases for ViT-Tiny trained on CIFAR100-LT. “CW” and “G.” denote class-wise and globally averaged losses, respectively.
Figure S.5. Similarity matrices for class centers { x ˉ k } k = 1 K \{\bar{x}_k\}_{k=1}^{K} { x ˉ k } k = 1 K and classifier vectors { w k } k = 1 K \{w_k\}_{k=1}^{K} { w k } k = 1 K of ResNet18 trained with BCE on CIFAR10-LT with IF = 10.
Figure S.6. Similarity matrices for class centers { x ˉ k } k = 1 K \{\bar{x}_k\}_{k=1}^{K} { x ˉ k } k = 1 K and classifier vectors { w k } k = 1 K \{w_k\}_{k=1}^{K} { w k } k = 1 K of ResNet18 trained with BCE on CIFAR10-LT with IF = 50.
Figure S.7. Similarity matrices for class centers { x ˉ k } k = 1 K \{\bar{x}_k\}_{k=1}^{K} { x ˉ k } k = 1 K and classifier vectors { w k } k = 1 K \{w_k\}_{k=1}^{K} { w k } k = 1 K of ResNet18 trained with BCE on CIFAR10-LT with IF = 100.
Figure S.8. Similarity matrices for class centers { x ˉ k } k = 1 K \{\bar{x}_k\}_{k=1}^{K} { x ˉ k } k = 1 K and classifier vectors { w k } k = 1 K \{w_k\}_{k=1}^{K} { w k } k = 1 K of ResNet18 trained with CE on CIFAR10-LT with IF = 10.
Figure S.9. Similarity matrices for class centers { x ˉ k } k = 1 K \{\bar{x}_k\}_{k=1}^{K} { x ˉ k } k = 1 K and classifier vectors { w k } k = 1 K \{w_k\}_{k=1}^{K} { w k } k = 1 K of ResNet18 trained with CE on CIFAR10-LT with IF = 50.
(a) CW averaged CE
(b) G. averaged CE
Figure S.10. Similarity matrices for class centers { x ˉ k } k = 1 K \{\bar{x}_k\}_{k=1}^{K} { x ˉ k } k = 1 K and classifier vectors { w k } k = 1 K \{w_k\}_{k=1}^{K} { w k } k = 1 K of ResNet18 trained with CE on CIFAR10-LT with IF = 100.
(a) CW averaged BCE
(b) G. averaged BCE
Figure S.11. Similarity matrices for class centers { x ˉ k } k = 1 K \{\bar{x}_k\}_{k=1}^{K} { x ˉ k } k = 1 K and classifier vectors { w k } k = 1 K \{w_k\}_{k=1}^{K} { w k } k = 1 K of ResNet18 trained with BCE on CIFAR100-LT with IF = 10.
(a) CW averaged BCE
(b) G. averaged BCE
Figure S.12. Similarity matrices for class centers { x ˉ k } k = 1 K \{\bar{x}_k\}_{k=1}^{K} { x ˉ k } k = 1 K and classifier vectors { w k } k = 1 K \{w_k\}_{k=1}^{K} { w k } k = 1 K of ResNet18 trained with BCE on CIFAR100-LT with IF = 50.
(a) CW averaged BCE
(b) G. averaged BCE
Figure S.13. Similarity matrices for class centers { x ˉ k } k = 1 K \{\bar{x}_k\}_{k=1}^{K} { x ˉ k } k = 1 K and classifier vectors { w k } k = 1 K \{w_k\}_{k=1}^{K} { w k } k = 1 K of ResNet18 trained with BCE on CIFAR100-LT with IF = 100.
Proofs
We provide the proof of the theorems in our main paper, along with the necessary lemmas.
Basics
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.
Definition S.1 (K K K -simplex ETF) A K K 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 ) . (26) M = \sqrt{\frac{K}{K-1}}P\left(I_{K}-\frac{1}{K}\mathbf{1}_{K}\mathbf{1}_{K}^{\mathsf{T}}\right). \tag*{(26)} M = K − 1 K P ( I K − K 1 1 K 1 K T ) . (26) 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 ( d ≥ K ) P\in\mathbb{R}^{d\times K}(d\ge K) P ∈ R d × 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 ) . (27) M^{\mathsf{T}}M=\frac{K}{K-1}\left(I_{K}-\frac{1}{K}\mathbf{1}_{K}\mathbf{1}_{K}^{\mathsf{T}}\right). \tag*{(27)} M T M = K − 1 K ( I K − K 1 1 K 1 K T ) . (27)
Lemma S.2 (Young’s Inequality) Let p , q p,q p , 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 , b ∈ R a,b\in\mathbb{R} a , b ∈ R , we have
∣ a b ∣ ≤ ∣ a ∣ p p + ∣ b ∣ q q , (28) \lvert ab\rvert\le\frac{\lvert a\rvert^{p}}{p}+\frac{\lvert b\rvert^{q}}{q}, \tag*{(28)} ∣ ab ∣ ≤ p ∣ a ∣ p + q ∣ b ∣ q , (28) where the equality holds if and only if ∣ a ∣ p = ∣ b ∣ q \lvert a\rvert^{p}=\lvert b\rvert^{q} ∣ a ∣ p = ∣ b ∣ q . The case for p = q = 2 p=q=2 p = q = 2 is just the AM-GM inequality, ∣ a b ∣ ≤ 1 2 ( a 2 + b 2 ) \lvert ab\rvert\le\frac{1}{2}(a^{2}+b^{2}) ∣ ab ∣ ≤ 2 1 ( a 2 + b 2 ) , and the equality holds if and only if ∣ a ∣ = ∣ b ∣ \lvert a\rvert=\lvert b\rvert ∣ a ∣ = ∣ b ∣ .
Lemma S.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 ) , (29) f(\lambda_{1}x_{1}+\cdots+\lambda_{n}x_{n})\le\lambda_{1}f(x_{1})+\cdots+\lambda_{n}f(x_{n}), \tag*{(29)} f ( λ 1 x 1 + ⋯ + λ n x n ) ≤ λ 1 f ( x 1 ) + ⋯ + λ n f ( x n ) , (29) where
x 1 , x 2 , ⋯ , x n ∈ I , λ 1 , λ 2 , ⋯ , λ n ∈ [ 0 , 1 ] , ∑ i = 1 n λ i = 1. (30) x_{1},x_{2},\cdots,x_{n}\in I,\quad\lambda_{1},\lambda_{2},\cdots,\lambda_{n}\in[0,1],\quad\sum_{i=1}^{n}\lambda_{i}=1. \tag*{(30)} x 1 , x 2 , ⋯ , x n ∈ I , λ 1 , λ 2 , ⋯ , λ n ∈ [ 0 , 1 ] , i = 1 ∑ n λ i = 1. (30) When f f f is strictly convex, let
I 1 = { k : λ k ∈ ( 0 , 1 ] } , and I 2 = { k : λ k = 0 } . (31) I_{1}=\{k:\lambda_{k}\in(0,1]\},\quad\text{and}\quad I_{2}=\{k:\lambda_{k}=0\}. \tag*{(31)} I 1 = { k : λ k ∈ ( 0 , 1 ]} , and I 2 = { k : λ k = 0 } . (31) 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 likes 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 , (32) \exp\left(\frac{\sum_{i=1}^{n}x_{i}}{n}\right)\le\frac{\sum_{i=1}^{n}\exp(x_{i})}{n}, \tag*{(32)} exp ( n ∑ i = 1 n x i ) ≤ n ∑ i = 1 n exp ( x i ) , (32) log ( ∑ i = 1 n x i n ) ≥ ∑ i = 1 n log ( x i ) n , (33) \log\left(\frac{\sum_{i=1}^{n}x_{i}}{n}\right)\ge\frac{\sum_{i=1}^{n}\log(x_{i})}{n}, \tag*{(33)} log ( n ∑ i = 1 n x i ) ≥ n ∑ i = 1 n log ( x i ) , (33) log ( 1 + exp ( ∑ i = 1 n x i n ) ) ≤ 1 n ∑ i = 1 n log ( 1 + exp ( x i ) ) . (34) \log\left(1+\exp\left(\frac{\sum_{i=1}^{n}x_{i}}{n}\right)\right)\le\frac{1}{n}\sum_{i=1}^{n}\log(1+\exp(x_{i})). \tag*{(34)} log ( 1 + exp ( n ∑ i = 1 n x i ) ) ≤ n 1 i = 1 ∑ n log ( 1 + exp ( x i )) . (34)
Proof of Theorem 1
Theorem 1 consists of two parts, namely, the class-wise averaged CE and BCE losses can lead to neural collapse (NC) on imbalanced datasets. We prove them in turn.
Theorem S.4 (BCE) Suppose that each class in dataset D \mathcal{D} D contains at least one sample, and that the feature dimension is greater than the number of classes, i.e., n k = ∣ D k ∣ > 0 n_k = \lvert\mathcal{D}_k \rvert> 0 n k = ∣ D k ∣ > 0 for ∀ k ∈ [ K ] \forall k \in[K] ∀ k ∈ [ K ] and d ≥ K − 1 d \ge K - 1 d ≥ K − 1 . Then, for given scale factor γ \gamma γ and class number K K K , any global minimizer of
f b c e ( W , b , F ) ≜ 1 K ∑ k = 1 K 1 n k ∑ x ( k ) ∈ D k L b c e ( x ( k ) ) (35) f_{\mathrm{bce}}(\mathbf{W}, b, \mathcal{F}) \triangleq\frac{1}{K} \sum_{k=1}^{K} \frac{1}{n_k} \sum_{\mathbf{x}^{(k)} \in\mathcal{D}_k} L_{\mathrm{bce}}(\mathbf{x}^{(k)}) \tag*{(35)} f bce ( W , b , F ) ≜ K 1 k = 1 ∑ K n k 1 x ( k ) ∈ D k ∑ L bce ( x ( k ) ) (35) satisfies
x ( k ) = w k , ∀ x ( k ) ∈ F k , ∀ k ∈ [ K ] , (36) \mathbf{x}^{(k)} = \mathbf{w}_k,\quad\forall\mathbf{x}^{(k)} \in\mathcal{F}_k,\ \forall k \in[K], \tag*{(36)} x ( k ) = w k , ∀ x ( k ) ∈ F k , ∀ k ∈ [ K ] , (36) ⟨ w k , w j ⟩ = − 1 K − 1 , ∀ k ≠ j ∈ [ K ] , (37) \langle\mathbf{w}_k, \mathbf{w}_j \rangle= -\frac{1}{K-1},\quad\forall k \ne j \in[K], \tag*{(37)} ⟨ w k , w j ⟩ = − K − 1 1 , ∀ k = j ∈ [ K ] , (37) b k = b j = b ∗ , ∀ k , j ∈ [ K ] , (38) b_k = b_j = b^{*},\quad\forall k,j \in[K], \tag*{(38)} b k = b j = b ∗ , ∀ k , j ∈ [ K ] , (38) where b ∗ b^{*} b ∗ is the unique real solution of
e γ K − 1 e 2 b − ( K − 2 ) e b − ( K − 1 ) e γ = 0. (39) e^{\frac{\gamma}{K-1}}e^{2b} - (K-2)e^{b} - (K-1)e^{\gamma} = 0. \tag*{(39)} e K − 1 γ e 2 b − ( K − 2 ) e b − ( K − 1 ) e γ = 0. (39)
Proof. According to Lemma S.5, for any c 1 , c 2 > 0 c_1,c_2 > 0 c 1 , c 2 > 0 and any x ( k ) ∈ D k \mathbf{x}^{(k)} \in\mathcal{D}_k x ( k ) ∈ D k with ∀ k ∈ [ K ] \forall k \in[K] ∀ k ∈ [ K ] ,
L b c e ( x ( k ) ) ≥ 1 1 + c 1 ( − γ w k ⊤ x ( k ) + b k ) + 1 1 + c 2 ∑ j = 1 j ≠ k K ( γ w j ⊤ x ( k ) − b j ) + C , L_{\mathrm{bce}}(\mathbf{x}^{(k)}) \ge\frac{1}{1+c_1}\left(-\gamma\mathbf{w}_k^{\top}\mathbf{x}^{(k)} + b_k\right) + \frac{1}{1+c_2}\sum_{\substack{j=1 \\ j \ne k}}^{K}\left(\gamma\mathbf{w}_j^{\top}\mathbf{x}^{(k)} - b_j\right) + C, L bce ( x ( k ) ) ≥ 1 + c 1 1 ( − γ w k ⊤ x ( k ) + b k ) + 1 + c 2 1 j = 1 j = k ∑ K ( γ w j ⊤ x ( k ) − b j ) + C ,
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 ) ) , 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), 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 ) ) ,
and the inequality becomes an equality if and only if
c 1 = exp ( γ w k ⊤ x ( k ) − b k ) , c 2 = exp ( b j − γ w j ⊤ x ( k ) ) , ∀ j ≠ k ∈ [ K ] . c_1 = \exp\left(\gamma\mathbf{w}_k^{\top}\mathbf{x}^{(k)} - b_k\right),\quad c_2 = \exp\left(b_j - \gamma\mathbf{w}_j^{\top}\mathbf{x}^{(k)}\right),\quad\forall j \ne k \in[K]. c 1 = exp ( γ w k ⊤ x ( k ) − b k ) , c 2 = exp ( b j − γ w j ⊤ x ( k ) ) , ∀ j = k ∈ [ K ] .
We take the same c 1 c_1 c 1 and c 2 c_2 c 2 for all X ( k ) \mathbf{X}^{(k)} X ( k ) with ∀ k ∈ [ K ] \forall k \in[K] ∀ k ∈ [ K ] , then
f b c e ( W , b , F ) = 1 K ∑ k = 1 K 1 n k ∑ X ( k ) ∈ D k L b c e ( X ( k ) ) ≥ 1 K ∑ k = 1 K 1 n k ∑ x ( k ) ∈ F k [ 1 1 + c 1 ( − γ w k T x ( k ) + b k ) + 1 1 + c 2 ∑ j = 1 j ≠ k K ( γ w j T x ( k ) − b j ) ] + C = 1 K 1 1 + c 2 ∑ k = 1 K 1 n k ∑ x ( k ) ∈ F k ∑ j = 1 j ≠ k K ( γ w j T x ( k ) − b j ) − 1 K 1 1 + c 1 ∑ k = 1 K 1 n k ∑ x ( k ) ∈ F k ( γ w k T x ( k ) − b k ) + C = 1 K 1 1 + c 2 ∑ k = 1 K 1 n k ∑ x ( k ) ∈ F k ∑ j = 1 K ( γ w j T x ( k ) − b j − γ w k T x ( k ) + b k ) + C + 1 K 1 1 + c 2 ∑ k = 1 K 1 n k ∑ x ( k ) ∈ F k ∑ j = 1 j ≠ k K ( γ w k T x ( k ) − b k ) − 1 K 1 1 + c 1 ∑ k = 1 K 1 n k ∑ x ( k ) ∈ F k ( γ w k T x ( k ) − b k ) = 1 K 1 1 + c 2 [ ∑ k = 1 K 1 n k ∑ x ( k ) ∈ F k ∑ j = 1 K ( γ w j T x ( k ) − γ w k T x ( k ) ) − ∑ k = 1 K 1 n k ∑ x ( k ) ∈ F k ∑ j = 1 K ( b j − b k ) ⏟ 0 ] + 1 K ( K − 1 1 + c 2 − 1 1 + c 1 ) ∑ k = 1 K 1 n k ∑ x ( k ) ∈ F k γ w k T x ( k ) − 1 K ( K − 1 1 + c 2 − 1 1 + c 1 ) ∑ k = 1 K b k + C = 1 1 + c 2 ∑ k = 1 K γ w k T ( x ~ − x ‾ k ) − 1 K ( K − 1 1 + c 2 − 1 1 + c 1 ) ∑ k = 1 K b k + 1 K ( K − 1 1 + c 2 − 1 1 + c 1 ) ∑ k = 1 K γ w k T x ‾ k + C ≜ f ^ b c e ( W , b , F ) , (40) \begin{aligned}
f_{\mathrm{bce}}(\mathbf{W},b,\mathcal{F}) &= \frac{1}{K}\sum_{k=1}^{K}\frac{1}{n_k}\sum_{\mathbf{X}^{(k)}\in\mathcal{D}_k}L_{\mathrm{bce}}(\mathbf{X}^{(k)})\\
&\geq\frac{1}{K}\sum_{k=1}^{K}\frac{1}{n_k}\sum_{\mathbf{x}^{(k)}\in\mathcal{F}_k}\left[\frac{1}{1+c_1}\left(-\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(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{x}^{(k)}-b_j\right)\right]+C\\
&= \frac{1}{K}\frac{1}{1+c_2}\sum_{k=1}^{K}\frac{1}{n_k}\sum_{\mathbf{x}^{(k)}\in\mathcal{F}_k}\sum_{\substack{j=1\\j\ne k}}^{K}\left(\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}-b_j\right)\\
&\quad-\frac{1}{K}\frac{1}{1+c_1}\sum_{k=1}^{K}\frac{1}{n_k}\sum_{\mathbf{x}^{(k)}\in\mathcal{F}_k}\left(\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)}-b_k\right)+C\\
&= \frac{1}{K}\frac{1}{1+c_2}\sum_{k=1}^{K}\frac{1}{n_k}\sum_{\mathbf{x}^{(k)}\in\mathcal{F}_k}\sum_{j=1}^{K}\left(\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}-b_j-\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)}+b_k\right)+C\\
&\quad+\frac{1}{K}\frac{1}{1+c_2}\sum_{k=1}^{K}\frac{1}{n_k}\sum_{\mathbf{x}^{(k)}\in\mathcal{F}_k}\sum_{\substack{j=1\\j\ne k}}^{K}\left(\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)}-b_k\right)\\
&\quad-\frac{1}{K}\frac{1}{1+c_1}\sum_{k=1}^{K}\frac{1}{n_k}\sum_{\mathbf{x}^{(k)}\in\mathcal{F}_k}\left(\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)}-b_k\right)\\
&= \frac{1}{K}\frac{1}{1+c_2}\left[\sum_{k=1}^{K}\frac{1}{n_k}\sum_{\mathbf{x}^{(k)}\in\mathcal{F}_k}\sum_{j=1}^{K}\left(\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}-\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)}\right)-\underbrace{\sum_{k=1}^{K}\frac{1}{n_k}\sum_{\mathbf{x}^{(k)}\in\mathcal{F}_k}\sum_{j=1}^{K}(b_j-b_k)}_{0}\right]\\
&\quad+\frac{1}{K}\left(\frac{K-1}{1+c_2}-\frac{1}{1+c_1}\right)\sum_{k=1}^{K}\frac{1}{n_k}\sum_{\mathbf{x}^{(k)}\in\mathcal{F}_k}\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)}\\
&\quad-\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}{1+c_2}\sum_{k=1}^{K}\gamma\mathbf{w}_k^{\mathsf{T}}(\widetilde{\mathbf{x}}-\overline{\mathbf{x}}_k)-\frac{1}{K}\left(\frac{K-1}{1+c_2}-\frac{1}{1+c_1}\right)\sum_{k=1}^{K}b_k\\
&\quad+\frac{1}{K}\left(\frac{K-1}{1+c_2}-\frac{1}{1+c_1}\right)\sum_{k=1}^{K}\gamma\mathbf{w}_k^{\mathsf{T}}\overline{\mathbf{x}}_k+C\\
&\triangleq\widehat{f}_{\mathrm{bce}}(\mathbf{W},b,\mathcal{F}), \tag*{(40)}
\end{aligned} f bce ( W , b , F ) = K 1 k = 1 ∑ K n k 1 X ( k ) ∈ D k ∑ L bce ( X ( k ) ) ≥ K 1 k = 1 ∑ K n k 1 x ( k ) ∈ F k ∑ 1 + c 1 1 ( − γ w k T x ( k ) + b k ) + 1 + c 2 1 j = 1 j = k ∑ K ( γ w j T x ( k ) − b j ) + C = K 1 1 + c 2 1 k = 1 ∑ K n k 1 x ( k ) ∈ F k ∑ j = 1 j = k ∑ K ( γ w j T x ( k ) − b j ) − K 1 1 + c 1 1 k = 1 ∑ K n k 1 x ( k ) ∈ F k ∑ ( γ w k T x ( k ) − b k ) + C = K 1 1 + c 2 1 k = 1 ∑ K n k 1 x ( k ) ∈ F k ∑ j = 1 ∑ K ( γ w j T x ( k ) − b j − γ w k T x ( k ) + b k ) + C + K 1 1 + c 2 1 k = 1 ∑ K n k 1 x ( k ) ∈ F k ∑ j = 1 j = k ∑ K ( γ w k T x ( k ) − b k ) − K 1 1 + c 1 1 k = 1 ∑ K n k 1 x ( k ) ∈ F k ∑ ( γ w k T x ( k ) − b k ) = K 1 1 + c 2 1 k = 1 ∑ K n k 1 x ( k ) ∈ F k ∑ j = 1 ∑ K ( γ w j T x ( k ) − γ w k T x ( k ) ) − 0 k = 1 ∑ K n k 1 x ( k ) ∈ F k ∑ j = 1 ∑ K ( b j − b k ) + K 1 ( 1 + c 2 K − 1 − 1 + c 1 1 ) k = 1 ∑ K n k 1 x ( k ) ∈ F k ∑ γ w k T x ( k ) − K 1 ( 1 + c 2 K − 1 − 1 + c 1 1 ) k = 1 ∑ K b k + C = 1 + c 2 1 k = 1 ∑ K γ w k T ( x − x k ) − K 1 ( 1 + c 2 K − 1 − 1 + c 1 1 ) k = 1 ∑ K b k + K 1 ( 1 + c 2 K − 1 − 1 + c 1 1 ) k = 1 ∑ K γ w k T x k + C ≜ f bce ( W , b , F ) , (40)
where x ~ = 1 K ∑ j = 1 K x ‾ j \widetilde{\mathbf{x}}=\frac{1}{K}\sum_{j=1}^{K}\overline{\mathbf{x}}_j x = K 1 ∑ j = 1 K x j and x ‾ j = 1 n j ∑ x ( j ) ∈ F j x ( j ) \overline{\mathbf{x}}_j=\frac{1}{n_j}\sum_{\mathbf{x}^{(j)}\in\mathcal{F}_j}\mathbf{x}^{(j)} x j = n j 1 ∑ x ( j ) ∈ F j x ( j ) , ∀ j ∈ [ K ] \forall j\in[K] ∀ j ∈ [ K ] .
For the function f ^ b c e ( W , b , F ) \hat{f}_{\mathrm{bce}}(\mathbf{W},\mathbf{b},\mathcal{F}) f ^ bce ( W , b , F ) , its global minima are located at its stationary points in terms of b k b_k b k for ∀ k ∈ [ K ] \forall k \in[K] ∀ k ∈ [ K ] , then
0 = ∂ f ^ b c e ∂ b k = − 1 K ( K − 1 1 + c 2 − 1 1 + c 1 ) . (41) 0 = \frac{\partial\hat{f}_{\mathrm{bce}}}{\partial b_k} = -\frac{1}{K}\left(\frac{K-1}{1+c_2}-\frac{1}{1+c_1}\right). \tag*{(41)} 0 = ∂ b k ∂ f ^ bce = − K 1 ( 1 + c 2 K − 1 − 1 + c 1 1 ) . (41)
Therefore,
f ^ b c e ( W , b , F ) ≥ γ 1 + c 2 ∑ k = 1 K w k T ( x ~ − x ˉ k ) + C . \hat{f}_{\mathrm{bce}}(\mathbf{W},\mathbf{b},\mathcal{F}) \ge\frac{\gamma}{1+c_2}\sum_{k=1}^{K}\mathbf{w}_k^{\mathsf{T}}(\tilde{\mathbf{x}}-\bar{\mathbf{x}}_k)+C. f ^ bce ( W , b , F ) ≥ 1 + c 2 γ k = 1 ∑ K w k T ( x ~ − x ˉ k ) + C .
Furthermore, according to the AM-GM inequality (see Lemma S.2 ), we have
u T v ≥ − ( c 2 ∥ u ∥ 2 2 + 1 2 c ∥ v ∥ 2 2 ) , ∀ u , v ∈ R d , ∀ c > 0 , \mathbf{u}^{\mathsf{T}}\mathbf{v}\ge-\left(\frac{c}{2}\lVert\mathbf{u}\rVert_2^2+\frac{1}{2c}\lVert\mathbf{v}\rVert_2^2\right),\qquad\forall\mathbf{u},\mathbf{v}\in\mathbb{R}^d,\ \forall c>0, u T v ≥ − ( 2 c ∥ u ∥ 2 2 + 2 c 1 ∥ v ∥ 2 2 ) , ∀ u , v ∈ R d , ∀ c > 0 ,
which becomes an equality when v = − c u \mathbf{v}=-c\mathbf{u} v = − c u . Then,
f b c e ( W , b , F ) ≥ f ^ b c e ( W , b , F ) ≥ γ 1 + c 2 ∑ k = 1 K w k T ( x ~ − x ˉ k ) + C ≥ − γ 1 + c 2 ( c 3 2 ∑ k = 1 K ∥ w k ∥ 2 2 + 1 2 c 3 ∑ k = 1 K ∥ x ~ − x ˉ k ∥ 2 2 ) + C = − γ 1 + c 2 [ c 3 2 ∑ k = 1 K ∥ w k ∥ 2 2 + 1 2 c 3 ( ∑ k = 1 K ∥ x ˉ k ∥ 2 2 − K ∥ x ~ ∥ 2 2 ) ] + C (42) \begin{aligned}
f_{\mathrm{bce}}(\mathbf{W},\mathbf{b},\mathcal{F})\ge\hat{f}_{\mathrm{bce}}(\mathbf{W},\mathbf{b},\mathcal{F})\ge\frac{\gamma}{1+c_2}\sum_{k=1}^{K}\mathbf{w}_k^{\mathsf{T}}(\tilde{\mathbf{x}}-\bar{\mathbf{x}}_k)+C \\
&\ge-\frac{\gamma}{1+c_2}\left(\frac{c_3}{2}\sum_{k=1}^{K}\lVert\mathbf{w}_k\rVert_2^2+\frac{1}{2c_3}\sum_{k=1}^{K}\lVert\tilde{\mathbf{x}}-\bar{\mathbf{x}}_k\rVert_2^2\right)+C \\
&=-\frac{\gamma}{1+c_2}\left[\frac{c_3}{2}\sum_{k=1}^{K}\lVert\mathbf{w}_k\rVert_2^2+\frac{1}{2c_3}\left(\sum_{k=1}^{K}\lVert\bar{\mathbf{x}}_k\rVert_2^2-K\lVert\tilde{\mathbf{x}}\rVert_2^2\right)\right]+C \tag*{(42)}
\end{aligned} f bce ( W , b , F ) ≥ f ^ bce ( W , b , F ) ≥ 1 + c 2 γ k = 1 ∑ K w k T ( x ~ − x ˉ k ) + C ≥ − 1 + c 2 γ ( 2 c 3 k = 1 ∑ K ∥ w k ∥ 2 2 + 2 c 3 1 k = 1 ∑ K ∥ x ~ − x ˉ k ∥ 2 2 ) + C = − 1 + c 2 γ [ 2 c 3 k = 1 ∑ K ∥ w k ∥ 2 2 + 2 c 3 1 ( k = 1 ∑ K ∥ x ˉ k ∥ 2 2 − K ∥ x ~ ∥ 2 2 ) ] + C (42)
≥ − γ 1 + c 2 ( c 3 2 K + 1 2 c 3 K ) + γ 1 + c 2 1 2 c 3 K ∥ x ~ ∥ 2 2 + C (43) \ge-\frac{\gamma}{1+c_2}\left(\frac{c_3}{2}K+\frac{1}{2c_3}K\right)+\frac{\gamma}{1+c_2}\frac{1}{2c_3}K\lVert\tilde{\mathbf{x}}\rVert_2^2+C \tag*{(43)} ≥ − 1 + c 2 γ ( 2 c 3 K + 2 c 3 1 K ) + 1 + c 2 γ 2 c 3 1 K ∥ x ~ ∥ 2 2 + C (43)
≥ − γ 1 + c 2 ( c 3 2 K + 1 2 c 3 K ) + C , (44) \ge-\frac{\gamma}{1+c_2}\left(\frac{c_3}{2}K+\frac{1}{2c_3}K\right)+C, \tag*{(44)} ≥ − 1 + c 2 γ ( 2 c 3 K + 2 c 3 1 K ) + C , (44)
where inequality (S.19) becomes an equality if and only if
c 3 w k = x ˉ k − x ~ , ∀ k ∈ [ K ] , ∀ c 3 > 0 , (45) c_3\mathbf{w}_k=\bar{\mathbf{x}}_k-\tilde{\mathbf{x}},\qquad\forall k\in[K],\ \forall c_3>0, \tag*{(45)} c 3 w k = x ˉ k − x ~ , ∀ k ∈ [ K ] , ∀ c 3 > 0 , (45)
inequality (S.20) becomes an equality if and only if
1 = ∥ x ˉ k ∥ = ∥ 1 n k ∑ x ( k ) ∈ F k x ( k ) ∥ ≤ 1 n k ∑ x ( k ) ∈ F k ∥ x ( k ) ∥ = 1 1=\lVert\bar{\mathbf{x}}_k\rVert=\left\lVert\frac{1}{n_k}\sum_{\mathbf{x}^{(k)}\in\mathcal{F}_k}\mathbf{x}^{(k)}\right\rVert\le\frac{1}{n_k}\sum_{\mathbf{x}^{(k)}\in\mathcal{F}_k}\lVert\mathbf{x}^{(k)}\rVert=1 1 = ∥ x ˉ k ∥ = n k 1 x ( k ) ∈ F k ∑ x ( k ) ≤ n k 1 x ( k ) ∈ F k ∑ ∥ x ( k ) ∥ = 1
⟺ x ( k ) = x ˉ k , ∀ x ( k ) ∈ F k , ∀ k ∈ [ K ] , (46) \Longleftrightarrow\quad\mathbf{x}^{(k)}=\bar{\mathbf{x}}_k,\ \forall\mathbf{x}^{(k)}\in\mathcal{F}_k,\quad\forall k\in[K], \tag*{(46)} ⟺ x ( k ) = x ˉ k , ∀ x ( k ) ∈ F k , ∀ k ∈ [ K ] , (46)
and, the inequality (S.21) becomes an equality if and only if
x ~ = 0 , (47) \tilde{\mathbf{x}}=0, \tag*{(47)} x ~ = 0 , (47)
implying
c 3 w k = x ˉ k ⟹ ∥ c 3 w k ∥ 2 2 = ∥ x ˉ k ∥ 2 2 ⟹ S .23 c 3 2 = 1 c_3\mathbf{w}_k=\bar{\mathbf{x}}_k\quad\Longrightarrow\quad\lVert c_3\mathbf{w}_k\rVert_2^2=\lVert\bar{\mathbf{x}}_k\rVert_2^2\quad\overset{\mathrm{S.23}}{\Longrightarrow}\quad c_3^2=1 c 3 w k = x ˉ k ⟹ ∥ c 3 w k ∥ 2 2 = ∥ x ˉ k ∥ 2 2 ⟹ S.23 c 3 2 = 1
⟹ c 3 = 1 and w k = x ( k ) , ∀ x ( k ) ∈ F k , ∀ k ∈ [ K ] . \Longrightarrow\quad c_3=1\ \text{and}\ \mathbf{w}_k=\mathbf{x}^{(k)},\quad\forall\mathbf{x}^{(k)}\in\mathcal{F}_k,\ \forall k\in[K]. ⟹ c 3 = 1 and w k = x ( k ) , ∀ x ( k ) ∈ F k , ∀ k ∈ [ K ] .
Combining Eqs. (S.21) and (S.25), we get
f b c e ( W , b , F ) ≥ − γ 1 + c 2 ( c 3 2 K + 1 2 c 3 K ) + C = − γ K 1 + c 2 + C , (48) f_{\mathrm{bce}}(\mathbf{W},\mathbf{b},\mathcal{F}) \ge-\frac{\gamma}{1+c_2}\left(\frac{c_3}{2}K+\frac{1}{2c_3}K\right)+C=-\frac{\gamma K}{1+c_2}+C, \tag*{(48)} f bce ( W , b , F ) ≥ − 1 + c 2 γ ( 2 c 3 K + 2 c 3 1 K ) + C = − 1 + c 2 γ K + C , (48)
which becomes an equality if and only if Eqs. (S.39), (S.40), (S.22), (S.23), and (S.24) hold.
When Eqs. (S.22), (S.23), and (S.24) hold, one can deduce that
c 1 = exp ( γ w k T x ( k ) − b k ) = exp ( γ ∥ w k ∥ 2 2 − b k ) , ∀ k ∈ [ K ] , (49) c_1=\exp\left(\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)}-b_k\right)=\exp\left(\gamma\lVert\mathbf{w}_k\rVert_2^2-b_k\right),\quad\forall k\in[K], \tag*{(49)} c 1 = exp ( γ w k T x ( k ) − b k ) = exp ( γ ∥ w k ∥ 2 2 − b k ) , ∀ k ∈ [ K ] , (49)
c 2 = exp ( b j − γ w j T x ( k ) ) = exp ( b j − γ w k T w j ) , ∀ j ≠ k ∈ [ K ] . (50) c_2=\exp\left(b_j-\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}\right)=\exp\left(b_j-\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{w}_j\right),\quad\forall j\ne k\in[K]. \tag*{(50)} c 2 = exp ( b j − γ w j T x ( k ) ) = exp ( b j − γ w k T w j ) , ∀ j = k ∈ [ K ] . (50)
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 ] , (51) \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*{(51)} γ ∥ w k ∥ 2 2 − b k = γ ∥ w j ∥ 2 2 − b j , ∀ k , j ∈ [ K ] , (51)
γ w k T w j − b j = γ w k T w ℓ − b ℓ , ∀ j ≠ ℓ ∈ [ K ] , ∀ k ∈ [ K ] . (52) \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*{(52)} γ w k T w j − b j = γ w k T w ℓ − b ℓ , ∀ j = ℓ ∈ [ K ] , ∀ k ∈ [ K ] . (52)
In the normalized feature space, Eq. (S.28) implies
γ ∥ w k ∥ 2 2 − b k = γ ∥ w j ∥ 2 2 − b j ⇒ γ − b k = γ − b j ⇔ b k = b j , ∀ k , j ∈ [ K ] . (53) \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*{(53)} γ ∥ w k ∥ 2 2 − b k = γ ∥ w j ∥ 2 2 − b j ⇒ γ − b k = γ − b j ⇔ b k = b j , ∀ k , j ∈ [ K ] . (53)
Therefore, at the minimum points of f b c e f_{\mathrm{bce}} f bce , one can write b = b ⋆ 1 \mathbf{b}=b^\star\mathbf{1} b = b ⋆ 1 for some b ⋆ ∈ R b^\star\in\mathbb{R} b ⋆ ∈ R . Then, from Eq. (S.29),
γ w k T w j = γ w k T w ℓ ⇒ w k T w j = w k T w ℓ , ∀ j ≠ ℓ ∈ [ K ] , ∀ k ∈ [ K ] , (54) \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*{(54)} γ w k T w j = γ w k T w ℓ ⇒ w k T w j = w k T w ℓ , ∀ j = ℓ ∈ [ K ] , ∀ k ∈ [ K ] , (54)
and from Eqs. (S.22), (S.23), and (S.24) hold, one deduces that ∑ k = 1 K w k = 0 \sum_{k=1}^{K}\mathbf{w}_k=0 ∑ k = 1 K w k = 0 implying
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 ] . (55) \begin{aligned}
1=\lVert\mathbf{w}_k\rVert_2^2=-\sum_{\substack{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*{(55)}
\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 ] . (55)
Plugging Eqs. (S.30), (S.32) into Eqs. (S.26), (S.27),
c 1 = exp ( γ − b ⋆ ) and c 2 = exp ( b ⋆ + γ K − 1 ) . (56) c_1=\exp(\gamma-b^\star)\quad\text{and}\quad c_2=\exp\left(b^\star+\frac{\gamma}{K-1}\right). \tag*{(56)} c 1 = exp ( γ − b ⋆ ) and c 2 = exp ( b ⋆ + K − 1 γ ) . (56)
When f b c e f_{\mathrm{bce}} f bce defined in Eq. (S.11) achieves its minimum value, it theoretically satisfies
0 = ∂ f b c e ∂ b k = 1 K ∑ k = 1 K 1 n k ∑ x ( k ) ∈ F k ( 1 − 1 1 + exp ( − γ w k T x ( k ) + b k ) ) − 1 K ∑ j = 1 K 1 n j ∑ x ( j ) ∈ F j ∑ k = 1 k ≠ j K ( 1 − 1 1 + exp ( γ w k T x ( j ) − b k ) ) , ∀ k ∈ [ K ] . (57) 0=\frac{\partial f_{\mathrm{bce}}}{\partial b_k}=\frac{1}{K}\sum_{k=1}^{K}\frac{1}{n_k}\sum_{\mathbf{x}^{(k)}\in\mathcal{F}_k}\left(1-\frac{1}{1+\exp\left(-\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)}+b_k\right)}\right)
-\frac{1}{K}\sum_{j=1}^{K}\frac{1}{n_j}\sum_{\mathbf{x}^{(j)}\in\mathcal{F}_j}\sum_{\substack{k=1\\k\ne j}}^{K}\left(1-\frac{1}{1+\exp\left(\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(j)}-b_k\right)}\right),\quad\forall k\in[K]. \tag*{(57)} 0 = ∂ b k ∂ f bce = K 1 k = 1 ∑ K n k 1 x ( k ) ∈ F k ∑ ( 1 − 1 + exp ( − γ w k T x ( k ) + b k ) 1 ) − K 1 j = 1 ∑ K n j 1 x ( j ) ∈ F j ∑ k = 1 k = j ∑ K ( 1 − 1 + exp ( γ w k T x ( j ) − b k ) 1 ) , ∀ k ∈ [ K ] . (57)
thus, combining Eqs. (S.23) and (S.32),
0 = 1 − 1 1 + exp ( − γ + b k ) − ( K − 1 ) ( 1 − 1 1 + exp ( − γ K − 1 − b k ) ) ⇔ 1 1 + exp ( γ − b k ) = K − 1 1 + exp ( γ K − 1 + b k ) ⇔ e γ K − 1 e 2 b k − ( K − 2 ) e b k − ( K − 1 ) e γ = 0 , ∀ k ∈ [ K ] , (58) \begin{aligned}
0 &= 1-\frac{1}{1+\exp(-\gamma+b_k)}-(K-1)\left(1-\frac{1}{1+\exp\left(-\frac{\gamma}{K-1}-b_k\right)}\right) \\
&\Leftrightarrow\frac{1}{1+\exp(\gamma-b_k)}=\frac{K-1}{1+\exp\left(\frac{\gamma}{K-1}+b_k\right)} \\
&\Leftrightarrow e^{\frac{\gamma}{K-1}}e^{2b_k}-(K-2)e^{b_k}-(K-1)e^\gamma=0,\quad\forall k\in[K], \tag*{(58)}
\end{aligned} 0 = 1 − 1 + exp ( − γ + b k ) 1 − ( K − 1 ) ( 1 − 1 + exp ( − K − 1 γ − b k ) 1 ) ⇔ 1 + exp ( γ − b k ) 1 = 1 + exp ( K − 1 γ + b k ) K − 1 ⇔ e K − 1 γ e 2 b k − ( K − 2 ) e b k − ( K − 1 ) e γ = 0 , ∀ k ∈ [ K ] , (58)
which satisfies Eq. (S.18).
In total,
f b c e ( W , b , F ) ≥ − γ K 1 + c 2 − γ K 1 + c 2 + log ( 1 + c 1 ) + C − c 1 1 + c 1 log ( c 1 ) + ( K − 1 ) ( log ( 1 + c 2 ) − c 2 1 + c 2 log ( c 2 ) ) = S.33,S.18 log ( 1 + e b ∗ − γ ) + ( K − 1 ) log ( 1 + e − b ∗ − γ K − 1 ) , (59) \begin{aligned}
f_{\mathrm{bce}}(\mathbf{W},\mathbf{b},\mathcal{F}) &\ge-\frac{\gamma K}{1+c_2}-\frac{\gamma K}{1+c_2}+\log(1+c_1)+C \\
&\quad-\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) \\
&\overset{\text{S.33,S.18}}{=} \log\left(1+e^{b^*-\gamma}\right)+(K-1)\log\left(1+e^{-b^*-\frac{\gamma}{K-1}}\right), \tag*{(59)}
\end{aligned} f bce ( W , b , F ) ≥ − 1 + c 2 γ K − 1 + c 2 γ K + log ( 1 + c 1 ) + C − 1 + c 1 c 1 log ( c 1 ) + ( K − 1 ) ( log ( 1 + c 2 ) − 1 + c 2 c 2 log ( c 2 ) ) = S.33,S.18 log ( 1 + e b ∗ − γ ) + ( K − 1 ) log ( 1 + e − b ∗ − K − 1 γ ) , (59)
and f b c e f_{\mathrm{bce}} f bce achieves this constant lower boundary if and only if Eqs. (S.39), (S.40), (S.22), (S.23), (S.24), and (S.35) hold. It is easy deduce Eqs. (S.12), (S.13), and (S.14) from these conditions, and vice versa, which completes the proof.
Lemma S.5 For any X ( k ) ∈ D k X^{(k)}\in\mathcal{D}_k X ( k ) ∈ D k , ∀ k ∈ [ K ] \forall k\in[K] ∀ k ∈ [ K ] , with any c 1 , c 2 > 0 c_1,c_2>0 c 1 , c 2 > 0 and γ > 0 \gamma>0 γ > 0 , the BCE loss L b c e ( X ( k ) ) L_{\mathrm{bce}}(X^{(k)}) L bce ( X ( k ) ) defined in Eq. (5) is lower bounded,
L b c e ( X ( k ) ) ≥ 1 1 + c 1 ( − γ w k ⊤ x ( k ) + b k ) + 1 1 + c 2 ∑ j ≠ k K ( γ w j ⊤ x ( k ) − b j ) + C , (60) L_{\mathrm{bce}}(X^{(k)})\ge\frac{1}{1+c_1}\left(-\gamma\mathbf{w}_k^\top\mathbf{x}^{(k)}+b_k\right)+\frac{1}{1+c_2}\sum_{j\ne k}^{K}\left(\gamma\mathbf{w}_j^\top\mathbf{x}^{(k)}-b_j\right)+C, \tag*{(60)} L bce ( X ( k ) ) ≥ 1 + c 1 1 ( − γ w k ⊤ x ( k ) + b k ) + 1 + c 2 1 j = k ∑ K ( γ w j ⊤ x ( k ) − b j ) + C , (60) 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 ) ) . (61) 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*{(61)} 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 ) ) . (61) The inequality becomes an equality if and only if
c 1 = exp ( γ w k ⊤ x ( k ) − b k ) , (62) c_1=\exp\left(\gamma\mathbf{w}_k^\top\mathbf{x}^{(k)}-b_k\right), \tag*{(62)} c 1 = exp ( γ w k ⊤ x ( k ) − b k ) , (62) c 2 = exp ( b j − γ w j ⊤ x ( k ) ) , ∀ j ≠ k ∈ [ K ] . (63) c_2=\exp\left(b_j-\gamma\mathbf{w}_j^\top\mathbf{x}^{(k)}\right),\quad\forall j\ne k\in[K]. \tag*{(63)} c 2 = exp ( b j − γ w j ⊤ x ( k ) ) , ∀ j = k ∈ [ K ] . (63)
Proof. By the concavities of log ( x ) \log(x) log ( x ) , and according to Lemma S.3, the BCE loss L b c e ( X ( k ) ) L_{\mathrm{bce}}(X^{(k)}) L bce ( X ( k ) ) for any X ( k ) ∈ D X^{(k)} \in\mathcal{D} X ( k ) ∈ D can be lower bounded by
L b c e ( X ( k ) ) = log ( 1 + exp ( − γ w k T x ( k ) + b k ) ) + ∑ j = 1 j ≠ k K log ( 1 + exp ( γ w j T x ( k ) − b j ) ) = log ( c 1 1 + c 1 1 + c 1 c 1 + 1 + c 1 1 + c 1 exp ( − γ w k T x ( 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 x ( k ) − b j ) ) ≥ c 1 1 + c 1 log ( 1 + c 1 c 1 ) + 1 1 + c 1 log [ ( 1 + c 1 ) exp ( − γ w k T x ( 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 x ( k ) − b j ) ] = 1 1 + c 1 ( − γ w k T x ( k ) + b k ) + 1 1 + c 2 ∑ j = 1 j ≠ k K ( γ w j T x ( 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 ) ) . (64) \begin{aligned}
L_{\mathrm{bce}}(X^{(k)}) ={}& \log\left(1+\exp\left(-\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)}+b_k\right)\right) + \sum_{\substack{j=1\\j\ne k}}^{K}\log\left(1+\exp\left(\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}-b_j\right)\right)\\
={}& \log\left(\frac{c_1}{1+c_1}\frac{1+c_1}{c_1}+\frac{1+c_1}{1+c_1}\exp\left(-\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(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\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}-b_j\right)\right)\\
\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\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)}+b_k\right)\right]\\
&+(K-1)\frac{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\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}-b_j\right)\right]\\
={}& \frac{1}{1+c_1}\left(-\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(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{x}^{(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*{(64)}
\end{aligned} L bce ( X ( k ) ) = = ≥ = log ( 1 + exp ( − γ w k T x ( k ) + b k ) ) + j = 1 j = k ∑ K log ( 1 + exp ( γ w j T x ( k ) − b j ) ) log ( 1 + c 1 c 1 c 1 1 + c 1 + 1 + c 1 1 + c 1 exp ( − γ w k T x ( 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 x ( k ) − b j ) ) 1 + c 1 c 1 log ( c 1 1 + c 1 ) + 1 + c 1 1 log [ ( 1 + c 1 ) exp ( − γ w k T x ( k ) + b k ) ] + ( K − 1 ) 1 + c 2 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 x ( k ) − b j ) ] 1 + c 1 1 ( − γ w k T x ( k ) + b k ) + 1 + c 2 1 j = 1 j = k ∑ K ( γ w j T x ( 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 ) ) . (64)
The inequality becomes an equality if and only if
1 + c 1 c 1 = ( 1 + c 1 ) exp ( − γ w k T x ( k ) + b k ) or c 1 = 0 or c 1 = + ∞ , \frac{1+c_1}{c_1}=(1+c_1)\exp\left(-\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)}+b_k\right)\quad\text{or}\quad c_1=0\quad\text{or}\quad c_1=+\infty, c 1 1 + c 1 = ( 1 + c 1 ) exp ( − γ w k T x ( k ) + b k ) or c 1 = 0 or c 1 = + ∞ ,
and
1 + c 2 c 2 = ( 1 + c 2 ) exp ( γ w j T x ( k ) − b j ) or c 2 = 0 or c 2 = + ∞ , ∀ j ≠ k ∈ [ K ] . \frac{1+c_2}{c_2}=(1+c_2)\exp\left(\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}-b_j\right)\quad\text{or}\quad c_2=0\quad\text{or}\quad c_2=+\infty,\quad\forall j\ne k\in[K]. c 2 1 + c 2 = ( 1 + c 2 ) exp ( γ w j T x ( k ) − b j ) or c 2 = 0 or c 2 = + ∞ , ∀ j = k ∈ [ K ] .
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 x ( k ) − b k ) , c_1=\exp\left(\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)}-b_k\right), c 1 = exp ( γ w k T x ( k ) − b k ) ,
and
c 2 = exp ( b j − γ w j T x ( k ) ) , ∀ j ≠ k ∈ [ K ] , c_2=\exp\left(b_j-\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}\right),\quad\forall j\ne k\in[K], c 2 = exp ( b j − γ w j T x ( k ) ) , ∀ j = k ∈ [ K ] ,
Eq. (S.37) becomes an equality, which completes the proof.
Theorem S.6 (CE). Suppose that each class in dataset D \mathcal{D} D contains at least one sample, and that the feature dimension is greater than the number of classes, i.e., n k = ∣ D k ∣ > 0 n_k = |\mathcal{D}_k| > 0 n k = ∣ D k ∣ > 0 for ∀ k ∈ [ K ] \forall k \in[K] ∀ k ∈ [ K ] and d ≥ K − 1 d \ge K - 1 d ≥ K − 1 . Then, at any minimum point of loss
f c e ( W , b , F ) ≜ 1 K ∑ k = 1 K 1 n k ∑ X ( k ) L c e ( X ( k ) ) (65) f_{\mathrm{ce}}(\mathbf{W}, \mathbf{b}, \mathcal{F}) \triangleq\frac{1}{K} \sum_{k=1}^{K} \frac{1}{n_k} \sum_{\mathbf{X}^{(k)}} L_{\mathrm{ce}}(\mathbf{X}^{(k)}) \tag*{(65)} f ce ( W , b , F ) ≜ K 1 k = 1 ∑ K n k 1 X ( k ) ∑ L ce ( X ( k ) ) (65) satisfies
x ( k ) = w k , ∀ x ( k ) ∈ F k , ∀ k ∈ [ K ] , (66) \mathbf{x}^{(k)} = \mathbf{w}_k,\quad\forall\mathbf{x}^{(k)} \in\mathcal{F}_k,\ \forall k \in[K], \tag*{(66)} x ( k ) = w k , ∀ x ( k ) ∈ F k , ∀ k ∈ [ K ] , (66) ⟨ w k , w j ⟩ = − 1 K − 1 , ∀ k ≠ j ∈ [ K ] , (67) \langle\mathbf{w}_k, \mathbf{w}_j \rangle= -\frac{1}{K-1},\quad\forall k \ne j \in[K], \tag*{(67)} ⟨ w k , w j ⟩ = − K − 1 1 , ∀ k = j ∈ [ K ] , (67) b k = b j = b ⋆ , ∀ k , j ∈ [ K ] , (68) b_k = b_j = b^\star,\quad\forall k,j \in[K], \tag*{(68)} b k = b j = b ⋆ , ∀ k , j ∈ [ K ] , (68) while b ⋆ ∈ R b^\star\in\mathbb{R} b ⋆ ∈ R could be arbitrary number.
Proof According to Lemma S.7, for any c 1 > 0 c_1 > 0 c 1 > 0 and any X ( k ) ∈ D k \mathbf{X}^{(k)} \in\mathcal{D}_k X ( k ) ∈ D k with ∀ k ∈ [ K ] \forall k \in[K] ∀ k ∈ [ K ] ,
L c e ( X ( k ) ) ≥ ∑ j = 1 K ( γ w j T x ( k ) − b j ) − K ( γ w k T x ( k ) − b k ) ( 1 + c 1 ) ( K − 1 ) + C , L_{\mathrm{ce}}(\mathbf{X}^{(k)}) \ge\frac{\sum_{j=1}^{K}\left(\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)} - b_j\right) - K\left(\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)} - b_k\right)}{(1+c_1)(K-1)} + C, L ce ( X ( k ) ) ≥ ( 1 + c 1 ) ( K − 1 ) ∑ j = 1 K ( γ w j T x ( k ) − b j ) − K ( γ w k T x ( k ) − b k ) + C ,
where
C = c 1 1 + c 1 log ( 1 + c 1 c 1 ) + 1 1 + c 1 log [ ( 1 + c 1 ) ( K − 1 ) ] , 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], C = 1 + c 1 c 1 log ( c 1 1 + c 1 ) + 1 + c 1 1 log [ ( 1 + c 1 ) ( K − 1 ) ] ,
and inequality becomes an equality if and only if
c 1 = [ ( K − 1 ) exp ( ∑ j = 1 K ( γ w j T x ( k ) − b j ) − K ( γ w k T x ( k ) − b k ) K − 1 ) ] − 1 c_1 = \left[(K-1)\exp\left(\frac{\sum_{j=1}^{K}\left(\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)} - b_j\right) - K\left(\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)} - b_k\right)}{K-1}\right)\right]^{-1} c 1 = [ ( K − 1 ) exp ( K − 1 ∑ j = 1 K ( γ w j T x ( k ) − b j ) − K ( γ w k T x ( k ) − b k ) ) ] − 1
and
γ w j T x ( k ) − b j = γ w ℓ T x ( k ) − b ℓ , ∀ j , ℓ ≠ k ∈ [ K ] . \gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)} - b_j = \gamma\mathbf{w}_{\ell}^{\mathsf{T}}\mathbf{x}^{(k)} - b_{\ell},\quad\forall j,\ell\ne k \in[K]. γ w j T x ( k ) − b j = γ w ℓ T x ( k ) − b ℓ , ∀ j , ℓ = k ∈ [ K ] .
We take the same c 1 c_1 c 1 for all X ( k ) ∈ D \mathbf{X}^{(k)} \in\mathcal{D} X ( k ) ∈ D , then one can deduce the following lower bound for the function f c e f_{\mathrm{ce}} f ce
( 1 + c 1 ) ( K − 1 ) ( f c e ( W , b , F ) − C ) = ( 1 + c 1 ) ( K − 1 ) [ 1 K ∑ k = 1 K 1 n k ∑ x ( k ) ∈ D k L c e ( X ( k ) ) − C ] ≥ 1 K ∑ k = 1 K 1 n k ∑ x ( k ) ∈ F k [ ∑ j = 1 K ( γ w j T x ( k ) − b j ) − K ( γ w k T x ( k ) − b k ) ] = 1 K ∑ k = 1 K 1 n k ∑ x ( k ) ∈ F k ∑ j = 1 K γ w j T x ( k ) − ∑ k = 1 K 1 n k ∑ x ( k ) ∈ F k γ w k T x ( k ) − 1 K ∑ k = 1 K ∑ j = 1 K b j + ∑ k = 1 K b k = 1 K ∑ k = 1 K ∑ j = 1 K γ w j T x ˉ k − ∑ k = 1 K γ w k T x ˉ k = γ ∑ k = 1 K w k T ( x ~ − x ˉ k ) . (69) \begin{aligned}
(1+c_1)(K-1)(f_{\mathrm{ce}}(\mathbf{W},\mathbf{b},\mathcal{F})-C)
&= (1+c_1)(K-1)\left[\frac{1}{K}\sum_{k=1}^{K}\frac{1}{n_k}\sum_{\mathbf{x}^{(k)}\in\mathcal{D}_k}L_{\mathrm{ce}}(\mathbf{X}^{(k)})-C\right] \\
&\ge\frac{1}{K}\sum_{k=1}^{K}\frac{1}{n_k}\sum_{\mathbf{x}^{(k)}\in\mathcal{F}_k}\left[\sum_{j=1}^{K}\left(\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}-b_j\right)-K\left(\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)}-b_k\right)\right] \\
&= \frac{1}{K}\sum_{k=1}^{K}\frac{1}{n_k}\sum_{\mathbf{x}^{(k)}\in\mathcal{F}_k}\sum_{j=1}^{K}\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}-\sum_{k=1}^{K}\frac{1}{n_k}\sum_{\mathbf{x}^{(k)}\in\mathcal{F}_k}\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)}-\frac{1}{K}\sum_{k=1}^{K}\sum_{j=1}^{K}b_j+\sum_{k=1}^{K}b_k \\
&= \frac{1}{K}\sum_{k=1}^{K}\sum_{j=1}^{K}\gamma\mathbf{w}_j^{\mathsf{T}}\bar{\mathbf{x}}_k-\sum_{k=1}^{K}\gamma\mathbf{w}_k^{\mathsf{T}}\bar{\mathbf{x}}_k
= \gamma\sum_{k=1}^{K}\mathbf{w}_k^{\mathsf{T}}(\tilde{\mathbf{x}}-\bar{\mathbf{x}}_k). \tag*{(69)}
\end{aligned} ( 1 + c 1 ) ( K − 1 ) ( f ce ( W , b , F ) − C ) = ( 1 + c 1 ) ( K − 1 ) K 1 k = 1 ∑ K n k 1 x ( k ) ∈ D k ∑ L ce ( X ( k ) ) − C ≥ K 1 k = 1 ∑ K n k 1 x ( k ) ∈ F k ∑ [ j = 1 ∑ K ( γ w j T x ( k ) − b j ) − K ( γ w k T x ( k ) − b k ) ] = K 1 k = 1 ∑ K n k 1 x ( k ) ∈ F k ∑ j = 1 ∑ K γ w j T x ( k ) − k = 1 ∑ K n k 1 x ( k ) ∈ F k ∑ γ w k T x ( k ) − K 1 k = 1 ∑ K j = 1 ∑ K b j + k = 1 ∑ K b k = K 1 k = 1 ∑ K j = 1 ∑ K γ w j T x ˉ k − k = 1 ∑ K γ w k T x ˉ k = γ k = 1 ∑ K w k T ( x ~ − x ˉ k ) . (69)
where x ~ = 1 K ∑ j = 1 K x ˉ j \tilde{x} = \frac{1}{K}\sum_{j=1}^{K}\bar{x}_j x ~ = K 1 ∑ j = 1 K x ˉ j and x ˉ j = 1 n j ∑ x ( j ) ∈ F j x ( j ) \bar{x}_j = \frac{1}{n_j}\sum_{x^{(j)}\in\mathcal{F}_j}x^{(j)} x ˉ j = n j 1 ∑ x ( j ) ∈ F j x ( j ) , ∀ j ∈ [ K ] \forall j\in[K] ∀ j ∈ [ K ] .
According to the AM-GM inequality in Lemma S.2,
u ⊤ v ≤ c 2 ∥ u ∥ 2 2 + 1 2 c ∥ v ∥ 2 2 , ∀ u , v ∈ R d , ∀ c > 0 , u^{\top}v \le\frac{c}{2}\lVert u\rVert_2^2+\frac{1}{2c}\lVert v\rVert_2^2,\quad\forall u,v\in\mathbb{R}^{d},\ \forall c>0, u ⊤ v ≤ 2 c ∥ u ∥ 2 2 + 2 c 1 ∥ v ∥ 2 2 , ∀ u , v ∈ R d , ∀ c > 0 ,
which becomes an equality when v = c u v=cu v = c u . Then, based on Eq. (S.46),
( 1 + c 1 ) ( K − 1 ) [ f c e ( W , b , F ) − C ] ≥ γ ∑ k = 1 K w k ( x ~ − x ˉ k ) ≥ − γ c 2 2 ∑ k = 1 K ∥ w k ∥ 2 2 − γ 2 c 2 ∑ k = 1 K ∥ x ~ − x ˉ k ∥ 2 2 = − K γ c 2 2 − γ 2 c 2 ( ∑ k = 1 K ∥ x ˉ k ∥ 2 − K ∥ x ~ ∥ 2 ) , (70) \begin{aligned}
(1+c_1)(K-1)\left[f_{\mathrm{ce}}(\mathbf{W},b,\mathcal{F})-C\right]
&\ge\gamma\sum_{k=1}^{K}w_k(\tilde{x}-\bar{x}_k)\\
&\ge-\gamma\frac{c_2}{2}\sum_{k=1}^{K}\lVert w_k\rVert_2^2-\frac{\gamma}{2c_2}\sum_{k=1}^{K}\lVert\tilde{x}-\bar{x}_k\rVert_2^2\\
&=-K\gamma\frac{c_2}{2}-\frac{\gamma}{2c_2}\left(\sum_{k=1}^{K}\lVert\bar{x}_k\rVert^2-K\lVert\tilde{x}\rVert^2\right), \tag*{(70)}
\end{aligned} ( 1 + c 1 ) ( K − 1 ) [ f ce ( W , b , F ) − C ] ≥ γ k = 1 ∑ K w k ( x ~ − x ˉ k ) ≥ − γ 2 c 2 k = 1 ∑ K ∥ w k ∥ 2 2 − 2 c 2 γ k = 1 ∑ K ∥ x ~ − x ˉ k ∥ 2 2 = − K γ 2 c 2 − 2 c 2 γ ( k = 1 ∑ K ∥ x ˉ k ∥ 2 − K ∥ x ~ ∥ 2 ) , (70)
where the second inequality becomes an equality if and only if
c 2 w k = − x ~ + x ˉ k , ∀ k ∈ [ K ] , ∀ c 2 > 0. c_2w_k=-\tilde{x}+\bar{x}_k,\quad\forall k\in[K],\ \forall c_2>0. c 2 w k = − x ~ + x ˉ k , ∀ k ∈ [ K ] , ∀ c 2 > 0.
Therefore,
f c e ( W , b , F ) ≥ − c 2 γ K 2 ( 1 + c 1 ) ( K − 1 ) − γ 2 c 2 ( 1 + c 1 ) ( K − 1 ) ( ∑ k = 1 K ∥ x ˉ k ∥ 2 − K ∥ x ~ ∥ 2 ) + C ≥ − c 2 γ K 2 ( 1 + c 1 ) ( K − 1 ) − γ 2 c 2 ( 1 + c 1 ) ( K − 1 ) ∑ k = 1 K ∥ x ˉ k ∥ 2 + C = − c 2 γ K 2 ( 1 + c 1 ) ( K − 1 ) − γ 2 c 2 ( 1 + c 1 ) ( K − 1 ) ∑ k = 1 K ∥ 1 n k ∑ x ( k ) ∈ F k x ( k ) ∥ 2 + C ≥ − c 2 γ K 2 ( 1 + c 1 ) ( K − 1 ) − γ 2 c 2 ( 1 + c 1 ) ( K − 1 ) ∑ k = 1 K 1 n k ∑ x ( k ) ∈ F k ∥ x ( k ) ∥ 2 + C = − c 2 γ K 2 ( 1 + c 1 ) ( K − 1 ) − K γ 2 c 2 ( 1 + c 1 ) ( K − 1 ) + C , (71) \begin{aligned}
f_{\mathrm{ce}}(\mathbf{W},b,\mathcal{F})
&\ge-\frac{c_2\gamma K}{2(1+c_1)(K-1)}-\frac{\gamma}{2c_2(1+c_1)(K-1)}\left(\sum_{k=1}^{K}\lVert\bar{x}_k\rVert^2-K\lVert\tilde{x}\rVert^2\right)+C\\
&\ge-\frac{c_2\gamma K}{2(1+c_1)(K-1)}-\frac{\gamma}{2c_2(1+c_1)(K-1)}\sum_{k=1}^{K}\lVert\bar{x}_k\rVert^2+C\\
&= -\frac{c_2\gamma K}{2(1+c_1)(K-1)}-\frac{\gamma}{2c_2(1+c_1)(K-1)}\sum_{k=1}^{K}\left\lVert\frac{1}{n_k}\sum_{x^{(k)}\in\mathcal{F}_k}x^{(k)}\right\rVert^2+C\\
&\ge-\frac{c_2\gamma K}{2(1+c_1)(K-1)}-\frac{\gamma}{2c_2(1+c_1)(K-1)}\sum_{k=1}^{K}\frac{1}{n_k}\sum_{x^{(k)}\in\mathcal{F}_k}\lVert x^{(k)}\rVert^2+C\\
&=-\frac{c_2\gamma K}{2(1+c_1)(K-1)}-\frac{K\gamma}{2c_2(1+c_1)(K-1)}+C, \tag*{(71)}
\end{aligned} f ce ( W , b , F ) ≥ − 2 ( 1 + c 1 ) ( K − 1 ) c 2 γ K − 2 c 2 ( 1 + c 1 ) ( K − 1 ) γ ( k = 1 ∑ K ∥ x ˉ k ∥ 2 − K ∥ x ~ ∥ 2 ) + C ≥ − 2 ( 1 + c 1 ) ( K − 1 ) c 2 γ K − 2 c 2 ( 1 + c 1 ) ( K − 1 ) γ k = 1 ∑ K ∥ x ˉ k ∥ 2 + C = − 2 ( 1 + c 1 ) ( K − 1 ) c 2 γ K − 2 c 2 ( 1 + c 1 ) ( K − 1 ) γ k = 1 ∑ K n k 1 x ( k ) ∈ F k ∑ x ( k ) 2 + C ≥ − 2 ( 1 + c 1 ) ( K − 1 ) c 2 γ K − 2 c 2 ( 1 + c 1 ) ( K − 1 ) γ k = 1 ∑ K n k 1 x ( k ) ∈ F k ∑ ∥ x ( k ) ∥ 2 + C = − 2 ( 1 + c 1 ) ( K − 1 ) c 2 γ K − 2 c 2 ( 1 + c 1 ) ( K − 1 ) K γ + C , (71)
where the second inequality becomes an equality if and only if
x ~ = 1 K ∑ j = 1 K x ˉ j = 0 , (72) \tilde{x}=\frac{1}{K}\sum_{j=1}^{K}\bar{x}_j=0, \tag*{(72)} x ~ = K 1 j = 1 ∑ K x ˉ j = 0 , (72)
and the third inequality becomes an equality if and only if
x ( k ) = x ∗ ( k ) , ∀ x ( k ) , x ∗ ( k ) ∈ F k , ∀ k ∈ [ K ] . (73) x^{(k)}=x_*^{(k)},\quad\forall x^{(k)},x_*^{(k)}\in\mathcal{F}_k,\ \forall k\in[K]. \tag*{(73)} x ( k ) = x ∗ ( k ) , ∀ x ( k ) , x ∗ ( k ) ∈ F k , ∀ k ∈ [ K ] . (73)
From Eqs. (S.47), (S.49), and (S.50), we get
c 2 w k = x ˉ k ⇒ ∥ c 2 w k ∥ 2 = ∥ x ˉ k ∥ 2 ⇒ ( c 2 ) 2 = 1 ⇒ c 2 = 1 , c_{2}w_{k}=\bar{x}_{k}\quad\Rightarrow\quad\lVert c_{2}w_{k}\rVert^{2}=\lVert\bar{x}_{k}\rVert^{2}\quad\Rightarrow\quad(c_{2})^{2}=1\quad\Rightarrow\quad c_{2}=1, c 2 w k = x ˉ k ⇒ ∥ c 2 w k ∥ 2 = ∥ x ˉ k ∥ 2 ⇒ ( c 2 ) 2 = 1 ⇒ c 2 = 1 ,
and
w k = x ( k ) , ∀ x ( k ) ∈ F k , ∀ k ∈ [ K ] . w_{k}=x^{(k)},\ \forall x^{(k)}\in\mathcal{F}_{k},\ \forall k\in[K]. w k = x ( k ) , ∀ x ( k ) ∈ F k , ∀ k ∈ [ K ] .
Plugging Eq. (S.51) into (S.48), we have
f c e ( W , b , F ) ≥ − γ K 2 ( 1 + c 1 ) ( K − 1 ) − K γ 2 ( 1 + c 1 ) ( K − 1 ) + C = − γ K ( 1 + c 1 ) ( K − 1 ) + C . f_{\mathrm{ce}}(W,b,\mathcal{F})\geq-\frac{\gamma K}{2(1+c_{1})(K-1)}-\frac{K\gamma}{2(1+c_{1})(K-1)}+C=-\frac{\gamma K}{(1+c_{1})(K-1)}+C. f ce ( W , b , F ) ≥ − 2 ( 1 + c 1 ) ( K − 1 ) γ K − 2 ( 1 + c 1 ) ( K − 1 ) K γ + C = − ( 1 + c 1 ) ( K − 1 ) γ K + C .
Furthermore, Eqs. (S.47), (S.49), and (S.50) imply
∑ k = 1 K w k = 0. (74) \sum_{k=1}^{K}w_{k}=0. \tag*{(74)} k = 1 ∑ K w k = 0. (74)
Then,
∑ j = 1 K ( γ w j ⊤ x ( k ) − b j ) = γ ( ∑ j = 1 K w j ⊤ ) x ( k ) − ∑ j = 1 K b j = 0 − ∑ j = 1 K b j = − K b ˉ , (75) \sum_{j=1}^{K}\left(\gamma w_{j}^{\top}x^{(k)}-b_{j}\right)=\gamma\left(\sum_{j=1}^{K}w_{j}^{\top}\right)x^{(k)}-\sum_{j=1}^{K}b_{j}=0-\sum_{j=1}^{K}b_{j}=-K\bar{b}, \tag*{(75)} j = 1 ∑ K ( γ w j ⊤ x ( k ) − b j ) = γ ( j = 1 ∑ K w j ⊤ ) x ( k ) − j = 1 ∑ K b j = 0 − j = 1 ∑ K b j = − K b ˉ , (75)
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 ⊤ x ( k ) − b k ) = K ( γ ∥ w k ∥ 2 − b k ) = K γ − K b k . (76) K\left(\gamma w_{k}^{\top}x^{(k)}-b_{k}\right)=K\left(\gamma\lVert w_{k}\rVert^{2}-b_{k}\right)=K\gamma-Kb_{k}. \tag*{(76)} K ( γ w k ⊤ x ( k ) − b k ) = K ( γ ∥ w k ∥ 2 − b k ) = K γ − K b k . (76)
Combining Eqs. (S.59), (S.60), (S.52), and (S.53), we have
c 1 = [ ( K − 1 ) exp ( ∑ j = 1 K ( γ w j ⊤ x ( k ) − b j ) − K ( γ w k ⊤ x ( 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 . (77) \begin{aligned}
c_{1}
&=\left[(K-1)\exp\left(\frac{\sum_{j=1}^{K}(\gamma w_{j}^{\top}x^{(k)}-b_{j})-K(\gamma w_{k}^{\top}x^{(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*{(77)}
\end{aligned} c 1 = [ ( K − 1 ) exp ( K − 1 ∑ j = 1 K ( γ w j ⊤ x ( k ) − b j ) − K ( γ w k ⊤ x ( 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 . (77)
Since the c 1 > 0 c_{1}>0 c 1 > 0 can be arbitrary number, we choose the same c 1 c_{1} c 1 for any k , j ∈ [ K ] k,j\in[K] k , j ∈ [ K ] . Then, we have
b k − b ˉ − γ = b j − b ˉ − γ ⇒ b k = b j , ∀ j ≠ k ∈ [ K ] . (78) b_{k}-\bar{b}-\gamma=b_{j}-\bar{b}-\gamma\quad\Rightarrow\quad b_{k}=b_{j},\ \forall j\ne k\in[K]. \tag*{(78)} b k − b ˉ − γ = b j − b ˉ − γ ⇒ b k = b j , ∀ j = k ∈ [ K ] . (78)
Therefore, we can write b = b ⋆ 1 K b=b^{\star}1_{K} b = b ⋆ 1 K . Plugging the results in Eq. (S.55) into (S.54), we have
c 1 = [ ( K − 1 ) exp ( K K − 1 ( b k − b ˉ − γ ) ) ] − 1 = [ ( K − 1 ) exp ( − γ K K − 1 ) ] − 1 . c_{1}=\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 .
Moreover, plugging Eqs. (S.51) and (S.55) into Eq. (S.53),
γ w j ⊤ x ( k ) − b j = γ w ℓ ⊤ x ( k ) − b ℓ ⇒ w j ⊤ x ( k ) = w ℓ ⊤ x ( k ) ⇒ w j ⊤ w k = w ℓ ⊤ w k . \gamma w_{j}^{\top}x^{(k)}-b_{j}=\gamma w_{\ell}^{\top}x^{(k)}-b_{\ell}\quad\Rightarrow\quad w_{j}^{\top}x^{(k)}=w_{\ell}^{\top}x^{(k)}\quad\Rightarrow\quad w_{j}^{\top}w_{k}=w_{\ell}^{\top}w_{k}. γ w j ⊤ x ( k ) − b j = γ w ℓ ⊤ x ( k ) − b ℓ ⇒ w j ⊤ x ( k ) = w ℓ ⊤ x ( k ) ⇒ w j ⊤ w k = w ℓ ⊤ w k .
Combining with Eq. (S.51),
1 = ∥ w k ∥ 2 = − ∑ j = 1 j ≠ k K w k ⊤ w j = − ( K − 1 ) w k ⊤ w j ⇒ w k ⊤ w j = − 1 K − 1 , ∀ j ≠ k ∈ [ K ] . (79) 1 = \lVert w_k \rVert^2 = -\sum_{\substack{j=1 \\ j\ne k}}^{K} w_k^\top w_j = -(K-1)w_k^\top w_j \Rightarrow w_k^\top w_j = -\frac{1}{K-1},\quad\forall j\ne k\in[K]. \tag*{(79)} 1 = ∥ w k ∥ 2 = − j = 1 j = k ∑ K w k ⊤ w j = − ( K − 1 ) w k ⊤ w j ⇒ w k ⊤ w j = − K − 1 1 , ∀ j = k ∈ [ K ] . (79)
In total,
f c e ( W , b , F ) ≥ − γ K ( 1 + c 1 ) ( K − 1 ) + C = log ( 1 + ( K − 1 ) e − γ K K − 1 ) , f_{\mathrm{ce}}(\mathbf{W},\mathbf{b},\mathcal{F}) \ge-\frac{\gamma K}{(1+c_1)(K-1)} + C = \log\left(1+(K-1)e^{-\frac{\gamma K}{K-1}}\right), f ce ( W , b , F ) ≥ − ( 1 + c 1 ) ( K − 1 ) γ K + C = log ( 1 + ( K − 1 ) e − K − 1 γ K ) ,
where this constant lower boundary is achieved if and only if Eqs. (S.59), (S.60), (S.47), (S.49), and (S.50) hold. One can deduce Eqs. (S.43), (S.44), and (S.45) from these conditions, and vice versa, which completes the proof.
Lemma S.7 For any X ( k ) ∈ D \mathbf{X}^{(k)}\in\mathcal{D} X ( k ) ∈ D with any c 1 > 0 c_1>0 c 1 > 0 and γ > 0 \gamma>0 γ > 0 , the CE loss L c e ( X ( k ) ) L_{\mathrm{ce}}(\mathbf{X}^{(k)}) L ce ( X ( k ) ) defined in Eq. (2) is lower bounded by
L c e ( X ( k ) ) ≥ ∑ j = 1 K ( γ w j ⊤ x ( k ) − b j ) − K ( γ w k ⊤ x ( k ) − b k ) ( 1 + c 1 ) ( K − 1 ) + C , (80) L_{\mathrm{ce}}(\mathbf{X}^{(k)}) \ge\frac{\sum_{j=1}^{K}(\gamma w_j^\top x^{(k)}-b_j)-K(\gamma w_k^\top x^{(k)}-b_k)}{(1+c_1)(K-1)}+C, \tag*{(80)} L ce ( X ( k ) ) ≥ ( 1 + c 1 ) ( K − 1 ) ∑ j = 1 K ( γ w j ⊤ x ( k ) − b j ) − K ( γ w k ⊤ x ( k ) − b k ) + C , (80) where
C = c 1 1 + c 1 log ( 1 + c 1 c 1 ) + 1 1 + c 1 log [ ( 1 + c 1 ) ( K − 1 ) ] . (81) 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*{(81)} C = 1 + c 1 c 1 log ( c 1 1 + c 1 ) + 1 + c 1 1 log [ ( 1 + c 1 ) ( K − 1 ) ] . (81) The inequality becomes an equality if and only if
c 1 = [ ( K − 1 ) exp ( ∑ j = 1 K ( γ w j ⊤ x ( k ) − b j ) − K ( γ w k ⊤ x ( k ) − b k ) K − 1 ) ] − 1 , (82) c_1=\left[(K-1)\exp\left(\frac{\sum_{j=1}^{K}(\gamma w_j^\top x^{(k)}-b_j)-K(\gamma w_k^\top x^{(k)}-b_k)}{K-1}\right)\right]^{-1}, \tag*{(82)} c 1 = [ ( K − 1 ) exp ( K − 1 ∑ j = 1 K ( γ w j ⊤ x ( k ) − b j ) − K ( γ w k ⊤ x ( k ) − b k ) ) ] − 1 , (82) and
γ w j ⊤ x ( k ) − b j = γ w ℓ ⊤ x ( k ) − b ℓ , ∀ j , ℓ ≠ k ∈ [ K ] . (83) \gamma w_j^\top x^{(k)}-b_j=\gamma w_\ell^\top x^{(k)}-b_\ell,\quad\forall j,\ell\ne k\in[K]. \tag*{(83)} γ w j ⊤ x ( k ) − b j = γ w ℓ ⊤ x ( k ) − b ℓ , ∀ j , ℓ = k ∈ [ K ] . (83)
Proof. According to Jensen’s inequality in Lemma S.3, the CE loss L c e ( X ( k ) ) L_{\mathrm{ce}}(\mathbf{X}^{(k)}) L ce ( X ( k ) ) can be lower bounded,
L c e ( X ( k ) ) = log ( 1 + ∑ j = 1 j ≠ k K exp ( γ w j ⊤ x ( k ) − b j ) exp ( γ w k ⊤ x ( k ) − b k ) ) = log ( 1 + ( K − 1 ) ∑ j = 1 j ≠ k K exp ( γ w j ⊤ x ( k ) − b j ) ( K − 1 ) exp ( γ w k ⊤ x ( k ) − b k ) ) ≥ log ( 1 + ( K − 1 ) exp ( ∑ j = 1 j ≠ k K γ w j ⊤ x ( k ) − b j − γ w k ⊤ x ( k ) + b k K − 1 ) ) = log ( 1 + ( K − 1 ) exp ( ∑ j = 1 K ( γ w j ⊤ x ( k ) − b j ) − K ( γ w k ⊤ x ( k ) − b k ) K − 1 ) ) , (84) \begin{aligned}
L_{\mathrm{ce}}(\mathbf{X}^{(k)})&=\log\left(1+\sum_{\substack{j=1\\j\ne k}}^{K}\frac{\exp(\gamma w_j^\top x^{(k)}-b_j)}{\exp(\gamma w_k^\top x^{(k)}-b_k)}\right)\\
&=\log\left(1+(K-1)\sum_{\substack{j=1\\j\ne k}}^{K}\frac{\exp(\gamma w_j^\top x^{(k)}-b_j)}{(K-1)\exp(\gamma w_k^\top x^{(k)}-b_k)}\right)\\
&\ge\log\left(1+(K-1)\exp\left(\sum_{\substack{j=1\\j\ne k}}^{K}\frac{\gamma w_j^\top x^{(k)}-b_j-\gamma w_k^\top x^{(k)}+b_k}{K-1}\right)\right)\\
&=\log\left(1+(K-1)\exp\left(\frac{\sum_{j=1}^{K}(\gamma w_j^\top x^{(k)}-b_j)-K(\gamma w_k^\top x^{(k)}-b_k)}{K-1}\right)\right), \tag*{(84)}
\end{aligned} L ce ( X ( k ) ) = log 1 + j = 1 j = k ∑ K exp ( γ w k ⊤ x ( k ) − b k ) exp ( γ w j ⊤ x ( k ) − b j ) = log 1 + ( K − 1 ) j = 1 j = k ∑ K ( K − 1 ) exp ( γ w k ⊤ x ( k ) − b k ) exp ( γ w j ⊤ x ( k ) − b j ) ≥ log 1 + ( K − 1 ) exp j = 1 j = k ∑ K K − 1 γ w j ⊤ x ( k ) − b j − γ w k ⊤ x ( k ) + b k = log ( 1 + ( K − 1 ) exp ( K − 1 ∑ j = 1 K ( γ w j ⊤ x ( k ) − b j ) − K ( γ w k ⊤ x ( k ) − b k ) ) ) , (84)
which achieves the equality if and only if γ w j ⊤ x ( k ) − b j = γ w ℓ ⊤ x ( k ) − b ℓ \gamma\mathbf{w}_j^{\top}\mathbf{x}^{(k)}-b_j=\gamma\mathbf{w}_{\ell}^{\top}\mathbf{x}^{(k)}-b_{\ell} γ w j ⊤ x ( k ) − b j = γ w ℓ ⊤ x ( 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>0 c 1 > 0 , we get
L c e ( X ( k ) ) ≥ log ( 1 + ( K − 1 ) exp ( ∑ j = 1 K ( γ w j ⊤ x ( k ) − b j ) − K ( γ w k ⊤ x ( k ) − b k ) K − 1 ) ) = 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 ⊤ x ( k ) − b j ) − K ( γ w k ⊤ x ( 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 ) exp ( ∑ j = 1 K ( γ w j ⊤ x ( k ) − b j ) − K ( γ w k ⊤ x ( k ) − b k ) K − 1 ) ) = 1 1 + c 1 ∑ j = 1 K ( γ w j ⊤ x ( k ) − b j ) − K ( γ w k ⊤ x ( 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 . \begin{aligned}
L_{\mathrm{ce}}\left(\mathbf{X}^{(k)}\right)
&\ge\log\left(1+(K-1)\exp\left(\frac{\sum_{j=1}^{K}\left(\gamma\mathbf{w}_j^{\top}\mathbf{x}^{(k)}-b_j\right)-K\left(\gamma\mathbf{w}_k^{\top}\mathbf{x}^{(k)}-b_k\right)}{K-1}\right)\right)\\
&=\log\left(\frac{c_1}{1+c_1}\frac{1+c_1}{c_1}+\frac{1+c_1}{1+c_1}(K-1)\exp\left(\frac{\sum_{j=1}^{K}\left(\gamma\mathbf{w}_j^{\top}\mathbf{x}^{(k)}-b_j\right)-K\left(\gamma\mathbf{w}_k^{\top}\mathbf{x}^{(k)}-b_k\right)}{K-1}\right)\right)\\
&\ge\frac{c_1}{1+c_1}\log\left(\frac{1+c_1}{c_1}\right)\\
&\quad+\frac{1}{1+c_1}\log\left((1+c_1)(K-1)\exp\left(\frac{\sum_{j=1}^{K}\left(\gamma\mathbf{w}_j^{\top}\mathbf{x}^{(k)}-b_j\right)-K\left(\gamma\mathbf{w}_k^{\top}\mathbf{x}^{(k)}-b_k\right)}{K-1}\right)\right)\\
&=\frac{1}{1+c_1}\frac{\sum_{j=1}^{K}\left(\gamma\mathbf{w}_j^{\top}\mathbf{x}^{(k)}-b_j\right)-K\left(\gamma\mathbf{w}_k^{\top}\mathbf{x}^{(k)}-b_k\right)}{K-1}\\
&\quad+\underbrace{\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]}_{C}.
\end{aligned} L ce ( X ( k ) ) ≥ log ( 1 + ( K − 1 ) exp ( K − 1 ∑ j = 1 K ( γ w j ⊤ x ( k ) − b j ) − K ( γ w k ⊤ x ( k ) − b k ) ) ) = 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 ⊤ x ( k ) − b j ) − K ( γ w k ⊤ x ( k ) − b k ) ) ) ≥ 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 ⊤ x ( k ) − b j ) − K ( γ w k ⊤ x ( k ) − b k ) ) ) = 1 + c 1 1 K − 1 ∑ j = 1 K ( γ w j ⊤ x ( k ) − b j ) − K ( γ w k ⊤ x ( 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 ) ] .
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 ⊤ x ( k ) − b j ) − K ( γ w k ⊤ x ( k ) − b k ) K − 1 ) \frac{1+c_1}{c_1}=(1+c_1)(K-1)\exp\left(\frac{\sum_{j=1}^{K}\left(\gamma\mathbf{w}_j^{\top}\mathbf{x}^{(k)}-b_j\right)-K\left(\gamma\mathbf{w}_k^{\top}\mathbf{x}^{(k)}-b_k\right)}{K-1}\right) c 1 1 + c 1 = ( 1 + c 1 ) ( K − 1 ) exp ( K − 1 ∑ j = 1 K ( γ w j ⊤ x ( k ) − b j ) − K ( γ w k ⊤ x ( k ) − b k ) )
or c 1 = 0 c_1=0 c 1 = 0 or c 1 = + ∞ c_1=+\infty c 1 = + ∞ .
Actually, when c 1 = 0 c_1=0 c 1 = 0 or c 1 = + ∞ c_1=+\infty c 1 = + ∞ , the equality is trivial. Therefore, we have
c 1 = [ ( K − 1 ) exp ( ∑ j = 1 K ( γ w j ⊤ x ( k ) − b j ) − K ( γ w k ⊤ x ( k ) − b k ) K − 1 ) ] − 1 , c_1=\left[(K-1)\exp\left(\frac{\sum_{j=1}^{K}\left(\gamma\mathbf{w}_j^{\top}\mathbf{x}^{(k)}-b_j\right)-K\left(\gamma\mathbf{w}_k^{\top}\mathbf{x}^{(k)}-b_k\right)}{K-1}\right)\right]^{-1}, c 1 = [ ( K − 1 ) exp ( K − 1 ∑ j = 1 K ( γ w j ⊤ x ( k ) − b j ) − K ( γ w k ⊤ x ( k ) − b k ) ) ] − 1 ,
as desired.
Theorems in Open-set Scenario
We here present the proof Theorems 2 and 3.
Theorem S.8 (BCE ) Suppose that the first K 1 K_{1} K 1 classes in dataset D = ⋃ k = 1 K D k \mathcal{D}=\bigcup_{k=1}^{K}\mathcal{D}_{k} D = ⋃ k = 1 K D k contains at least one sample, 1 < K 1 < K 1<K_{1}<K 1 < K 1 < K , while the other classes are empty, and that the feature dimension is greater than the number of classes, i.e., n k = ∣ D k ∣ > 0 n_{k}=|\mathcal{D}_{k}|>0 n k = ∣ D k ∣ > 0 for ∀ k ∈ [ K 1 ] \forall k\in[K_{1}] ∀ k ∈ [ K 1 ] , n k = ∣ D k ∣ = 0 n_{k}=|\mathcal{D}_{k}|=0 n k = ∣ D k ∣ = 0 for K 1 < k ≤ K K_{1}<k\le K K 1 < k ≤ K , and d ≥ K 1 d\ge K_{1} d ≥ K 1 . Denote x ~ = 1 K 1 ∑ k = 1 K 1 x ˉ k \tilde{x}=\frac{1}{K_{1}}\sum_{k=1}^{K_{1}}\bar{x}_{k} x ~ = K 1 1 ∑ k = 1 K 1 x ˉ k with x ˉ k = 1 n k ∑ x ∈ F k x \bar{x}_{k}=\frac{1}{n_{k}}\sum_{x\in\mathcal{F}_{k}}x x ˉ k = n k 1 ∑ x ∈ F k x . On the dataset D \mathcal{D} D , define BCE loss
f b c e - o s ( W , b , F ) ≜ 1 K 1 ∑ k = 1 K 1 1 n k ∑ X ( k ) ∈ D k L b c e ( X ( k ) ) , (85) f_{\mathrm{bce\text{-}os}}(\mathbf{W},b,\mathcal{F})\triangleq\frac{1}{K_{1}}\sum_{k=1}^{K_{1}}\frac{1}{n_{k}}\sum_{X^{(k)}\in\mathcal{D}_{k}}L_{\mathrm{bce}}(X^{(k)}), \tag*{(85)} f bce - os ( W , b , F ) ≜ K 1 1 k = 1 ∑ K 1 n k 1 X ( k ) ∈ D k ∑ L bce ( X ( k ) ) , (85) where
L b c e ( X ( k ) ) = log ( 1 + e − γ w k T x ( k ) + b k ) + ∑ j = 1 , j ≠ k K log ( 1 + e γ w j T x ( k ) − b j ) , L_{\mathrm{bce}}(X^{(k)})=\log\left(1+e^{-\gamma\mathbf{w}_{k}^{\mathsf{T}}x^{(k)}+b_{k}}\right)+\sum_{j=1,j\ne k}^{K}\log\left(1+e^{\gamma\mathbf{w}_{j}^{\mathsf{T}}x^{(k)}-b_{j}}\right), L bce ( X ( k ) ) = log ( 1 + e − γ w k T x ( k ) + b k ) + j = 1 , j = k ∑ K log ( 1 + e γ w j T x ( k ) − b j ) , with x ( k ) = M ( X ( k ) ) x^{(k)}=\mathcal{M}(X^{(k)}) x ( k ) = M ( X ( k ) ) for ∀ X ( k ) ∈ D k ⊂ D \forall X^{(k)}\in\mathcal{D}_{k}\subset\mathcal{D} ∀ X ( k ) ∈ D k ⊂ D . Then, the BCE loss f b c e - o s ( W , b , F ) f_{\mathrm{bce\text{-}os}(\mathbf{W},b,\mathcal{F})} f bce - os ( W , b , F ) satisfies
f b c e - o s ( W , b , F ) ≥ log ( 1 + e b ⋆ − γ 1 − ∥ x ~ ∥ 2 ) + ( K 1 − 1 ) log ( 1 + e − γ K 1 − 1 1 − ∥ x ~ ∥ 2 − b ⋆ ) f_{\mathrm{bce\text{-}os}}(\mathbf{W},b,\mathcal{F})\ge\log\left(1+e^{b^{\star}-\gamma\sqrt{1-\|\tilde{x}\|^{2}}}\right)+(K_{1}-1)\log\left(1+e^{-\frac{\gamma}{K_{1}-1}\sqrt{1-\|\tilde{x}\|^{2}}-b^{\star}}\right) f bce - os ( W , b , F ) ≥ log ( 1 + e b ⋆ − γ 1 − ∥ x ~ ∥ 2 ) + ( K 1 − 1 ) log ( 1 + e − K 1 − 1 γ 1 − ∥ x ~ ∥ 2 − b ⋆ ) + ( K − K 1 ) log ( 1 + e − γ ∥ x ~ ∥ − b † ) , (86) \qquad+(K-K_{1})\log\left(1+e^{-\gamma\|\tilde{x}\|-b^{\dagger}}\right), \tag*{(86)} + ( K − K 1 ) log ( 1 + e − γ ∥ x ~ ∥ − b † ) , (86) where b ⋆ b^{\star} b ⋆ is the unique real solution of
e γ K 1 − 1 1 − ∥ x ~ ∥ 2 e 2 b − ( K 1 − 2 ) e b − ( K 1 − 1 ) e γ 1 − ∥ x ~ ∥ 2 = 0 , e^{\frac{\gamma}{K_{1}-1}\sqrt{1-\|\tilde{x}\|^{2}}}e^{2b}-(K_{1}-2)e^{b}-(K_{1}-1)e^{\gamma\sqrt{1-\|\tilde{x}\|^{2}}}=0, e K 1 − 1 γ 1 − ∥ x ~ ∥ 2 e 2 b − ( K 1 − 2 ) e b − ( K 1 − 1 ) e γ 1 − ∥ x ~ ∥ 2 = 0 , and b † ∈ R b^{\dagger}\in\mathbb{R} b † ∈ R . When the BCE loss f b c e - o s ( W , b , F ) f_{\mathrm{bce\text{-}os}}(\mathbf{W},b,\mathcal{F}) f bce - os ( W , b , F ) reaching its lower bound in Eq. (S.63), it satisfies
x ( k ) = x ˉ k = 1 n k ∑ x ∈ F k x , ∀ x ( k ) ∈ F k , ∀ k ∈ [ K 1 ] ; x^{(k)}=\bar{x}_{k}=\frac{1}{n_{k}}\sum_{x\in\mathcal{F}_{k}}x,\qquad\forall x^{(k)}\in\mathcal{F}_{k},\ \forall k\in[K_{1}]; x ( k ) = x ˉ k = n k 1 x ∈ F k ∑ x , ∀ x ( k ) ∈ F k , ∀ k ∈ [ K 1 ] ; w k T w j = − 1 K 1 − 1 , ∀ j ≠ k ∈ [ K 1 ] , \mathbf{w}_{k}^{\mathsf{T}}\mathbf{w}_{j}=-\frac{1}{K_{1}-1},\qquad\forall j\ne k\in[K_{1}], w k T w j = − K 1 − 1 1 , ∀ j = k ∈ [ K 1 ] , x ˉ k T x ˉ j = − 1 K 1 − 1 + K 1 K 1 − 1 ∥ x ~ ∥ 2 , ∀ j ≠ k ∈ [ K 1 ] ; \bar{x}_{k}^{\mathsf{T}}\bar{x}_{j}=-\frac{1}{K_{1}-1}+\frac{K_{1}}{K_{1}-1}\|\tilde{x}\|^{2},\qquad\forall j\ne k\in[K_{1}]; x ˉ k T x ˉ j = − K 1 − 1 1 + K 1 − 1 K 1 ∥ x ~ ∥ 2 , ∀ j = k ∈ [ K 1 ] ; w k T x ˉ k = 1 − ∥ x ~ ∥ 2 , ∀ k ∈ [ K 1 ] , \mathbf{w}_{k}^{\mathsf{T}}\bar{x}_{k}=\sqrt{1-\|\tilde{x}\|^{2}},\qquad\forall k\in[K_{1}], w k T x ˉ k = 1 − ∥ x ~ ∥ 2 , ∀ k ∈ [ K 1 ] , w j T x ˉ k = − 1 K 1 − 1 1 − ∥ x ~ ∥ 2 , ∀ j ≠ k ∈ [ K 1 ] , \mathbf{w}_{j}^{\mathsf{T}}\bar{x}_{k}=-\frac{1}{K_{1}-1}\sqrt{1-\|\tilde{x}\|^{2}},\qquad\forall j\ne k\in[K_{1}], w j T x ˉ k = − K 1 − 1 1 1 − ∥ x ~ ∥ 2 , ∀ j = k ∈ [ K 1 ] , w k T x ~ = 0 , ∀ k ∈ [ K 1 ] ; \mathbf{w}_{k}^{\mathsf{T}}\tilde{x}=0,\qquad\forall k\in[K_{1}]; w k T x ~ = 0 , ∀ k ∈ [ K 1 ] ;
(minority collapse) for ∀ j = K 1 + 1 , K 1 + 2 , ⋯ , K \forall j = K_{1} + 1, K_{1} + 2, \cdots, K ∀ j = K 1 + 1 , K 1 + 2 , ⋯ , K , if ∥ x ~ ∥ ≠ 0 \lVert\tilde{x} \rVert\ne0 ∥ x ~ ∥ = 0 ,
w j = − x ~ ∥ x ~ ∥ w_j = -\frac{\tilde{x}}{\lVert\tilde{x} \rVert} w j = − ∥ x ~ ∥ x ~
and for ∀ k ∈ [ K 1 ] \forall k \in[K_{1}] ∀ k ∈ [ K 1 ] , ∀ j = K 1 + 1 , K 1 + 2 , ⋯ , K \forall j = K_{1} + 1, K_{1} + 2, \cdots, K ∀ j = K 1 + 1 , K 1 + 2 , ⋯ , K ,
w j T x ~ k = − ∥ x ~ ∥ , w_j^{\mathsf{T}}\tilde{x}_k = -\lVert\tilde{x} \rVert, w j T x ~ k = − ∥ x ~ ∥ ,
w j T w k = 0 , w_j^{\mathsf{T}}w_k = 0, w j T w k = 0 ,
and
b k = b ⋆ , ∀ k ∈ [ K 1 ] , b_k = b^\star,\quad\forall k \in[K_{1}], b k = b ⋆ , ∀ k ∈ [ K 1 ] ,
b j = b † , ∀ j = K 1 + 1 , K 1 + 2 , ⋯ , K . b_j = b^\dagger,\quad\forall j = K_{1} + 1, K_{1} + 2, \cdots, K. b j = b † , ∀ j = K 1 + 1 , K 1 + 2 , ⋯ , K .
As the BCE loss f b c e - o s ( W , b , F ) f_{\mathrm{bce\text{-}os}}(\mathbf{W},\mathbf{b},\mathcal{F}) f bce - os ( W , b , F ) approaching its minimum value, b † → + ∞ b^\dagger\to+\infty b † → + ∞ and ∥ x ~ ∥ → 0 \lVert\tilde{x} \rVert\to0 ∥ x ~ ∥ → 0 .
Proof According to Lemma S.10, for any c 1 , c 2 , c 3 > 0 c_1,c_2,c_3 > 0 c 1 , c 2 , c 3 > 0 and any X ( k ) ∈ D k \mathbf{X}^{(k)} \in\mathcal{D}_k X ( k ) ∈ D k with ∀ k ∈ [ K 1 ] \forall k \in[K_1] ∀ k ∈ [ K 1 ] ,
L b c e ( X ( k ) ) ≥ 1 1 + c 1 ( − γ w k T x ( k ) + b k ) + 1 1 + c 2 ∑ j = 1 j ≠ k K 1 ( γ w j T x ( k ) − b j ) + 1 1 + c 3 ∑ j = K 1 + 1 K ( γ w j T x ( k ) − b j ) + C , \begin{aligned}
L_{\mathrm{bce}}(\mathbf{X}^{(k)}) \geq{}&
\frac{1}{1+c_1}\left(-\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)} + b_k\right)
+\frac{1}{1+c_2}\sum_{\substack{j=1\\j\ne k}}^{K_1}\left(\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)} - b_j\right)\\
&+\frac{1}{1+c_3}\sum_{j=K_1+1}^{K}\left(\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)} - b_j\right)+C,
\end{aligned} L bce ( X ( k ) ) ≥ 1 + c 1 1 ( − γ w k T x ( k ) + b k ) + 1 + c 2 1 j = 1 j = k ∑ K 1 ( γ w j T x ( k ) − b j ) + 1 + c 3 1 j = K 1 + 1 ∑ K ( γ w j T x ( k ) − b j ) + C ,
where
C = log ( 1 + c 1 ) − c 1 1 + c 1 log ( c 1 ) + ( K 1 − 1 ) ( log ( 1 + c 2 ) − c 2 1 + c 2 log ( c 2 ) ) + ( K − K 1 ) ( log ( 1 + c 3 ) − c 3 1 + c 3 log ( c 3 ) ) , \begin{aligned}
C ={}& \log(1+c_1)-\frac{c_1}{1+c_1}\log(c_1)
+(K_1-1)\left(\log(1+c_2)-\frac{c_2}{1+c_2}\log(c_2)\right)\\
&+(K-K_1)\left(\log(1+c_3)-\frac{c_3}{1+c_3}\log(c_3)\right),
\end{aligned} C = log ( 1 + c 1 ) − 1 + c 1 c 1 log ( c 1 ) + ( K 1 − 1 ) ( log ( 1 + c 2 ) − 1 + c 2 c 2 log ( c 2 ) ) + ( K − K 1 ) ( log ( 1 + c 3 ) − 1 + c 3 c 3 log ( c 3 ) ) ,
and the inequality becomes an equality if and only if
c 1 = exp ( γ w k T x ( k ) − b k ) , 1 ≤ k ≤ K 1 , c_1 = \exp\left(\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)} - b_k\right),\quad1 \leq k \leq K_1, c 1 = exp ( γ w k T x ( k ) − b k ) , 1 ≤ k ≤ K 1 ,
c 2 = exp ( b j − γ w j T x ( k ) ) , 1 ≤ j ≠ k ≤ K 1 , c_2 = \exp\left(b_j - \gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}\right),\quad1 \leq j \ne k \leq K_1, c 2 = exp ( b j − γ w j T x ( k ) ) , 1 ≤ j = k ≤ K 1 ,
c 3 = exp ( b j − γ w j T x ( k ) ) , 1 ≤ k ≤ K 1 , K 1 < j ≤ K . c_3 = \exp\left(b_j - \gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}\right),\quad1 \leq k \leq K_1,\ K_1 < j \leq K. c 3 = exp ( b j − γ w j T x ( k ) ) , 1 ≤ k ≤ K 1 , K 1 < j ≤ K .
We take the same c 1 c_1 c 1 , c 2 c_2 c 2 , and c 3 c_3 c 3 for all X ( k ) \mathbf{X}^{(k)} X ( k ) , ∀ k ∈ [ K 1 ] \forall k \in[K_1] ∀ k ∈ [ K 1 ] , then
f b c e − o s ( W , b , F ) = 1 K 1 ∑ k = 1 K 1 1 n k ∑ x ( k ) ∈ D k L b c e ( X ( k ) ) ≥ 1 K 1 ∑ k = 1 K 1 1 n k ∑ x ( k ) ∈ F k [ 1 1 + c 1 ( − γ w k T x ( k ) + b k ) + 1 1 + c 2 ∑ j = 1 j ≠ k K 1 ( γ w j T x ( k ) − b j ) + 1 1 + c 3 ∑ j = K 1 + 1 K ( γ w j T x ( k ) − b j ) ] + C = 1 K 1 1 1 + c 2 ∑ k = 1 K 1 1 n k ∑ x ( k ) ∈ F k ∑ j = 1 j ≠ k K 1 ( γ w j T x ( k ) − b j ) + 1 K 1 1 1 + c 3 ∑ k = 1 K 1 1 n k ∑ x ( k ) ∈ F k ∑ j = K 1 + 1 K ( γ w j T x ( k ) − b j ) − 1 K 1 1 1 + c 1 ∑ k = 1 K 1 1 n k ∑ x ( k ) ∈ F k ( γ w k T x ( k ) − b k ) + C = 1 K 1 1 1 + c 2 [ ∑ k = 1 K 1 1 n k ∑ x ( k ) ∈ F k ∑ j = 1 K 1 ( γ w j T x ( k ) − b j − γ w k T x ( k ) + b k ) + 1 K 1 1 1 + c 2 ∑ k = 1 K 1 1 n k ∑ x ( k ) ∈ F k ∑ j = 1 j ≠ k K 1 ( γ w k T x ( k ) − b k ) + 1 K 1 1 1 + c 3 ∑ k = 1 K 1 1 n k ∑ x ( k ) ∈ F k ∑ j = K 1 + 1 K ( γ w j T x ( k ) − b j ) − 1 K 1 1 1 + c 1 ∑ k = 1 K 1 1 n k ∑ x ( k ) ∈ F k ( γ w k T x ( k ) − b k ) + C = 1 K 1 1 1 + c 2 [ ∑ k = 1 K 1 1 n k ∑ x ( k ) ∈ F k ∑ j = 1 K 1 ( γ w j T x ( k ) − γ w k T x ( k ) ) − ∑ k = 1 K 1 1 n k ∑ x ( k ) ∈ F k ∑ j = 1 K 1 ( b j − b k ) ] + 1 K 1 ( K 1 − 1 1 + c 2 − 1 1 + c 1 ) ∑ k = 1 K 1 1 n k ∑ x ( k ) ∈ F k γ w k T x ( k ) − 1 K 1 ( K 1 − 1 1 + c 2 − 1 1 + c 1 ) ∑ k = 1 K 1 b k + 1 K 1 1 1 + c 3 ∑ k = 1 K 1 1 n k ∑ x ( k ) ∈ F k ∑ j = K 1 + 1 K γ w j T x ( k ) \begin{aligned}
f_{\mathrm{bce-os}}(\mathbf{W},\mathbf{b},\mathcal{F})
&= \frac{1}{K_1}\sum_{k=1}^{K_1}\frac{1}{n_k}\sum_{\mathbf{x}^{(k)}\in\mathcal{D}_k}L_{\mathrm{bce}}(\mathbf{X}^{(k)})\\
&\geq\frac{1}{K_1}\sum_{k=1}^{K_1}\frac{1}{n_k}\sum_{\mathbf{x}^{(k)}\in\mathcal{F}_k}\left[\frac{1}{1+c_1}\left(-\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)}+b_k\right)+\frac{1}{1+c_2}\sum_{\substack{j=1\\j\ne k}}^{K_1}\left(\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}-b_j\right)\right.\\
&\qquad\left.+\frac{1}{1+c_3}\sum_{j=K_1+1}^{K}\left(\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}-b_j\right)\right]+C\\
&= \frac{1}{K_1}\frac{1}{1+c_2}\sum_{k=1}^{K_1}\frac{1}{n_k}\sum_{\mathbf{x}^{(k)}\in\mathcal{F}_k}\sum_{\substack{j=1\\j\ne k}}^{K_1}\left(\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}-b_j\right)\\
&\qquad+\frac{1}{K_1}\frac{1}{1+c_3}\sum_{k=1}^{K_1}\frac{1}{n_k}\sum_{\mathbf{x}^{(k)}\in\mathcal{F}_k}\sum_{j=K_1+1}^{K}\left(\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}-b_j\right)\\
&\qquad-\frac{1}{K_1}\frac{1}{1+c_1}\sum_{k=1}^{K_1}\frac{1}{n_k}\sum_{\mathbf{x}^{(k)}\in\mathcal{F}_k}\left(\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)}-b_k\right)+C\\
&= \frac{1}{K_1}\frac{1}{1+c_2}\left[\sum_{k=1}^{K_1}\frac{1}{n_k}\sum_{\mathbf{x}^{(k)}\in\mathcal{F}_k}\sum_{j=1}^{K_1}\left(\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}-b_j-\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)}+b_k\right)\right.\\
&\qquad+\frac{1}{K_1}\frac{1}{1+c_2}\sum_{k=1}^{K_1}\frac{1}{n_k}\sum_{\mathbf{x}^{(k)}\in\mathcal{F}_k}\sum_{\substack{j=1\\j\ne k}}^{K_1}\left(\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)}-b_k\right)\\
&\qquad+\frac{1}{K_1}\frac{1}{1+c_3}\sum_{k=1}^{K_1}\frac{1}{n_k}\sum_{\mathbf{x}^{(k)}\in\mathcal{F}_k}\sum_{j=K_1+1}^{K}\left(\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}-b_j\right)\\
&\qquad-\frac{1}{K_1}\frac{1}{1+c_1}\sum_{k=1}^{K_1}\frac{1}{n_k}\sum_{\mathbf{x}^{(k)}\in\mathcal{F}_k}\left(\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)}-b_k\right)+C\\
&= \frac{1}{K_1}\frac{1}{1+c_2}\left[\sum_{k=1}^{K_1}\frac{1}{n_k}\sum_{\mathbf{x}^{(k)}\in\mathcal{F}_k}\sum_{j=1}^{K_1}\left(\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}-\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)}\right)-\sum_{k=1}^{K_1}\frac{1}{n_k}\sum_{\mathbf{x}^{(k)}\in\mathcal{F}_k}\sum_{j=1}^{K_1}(b_j-b_k)\right]\\
&\qquad+\frac{1}{K_1}\left(\frac{K_1-1}{1+c_2}-\frac{1}{1+c_1}\right)\sum_{k=1}^{K_1}\frac{1}{n_k}\sum_{\mathbf{x}^{(k)}\in\mathcal{F}_k}\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)}\\
&\qquad-\frac{1}{K_1}\left(\frac{K_1-1}{1+c_2}-\frac{1}{1+c_1}\right)\sum_{k=1}^{K_1}b_k+\frac{1}{K_1}\frac{1}{1+c_3}\sum_{k=1}^{K_1}\frac{1}{n_k}\sum_{\mathbf{x}^{(k)}\in\mathcal{F}_k}\sum_{j=K_1+1}^{K}\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}
\end{aligned} f bce − os ( W , b , F ) = K 1 1 k = 1 ∑ K 1 n k 1 x ( k ) ∈ D k ∑ L bce ( X ( k ) ) ≥ K 1 1 k = 1 ∑ K 1 n k 1 x ( k ) ∈ F k ∑ 1 + c 1 1 ( − γ w k T x ( k ) + b k ) + 1 + c 2 1 j = 1 j = k ∑ K 1 ( γ w j T x ( k ) − b j ) + 1 + c 3 1 j = K 1 + 1 ∑ K ( γ w j T x ( k ) − b j ) + C = K 1 1 1 + c 2 1 k = 1 ∑ K 1 n k 1 x ( k ) ∈ F k ∑ j = 1 j = k ∑ K 1 ( γ w j T x ( k ) − b j ) + K 1 1 1 + c 3 1 k = 1 ∑ K 1 n k 1 x ( k ) ∈ F k ∑ j = K 1 + 1 ∑ K ( γ w j T x ( k ) − b j ) − K 1 1 1 + c 1 1 k = 1 ∑ K 1 n k 1 x ( k ) ∈ F k ∑ ( γ w k T x ( k ) − b k ) + C = K 1 1 1 + c 2 1 k = 1 ∑ K 1 n k 1 x ( k ) ∈ F k ∑ j = 1 ∑ K 1 ( γ w j T x ( k ) − b j − γ w k T x ( k ) + b k ) + K 1 1 1 + c 2 1 k = 1 ∑ K 1 n k 1 x ( k ) ∈ F k ∑ j = 1 j = k ∑ K 1 ( γ w k T x ( k ) − b k ) + K 1 1 1 + c 3 1 k = 1 ∑ K 1 n k 1 x ( k ) ∈ F k ∑ j = K 1 + 1 ∑ K ( γ w j T x ( k ) − b j ) − K 1 1 1 + c 1 1 k = 1 ∑ K 1 n k 1 x ( k ) ∈ F k ∑ ( γ w k T x ( k ) − b k ) + C = K 1 1 1 + c 2 1 k = 1 ∑ K 1 n k 1 x ( k ) ∈ F k ∑ j = 1 ∑ K 1 ( γ w j T x ( k ) − γ w k T x ( k ) ) − k = 1 ∑ K 1 n k 1 x ( k ) ∈ F k ∑ j = 1 ∑ K 1 ( b j − b k ) + K 1 1 ( 1 + c 2 K 1 − 1 − 1 + c 1 1 ) k = 1 ∑ K 1 n k 1 x ( k ) ∈ F k ∑ γ w k T x ( k ) − K 1 1 ( 1 + c 2 K 1 − 1 − 1 + c 1 1 ) k = 1 ∑ K 1 b k + K 1 1 1 + c 3 1 k = 1 ∑ K 1 n k 1 x ( k ) ∈ F k ∑ j = K 1 + 1 ∑ K γ w j T x ( k )
− 1 K 1 1 1 + c 3 ∑ k = 1 K 1 1 n k ∑ x ( k ) ∈ F k ∑ j = K 1 + 1 K b j + C = 1 1 + c 2 ∑ k = 1 K 1 γ w k ⊤ ( x ~ − x ˉ k ) + 1 K 1 ( K 1 − 1 1 + c 2 − 1 1 + c 1 ) ∑ k = 1 K 1 ( γ w k ⊤ x ˉ k − b k ) + 1 1 + c 3 ∑ j = K 1 + 1 K ( γ w j ⊤ x ~ − b j ) + C ≜ f ^ b c e - o s ( 1 ) ( W , b , F ) , \begin{aligned}
&-\frac{1}{K_{1}}\frac{1}{1+c_{3}}\sum_{k=1}^{K_{1}}\frac{1}{n_{k}}\sum_{x^{(k)}\in\mathcal{F}_{k}}\sum_{j=K_{1}+1}^{K}b_{j}+C \\
&=\frac{1}{1+c_{2}}\sum_{k=1}^{K_{1}}\gamma\mathbf{w}_{k}^{\top}(\tilde{x}-\bar{x}_{k})+\frac{1}{K_{1}}\left(\frac{K_{1}-1}{1+c_{2}}-\frac{1}{1+c_{1}}\right)\sum_{k=1}^{K_{1}}(\gamma\mathbf{w}_{k}^{\top}\bar{x}_{k}-b_{k}) \\
&\quad+\frac{1}{1+c_{3}}\sum_{j=K_{1}+1}^{K}(\gamma\mathbf{w}_{j}^{\top}\tilde{x}-b_{j})+C \\
&\triangleq\hat{f}_{\mathrm{bce\text{-}os}}^{(1)}(\mathbf{W},\mathbf{b},\mathcal{F}),
\end{aligned} − K 1 1 1 + c 3 1 k = 1 ∑ K 1 n k 1 x ( k ) ∈ F k ∑ j = K 1 + 1 ∑ K b j + C = 1 + c 2 1 k = 1 ∑ K 1 γ w k ⊤ ( x ~ − x ˉ k ) + K 1 1 ( 1 + c 2 K 1 − 1 − 1 + c 1 1 ) k = 1 ∑ K 1 ( γ w k ⊤ x ˉ k − b k ) + 1 + c 3 1 j = K 1 + 1 ∑ K ( γ w j ⊤ x ~ − b j ) + C ≜ f ^ bce - os ( 1 ) ( W , b , F ) ,
where x ~ = 1 K 1 ∑ j = 1 K 1 x ˉ j \tilde{x}=\frac{1}{K_{1}}\sum_{j=1}^{K_{1}}\bar{x}_{j} x ~ = K 1 1 ∑ j = 1 K 1 x ˉ j and x ˉ j = 1 n j ∑ x ( j ) ∈ F j x ( j ) \bar{x}_{j}=\frac{1}{n_{j}}\sum_{x^{(j)}\in\mathcal{F}_{j}}x^{(j)} x ˉ j = n j 1 ∑ x ( j ) ∈ F j x ( j ) , ∀ j ∈ [ K 1 ] \forall j\in[K_{1}] ∀ j ∈ [ K 1 ] .
For the function f ^ b c e - o s ( 1 ) ( W , b , F ) \hat{f}_{\mathrm{bce\text{-}os}}^{(1)}(\mathbf{W},\mathbf{b},\mathcal{F}) f ^ bce - os ( 1 ) ( W , b , F ) , its global minima are located at its stationary points in terms of b k b_{k} b k for ∀ k ∈ [ K 1 ] \forall k\in[K_{1}] ∀ k ∈ [ K 1 ] ,
0 = ∂ f ^ b c e - o s ( 1 ) ∂ b k = − 1 K 1 ( K 1 − 1 1 + c 2 − 1 1 + c 1 ) . (87) 0=\frac{\partial\hat{f}_{\mathrm{bce\text{-}os}}^{(1)}}{\partial b_{k}}=-\frac{1}{K_{1}}\left(\frac{K_{1}-1}{1+c_{2}}-\frac{1}{1+c_{1}}\right). \tag*{(87)} 0 = ∂ b k ∂ f ^ bce - os ( 1 ) = − K 1 1 ( 1 + c 2 K 1 − 1 − 1 + c 1 1 ) . (87)
Therefore,
f ^ b c e - o s ( 1 ) ( W , b , F ) ≥ 1 1 + c 2 ∑ k = 1 K 1 γ w k ⊤ ( x ~ − x ˉ k ) + 1 1 + c 3 ∑ j = K 1 + 1 K γ w j ⊤ x ~ − 1 1 + c 3 ∑ j = K 1 + 1 K b j + C . \hat{f}_{\mathrm{bce\text{-}os}}^{(1)}(\mathbf{W},\mathbf{b},\mathcal{F})\geq\frac{1}{1+c_{2}}\sum_{k=1}^{K_{1}}\gamma\mathbf{w}_{k}^{\top}(\tilde{x}-\bar{x}_{k})+\frac{1}{1+c_{3}}\sum_{j=K_{1}+1}^{K}\gamma\mathbf{w}_{j}^{\top}\tilde{x}-\frac{1}{1+c_{3}}\sum_{j=K_{1}+1}^{K}b_{j}+C. f ^ bce - os ( 1 ) ( W , b , F ) ≥ 1 + c 2 1 k = 1 ∑ K 1 γ w k ⊤ ( x ~ − x ˉ k ) + 1 + c 3 1 j = K 1 + 1 ∑ K γ w j ⊤ x ~ − 1 + c 3 1 j = K 1 + 1 ∑ K b j + C .
Furthermore, according to the AM-GM inequality (see Lemma S.2 ),
u ⊤ v ≥ − ( c 2 ∥ u ∥ 2 2 + 1 2 c ∥ v ∥ 2 2 ) , ∀ u , v ∈ R d , ∀ c > 0 , \mathbf{u}^{\top}\mathbf{v}\geq-\left(\frac{c}{2}\lVert\mathbf{u}\rVert_{2}^{2}+\frac{1}{2c}\lVert\mathbf{v}\rVert_{2}^{2}\right),\qquad\forall\mathbf{u},\mathbf{v}\in\mathbb{R}^{d},\quad\forall c>0, u ⊤ v ≥ − ( 2 c ∥ u ∥ 2 2 + 2 c 1 ∥ v ∥ 2 2 ) , ∀ u , v ∈ R d , ∀ c > 0 ,
which becomes an equality when v = − c u \mathbf{v}=-c\mathbf{u} v = − c u . Then,
f b c e - o s ( W , b , F ) ≥ f ^ b c e - o s ( 1 ) ( W , b , F ) ≥ 1 1 + c 2 ∑ k = 1 K 1 γ w k ⊤ ( x ~ − x ˉ k ) + 1 1 + c 3 ∑ j = K 1 + 1 K γ w j ⊤ x ~ − 1 1 + c 3 ∑ j = K 1 + 1 K b j + C ≥ − γ 1 + c 2 ( c 4 2 ∑ k = 1 K 1 ∥ w k ∥ 2 2 + 1 2 c 4 ∑ k = 1 K 1 ∥ x ~ − x ˉ k ∥ 2 2 ) + 1 1 + c 3 ∑ j = K 1 + 1 K γ w j ⊤ x ~ − 1 1 + c 3 ∑ j = K 1 + 1 K b j + C (88) \begin{aligned}
f_{\mathrm{bce\text{-}os}}(\mathbf{W},\mathbf{b},\mathcal{F})&\geq\hat{f}_{\mathrm{bce\text{-}os}}^{(1)}(\mathbf{W},\mathbf{b},\mathcal{F})\\
&\geq\frac{1}{1+c_{2}}\sum_{k=1}^{K_{1}}\gamma\mathbf{w}_{k}^{\top}(\tilde{x}-\bar{x}_{k})+\frac{1}{1+c_{3}}\sum_{j=K_{1}+1}^{K}\gamma\mathbf{w}_{j}^{\top}\tilde{x}-\frac{1}{1+c_{3}}\sum_{j=K_{1}+1}^{K}b_{j}+C\\
&\geq-\frac{\gamma}{1+c_{2}}\left(\frac{c_{4}}{2}\sum_{k=1}^{K_{1}}\lVert\mathbf{w}_{k}\rVert_{2}^{2}+\frac{1}{2c_{4}}\sum_{k=1}^{K_{1}}\lVert\tilde{x}-\bar{x}_{k}\rVert_{2}^{2}\right)+\frac{1}{1+c_{3}}\sum_{j=K_{1}+1}^{K}\gamma\mathbf{w}_{j}^{\top}\tilde{x}\\
&\quad-\frac{1}{1+c_{3}}\sum_{j=K_{1}+1}^{K}b_{j}+C \tag*{(88)}
\end{aligned} f bce - os ( W , b , F ) ≥ f ^ bce - os ( 1 ) ( W , b , F ) ≥ 1 + c 2 1 k = 1 ∑ K 1 γ w k ⊤ ( x ~ − x ˉ k ) + 1 + c 3 1 j = K 1 + 1 ∑ K γ w j ⊤ x ~ − 1 + c 3 1 j = K 1 + 1 ∑ K b j + C ≥ − 1 + c 2 γ ( 2 c 4 k = 1 ∑ K 1 ∥ w k ∥ 2 2 + 2 c 4 1 k = 1 ∑ K 1 ∥ x ~ − x ˉ k ∥ 2 2 ) + 1 + c 3 1 j = K 1 + 1 ∑ K γ w j ⊤ x ~ − 1 + c 3 1 j = K 1 + 1 ∑ K b j + C (88)
≥ − γ 1 + c 2 ( c 4 2 ∑ k = 1 K 1 ∥ w k ∥ 2 2 + 1 2 c 4 ∑ k = 1 K 1 ∥ x ~ − x ˉ k ∥ 2 2 ) − γ 1 + c 3 ∑ j = K 1 + 1 K ∥ w j ∥ ∥ x ~ ∥ − 1 1 + c 3 ∑ j = K 1 + 1 K b j + C . (89) \begin{aligned}
&\geq-\frac{\gamma}{1+c_{2}}\left(\frac{c_{4}}{2}\sum_{k=1}^{K_{1}}\lVert\mathbf{w}_{k}\rVert_{2}^{2}+\frac{1}{2c_{4}}\sum_{k=1}^{K_{1}}\lVert\tilde{x}-\bar{x}_{k}\rVert_{2}^{2}\right)-\frac{\gamma}{1+c_{3}}\sum_{j=K_{1}+1}^{K}\lVert\mathbf{w}_{j}\rVert\lVert\tilde{x}\rVert\\
&\quad-\frac{1}{1+c_{3}}\sum_{j=K_{1}+1}^{K}b_{j}+C. \tag*{(89)}
\end{aligned} ≥ − 1 + c 2 γ ( 2 c 4 k = 1 ∑ K 1 ∥ w k ∥ 2 2 + 2 c 4 1 k = 1 ∑ K 1 ∥ x ~ − x ˉ k ∥ 2 2 ) − 1 + c 3 γ j = K 1 + 1 ∑ K ∥ w j ∥ ∥ x ~ ∥ − 1 + c 3 1 j = K 1 + 1 ∑ K b j + C . (89)
= − γ 1 + c 2 [ c 4 2 ∑ k = 1 K ∥ w k ∥ 2 + 1 2 c 4 ( ∑ k = 1 K 1 ∥ x ˉ k ∥ 2 − K 1 ∥ x ~ ∥ 2 ) ] − γ K − K 1 1 + c 3 ∥ x ~ ∥ − 1 1 + c 3 ∑ j = K 1 + 1 K b j + C ≥ − γ 1 + c 2 ( c 4 2 K 1 + 1 2 c 4 K 1 ) + γ 1 + c 2 1 2 c 4 K 1 ∥ x ~ ∥ 2 − γ K − K 1 1 + c 3 ∥ x ~ ∥ − 1 1 + c 3 ∑ j = K 1 + 1 K b j + C = − γ K 1 1 + c 2 ( c 4 2 + 1 2 c 4 ) + γ K 1 1 + c 2 1 2 c 4 ∥ x ~ ∥ 2 − γ K − K 1 1 + c 3 ∥ x ~ ∥ − 1 1 + c 3 ∑ j = K 1 + 1 K b j + C , (90) \begin{aligned}
&= -\frac{\gamma}{1+c_2}\left[\frac{c_4}{2}\sum_{k=1}^{K}\lVert w_k\rVert^2+\frac{1}{2c_4}\left(\sum_{k=1}^{K_1}\lVert\bar{x}_k\rVert^2-K_1\lVert\tilde{x}\rVert^2\right)\right]\\
&\quad-\gamma\frac{K-K_1}{1+c_3}\lVert\tilde{x}\rVert-\frac{1}{1+c_3}\sum_{j=K_1+1}^{K}b_j+C\\
&\geq-\frac{\gamma}{1+c_2}\left(\frac{c_4}{2}K_1+\frac{1}{2c_4}K_1\right)+\frac{\gamma}{1+c_2}\frac{1}{2c_4}K_1\lVert\tilde{x}\rVert^2\\
&\quad-\gamma\frac{K-K_1}{1+c_3}\lVert\tilde{x}\rVert-\frac{1}{1+c_3}\sum_{j=K_1+1}^{K}b_j+C\\
&=-\frac{\gamma K_1}{1+c_2}\left(\frac{c_4}{2}+\frac{1}{2c_4}\right)+\frac{\gamma K_1}{1+c_2}\frac{1}{2c_4}\lVert\tilde{x}\rVert^2-\gamma\frac{K-K_1}{1+c_3}\lVert\tilde{x}\rVert-\frac{1}{1+c_3}\sum_{j=K_1+1}^{K}b_j+C, \tag*{(90)}
\end{aligned} = − 1 + c 2 γ [ 2 c 4 k = 1 ∑ K ∥ w k ∥ 2 + 2 c 4 1 ( k = 1 ∑ K 1 ∥ x ˉ k ∥ 2 − K 1 ∥ x ~ ∥ 2 ) ] − γ 1 + c 3 K − K 1 ∥ x ~ ∥ − 1 + c 3 1 j = K 1 + 1 ∑ K b j + C ≥ − 1 + c 2 γ ( 2 c 4 K 1 + 2 c 4 1 K 1 ) + 1 + c 2 γ 2 c 4 1 K 1 ∥ x ~ ∥ 2 − γ 1 + c 3 K − K 1 ∥ x ~ ∥ − 1 + c 3 1 j = K 1 + 1 ∑ K b j + C = − 1 + c 2 γ K 1 ( 2 c 4 + 2 c 4 1 ) + 1 + c 2 γ K 1 2 c 4 1 ∥ x ~ ∥ 2 − γ 1 + c 3 K − K 1 ∥ x ~ ∥ − 1 + c 3 1 j = K 1 + 1 ∑ K b j + C , (90)
where inequality (S.65) becomes an equality if and only if
c 4 w k = x ˉ k − x ~ , ∀ k ∈ [ K ] , ∀ c 4 > 0 , (91) c_4w_k=\bar{x}_k-\tilde{x},\quad\forall k\in[K],\ \forall c_4>0, \tag*{(91)} c 4 w k = x ˉ k − x ~ , ∀ k ∈ [ K ] , ∀ c 4 > 0 , (91)
inequality (S.66) becomes an equality if and only if
c 5 w j = − x ~ , K 1 + 1 ≤ j ≤ K , ∀ c 5 > 0 , (92) c_5w_j=-\tilde{x},\quad K_1+1\leq j\leq K,\ \forall c_5>0, \tag*{(92)} c 5 w j = − x ~ , K 1 + 1 ≤ j ≤ K , ∀ c 5 > 0 , (92)
and inequality (S.67) becomes an equality if and only if
1 = ∥ x ˉ k ∥ = ∥ 1 n k ∑ x ( k ) ∈ F k x ( k ) ∥ ≤ 1 n k ∑ x ( k ) ∈ F k ∥ x ( k ) ∥ = 1 ⇔ x ( k ) = x ˉ k , ∀ x ( k ) ∈ F k , ∀ k ∈ [ K 1 ] . (93) \begin{aligned}
1=\lVert\bar{x}_k\rVert
&=\left\lVert\frac{1}{n_k}\sum_{x^{(k)}\in F_k}x^{(k)}\right\rVert
\leq\frac{1}{n_k}\sum_{x^{(k)}\in F_k}\lVert x^{(k)}\rVert=1\\
&\Leftrightarrow x^{(k)}=\bar{x}_k,\ \forall x^{(k)}\in F_k,\ \forall k\in[K_1]. \tag*{(93)}
\end{aligned} 1 = ∥ x ˉ k ∥ = n k 1 x ( k ) ∈ F k ∑ x ( k ) ≤ n k 1 x ( k ) ∈ F k ∑ ∥ x ( k ) ∥ = 1 ⇔ x ( k ) = x ˉ k , ∀ x ( k ) ∈ F k , ∀ k ∈ [ K 1 ] . (93)
With Eq. (S.69), ∥ x ~ ∥ = c 5 \lVert\tilde{x}\rVert=c_5 ∥ x ~ ∥ = c 5 , then
f b c e - o s ( W , b , F ) ≥ − γ K 1 1 + c 2 ( c 4 2 + 1 2 c 4 ) + γ K 1 1 + c 2 1 2 c 4 ∥ x ~ ∥ 2 − γ ( K − K 1 ) 1 + c 3 ∥ x ~ ∥ − 1 1 + c 3 ∑ j = K 1 + 1 K b j + C = − γ K 1 1 + c 2 ( c 4 2 + 1 2 c 4 ) + γ K 1 1 + c 2 c 5 2 2 c 4 − γ ( K − K 1 ) 1 + c 3 c 5 − 1 1 + c 3 ∑ j = K 1 + 1 K b j + C . (94) \begin{aligned}
f_{\mathrm{bce\text{-}os}}(W,b,\mathcal{F})
&\geq-\frac{\gamma K_1}{1+c_2}\left(\frac{c_4}{2}+\frac{1}{2c_4}\right)+\frac{\gamma K_1}{1+c_2}\frac{1}{2c_4}\lVert\tilde{x}\rVert^2-\frac{\gamma(K-K_1)}{1+c_3}\lVert\tilde{x}\rVert-\frac{1}{1+c_3}\sum_{j=K_1+1}^{K}b_j+C\\
&=-\frac{\gamma K_1}{1+c_2}\left(\frac{c_4}{2}+\frac{1}{2c_4}\right)+\frac{\gamma K_1}{1+c_2}\frac{c_5^2}{2c_4}-\frac{\gamma(K-K_1)}{1+c_3}c_5-\frac{1}{1+c_3}\sum_{j=K_1+1}^{K}b_j+C. \tag*{(94)}
\end{aligned} f bce - os ( W , b , F ) ≥ − 1 + c 2 γ K 1 ( 2 c 4 + 2 c 4 1 ) + 1 + c 2 γ K 1 2 c 4 1 ∥ x ~ ∥ 2 − 1 + c 3 γ ( K − K 1 ) ∥ x ~ ∥ − 1 + c 3 1 j = K 1 + 1 ∑ K b j + C = − 1 + c 2 γ K 1 ( 2 c 4 + 2 c 4 1 ) + 1 + c 2 γ K 1 2 c 4 c 5 2 − 1 + c 3 γ ( K − K 1 ) c 5 − 1 + c 3 1 j = K 1 + 1 ∑ K b j + C . (94)
Finally, Lemma S.9 completes the proof.
Lemma S.9 Suppose that the first K 1 K_1 K 1 classes in dataset D \mathcal{D} D contains at least one sample, K 1 < K K_1<K K 1 < K , while the other classes are empty, and that the feature dimension is greater than the number of classes, i.e., n k = ∣ D k ∣ > 0 n_k=|\mathcal{D}_k|>0 n k = ∣ D k ∣ > 0 for ∀ k ∈ [ K 1 ] \forall k\in[K_1] ∀ k ∈ [ K 1 ] , n k = ∣ D k ∣ = 0 n_k=|\mathcal{D}_k|=0 n k = ∣ D k ∣ = 0 for K 1 < k ≤ K K_1<k\leq K K 1 < k ≤ K ,
and d ≥ K 1 d \ge K_1 d ≥ K 1 . Then, for the BCE loss f b c e - o s ( W , b , F ) f_{\mathrm{bce\text{-}os}}(\mathbf{W},\mathbf{b},\mathcal{F}) f bce - os ( W , b , F ) defined in Eq. (S.62),
f b c e ( W , b , F ) ≥ log ( 1 + e b † − γ 1 − ∥ x ~ ∥ 2 ) + ( K 1 − 1 ) log ( 1 + e − γ K 1 − 1 1 − ∥ x ~ ∥ 2 − b † ) + ( K − K 1 ) log ( 1 + e − γ ∥ x ~ ∥ − b † ) , (95) f_{\mathrm{bce}}(\mathbf{W},\mathbf{b},\mathcal{F}) \ge\log\left(1+e^{b^\dagger-\gamma\sqrt{1-\|\tilde{x}\|^2}}\right)+(K_1-1)\log\left(1+e^{-\frac{\gamma}{K_1-1}\sqrt{1-\|\tilde{x}\|^2}-b^\dagger}\right)
+\left(K-K_1\right)\log\left(1+e^{-\gamma\|\tilde{x}\|-b^\dagger}\right), \tag*{(95)} f bce ( W , b , F ) ≥ log ( 1 + e b † − γ 1 − ∥ x ~ ∥ 2 ) + ( K 1 − 1 ) log ( 1 + e − K 1 − 1 γ 1 − ∥ x ~ ∥ 2 − b † ) + ( K − K 1 ) log ( 1 + e − γ ∥ x ~ ∥ − b † ) , (95)
where x ~ = 1 K 1 ∑ k = 1 K 1 x ˉ k \tilde{x}=\frac{1}{K_1}\sum_{k=1}^{K_1}\bar{x}_k x ~ = K 1 1 ∑ k = 1 K 1 x ˉ k with x ˉ k = 1 n k ∑ x ( k ) ∈ F k x ( k ) \bar{x}_k=\frac{1}{n_k}\sum_{x^{(k)}\in\mathcal{F}_k}x^{(k)} x ˉ k = n k 1 ∑ x ( k ) ∈ F k x ( k ) , b † ∈ R b^\dagger\in\mathbb{R} b † ∈ R , and b ⋆ b^\star b ⋆ is the unique real solution of
e γ 1 − ∥ x ~ ∥ 2 K 1 − 1 e 2 b − ( K 1 − 2 ) e b − ( K 1 − 1 ) e γ 1 − ∥ x ~ ∥ 2 = 0. (96) e^{\frac{\gamma\sqrt{1-\|\tilde{x}\|^2}}{K_1-1}}e^{2b}-(K_1-2)e^b-(K_1-1)e^{\gamma\sqrt{1-\|\tilde{x}\|^2}}=0. \tag*{(96)} e K 1 − 1 γ 1 − ∥ x ~ ∥ 2 e 2 b − ( K 1 − 2 ) e b − ( K 1 − 1 ) e γ 1 − ∥ x ~ ∥ 2 = 0. (96)
When f b c e ( W , b , F ) f_{\mathrm{bce}}(\mathbf{W},\mathbf{b},\mathcal{F}) f bce ( W , b , F ) approaching its minimum value, b † → + ∞ b^\dagger\to+\infty b † → + ∞ and ∥ x ~ ∥ → 0 \|\tilde{x}\|\to0 ∥ x ~ ∥ → 0 .
Proof According to Theorem S.8, the BCE loss f b c e - o s ( W , b , F ) f_{\mathrm{bce\text{-}os}}(\mathbf{W},\mathbf{b},\mathcal{F}) f bce - os ( W , b , F ) satisfies
f b c e - o s ( W , b , F ) ≥ − γ K 1 1 + c 2 ( c 4 2 + 1 2 c 4 ) + γ K 1 1 + c 2 c 5 2 2 c 4 − γ ( K − K 1 ) 1 + c 3 c 5 − 1 1 + c 3 ∑ j = K 1 + 1 K b j + C , (97) f_{\mathrm{bce\text{-}os}}(\mathbf{W},\mathbf{b},\mathcal{F})\geq-\frac{\gamma K_1}{1+c_2}\left(\frac{c_4}{2}+\frac{1}{2c_4}\right)+\frac{\gamma K_1}{1+c_2}\frac{c_5^2}{2c_4}-\frac{\gamma(K-K_1)}{1+c_3}c_5
-\frac{1}{1+c_3}\sum_{j=K_1+1}^{K}b_j+C, \tag*{(97)} f bce - os ( W , b , F ) ≥ − 1 + c 2 γ K 1 ( 2 c 4 + 2 c 4 1 ) + 1 + c 2 γ K 1 2 c 4 c 5 2 − 1 + c 3 γ ( K − K 1 ) c 5 − 1 + c 3 1 j = K 1 + 1 ∑ K b j + C , (97)
and the loss achieves this constant lower bound if and only if Eqs. (S.94), (S.95), (S.96), (S.64), (S.68), (S.69), and (S.70) hold.
From Eq. (S.68), for ∀ c 4 > 0 \forall c_4>0 ∀ c 4 > 0 ,
c 4 ∑ k = 1 K 1 w k = ∑ k = 1 K 1 ( x ˉ k − x ~ ) = ∑ k = 1 K 1 x ˉ k − K 1 x ~ = ∑ k = 1 K 1 x ˉ k − K 1 K 1 ∑ k = 1 K 1 x ˉ k = 0 ⟺ ∑ k = 1 K 1 w k = 0. (98) c_4\sum_{k=1}^{K_1}w_k=\sum_{k=1}^{K_1}(\bar{x}_k-\tilde{x})=\sum_{k=1}^{K_1}\bar{x}_k-K_1\tilde{x}=\sum_{k=1}^{K_1}\bar{x}_k-\frac{K_1}{K_1}\sum_{k=1}^{K_1}\bar{x}_k=0\Longleftrightarrow\sum_{k=1}^{K_1}w_k=0. \tag*{(98)} c 4 k = 1 ∑ K 1 w k = k = 1 ∑ K 1 ( x ˉ k − x ~ ) = k = 1 ∑ K 1 x ˉ k − K 1 x ~ = k = 1 ∑ K 1 x ˉ k − K 1 K 1 k = 1 ∑ K 1 x ˉ k = 0 ⟺ k = 1 ∑ K 1 w k = 0. (98)
Then, from Eq. (S.68),
c 4 w k = x ˉ k − x ~ ⇒ c 4 = c 4 w k ⊤ w k = w k ⊤ x ˉ k − w k ⊤ x ~ ⇒ K 1 c 4 = ∑ k = 1 K 1 w k ⊤ x ˉ k − ( ∑ k = 1 K 1 w k ) ⊤ x ~ ⇒ S .75 ∑ k = 1 K 1 w k ⊤ x ˉ k = c 4 K 1 , (99) \begin{aligned}
c_4w_k&=\bar{x}_k-\tilde{x}\quad\Rightarrow\quad c_4=c_4w_k^\top w_k=w_k^\top\bar{x}_k-w_k^\top\tilde{x}\\
&\Rightarrow\quad K_1c_4=\sum_{k=1}^{K_1}w_k^\top\bar{x}_k-\left(\sum_{k=1}^{K_1}w_k\right)^\top\tilde{x}\\
&\overset{\mathrm{S.75}}{\Rightarrow}\quad\sum_{k=1}^{K_1}w_k^\top\bar{x}_k=c_4K_1, \tag*{(99)}
\end{aligned} c 4 w k = x ˉ k − x ~ ⇒ c 4 = c 4 w k ⊤ w k = w k ⊤ x ˉ k − w k ⊤ x ~ ⇒ K 1 c 4 = k = 1 ∑ K 1 w k ⊤ x ˉ k − ( k = 1 ∑ K 1 w k ) ⊤ x ~ ⇒ S.75 k = 1 ∑ K 1 w k ⊤ x ˉ k = c 4 K 1 , (99)
c 4 w k = x ˉ k − x ~ ⇒ c 4 w k ⊤ x ˉ k = 1 − x ~ ⊤ x ˉ k ⇒ S .76 c 4 2 K 1 = c 4 ∑ k = 1 K 1 w k ⊤ x ˉ k = K 1 − ∑ k = 1 K 1 x ~ ⊤ x ˉ k = K 1 − K 1 ∥ x ~ ∥ 2 ⇒ c 4 2 = 1 − ∥ x ~ ∥ 2 , (100) \begin{aligned}
c_4w_k&=\bar{x}_k-\tilde{x}\quad\Rightarrow\quad c_4w_k^\top\bar{x}_k=1-\tilde{x}^\top\bar{x}_k\\
&\overset{\mathrm{S.76}}{\Rightarrow}\quad c_4^2K_1=c_4\sum_{k=1}^{K_1}w_k^\top\bar{x}_k=K_1-\sum_{k=1}^{K_1}\tilde{x}^\top\bar{x}_k=K_1-K_1\|\tilde{x}\|^2\\
&\Rightarrow\quad c_4^2=1-\|\tilde{x}\|^2, \tag*{(100)}
\end{aligned} c 4 w k = x ˉ k − x ~ ⇒ c 4 w k ⊤ x ˉ k = 1 − x ~ ⊤ x ˉ k ⇒ S.76 c 4 2 K 1 = c 4 k = 1 ∑ K 1 w k ⊤ x ˉ k = K 1 − k = 1 ∑ K 1 x ~ ⊤ x ˉ k = K 1 − K 1 ∥ x ~ ∥ 2 ⇒ c 4 2 = 1 − ∥ x ~ ∥ 2 , (100)
c 4 w k = x ˉ k − x ~ ⇒ x ~ = x ˉ k − c 4 w k c_4w_k=\bar{x}_k-\tilde{x}\quad\Rightarrow\quad\tilde{x}=\bar{x}_k-c_4w_k c 4 w k = x ˉ k − x ~ ⇒ x ~ = x ˉ k − c 4 w k
⇒ {xref}‘S.70‘,{xref}‘S.77‘ 1 − c 4 2 = ∥ x ~ ∥ 2 = ∥ x ˉ k ∥ 2 + c 4 2 ∥ w k ∥ 2 − 2 c 4 w k ⊤ x ˉ k = 1 + c 4 2 − 2 c 4 w k ⊤ x ˉ k \overset{\text{\{xref\}`S.70`,\{xref\}`S.77`}}{\Rightarrow} 1-c_4^2=\|\tilde{x}\|^2=\|\bar{x}_k\|^2+c_4^2\|w_k\|^2-2c_4w_k^\top\bar{x}_k=1+c_4^2-2c_4w_k^\top\bar{x}_k ⇒ {xref}‘S.70‘,{xref}‘S.77‘ 1 − c 4 2 = ∥ x ~ ∥ 2 = ∥ x ˉ k ∥ 2 + c 4 2 ∥ w k ∥ 2 − 2 c 4 w k ⊤ x ˉ k = 1 + c 4 2 − 2 c 4 w k ⊤ x ˉ k
⇒ w k ⊤ x ˉ k = c 4 = 1 − ∥ x ~ ∥ 2 , ∀ k ∈ [ K 1 ] , (101) \Rightarrow\quad w_k^\top\bar{x}_k=c_4=\sqrt{1-\|\tilde{x}\|^2},\quad\forall k\in[K_1], \tag*{(101)} ⇒ w k ⊤ x ˉ k = c 4 = 1 − ∥ x ~ ∥ 2 , ∀ k ∈ [ K 1 ] , (101)
c 4 w k = x ˉ k − x ~ ⇒ c 4 = c 4 w k ⊤ w k = w k ⊤ x ˉ k − w k ⊤ x ~ c_4w_k=\bar{x}_k-\tilde{x}\quad\Rightarrow\quad c_4=c_4w_k^\top w_k=w_k^\top\bar{x}_k-w_k^\top\tilde{x} c 4 w k = x ˉ k − x ~ ⇒ c 4 = c 4 w k ⊤ w k = w k ⊤ x ˉ k − w k ⊤ x ~
⇒ {xref}‘S.78‘ w k ⊤ x ~ = 0 , ∀ k ∈ [ K 1 ] . (102) \overset{\text{\{xref\}`S.78`}}{\Rightarrow}\quad w_k^\top\tilde{x}=0,\quad\forall k\in[K_1]. \tag*{(102)} ⇒ {xref}‘S.78‘ w k ⊤ x ~ = 0 , ∀ k ∈ [ K 1 ] . (102)
Meanwhile,
c 4 w k = x ˉ k − x ~ ⇒ c 4 w k ⊤ w j = w j ⊤ x ˉ k − w j ⊤ x ~ ⇒ c 4 γ w k ⊤ w j = γ w j ⊤ x ˉ k − b j − γ w j ⊤ x ~ + b j = γ w j ⊤ x ˉ k − b j − 1 K 1 ∑ k = 1 K 1 ( γ w j ⊤ x ˉ k − b j ) \begin{aligned}
c_4w_k=\bar{x}_k-\tilde{x}\quad\Rightarrow\quad c_4w_k^\top w_j=w_j^\top\bar{x}_k-w_j^\top\tilde{x} \\
&\Rightarrow\quad c_4\gamma w_k^\top w_j=\gamma w_j^\top\bar{x}_k-b_j-\gamma w_j^\top\tilde{x}+b_j=\gamma w_j^\top\bar{x}_k-b_j-\frac{1}{K_1}\sum_{k=1}^{K_1}(\gamma w_j^\top\bar{x}_k-b_j)
\end{aligned} c 4 w k = x ˉ k − x ~ ⇒ c 4 w k ⊤ w j = w j ⊤ x ˉ k − w j ⊤ x ~ ⇒ c 4 γ w k ⊤ w j = γ w j ⊤ x ˉ k − b j − γ w j ⊤ x ~ + b j = γ w j ⊤ x ˉ k − b j − K 1 1 k = 1 ∑ K 1 ( γ w j ⊤ x ˉ k − b j )
= {xref}‘S.94‘, {xref}‘S.95‘, {xref}‘S.70‘ − c 2 ′ − c 1 ′ − ( K 1 − 1 ) c 2 ′ K 1 = − c 1 ′ + c 2 ′ K 1 ⇒ w k ⊤ w j = − c 1 ′ + c 2 ′ c 4 γ K 1 , ∀ j ≠ k ∈ [ K 1 ] , (103) \begin{aligned}
\overset{\text{\{xref\}`S.94`, \{xref\}`S.95`, \{xref\}`S.70`}}{=}-c'_2-\frac{c'_1-(K_1-1)c'_2}{K_1}=-\frac{c'_1+c'_2}{K_1} \\
&\Rightarrow\quad w_k^\top w_j=-\frac{c'_1+c'_2}{c_4\gamma K_1},\quad\forall j\ne k\in[K_1], \tag*{(103)}
\end{aligned} = {xref}‘S.94‘, {xref}‘S.95‘, {xref}‘S.70‘ − c 2 ′ − K 1 c 1 ′ − ( K 1 − 1 ) c 2 ′ = − K 1 c 1 ′ + c 2 ′ ⇒ w k ⊤ w j = − c 4 γ K 1 c 1 ′ + c 2 ′ , ∀ j = k ∈ [ K 1 ] , (103)
where c 1 ′ = log ( c 1 ) , c 2 ′ = log ( c 2 ) c'_1=\log(c_1),c'_2=\log(c_2) c 1 ′ = log ( c 1 ) , c 2 ′ = log ( c 2 ) . From Eq. (S.75),
∑ j = 1 K 1 w j = 0 ⇒ w k ⊤ ∑ j = 1 K 1 w j = 0 ⇒ 1 = − ∑ j = 1 j ≠ k K 1 w k ⊤ w j = {xref}‘S.80‘ ( K 1 − 1 ) c 1 ′ + c 2 ′ c 4 γ K 1 ⇒ c 1 ′ + c 2 ′ c 4 γ K 1 = 1 K 1 − 1 ⇒ w k ⊤ w j = − 1 K 1 − 1 , ∀ j ≠ k ∈ [ K 1 ] . (104) \begin{aligned}
\sum_{j=1}^{K_1}w_j=0\quad\Rightarrow\quad w_k^\top\sum_{j=1}^{K_1}w_j=0\quad\Rightarrow\quad1=-\sum_{\substack{j=1\\j\ne k}}^{K_1}w_k^\top w_j\overset{\text{\{xref\}`S.80`}}{=}(K_1-1)\frac{c'_1+c'_2}{c_4\gamma K_1} \\
&\Rightarrow\quad\frac{c'_1+c'_2}{c_4\gamma K_1}=\frac{1}{K_1-1}\quad\Rightarrow\quad w_k^\top w_j=-\frac{1}{K_1-1},\quad\forall j\ne k\in[K_1]. \tag*{(104)}
\end{aligned} j = 1 ∑ K 1 w j = 0 ⇒ w k ⊤ j = 1 ∑ K 1 w j = 0 ⇒ 1 = − j = 1 j = k ∑ K 1 w k ⊤ w j = {xref}‘S.80‘ ( K 1 − 1 ) c 4 γ K 1 c 1 ′ + c 2 ′ ⇒ c 4 γ K 1 c 1 ′ + c 2 ′ = K 1 − 1 1 ⇒ w k ⊤ w j = − K 1 − 1 1 , ∀ j = k ∈ [ K 1 ] . (104)
Then,
2 − 2 x ˉ k ⊤ x ˉ j = ∥ x ˉ k − x ˉ j ∥ 2 = {xref}‘S.68‘ ∥ c 4 w k − c 4 w j ∥ 2 = c 4 2 ( ∥ w k ∥ 2 + ∥ w j ∥ 2 − 2 w k ⊤ w j ) = {xref}‘S.81‘ 2 c 4 2 K 1 K 1 − 1 ⇒ x ˉ k ⊤ x ˉ j = 1 − K 1 K 1 − 1 c 4 2 = 1 − K 1 K 1 − 1 ( 1 − ∥ x ~ ∥ 2 ) = − 1 K 1 − 1 + K 1 K 1 − 1 ∥ x ~ ∥ 2 , ∀ j ≠ k ∈ [ K 1 ] , (105) \begin{aligned}
2-2\bar{x}_k^\top\bar{x}_j=\|\bar{x}_k-\bar{x}_j\|^2\overset{\text{\{xref\}`S.68`}}{=}\|c_4w_k-c_4w_j\|^2 \\
&=c_4^2(\|w_k\|^2+\|w_j\|^2-2w_k^\top w_j)\overset{\text{\{xref\}`S.81`}}{=}2c_4^2\frac{K_1}{K_1-1} \\
&\Rightarrow\quad\bar{x}_k^\top\bar{x}_j=1-\frac{K_1}{K_1-1}c_4^2=1-\frac{K_1}{K_1-1}(1-\|\tilde{x}\|^2) \\
&=-\frac{1}{K_1-1}+\frac{K_1}{K_1-1}\|\tilde{x}\|^2,\quad\forall j\ne k\in[K_1], \tag*{(105)}
\end{aligned} 2 − 2 x ˉ k ⊤ x ˉ j = ∥ x ˉ k − x ˉ j ∥ 2 = {xref}‘S.68‘ ∥ c 4 w k − c 4 w j ∥ 2 = c 4 2 ( ∥ w k ∥ 2 + ∥ w j ∥ 2 − 2 w k ⊤ w j ) = {xref}‘S.81‘ 2 c 4 2 K 1 − 1 K 1 ⇒ x ˉ k ⊤ x ˉ j = 1 − K 1 − 1 K 1 c 4 2 = 1 − K 1 − 1 K 1 ( 1 − ∥ x ~ ∥ 2 ) = − K 1 − 1 1 + K 1 − 1 K 1 ∥ x ~ ∥ 2 , ∀ j = k ∈ [ K 1 ] , (105)
and
c 4 w k ⊤ x ˉ j = {xref}‘S.68‘ x ˉ k ⊤ x ˉ j − x ~ ⊤ x ˉ j = x ˉ k ⊤ x ˉ j − 1 K 1 ∑ ℓ = 1 K 1 x ~ ⊤ x ˉ j c_4w_k^\top\bar{x}_j\overset{\text{\{xref\}`S.68`}}{=}\bar{x}_k^\top\bar{x}_j-\tilde{x}^\top\bar{x}_j=\bar{x}_k^\top\bar{x}_j-\frac{1}{K_1}\sum_{\ell=1}^{K_1}\tilde{x}^\top\bar{x}_j c 4 w k ⊤ x ˉ j = {xref}‘S.68‘ x ˉ k ⊤ x ˉ j − x ~ ⊤ x ˉ j = x ˉ k ⊤ x ˉ j − K 1 1 ℓ = 1 ∑ K 1 x ~ ⊤ x ˉ j
= {xref}‘S.82‘ − 1 K 1 + ( 1 − K 1 − 1 K 1 ) ( 1 − K 1 K 1 − 1 c 4 2 ) = − 1 K 1 − 1 c 4 2 ⇒ w k ⊤ x ˉ j = − 1 K 1 − 1 c 4 = − 1 − ∥ x ~ ∥ 2 K 1 − 1 , ∀ j ≠ k ∈ [ K 1 ] . (106) \begin{aligned}
\overset{\text{\{xref\}`S.82`}}{=}-\frac{1}{K_1}+\left(1-\frac{K_1-1}{K_1}\right)\left(1-\frac{K_1}{K_1-1}c_4^2\right)=-\frac{1}{K_1-1}c_4^2 \\
&\Rightarrow\quad w_k^\top\bar{x}_j=-\frac{1}{K_1-1}c_4=-\frac{\sqrt{1-\|\tilde{x}\|^2}}{K_1-1},\quad\forall j\ne k\in[K_1]. \tag*{(106)}
\end{aligned} = {xref}‘S.82‘ − K 1 1 + ( 1 − K 1 K 1 − 1 ) ( 1 − K 1 − 1 K 1 c 4 2 ) = − K 1 − 1 1 c 4 2 ⇒ w k ⊤ x ˉ j = − K 1 − 1 1 c 4 = − K 1 − 1 1 − ∥ x ~ ∥ 2 , ∀ j = k ∈ [ K 1 ] . (106)
Now, we try to express the lower bound of f b c e f_{\mathrm{bce}} f bce using c 4 c_4 c 4 ; to this end, it is necessary to derive the relationship between c 4 c_4 c 4 with c 1 c_1 c 1 , c 2 c_2 c 2 , c 3 c_3 c 3 , and c 5 c_5 c 5 . In first, from Eq. (S.64),
0 = K 1 − 1 1 + c 2 − 1 1 + c 1 ⟹ S.94,S.95,S.70 ( K 1 − 2 ) + ( K 1 − 1 ) e γ w k T x ˉ k − b k = e b k − γ w k T x ˉ j ⟹ S.78,S.83 0=\frac{K_1-1}{1+c_2}-\frac{1}{1+c_1}
\overset{\text{S.94,S.95,S.70}}{\Longrightarrow}
(K_1-2)+(K_1-1)e^{\gamma w_k^{\mathsf T}\bar{x}_k-b_k}
=e^{b_k-\gamma w_k^{\mathsf T}\bar{x}_j}
\overset{\text{S.78,S.83}}{\Longrightarrow} 0 = 1 + c 2 K 1 − 1 − 1 + c 1 1 ⟹ S.94,S.95,S.70 ( K 1 − 2 ) + ( K 1 − 1 ) e γ w k T x ˉ k − b k = e b k − γ w k T x ˉ j ⟹ S.78,S.83
( K 1 − 2 ) + ( K 1 − 1 ) e γ c 4 − b k = e b k + γ K 1 − 1 c 4 , (K_1-2)+(K_1-1)e^{\gamma c_4-b_k}=e^{b_k+\frac{\gamma}{K_1-1}c_4}, ( K 1 − 2 ) + ( K 1 − 1 ) e γ c 4 − b k = e b k + K 1 − 1 γ c 4 ,
then,
b k = b ⋆ , ∀ k ∈ [ K 1 ] , (107) b_k=b^\star,\quad\forall k\in[K_1], \tag*{(107)} b k = b ⋆ , ∀ k ∈ [ K 1 ] , (107)
where b ⋆ b^\star b ⋆ is the unique real solution of
e γ c 4 K 1 − 1 e 2 b − ( K 1 − 2 ) e b − ( K 1 − 1 ) e γ c 4 = 0 , e^{\frac{\gamma c_4}{K_1-1}}e^{2b}-(K_1-2)e^b-(K_1-1)e^{\gamma c_4}=0, e K 1 − 1 γ c 4 e 2 b − ( K 1 − 2 ) e b − ( K 1 − 1 ) e γ c 4 = 0 ,
i.e., the solution of Eq. (S.73). Then,
c 1 = exp ( γ w k T x ˉ k − b k ) = exp ( γ c 4 − b ⋆ ) , (108) c_1=\exp\left(\gamma w_k^{\mathsf T}\bar{x}_k-b_k\right)=\exp\left(\gamma c_4-b^\star\right), \tag*{(108)} c 1 = exp ( γ w k T x ˉ k − b k ) = exp ( γ c 4 − b ⋆ ) , (108)
c 2 = exp ( b k − γ w k T x ˉ j ) = exp ( b ⋆ + γ c 4 K 1 − 1 ) . (109) c_2=\exp\left(b_k-\gamma w_k^{\mathsf T}\bar{x}_j\right)=\exp\left(b^\star+\frac{\gamma c_4}{K_1-1}\right). \tag*{(109)} c 2 = exp ( b k − γ w k T x ˉ j ) = exp ( b ⋆ + K 1 − 1 γ c 4 ) . (109)
From Eq. (S.69),
c 5 w j = − x ~ ⇒ c 5 2 ∥ w j ∥ 2 = ∥ x ~ ∥ 2 ⟹ S.77 c 5 2 = 1 − c 4 2 , (110) c_5w_j=-\tilde{x}\quad\Rightarrow\quad c_5^2\lVert w_j\rVert^2=\lVert\tilde{x}\rVert^2
\quad\overset{\text{S.77}}{\Longrightarrow}\quad c_5^2=1-c_4^2, \tag*{(110)} c 5 w j = − x ~ ⇒ c 5 2 ∥ w j ∥ 2 = ∥ x ~ ∥ 2 ⟹ S.77 c 5 2 = 1 − c 4 2 , (110)
c 5 w j = − x ~ ⇒ c 5 w j T x ˉ k = − x ~ T x ˉ k = − 1 K 1 ∑ ℓ = 1 K 1 x ˉ ℓ T x ˉ k c_5w_j=-\tilde{x}\quad\Rightarrow\quad c_5w_j^{\mathsf T}\bar{x}_k=-\tilde{x}^{\mathsf T}\bar{x}_k=-\frac{1}{K_1}\sum_{\ell=1}^{K_1}\bar{x}_{\ell}^{\mathsf T}\bar{x}_k c 5 w j = − x ~ ⇒ c 5 w j T x ˉ k = − x ~ T x ˉ k = − K 1 1 ℓ = 1 ∑ K 1 x ˉ ℓ T x ˉ k
= S.82 − 1 K 1 [ 1 + ( K 1 − 1 ) ( 1 − K 1 K 1 − 1 c 4 2 ) ] = − 1 K 1 ( K 1 − K 1 c 4 2 ) ⇒ w j T x ˉ k = − 1 − c 4 2 c 5 = S.87 − 1 − c 4 2 , K 1 < j ≤ K , ∀ k ∈ [ K 1 ] (111) \begin{aligned}
\overset{\text{S.82}}{=}-\frac{1}{K_1}\left[1+(K_1-1)\left(1-\frac{K_1}{K_1-1}c_4^2\right)\right]
=-\frac{1}{K_1}(K_1-K_1c_4^2) \\
&\Rightarrow\quad w_j^{\mathsf T}\bar{x}_k=-\frac{1-c_4^2}{c_5}
\overset{\text{S.87}}{=}-\sqrt{1-c_4^2},\quad K_1<j\le K,\ \forall k\in[K_1] \tag*{(111)}
\end{aligned} = S.82 − K 1 1 [ 1 + ( K 1 − 1 ) ( 1 − K 1 − 1 K 1 c 4 2 ) ] = − K 1 1 ( K 1 − K 1 c 4 2 ) ⇒ w j T x ˉ k = − c 5 1 − c 4 2 = S.87 − 1 − c 4 2 , K 1 < j ≤ K , ∀ k ∈ [ K 1 ] (111)
⇒ c 3 = exp ( b j − γ w j T x ˉ k ) = exp ( b j + γ 1 − c 4 2 ) , K 1 < j ≤ K , ∀ k ∈ [ K 1 ] (112) \Rightarrow\quad c_3=\exp\left(b_j-\gamma w_j^{\mathsf T}\bar{x}_k\right)
=\exp\left(b_j+\gamma\sqrt{1-c_4^2}\right),\quad K_1<j\le K,\ \forall k\in[K_1] \tag*{(112)} ⇒ c 3 = exp ( b j − γ w j T x ˉ k ) = exp ( b j + γ 1 − c 4 2 ) , K 1 < j ≤ K , ∀ k ∈ [ K 1 ] (112)
⇒ b j = b ℓ = b † , ∀ K 1 < j ≠ ℓ ≤ K . (113) \Rightarrow\quad b_j=b_\ell=b^\dagger,\quad\forall K_1<j\ne\ell\le K. \tag*{(113)} ⇒ b j = b ℓ = b † , ∀ K 1 < j = ℓ ≤ K . (113)
Therefore,
f b c e - o s ( W , b , F ) ≥ − γ K 1 1 + c 2 ( c 4 2 + 1 2 c 4 ) + γ K 1 1 + c 2 c 5 2 2 c 4 − γ ( K − K 1 ) 1 + c 3 c 5 − 1 1 + c 3 ∑ j = K 1 + 1 K b j + C = − γ K 1 1 + c 2 ( c 4 2 + 1 2 c 4 ) + γ K 1 1 + c 2 1 − c 4 2 2 c 4 − γ ( K − K 1 ) 1 + c 3 c 5 − 1 1 + c 3 ∑ j = K 1 + 1 K b j + C \begin{aligned}
f_{\mathrm{bce\text{-}os}}(W,b,\mathcal{F}) \\
&\geq-\frac{\gamma K_1}{1+c_2}\left(\frac{c_4}{2}+\frac{1}{2c_4}\right)
+\frac{\gamma K_1}{1+c_2}\frac{c_5^2}{2c_4}
-\frac{\gamma(K-K_1)}{1+c_3}c_5
-\frac{1}{1+c_3}\sum_{j=K_1+1}^{K}b_j+C \\
&=-\frac{\gamma K_1}{1+c_2}\left(\frac{c_4}{2}+\frac{1}{2c_4}\right)
+\frac{\gamma K_1}{1+c_2}\frac{1-c_4^2}{2c_4}
-\frac{\gamma(K-K_1)}{1+c_3}c_5
-\frac{1}{1+c_3}\sum_{j=K_1+1}^{K}b_j+C
\end{aligned} f bce - os ( W , b , F ) ≥ − 1 + c 2 γ K 1 ( 2 c 4 + 2 c 4 1 ) + 1 + c 2 γ K 1 2 c 4 c 5 2 − 1 + c 3 γ ( K − K 1 ) c 5 − 1 + c 3 1 j = K 1 + 1 ∑ K b j + C = − 1 + c 2 γ K 1 ( 2 c 4 + 2 c 4 1 ) + 1 + c 2 γ K 1 2 c 4 1 − c 4 2 − 1 + c 3 γ ( K − K 1 ) c 5 − 1 + c 3 1 j = K 1 + 1 ∑ K b j + C
= − γ K 1 1 + c 2 c 4 − γ ( K − K 1 ) 1 + c 3 c 5 − 1 1 + c 3 ∑ j = K 1 + 1 K b j + C = log ( 1 + 1 c 1 ) + ( K 1 − 1 ) log ( 1 + 1 c 2 ) + ( K − K 1 ) log ( 1 + 1 c 3 ) + ( γ c 4 − b ⋆ ) ( 1 1 + c 1 − K 1 − 1 1 + c 2 ) − 1 1 + c 3 ∑ j = K 1 + 1 K b j = log ( 1 + e b ⋆ − γ c 4 ) + ( K 1 − 1 ) log ( 1 + e − γ c 4 K 1 − 1 − b ⋆ ) + ( K − K 1 ) log ( 1 + e − γ 1 − c 4 2 − b † ) ≜ f ^ b c e − o s ( 2 ) ( ∥ x ~ ∥ , b ⋆ , b † ) . \begin{aligned}
={}&-\frac{\gamma K_{1}}{1+c_{2}}c_{4}-\frac{\gamma(K-K_{1})}{1+c_{3}}c_{5}-\frac{1}{1+c_{3}}\sum_{j=K_{1}+1}^{K}b_{j}+C\\
={}&\log\left(1+\frac{1}{c_{1}}\right)+(K_{1}-1)\log\left(1+\frac{1}{c_{2}}\right)+(K-K_{1})\log\left(1+\frac{1}{c_{3}}\right)\\
&+(\gamma c_{4}-b^{\star})\left(\frac{1}{1+c_{1}}-\frac{K_{1}-1}{1+c_{2}}\right)-\frac{1}{1+c_{3}}\sum_{j=K_{1}+1}^{K}b_{j}\\
={}&\log\left(1+e^{b^{\star}-\gamma c_{4}}\right)+(K_{1}-1)\log\left(1+e^{-\frac{\gamma c_{4}}{K_{1}-1}-b^{\star}}\right)\\
&+(K-K_{1})\log\left(1+e^{-\gamma\sqrt{1-c_{4}^{2}}-b^{\dagger}}\right)\\
\triangleq{}&\hat{f}^{(2)}_{\mathrm{bce-os}}\left(\lVert\tilde{x}\rVert,b^{\star},b^{\dagger}\right).
\end{aligned} = = = ≜ − 1 + c 2 γ K 1 c 4 − 1 + c 3 γ ( K − K 1 ) c 5 − 1 + c 3 1 j = K 1 + 1 ∑ K b j + C log ( 1 + c 1 1 ) + ( K 1 − 1 ) log ( 1 + c 2 1 ) + ( K − K 1 ) log ( 1 + c 3 1 ) + ( γ c 4 − b ⋆ ) ( 1 + c 1 1 − 1 + c 2 K 1 − 1 ) − 1 + c 3 1 j = K 1 + 1 ∑ K b j log ( 1 + e b ⋆ − γ c 4 ) + ( K 1 − 1 ) log ( 1 + e − K 1 − 1 γ c 4 − b ⋆ ) + ( K − K 1 ) log ( 1 + e − γ 1 − c 4 2 − b † ) f ^ bce − os ( 2 ) ( ∥ x ~ ∥ , b ⋆ , b † ) .
For the function f ^ b c e − o s ( 2 ) ( ∥ x ~ ∥ , b ⋆ , b † ) \hat{f}^{(2)}_{\mathrm{bce-os}}\left(\lVert\tilde{x}\rVert,b^{\star},b^{\dagger}\right) f ^ bce − os ( 2 ) ( ∥ x ~ ∥ , b ⋆ , b † ) ,
∂ f ^ b c e − o s ( 2 ) ( ∥ x ~ ∥ , b ⋆ , b † ) ∂ b † = − e − γ ∥ x ~ ∥ − b † 1 + e − γ ∥ x ~ ∥ − b † < 0 ∀ b † ∈ R , \frac{\partial\hat{f}^{(2)}_{\mathrm{bce-os}}\left(\lVert\tilde{x}\rVert,b^{\star},b^{\dagger}\right)}{\partial b^{\dagger}}=-\frac{e^{-\gamma\lVert\tilde{x}\rVert-b^{\dagger}}}{1+e^{-\gamma\lVert\tilde{x}\rVert-b^{\dagger}}}<0\quad\forall b^{\dagger}\in\mathbb{R}, ∂ b † ∂ f ^ bce − os ( 2 ) ( ∥ x ~ ∥ , b ⋆ , b † ) = − 1 + e − γ ∥ x ~ ∥ − b † e − γ ∥ x ~ ∥ − b † < 0 ∀ b † ∈ R ,
then, when f ^ b c e − o s ( 2 ) ( ∥ x ~ ∥ , b ⋆ , b † ) \hat{f}^{(2)}_{\mathrm{bce-os}}\left(\lVert\tilde{x}\rVert,b^{\star},b^{\dagger}\right) f ^ bce − os ( 2 ) ( ∥ x ~ ∥ , b ⋆ , b † ) approaching its minimum value,
b † → + ∞ , (114) b^{\dagger}\to+\infty, \tag*{(114)} b † → + ∞ , (114)
and
\begin{aligned}
f_{\mathrm{bce-os}}(W,b,\mathcal{F})&\geq\hat{f}^{(2)}_{\mathrm{bce-os}}\left(\lVert\tilde{x}\rVert,b^{\star},b^{\dagger}\right)\\
&\geq\log\left(1+e^{b^{\star}-\gamma\sqrt{1-\lVert\tilde{x}\rVert^{2}}}\right)+(K_{1}-1)\log\left(1+e^{-\frac{\gamma\sqrt{1-\lVert\tilde{x}\rVert^{2}}{K_{1}-1}-b^{\star}}\right)\\
&\triangleq\hat{f}^{(3)}_{\mathrm{bce-os}}\left(\lVert\tilde{x}\rVert,b^{\star}\right).
\end{aligned}} \tag*{(115)}\end{aligned}
For f ^ b c e − o s ( 3 ) ( ∥ x ~ ∥ , b ⋆ ) \hat{f}^{(3)}_{\mathrm{bce-os}}\left(\lVert\tilde{x}\rVert,b^{\star}\right) f ^ bce − os ( 3 ) ( ∥ x ~ ∥ , b ⋆ ) on D 1 = { ( ∥ x ~ ∥ , b ⋆ ) : ∥ x ~ ∥ ∈ [ 0 , 1 ] , b ⋆ satisfies x r e f ‘ E q . ( S .73 ) ‘ } \mathcal{D}_{1}=\{(\lVert\tilde{x}\rVert,b^{\star}):\lVert\tilde{x}\rVert\in[0,1],b^{\star}\text{ satisfies }{xref}`Eq. (S.73)`\} D 1 = {(∥ x ~ ∥ , b ⋆ ) : ∥ x ~ ∥ ∈ [ 0 , 1 ] , b ⋆ satisfies x r e f ‘ E q . ( S .73 ) ‘ } , as D 1 ⊂ D 2 = { ( ∥ x ~ ∥ , b ⋆ ) : ∥ x ~ ∥ ∈ [ 0 , 1 ] , b ⋆ ∈ R } \mathcal{D}_{1}\subset\mathcal{D}_{2}=\{(\lVert\tilde{x}\rVert,b^{\star}):\lVert\tilde{x}\rVert\in[0,1],b^{\star}\in\mathbb{R}\} D 1 ⊂ D 2 = {(∥ x ~ ∥ , b ⋆ ) : ∥ x ~ ∥ ∈ [ 0 , 1 ] , b ⋆ ∈ R } ,
min D 1 f ^ b c e − o s ( 3 ) ( ∥ x ~ ∥ , b ⋆ ) ≥ min D 2 f ^ b c e − o s ( 3 ) ( ∥ x ~ ∥ , b ⋆ ) . \min_{\mathcal{D}_{1}}\hat{f}^{(3)}_{\mathrm{bce-os}}\left(\lVert\tilde{x}\rVert,b^{\star}\right)\geq\min_{\mathcal{D}_{2}}\hat{f}^{(3)}_{\mathrm{bce-os}}\left(\lVert\tilde{x}\rVert,b^{\star}\right). D 1 min f ^ bce − os ( 3 ) ( ∥ x ~ ∥ , b ⋆ ) ≥ D 2 min f ^ bce − os ( 3 ) ( ∥ x ~ ∥ , b ⋆ ) .
For f ^ b c e − o s ( 3 ) ( ∥ x ~ ∥ , b ⋆ ) \hat{f}^{(3)}_{\mathrm{bce-os}}\left(\lVert\tilde{x}\rVert,b^{\star}\right) f ^ bce − os ( 3 ) ( ∥ x ~ ∥ , b ⋆ ) on D 2 \mathcal{D}_{2} D 2 , it is easily to deduce that ∂ f ^ b c e − o s ( 3 ) ( ∥ x ~ ∥ , b ⋆ ) ∂ ∥ x ~ ∥ > 0 \frac{\partial\hat{f}^{(3)}_{\mathrm{bce-os}}\left(\lVert\tilde{x}\rVert,b^{\star}\right)}{\partial\lVert\tilde{x}\rVert}>0 ∂ ∥ x ~ ∥ ∂ f ^ bce − os ( 3 ) ( ∥ x ~ ∥ , b ⋆ ) > 0 ; therefore on D 2 \mathcal{D}_{2} D 2 , when f ^ b c e − o s ( 3 ) ( ∥ x ~ ∥ , b ⋆ ) \hat{f}^{(3)}_{\mathrm{bce-os}}\left(\lVert\tilde{x}\rVert,b^{\star}\right) f ^ bce − os ( 3 ) ( ∥ x ~ ∥ , b ⋆ ) reaches its minimum value, ∥ x ~ ∥ = 0 \lVert\tilde{x}\rVert=0 ∥ x ~ ∥ = 0 . In terms of b ⋆ b^{\star} b ⋆ on D 2 \mathcal{D}_{2} D 2 , when f ^ b c e − o s ( 3 ) ( ∥ x ~ ∥ , b ⋆ ) \hat{f}^{(3)}_{\mathrm{bce-os}}\left(\lVert\tilde{x}\rVert,b^{\star}\right) f ^ bce − os ( 3 ) ( ∥ x ~ ∥ , b ⋆ ) reaches its minimum value, ∂ f ^ b c e − o s ( 3 ) ( ∥ x ~ ∥ , b ⋆ ) ∂ b ⋆ = 0 \frac{\partial\hat{f}^{(3)}_{\mathrm{bce-os}}\left(\lVert\tilde{x}\rVert,b^{\star}\right)}{\partial b^{\star}}=0 ∂ b ⋆ ∂ f ^ bce − os ( 3 ) ( ∥ x ~ ∥ , b ⋆ ) = 0 , which aligns with Eq. (S.73), indicating that the minimum points of f ^ b c e − o s ( 3 ) ( ∥ x ~ ∥ , b ⋆ ) \hat{f}^{(3)}_{\mathrm{bce-os}}\left(\lVert\tilde{x}\rVert,b^{\star}\right) f ^ bce − os ( 3 ) ( ∥ x ~ ∥ , b ⋆ ) are contained in D 1 \mathcal{D}_{1} D 1 and when f ^ b c e − o s ( 3 ) ( ∥ x ~ ∥ , b ⋆ ) \hat{f}^{(3)}_{\mathrm{bce-os}}\left(\lVert\tilde{x}\rVert,b^{\star}\right) f ^ bce − os ( 3 ) ( ∥ x ~ ∥ , b ⋆ ) reaching its minimum value on D 1 \mathcal{D}_{1} D 1 , ∥ x ~ ∥ = 0 \lVert\tilde{x}\rVert=0 ∥ x ~ ∥ = 0 .
In total, when f b c e − o s ( W , b , F ) f_{\mathrm{bce-os}}(W,b,\mathcal{F}) f bce − os ( W , b , F ) approaching its minimum value, b † → + ∞ b^{\dagger}\to+\infty b † → + ∞ and ∥ x ~ ∥ → 0 \lVert\tilde{x}\rVert\to0 ∥ x ~ ∥ → 0 , which completes the proof.
Lemma S.10 For any X ( k ) ∈ D X^{(k)} \in\mathcal{D} X ( k ) ∈ D with any c 1 , c 2 > 0 c_1,c_2 > 0 c 1 , c 2 > 0 and γ > 0 \gamma> 0 γ > 0 , the BCE loss L b c e ( X ( k ) ) L_{\mathrm{bce}}(X^{(k)}) L bce ( X ( k ) ) defined in Eq. (5) is lower bounded by
L b c e ( X ( k ) ) ≥ 1 1 + c 1 ( − γ w k T x ( k ) + b k ) + 1 1 + c 2 ∑ j = 1 j ≠ k K 1 ( γ w j T x ( k ) − b j ) L_{\mathrm{bce}}(X^{(k)}) \ge\frac{1}{1+c_1}\left(-\gamma\mathbf{w}_k^{\mathsf{T}} \mathbf{x}^{(k)}+b_k\right)+\frac{1}{1+c_2}\sum_{\substack{j=1\\j\ne k}}^{K_1}\left(\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}-b_j\right) L bce ( X ( k ) ) ≥ 1 + c 1 1 ( − γ w k T x ( k ) + b k ) + 1 + c 2 1 j = 1 j = k ∑ K 1 ( γ w j T x ( k ) − b j ) + 1 1 + c 3 ∑ j = K 1 + 1 K ( γ w j T x ( k ) − b j ) + C , (116) +\frac{1}{1+c_3}\sum_{j=K_1+1}^{K}\left(\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}-b_j\right)+C, \tag*{(116)} + 1 + c 3 1 j = K 1 + 1 ∑ K ( γ w j T x ( k ) − b j ) + C , (116) where
C = log ( 1 + c 1 ) − c 1 1 + c 1 log ( c 1 ) + ( K 1 − 1 ) ( log ( 1 + c 2 ) − c 2 1 + c 2 log ( c 2 ) ) C=\log(1+c_1)-\frac{c_1}{1+c_1}\log(c_1)+(K_1-1)\left(\log(1+c_2)-\frac{c_2}{1+c_2}\log(c_2)\right) C = log ( 1 + c 1 ) − 1 + c 1 c 1 log ( c 1 ) + ( K 1 − 1 ) ( log ( 1 + c 2 ) − 1 + c 2 c 2 log ( c 2 ) ) + ( K − K 1 ) ( log ( 1 + c 3 ) − c 3 1 + c 3 log ( c 3 ) ) . +(K-K_1)\left(\log(1+c_3)-\frac{c_3}{1+c_3}\log(c_3)\right). + ( K − K 1 ) ( log ( 1 + c 3 ) − 1 + c 3 c 3 log ( c 3 ) ) . The inequality becomes an equality if and only if
c 1 = exp ( γ w k T x ( k ) − b k ) , 1 ≤ k ≤ K 1 (117) c_1=\exp\left(\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)}-b_k\right),\qquad1\le k\le K_1 \tag*{(117)} c 1 = exp ( γ w k T x ( k ) − b k ) , 1 ≤ k ≤ K 1 (117) c 2 = exp ( b j − γ w j T x ( k ) ) , 1 ≤ j ≠ k ≤ K 1 . (118) c_2=\exp\left(b_j-\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}\right),\qquad1\le j\ne k\le K_1. \tag*{(118)} c 2 = exp ( b j − γ w j T x ( k ) ) , 1 ≤ j = k ≤ K 1 . (118) c 3 = exp ( b j − γ w j T x ( k ) ) , 1 ≤ k ≤ K 1 , K 1 < j ≤ K . (119) c_3=\exp\left(b_j-\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}\right),\qquad1\le k\le K_1,\ K_1<j\le K. \tag*{(119)} c 3 = exp ( b j − γ w j T x ( k ) ) , 1 ≤ k ≤ K 1 , K 1 < j ≤ K . (119)
Proof. By the concavities of log ( x ) \log(x) log ( x ) , and according to Lemma S.3, the BCE loss L b c e ( X ( k ) ) L_{\mathrm{bce}}(X^{(k)}) L bce ( X ( k ) ) for any X ( k ) ∈ D X^{(k)}\in\mathcal{D} X ( k ) ∈ D can be lower bounded by
L b c e ( X ( k ) ) = log ( 1 + exp ( − γ w k T x ( k ) + b k ) ) + ∑ j = 1 j ≠ k K 1 log ( 1 + exp ( γ w j T x ( k ) − b j ) ) + ∑ j = K 1 + 1 K log ( 1 + exp ( γ w j T x ( k ) − b j ) ) = log ( c 1 1 + c 1 1 + c 1 c 1 + 1 + c 1 1 + c 1 exp ( − γ w k T x ( k ) + b k ) ) + ∑ j = 1 j ≠ k K 1 log ( c 2 1 + c 2 1 + c 2 c 2 + 1 + c 2 1 + c 2 exp ( γ w j T x ( k ) − b j ) ) + ∑ j = K 1 + 1 K log ( c 3 1 + c 3 1 + c 3 c 3 + 1 + c 3 1 + c 3 exp ( γ w j T x ( k ) − b j ) ) ≥ c 1 1 + c 1 log ( 1 + c 1 c 1 ) + 1 1 + c 1 log [ ( 1 + c 1 ) exp ( − γ w k T x ( k ) + b k ) ] + ( K 1 − 1 ) c 2 1 + c 2 log ( 1 + c 2 c 2 ) + ( K − K 1 ) c 3 1 + c 3 log ( 1 + c 3 c 3 ) + 1 1 + c 2 ∑ j = 1 j ≠ k K 1 log [ ( 1 + c 2 ) exp ( γ w j T x ( k ) − b j ) ] + 1 1 + c 3 ∑ j = K 1 + 1 K log [ ( 1 + c 3 ) exp ( γ w j T x ( k ) − b j ) ] = 1 1 + c 1 ( − γ w k T x ( k ) + b k ) + 1 1 + c 2 ∑ j = 1 j ≠ k K 1 ( γ w j T x ( k ) − b j ) + 1 1 + c 3 ∑ j = K 1 + 1 K ( γ w j T x ( k ) − b j ) + C . (120) \begin{aligned}
L_{\mathrm{bce}}(X^{(k)})={}&\log\left(1+\exp\left(-\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)}+b_k\right)\right)+\sum_{\substack{j=1\\j\ne k}}^{K_1}\log\left(1+\exp\left(\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}-b_j\right)\right)\\
&+\sum_{j=K_1+1}^{K}\log\left(1+\exp\left(\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}-b_j\right)\right)\\
={}&\log\left(\frac{c_1}{1+c_1}\frac{1+c_1}{c_1}+\frac{1+c_1}{1+c_1}\exp\left(-\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)}+b_k\right)\right)\\
&+\sum_{\substack{j=1\\j\ne k}}^{K_1}\log\left(\frac{c_2}{1+c_2}\frac{1+c_2}{c_2}+\frac{1+c_2}{1+c_2}\exp\left(\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}-b_j\right)\right)\\
&+\sum_{j=K_1+1}^{K}\log\left(\frac{c_3}{1+c_3}\frac{1+c_3}{c_3}+\frac{1+c_3}{1+c_3}\exp\left(\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}-b_j\right)\right)\\
\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\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)}+b_k\right)\right]\\
&+(K_1-1)\frac{c_2}{1+c_2}\log\left(\frac{1+c_2}{c_2}\right)+(K-K_1)\frac{c_3}{1+c_3}\log\left(\frac{1+c_3}{c_3}\right)\\
&+\frac{1}{1+c_2}\sum_{\substack{j=1\\j\ne k}}^{K_1}\log\left[(1+c_2)\exp\left(\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}-b_j\right)\right] \\
&+ \frac{1}{1+c_3}\sum_{j=K_1+1}^{K}\log\left[(1+c_3)\exp\left(\gamma w_j^{\mathsf{T}}x^{(k)}-b_j\right)\right] \\
= \frac{1}{1+c_1}\left(-\gamma w_k^{\mathsf{T}}x^{(k)}+b_k\right)+\frac{1}{1+c_2}\sum_{\substack{j=1\\j\ne k}}^{K_1}\left(\gamma w_j^{\mathsf{T}}x^{(k)}-b_j\right) \\
+\frac{1}{1+c_3}\sum_{j=K_1+1}^{K}\left(\gamma w_j^{\mathsf{T}}x^{(k)}-b_j\right)+C. \tag*{(120)}
\end{aligned} L bce ( X ( k ) ) = = ≥ = 1 + c 1 1 ( − γ w k T x ( k ) + b k ) + 1 + c 2 1 j = 1 j = k ∑ K 1 ( γ w j T x ( k ) − b j ) + 1 + c 3 1 j = K 1 + 1 ∑ K ( γ w j T x ( k ) − b j ) + C . log ( 1 + exp ( − γ w k T x ( k ) + b k ) ) + j = 1 j = k ∑ K 1 log ( 1 + exp ( γ w j T x ( k ) − b j ) ) + j = K 1 + 1 ∑ K log ( 1 + exp ( γ w j T x ( k ) − b j ) ) log ( 1 + c 1 c 1 c 1 1 + c 1 + 1 + c 1 1 + c 1 exp ( − γ w k T x ( k ) + b k ) ) + j = 1 j = k ∑ K 1 log ( 1 + c 2 c 2 c 2 1 + c 2 + 1 + c 2 1 + c 2 exp ( γ w j T x ( k ) − b j ) ) + j = K 1 + 1 ∑ K log ( 1 + c 3 c 3 c 3 1 + c 3 + 1 + c 3 1 + c 3 exp ( γ w j T x ( k ) − b j ) ) 1 + c 1 c 1 log ( c 1 1 + c 1 ) + 1 + c 1 1 log [ ( 1 + c 1 ) exp ( − γ w k T x ( k ) + b k ) ] + ( K 1 − 1 ) 1 + c 2 c 2 log ( c 2 1 + c 2 ) + ( K − K 1 ) 1 + c 3 c 3 log ( c 3 1 + c 3 ) + 1 + c 2 1 j = 1 j = k ∑ K 1 log [ ( 1 + c 2 ) exp ( γ w j T x ( k ) − b j ) ] + 1 + c 3 1 j = K 1 + 1 ∑ K log [ ( 1 + c 3 ) exp ( γ w j T x ( k ) − b j ) ] (120)
where
C = log ( 1 + c 1 ) − c 1 1 + c 1 log ( c 1 ) + ( K 1 − 1 ) ( log ( 1 + c 2 ) − c 2 1 + c 2 log ( c 2 ) ) + ( K − K 1 ) ( log ( 1 + c 3 ) − c 3 1 + c 3 log ( c 3 ) ) . C=\log(1+c_1)-\frac{c_1}{1+c_1}\log(c_1)+(K_1-1)\left(\log(1+c_2)-\frac{c_2}{1+c_2}\log(c_2)\right)
+\left(K-K_1\right)\left(\log(1+c_3)-\frac{c_3}{1+c_3}\log(c_3)\right). C = log ( 1 + c 1 ) − 1 + c 1 c 1 log ( c 1 ) + ( K 1 − 1 ) ( log ( 1 + c 2 ) − 1 + c 2 c 2 log ( c 2 ) ) + ( K − K 1 ) ( log ( 1 + c 3 ) − 1 + c 3 c 3 log ( c 3 ) ) .
The inequality becomes an equality if and only if
1 + c 1 c 1 = ( 1 + c 1 ) exp ( − γ w k T x ( k ) + b k ) or c 1 = 0 or c 1 = + ∞ , 1 ≤ k ≤ K 1 , \frac{1+c_1}{c_1}=(1+c_1)\exp\left(-\gamma w_k^{\mathsf{T}}x^{(k)}+b_k\right)\ \text{or}\ c_1=0\ \text{or}\ c_1=+\infty,\quad1\le k\le K_1, c 1 1 + c 1 = ( 1 + c 1 ) exp ( − γ w k T x ( k ) + b k ) or c 1 = 0 or c 1 = + ∞ , 1 ≤ k ≤ K 1 ,
1 + c 2 c 2 = ( 1 + c 2 ) exp ( γ w j T x ( k ) − b j ) or c 2 = 0 or c 2 = + ∞ , 1 ≤ j ≠ k ≤ K 1 , \frac{1+c_2}{c_2}=(1+c_2)\exp\left(\gamma w_j^{\mathsf{T}}x^{(k)}-b_j\right)\ \text{or}\ c_2=0\ \text{or}\ c_2=+\infty,\quad1\le j\ne k\le K_1, c 2 1 + c 2 = ( 1 + c 2 ) exp ( γ w j T x ( k ) − b j ) or c 2 = 0 or c 2 = + ∞ , 1 ≤ j = k ≤ K 1 ,
1 + c 3 c 3 = ( 1 + c 3 ) exp ( γ w j T x ( k ) − b j ) or c 3 = 0 or c 3 = + ∞ , 1 ≤ k ≤ K 1 , K 1 + 1 ≤ j ≤ K . \frac{1+c_3}{c_3}=(1+c_3)\exp\left(\gamma w_j^{\mathsf{T}}x^{(k)}-b_j\right)\ \text{or}\ c_3=0\ \text{or}\ c_3=+\infty,\quad1\le k\le K_1,\ K_1+1\le j\le K. c 3 1 + c 3 = ( 1 + c 3 ) exp ( γ w j T x ( k ) − b j ) or c 3 = 0 or c 3 = + ∞ , 1 ≤ k ≤ K 1 , K 1 + 1 ≤ j ≤ K .
These equalities are trivial when c 1 = 0 c_1=0 c 1 = 0 , c 1 = + ∞ c_1=+\infty c 1 = + ∞ , c 2 = 0 c_2=0 c 2 = 0 , c 2 = + ∞ c_2=+\infty c 2 = + ∞ , c 3 = 0 c_3=0 c 3 = 0 , or c 3 = + ∞ c_3=+\infty c 3 = + ∞ . Therefore, if and only if
c 1 = exp ( γ w k T x ( k ) − b k ) , 1 ≤ k ≤ K 1 , c_1=\exp\left(\gamma w_k^{\mathsf{T}}x^{(k)}-b_k\right),\quad1\le k\le K_1, c 1 = exp ( γ w k T x ( k ) − b k ) , 1 ≤ k ≤ K 1 ,
c 2 = exp ( b j − γ w j T x ( k ) ) , 1 ≤ j ≠ k ≤ K 1 , c_2=\exp\left(b_j-\gamma w_j^{\mathsf{T}}x^{(k)}\right),\quad1\le j\ne k\le K_1, c 2 = exp ( b j − γ w j T x ( k ) ) , 1 ≤ j = k ≤ K 1 ,
c 3 = exp ( b j − γ w j T x ( k ) ) , 1 ≤ k ≤ K 1 , K 1 < j ≤ K , c_3=\exp\left(b_j-\gamma w_j^{\mathsf{T}}x^{(k)}\right),\quad1\le k\le K_1,\ K_1<j\le K, c 3 = exp ( b j − γ w j T x ( k ) ) , 1 ≤ k ≤ K 1 , K 1 < j ≤ K ,
Eq. (S.93) becomes an equality, which completes the proof.
Theorem S.11 (CE ) Suppose that the first K 1 K_{1} K 1 classes in dataset D \mathcal{D} D contains at least one sample, K 1 < K K_{1}<K K 1 < K , while the other classes are empty, and that the feature dimension is greater than the number of classes, i.e., n k = ∣ D k ∣ > 0 n_{k}=\lvert\mathcal{D}_{k}\rvert>0 n k = ∣ D k ∣ > 0 for ∀ k ∈ [ K 1 ] \forall k\in[K_{1}] ∀ k ∈ [ K 1 ] , n k = ∣ D k ∣ = 0 n_{k}=\lvert\mathcal{D}_{k}\rvert=0 n k = ∣ D k ∣ = 0 for K 1 < k ≤ K K_{1}<k\le K K 1 < k ≤ K , and d ≥ K 1 d\ge K_{1} d ≥ K 1 . Denote x ~ = 1 K 1 ∑ k = 1 K 1 x ˉ k \tilde{\mathbf{x}}=\frac{1}{K_{1}}\sum_{k=1}^{K_{1}}\bar{\mathbf{x}}_{k} x ~ = K 1 1 ∑ k = 1 K 1 x ˉ k with x ˉ k = 1 n k ∑ x ∈ F k x \bar{\mathbf{x}}_{k}=\frac{1}{n_{k}}\sum_{\mathbf{x}\in\mathcal{F}_{k}}\mathbf{x} x ˉ k = n k 1 ∑ x ∈ F k x . On the dataset D \mathcal{D} D , define
f c e - o s ( W , b , F ) ≜ 1 K 1 ∑ k = 1 K 1 1 n k ∑ x ( k ) ∈ D k L c e ( X ( k ) ) , (121) f_{\mathrm{ce\text{-}os}}(\mathbf{W},\mathbf{b},\mathcal{F})\triangleq\frac{1}{K_{1}}\sum_{k=1}^{K_{1}\!}\frac{1}{n_{k}}\sum_{\mathbf{x}^{(k)}\in\mathcal{D}_{k}}L_{\mathrm{ce}}(\mathbf{X}^{(k)}), \tag*{(121)} f ce - os ( W , b , F ) ≜ K 1 1 k = 1 ∑ K 1 n k 1 x ( k ) ∈ D k ∑ L ce ( X ( k ) ) , (121) where
L c e ( X ( k ) ) = − log ( exp ( γ w k T x ( k ) − b k ) ∑ j = 1 K exp ( γ w j T x ( k ) − b j ) ) , (122) L_{\mathrm{ce}}(\mathbf{X}^{(k)})=-\log\left(\frac{\exp\left(\gamma\mathbf{w}_{k}^{\mathsf{T}}\mathbf{x}^{(k)}-b_{k}\right)}{\sum_{j=1}^{K}\exp\left(\gamma\mathbf{w}_{j}^{\mathsf{T}}\mathbf{x}^{(k)}-b_{j}\right)}\right), \tag*{(122)} L ce ( X ( k ) ) = − log ( ∑ j = 1 K exp ( γ w j T x ( k ) − b j ) exp ( γ w k T x ( k ) − b k ) ) , (122) with x ( k ) = M ( X ( k ) ) \mathbf{x}^{(k)}=\mathcal{M}(\mathbf{X}^{(k)}) x ( k ) = M ( X ( k ) ) for X ( k ) ∈ D k ⊂ D \mathbf{X}^{(k)}\in\mathcal{D}_{k}\subset\mathcal{D} X ( k ) ∈ D k ⊂ D . Then, the CE loss f c e - o s ( W , b , F ) f_{\mathrm{ce\text{-}os}}(\mathbf{W},\mathbf{b},\mathcal{F}) f ce - os ( W , b , F ) satisfies
f c e - o s ( W , b , F ) ≥ log ( 1 + c 1 + c 2 ) , (123) f_{\mathrm{ce\text{-}os}}(\mathbf{W},\mathbf{b},\mathcal{F})\ge\log(1+c_{1}+c_{2}), \tag*{(123)} f ce - os ( W , b , F ) ≥ log ( 1 + c 1 + c 2 ) , (123) where
c 1 = ( K 1 − 1 ) exp ( γ g ( q ⋆ ) K 1 K 1 − 1 ( ∥ x ~ ∥ 2 − 1 ) ) , c_{1}=(K_{1}-1)\exp\left(\frac{\gamma}{\sqrt{g(q^{\star})}}\frac{K_{1}}{K_{1}-1}\left(\lVert\tilde{\mathbf{x}}\rVert^{2}-1\right)\right), c 1 = ( K 1 − 1 ) exp ( g ( q ⋆ ) γ K 1 − 1 K 1 ( ∥ x ~ ∥ 2 − 1 ) ) , c 2 = K 1 1 − q ⋆ q ⋆ exp ( γ g ( q ⋆ ) K 1 K 1 − 1 ( ∥ x ~ ∥ 2 − 1 ) ) , c_{2}=K_{1}\frac{1-q^{\star}}{q^{\star}}\exp\left(\frac{\gamma}{\sqrt{g(q^{\star})}}\frac{K_{1}}{K_{1}-1}\left(\lVert\tilde{\mathbf{x}}\rVert^{2}-1\right)\right), c 2 = K 1 q ⋆ 1 − q ⋆ exp ( g ( q ⋆ ) γ K 1 − 1 K 1 ( ∥ x ~ ∥ 2 − 1 ) ) , c 3 = 1 q ⋆ g ( q ⋆ ) exp ( γ g ( q ⋆ ) K 1 K 1 − 1 ( ∥ x ~ ∥ 2 − 1 ) ) , c_{3}=\frac{1}{q^{\star}}\sqrt{g(q^{\star})}\exp\left(\frac{\gamma}{\sqrt{g(q^{\star})}}\frac{K_{1}}{K_{1}-1}\left(\lVert\tilde{\mathbf{x}}\rVert^{2}-1\right)\right), c 3 = q ⋆ 1 g ( q ⋆ ) exp ( g ( q ⋆ ) γ K 1 − 1 K 1 ( ∥ x ~ ∥ 2 − 1 ) ) , and g ( q ) = 1 − 2 q ∥ x ~ ∥ 2 + q 2 ∥ x ~ ∥ 2 g(q)=1-2q\lVert\tilde{\mathbf{x}}\rVert^{2}+q^{2}\lVert\tilde{\mathbf{x}}\rVert^{2} g ( q ) = 1 − 2 q ∥ x ~ ∥ 2 + q 2 ∥ x ~ ∥ 2 with a certain q ⋆ ∈ ( 0 , 1 ) q^{\star}\in(0,1) q ⋆ ∈ ( 0 , 1 ) . When the CE loss f c e - o s ( W , b , F ) f_{\mathrm{ce\text{-}os}}(\mathbf{W},\mathbf{b},\mathcal{F}) f ce - os ( W , b , F ) reaching its lower bound in Eq. (S.100), it satisfies
x ( k ) = x ˉ k = 1 n k ∑ x ∈ F k x , ∀ x ( k ) , x ⋆ ( k ) ∈ F k , ∀ k ∈ [ K 1 ] , \mathbf{x}^{(k)}=\bar{\mathbf{x}}_{k}=\frac{1}{n_{k}}\sum_{\mathbf{x}\in\mathcal{F}_{k}}\mathbf{x},\quad\forall\mathbf{x}^{(k)},\mathbf{x}_{\star}^{(k)}\in\mathcal{F}_{k},\ \forall k\in[K_{1}], x ( k ) = x ˉ k = n k 1 x ∈ F k ∑ x , ∀ x ( k ) , x ⋆ ( k ) ∈ F k , ∀ k ∈ [ K 1 ] , x ˉ k T x ˉ j = 1 − K 1 K 1 − 1 ( 1 − ∥ x ~ ∥ 2 ) = − 1 K 1 − 1 + K 1 K 1 − 1 ∥ x ~ ∥ 2 , ∀ j ≠ k ∈ [ K 1 ] , \bar{\mathbf{x}}_{k}^{\mathsf{T}}\bar{\mathbf{x}}_{j}=1-\frac{K_{1}}{K_{1}-1}(1-\lVert\tilde{\mathbf{x}}\rVert^{2})=-\frac{1}{K_{1}-1}+\frac{K_{1}}{K_{1}-1}\lVert\tilde{\mathbf{x}}\rVert^{2},\quad\forall j\ne k\in[K_{1}], x ˉ k T x ˉ j = 1 − K 1 − 1 K 1 ( 1 − ∥ x ~ ∥ 2 ) = − K 1 − 1 1 + K 1 − 1 K 1 ∥ x ~ ∥ 2 , ∀ j = k ∈ [ K 1 ] , w k T w j = 1 K 1 1 K 1 − 1 ( c 2 c 3 ) 2 ∥ x ~ ∥ 2 − 1 K 1 − 1 , ∀ j ≠ k ∈ [ K 1 ] , \mathbf{w}_{k}^{\mathsf{T}}\mathbf{w}_{j}=\frac{1}{K_{1}}\frac{1}{K_{1}-1}\left(\frac{c_{2}}{c_{3}}\right)^{2}\lVert\tilde{\mathbf{x}}\rVert^{2}-\frac{1}{K_{1}-1},\quad\forall j\ne k\in[K_{1}], w k T w j = K 1 1 K 1 − 1 1 ( c 3 c 2 ) 2 ∥ x ~ ∥ 2 − K 1 − 1 1 , ∀ j = k ∈ [ K 1 ] ,
w k T x ˉ k = ( c 1 K 1 − 1 + c 2 K 1 ) 1 c 3 − c 1 K 1 − 1 1 c 3 ∥ x ~ ∥ 2 , ∀ k ∈ [ K 1 ] , w k T x ˉ j = 1 c 3 ( 1 K 1 − 1 c 1 K 1 − 1 + K 1 K 1 − 1 c 2 K 1 ) ∥ x ~ ∥ 2 − 1 c 3 1 K 1 − 1 ( c 1 K 1 − 1 + c 2 K 1 ) , ∀ j ≠ k ∈ [ K 1 ] , w k T x ~ = c 2 c 3 ∥ x ~ ∥ 2 K 1 , ∀ k ∈ [ K 1 ] . (124) \begin{aligned}
w_k^{\mathsf T}\bar{x}_k &= \left(\frac{c_1}{K_1-1}+\frac{c_2}{K_1}\right)\frac{1}{c_3}-\frac{c_1}{K_1-1}\frac{1}{c_3}\lVert\tilde{x}\rVert^2,\quad\forall k\in[K_1],\\
w_k^{\mathsf T}\bar{x}_j &= \frac{1}{c_3}\left(\frac{1}{K_1-1}\frac{c_1}{K_1-1}+\frac{K_1}{K_1-1}\frac{c_2}{K_1}\right)\lVert\tilde{x}\rVert^2\\
&\quad-\frac{1}{c_3}\frac{1}{K_1-1}\left(\frac{c_1}{K_1-1}+\frac{c_2}{K_1}\right),\quad\forall j\ne k\in[K_1],\\
w_k^{\mathsf T}\tilde{x} &= \frac{c_2}{c_3}\frac{\lVert\tilde{x}\rVert^2}{K_1},\quad\forall k\in[K_1]. \tag*{(124)}
\end{aligned} w k T x ˉ k w k T x ˉ j w k T x ~ = ( K 1 − 1 c 1 + K 1 c 2 ) c 3 1 − K 1 − 1 c 1 c 3 1 ∥ x ~ ∥ 2 , ∀ k ∈ [ K 1 ] , = c 3 1 ( K 1 − 1 1 K 1 − 1 c 1 + K 1 − 1 K 1 K 1 c 2 ) ∥ x ~ ∥ 2 − c 3 1 K 1 − 1 1 ( K 1 − 1 c 1 + K 1 c 2 ) , ∀ j = k ∈ [ K 1 ] , = c 3 c 2 K 1 ∥ x ~ ∥ 2 , ∀ k ∈ [ K 1 ] . (124)
(minority collapse) for ∀ j = K 1 + 1 , K 1 + 2 , ⋯ , K \forall j=K_1+1,K_1+2,\cdots,K ∀ j = K 1 + 1 , K 1 + 2 , ⋯ , K , if ∥ x ~ ∥ ≠ 0 \lVert\tilde{x}\rVert\ne0 ∥ x ~ ∥ = 0 ,
w j = − x ~ ∥ x ~ ∥ , w_j=-\frac{\tilde{x}}{\lVert\tilde{x}\rVert}, w j = − ∥ x ~ ∥ x ~ ,
and for ∀ k ∈ [ K 1 ] \forall k\in[K_1] ∀ k ∈ [ K 1 ] , ∀ j = K 1 + 1 , K 1 + 2 , ⋯ , K \forall j=K_1+1,K_1+2,\cdots,K ∀ j = K 1 + 1 , K 1 + 2 , ⋯ , K ,
w j T x ˉ k = − ∥ x ~ ∥ , w_j^{\mathsf T}\bar{x}_k=-\lVert\tilde{x}\rVert, w j T x ˉ k = − ∥ x ~ ∥ ,
w j T w k = − c 2 c 3 ∥ x ~ ∥ K 1 , w_j^{\mathsf T}w_k=-\frac{c_2}{c_3}\frac{\lVert\tilde{x}\rVert}{K_1}, w j T w k = − c 3 c 2 K 1 ∥ x ~ ∥ ,
and ∃ b ⋆ , b † \exists b^\star,b^\dagger ∃ b ⋆ , b † , such that
b k = b ⋆ ∈ R , ∀ k ∈ [ K 1 ] , b_k=b^\star\in\mathbb{R},\quad\forall k\in[K_1], b k = b ⋆ ∈ R , ∀ k ∈ [ K 1 ] ,
b j = b † ∈ R , K 1 < j ≤ K . b_j=b^\dagger\in\mathbb{R},\quad K_1<j\le K. b j = b † ∈ R , K 1 < j ≤ K .
As the CE loss f c e - o s ( W , b , F ) f_{\mathrm{ce\text{-}os}}(\mathbf{W},\mathbf{b},\mathcal{F}) f ce - os ( W , b , F ) approaching its minimum value, b † − b ⋆ → + ∞ b^\dagger-b^\star\to+\infty b † − b ⋆ → + ∞ , q ⋆ → 1 q^\star\to1 q ⋆ → 1 , and ∥ x ~ ∥ → 0 \lVert\tilde{x}\rVert\to0 ∥ x ~ ∥ → 0 .
Proof According to Lemma S.7, for any c 1 , c 2 > 0 c_1,c_2>0 c 1 , c 2 > 0 and any X ( k ) ∈ D k \mathbf{X}^{(k)}\in D_k X ( k ) ∈ D k with ∀ k ∈ [ K ] \forall k\in[K] ∀ k ∈ [ K ] ,
L c e ( X ( k ) ) ≥ c 1 1 + c 1 + c 2 ∑ j = 1 j ≠ k K 1 γ w j T x ( k ) − b j − γ w k T x ( k ) + b k K 1 − 1 + c 2 1 + c 1 + c 2 ∑ j = K 1 + 1 K γ w j T x ( k ) − b j − γ w k T x ( k ) + b k K − K 1 + C , \begin{aligned}
L_{\mathrm{ce}}(\mathbf{X}^{(k)})\ge{}&
\frac{c_1}{1+c_1+c_2}\sum_{\substack{j=1\\j\ne k}}^{K_1}\frac{\gamma w_j^{\mathsf T}x^{(k)}-b_j-\gamma w_k^{\mathsf T}x^{(k)}+b_k}{K_1-1}\\
&+\frac{c_2}{1+c_1+c_2}\sum_{j=K_1+1}^{K}\frac{\gamma w_j^{\mathsf T}x^{(k)}-b_j-\gamma w_k^{\mathsf T}x^{(k)}+b_k}{K-K_1}+C,
\end{aligned} L ce ( X ( k ) ) ≥ 1 + c 1 + c 2 c 1 j = 1 j = k ∑ K 1 K 1 − 1 γ w j T x ( k ) − b j − γ w k T x ( k ) + b k + 1 + c 1 + c 2 c 2 j = K 1 + 1 ∑ K K − K 1 γ w j T x ( k ) − b j − γ w k T x ( k ) + b k + C ,
where
C = 1 1 + c 1 + c 2 log ( 1 + c 1 + c 2 ) + c 1 1 + c 1 + c 2 log ( 1 + c 1 + c 2 c 1 ( K 1 − 1 ) ) + c 2 1 + c 1 + c 2 log ( 1 + c 1 + c 2 c 2 ( K − K 1 ) ) , \begin{aligned}
C={}&\frac{1}{1+c_1+c_2}\log(1+c_1+c_2)+\frac{c_1}{1+c_1+c_2}\log\left(\frac{1+c_1+c_2}{c_1}(K_1-1)\right)\\
&+\frac{c_2}{1+c_1+c_2}\log\left(\frac{1+c_1+c_2}{c_2}(K-K_1)\right),
\end{aligned} C = 1 + c 1 + c 2 1 log ( 1 + c 1 + c 2 ) + 1 + c 1 + c 2 c 1 log ( c 1 1 + c 1 + c 2 ( K 1 − 1 ) ) + 1 + c 1 + c 2 c 2 log ( c 2 1 + c 1 + c 2 ( K − K 1 ) ) ,
and the inequality becomes an equality if and only if Eqs. S.131, S.132, S.133, and S.134 hold.
We take the same c 1 , c 2 c_1,c_2 c 1 , c 2 for all X ( k ) ∈ D \mathbf{X}^{(k)} \in\mathcal{D} X ( k ) ∈ D , then one can deduce the following lower bound for the function f c e - o s f_{\mathrm{ce\text{-}os}} f ce - os
f c e - o s ( W , b , F ) = 1 K 1 ∑ k = 1 K 1 1 n k ∑ X ( k ) ∈ D k L c e ( X ( k ) ) ≥ 1 K 1 ∑ k = 1 K 1 1 n k ∑ x ( k ) ∈ F k [ c 1 1 + c 1 + c 2 ∑ j = 1 j ≠ k K 1 γ w j T x ( k ) − b j − γ w k T x ( k ) + b k K 1 − 1 + c 2 1 + c 1 + c 2 ∑ j = K 1 + 1 K γ w j T x ( k ) − b j − γ w k T x ( k ) + b k K − K 1 ] + C = c 1 1 + c 1 + c 2 1 K 1 − 1 1 K 1 ∑ k = 1 K 1 1 n k ∑ x ( k ) ∈ F k ∑ j = 1 K 1 ( γ w j T x ( k ) − b j − γ w k T x ( k ) + b k ) + c 2 1 + c 1 + c 2 1 K − K 1 1 K 1 ∑ k = 1 K 1 1 n k ∑ x ( k ) ∈ F k ∑ j = K 1 + 1 K ( γ w j T x ( k ) − b j − γ w k T x ( k ) + b k ) + C = c 1 1 + c 1 + c 2 γ K 1 − 1 ( ∑ j = 1 K 1 w j T x ~ − ∑ k = 1 K 1 w k T x ˉ k ) + c 2 1 + c 1 + c 2 γ K − K 1 ∑ j = K 1 + 1 K w j T x ~ + c 1 1 + c 1 + c 2 1 K 1 − 1 1 K 1 ( K 1 ∑ k = 1 K 1 b k − K 1 ∑ j = 1 K 1 b j ) + C − c 2 1 + c 1 + c 2 γ K 1 ∑ k = 1 K 1 w k T x ˉ k + c 2 1 + c 1 + c 2 1 K − K 1 1 K 1 [ ( K − K 1 ) ∑ k = 1 K 1 b k − K 1 ∑ j = K 1 + 1 K b j ] = γ 1 + c 1 + c 2 ∑ k = 1 K 1 w k T [ c 1 K 1 − 1 x ~ − ( c 1 K 1 − 1 + c 2 K 1 ) x ˉ k ] + C + c 2 1 + c 1 + c 2 γ K − K 1 ∑ j = K 1 + 1 K w j T x ~ + c 2 1 + c 1 + c 2 ( 1 K 1 ∑ k = 1 K 1 b k − 1 K − K 1 ∑ j = K 1 + 1 K b j ) , (125) \begin{aligned}
f_{\mathrm{ce\text{-}os}}(\mathbf{W},\mathbf{b},\mathcal{F})
&=\frac{1}{K_1}\sum_{k=1}^{K_1}\frac{1}{n_k}\sum_{\mathbf{X}^{(k)}\in\mathcal{D}_k}L_{\mathrm{ce}}(\mathbf{X}^{(k)})\\
&\geq\frac{1}{K_1}\sum_{k=1}^{K_1}\frac{1}{n_k}\sum_{\mathbf{x}^{(k)}\in\mathcal{F}_k}\left[\frac{c_1}{1+c_1+c_2}\sum_{\substack{j=1\\j\ne k}}^{K_1}\frac{\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}-b_j-\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)}+b_k}{K_1-1}\right.\\
&\qquad\left.+\frac{c_2}{1+c_1+c_2}\sum_{j=K_1+1}^{K}\frac{\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}-b_j-\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)}+b_k}{K-K_1}\right]+C\\
&=\frac{c_1}{1+c_1+c_2}\frac{1}{K_1-1}\frac{1}{K_1}\sum_{k=1}^{K_1}\frac{1}{n_k}\sum_{\mathbf{x}^{(k)}\in\mathcal{F}_k}\sum_{j=1}^{K_1}\left(\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}-b_j-\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)}+b_k\right)\\
&\qquad+\frac{c_2}{1+c_1+c_2}\frac{1}{K-K_1}\frac{1}{K_1}\sum_{k=1}^{K_1}\frac{1}{n_k}\sum_{\mathbf{x}^{(k)}\in\mathcal{F}_k}\sum_{j=K_1+1}^{K}\left(\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}-b_j-\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)}+b_k\right)+C\\
&=\frac{c_1}{1+c_1+c_2}\frac{\gamma}{K_1-1}\left(\sum_{j=1}^{K_1}\mathbf{w}_j^{\mathsf{T}}\tilde{\mathbf{x}}-\sum_{k=1}^{K_1}\mathbf{w}_k^{\mathsf{T}}\bar{\mathbf{x}}_k\right)+\frac{c_2}{1+c_1+c_2}\frac{\gamma}{K-K_1}\sum_{j=K_1+1}^{K}\mathbf{w}_j^{\mathsf{T}}\tilde{\mathbf{x}}\\
&\qquad+\frac{c_1}{1+c_1+c_2}\frac{1}{K_1-1}\frac{1}{K_1}\left(K_1\sum_{k=1}^{K_1}b_k-K_1\sum_{j=1}^{K_1}b_j\right)+C-\frac{c_2}{1+c_1+c_2}\frac{\gamma}{K_1}\sum_{k=1}^{K_1}\mathbf{w}_k^{\mathsf{T}}\bar{\mathbf{x}}_k\\
&\qquad+\frac{c_2}{1+c_1+c_2}\frac{1}{K-K_1}\frac{1}{K_1}\left[(K-K_1)\sum_{k=1}^{K_1}b_k-K_1\sum_{j=K_1+1}^{K}b_j\right]\\
&=\frac{\gamma}{1+c_1+c_2}\sum_{k=1}^{K_1}\mathbf{w}_k^{\mathsf{T}}\left[\frac{c_1}{K_1-1}\tilde{\mathbf{x}}-\left(\frac{c_1}{K_1-1}+\frac{c_2}{K_1}\right)\bar{\mathbf{x}}_k\right]+C\\
&\qquad+\frac{c_2}{1+c_1+c_2}\frac{\gamma}{K-K_1}\sum_{j=K_1+1}^{K}\mathbf{w}_j^{\mathsf{T}}\tilde{\mathbf{x}}+\frac{c_2}{1+c_1+c_2}\left(\frac{1}{K_1}\sum_{k=1}^{K_1}b_k-\frac{1}{K-K_1}\sum_{j=K_1+1}^{K}b_j\right), \tag*{(125)}
\end{aligned} f ce - os ( W , b , F ) = K 1 1 k = 1 ∑ K 1 n k 1 X ( k ) ∈ D k ∑ L ce ( X ( k ) ) ≥ K 1 1 k = 1 ∑ K 1 n k 1 x ( k ) ∈ F k ∑ 1 + c 1 + c 2 c 1 j = 1 j = k ∑ K 1 K 1 − 1 γ w j T x ( k ) − b j − γ w k T x ( k ) + b k + 1 + c 1 + c 2 c 2 j = K 1 + 1 ∑ K K − K 1 γ w j T x ( k ) − b j − γ w k T x ( k ) + b k + C = 1 + c 1 + c 2 c 1 K 1 − 1 1 K 1 1 k = 1 ∑ K 1 n k 1 x ( k ) ∈ F k ∑ j = 1 ∑ K 1 ( γ w j T x ( k ) − b j − γ w k T x ( k ) + b k ) + 1 + c 1 + c 2 c 2 K − K 1 1 K 1 1 k = 1 ∑ K 1 n k 1 x ( k ) ∈ F k ∑ j = K 1 + 1 ∑ K ( γ w j T x ( k ) − b j − γ w k T x ( k ) + b k ) + C = 1 + c 1 + c 2 c 1 K 1 − 1 γ ( j = 1 ∑ K 1 w j T x ~ − k = 1 ∑ K 1 w k T x ˉ k ) + 1 + c 1 + c 2 c 2 K − K 1 γ j = K 1 + 1 ∑ K w j T x ~ + 1 + c 1 + c 2 c 1 K 1 − 1 1 K 1 1 ( K 1 k = 1 ∑ K 1 b k − K 1 j = 1 ∑ K 1 b j ) + C − 1 + c 1 + c 2 c 2 K 1 γ k = 1 ∑ K 1 w k T x ˉ k + 1 + c 1 + c 2 c 2 K − K 1 1 K 1 1 ( K − K 1 ) k = 1 ∑ K 1 b k − K 1 j = K 1 + 1 ∑ K b j = 1 + c 1 + c 2 γ k = 1 ∑ K 1 w k T [ K 1 − 1 c 1 x ~ − ( K 1 − 1 c 1 + K 1 c 2 ) x ˉ k ] + C + 1 + c 1 + c 2 c 2 K − K 1 γ j = K 1 + 1 ∑ K w j T x ~ + 1 + c 1 + c 2 c 2 K 1 1 k = 1 ∑ K 1 b k − K − K 1 1 j = K 1 + 1 ∑ K b j , (125)
where x ~ = 1 K ∑ j = 1 K x ˉ j \tilde{\mathbf{x}}=\frac{1}{K}\sum_{j=1}^{K}\bar{\mathbf{x}}_j x ~ = K 1 ∑ j = 1 K x ˉ j and x ˉ j = 1 n j ∑ x ( j ) ∈ F j x ( j ) \bar{\mathbf{x}}_j=\frac{1}{n_j}\sum_{\mathbf{x}^{(j)}\in\mathcal{F}_j}\mathbf{x}^{(j)} x ˉ j = n j 1 ∑ x ( j ) ∈ F j x ( j ) , ∀ j ∈ [ K 1 ] \forall j\in[K_1] ∀ j ∈ [ K 1 ] . According to the AM-GM inequality (see Lemma S.2 ), we have
u T v ≥ − ( c 2 ∥ u ∥ 2 + 1 2 c ∥ v ∥ 2 ) , ∀ u , v ∈ R d , ∀ c > 0 , \mathbf{u}^{\mathsf{T}}\mathbf{v}\geq-\left(\frac{c}{2}\lVert\mathbf{u}\rVert^2+\frac{1}{2c}\lVert\mathbf{v}\rVert^2\right),\qquad\forall\mathbf{u},\mathbf{v}\in\mathbb{R}^{d},\ \forall c>0, u T v ≥ − ( 2 c ∥ u ∥ 2 + 2 c 1 ∥ v ∥ 2 ) , ∀ u , v ∈ R d , ∀ c > 0 ,
which becomes an equality if and only if v = − c u \mathbf{v}=-c\mathbf{u} v = − c u , and
u T v ≥ − ∥ u ∥ ∥ v ∥ = − c ∥ v ∥ 2 , ∀ u , v ∈ R d , ∀ c > 0 , \mathbf{u}^{\mathsf{T}}\mathbf{v}\geq-\lVert\mathbf{u}\rVert\lVert\mathbf{v}\rVert=-c\lVert\mathbf{v}\rVert^2,\qquad\forall\mathbf{u},\mathbf{v}\in\mathbb{R}^{d},\ \forall c>0, u T v ≥ − ∥ u ∥ ∥ v ∥ = − c ∥ v ∥ 2 , ∀ u , v ∈ R d , ∀ c > 0 ,
which becomes an equality if and only if u = − c v u=-cv u = − c v . Then,
f c e − o s ( W , b , F ) ≥ γ 1 + c 1 + c 2 ∑ k = 1 K 1 w k T [ c 1 K 1 − 1 x ~ − ( c 1 K 1 − 1 + c 2 K 1 ) x ˉ k ] + c 2 1 + c 1 + c 2 γ K − K 1 ∑ j = K 1 + 1 K w j T x ~ + c 2 1 + c 1 + c 2 ( 1 K 1 ∑ k = 1 K 1 b k − 1 K − K 1 ∑ j = K 1 + 1 K b j ) + C ≥ − γ 1 + c 1 + c 2 ∑ k = 1 K 1 1 c 3 ∥ c 1 K 1 − 1 x ~ − ( c 1 K 1 − 1 + c 2 K 1 ) x ˉ k ∥ 2 − c 2 1 + c 1 + c 2 γ K − K 1 ∑ j = K 1 + 1 K 1 c 4 ∥ x ~ ∥ 2 + c 2 1 + c 1 + c 2 ( 1 K 1 ∑ k = 1 K 1 b k − 1 K − K 1 ∑ j = K 1 + 1 K b j ) + C = − γ 1 + c 1 + c 2 ∑ k = 1 K 1 1 c 3 [ ( c 1 K 1 − 1 ) 2 ∥ x ~ ∥ 2 − 2 ( c 1 K 1 − 1 ) ( c 1 K 1 − 1 + c 2 K 1 ) x ˉ k T x ~ + ( c 1 K 1 − 1 + c 2 K 1 ) 2 ∥ x ˉ k ∥ 2 ] − c 2 1 + c 1 + c 2 γ K − K 1 ∑ j = K 1 + 1 K 1 c 4 ∥ x ~ ∥ 2 + c 2 1 + c 1 + c 2 ( 1 K 1 ∑ k = 1 K 1 b k − 1 K − K 1 ∑ j = K 1 + 1 K b j ) + C ≥ − γ 1 + c 1 + c 2 1 c 3 [ ( c 1 K 1 − 1 ) 2 K 1 ∥ x ~ ∥ 2 − 2 ( c 1 K 1 − 1 ) ( c 1 K 1 − 1 + c 2 K 1 ) K 1 ∥ x ~ ∥ 2 + ( c 1 K 1 − 1 + c 2 K 1 ) 2 K 1 − c 2 γ 1 + c 1 + c 2 1 c 4 ] ∥ x ~ ∥ 2 + c 2 1 + c 1 + c 2 ( 1 K 1 ∑ k = 1 K 1 b k − 1 K − K 1 ∑ j = K 1 + 1 K b j ) + C , \begin{aligned}
f_{\mathrm{ce-os}}(\mathbf{W},\mathbf{b},\mathcal{F}) &\ge\frac{\gamma}{1+c_1+c_2}\sum_{k=1}^{K_1}w_k^{\mathsf{T}}\left[\frac{c_1}{K_1-1}\tilde{x}-\left(\frac{c_1}{K_1-1}+\frac{c_2}{K_1}\right)\bar{x}_k\right]\\
&\quad+\frac{c_2}{1+c_1+c_2}\frac{\gamma}{K-K_1}\sum_{j=K_1+1}^{K}w_j^{\mathsf{T}}\tilde{x}\\
&\quad+\frac{c_2}{1+c_1+c_2}\left(\frac{1}{K_1}\sum_{k=1}^{K_1}b_k-\frac{1}{K-K_1}\sum_{j=K_1+1}^{K}b_j\right)+C\\
&\ge-\frac{\gamma}{1+c_1+c_2}\sum_{k=1}^{K_1}\frac{1}{c_3}\left\|\frac{c_1}{K_1-1}\tilde{x}-\left(\frac{c_1}{K_1-1}+\frac{c_2}{K_1}\right)\bar{x}_k\right\|^2\\
&\quad-\frac{c_2}{1+c_1+c_2}\frac{\gamma}{K-K_1}\sum_{j=K_1+1}^{K}\frac{1}{c_4}\|\tilde{x}\|^2\\
&\quad+\frac{c_2}{1+c_1+c_2}\left(\frac{1}{K_1}\sum_{k=1}^{K_1}b_k-\frac{1}{K-K_1}\sum_{j=K_1+1}^{K}b_j\right)+C\\
&=-\frac{\gamma}{1+c_1+c_2}\sum_{k=1}^{K_1}\frac{1}{c_3}\left[\left(\frac{c_1}{K_1-1}\right)^2\|\tilde{x}\|^2-2\left(\frac{c_1}{K_1-1}\right)\left(\frac{c_1}{K_1-1}+\frac{c_2}{K_1}\right)\bar{x}_k^{\mathsf{T}}\tilde{x}\right.\\
&\qquad\left.+\left(\frac{c_1}{K_1-1}+\frac{c_2}{K_1}\right)^2\|\bar{x}_k\|^2\right]-\frac{c_2}{1+c_1+c_2}\frac{\gamma}{K-K_1}\sum_{j=K_1+1}^{K}\frac{1}{c_4}\|\tilde{x}\|^2\\
&\quad+\frac{c_2}{1+c_1+c_2}\left(\frac{1}{K_1}\sum_{k=1}^{K_1}b_k-\frac{1}{K-K_1}\sum_{j=K_1+1}^{K}b_j\right)+C\\
&\ge-\frac{\gamma}{1+c_1+c_2}\frac{1}{c_3}\left[\left(\frac{c_1}{K_1-1}\right)^2K_1\|\tilde{x}\|^2-2\left(\frac{c_1}{K_1-1}\right)\left(\frac{c_1}{K_1-1}+\frac{c_2}{K_1}\right)K_1\|\tilde{x}\|^2\right.\\
&\qquad\left.+\left(\frac{c_1}{K_1-1}+\frac{c_2}{K_1}\right)^2K_1-\frac{c_2\gamma}{1+c_1+c_2}\frac{1}{c_4}\right]\|\tilde{x}\|^2\\
&\quad+\frac{c_2}{1+c_1+c_2}\left(\frac{1}{K_1}\sum_{k=1}^{K_1}b_k-\frac{1}{K-K_1}\sum_{j=K_1+1}^{K}b_j\right)+C,
\end{aligned} f ce − os ( W , b , F ) ≥ 1 + c 1 + c 2 γ k = 1 ∑ K 1 w k T [ K 1 − 1 c 1 x ~ − ( K 1 − 1 c 1 + K 1 c 2 ) x ˉ k ] + 1 + c 1 + c 2 c 2 K − K 1 γ j = K 1 + 1 ∑ K w j T x ~ + 1 + c 1 + c 2 c 2 K 1 1 k = 1 ∑ K 1 b k − K − K 1 1 j = K 1 + 1 ∑ K b j + C ≥ − 1 + c 1 + c 2 γ k = 1 ∑ K 1 c 3 1 K 1 − 1 c 1 x ~ − ( K 1 − 1 c 1 + K 1 c 2 ) x ˉ k 2 − 1 + c 1 + c 2 c 2 K − K 1 γ j = K 1 + 1 ∑ K c 4 1 ∥ x ~ ∥ 2 + 1 + c 1 + c 2 c 2 K 1 1 k = 1 ∑ K 1 b k − K − K 1 1 j = K 1 + 1 ∑ K b j + C = − 1 + c 1 + c 2 γ k = 1 ∑ K 1 c 3 1 [ ( K 1 − 1 c 1 ) 2 ∥ x ~ ∥ 2 − 2 ( K 1 − 1 c 1 ) ( K 1 − 1 c 1 + K 1 c 2 ) x ˉ k T x ~ + ( K 1 − 1 c 1 + K 1 c 2 ) 2 ∥ x ˉ k ∥ 2 ] − 1 + c 1 + c 2 c 2 K − K 1 γ j = K 1 + 1 ∑ K c 4 1 ∥ x ~ ∥ 2 + 1 + c 1 + c 2 c 2 K 1 1 k = 1 ∑ K 1 b k − K − K 1 1 j = K 1 + 1 ∑ K b j + C ≥ − 1 + c 1 + c 2 γ c 3 1 [ ( K 1 − 1 c 1 ) 2 K 1 ∥ x ~ ∥ 2 − 2 ( K 1 − 1 c 1 ) ( K 1 − 1 c 1 + K 1 c 2 ) K 1 ∥ x ~ ∥ 2 + ( K 1 − 1 c 1 + K 1 c 2 ) 2 K 1 − 1 + c 1 + c 2 c 2 γ c 4 1 ] ∥ x ~ ∥ 2 + 1 + c 1 + c 2 c 2 K 1 1 k = 1 ∑ K 1 b k − K − K 1 1 j = K 1 + 1 ∑ K b j + C ,
where the second inequality becomes an equality if and only if
− c 3 w k = c 1 K 1 − 1 x ~ − ( c 1 K 1 − 1 + c 2 K 1 ) x ˉ k , ∀ c 3 > 0 , ∀ k ∈ [ K 1 ] , (126) -c_3w_k=\frac{c_1}{K_1-1}\tilde{x}-\left(\frac{c_1}{K_1-1}+\frac{c_2}{K_1}\right)\bar{x}_k,\quad\forall c_3>0,\ \forall k\in[K_1], \tag*{(126)} − c 3 w k = K 1 − 1 c 1 x ~ − ( K 1 − 1 c 1 + K 1 c 2 ) x ˉ k , ∀ c 3 > 0 , ∀ k ∈ [ K 1 ] , (126)
− c 4 w j = x ~ , ∀ c 4 > 0 , K 1 < j ≤ K , (127) -c_4w_j=\tilde{x},\quad\forall c_4>0,\ K_1<j\le K, \tag*{(127)} − c 4 w j = x ~ , ∀ c 4 > 0 , K 1 < j ≤ K , (127)
and the third inequality becomes an equality if and only if
1 = ∥ x ˉ k ∥ = ∥ 1 n k ∑ x ( k ) ∈ F k x ( k ) ∥ ≤ 1 n k ∑ x ( k ) ∈ F k ∥ x ( k ) ∥ = 1 = ∥ x ( k ) ∥ 1=\|\bar{x}_k\|=\left\|\frac{1}{n_k}\sum_{x^{(k)}\in\mathcal{F}_k}x^{(k)}\right\|\le\frac{1}{n_k}\sum_{x^{(k)}\in\mathcal{F}_k}\|x^{(k)}\|=1=\|x^{(k)}\| 1 = ∥ x ˉ k ∥ = n k 1 x ( k ) ∈ F k ∑ x ( k ) ≤ n k 1 x ( k ) ∈ F k ∑ ∥ x ( k ) ∥ = 1 = ∥ x ( k ) ∥
⟺ x ( k ) = x ˉ k , ∀ x ( k ) ∈ F k , ∀ k ∈ [ K 1 ] . (128) \Longleftrightarrow\quad x^{(k)}=\bar{x}_k,\quad\forall x^{(k)}\in\mathcal{F}_k,\ \forall k\in[K_1]. \tag*{(128)} ⟺ x ( k ) = x ˉ k , ∀ x ( k ) ∈ F k , ∀ k ∈ [ K 1 ] . (128)
As ∥ w j ∥ = 1 \lVert w_j\rVert=1 ∥ w j ∥ = 1 , from Eq. (S.104), one can deduce
c 4 = ∥ x ~ ∥ . (129) c_4=\lVert\tilde{x}\rVert. \tag*{(129)} c 4 = ∥ x ~ ∥ . (129)
Then,
f c e - o s ( W , b , F ) ≥ − γ 1 + c 1 + c 2 1 c 3 [ ( c 1 K 1 − 1 ) 2 K 1 ∥ x ~ ∥ 2 − 2 ( c 1 K 1 − 1 ) ( c 1 K 1 − 1 + c 2 K 1 ) K 1 ∥ x ~ ∥ 2 + ( c 1 K 1 − 1 + c 2 K 1 ) 2 K 1 ] − c 2 γ 1 + c 1 + c 2 ∥ x ~ ∥ + c 2 1 + c 1 + c 2 ( 1 K 1 ∑ k = 1 K 1 b k − 1 K − K 1 ∑ j = K 1 + 1 K b j ) + C = γ 1 + c 1 + c 2 { [ K 1 c 3 ( c 1 K 1 − 1 ) 2 + 2 K 1 c 3 c 1 K 1 − 1 c 2 K 1 ] ∥ x ~ ∥ 2 − c 2 ∥ x ~ ∥ } + C − γ 1 + c 1 + c 2 K 1 c 3 ( c 1 K 1 − 1 + c 2 K 1 ) 2 + c 2 1 + c 1 + c 2 ( 1 K 1 ∑ k = 1 K 1 b k − 1 K − K 1 ∑ j = K 1 + 1 K b j ) . \begin{aligned}
f_{\mathrm{ce\text{-}os}}(\mathbf{W},b,\mathcal{F})
&\ge-\frac{\gamma}{1+c_1+c_2}\frac{1}{c_3}\left[\left(\frac{c_1}{K_1-1}\right)^2K_1\lVert\tilde{x}\rVert^2-2\left(\frac{c_1}{K_1-1}\right)\left(\frac{c_1}{K_1-1}+\frac{c_2}{K_1}\right)K_1\lVert\tilde{x}\rVert^2\right.\\
&\qquad\left.+\left(\frac{c_1}{K_1-1}+\frac{c_2}{K_1}\right)^2K_1\right]-\frac{c_2\gamma}{1+c_1+c_2}\lVert\tilde{x}\rVert\\
&\qquad+\frac{c_2}{1+c_1+c_2}\left(\frac{1}{K_1}\sum_{k=1}^{K_1}b_k-\frac{1}{K-K_1}\sum_{j=K_1+1}^{K}b_j\right)+C\\
&=\frac{\gamma}{1+c_1+c_2}\left\{\left[\frac{K_1}{c_3}\left(\frac{c_1}{K_1-1}\right)^2+\frac{2K_1}{c_3}\frac{c_1}{K_1-1}\frac{c_2}{K_1}\right]\lVert\tilde{x}\rVert^2-c_2\lVert\tilde{x}\rVert\right\}+C\\
&\qquad-\frac{\gamma}{1+c_1+c_2}\frac{K_1}{c_3}\left(\frac{c_1}{K_1-1}+\frac{c_2}{K_1}\right)^2+\frac{c_2}{1+c_1+c_2}\left(\frac{1}{K_1}\sum_{k=1}^{K_1}b_k-\frac{1}{K-K_1}\sum_{j=K_1+1}^{K}b_j\right).
\end{aligned} f ce - os ( W , b , F ) ≥ − 1 + c 1 + c 2 γ c 3 1 [ ( K 1 − 1 c 1 ) 2 K 1 ∥ x ~ ∥ 2 − 2 ( K 1 − 1 c 1 ) ( K 1 − 1 c 1 + K 1 c 2 ) K 1 ∥ x ~ ∥ 2 + ( K 1 − 1 c 1 + K 1 c 2 ) 2 K 1 ] − 1 + c 1 + c 2 c 2 γ ∥ x ~ ∥ + 1 + c 1 + c 2 c 2 K 1 1 k = 1 ∑ K 1 b k − K − K 1 1 j = K 1 + 1 ∑ K b j + C = 1 + c 1 + c 2 γ { [ c 3 K 1 ( K 1 − 1 c 1 ) 2 + c 3 2 K 1 K 1 − 1 c 1 K 1 c 2 ] ∥ x ~ ∥ 2 − c 2 ∥ x ~ ∥ } + C − 1 + c 1 + c 2 γ c 3 K 1 ( K 1 − 1 c 1 + K 1 c 2 ) 2 + 1 + c 1 + c 2 c 2 K 1 1 k = 1 ∑ K 1 b k − K − K 1 1 j = K 1 + 1 ∑ K b j .
In summary, f c e - o s ( W , b , F ) f_{\mathrm{ce\text{-}os}}(\mathbf{W},b,\mathcal{F}) f ce - os ( W , b , F ) achieves the lower bound if and only if Eqs. (S.131, S.132, S.133, S.134) and Eqs. (S.103, S.104, S.105) hold.
Finally, Lemma S.12 completes the proof.
Lemma S.12 Suppose that the first K 1 K_1 K 1 classes in dataset D \mathcal{D} D contains at least one sample, K 1 < K K_1<K K 1 < K , while the other classes are empty, and that the feature dimension is greater than the number of classes, i.e., n k = ∣ D k ∣ > 0 n_k=|\mathcal{D}_k|>0 n k = ∣ D k ∣ > 0 for ∀ k ∈ [ K 1 ] \forall k\in[K_1] ∀ k ∈ [ K 1 ] , n k = ∣ D k ∣ = 0 n_k=|\mathcal{D}_k|=0 n k = ∣ D k ∣ = 0 for K 1 < k ≤ K K_1<k\le K K 1 < k ≤ K , and d ≥ K 1 d\ge K_1 d ≥ K 1 . Then, for the CE loss f c e - o s ( W , b , F ) f_{\mathrm{ce\text{-}os}}(\mathbf{W},b,\mathcal{F}) f ce - os ( W , b , F ) defined in Eq. (S.98),
f c e ( W , b , F ) ≥ log ( 1 + c 1 + c 2 ) , (130) f_{\mathrm{ce}}(\mathbf{W},b,\mathcal{F})\ge\log(1+c_1+c_2), \tag*{(130)} f ce ( W , b , F ) ≥ log ( 1 + c 1 + c 2 ) , (130) where
c 1 = ( K 1 − 1 ) exp ( γ g ( q ⋆ ) K 1 K 1 − 1 ( ∥ x ~ ∥ 2 − 1 ) ) , c_1=(K_1-1)\exp\left(\frac{\gamma}{\sqrt{g(q^\star)}}\frac{K_1}{K_1-1}\left(\lVert\tilde{x}\rVert^2-1\right)\right), c 1 = ( K 1 − 1 ) exp ( g ( q ⋆ ) γ K 1 − 1 K 1 ( ∥ x ~ ∥ 2 − 1 ) ) , c 2 = K 1 1 − q ⋆ q ⋆ exp ( γ g ( q ⋆ ) K 1 K 1 − 1 ( ∥ x ~ ∥ 2 − 1 ) ) , c_2=K_1\frac{1-q^\star}{q^\star}\exp\left(\frac{\gamma}{\sqrt{g(q^\star)}}\frac{K_1}{K_1-1}\left(\lVert\tilde{x}\rVert^2-1\right)\right), c 2 = K 1 q ⋆ 1 − q ⋆ exp ( g ( q ⋆ ) γ K 1 − 1 K 1 ( ∥ x ~ ∥ 2 − 1 ) ) , c 3 = 1 q ⋆ g ( q ⋆ ) exp ( γ g ( q ⋆ ) K 1 K 1 − 1 ( ∥ x ~ ∥ 2 − 1 ) ) , c_3=\frac{1}{q^\star}\sqrt{g(q^\star)}\exp\left(\frac{\gamma}{\sqrt{g(q^\star)}}\frac{K_1}{K_1-1}\left(\lVert\tilde{x}\rVert^2-1\right)\right), c 3 = q ⋆ 1 g ( q ⋆ ) exp ( g ( q ⋆ ) γ K 1 − 1 K 1 ( ∥ x ~ ∥ 2 − 1 ) ) , and g ( q ) = 1 − 2 q ∥ x ~ ∥ 2 + q 2 ∥ x ~ ∥ 2 g(q)=1-2q\lVert\tilde{x}\rVert^2+q^2\lVert\tilde{x}\rVert^2 g ( q ) = 1 − 2 q ∥ x ~ ∥ 2 + q 2 ∥ x ~ ∥ 2 with a certain q ⋆ ∈ ( 0 , 1 ) q^\star\in(0,1) q ⋆ ∈ ( 0 , 1 ) . When f c e - o s ( W , b , F ) f_{\mathrm{ce\text{-}os}}(\mathbf{W},b,\mathcal{F}) f ce - os ( W , b , F ) approaching its minimum value, q ⋆ → 1 q^\star\to1 q ⋆ → 1 and ∥ x ~ ∥ → 0 \lVert\tilde{x}\rVert\to0 ∥ x ~ ∥ → 0 .
Proof. According to Theorem S.11 , the CE loss f c e ( W , b , F ) f_{\mathrm{ce}}(\mathbf{W},b,\mathcal{F}) f ce ( W , b , F ) satisfies
f c e − O S ( W , b , F ) ≥ − c 1 1 + c 1 + c 2 c 2 2 ∥ x ~ ∥ − c 1 1 + c 1 + c 2 K 1 c 3 ( c 1 K 1 − 1 + c 2 K 1 ) 2 + c 2 1 + c 1 + c 2 ( 1 K 1 ∑ k = 1 K 1 b k − 1 K − K 1 ∑ j = K 1 + 1 K b j ) + C , (131) f_{\mathrm{ce-OS}}(\mathbf{W},b,\mathcal{F}) \geq-\frac{c_{1}}{1+c_{1}+c_{2}}\frac{c_{2}}{2}\lVert\tilde{\mathbf{x}}\rVert-\frac{c_{1}}{1+c_{1}+c_{2}}\frac{K_{1}}{c_{3}}\left(\frac{c_{1}}{K_{1}-1}+\frac{c_{2}}{K_{1}}\right)^{2}
+\frac{c_{2}}{1+c_{1}+c_{2}}\left(\frac{1}{K_{1}}\sum_{k=1}^{K_{1}}b_{k}-\frac{1}{K-K_{1}}\sum_{j=K_{1}+1}^{K}b_{j}\right)+C, \tag*{(131)} f ce − OS ( W , b , F ) ≥ − 1 + c 1 + c 2 c 1 2 c 2 ∥ x ~ ∥ − 1 + c 1 + c 2 c 1 c 3 K 1 ( K 1 − 1 c 1 + K 1 c 2 ) 2 + 1 + c 1 + c 2 c 2 K 1 1 k = 1 ∑ K 1 b k − K − K 1 1 j = K 1 + 1 ∑ K b j + C , (131)
and the loss achieves this lower boundary if and only if Eqs. (S.131, S.132, S.133, S.134) and Eqs. (S.103, S.104, S.105) hold.
From Eq. (S.103),
− c 3 w k = c 1 K 1 − 1 x ~ − ( c 1 K 1 − 1 + c 2 K 1 ) x ˉ k ⇒ − c 3 ∑ k = 1 K 1 w k = c 1 K 1 − 1 K 1 x ~ − ( c 1 K 1 − 1 + c 2 K 1 ) K 1 x ~ ⇒ − c 3 ∑ k = 1 K 1 w k = − c 2 K 1 K 1 x ~ ⇒ ∑ k = 1 K 1 w k = c 2 c 3 x ~ , (132) \begin{aligned}
-c_{3}\mathbf{w}_{k}=\frac{c_{1}}{K_{1}-1}\tilde{\mathbf{x}}-\left(\frac{c_{1}}{K_{1}-1}+\frac{c_{2}}{K_{1}}\right)\bar{\mathbf{x}}_{k} \\
&\Rightarrow\quad-c_{3}\sum_{k=1}^{K_{1}}\mathbf{w}_{k}=\frac{c_{1}}{K_{1}-1}K_{1}\tilde{\mathbf{x}}-\left(\frac{c_{1}}{K_{1}-1}+\frac{c_{2}}{K_{1}}\right)K_{1}\tilde{\mathbf{x}} \\
&\Rightarrow\quad-c_{3}\sum_{k=1}^{K_{1}}\mathbf{w}_{k}=-\frac{c_{2}}{K_{1}}K_{1}\tilde{\mathbf{x}}\quad\Rightarrow\quad\sum_{k=1}^{K_{1}}\mathbf{w}_{k}=\frac{c_{2}}{c_{3}}\tilde{\mathbf{x}}, \tag*{(132)}
\end{aligned} − c 3 w k = K 1 − 1 c 1 x ~ − ( K 1 − 1 c 1 + K 1 c 2 ) x ˉ k ⇒ − c 3 k = 1 ∑ K 1 w k = K 1 − 1 c 1 K 1 x ~ − ( K 1 − 1 c 1 + K 1 c 2 ) K 1 x ~ ⇒ − c 3 k = 1 ∑ K 1 w k = − K 1 c 2 K 1 x ~ ⇒ k = 1 ∑ K 1 w k = c 3 c 2 x ~ , (132)
− c 3 w k = c 1 K 1 − 1 x ~ − ( c 1 K 1 − 1 + c 2 K 1 ) x ˉ k ⇒ − c 3 = − c 3 w k T w k = c 1 K 1 − 1 w k T x ~ − ( c 1 K 1 − 1 + c 2 K 1 ) w k T x ˉ k ⇒ − K 1 c 3 = c 1 K 1 − 1 ( ∑ k = 1 K 1 w k ) T x ~ − ( c 1 K 1 − 1 + c 2 K 1 ) ∑ k = 1 K 1 w k T x ˉ k ⇒ ∑ k = 1 K 1 w k T x ˉ k = S .109 ( c 1 K 1 − 1 + c 2 K 1 ) − 1 ( K 1 c 3 + c 1 K 1 − 1 c 2 c 3 ∥ x ~ ∥ 2 ) , (133) \begin{aligned}
-c_{3}\mathbf{w}_{k}=\frac{c_{1}}{K_{1}-1}\tilde{\mathbf{x}}-\left(\frac{c_{1}}{K_{1}-1}+\frac{c_{2}}{K_{1}}\right)\bar{\mathbf{x}}_{k} \\
&\Rightarrow\quad-c_{3}=-c_{3}\mathbf{w}_{k}^{\mathsf{T}}\mathbf{w}_{k}=\frac{c_{1}}{K_{1}-1}\mathbf{w}_{k}^{\mathsf{T}}\tilde{\mathbf{x}}-\left(\frac{c_{1}}{K_{1}-1}+\frac{c_{2}}{K_{1}}\right)\mathbf{w}_{k}^{\mathsf{T}}\bar{\mathbf{x}}_{k} \\
&\Rightarrow\quad-K_{1}c_{3}=\frac{c_{1}}{K_{1}-1}\left(\sum_{k=1}^{K_{1}}\mathbf{w}_{k}\right)^{\mathsf{T}}\tilde{\mathbf{x}}-\left(\frac{c_{1}}{K_{1}-1}+\frac{c_{2}}{K_{1}}\right)\sum_{k=1}^{K_{1}}\mathbf{w}_{k}^{\mathsf{T}}\bar{\mathbf{x}}_{k} \\
&\Rightarrow\quad\sum_{k=1}^{K_{1}}\mathbf{w}_{k}^{\mathsf{T}}\bar{\mathbf{x}}_{k}\mathrel{\overset{\mathrm{S.109}}{=}}\left(\frac{c_{1}}{K_{1}-1}+\frac{c_{2}}{K_{1}}\right)^{-1}\left(K_{1}c_{3}+\frac{c_{1}}{K_{1}-1}\frac{c_{2}}{c_{3}}\lVert\tilde{\mathbf{x}}\rVert^{2}\right), \tag*{(133)}
\end{aligned} − c 3 w k = K 1 − 1 c 1 x ~ − ( K 1 − 1 c 1 + K 1 c 2 ) x ˉ k ⇒ − c 3 = − c 3 w k T w k = K 1 − 1 c 1 w k T x ~ − ( K 1 − 1 c 1 + K 1 c 2 ) w k T x ˉ k ⇒ − K 1 c 3 = K 1 − 1 c 1 ( k = 1 ∑ K 1 w k ) T x ~ − ( K 1 − 1 c 1 + K 1 c 2 ) k = 1 ∑ K 1 w k T x ˉ k ⇒ k = 1 ∑ K 1 w k T x ˉ k = S.109 ( K 1 − 1 c 1 + K 1 c 2 ) − 1 ( K 1 c 3 + K 1 − 1 c 1 c 3 c 2 ∥ x ~ ∥ 2 ) , (133)
− c 3 w k = c 1 K 1 − 1 x ~ − ( c 1 K 1 − 1 + c 2 K 1 ) x ˉ k ⇒ − c 3 w k T x ˉ k = c 1 K 1 − 1 x ~ T x ˉ k − ( c 1 K 1 − 1 + c 2 K 1 ) x ˉ k T x ˉ k ⇒ ∑ k = 1 K 1 w k T x ˉ k = ( c 1 K 1 − 1 + c 2 K 1 ) K 1 c 3 − c 1 K 1 − 1 K 1 c 3 ∥ x ~ ∥ 2 ⇒ c 3 2 = S .110 ( c 1 K 1 − 1 + c 2 K 1 ) 2 − c 1 K 1 − 1 ( c 1 K 1 − 1 + 2 c 2 K 1 ) ∥ x ~ ∥ 2 , (134) \begin{aligned}
-c_{3}\mathbf{w}_{k}=\frac{c_{1}}{K_{1}-1}\tilde{\mathbf{x}}-\left(\frac{c_{1}}{K_{1}-1}+\frac{c_{2}}{K_{1}}\right)\bar{\mathbf{x}}_{k} \\
&\Rightarrow\quad-c_{3}\mathbf{w}_{k}^{\mathsf{T}}\bar{\mathbf{x}}_{k}=\frac{c_{1}}{K_{1}-1}\tilde{\mathbf{x}}^{\mathsf{T}}\bar{\mathbf{x}}_{k}-\left(\frac{c_{1}}{K_{1}-1}+\frac{c_{2}}{K_{1}}\right)\bar{\mathbf{x}}_{k}^{\mathsf{T}}\bar{\mathbf{x}}_{k} \\
&\Rightarrow\quad\sum_{k=1}^{K_{1}}\mathbf{w}_{k}^{\mathsf{T}}\bar{\mathbf{x}}_{k}=\left(\frac{c_{1}}{K_{1}-1}+\frac{c_{2}}{K_{1}}\right)\frac{K_{1}}{c_{3}}-\frac{c_{1}}{K_{1}-1}\frac{K_{1}}{c_{3}}\lVert\tilde{\mathbf{x}}\rVert^{2} \\
&\Rightarrow\quad c_{3}^{2}\mathrel{\overset{\mathrm{S.110}}{=}}\left(\frac{c_{1}}{K_{1}-1}+\frac{c_{2}}{K_{1}}\right)^{2}-\frac{c_{1}}{K_{1}-1}\left(\frac{c_{1}}{K_{1}-1}+2\frac{c_{2}}{K_{1}}\right)\lVert\tilde{\mathbf{x}}\rVert^{2}, \tag*{(134)}
\end{aligned} − c 3 w k = K 1 − 1 c 1 x ~ − ( K 1 − 1 c 1 + K 1 c 2 ) x ˉ k ⇒ − c 3 w k T x ˉ k = K 1 − 1 c 1 x ~ T x ˉ k − ( K 1 − 1 c 1 + K 1 c 2 ) x ˉ k T x ˉ k ⇒ k = 1 ∑ K 1 w k T x ˉ k = ( K 1 − 1 c 1 + K 1 c 2 ) c 3 K 1 − K 1 − 1 c 1 c 3 K 1 ∥ x ~ ∥ 2 ⇒ c 3 2 = S.110 ( K 1 − 1 c 1 + K 1 c 2 ) 2 − K 1 − 1 c 1 ( K 1 − 1 c 1 + 2 K 1 c 2 ) ∥ x ~ ∥ 2 , (134)
− c 3 w k = c 1 K 1 − 1 x ~ − ( c 1 K 1 − 1 + c 2 K 1 ) x ˉ k ⇒ ( c 1 K 1 − 1 ) 2 ∥ x ~ ∥ 2 = ∥ ( c 1 K 1 − 1 + c 2 K 1 ) x ˉ k − c 3 w k ∥ 2 ⇒ 2 ( c 1 K 1 − 1 + c 2 K 1 ) c 3 w k T x ˉ k = ( c 1 K 1 − 1 + c 2 K 1 ) 2 + c 3 2 − ( c 1 K 1 − 1 ) 2 ∥ x ~ ∥ 2 \begin{aligned}
-c_{3}\mathbf{w}_{k}=\frac{c_{1}}{K_{1}-1}\tilde{\mathbf{x}}-\left(\frac{c_{1}}{K_{1}-1}+\frac{c_{2}}{K_{1}}\right)\bar{\mathbf{x}}_{k} \\
&\Rightarrow\quad\left(\frac{c_{1}}{K_{1}-1}\right)^{2}\lVert\tilde{\mathbf{x}}\rVert^{2}=\left\lVert\left(\frac{c_{1}}{K_{1}-1}+\frac{c_{2}}{K_{1}}\right)\bar{\mathbf{x}}_{k}-c_{3}\mathbf{w}_{k}\right\rVert^{2} \\
&\Rightarrow\quad2\left(\frac{c_{1}}{K_{1}-1}+\frac{c_{2}}{K_{1}}\right)c_{3}\mathbf{w}_{k}^{\mathsf{T}}\bar{\mathbf{x}}_{k}=\left(\frac{c_{1}}{K_{1}-1}+\frac{c_{2}}{K_{1}}\right)^{2}+c_{3}^{2}-\left(\frac{c_{1}}{K_{1}-1}\right)^{2}\lVert\tilde{\mathbf{x}}\rVert^{2}
\end{aligned} − c 3 w k = K 1 − 1 c 1 x ~ − ( K 1 − 1 c 1 + K 1 c 2 ) x ˉ k ⇒ ( K 1 − 1 c 1 ) 2 ∥ x ~ ∥ 2 = ( K 1 − 1 c 1 + K 1 c 2 ) x ˉ k − c 3 w k 2 ⇒ 2 ( K 1 − 1 c 1 + K 1 c 2 ) c 3 w k T x ˉ k = ( K 1 − 1 c 1 + K 1 c 2 ) 2 + c 3 2 − ( K 1 − 1 c 1 ) 2 ∥ x ~ ∥ 2
≡ S .111 2 ( c 1 K 1 − 1 + c 2 K 1 ) 2 − 2 ( c 1 K 1 − 1 + c 2 K 1 ) c 1 K 1 − 1 ∥ x ~ ∥ 2 ⇒ w k T x ˉ k = ( c 1 K 1 − 1 + c 2 K 1 ) 1 c 3 − c 1 K 1 − 1 1 c 3 ∥ x ~ ∥ 2 , ∀ k ∈ [ K 1 ] . (135) \begin{aligned}
\stackrel{S.111}{\equiv} 2\left(\frac{c_1}{K_1-1}+\frac{c_2}{K_1}\right)^2-2\left(\frac{c_1}{K_1-1}+\frac{c_2}{K_1}\right)\frac{c_1}{K_1-1}\lVert\widetilde{x}\rVert^2 \\
&\Rightarrow\quad w_k^{\mathsf{T}}\bar{x}_k=\left(\frac{c_1}{K_1-1}+\frac{c_2}{K_1}\right)\frac{1}{c_3}-\frac{c_1}{K_1-1}\frac{1}{c_3}\lVert\widetilde{x}\rVert^2,\quad\forall k\in[K_1]. \tag*{(135)}
\end{aligned} ≡ S .111 2 ( K 1 − 1 c 1 + K 1 c 2 ) 2 − 2 ( K 1 − 1 c 1 + K 1 c 2 ) K 1 − 1 c 1 ∥ x ∥ 2 ⇒ w k T x ˉ k = ( K 1 − 1 c 1 + K 1 c 2 ) c 3 1 − K 1 − 1 c 1 c 3 1 ∥ x ∥ 2 , ∀ k ∈ [ K 1 ] . (135)
Furthermore,
− c 3 w k = c 1 K 1 − 1 x ~ − ( c 1 K 1 − 1 + c 2 K 1 ) x ˉ k ⇒ c 3 ( w k − w j ) = ( c 1 K 1 − 1 + c 2 K 1 ) ( x ˉ k − x ˉ j ) ⇒ c 3 ( w k T w j − 1 ) = ( c 1 K 1 − 1 + c 2 K 1 ) ( w j T x ˉ k − w j T x ˉ j ) \begin{aligned}
-c_3w_k=\frac{c_1}{K_1-1}\widetilde{x}-\left(\frac{c_1}{K_1-1}+\frac{c_2}{K_1}\right)\bar{x}_k \\
&\Rightarrow\quad c_3(w_k-w_j)=\left(\frac{c_1}{K_1-1}+\frac{c_2}{K_1}\right)(\bar{x}_k-\bar{x}_j) \\
&\Rightarrow\quad c_3(w_k^{\mathsf{T}}w_j-1)=\left(\frac{c_1}{K_1-1}+\frac{c_2}{K_1}\right)(w_j^{\mathsf{T}}\bar{x}_k-w_j^{\mathsf{T}}\bar{x}_j)
\end{aligned} − c 3 w k = K 1 − 1 c 1 x − ( K 1 − 1 c 1 + K 1 c 2 ) x ˉ k ⇒ c 3 ( w k − w j ) = ( K 1 − 1 c 1 + K 1 c 2 ) ( x ˉ k − x ˉ j ) ⇒ c 3 ( w k T w j − 1 ) = ( K 1 − 1 c 1 + K 1 c 2 ) ( w j T x ˉ k − w j T x ˉ j )
and c 3 ( 1 − w k T w j ) = ( c 1 K 1 − 1 + c 2 K 1 ) ( w k T x ˉ k − w k T x ˉ j ) ⇒ 2 γ c 3 ( w k T w j − 1 ) = ( c 1 K 1 − 1 + c 2 K 1 ) ( γ w j T x ˉ k − b j − γ w k T x ˉ k + b k + γ w k T x ˉ j − b k − γ w j T x ˉ j + b j ) ⇒ w k T w j = S .133 , S .105 1 γ c 3 ( c 1 K 1 − 1 + c 2 K 1 ) log ( c 1 K 1 − 1 ) , ∀ j ≠ k ∈ [ K 1 ] , (136) \begin{aligned}
\text{and}\quad c_3(1-w_k^{\mathsf{T}}w_j)=\left(\frac{c_1}{K_1-1}+\frac{c_2}{K_1}\right)(w_k^{\mathsf{T}}\bar{x}_k-w_k^{\mathsf{T}}\bar{x}_j) \\
&\Rightarrow\quad2\gamma c_3(w_k^{\mathsf{T}}w_j-1)=\left(\frac{c_1}{K_1-1}+\frac{c_2}{K_1}\right)(\gamma w_j^{\mathsf{T}}\bar{x}_k-b_j-\gamma w_k^{\mathsf{T}}\bar{x}_k+b_k+\gamma w_k^{\mathsf{T}}\bar{x}_j-b_k-\gamma w_j^{\mathsf{T}}\bar{x}_j+b_j) \\
&\Rightarrow\quad w_k^{\mathsf{T}}w_j\stackrel{S.133,S.105}{=}\frac{1}{\gamma c_3}\left(\frac{c_1}{K_1-1}+\frac{c_2}{K_1}\right)\log\left(\frac{c_1}{K_1-1}\right),\quad\forall j\ne k\in[K_1], \tag*{(136)}
\end{aligned} and c 3 ( 1 − w k T w j ) = ( K 1 − 1 c 1 + K 1 c 2 ) ( w k T x ˉ k − w k T x ˉ j ) ⇒ 2 γ c 3 ( w k T w j − 1 ) = ( K 1 − 1 c 1 + K 1 c 2 ) ( γ w j T x ˉ k − b j − γ w k T x ˉ k + b k + γ w k T x ˉ j − b k − γ w j T x ˉ j + b j ) ⇒ w k T w j = S .133 , S .105 γ c 3 1 ( K 1 − 1 c 1 + K 1 c 2 ) log ( K 1 − 1 c 1 ) , ∀ j = k ∈ [ K 1 ] , (136)
⇒ w k T w j = S .109 1 K 1 1 K 1 − 1 ( c 2 c 3 ) 2 ∥ x ~ ∥ 2 − 1 K 1 − 1 , ∀ j ≠ k ∈ [ K 1 ] , (137) \Rightarrow\quad w_k^{\mathsf{T}}w_j\stackrel{S.109}{=}\frac{1}{K_1}\frac{1}{K_1-1}\left(\frac{c_2}{c_3}\right)^2\lVert\widetilde{x}\rVert^2-\frac{1}{K_1-1},\quad\forall j\ne k\in[K_1], \tag*{(137)} ⇒ w k T w j = S .109 K 1 1 K 1 − 1 1 ( c 3 c 2 ) 2 ∥ x ∥ 2 − K 1 − 1 1 , ∀ j = k ∈ [ K 1 ] , (137)
− c 3 w k = c 1 K 1 − 1 x ~ − ( c 1 K 1 − 1 + c 2 K 1 ) x ˉ k ⇒ ( c 1 K 1 − 1 + c 2 K 1 ) ( x ˉ k − x ˉ j ) = c 3 ( w k − w j ) ⇒ ( c 1 K 1 − 1 + c 2 K 1 ) 2 ( 2 − 2 x ˉ k T x ˉ j ) = c 3 2 ( 2 − 2 w k T w j ) ⇒ x ˉ k T x ˉ j = S .114 1 − ( c 1 K 1 − 1 + c 2 K 1 ) − 2 c 3 2 K 1 K 1 − 1 + 1 K 1 1 K 1 − 1 c 2 2 ∥ x ~ ∥ 2 ⇒ x ˉ k T x ˉ j = K 1 K 1 − 1 ∥ x ~ ∥ 2 − 1 K 1 − 1 , ∀ j ≠ k ∈ [ K 1 ] , (138) \begin{aligned}
-c_3w_k=\frac{c_1}{K_1-1}\widetilde{x}-\left(\frac{c_1}{K_1-1}+\frac{c_2}{K_1}\right)\bar{x}_k \\
&\Rightarrow\quad\left(\frac{c_1}{K_1-1}+\frac{c_2}{K_1}\right)(\bar{x}_k-\bar{x}_j)=c_3(w_k-w_j) \\
&\Rightarrow\quad\left(\frac{c_1}{K_1-1}+\frac{c_2}{K_1}\right)^2(2-2\bar{x}_k^{\mathsf{T}}\bar{x}_j)=c_3^2(2-2w_k^{\mathsf{T}}w_j) \\
&\Rightarrow\quad\bar{x}_k^{\mathsf{T}}\bar{x}_j\stackrel{S.114}{=}1-\left(\frac{c_1}{K_1-1}+\frac{c_2}{K_1}\right)^{-2}c_3^2\frac{K_1}{K_1-1}+\frac{1}{K_1}\frac{1}{K_1-1}c_2^2\lVert\widetilde{x}\rVert^2 \\
&\Rightarrow\quad\bar{x}_k^{\mathsf{T}}\bar{x}_j=\frac{K_1}{K_1-1}\lVert\widetilde{x}\rVert^2-\frac{1}{K_1-1},\quad\forall j\ne k\in[K_1], \tag*{(138)}
\end{aligned} − c 3 w k = K 1 − 1 c 1 x − ( K 1 − 1 c 1 + K 1 c 2 ) x ˉ k ⇒ ( K 1 − 1 c 1 + K 1 c 2 ) ( x ˉ k − x ˉ j ) = c 3 ( w k − w j ) ⇒ ( K 1 − 1 c 1 + K 1 c 2 ) 2 ( 2 − 2 x ˉ k T x ˉ j ) = c 3 2 ( 2 − 2 w k T w j ) ⇒ x ˉ k T x ˉ j = S .114 1 − ( K 1 − 1 c 1 + K 1 c 2 ) − 2 c 3 2 K 1 − 1 K 1 + K 1 1 K 1 − 1 1 c 2 2 ∥ x ∥ 2 ⇒ x ˉ k T x ˉ j = K 1 − 1 K 1 ∥ x ∥ 2 − K 1 − 1 1 , ∀ j = k ∈ [ K 1 ] , (138)
− c 3 w k = c 1 K 1 − 1 x ~ − ( c 1 K 1 − 1 + c 2 K 1 ) x ˉ k ⇒ − c 3 w k T x ˉ j = c 1 K 1 − 1 ( 1 K 1 ∑ k = 1 K 1 x ˉ k ) T x ˉ j − ( c 1 K 1 − 1 + c 2 K 1 ) x ˉ k T x ˉ j ⇒ w k T x ˉ j = 1 c 3 ( 1 K 1 − 1 1 K 1 − 1 + K 1 K 1 − 1 c 2 K 1 ) ∥ x ~ ∥ 2 \begin{aligned}
-c_3w_k=\frac{c_1}{K_1-1}\widetilde{x}-\left(\frac{c_1}{K_1-1}+\frac{c_2}{K_1}\right)\bar{x}_k \\
&\Rightarrow\quad-c_3w_k^{\mathsf{T}}\bar{x}_j=\frac{c_1}{K_1-1}\left(\frac{1}{K_1}\sum_{k=1}^{K_1}\bar{x}_k\right)^{\mathsf{T}}\bar{x}_j-\left(\frac{c_1}{K_1-1}+\frac{c_2}{K_1}\right)\bar{x}_k^{\mathsf{T}}\bar{x}_j \\
&\Rightarrow\quad w_k^{\mathsf{T}}\bar{x}_j=\frac{1}{c_3}\left(\frac{1}{K_1-1}\frac{1}{K_1-1}+\frac{K_1}{K_1-1}\frac{c_2}{K_1}\right)\lVert\widetilde{x}\rVert^2
\end{aligned} − c 3 w k = K 1 − 1 c 1 x − ( K 1 − 1 c 1 + K 1 c 2 ) x ˉ k ⇒ − c 3 w k T x ˉ j = K 1 − 1 c 1 ( K 1 1 k = 1 ∑ K 1 x ˉ k ) T x ˉ j − ( K 1 − 1 c 1 + K 1 c 2 ) x ˉ k T x ˉ j ⇒ w k T x ˉ j = c 3 1 ( K 1 − 1 1 K 1 − 1 1 + K 1 − 1 K 1 K 1 c 2 ) ∥ x ∥ 2
− 1 c 3 1 K 1 − 1 ( c 1 K 1 − 1 + c 2 K 1 ) , ∀ j ≠ k ∈ [ K 1 ] . (139) -\frac{1}{c_3}\frac{1}{K_1-1}\left(\frac{c_1}{K_1-1}+\frac{c_2}{K_1}\right),\quad\forall j\ne k\in[K_1]. \tag*{(139)} − c 3 1 K 1 − 1 1 ( K 1 − 1 c 1 + K 1 c 2 ) , ∀ j = k ∈ [ K 1 ] . (139)
According to Eqs. (S.104,S.106),
w j T x ˉ k = − ∥ x ~ ∥ , ∀ k ∈ [ K 1 ] , K 1 < j ≤ K ; (140) \mathbf{w}_j^{\mathsf{T}}\bar{\mathbf{x}}_k=-\lVert\tilde{\mathbf{x}}\rVert,\quad\forall k\in[K_1],\ K_1<j\le K; \tag*{(140)} w j T x ˉ k = − ∥ x ~ ∥ , ∀ k ∈ [ K 1 ] , K 1 < j ≤ K ; (140)
according to Eqs. (S.131, S.116), we denote
b ⋆ = b k = b j , ∀ j ≠ k ∈ [ K 1 ] ; (141) b^\star=b_k=b_j,\quad\forall j\ne k\in[K_1]; \tag*{(141)} b ⋆ = b k = b j , ∀ j = k ∈ [ K 1 ] ; (141)
according to Eqs. (S.132, S.117), we denote
b † = b j = b ℓ , ∀ K 1 < j , ℓ ≤ K ; (142) b^\dagger=b_j=b_\ell,\quad\forall K_1<j,\ell\le K; \tag*{(142)} b † = b j = b ℓ , ∀ K 1 < j , ℓ ≤ K ; (142)
according to Eqs. (S.116, S.115),
log ( c 1 K 1 − 1 ) = γ c 3 K 1 K 1 − 1 ( c 1 K 1 − 1 + c 2 K 1 ) ( ∥ x ~ ∥ 2 − 1 ) ; (143) \log\left(\frac{c_1}{K_1-1}\right)=\frac{\gamma}{c_3}\frac{K_1}{K_1-1}\left(\frac{c_1}{K_1-1}+\frac{c_2}{K_1}\right)(\lVert\tilde{\mathbf{x}}\rVert^2-1); \tag*{(143)} log ( K 1 − 1 c 1 ) = c 3 γ K 1 − 1 K 1 ( K 1 − 1 c 1 + K 1 c 2 ) (∥ x ~ ∥ 2 − 1 ) ; (143)
according to Eqs. (S.117,S.112),
log ( c 2 K − K 1 ) = − γ ∥ x ~ ∥ − ( c 1 K 1 − 1 + c 2 K 1 ) γ c 3 + c 1 K 1 − 1 γ c 3 ∥ x ~ ∥ 2 + b ⋆ − b † . (144) \log\left(\frac{c_2}{K-K_1}\right)=-\gamma\lVert\tilde{\mathbf{x}}\rVert-\left(\frac{c_1}{K_1-1}+\frac{c_2}{K_1}\right)\frac{\gamma}{c_3}+\frac{c_1}{K_1-1}\frac{\gamma}{c_3}\lVert\tilde{\mathbf{x}}\rVert^2+b^\star-b^\dagger. \tag*{(144)} log ( K − K 1 c 2 ) = − γ ∥ x ~ ∥ − ( K 1 − 1 c 1 + K 1 c 2 ) c 3 γ + K 1 − 1 c 1 c 3 γ ∥ x ~ ∥ 2 + b ⋆ − b † . (144)
In total, when the CE loss f c e - o s ( W , b , F ) f_{\mathrm{ce\text{-}os}}(\mathbf{W},\mathbf{b},\mathcal{F}) f ce - os ( W , b , F ) reaching its lower bound in Eq. (S.108), c 1 , c 2 , c 3 c_1,c_2,c_3 c 1 , c 2 , c 3 satisfy Eqs. (S.111, S.120, S.121). According to Lemma S.14 , for any given γ > 0 \gamma>0 γ > 0 , K > K 1 > 1 K>K_1>1 K > K 1 > 1 , b ⋆ , b † ∈ R b^\star,b^\dagger\in\mathbb{R} b ⋆ , b † ∈ R , and ∥ x ~ ∥ ∈ ( 0 , 1 ) \lVert\tilde{\mathbf{x}}\rVert\in(0,1) ∥ x ~ ∥ ∈ ( 0 , 1 ) , there exists a unique set of c 1 , c 2 , c 3 c_1,c_2,c_3 c 1 , c 2 , c 3 . Then, they can be expressed as functions of x = ∥ x ~ ∥ x=\lVert\tilde{\mathbf{x}}\rVert x = ∥ x ~ ∥ , δ b = b ⋆ − b † \delta_b=b^\star-b^\dagger δ b = b ⋆ − b † and γ \gamma γ , K K K , K 1 K_1 K 1 . Therefore,
f c e - o s ( W , b , F ) ≥ γ 1 + c 1 + c 2 { K 1 c 3 ( c 1 K 1 − 1 ) 2 + 2 K 1 c 3 c 1 K 1 − 1 c 2 K 1 } ∥ x ~ ∥ 2 − c 2 ∥ x ~ ∥ } + C − γ 1 + c 1 + c 2 K 1 c 3 ( c 1 K 1 − 1 + c 2 K 1 ) 2 + c 2 1 + c 1 + c 2 ( 1 K 1 ∑ k = 1 K 1 b k − 1 K − K 1 ∑ j = K 1 + 1 K b j ) = γ 1 + c 1 + c 2 { K 1 c 3 ( c 1 K 1 − 1 ) 2 + 2 K 1 c 3 c 1 K 1 − 1 c 2 K 1 } ∥ x ~ ∥ 2 − c 2 ∥ x ~ ∥ } − γ 1 + c 1 + c 2 K 1 c 3 ( c 1 K 1 − 1 + c 2 K 1 ) 2 + c 2 1 + c 1 + c 2 ( b ⋆ − b † ) + 1 1 + c 1 + c 2 log ( 1 + c 1 + c 2 ) + c 1 1 + c 1 + c 2 log ( 1 + c 1 + c 2 c 1 ( K 1 − 1 ) ) + c 2 1 + c 1 + c 2 log ( 1 + c 1 + c 2 c 2 ( K − K 1 ) ) = γ 1 + c 1 + c 2 { [ K 1 c 3 ( c 1 K 1 − 1 ) 2 + 2 K 1 c 3 c 1 K 1 − 1 c 2 K 1 ] ∥ x ~ ∥ 2 − c 2 ∥ x ~ ∥ } − γ 1 + c 1 + c 2 K 1 c 3 ( c 1 K 1 − 1 + c 2 K 1 ) 2 + c 2 1 + c 1 + c 2 ( b ⋆ − b † ) + log ( 1 + c 1 + c 2 ) − c 1 1 + c 1 + c 2 log ( c 1 K 1 − 1 ) − c 2 1 + c 1 + c 2 log ( c 2 K − K 1 ) = log ( 1 + c 1 + c 2 ) = log ( 1 + c 1 ( x , δ b ; γ , K , K 1 ) + c 2 ( x , δ b ; γ , K , K 1 ) ) \begin{aligned}
f_{\mathrm{ce\text{-}os}}(\mathbf{W},\mathbf{b},\mathcal{F})
&\ge\frac{\gamma}{1+c_1+c_2}\{\frac{K_1}{c_3}(\frac{c_1}{K_1-1})^2+\frac{2K_1}{c_3}\frac{c_1}{K_1-1}\frac{c_2}{K_1}\}\lVert\tilde{\mathbf{x}}\rVert^2-c_2\lVert\tilde{\mathbf{x}}\rVert\}+C\\
&\quad-\frac{\gamma}{1+c_1+c_2}\frac{K_1}{c_3}(\frac{c_1}{K_1-1}+\frac{c_2}{K_1})^2+\frac{c_2}{1+c_1+c_2}(\frac{1}{K_1}\sum_{k=1}^{K_1}b_k-\frac{1}{K-K_1}\sum_{j=K_1+1}^{K}b_j)\\
&=\frac{\gamma}{1+c_1+c_2}\{\frac{K_1}{c_3}(\frac{c_1}{K_1-1})^2+\frac{2K_1}{c_3}\frac{c_1}{K_1-1}\frac{c_2}{K_1}\}\lVert\tilde{\mathbf{x}}\rVert^2-c_2\lVert\tilde{\mathbf{x}}\rVert\}\\
&\quad-\frac{\gamma}{1+c_1+c_2}\frac{K_1}{c_3}(\frac{c_1}{K_1-1}+\frac{c_2}{K_1})^2+\frac{c_2}{1+c_1+c_2}(b^\star-b^\dagger)\\
&\quad+\frac{1}{1+c_1+c_2}\log(1+c_1+c_2)+\frac{c_1}{1+c_1+c_2}\log(\frac{1+c_1+c_2}{c_1}(K_1-1))\\
&\quad+\frac{c_2}{1+c_1+c_2}\log(\frac{1+c_1+c_2}{c_2}(K-K_1))\\
&=\frac{\gamma}{1+c_1+c_2}\{[\frac{K_1}{c_3}(\frac{c_1}{K_1-1})^2+\frac{2K_1}{c_3}\frac{c_1}{K_1-1}\frac{c_2}{K_1}]\lVert\tilde{\mathbf{x}}\rVert^2-c_2\lVert\tilde{\mathbf{x}}\rVert\}\\
&\quad-\frac{\gamma}{1+c_1+c_2}\frac{K_1}{c_3}(\frac{c_1}{K_1-1}+\frac{c_2}{K_1})^2+\frac{c_2}{1+c_1+c_2}(b^\star-b^\dagger) \\
&+\log\left(1+c_1+c_2\right)-\frac{c_1}{1+c_1+c_2}\log\left(\frac{c_1}{K_1-1}\right)-\frac{c_2}{1+c_1+c_2}\log\left(\frac{c_2}{K-K_1}\right) \\
&=\log\left(1+c_1+c_2\right)=\log\left(1+c_1\left(x,\delta_b;\gamma,K,K_1\right)+c_2\left(x,\delta_b;\gamma,K,K_1\right)\right)
\end{aligned} f ce - os ( W , b , F ) ≥ 1 + c 1 + c 2 γ { c 3 K 1 ( K 1 − 1 c 1 ) 2 + c 3 2 K 1 K 1 − 1 c 1 K 1 c 2 } ∥ x ~ ∥ 2 − c 2 ∥ x ~ ∥} + C − 1 + c 1 + c 2 γ c 3 K 1 ( K 1 − 1 c 1 + K 1 c 2 ) 2 + 1 + c 1 + c 2 c 2 ( K 1 1 k = 1 ∑ K 1 b k − K − K 1 1 j = K 1 + 1 ∑ K b j ) = 1 + c 1 + c 2 γ { c 3 K 1 ( K 1 − 1 c 1 ) 2 + c 3 2 K 1 K 1 − 1 c 1 K 1 c 2 } ∥ x ~ ∥ 2 − c 2 ∥ x ~ ∥} − 1 + c 1 + c 2 γ c 3 K 1 ( K 1 − 1 c 1 + K 1 c 2 ) 2 + 1 + c 1 + c 2 c 2 ( b ⋆ − b † ) + 1 + c 1 + c 2 1 log ( 1 + c 1 + c 2 ) + 1 + c 1 + c 2 c 1 log ( c 1 1 + c 1 + c 2 ( K 1 − 1 )) + 1 + c 1 + c 2 c 2 log ( c 2 1 + c 1 + c 2 ( K − K 1 )) = 1 + c 1 + c 2 γ {[ c 3 K 1 ( K 1 − 1 c 1 ) 2 + c 3 2 K 1 K 1 − 1 c 1 K 1 c 2 ] ∥ x ~ ∥ 2 − c 2 ∥ x ~ ∥} − 1 + c 1 + c 2 γ c 3 K 1 ( K 1 − 1 c 1 + K 1 c 2 ) 2 + 1 + c 1 + c 2 c 2 ( b ⋆ − b † ) + log ( 1 + c 1 + c 2 ) − 1 + c 1 + c 2 c 1 log ( K 1 − 1 c 1 ) − 1 + c 1 + c 2 c 2 log ( K − K 1 c 2 ) = log ( 1 + c 1 + c 2 ) = log ( 1 + c 1 ( x , δ b ; γ , K , K 1 ) + c 2 ( x , δ b ; γ , K , K 1 ) )
≜ f ^ c e − o s ( 1 ) ( x , δ b ; γ , K , K 1 ) . \triangleq\hat{f}_{\mathrm{ce-os}}^{(1)}\left(x,\delta_b;\gamma,K,K_1\right). ≜ f ^ ce − os ( 1 ) ( x , δ b ; γ , K , K 1 ) .
According to Lemma S.13, ∂ f ^ c e − o s ( 1 ) ( x , δ b ; γ , K , K 1 ) ∂ δ b > 0 \frac{\partial\hat{f}_{\mathrm{ce-os}}^{(1)}(x,\delta_b;\gamma,K,K_1)}{\partial\delta_b}>0 ∂ δ b ∂ f ^ ce − os ( 1 ) ( x , δ b ; γ , K , K 1 ) > 0 , therefore, as f ^ c e − o s ( 1 ) ( x , δ b ; γ , K , K 1 ) \hat{f}_{\mathrm{ce-os}}^{(1)}(x,\delta_b;\gamma,K,K_1) f ^ ce − os ( 1 ) ( x , δ b ; γ , K , K 1 ) approaches its minimum,
δ b = b ⋆ − b † → − ∞ . \delta_b=b^\star-b^\dagger\to-\infty. δ b = b ⋆ − b † → − ∞.
According to Eq. (S.125), q ⋆ → 1 q^\star\to1 q ⋆ → 1 , as δ b → − ∞ \delta_b\to-\infty δ b → − ∞ , and then according to Eq. (S.126,S.127,S.128),
c 1 → ( K 1 − 1 ) exp ( − γ K 1 K 1 − 1 1 − ∥ x ~ ∥ 2 ) , c_1\to(K_1-1)\exp\left(-\gamma\frac{K_1}{K_1-1}\sqrt{1-\lVert\tilde{x}\rVert^2}\right), c 1 → ( K 1 − 1 ) exp ( − γ K 1 − 1 K 1 1 − ∥ x ~ ∥ 2 ) ,
c 3 → 1 − ∥ x ~ ∥ 2 exp ( − γ K 1 K 1 − 1 1 − ∥ x ~ ∥ 2 ) . c_3\to\sqrt{1-\lVert\tilde{x}\rVert^2}\exp\left(-\gamma\frac{K_1}{K_1-1}\sqrt{1-\lVert\tilde{x}\rVert^2}\right). c 3 → 1 − ∥ x ~ ∥ 2 exp ( − γ K 1 − 1 K 1 1 − ∥ x ~ ∥ 2 ) .
Therefore,
f c e − o s ( W , b , F ) ≥ f ^ c e − o s ( 1 ) ( x , δ b ; γ , K , K 1 ) = log ( 1 + c 1 + c 2 ) ≥ log ( 1 + c 1 ) = log ( 1 + ( K 1 − 1 ) exp ( − γ K 1 K 1 − 1 1 − ∥ x ~ ∥ 2 ) ) \begin{aligned}
f_{\mathrm{ce-os}}(W,b,\mathcal{F})\ge\hat{f}_{\mathrm{ce-os}}^{(1)}\left(x,\delta_b;\gamma,K,K_1\right)=\log\left(1+c_1+c_2\right) \\
&\ge\log\left(1+c_1\right)=\log\left(1+(K_1-1)\exp\left(-\gamma\frac{K_1}{K_1-1}\sqrt{1-\lVert\tilde{x}\rVert^2}\right)\right)
\end{aligned} f ce − os ( W , b , F ) ≥ f ^ ce − os ( 1 ) ( x , δ b ; γ , K , K 1 ) = log ( 1 + c 1 + c 2 ) ≥ log ( 1 + c 1 ) = log ( 1 + ( K 1 − 1 ) exp ( − γ K 1 − 1 K 1 1 − ∥ x ~ ∥ 2 ) )
≜ f ^ c e − o s ( 2 ) ( ∥ x ~ ∥ ; γ , K 1 ) . \triangleq\hat{f}_{\mathrm{ce-os}}^{(2)}\left(\lVert\tilde{x}\rVert;\gamma,K_1\right). ≜ f ^ ce − os ( 2 ) ( ∥ x ~ ∥ ; γ , K 1 ) .
One can easily deduce that ∂ f ^ c e − o s ( 2 ) ( ∥ x ~ ∥ ; γ , K 1 ) ∂ ∥ x ~ ∥ > 0 \frac{\partial\hat{f}_{\mathrm{ce-os}}^{(2)}(\lVert\tilde{x}\rVert;\gamma,K_1)}{\partial\lVert\tilde{x}\rVert}>0 ∂ ∥ x ~ ∥ ∂ f ^ ce − os ( 2 ) (∥ x ~ ∥ ; γ , K 1 ) > 0 , then when f ^ c e − o s ( 2 ) ( ∥ x ~ ∥ ; γ , K 1 ) \hat{f}_{\mathrm{ce-os}}^{(2)}(\lVert\tilde{x}\rVert;\gamma,K_1) f ^ ce − os ( 2 ) (∥ x ~ ∥ ; γ , K 1 ) approaching its minimum value, ∥ x ~ ∥ → 0 \lVert\tilde{x}\rVert\to0 ∥ x ~ ∥ → 0 .
Lemma S.13 Suppose γ > 0 \gamma>0 γ > 0 , K > K 1 > 1 K>K_1>1 K > K 1 > 1 , δ b ∈ R \delta_b\in\mathbb{R} δ b ∈ R , x ∈ ( 0 , 1 ) x\in(0,1) x ∈ ( 0 , 1 ) , and
c 3 2 = ( c 1 K 1 − 1 + c 2 K 1 ) 2 − [ ( c 1 K 1 − 1 + c 2 K 1 ) c 1 K 1 − 1 + c 1 K 1 − 1 c 2 K 1 ] x 2 c_3^2=\left(\frac{c_1}{K_1-1}+\frac{c_2}{K_1}\right)^2-\left[\left(\frac{c_1}{K_1-1}+\frac{c_2}{K_1}\right)\frac{c_1}{K_1-1}+\frac{c_1}{K_1-1}\frac{c_2}{K_1}\right]x^2 c 3 2 = ( K 1 − 1 c 1 + K 1 c 2 ) 2 − [ ( K 1 − 1 c 1 + K 1 c 2 ) K 1 − 1 c 1 + K 1 − 1 c 1 K 1 c 2 ] x 2 log ( c 1 K 1 − 1 ) = γ c 3 K 1 K 1 − 1 ( c 1 K 1 − 1 + c 2 K 1 ) ( x 2 − 1 ) \log\left(\frac{c_1}{K_1-1}\right)=\frac{\gamma}{c_3}\frac{K_1}{K_1-1}\left(\frac{c_1}{K_1-1}+\frac{c_2}{K_1}\right)(x^2-1) log ( K 1 − 1 c 1 ) = c 3 γ K 1 − 1 K 1 ( K 1 − 1 c 1 + K 1 c 2 ) ( x 2 − 1 ) log ( c 2 K − K 1 ) = − γ x − ( c 1 K 1 − 1 + c 2 K 1 ) γ c 3 + c 1 K 1 − 1 γ c 3 x 2 + δ b . \log\left(\frac{c_2}{K-K_1}\right)=-\gamma x-\left(\frac{c_1}{K_1-1}+\frac{c_2}{K_1}\right)\frac{\gamma}{c_3}+\frac{c_1}{K_1-1}\frac{\gamma}{c_3}x^2+\delta_b. log ( K − K 1 c 2 ) = − γ x − ( K 1 − 1 c 1 + K 1 c 2 ) c 3 γ + K 1 − 1 c 1 c 3 γ x 2 + δ b . Then, for the function f ^ c e − o s ( 1 ) ( x , δ b ; γ , K , K 1 ) = log ( 1 + c 1 + c 2 ) \hat{f}_{\mathrm{ce-os}}^{(1)}(x,\delta_b;\gamma,K,K_1)=\log(1+c_1+c_2) f ^ ce − os ( 1 ) ( x , δ b ; γ , K , K 1 ) = log ( 1 + c 1 + c 2 ) ,
∂ f ^ c e − o s ( 1 ) ( x , δ b ; γ , K , K 1 ) ∂ δ b = 1 1 + c 1 + c 2 ( ∂ c 1 ∂ δ b + ∂ c 2 ∂ δ b ) > 0. \frac{\partial\hat{f}_{\mathrm{ce-os}}^{(1)}(x,\delta_b;\gamma,K,K_1)}{\partial\delta_b}=\frac{1}{1+c_1+c_2}\left(\frac{\partial c_1}{\partial\delta_b}+\frac{\partial c_2}{\partial\delta_b}\right)>0. ∂ δ b ∂ f ^ ce − os ( 1 ) ( x , δ b ; γ , K , K 1 ) = 1 + c 1 + c 2 1 ( ∂ δ b ∂ c 1 + ∂ δ b ∂ c 2 ) > 0.
Proof. Denote u = c 1 K 1 − 1 u=\frac{c_1}{K_1-1} u = K 1 − 1 c 1 , v = c 2 K 1 v=\frac{c_2}{K_1} v = K 1 c 2 and s = u + v s=u+v s = u + v , q = u u + v ∈ ( 0 , 1 ) q=\frac{u}{u+v}\in(0,1) q = u + v u ∈ ( 0 , 1 ) . According to Lemma S.14,
c 3 = s g ( q , x ) , c_3=s\sqrt{g(q,x)}, c 3 = s g ( q , x ) ,
c 1 = ( K 1 − 1 ) exp ( − ϕ ( q , x ) ) > 0 , c_1=(K_1-1)\exp\left(-\phi(q,x)\right)>0, c 1 = ( K 1 − 1 ) exp ( − ϕ ( q , x ) ) > 0 ,
c 2 = K 1 1 − q q exp ( − ϕ ( q , x ) ) > 0. c_2=K_1\frac{1-q}{q}\exp\left(-\phi(q,x)\right)>0. c 2 = K 1 q 1 − q exp ( − ϕ ( q , x ) ) > 0.
where
g ( q , x ) = 1 − 2 x 2 q + x 2 q 2 , g(q,x)=1-2x^2q+x^2q^2, g ( q , x ) = 1 − 2 x 2 q + x 2 q 2 ,
ϕ ( q , x ) = γ K 1 K 1 − 1 1 − x 2 g ( q , x ) . \phi(q,x)=\gamma\frac{K_1}{K_1-1}\frac{1-x^2}{\sqrt{g(q,x)}}. ϕ ( q , x ) = γ K 1 − 1 K 1 g ( q , x ) 1 − x 2 .
Let
δ b = log ( c 2 K − K 1 ) + γ x + ( c 1 K 1 − 1 + c 2 K 1 ) γ c 3 − c 1 K 1 − 1 γ c 3 x 2 = log ( c 2 K 1 ) + log ( K 1 K − K 1 ) + γ x + s γ s g ( q , x ) − u γ s g ( q , x ) x 2 = log ( 1 − q q ) + log ( K 1 K − K 1 ) + γ x − γ T ( q , x ) ≜ B ( q , x ) , \begin{aligned}
\delta_b&=\log\left(\frac{c_2}{K-K_1}\right)+\gamma x+\left(\frac{c_1}{K_1-1}+\frac{c_2}{K_1}\right)\frac{\gamma}{c_3}-\frac{c_1}{K_1-1}\frac{\gamma}{c_3}x^2\\
&=\log\left(\frac{c_2}{K_1}\right)+\log\left(\frac{K_1}{K-K_1}\right)+\gamma x+s\frac{\gamma}{s\sqrt{g(q,x)}}-u\frac{\gamma}{s\sqrt{g(q,x)}}x^2\\
&=\log\left(\frac{1-q}{q}\right)+\log\left(\frac{K_1}{K-K_1}\right)+\gamma x-\gamma T(q,x)\\
&\mathrel{\triangleq}B(q,x),
\end{aligned} δ b = log ( K − K 1 c 2 ) + γ x + ( K 1 − 1 c 1 + K 1 c 2 ) c 3 γ − K 1 − 1 c 1 c 3 γ x 2 = log ( K 1 c 2 ) + log ( K − K 1 K 1 ) + γ x + s s g ( q , x ) γ − u s g ( q , x ) γ x 2 = log ( q 1 − q ) + log ( K − K 1 K 1 ) + γ x − γ T ( q , x ) ≜ B ( q , x ) ,
where
T ( q , x ) = 1 g ( q , x ) [ K 1 K 1 − 1 ( 1 − x 2 ) − 1 + q x 2 ] . T(q,x)=\frac{1}{\sqrt{g(q,x)}}\left[\frac{K_1}{K_1-1}(1-x^2)-1+qx^2\right]. T ( q , x ) = g ( q , x ) 1 [ K 1 − 1 K 1 ( 1 − x 2 ) − 1 + q x 2 ] .
According to Lemma S.14, given γ \gamma γ , K K K , K 1 K_1 K 1 , q q q is a function in terms of x x x and δ b \delta_b δ b . Denote it as q ( x , δ b ) q(x,\delta_b) q ( x , δ b ) . Then,
∂ B ( q , x ) ∂ q ∂ q ( x , δ b ) ∂ δ b = 1. \frac{\partial B(q,x)}{\partial q}\frac{\partial q(x,\delta_b)}{\partial\delta_b}=1. ∂ q ∂ B ( q , x ) ∂ δ b ∂ q ( x , δ b ) = 1.
One can deduce that
∂ B ( q , x ) ∂ q = − 1 1 − q − 1 q − γ ∂ T ( q , x ) ∂ q = − 1 1 − q − 1 q − γ x 2 ( 1 − x 2 ) ( K 1 − q ) ( K 1 − 1 ) ( g ( q , x ) ) 3 / 2 < 0 ; \frac{\partial B(q,x)}{\partial q}=-\frac{1}{1-q}-\frac{1}{q}-\gamma\frac{\partial T(q,x)}{\partial q}=-\frac{1}{1-q}-\frac{1}{q}-\gamma\frac{x^2(1-x^2)(K_1-q)}{(K_1-1)(g(q,x))^{3/2}}<0; ∂ q ∂ B ( q , x ) = − 1 − q 1 − q 1 − γ ∂ q ∂ T ( q , x ) = − 1 − q 1 − q 1 − γ ( K 1 − 1 ) ( g ( q , x ) ) 3/2 x 2 ( 1 − x 2 ) ( K 1 − q ) < 0 ;
therefore, ∂ q ( x , δ b ) ∂ δ b < 0 \frac{\partial q(x,\delta_b)}{\partial\delta_b}<0 ∂ δ b ∂ q ( x , δ b ) < 0 . As
∂ ϕ ( q , x ) ∂ q = 1 ( g ( q , x ) ) 3 / 2 ( γ K 1 K 1 − 1 ( 1 − x 2 ) x 2 ( 1 − q ) ) > 0 , \frac{\partial\phi(q,x)}{\partial q}=\frac{1}{(g(q,x))^{3/2}}\left(\gamma\frac{K_1}{K_1-1}(1-x^2)x^2(1-q)\right)>0, ∂ q ∂ ϕ ( q , x ) = ( g ( q , x ) ) 3/2 1 ( γ K 1 − 1 K 1 ( 1 − x 2 ) x 2 ( 1 − q ) ) > 0 ,
and
c 1 = ( K 1 − 1 ) e − ϕ ( q , x ) ⇒ log ( c 1 ) = log ( K 1 − 1 ) − ϕ ( q , x ) ⇒ ∂ c 1 ∂ δ b 1 c 1 = − ∂ ϕ ( q , x ) ∂ q ∂ q ∂ δ b ⇒ ∂ c 1 ∂ δ b = − c 1 ∂ ϕ ( q , x ) ∂ q ∂ q ∂ δ b > 0 , c 2 = K 1 1 − q q e − ϕ ( q , x ) ⇒ ∂ c 2 ∂ δ b 1 c 2 = ( − 1 1 − q − 1 q − ∂ ϕ ( q , x ) ∂ q ) ∂ q ∂ δ b ⇒ ∂ c 2 ∂ δ b = − c 2 ( 1 1 − q + 1 q + ∂ ϕ ( q , x ) ∂ q ) ∂ q ∂ δ b > 0. \begin{aligned}
c_1&=(K_1-1)e^{-\phi(q,x)} &&\Rightarrow\quad\log(c_1)=\log(K_1-1)-\phi(q,x)\\
&&&\Rightarrow\quad\frac{\partial c_1}{\partial\delta_b}\frac{1}{c_1}=-\frac{\partial\phi(q,x)}{\partial q}\frac{\partial q}{\partial\delta_b}\\
&&&\Rightarrow\quad\frac{\partial c_1}{\partial\delta_b}=-c_1\frac{\partial\phi(q,x)}{\partial q}\frac{\partial q}{\partial\delta_b}>0,\\
c_2&=K_1\frac{1-q}{q}e^{-\phi(q,x)} &&\Rightarrow\quad\frac{\partial c_2}{\partial\delta_b}\frac{1}{c_2}=\left(-\frac{1}{1-q}-\frac{1}{q}-\frac{\partial\phi(q,x)}{\partial q}\right)\frac{\partial q}{\partial\delta_b}\\
&&&\Rightarrow\quad\frac{\partial c_2}{\partial\delta_b}=-c_2\left(\frac{1}{1-q}+\frac{1}{q}+\frac{\partial\phi(q,x)}{\partial q}\right)\frac{\partial q}{\partial\delta_b}>0.
\end{aligned} c 1 c 2 = ( K 1 − 1 ) e − ϕ ( q , x ) = K 1 q 1 − q e − ϕ ( q , x ) ⇒ log ( c 1 ) = log ( K 1 − 1 ) − ϕ ( q , x ) ⇒ ∂ δ b ∂ c 1 c 1 1 = − ∂ q ∂ ϕ ( q , x ) ∂ δ b ∂ q ⇒ ∂ δ b ∂ c 1 = − c 1 ∂ q ∂ ϕ ( q , x ) ∂ δ b ∂ q > 0 , ⇒ ∂ δ b ∂ c 2 c 2 1 = ( − 1 − q 1 − q 1 − ∂ q ∂ ϕ ( q , x ) ) ∂ δ b ∂ q ⇒ ∂ δ b ∂ c 2 = − c 2 ( 1 − q 1 + q 1 + ∂ q ∂ ϕ ( q , x ) ) ∂ δ b ∂ q > 0.
one can deduce that
∂ f ^ c e o s ( 1 ) ( x , δ b ; γ , K , K 1 ) ∂ δ b = 1 1 + c 1 + c 2 ( ∂ c 1 ∂ δ b + ∂ c 2 ∂ δ b ) > 0 , \frac{\partial\widehat{f}_{\mathrm{ceos}}^{(1)}(x,\delta_b;\gamma,K,K_1)}{\partial\delta_b}
=\frac{1}{1+c_1+c_2}\left(\frac{\partial c_1}{\partial\delta_b}+\frac{\partial c_2}{\partial\delta_b}\right)>0, ∂ δ b ∂ f ceos ( 1 ) ( x , δ b ; γ , K , K 1 ) = 1 + c 1 + c 2 1 ( ∂ δ b ∂ c 1 + ∂ δ b ∂ c 2 ) > 0 ,
which completes the proof. ■
Lemma S.14 Given γ > 0 \gamma>0 γ > 0 , K > K 1 > 1 K>K_1>1 K > K 1 > 1 , δ b ∈ R \delta_b\in\mathbb{R} δ b ∈ R , and x ∈ ( 0 , 1 ) x\in(0,1) x ∈ ( 0 , 1 ) , Eqs. Eqs. (S.111, S.120, S.121), i.e.,
c 3 2 = ( c 1 K 1 − 1 + c 2 K 1 ) 2 − [ ( c 1 K 1 − 1 + c 2 K 1 ) c 1 K 1 − 1 + c 1 K 1 − 1 c 2 K 1 ] x 2 c_3^2=\left(\frac{c_1}{K_1-1}+\frac{c_2}{K_1}\right)^2-\left[\left(\frac{c_1}{K_1-1}+\frac{c_2}{K_1}\right)\frac{c_1}{K_1-1}+\frac{c_1}{K_1-1}\frac{c_2}{K_1}\right]x^2 c 3 2 = ( K 1 − 1 c 1 + K 1 c 2 ) 2 − [ ( K 1 − 1 c 1 + K 1 c 2 ) K 1 − 1 c 1 + K 1 − 1 c 1 K 1 c 2 ] x 2 log ( c 1 K 1 − 1 ) = γ c 3 K 1 K 1 − 1 ( c 1 K 1 − 1 + c 2 K 1 ) ( x 2 − 1 ) \log\left(\frac{c_1}{K_1-1}\right)=\frac{\gamma}{c_3}\frac{K_1}{K_1-1}\left(\frac{c_1}{K_1-1}+\frac{c_2}{K_1}\right)(x^2-1) log ( K 1 − 1 c 1 ) = c 3 γ K 1 − 1 K 1 ( K 1 − 1 c 1 + K 1 c 2 ) ( x 2 − 1 ) log ( c 2 K − K 1 ) = − γ x − ( c 1 K 1 − 1 + c 2 K 1 ) γ c 3 + c 1 K 1 − 1 γ c 3 x 2 + δ b , \log\left(\frac{c_2}{K-K_1}\right)=-\gamma x-\left(\frac{c_1}{K_1-1}+\frac{c_2}{K_1}\right)\frac{\gamma}{c_3}+\frac{c_1}{K_1-1}\frac{\gamma}{c_3}x^2+\delta_b, log ( K − K 1 c 2 ) = − γ x − ( K 1 − 1 c 1 + K 1 c 2 ) c 3 γ + K 1 − 1 c 1 c 3 γ x 2 + δ b , determine a unique set of values for c 1 , c 2 , c 3 c_1,c_2,c_3 c 1 , c 2 , c 3 .
Proof Denote
u = c 1 K 1 − 1 , v = c 2 K 1 , u=\frac{c_1}{K_1-1},\qquad v=\frac{c_2}{K_1}, u = K 1 − 1 c 1 , v = K 1 c 2 ,
then u > 0 , v > 0 , δ b ∈ R , x ∈ ( 0 , 1 ) u>0,v>0,\delta_b\in\mathbb{R},x\in(0,1) u > 0 , v > 0 , δ b ∈ R , x ∈ ( 0 , 1 ) and the set of equations evolves into
c 3 2 = ( u + v ) 2 − ( u 2 + 2 u v ) x 2 , (145) c_3^2=(u+v)^2-(u^2+2uv)x^2, \tag*{(145)} c 3 2 = ( u + v ) 2 − ( u 2 + 2 uv ) x 2 , (145)
log ( u ) = γ c 3 K 1 K 1 − 1 ( u + v ) ( x 2 − 1 ) , (146) \log(u)=\frac{\gamma}{c_3}\frac{K_1}{K_1-1}(u+v)(x^2-1), \tag*{(146)} log ( u ) = c 3 γ K 1 − 1 K 1 ( u + v ) ( x 2 − 1 ) , (146)
log ( K 1 K − K 1 v ) = − γ x − γ c 3 ( u + v ) + γ c 3 u x 2 + δ b . (147) \log\left(\frac{K_1}{K-K_1}v\right)=-\gamma x-\frac{\gamma}{c_3}(u+v)+\frac{\gamma}{c_3}ux^2+\delta_b. \tag*{(147)} log ( K − K 1 K 1 v ) = − γ x − c 3 γ ( u + v ) + c 3 γ u x 2 + δ b . (147)
Let
q = u u + v ∈ ( 0 , 1 ) , s = u + v ∈ R , q=\frac{u}{u+v}\in(0,1),\qquad s=u+v\in\mathbb{R}, q = u + v u ∈ ( 0 , 1 ) , s = u + v ∈ R ,
then
u = q s , v = ( 1 − q ) s = 1 − q q u , u = qs,\quad v = (1-q)s = \frac{1-q}{q}u, u = q s , v = ( 1 − q ) s = q 1 − q u ,
and for c 3 c_3 c 3 , according to Eq. (S.122),
c 3 2 = s 2 ( 1 − 2 x 2 q + x 2 q 2 ) . c_3^2 = s^2(1-2x^2q+x^2q^2). c 3 2 = s 2 ( 1 − 2 x 2 q + x 2 q 2 ) .
Denote
g ( q ) = 1 − 2 x 2 q + x 2 q 2 , g(q) = 1-2x^2q+x^2q^2, g ( q ) = 1 − 2 x 2 q + x 2 q 2 ,
then as x ∈ ( 0 , 1 ) , q ∈ ( 0 , 1 ) x \in(0,1), q \in(0,1) x ∈ ( 0 , 1 ) , q ∈ ( 0 , 1 ) , one can deduce that g ( q ) > 0 g(q)>0 g ( q ) > 0 . Therefore,
c 3 = s g ( q ) . c_3 = s\sqrt{g(q)}. c 3 = s g ( q ) .
According to Eq. (S.123),
log ( u ) = γ s g ( q ) K 1 K 1 − 1 s ( x 2 − 1 ) = γ g ( q ) K 1 K 1 − 1 ( x 2 − 1 ) ⇒ u = exp ( γ g ( q ) K 1 K 1 − 1 ( x 2 − 1 ) ) . \begin{aligned}
\log(u)=\frac{\gamma}{s\sqrt{g(q)}}\frac{K_1}{K_1-1}s(x^2-1)=\frac{\gamma}{\sqrt{g(q)}}\frac{K_1}{K_1-1}(x^2-1) \\
&\Rightarrow\quad u=\exp\left(\frac{\gamma}{\sqrt{g(q)}}\frac{K_1}{K_1-1}(x^2-1)\right).
\end{aligned} log ( u ) = s g ( q ) γ K 1 − 1 K 1 s ( x 2 − 1 ) = g ( q ) γ K 1 − 1 K 1 ( x 2 − 1 ) ⇒ u = exp ( g ( q ) γ K 1 − 1 K 1 ( x 2 − 1 ) ) .
According to Eq. (S.124)
log ( K 1 K − K 1 v ) = δ b − γ x − γ c 3 ( s − u x 2 ) = δ b − γ x − γ s g ( q ) ( s − q s x 2 ) = δ b − γ x − γ g ( q ) ( 1 − q x 2 ) . \begin{aligned}
\log\left(\frac{K_1}{K-K_1}v\right)&=\delta_b-\gamma x-\frac{\gamma}{c_3}(s-ux^2)\\
&=\delta_b-\gamma x-\frac{\gamma}{s\sqrt{g(q)}}(s-qsx^2)\\
&=\delta_b-\gamma x-\frac{\gamma}{\sqrt{g(q)}}(1-qx^2).
\end{aligned} log ( K − K 1 K 1 v ) = δ b − γ x − c 3 γ ( s − u x 2 ) = δ b − γ x − s g ( q ) γ ( s − q s x 2 ) = δ b − γ x − g ( q ) γ ( 1 − q x 2 ) .
As v = ( 1 − q ) s = 1 − q q u v=(1-q)s=\frac{1-q}{q}u v = ( 1 − q ) s = q 1 − q u ,
log ( K 1 K − K 1 1 − q q u ) = δ b − γ x − γ g ( q ) ( 1 − q x 2 ) ⇒ log 1 − q q ⏟ α ( q ) = δ b − γ x − γ g ( q ) ( K 1 K 1 − 1 ( x 2 − 1 ) + 1 − q x 2 ) − log ( K 1 K − K 1 ) ⏟ β ( q ) . (148) \begin{aligned}
\log\left(\frac{K_1}{K-K_1}\frac{1-q}{q}u\right)=\delta_b-\gamma x-\frac{\gamma}{\sqrt{g(q)}}(1-qx^2) \\
&\Rightarrow\quad\underbrace{\log\frac{1-q}{q}}_{\alpha(q)}=\underbrace{\delta_b-\gamma x-\frac{\gamma}{\sqrt{g(q)}}\left(\frac{K_1}{K_1-1}(x^2-1)+1-qx^2\right)-\log\left(\frac{K_1}{K-K_1}\right)}_{\beta(q)}. \tag*{(148)}
\end{aligned} log ( K − K 1 K 1 q 1 − q u ) = δ b − γ x − g ( q ) γ ( 1 − q x 2 ) ⇒ α ( q ) log q 1 − q = β ( q ) δ b − γ x − g ( q ) γ ( K 1 − 1 K 1 ( x 2 − 1 ) + 1 − q x 2 ) − log ( K − K 1 K 1 ) . (148)
When q → 0 + q\to0^+ q → 0 + ,
α ( q ) → + ∞ , β ( q ) → δ b − γ x − γ ( K 1 K 1 − 1 ( x 2 − 1 ) + 1 ) − log ( K 1 K − K 1 ) , \alpha(q)\to+\infty,\quad\beta(q)\to\delta_b-\gamma x-\gamma\left(\frac{K_1}{K_1-1}(x^2-1)+1\right)-\log\left(\frac{K_1}{K-K_1}\right), α ( q ) → + ∞ , β ( q ) → δ b − γ x − γ ( K 1 − 1 K 1 ( x 2 − 1 ) + 1 ) − log ( K − K 1 K 1 ) ,
and when q → 1 − q \to1^{-} q → 1 − ,
α ( q ) → − ∞ , β ( q ) → δ b − γ x + γ 1 − x 2 K 1 − 1 − log ( K 1 K − K 1 ) , \alpha(q) \to-\infty,\qquad\beta(q) \to\delta_b-\gamma x+\gamma\frac{\sqrt{1-x^2}}{\sqrt{K_1-1}}-\log\left(\frac{K_1}{K-K_1}\right), α ( q ) → − ∞ , β ( q ) → δ b − γ x + γ K 1 − 1 1 − x 2 − log ( K − K 1 K 1 ) ,
which indicate that α ( q ) \alpha(q) α ( q ) and β ( q ) \beta(q) β ( q ) must intersect. Meanwhile
d α ( q ) d q = − 1 1 − q 1 q < 0 , ∀ q ∈ ( 0 , 1 ) , \frac{\mathrm{d}\alpha(q)}{\mathrm{d}q}=-\frac{1}{1-q}\frac{1}{q}<0,\qquad\forall q\in(0,1), d q d α ( q ) = − 1 − q 1 q 1 < 0 , ∀ q ∈ ( 0 , 1 ) ,
d β ( q ) d q = − γ − x 2 g ( q ) − ( K 1 K 1 − 1 ( x 2 − 1 ) + 1 − q x 2 ) d ( g ( q ) ) / d q g ( q ) = γ x 2 ( 1 − x 2 ) ( K 1 − q ) ( K 1 − 1 ) ( g ( q ) ) 3 / 2 > 0 , ∀ q ∈ ( 0 , 1 ) . \begin{aligned}
\frac{\mathrm{d}\beta(q)}{\mathrm{d}q}
=-\gamma\frac{-x^2\sqrt{g(q)}-\left(\frac{K_1}{K_1-1}(x^2-1)+1-qx^2\right)\mathrm{d}\left(\sqrt{g(q)}\right)/\mathrm{d}q}{g(q)} \\
&=\frac{\gamma x^2(1-x^2)(K_1-q)}{(K_1-1)(g(q))^{3/2}}>0,\qquad\forall q\in(0,1).
\end{aligned} d q d β ( q ) = − γ g ( q ) − x 2 g ( q ) − ( K 1 − 1 K 1 ( x 2 − 1 ) + 1 − q x 2 ) d ( g ( q ) ) / d q = ( K 1 − 1 ) ( g ( q ) ) 3/2 γ x 2 ( 1 − x 2 ) ( K 1 − q ) > 0 , ∀ q ∈ ( 0 , 1 ) .
Therefore, there exists only one q ∗ ∈ ( 0 , 1 ) q^*\in(0,1) q ∗ ∈ ( 0 , 1 ) such that α ( q ∗ ) = β ( q ∗ ) \alpha(q^*)=\beta(q^*) α ( q ∗ ) = β ( q ∗ ) , and
u = exp ( γ g ( q ∗ ) K 1 K 1 − 1 ( x 2 − 1 ) ) ⇒ c 1 = ( K 1 − 1 ) exp ( γ g ( q ∗ ) K 1 K 1 − 1 ( x 2 − 1 ) ) , (149) u=\exp\left(\frac{\gamma}{\sqrt{g(q^*)}}\frac{K_1}{K_1-1}(x^2-1)\right)\Rightarrow c_1=(K_1-1)\exp\left(\frac{\gamma}{\sqrt{g(q^*)}}\frac{K_1}{K_1-1}(x^2-1)\right), \tag*{(149)} u = exp ( g ( q ∗ ) γ K 1 − 1 K 1 ( x 2 − 1 ) ) ⇒ c 1 = ( K 1 − 1 ) exp ( g ( q ∗ ) γ K 1 − 1 K 1 ( x 2 − 1 ) ) , (149)
v = 1 − q ∗ q ∗ u ⇒ c 2 = K 1 1 − q ∗ q ∗ exp ( γ g ( q ∗ ) K 1 K 1 − 1 ( x 2 − 1 ) ) , (150) v=\frac{1-q^*}{q^*}u\Rightarrow c_2=K_1\frac{1-q^*}{q^*}\exp\left(\frac{\gamma}{\sqrt{g(q^*)}}\frac{K_1}{K_1-1}(x^2-1)\right), \tag*{(150)} v = q ∗ 1 − q ∗ u ⇒ c 2 = K 1 q ∗ 1 − q ∗ exp ( g ( q ∗ ) γ K 1 − 1 K 1 ( x 2 − 1 ) ) , (150)
c 3 = ( c 1 K 1 − 1 + c 2 K 1 ) g ( q ∗ ) = 1 q ∗ g ( q ∗ ) exp ( γ g ( q ∗ ) K 1 K 1 − 1 ( x 2 − 1 ) ) , (151) \begin{aligned}
c_3=\left(\frac{c_1}{K_1-1}+\frac{c_2}{K_1}\right)\sqrt{g(q^*)} \\
&=\frac{1}{q^*}\sqrt{g(q^*)}\exp\left(\frac{\gamma}{\sqrt{g(q^*)}}\frac{K_1}{K_1-1}(x^2-1)\right), \tag*{(151)}
\end{aligned} c 3 = ( K 1 − 1 c 1 + K 1 c 2 ) g ( q ∗ ) = q ∗ 1 g ( q ∗ ) exp ( g ( q ∗ ) γ K 1 − 1 K 1 ( x 2 − 1 ) ) , (151)
which completes the proof. ■
Lemma S.15 For any X ( k ) ∈ D X^{(k)}\in\mathcal{D} X ( k ) ∈ D with any c 1 , c 2 > 0 c_1,c_2>0 c 1 , c 2 > 0 and γ > 0 \gamma>0 γ > 0 , the CE loss L c e ( X ( k ) ) L_{\mathrm{ce}}(X^{(k)}) L ce ( X ( k ) ) defined in Eq. (2) is lower bounded by
L c e ( X ( k ) ) ≥ c 1 1 + c 1 + c 2 ∑ j = 1 j ≠ k K 1 γ w j T x ( k ) − b j − γ w k T x ( k ) + b k K 1 − 1 L_{\mathrm{ce}}(X^{(k)})\geq\frac{c_1}{1+c_1+c_2}\sum_{\substack{j=1\\j\ne k}}^{K_1}\frac{\gamma\mathbf{w}_j^{\mathsf{T}}x^{(k)}-b_j-\gamma\mathbf{w}_k^{\mathsf{T}}x^{(k)}+b_k}{K_1-1} L ce ( X ( k ) ) ≥ 1 + c 1 + c 2 c 1 j = 1 j = k ∑ K 1 K 1 − 1 γ w j T x ( k ) − b j − γ w k T x ( k ) + b k + c 2 1 + c 1 + c 2 ∑ j = K 1 + 1 K γ w j T x ( k ) − b j − γ w k T x ( k ) + b k K − K 1 + C , (152) +\frac{c_2}{1+c_1+c_2}\sum_{j=K_1+1}^{K}\frac{\gamma\mathbf{w}_j^{\mathsf{T}}x^{(k)}-b_j-\gamma\mathbf{w}_k^{\mathsf{T}}x^{(k)}+b_k}{K-K_1}+C, \tag*{(152)} + 1 + c 1 + c 2 c 2 j = K 1 + 1 ∑ K K − K 1 γ w j T x ( k ) − b j − γ w k T x ( k ) + b k + C , (152) where
C = 1 1 + c 1 + c 2 log ( 1 + c 1 + c 2 ) + c 1 1 + c 1 + c 2 log ( 1 + c 1 + c 2 c 1 ( K 1 − 1 ) ) C=\frac{1}{1+c_1+c_2}\log(1+c_1+c_2)+\frac{c_1}{1+c_1+c_2}\log\left(\frac{1+c_1+c_2}{c_1}(K_1-1)\right) C = 1 + c 1 + c 2 1 log ( 1 + c 1 + c 2 ) + 1 + c 1 + c 2 c 1 log ( c 1 1 + c 1 + c 2 ( K 1 − 1 ) ) + c 2 1 + c 1 + c 2 log ( 1 + c 1 + c 2 c 2 ( K − K 1 ) ) . (153) +\frac{c_2}{1+c_1+c_2}\log\left(\frac{1+c_1+c_2}{c_2}(K-K_1)\right). \tag*{(153)} + 1 + c 1 + c 2 c 2 log ( c 2 1 + c 1 + c 2 ( K − K 1 ) ) . (153)
The inequality becomes an equality if and only if
γ w j ⊤ x ( k ) − b j = γ w ℓ ⊤ x ( k ) − b ℓ , ∀ j , ℓ ≠ k ∈ [ K 1 ] , (154) \gamma\mathbf{w}_j^{\top}\mathbf{x}^{(k)} - b_j = \gamma\mathbf{w}_{\ell}^{\top}\mathbf{x}^{(k)} - b_{\ell}, \quad\forall j,\ell\ne k \in[K_1], \tag*{(154)} γ w j ⊤ x ( k ) − b j = γ w ℓ ⊤ x ( k ) − b ℓ , ∀ j , ℓ = k ∈ [ K 1 ] , (154)
γ w j ⊤ x ( k ) − b j = γ w ℓ ⊤ x ( k ) − b ℓ , ∀ k ∈ [ K 1 ] , K 1 < j , ℓ ≤ K , (155) \gamma\mathbf{w}_j^{\top}\mathbf{x}^{(k)} - b_j = \gamma\mathbf{w}_{\ell}^{\top}\mathbf{x}^{(k)} - b_{\ell}, \quad\forall k \in[K_1],\ K_1 < j,\ell\le K, \tag*{(155)} γ w j ⊤ x ( k ) − b j = γ w ℓ ⊤ x ( k ) − b ℓ , ∀ k ∈ [ K 1 ] , K 1 < j , ℓ ≤ K , (155)
and
c 1 = ( K 1 − 1 ) exp ( ∑ j = 1 j ≠ k K 1 γ w j ⊤ x ( k ) − b j − γ w k ⊤ x ( k ) + b k K 1 − 1 ) , (156) c_1 = (K_1 - 1)\exp\left(\sum_{\substack{j=1\\j\ne k}}^{K_1}\frac{\gamma\mathbf{w}_j^{\top}\mathbf{x}^{(k)}-b_j-\gamma\mathbf{w}_k^{\top}\mathbf{x}^{(k)}+b_k}{K_1-1}\right), \tag*{(156)} c 1 = ( K 1 − 1 ) exp j = 1 j = k ∑ K 1 K 1 − 1 γ w j ⊤ x ( k ) − b j − γ w k ⊤ x ( k ) + b k , (156)
c 2 = ( K − K 1 ) exp ( ∑ j = K 1 + 1 K γ w j ⊤ x ( k ) − b j − γ w k ⊤ x ( k ) + b k K − K 1 ) . (157) c_2 = (K-K_1)\exp\left(\sum_{j=K_1+1}^{K}\frac{\gamma\mathbf{w}_j^{\top}\mathbf{x}^{(k)}-b_j-\gamma\mathbf{w}_k^{\top}\mathbf{x}^{(k)}+b_k}{K-K_1}\right). \tag*{(157)} c 2 = ( K − K 1 ) exp j = K 1 + 1 ∑ K K − K 1 γ w j ⊤ x ( k ) − b j − γ w k ⊤ x ( k ) + b k . (157)
Proof. According to Jensen’s inequality in Lemma S.3, the CE loss L c e ( X ( k ) ) L_{\mathrm{ce}}(\mathbf{X}^{(k)}) L ce ( X ( k ) ) can be lower bounded,
L c e ( X ( k ) ) = log ( 1 + ∑ j = 1 j ≠ k K exp ( γ w j ⊤ x ( k ) − b j ) exp ( γ w k ⊤ x ( k ) − b k ) ) = log ( 1 + ( K 1 − 1 ) ∑ j = 1 j ≠ k K 1 exp ( γ w j ⊤ x ( k ) − b j ) ( K 1 − 1 ) exp ( γ w k ⊤ x ( k ) − b k ) + ( K − K 1 ) ∑ j = K 1 + 1 K exp ( γ w j ⊤ x ( k ) − b j ) ( K − K 1 ) exp ( γ w k ⊤ x ( k ) − b k ) ) ≥ log ( 1 + ( K 1 − 1 ) exp ( ∑ j = 1 j ≠ k K 1 γ w j ⊤ x ( k ) − b j − γ w k ⊤ x ( k ) + b k K 1 − 1 ) + ( K − K 1 ) ∑ j = K 1 + 1 K exp ( γ w j ⊤ x ( k ) − b j ) ( K − K 1 ) exp ( γ w k ⊤ x ( k ) − b k ) ) ≥ log ( 1 + ( K 1 − 1 ) exp ( ∑ j = 1 j ≠ k K 1 γ w j ⊤ x ( k ) − b j − γ w k ⊤ x ( k ) + b k K 1 − 1 ) + ( K − K 1 ) exp ( ∑ j = K 1 + 1 K γ w j ⊤ x ( k ) − b j − γ w k ⊤ x ( k ) + b k K − K 1 ) ) . \begin{aligned}
L_{\mathrm{ce}}(\mathbf{X}^{(k)}) &= \log\left(1+\sum_{\substack{j=1\\j\ne k}}^{K}\frac{\exp\left(\gamma\mathbf{w}_j^{\top}\mathbf{x}^{(k)}-b_j\right)}{\exp\left(\gamma\mathbf{w}_k^{\top}\mathbf{x}^{(k)}-b_k\right)}\right)\\
&= \log\left(1+(K_1-1)\sum_{\substack{j=1\\j\ne k}}^{K_1}\frac{\exp\left(\gamma\mathbf{w}_j^{\top}\mathbf{x}^{(k)}-b_j\right)}{(K_1-1)\exp\left(\gamma\mathbf{w}_k^{\top}\mathbf{x}^{(k)}-b_k\right)}+(K-K_1)\sum_{j=K_1+1}^{K}\frac{\exp\left(\gamma\mathbf{w}_j^{\top}\mathbf{x}^{(k)}-b_j\right)}{(K-K_1)\exp\left(\gamma\mathbf{w}_k^{\top}\mathbf{x}^{(k)}-b_k\right)}\right)\\
&\ge\log\left(1+(K_1-1)\exp\left(\sum_{\substack{j=1\\j\ne k}}^{K_1}\frac{\gamma\mathbf{w}_j^{\top}\mathbf{x}^{(k)}-b_j-\gamma\mathbf{w}_k^{\top}\mathbf{x}^{(k)}+b_k}{K_1-1}\right)+(K-K_1)\sum_{j=K_1+1}^{K}\frac{\exp\left(\gamma\mathbf{w}_j^{\top}\mathbf{x}^{(k)}-b_j\right)}{(K-K_1)\exp\left(\gamma\mathbf{w}_k^{\top}\mathbf{x}^{(k)}-b_k\right)}\right)\\
&\ge\log\left(1+(K_1-1)\exp\left(\sum_{\substack{j=1\\j\ne k}}^{K_1}\frac{\gamma\mathbf{w}_j^{\top}\mathbf{x}^{(k)}-b_j-\gamma\mathbf{w}_k^{\top}\mathbf{x}^{(k)}+b_k}{K_1-1}\right)+(K-K_1)\exp\left(\sum_{j=K_1+1}^{K}\frac{\gamma\mathbf{w}_j^{\top}\mathbf{x}^{(k)}-b_j-\gamma\mathbf{w}_k^{\top}\mathbf{x}^{(k)}+b_k}{K-K_1}\right)\right).
\end{aligned} L ce ( X ( k ) ) = log 1 + j = 1 j = k ∑ K exp ( γ w k ⊤ x ( k ) − b k ) exp ( γ w j ⊤ x ( k ) − b j ) = log 1 + ( K 1 − 1 ) j = 1 j = k ∑ K 1 ( K 1 − 1 ) exp ( γ w k ⊤ x ( k ) − b k ) exp ( γ w j ⊤ x ( k ) − b j ) + ( K − K 1 ) j = K 1 + 1 ∑ K ( K − K 1 ) exp ( γ w k ⊤ x ( k ) − b k ) exp ( γ w j ⊤ x ( k ) − b j ) ≥ log 1 + ( K 1 − 1 ) exp j = 1 j = k ∑ K 1 K 1 − 1 γ w j ⊤ x ( k ) − b j − γ w k ⊤ x ( k ) + b k + ( K − K 1 ) j = K 1 + 1 ∑ K ( K − K 1 ) exp ( γ w k ⊤ x ( k ) − b k ) exp ( γ w j ⊤ x ( k ) − b j ) ≥ log 1 + ( K 1 − 1 ) exp j = 1 j = k ∑ K 1 K 1 − 1 γ w j ⊤ x ( k ) − b j − γ w k ⊤ x ( k ) + b k + ( K − K 1 ) exp j = K 1 + 1 ∑ K K − K 1 γ w j ⊤ x ( k ) − b j − γ w k ⊤ x ( k ) + b k .
where the first inequality becomes an equality if and only if
γ w j ⊤ x ( k ) − b j = γ w ℓ ⊤ x ( k ) − b ℓ , ∀ j , ℓ ≠ k ∈ [ K 1 ] , \gamma\mathbf{w}_j^{\top}\mathbf{x}^{(k)}-b_j=\gamma\mathbf{w}_{\ell}^{\top}\mathbf{x}^{(k)}-b_{\ell},\quad\forall j,\ell\ne k\in[K_1], γ w j ⊤ x ( k ) − b j = γ w ℓ ⊤ x ( k ) − b ℓ , ∀ j , ℓ = k ∈ [ K 1 ] ,
and the second inequality becomes an equality if and only if
γ w j ⊤ x ( k ) − b j = γ w ℓ ⊤ x ( k ) − b ℓ , ∀ k ∈ [ K 1 ] , K 1 < j , ℓ ≤ K . \gamma\mathbf{w}_j^{\top}\mathbf{x}^{(k)}-b_j=\gamma\mathbf{w}_{\ell}^{\top}\mathbf{x}^{(k)}-b_{\ell},\quad\forall k\in[K_1],\ K_1<j,\ell\le K. γ w j ⊤ x ( k ) − b j = γ w ℓ ⊤ x ( k ) − b ℓ , ∀ k ∈ [ K 1 ] , K 1 < j , ℓ ≤ K .
Then, by the concavity of the function log ( 1 + e x ) \log(1+e^x) log ( 1 + e x ) , for any c 1 , c 2 > 0 c_1,c_2>0 c 1 , c 2 > 0 , we get
L c e ( X ( k ) ) ≥ log [ 1 + ( K 1 − 1 ) exp ( ∑ j = 1 j ≠ k K 1 γ w j T x ( k ) − b j − γ w k T x ( k ) + b k K 1 − 1 ) + ( K − K 1 ) exp ( ∑ j = K 1 + 1 K γ w j T x ( k ) − b j − γ w k T x ( k ) + b k K − K 1 ) ] = log [ 1 1 + c 1 + c 2 1 + c 1 + c 2 1 + c 1 1 + c 1 + c 2 1 + c 1 + c 2 c 1 ( K 1 − 1 ) exp ( ∑ j = 1 j ≠ k K 1 γ w j T x ( k ) − b j − γ w k T x ( k ) + b k K 1 − 1 ) + c 2 1 + c 1 + c 2 1 + c 1 + c 2 c 2 ( K − K 1 ) exp ( ∑ j = K 1 + 1 K γ w j T x ( k ) − b j − γ w k T x ( k ) + b k K − K 1 ) ] ≥ 1 1 + c 1 + c 2 log ( 1 + c 1 + c 2 1 ) + c 1 1 + c 1 + c 2 log [ 1 + c 1 + c 2 c 1 ( K 1 − 1 ) exp ( ∑ j = 1 j ≠ k K 1 γ w j T x ( k ) − b j − γ w k T x ( k ) + b k K 1 − 1 ) ] + c 2 1 + c 1 + c 2 log [ 1 + c 1 + c 2 c 2 ( K − K 1 ) exp ( ∑ j = K 1 + 1 K γ w j T x ( k ) − b j − γ w k T x ( k ) + b k K − K 1 ) ] = c 1 1 + c 1 + c 2 ∑ j = 1 j ≠ k K 1 γ w j T x ( k ) − b j − γ w k T x ( k ) + b k K 1 − 1 + c 2 1 + c 1 + c 2 ∑ j = K 1 + 1 K γ w j T x ( k ) − b j − γ w k T x ( k ) + b k K − K 1 + C , \begin{aligned}
L_{\mathrm{ce}}(\mathbf{X}^{(k)})\ge{}&\log\left[1+(K_1-1)\exp\left(\sum_{\substack{j=1\\j\ne k}}^{K_1}\frac{\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}-b_j-\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)}+b_k}{K_1-1}\right)\right.\\
&\left.\qquad+(K-K_1)\exp\left(\sum_{j=K_1+1}^{K}\frac{\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}-b_j-\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)}+b_k}{K-K_1}\right)\right]\\
={}&\log\left[\frac{1}{1+c_1+c_2}\frac{1+c_1+c_2}{1}\right.\\
&\qquad+\frac{c_1}{1+c_1+c_2}\frac{1+c_1+c_2}{c_1}(K_1-1)\exp\left(\sum_{\substack{j=1\\j\ne k}}^{K_1}\frac{\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}-b_j-\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)}+b_k}{K_1-1}\right)\\
&\left.\qquad+\frac{c_2}{1+c_1+c_2}\frac{1+c_1+c_2}{c_2}(K-K_1)\exp\left(\sum_{j=K_1+1}^{K}\frac{\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}-b_j-\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)}+b_k}{K-K_1}\right)\right]\\
\ge{}&\frac{1}{1+c_1+c_2}\log\left(\frac{1+c_1+c_2}{1}\right)\\
&+\frac{c_1}{1+c_1+c_2}\log\left[\frac{1+c_1+c_2}{c_1}(K_1-1)\exp\left(\sum_{\substack{j=1\\j\ne k}}^{K_1}\frac{\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}-b_j-\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)}+b_k}{K_1-1}\right)\right]\\
&+\frac{c_2}{1+c_1+c_2}\log\left[\frac{1+c_1+c_2}{c_2}(K-K_1)\exp\left(\sum_{j=K_1+1}^{K}\frac{\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}-b_j-\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)}+b_k}{K-K_1}\right)\right]\\
={}&\frac{c_1}{1+c_1+c_2}\sum_{\substack{j=1\\j\ne k}}^{K_1}\frac{\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}-b_j-\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)}+b_k}{K_1-1}\\
&+\frac{c_2}{1+c_1+c_2}\sum_{j=K_1+1}^{K}\frac{\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}-b_j-\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)}+b_k}{K-K_1}+C,
\end{aligned} L ce ( X ( k ) ) ≥ = ≥ = log 1 + ( K 1 − 1 ) exp j = 1 j = k ∑ K 1 K 1 − 1 γ w j T x ( k ) − b j − γ w k T x ( k ) + b k + ( K − K 1 ) exp j = K 1 + 1 ∑ K K − K 1 γ w j T x ( k ) − b j − γ w k T x ( k ) + b k log [ 1 + c 1 + c 2 1 1 1 + c 1 + c 2 + 1 + c 1 + c 2 c 1 c 1 1 + c 1 + c 2 ( K 1 − 1 ) exp j = 1 j = k ∑ K 1 K 1 − 1 γ w j T x ( k ) − b j − γ w k T x ( k ) + b k + 1 + c 1 + c 2 c 2 c 2 1 + c 1 + c 2 ( K − K 1 ) exp j = K 1 + 1 ∑ K K − K 1 γ w j T x ( k ) − b j − γ w k T x ( k ) + b k 1 + c 1 + c 2 1 log ( 1 1 + c 1 + c 2 ) + 1 + c 1 + c 2 c 1 log c 1 1 + c 1 + c 2 ( K 1 − 1 ) exp j = 1 j = k ∑ K 1 K 1 − 1 γ w j T x ( k ) − b j − γ w k T x ( k ) + b k + 1 + c 1 + c 2 c 2 log c 2 1 + c 1 + c 2 ( K − K 1 ) exp j = K 1 + 1 ∑ K K − K 1 γ w j T x ( k ) − b j − γ w k T x ( k ) + b k 1 + c 1 + c 2 c 1 j = 1 j = k ∑ K 1 K 1 − 1 γ w j T x ( k ) − b j − γ w k T x ( k ) + b k + 1 + c 1 + c 2 c 2 j = K 1 + 1 ∑ K K − K 1 γ w j T x ( k ) − b j − γ w k T x ( k ) + b k + C ,
where
C = 1 1 + c 1 + c 2 log ( 1 + c 1 + c 2 ) + c 1 1 + c 1 + c 2 log ( 1 + c 1 + c 2 c 1 ( K 1 − 1 ) ) + c 2 1 + c 1 + c 2 log ( 1 + c 1 + c 2 c 2 ( K − K 1 ) ) . (158) C=\frac{1}{1+c_1+c_2}\log(1+c_1+c_2)+\frac{c_1}{1+c_1+c_2}\log\left(\frac{1+c_1+c_2}{c_1}(K_1-1)\right)+\frac{c_2}{1+c_1+c_2}\log\left(\frac{1+c_1+c_2}{c_2}(K-K_1)\right). \tag*{(158)} C = 1 + c 1 + c 2 1 log ( 1 + c 1 + c 2 ) + 1 + c 1 + c 2 c 1 log ( c 1 1 + c 1 + c 2 ( K 1 − 1 ) ) + 1 + c 1 + c 2 c 2 log ( c 2 1 + c 1 + c 2 ( K − K 1 ) ) . (158)
The second inequality achieves its equality if and only if
1 + c 1 + c 2 1 = 1 + c 1 + c 2 c 1 ( K 1 − 1 ) exp ( ∑ j = 1 j ≠ k K 1 γ w j T x ( k ) − b j − γ w k T x ( k ) + b k K 1 − 1 ) = 1 + c 1 + c 2 c 2 ( K − K 1 ) exp ( ∑ j = K 1 + 1 K γ w j ⊤ x ( k ) − b j − γ w k ⊤ x ( k ) + b k K − K 1 ) , \begin{aligned}
\frac{1+c_1+c_2}{1}=\frac{1+c_1+c_2}{c_1}(K_1-1)\exp\left(\sum_{\substack{j=1\\j\ne k}}^{K_1}\frac{\gamma\mathbf{w}_j^{\mathsf{T}}\mathbf{x}^{(k)}-b_j-\gamma\mathbf{w}_k^{\mathsf{T}}\mathbf{x}^{(k)}+b_k}{K_1-1}\right) \\
&= \frac{1+c_1+c_2}{c_2}(K-K_1)\exp\left(\sum_{j=K_1+1}^{K}\frac{\gamma\mathbf{w}_j^{\top}x^{(k)}-b_j-\gamma\mathbf{w}_k^{\top}x^{(k)}+b_k}{K-K_1}\right),
\end{aligned} 1 1 + c 1 + c 2 = c 1 1 + c 1 + c 2 ( K 1 − 1 ) exp j = 1 j = k ∑ K 1 K 1 − 1 γ w j T x ( k ) − b j − γ w k T x ( k ) + b k = c 2 1 + c 1 + c 2 ( K − K 1 ) exp j = K 1 + 1 ∑ K K − K 1 γ w j ⊤ x ( k ) − b j − γ w k ⊤ x ( k ) + b k ,
which is equivalent to
c 1 = ( K 1 − 1 ) exp ( ∑ j = 1 j ≠ k K 1 γ w j ⊤ x ( k ) − b j − γ w k ⊤ x ( k ) + b k K − 1 ) and c 2 = ( K − K 1 ) exp ( ∑ j = K 1 + 1 K γ w j ⊤ x ( k ) − b j − γ w k ⊤ x ( k ) + b k K − K 1 ) , \begin{aligned}
c_1 &= (K_1-1)\exp\left(\sum_{\substack{j=1 \\ j\ne k}}^{K_1}\frac{\gamma\mathbf{w}_j^{\top}x^{(k)}-b_j-\gamma\mathbf{w}_k^{\top}x^{(k)}+b_k}{K-1}\right) && \text{and}\\
c_2 &= (K-K_1)\exp\left(\sum_{j=K_1+1}^{K}\frac{\gamma\mathbf{w}_j^{\top}x^{(k)}-b_j-\gamma\mathbf{w}_k^{\top}x^{(k)}+b_k}{K-K_1}\right),
\end{aligned} c 1 c 2 = ( K 1 − 1 ) exp j = 1 j = k ∑ K 1 K − 1 γ w j ⊤ x ( k ) − b j − γ w k ⊤ x ( k ) + b k = ( K − K 1 ) exp j = K 1 + 1 ∑ K K − K 1 γ w j ⊤ x ( k ) − b j − γ w k ⊤ x ( k ) + b k , and
as desired.
Theorems in Contrastive Learning
Theorem S.16 Suppose that each class in dataset D \mathcal{D} D contains at least two samples, and that the feature dimension is greater than the number of classes, i.e., n k = ∣ D k ∣ > 0 n_k = |\mathcal{D}_k| > 0 n k = ∣ D k ∣ > 0 for ∀ k ∈ [ K ] \forall k \in[K] ∀ k ∈ [ K ] and d ≥ K − 1 d \ge K - 1 d ≥ K − 1 . On the dataset D \mathcal{D} D , define losses
f s i g m ( F ) = 1 K ∑ k = 1 K 1 n k ∑ X ( k ) ∈ D k L s i g m ( X ( k ) ) , (159) f_{\mathrm{sigm}}(\mathcal{F}) = \frac{1}{K}\sum_{k=1}^{K}\frac{1}{n_k}\sum_{\mathbf{X}^{(k)}\in\mathcal{D}_k}L_{\mathrm{sigm}}(\mathbf{X}^{(k)}), \tag*{(159)} f sigm ( F ) = K 1 k = 1 ∑ K n k 1 X ( k ) ∈ D k ∑ L sigm ( X ( k ) ) , (159) where
L s i g m ( X ( k ) ) = 1 n k ∑ x p ∈ F k log ( 1 + e − γ x p T x ( k ) + b k ) + λ ∑ j = 1 , j ≠ k K 1 n j ∑ x n ∈ F j log ( 1 + e γ x n T x ( k ) − b j ) , (160) L_{\mathrm{sigm}}(\mathbf{X}^{(k)}) = \frac{1}{n_k}\sum_{\mathbf{x}_p\in\mathcal{F}_k}\log\left(1+e^{-\gamma\mathbf{x}_p^{\mathsf{T}}\mathbf{x}^{(k)}+b_k}\right)+\lambda\sum_{\substack{j=1,j\ne k}}^{K}\frac{1}{n_j}\sum_{\mathbf{x}_n\in\mathcal{F}_j}\log\left(1+e^{\gamma\mathbf{x}_n^{\mathsf{T}}\mathbf{x}^{(k)}-b_j}\right), \tag*{(160)} L sigm ( X ( k ) ) = n k 1 x p ∈ F k ∑ log ( 1 + e − γ x p T x ( k ) + b k ) + λ j = 1 , j = k ∑ K n j 1 x n ∈ F j ∑ log ( 1 + e γ x n T x ( k ) − b j ) , (160) where λ > 0 \lambda> 0 λ > 0 . Then, at its minimum point,
x ( k ) = 1 n k ∑ x ∈ F k x = x ˉ k , ∀ x ( k ) ∈ F k , ∀ k ∈ [ K ] , (161) \mathbf{x}^{(k)}=\frac{1}{n_k}\sum_{\mathbf{x}\in\mathcal{F}_k}\mathbf{x}=\bar{\mathbf{x}}_k,\quad\forall\mathbf{x}^{(k)}\in\mathcal{F}_k,\ \forall k\in[K], \tag*{(161)} x ( k ) = n k 1 x ∈ F k ∑ x = x ˉ k , ∀ x ( k ) ∈ F k , ∀ k ∈ [ K ] , (161) ⟨ x ˉ k , x ˉ j ⟩ = − 1 K − 1 , ∀ k ≠ j ∈ [ K ] , (162) \langle\bar{\mathbf{x}}_k,\bar{\mathbf{x}}_j\rangle=-\frac{1}{K-1},\quad\forall k\ne j\in[K], \tag*{(162)} ⟨ x ˉ k , x ˉ j ⟩ = − K − 1 1 , ∀ k = j ∈ [ K ] , (162) b k = b ⋆ , ∀ k ∈ [ K ] , (163) b_k=b^\star,\quad\forall k\in[K], \tag*{(163)} b k = b ⋆ , ∀ k ∈ [ K ] , (163) where b ⋆ b^\star b ⋆ is the unique solution of
e γ K − 1 e 2 b − [ λ ( K − 1 ) − 1 ] e b − λ ( K − 1 ) e γ = 0. e^{\frac{\gamma}{K-1}}e^{2b}-\left[\lambda(K-1)-1\right]e^b-\lambda(K-1)e^\gamma=0. e K − 1 γ e 2 b − [ λ ( K − 1 ) − 1 ] e b − λ ( K − 1 ) e γ = 0.
Proof The Sigmoid-based contrastive loss can be divided into two parts,
f s i g m ( F ) = 1 K ∑ k = 1 K 1 n k ∑ X ( k ) ∈ D k L s i g m ( X ( k ) ) = 1 K ∑ k = 1 K 1 n k ∑ x ( k ) ∈ F k 1 n k ∑ x p ∈ F k log ( 1 + e − γ x p T x ( k ) + b k ) ⏟ f s i g m ( i n t r a ) + λ 1 K ∑ k = 1 K 1 n k ∑ x ( k ) ∈ F k ∑ j = 1 , j ≠ k K 1 n j ∑ x n ∈ F j log ( 1 + e γ x n T x ( k ) − b j ) ⏟ f s i g m ( i n t e r ) . \begin{aligned}
f_{\mathrm{sigm}}(\mathcal{F}) &= \frac{1}{K}\sum_{k=1}^{K}\frac{1}{n_k}\sum_{\mathbf{X}^{(k)}\in\mathcal{D}_k}L_{\mathrm{sigm}}(\mathbf{X}^{(k)})\\
&= \underbrace{\frac{1}{K}\sum_{k=1}^{K}\frac{1}{n_k}\sum_{\mathbf{x}^{(k)}\in\mathcal{F}_k}\frac{1}{n_k}\sum_{\mathbf{x}_p\in\mathcal{F}_k}\log\left(1+e^{-\gamma\mathbf{x}_p^{\mathsf{T}}\mathbf{x}^{(k)}+b_k}\right)}_{f_{\mathrm{sigm}}^{(\mathrm{intra})}}\\
&\quad+\lambda\underbrace{\frac{1}{K}\sum_{k=1}^{K}\frac{1}{n_k}\sum_{\mathbf{x}^{(k)}\in\mathcal{F}_k}\sum_{\substack{j=1,j\ne k}}^{K}\frac{1}{n_j}\sum_{\mathbf{x}_n\in\mathcal{F}_j}\log\left(1+e^{\gamma\mathbf{x}_n^{\mathsf{T}}\mathbf{x}^{(k)}-b_j}\right)}_{f_{\mathrm{sigm}}^{(\mathrm{inter})}}.
\end{aligned} f sigm ( F ) = K 1 k = 1 ∑ K n k 1 X ( k ) ∈ D k ∑ L sigm ( X ( k ) ) = f sigm ( intra ) K 1 k = 1 ∑ K n k 1 x ( k ) ∈ F k ∑ n k 1 x p ∈ F k ∑ log ( 1 + e − γ x p T x ( k ) + b k ) + λ f sigm ( inter ) K 1 k = 1 ∑ K n k 1 x ( k ) ∈ F k ∑ j = 1 , j = k ∑ K n j 1 x n ∈ F j ∑ log ( 1 + e γ x n T x ( k ) − b j ) .
According to the convexity of κ ( x ) = log ( 1 + e − x ) \kappa(x)=\log(1+e^{-x}) κ ( x ) = log ( 1 + e − x ) ,
f s i g m ( i n t r a ) = 1 K ∑ k = 1 K 1 n k ∑ x ( k ) ∈ F k 1 n k ∑ x p ∈ F k log ( 1 + e − γ x p T x ( k ) + b k ) = 1 K ∑ k = 1 K 1 n k ∑ x ( k ) ∈ F k 1 n k ∑ x p ∈ F k κ ( γ x p T x ( k ) − b k ) ≥ 1 K ∑ k = 1 K κ ( 1 n k 2 ∑ x ( k ) ∈ F k ∑ x p ∈ F k ( γ x p T x ( k ) − b k ) ) ≥ κ ( 1 K ∑ k = 1 K 1 n k 2 ∑ x ( k ) ∈ F k ∑ x p ∈ F k ( γ x p T x ( k ) − b k ) ) = κ ( 1 K ∑ k = 1 K 1 n k 2 ∑ x ( k ) ∈ F k ∑ x p ∈ F k γ x p T x ( k ) − 1 K ∑ k = 1 K b k ) . (164) \begin{aligned}
f_{\mathrm{sigm}}^{(\mathrm{intra})}
&=\frac{1}{K}\sum_{k=1}^{K}\frac{1}{n_k}\sum_{x^{(k)}\in F_k}\frac{1}{n_k}\sum_{x_p\in F_k}\log\left(1+e^{-\gamma x_p^{\mathsf{T}}x^{(k)}+b_k}\right)\\
&=\frac{1}{K}\sum_{k=1}^{K}\frac{1}{n_k}\sum_{x^{(k)}\in F_k}\frac{1}{n_k}\sum_{x_p\in F_k}\kappa\left(\gamma x_p^{\mathsf{T}}x^{(k)}-b_k\right)\\
&\geq\frac{1}{K}\sum_{k=1}^{K}\kappa\left(\frac{1}{n_k^2}\sum_{x^{(k)}\in F_k}\sum_{x_p\in F_k}\left(\gamma x_p^{\mathsf{T}}x^{(k)}-b_k\right)\right)\\
&\geq\kappa\left(\frac{1}{K}\sum_{k=1}^{K}\frac{1}{n_k^2}\sum_{x^{(k)}\in F_k}\sum_{x_p\in F_k}\left(\gamma x_p^{\mathsf{T}}x^{(k)}-b_k\right)\right)\\
&=\kappa\left(\frac{1}{K}\sum_{k=1}^{K}\frac{1}{n_k^2}\sum_{x^{(k)}\in F_k}\sum_{x_p\in F_k}\gamma x_p^{\mathsf{T}}x^{(k)}-\frac{1}{K}\sum_{k=1}^{K}b_k\right). \tag*{(164)}
\end{aligned} f sigm ( intra ) = K 1 k = 1 ∑ K n k 1 x ( k ) ∈ F k ∑ n k 1 x p ∈ F k ∑ log ( 1 + e − γ x p T x ( k ) + b k ) = K 1 k = 1 ∑ K n k 1 x ( k ) ∈ F k ∑ n k 1 x p ∈ F k ∑ κ ( γ x p T x ( k ) − b k ) ≥ K 1 k = 1 ∑ K κ n k 2 1 x ( k ) ∈ F k ∑ x p ∈ F k ∑ ( γ x p T x ( k ) − b k ) ≥ κ K 1 k = 1 ∑ K n k 2 1 x ( k ) ∈ F k ∑ x p ∈ F k ∑ ( γ x p T x ( k ) − b k ) = κ K 1 k = 1 ∑ K n k 2 1 x ( k ) ∈ F k ∑ x p ∈ F k ∑ γ x p T x ( k ) − K 1 k = 1 ∑ K b k . (164)
where the first inequality becomes an equality if and only if
γ x p T x ( k ) − b k = γ x ^ p T x ^ ( k ) − b k , for ∀ x p , x ^ p , x ( k ) , x ^ ( k ) ∈ F k , ∀ k ∈ [ K ] , (165) \gamma x_p^{\mathsf{T}}x^{(k)}-b_k=\gamma\hat{x}_p^{\mathsf{T}}\hat{x}^{(k)}-b_k,\qquad\text{for }\ \forall x_p,\hat{x}_p,x^{(k)},\hat{x}^{(k)}\in F_k,\ \forall k\in[K], \tag*{(165)} γ x p T x ( k ) − b k = γ x ^ p T x ^ ( k ) − b k , for ∀ x p , x ^ p , x ( k ) , x ^ ( k ) ∈ F k , ∀ k ∈ [ K ] , (165)
and the second inequality becomes an equality if and only if
1 n k 2 ∑ x ( k ) ∈ F k ∑ x p ∈ F k ( γ x p T x ( k ) − b k ) = 1 n ℓ 2 ∑ x ( ℓ ) ∈ F ℓ ∑ x p ∈ F ℓ ( γ x p T x ( ℓ ) − b ℓ ) \frac{1}{n_k^2}\sum_{x^{(k)}\in F_k}\sum_{x_p\in F_k}\left(\gamma x_p^{\mathsf{T}}x^{(k)}-b_k\right)=\frac{1}{n_\ell^2}\sum_{x^{(\ell)}\in F_\ell}\sum_{x_p\in F_\ell}\left(\gamma x_p^{\mathsf{T}}x^{(\ell)}-b_\ell\right) n k 2 1 x ( k ) ∈ F k ∑ x p ∈ F k ∑ ( γ x p T x ( k ) − b k ) = n ℓ 2 1 x ( ℓ ) ∈ F ℓ ∑ x p ∈ F ℓ ∑ ( γ x p T x ( ℓ ) − b ℓ )
⟺ [S.142] γ x p T x ( k ) − b k = γ x ^ p T x ( ℓ ) − b ℓ , ∀ x p , x ( k ) ∈ F k , ∀ x ^ p , x ( ℓ ) ∈ F ℓ , ∀ k , ℓ ∈ [ K ] . (166) \underset{\text{\scriptsize[S.142]}}{\Longleftrightarrow}\quad\gamma x_p^{\mathsf{T}}x^{(k)}-b_k=\gamma\hat{x}_p^{\mathsf{T}}x^{(\ell)}-b_\ell,\qquad\forall x_p,x^{(k)}\in F_k,\ \forall\hat{x}_p,x^{(\ell)}\in F_\ell,\ \forall k,\ell\in[K]. \tag*{(166)} [S.142] ⟺ γ x p T x ( k ) − b k = γ x ^ p T x ( ℓ ) − b ℓ , ∀ x p , x ( k ) ∈ F k , ∀ x ^ p , x ( ℓ ) ∈ F ℓ , ∀ k , ℓ ∈ [ K ] . (166)
Similarly, for the second term, according to the convexity of κ ( x ) = log ( 1 + e − x ) \kappa(x)=\log(1+e^{-x}) κ ( x ) = log ( 1 + e − x ) ,
f s i g m ( i n t e r ) = 1 K ∑ k = 1 K 1 n k ∑ x ( k ) ∈ F k ∑ j = 1 , j ≠ k K 1 n j ∑ x n ∈ F j log ( 1 + e γ x n T x ( k ) − b j ) = 1 K ∑ k = 1 K ∑ j = 1 , j ≠ k K 1 n k n j ∑ x ( k ) ∈ F k ∑ x n ∈ F j κ ( b j − γ x n T x ( k ) ) ≥ 1 K ∑ k = 1 K ∑ j = 1 , j ≠ k K κ ( 1 n k n j ∑ x ( k ) ∈ F k ∑ x n ∈ F j ( b j − γ x n T x ( k ) ) ) ≥ ( K − 1 ) κ ( 1 K ( K − 1 ) ∑ k = 1 K ∑ j = 1 , j ≠ k K 1 n k n j ∑ x ( k ) ∈ F k ∑ x n ∈ F j ( b j − γ x n T x ( k ) ) ) = ( K − 1 ) κ ( 1 K ∑ k = 1 K b k − γ K ( K − 1 ) ∑ k = 1 K ∑ j = 1 , j ≠ k K 1 n k n j ∑ x ( k ) ∈ F k ∑ x n ∈ F j x n T x ( k ) ) . \begin{aligned}
f_{\mathrm{sigm}}^{(\mathrm{inter})}
&=\frac{1}{K}\sum_{k=1}^{K}\frac{1}{n_k}\sum_{x^{(k)}\in F_k}\sum_{j=1,j\ne k}^{K}\frac{1}{n_j}\sum_{x_n\in F_j}\log\left(1+e^{\gamma x_n^{\mathsf{T}}x^{(k)}-b_j}\right)\\
&=\frac{1}{K}\sum_{k=1}^{K}\sum_{j=1,j\ne k}^{K}\frac{1}{n_kn_j}\sum_{x^{(k)}\in F_k}\sum_{x_n\in F_j}\kappa\left(b_j-\gamma x_n^{\mathsf{T}}x^{(k)}\right)\\
&\geq\frac{1}{K}\sum_{k=1}^{K}\sum_{j=1,j\ne k}^{K}\kappa\left(\frac{1}{n_kn_j}\sum_{x^{(k)}\in F_k}\sum_{x_n\in F_j}\left(b_j-\gamma x_n^{\mathsf{T}}x^{(k)}\right)\right)\\
&\geq(K-1)\kappa\left(\frac{1}{K(K-1)}\sum_{k=1}^{K}\sum_{j=1,j\ne k}^{K}\frac{1}{n_kn_j}\sum_{x^{(k)}\in F_k}\sum_{x_n\in F_j}\left(b_j-\gamma x_n^{\mathsf{T}}x^{(k)}\right)\right)\\
&=(K-1)\kappa\left(\frac{1}{K}\sum_{k=1}^{K}b_k-\frac{\gamma}{K(K-1)}\sum_{k=1}^{K}\sum_{j=1,j\ne k}^{K}\frac{1}{n_kn_j}\sum_{x^{(k)}\in F_k}\sum_{x_n\in F_j}x_n^{\mathsf{T}}x^{(k)}\right).
\end{aligned} f sigm ( inter ) = K 1 k = 1 ∑ K n k 1 x ( k ) ∈ F k ∑ j = 1 , j = k ∑ K n j 1 x n ∈ F j ∑ log ( 1 + e γ x n T x ( k ) − b j ) = K 1 k = 1 ∑ K j = 1 , j = k ∑ K n k n j 1 x ( k ) ∈ F k ∑ x n ∈ F j ∑ κ ( b j − γ x n T x ( k ) ) ≥ K 1 k = 1 ∑ K j = 1 , j = k ∑ K κ n k n j 1 x ( k ) ∈ F k ∑ x n ∈ F j ∑ ( b j − γ x n T x ( k ) ) ≥ ( K − 1 ) κ K ( K − 1 ) 1 k = 1 ∑ K j = 1 , j = k ∑ K n k n j 1 x ( k ) ∈ F k ∑ x n ∈ F j ∑ ( b j − γ x n T x ( k ) ) = ( K − 1 ) κ K 1 k = 1 ∑ K b k − K ( K − 1 ) γ k = 1 ∑ K j = 1 , j = k ∑ K n k n j 1 x ( k ) ∈ F k ∑ x n ∈ F j ∑ x n T x ( k ) .
= ( K − 1 ) κ ( 1 K ∑ k = 1 K b k − γ K ( K − 1 ) ∑ k = 1 K ∑ j = 1 K 1 n k n j ∑ x ( k ) ∈ F k ∑ x n ∈ F j x n T x ( k ) + γ K ( K − 1 ) ∑ k = 1 K 1 n k n k ∑ x ( k ) ∈ F k ∑ x p ∈ F k x p T x ( k ) ) ≥ ( K − 1 ) κ ( 1 K ∑ k = 1 K b k − γ K ( K − 1 ) ∑ k = 1 K ∑ j = 1 K 1 n k n j ∑ x ( k ) ∈ F k ∑ x n ∈ F j x n T x ( k ) + γ K ( K − 1 ) ∑ k = 1 K 1 ) = ( K − 1 ) κ ( 1 K ∑ k = 1 K b k − γ K ( K − 1 ) ( ∑ k = 1 K 1 n k ∑ x ( k ) ∈ F k x ( k ) ) T ( ∑ j = 1 K 1 n j ∑ x n ∈ F j x n ) + γ K − 1 ) = ( K − 1 ) κ ( 1 K ∑ k = 1 K b k − γ K K − 1 ∥ x ~ ∥ 2 + γ K − 1 ) ≥ ( K − 1 ) κ ( 1 K ∑ k = 1 K b k + γ K − 1 ) . (167) \begin{aligned}
&= (K-1)\kappa\left(\frac{1}{K}\sum_{k=1}^{K}b_k-\frac{\gamma}{K(K-1)}\sum_{k=1}^{K}\sum_{j=1}^{K}\frac{1}{n_kn_j}\sum_{\boldsymbol{x}^{(k)}\in\mathcal{F}_k}\sum_{\boldsymbol{x}_n\in\mathcal{F}_j}\boldsymbol{x}_n^{\mathsf{T}}\boldsymbol{x}^{(k)}\right.\\
&\qquad\left.+\frac{\gamma}{K(K-1)}\sum_{k=1}^{K}\frac{1}{n_kn_k}\sum_{\boldsymbol{x}^{(k)}\in\mathcal{F}_k}\sum_{\boldsymbol{x}_p\in\mathcal{F}_k}\boldsymbol{x}_p^{\mathsf{T}}\boldsymbol{x}^{(k)}\right)\\
&\ge(K-1)\kappa\left(\frac{1}{K}\sum_{k=1}^{K}b_k-\frac{\gamma}{K(K-1)}\sum_{k=1}^{K}\sum_{j=1}^{K}\frac{1}{n_kn_j}\sum_{\boldsymbol{x}^{(k)}\in\mathcal{F}_k}\sum_{\boldsymbol{x}_n\in\mathcal{F}_j}\boldsymbol{x}_n^{\mathsf{T}}\boldsymbol{x}^{(k)}\right.\\
&\qquad\left.+\frac{\gamma}{K(K-1)}\sum_{k=1}^{K}1\right)\\
&= (K-1)\kappa\left(\frac{1}{K}\sum_{k=1}^{K}b_k-\frac{\gamma}{K(K-1)}\left(\sum_{k=1}^{K}\frac{1}{n_k}\sum_{\boldsymbol{x}^{(k)}\in\mathcal{F}_k}\boldsymbol{x}^{(k)}\right)^{\mathsf{T}}\left(\sum_{j=1}^{K}\frac{1}{n_j}\sum_{\boldsymbol{x}_n\in\mathcal{F}_j}\boldsymbol{x}_n\right)+\frac{\gamma}{K-1}\right)\\
&= (K-1)\kappa\left(\frac{1}{K}\sum_{k=1}^{K}b_k-\frac{\gamma K}{K-1}\lVert\widetilde{\boldsymbol{x}}\rVert^2+\frac{\gamma}{K-1}\right)\\
&\ge(K-1)\kappa\left(\frac{1}{K}\sum_{k=1}^{K}b_k+\frac{\gamma}{K-1}\right). \tag*{(167)}
\end{aligned} = ( K − 1 ) κ K 1 k = 1 ∑ K b k − K ( K − 1 ) γ k = 1 ∑ K j = 1 ∑ K n k n j 1 x ( k ) ∈ F k ∑ x n ∈ F j ∑ x n T x ( k ) + K ( K − 1 ) γ k = 1 ∑ K n k n k 1 x ( k ) ∈ F k ∑ x p ∈ F k ∑ x p T x ( k ) ≥ ( K − 1 ) κ K 1 k = 1 ∑ K b k − K ( K − 1 ) γ k = 1 ∑ K j = 1 ∑ K n k n j 1 x ( k ) ∈ F k ∑ x n ∈ F j ∑ x n T x ( k ) + K ( K − 1 ) γ k = 1 ∑ K 1 ) = ( K − 1 ) κ K 1 k = 1 ∑ K b k − K ( K − 1 ) γ k = 1 ∑ K n k 1 x ( k ) ∈ F k ∑ x ( k ) T j = 1 ∑ K n j 1 x n ∈ F j ∑ x n + K − 1 γ = ( K − 1 ) κ ( K 1 k = 1 ∑ K b k − K − 1 γ K ∥ x ∥ 2 + K − 1 γ ) ≥ ( K − 1 ) κ ( K 1 k = 1 ∑ K b k + K − 1 γ ) . (167)
where the first inequality is derived from the convexity of κ ( x ) \kappa(x) κ ( x ) and it becomes an equality if and only if
b j − γ x n T x ( k ) = b j − γ x ^ n T x ^ ( k ) , ∀ x ( k ) , x ^ ( k ) ∈ F k , ∀ x n , x ^ n ∈ F j , ∀ k ≠ j ∈ [ K ] , (168) b_j-\gamma\boldsymbol{x}_n^{\mathsf{T}}\boldsymbol{x}^{(k)}
=b_j-\gamma\widehat{\boldsymbol{x}}_n^{\mathsf{T}}\widehat{\boldsymbol{x}}^{(k)},
\quad\forall\boldsymbol{x}^{(k)},\widehat{\boldsymbol{x}}^{(k)}\in\mathcal{F}_k,\ \forall\boldsymbol{x}_n,\widehat{\boldsymbol{x}}_n\in\mathcal{F}_j,\ \forall k\ne j\in[K], \tag*{(168)} b j − γ x n T x ( k ) = b j − γ x n T x ( k ) , ∀ x ( k ) , x ( k ) ∈ F k , ∀ x n , x n ∈ F j , ∀ k = j ∈ [ K ] , (168)
the second inequality is derived from the convexity of κ ( x ) \kappa(x) κ ( x ) and it becomes an equality if and only if
1 n k n j ∑ x ( k ) ∈ F k ∑ x n ∈ F j ( b j − γ x n T x ( k ) ) = 1 n k ′ n j ′ ∑ x ( k ′ ) ∈ F k ′ ∑ x n ∈ F j ′ ( b j ′ − γ x n T x ( k ′ ) ) \frac{1}{n_kn_j}\sum_{\boldsymbol{x}^{(k)}\in\mathcal{F}_k}\sum_{\boldsymbol{x}_n\in\mathcal{F}_j}\left(b_j-\gamma\boldsymbol{x}_n^{\mathsf{T}}\boldsymbol{x}^{(k)}\right)
=
\frac{1}{n_{k'}n_{j'}}\sum_{\boldsymbol{x}^{(k')}\in\mathcal{F}_{k'}}\sum_{\boldsymbol{x}_n\in\mathcal{F}_{j'}}\left(b_{j'}-\gamma\boldsymbol{x}_n^{\mathsf{T}}\boldsymbol{x}^{(k')}\right) n k n j 1 x ( k ) ∈ F k ∑ x n ∈ F j ∑ ( b j − γ x n T x ( k ) ) = n k ′ n j ′ 1 x ( k ′ ) ∈ F k ′ ∑ x n ∈ F j ′ ∑ ( b j ′ − γ x n T x ( k ′ ) )
⟺ b j − γ x n T x ( k ) = b j ′ − γ x ^ n T x ^ ( k ′ ) , ∀ x ( k ) ∈ F k , ∀ x n ∈ F j , ∀ x ^ ( k ′ ) ∈ F k ′ , ∀ x ^ n ∈ F j ′ , ∀ k ≠ j , k ′ ≠ j ′ ∈ [ K ] , (169) \Longleftrightarrow b_j-\gamma\boldsymbol{x}_n^{\mathsf{T}}\boldsymbol{x}^{(k)}
=b_{j'}-\gamma\widehat{\boldsymbol{x}}_n^{\mathsf{T}}\widehat{\boldsymbol{x}}^{(k')},
\quad\forall\boldsymbol{x}^{(k)}\in\mathcal{F}_k,\ \forall\boldsymbol{x}_n\in\mathcal{F}_j,\ \forall\widehat{\boldsymbol{x}}^{(k')}\in\mathcal{F}_{k'},\ \forall\widehat{\boldsymbol{x}}_n\in\mathcal{F}_{j'},\ \forall k\ne j,k'\ne j'\in[K], \tag*{(169)} ⟺ b j − γ x n T x ( k ) = b j ′ − γ x n T x ( k ′ ) , ∀ x ( k ) ∈ F k , ∀ x n ∈ F j , ∀ x ( k ′ ) ∈ F k ′ , ∀ x n ∈ F j ′ , ∀ k = j , k ′ = j ′ ∈ [ K ] , (169)
the third inequality is derived from the monotonic decreasing of κ ( x ) \kappa(x) κ ( x ) and it becomes an equality if and only if
x ( k ) = x p , for ∀ x ( k ) , x p ∈ F k , ∀ k ∈ [ K ] , (170) \boldsymbol{x}^{(k)}=\boldsymbol{x}_p,\quad\text{for }\forall\boldsymbol{x}^{(k)},\boldsymbol{x}_p\in\mathcal{F}_k,\ \forall k\in[K], \tag*{(170)} x ( k ) = x p , for ∀ x ( k ) , x p ∈ F k , ∀ k ∈ [ K ] , (170)
and the fourth inequality is derived from the monotonic decreasing of κ ( x ) \kappa(x) κ ( x ) and it becomes an equality if and only if
x ~ = 1 K ∑ k = 1 K x ‾ k = 1 K ∑ k = 1 K 1 n k ∑ x ( k ) ∈ F k x ( k ) = 0. (171) \widetilde{\boldsymbol{x}}=\frac{1}{K}\sum_{k=1}^{K}\overline{\boldsymbol{x}}_k
=\frac{1}{K}\sum_{k=1}^{K}\frac{1}{n_k}\sum_{\boldsymbol{x}^{(k)}\in\mathcal{F}_k}\boldsymbol{x}^{(k)}
=0. \tag*{(171)} x = K 1 k = 1 ∑ K x k = K 1 k = 1 ∑ K n k 1 x ( k ) ∈ F k ∑ x ( k ) = 0. (171)
Combining Eqs. (S.143,S.147), one can deduce that, ∃ b ∈ R \exists b \in\mathbb{R} ∃ b ∈ R ,
b k = b , ∀ k ∈ [ K ] . (172) b_k=b,\quad\forall k\in[K]. \tag*{(172)} b k = b , ∀ k ∈ [ K ] . (172)
Based on the above analysis, if and only if Eqs. (S.142, S.143, S.145, S.146, S.147, S.148),
f s i g m ( F ) = f s i g m ( i n t r a ) + λ f s i g m ( i n t e r ) ≥ κ ( 1 K ∑ k = 1 K 1 n k 2 ∑ x ∈ F k ∑ x p ∈ F k γ x p T x ( k ) − 1 K ∑ k = 1 K b k ) + λ ( K − 1 ) κ ( 1 K ∑ k = 1 K b k + γ K − 1 ) = κ ( 1 K ∑ k = 1 K γ − 1 K ∑ k = 1 K b k ) + λ ( K − 1 ) κ ( 1 K ∑ k = 1 K b k + γ K − 1 ) = κ ( γ − b ) + λ ( K − 1 ) κ ( b + γ K − 1 ) = log ( 1 + exp ( b − γ ) ) + λ ( K − 1 ) log ( 1 + exp ( − b − γ K − 1 ) ) ≜ f ^ s i g m ( b ) . (173) \begin{aligned}
f_{\mathrm{sigm}}(\mathcal{F}) &= f_{\mathrm{sigm}}^{(\mathrm{intra})}+\lambda f_{\mathrm{sigm}}^{(\mathrm{inter})}\\
&\ge\kappa\left(\frac{1}{K}\sum_{k=1}^{K}\frac{1}{n_k^2}\sum_{x\in\mathcal{F}_k}\sum_{x_p\in\mathcal{F}_k}\gamma x_p^{\mathsf{T}}x^{(k)}-\frac{1}{K}\sum_{k=1}^{K}b_k\right)+\lambda(K-1)\kappa\left(\frac{1}{K}\sum_{k=1}^{K}b_k+\frac{\gamma}{K-1}\right)\\
&=\kappa\left(\frac{1}{K}\sum_{k=1}^{K}\gamma-\frac{1}{K}\sum_{k=1}^{K}b_k\right)+\lambda(K-1)\kappa\left(\frac{1}{K}\sum_{k=1}^{K}b_k+\frac{\gamma}{K-1}\right)\\
&=\kappa(\gamma-b)+\lambda(K-1)\kappa\left(b+\frac{\gamma}{K-1}\right)\\
&=\log\left(1+\exp(b-\gamma)\right)+\lambda(K-1)\log\left(1+\exp\left(-b-\frac{\gamma}{K-1}\right)\right)\triangleq\hat{f}_{\mathrm{sigm}}(b). \tag*{(173)}
\end{aligned} f sigm ( F ) = f sigm ( intra ) + λ f sigm ( inter ) ≥ κ K 1 k = 1 ∑ K n k 2 1 x ∈ F k ∑ x p ∈ F k ∑ γ x p T x ( k ) − K 1 k = 1 ∑ K b k + λ ( K − 1 ) κ ( K 1 k = 1 ∑ K b k + K − 1 γ ) = κ ( K 1 k = 1 ∑ K γ − K 1 k = 1 ∑ K b k ) + λ ( K − 1 ) κ ( K 1 k = 1 ∑ K b k + K − 1 γ ) = κ ( γ − b ) + λ ( K − 1 ) κ ( b + K − 1 γ ) = log ( 1 + exp ( b − γ ) ) + λ ( K − 1 ) log ( 1 + exp ( − b − K − 1 γ ) ) ≜ f ^ sigm ( b ) . (173)
At the minimum points of f ^ s i g m ( b ) \hat{f}_{\mathrm{sigm}}(b) f ^ sigm ( b ) ,
0 = ∂ f ^ s i g m ( b ) ∂ b = exp ( b − γ ) 1 + exp ( b − γ ) − λ ( K − 1 ) exp ( − b − γ K − 1 ) 1 + exp ( − b − γ K − 1 ) = 1 1 + exp ( γ − b ) − λ ( K − 1 ) 1 + exp ( b + γ K − 1 ) \begin{aligned}
0=\frac{\partial\hat{f}_{\mathrm{sigm}}(b)}{\partial b}=\frac{\exp(b-\gamma)}{1+\exp(b-\gamma)}-\lambda(K-1)\frac{\exp\left(-b-\frac{\gamma}{K-1}\right)}{1+\exp\left(-b-\frac{\gamma}{K-1}\right)} \\
&=\frac{1}{1+\exp(\gamma-b)}-\frac{\lambda(K-1)}{1+\exp\left(b+\frac{\gamma}{K-1}\right)}
\end{aligned} 0 = ∂ b ∂ f ^ sigm ( b ) = 1 + exp ( b − γ ) exp ( b − γ ) − λ ( K − 1 ) 1 + exp ( − b − K − 1 γ ) exp ( − b − K − 1 γ ) = 1 + exp ( γ − b ) 1 − 1 + exp ( b + K − 1 γ ) λ ( K − 1 )
⟺ e γ K − 1 e 2 b − [ λ ( K − 1 ) − 1 ] e b − λ ( K − 1 ) e γ = 0. (174) \Longleftrightarrow e^{\frac{\gamma}{K-1}}e^{2b}-\left[\lambda(K-1)-1\right]e^b-\lambda(K-1)e^\gamma=0. \tag*{(174)} ⟺ e K − 1 γ e 2 b − [ λ ( K − 1 ) − 1 ] e b − λ ( K − 1 ) e γ = 0. (174)
From Eq. (S.147), one can deduce that
x ( k ) = 1 n k ∑ x ∈ F k x = x ˉ k , ∀ x ( k ) ∈ F k , ∀ k ∈ [ K ] . \mathbf{x}^{(k)}=\frac{1}{n_k}\sum_{x\in\mathcal{F}_k}\mathbf{x}=\bar{\mathbf{x}}_k,\quad\forall\mathbf{x}^{(k)}\in\mathcal{F}_k,\ \forall k\in[K]. x ( k ) = n k 1 x ∈ F k ∑ x = x ˉ k , ∀ x ( k ) ∈ F k , ∀ k ∈ [ K ] .
Similar to the proof of Theorem S.4 , from Eq. (S.148), one can deduce
⟨ x ˉ k , x ˉ j ⟩ = − 1 K − 1 , ∀ k ≠ j ∈ [ K ] . \langle\bar{\mathbf{x}}_k,\bar{\mathbf{x}}_j\rangle=-\frac{1}{K-1},\quad\forall k\ne j\in[K]. ⟨ x ˉ k , x ˉ j ⟩ = − K − 1 1 , ∀ k = j ∈ [ K ] .
It completes the proof.
Finally, if set b k = 0 b_k=0 b k = 0 for ∀ k ∈ [ K ] \forall k\in[K] ∀ k ∈ [ K ] in (S.137), Eqs. (S.147, S.148) can still be derived from the minimization of f s i g m ( i n t e r ) f_{\mathrm{sigm}}^{(\mathrm{inter})} f sigm ( inter ) , and in this case it suffices for each class in D \mathcal{D} D to contain at least one sample. Therefore, if remove the biases in the Sigmoid-based contrastive loss, the main conclusions of this theorem, i.e., Eqs. (S.138) and (S.139) still hold when reaching its minimum value, provided that there are no empty classes in D \mathcal{D} D .
Theorem S.17 Suppose that each class in dataset D \mathcal{D} D contains at least two samples, and that the feature dimension is greater than the number of classes, i.e., n k = ∣ D k ∣ > 0 n_k = \lvert\mathcal{D}_k\rvert> 0 n k = ∣ D k ∣ > 0 for ∀ k ∈ [ K ] \forall k \in[K] ∀ k ∈ [ K ] and d > K d > K d > K . On the dataset D \mathcal{D} D , define losses
f s o f t ( F ) = 1 K ∑ k = 1 K 1 n k ∑ x ( k ) ∈ D k L s o f t ( X ( k ) ) , (175) f_{\mathrm{soft}}(\mathcal{F}) = \frac{1}{K}\sum_{k=1}^{K}\frac{1}{n_k}\sum_{\mathbf{x}^{(k)}\in\mathcal{D}_k} L_{\mathrm{soft}}\left(\mathbf{X}^{(k)}\right), \tag*{(175)} f soft ( F ) = K 1 k = 1 ∑ K n k 1 x ( k ) ∈ D k ∑ L soft ( X ( k ) ) , (175) where
L s o f t ( X ( k ) ) = − 1 n k ∑ x p ∈ F k log ( e γ x p T x ( k ) ∑ j = 1 K 1 n j ∑ x ∈ F j e γ x T x ( k ) ) . (176) L_{\mathrm{soft}}\left(\mathbf{X}^{(k)}\right) = -\frac{1}{n_k}\sum_{\mathbf{x}_p\in\mathcal{F}_k}\log\left(\frac{e^{\gamma\mathbf{x}_p^{\mathsf{T}}\mathbf{x}^{(k)}}}{\sum_{j=1}^{K}\frac{1}{n_j}\sum_{\mathbf{x}\in\mathcal{F}_j}e^{\gamma\mathbf{x}^{\mathsf{T}}\mathbf{x}^{(k)}}}\right). \tag*{(176)} L soft ( X ( k ) ) = − n k 1 x p ∈ F k ∑ log ( ∑ j = 1 K n j 1 ∑ x ∈ F j e γ x T x ( k ) e γ x p T x ( k ) ) . (176) Then, at its minimum point,
x ( k ) = 1 n k ∑ x ∈ F k x = x ˉ k , ∀ x ( k ) ∈ F k , ∀ k ∈ [ K ] , (177) \mathbf{x}^{(k)}=\frac{1}{n_k}\sum_{\mathbf{x}\in\mathcal{F}_k}\mathbf{x}=\bar{\mathbf{x}}_k,\quad\forall\mathbf{x}^{(k)}\in\mathcal{F}_k,\ \forall k\in[K], \tag*{(177)} x ( k ) = n k 1 x ∈ F k ∑ x = x ˉ k , ∀ x ( k ) ∈ F k , ∀ k ∈ [ K ] , (177) ⟨ x ˉ k , x ˉ j ⟩ = − 1 K − 1 , ∀ k ≠ j ∈ [ K ] . (178) \langle\bar{\mathbf{x}}_k,\bar{\mathbf{x}}_j\rangle=-\frac{1}{K-1},\quad\forall k\ne j\in[K]. \tag*{(178)} ⟨ x ˉ k , x ˉ j ⟩ = − K − 1 1 , ∀ k = j ∈ [ K ] . (178)
Proof According to the convexities of e x e^x e x and log x \log x log x ,
f s o f t ( F ) = − 1 K ∑ k = 1 K 1 n k ∑ x ( k ) ∈ F k 1 n k ∑ x p ∈ F k log ( e γ x p T x ( k ) ∑ j = 1 K 1 n j ∑ x ∈ F j e γ x T x ( k ) ) = 1 K ∑ k = 1 K 1 n k ∑ x ( k ) ∈ F k 1 n k ∑ x p ∈ F k [ log ( ∑ j = 1 K 1 n j ∑ x ∈ F j e γ x T x ( k ) ) − γ x p T x ( k ) ] = 1 K ∑ k = 1 K 1 n k ∑ x ( k ) ∈ F k [ log ( ∑ j = 1 K 1 n j ∑ x ∈ F j e γ x T x ( k ) ) − 1 n k ∑ x p ∈ F k γ x p T x ( k ) ] = 1 K ∑ k = 1 K 1 n k ∑ x ( k ) ∈ F k [ log ( ∑ j = 1 K 1 n j ∑ x ∈ F j e γ x T x ( k ) ) − log exp ( 1 n k ∑ x p ∈ F k γ x p T x ( k ) ) ] ≥ 1 K ∑ k = 1 K 1 n k ∑ x ( k ) ∈ F k [ log ( ∑ j = 1 K exp ( 1 n j ∑ x ∈ F j γ x T x ( k ) ) ) − log exp ( 1 n k ∑ x p ∈ F k γ x p T x ( k ) ) ] = 1 K ∑ k = 1 K 1 n k ∑ x ( k ) ∈ F k log ( 1 + ∑ j = 1 j ≠ k K exp ( 1 n j ∑ x ∈ F j γ x T x ( k ) − 1 n k ∑ x p ∈ F k γ x p T x ( k ) ) ) ≥ 1 K ∑ k = 1 K 1 n k ∑ x ( k ) ∈ F k log ( 1 + ( K − 1 ) exp [ 1 K − 1 ∑ j = 1 j ≠ k K ( 1 n j ∑ x ∈ F j γ x T x ( k ) ) − 1 n k ∑ x p ∈ F k γ x p T x ( k ) ] ) \begin{aligned}
f_{\mathrm{soft}}(\mathcal{F})
&=-\frac{1}{K}\sum_{k=1}^{K}\frac{1}{n_k}\sum_{\mathbf{x}^{(k)}\in\mathcal{F}_k}\frac{1}{n_k}\sum_{\mathbf{x}_p\in\mathcal{F}_k}\log\left(\frac{e^{\gamma\mathbf{x}_p^{\mathsf{T}}\mathbf{x}^{(k)}}}{\sum_{j=1}^{K}\frac{1}{n_j}\sum_{\mathbf{x}\in\mathcal{F}_j}e^{\gamma\mathbf{x}^{\mathsf{T}}\mathbf{x}^{(k)}}}\right)\\
&=\frac{1}{K}\sum_{k=1}^{K}\frac{1}{n_k}\sum_{\mathbf{x}^{(k)}\in\mathcal{F}_k}\frac{1}{n_k}\sum_{\mathbf{x}_p\in\mathcal{F}_k}\left[\log\left(\sum_{j=1}^{K}\frac{1}{n_j}\sum_{\mathbf{x}\in\mathcal{F}_j}e^{\gamma\mathbf{x}^{\mathsf{T}}\mathbf{x}^{(k)}}\right)-\gamma\mathbf{x}_p^{\mathsf{T}}\mathbf{x}^{(k)}\right]\\
&=\frac{1}{K}\sum_{k=1}^{K}\frac{1}{n_k}\sum_{\mathbf{x}^{(k)}\in\mathcal{F}_k}\left[\log\left(\sum_{j=1}^{K}\frac{1}{n_j}\sum_{\mathbf{x}\in\mathcal{F}_j}e^{\gamma\mathbf{x}^{\mathsf{T}}\mathbf{x}^{(k)}}\right)-\frac{1}{n_k}\sum_{\mathbf{x}_p\in\mathcal{F}_k}\gamma\mathbf{x}_p^{\mathsf{T}}\mathbf{x}^{(k)}\right]\\
&=\frac{1}{K}\sum_{k=1}^{K}\frac{1}{n_k}\sum_{\mathbf{x}^{(k)}\in\mathcal{F}_k}\left[\log\left(\sum_{j=1}^{K}\frac{1}{n_j}\sum_{\mathbf{x}\in\mathcal{F}_j}e^{\gamma\mathbf{x}^{\mathsf{T}}\mathbf{x}^{(k)}}\right)-\log\exp\left(\frac{1}{n_k}\sum_{\mathbf{x}_p\in\mathcal{F}_k}\gamma\mathbf{x}_p^{\mathsf{T}}\mathbf{x}^{(k)}\right)\right]\\
&\ge\frac{1}{K}\sum_{k=1}^{K}\frac{1}{n_k}\sum_{\mathbf{x}^{(k)}\in\mathcal{F}_k}\left[\log\left(\sum_{j=1}^{K}\exp\left(\frac{1}{n_j}\sum_{\mathbf{x}\in\mathcal{F}_j}\gamma\mathbf{x}^{\mathsf{T}}\mathbf{x}^{(k)}\right)\right)-\log\exp\left(\frac{1}{n_k}\sum_{\mathbf{x}_p\in\mathcal{F}_k}\gamma\mathbf{x}_p^{\mathsf{T}}\mathbf{x}^{(k)}\right)\right]\\
&=\frac{1}{K}\sum_{k=1}^{K}\frac{1}{n_k}\sum_{\mathbf{x}^{(k)}\in\mathcal{F}_k}\log\left(1+\sum_{\substack{j=1\\j\ne k}}^{K}\exp\left(\frac{1}{n_j}\sum_{\mathbf{x}\in\mathcal{F}_j}\gamma\mathbf{x}^{\mathsf{T}}\mathbf{x}^{(k)}-\frac{1}{n_k}\sum_{\mathbf{x}_p\in\mathcal{F}_k}\gamma\mathbf{x}_p^{\mathsf{T}}\mathbf{x}^{(k)}\right)\right)\\
&\ge\frac{1}{K}\sum_{k=1}^{K}\frac{1}{n_k}\sum_{\mathbf{x}^{(k)}\in\mathcal{F}_k}\log\left(1+(K-1)\exp\left[\frac{1}{K-1}\sum_{\substack{j=1\\j\ne k}}^{K}\left(\frac{1}{n_j}\sum_{\mathbf{x}\in\mathcal{F}_j}\gamma\mathbf{x}^{\mathsf{T}}\mathbf{x}^{(k)}\right)\right.\right.\\
&\hspace{8em}\left.\left.-\frac{1}{n_k}\sum_{\mathbf{x}_p\in\mathcal{F}_k}\gamma\mathbf{x}_p^{\mathsf{T}}\mathbf{x}^{(k)}\right]\right)
\end{aligned} f soft ( F ) = − K 1 k = 1 ∑ K n k 1 x ( k ) ∈ F k ∑ n k 1 x p ∈ F k ∑ log ( ∑ j = 1 K n j 1 ∑ x ∈ F j e γ x T x ( k ) e γ x p T x ( k ) ) = K 1 k = 1 ∑ K n k 1 x ( k ) ∈ F k ∑ n k 1 x p ∈ F k ∑ log j = 1 ∑ K n j 1 x ∈ F j ∑ e γ x T x ( k ) − γ x p T x ( k ) = K 1 k = 1 ∑ K n k 1 x ( k ) ∈ F k ∑ log j = 1 ∑ K n j 1 x ∈ F j ∑ e γ x T x ( k ) − n k 1 x p ∈ F k ∑ γ x p T x ( k ) = K 1 k = 1 ∑ K n k 1 x ( k ) ∈ F k ∑ log j = 1 ∑ K n j 1 x ∈ F j ∑ e γ x T x ( k ) − log exp n k 1 x p ∈ F k ∑ γ x p T x ( k ) ≥ K 1 k = 1 ∑ K n k 1 x ( k ) ∈ F k ∑ log j = 1 ∑ K exp n j 1 x ∈ F j ∑ γ x T x ( k ) − log exp n k 1 x p ∈ F k ∑ γ x p T x ( k ) = K 1 k = 1 ∑ K n k 1 x ( k ) ∈ F k ∑ log 1 + j = 1 j = k ∑ K exp n j 1 x ∈ F j ∑ γ x T x ( k ) − n k 1 x p ∈ F k ∑ γ x p T x ( k ) ≥ K 1 k = 1 ∑ K n k 1 x ( k ) ∈ F k ∑ log 1 + ( K − 1 ) exp K − 1 1 j = 1 j = k ∑ K n j 1 x ∈ F j ∑ γ x T x ( k ) − n k 1 x p ∈ F k ∑ γ x p T x ( k )
= 1 K ∑ k = 1 K 1 n k ∑ x ( k ) ∈ F k log { c 1 1 + c 1 1 + c 1 c 1 + 1 + c 1 1 + c 1 ( K − 1 ) exp [ 1 K − 1 ∑ j = 1 j ≠ k K ( 1 n j ∑ x ∈ F j γ x T x ( k ) − 1 n k ∑ x p ∈ F k γ x p T x ( k ) ) ] } ≥ 1 K ∑ k = 1 K 1 n k ∑ x ( k ) ∈ F k { c 1 1 + c 1 log ( 1 + c 1 c 1 ) + 1 1 + c 1 log ( ( 1 + c 1 ) ( K − 1 ) exp [ 1 K − 1 ∑ j = 1 j ≠ k K ( 1 n j ∑ x ∈ F j γ x T x ( k ) − 1 n k ∑ x p ∈ F k γ x p T x ( k ) ) ] ) } = 1 K ∑ k = 1 K 1 n k ∑ x ( k ) ∈ F k 1 K − 1 ∑ j = 1 j ≠ k K ( 1 n j ∑ x ∈ F j γ x T x ( k ) − 1 n k ∑ x p ∈ F k γ x p T x ( k ) ) + c 1 1 + c 1 log ( 1 + c 1 c 1 ) + 1 1 + c 1 log [ ( 1 + c 1 ) ( K − 1 ) ] , \begin{aligned}
&= \frac{1}{K}\sum_{k=1}^{K}\frac{1}{n_k}\sum_{x^{(k)}\in F_k}\log\left\{\frac{c_1}{1+c_1}\frac{1+c_1}{c_1}+\frac{1+c_1}{1+c_1}(K-1)\exp\left[\frac{1}{K-1}\sum_{\substack{j=1\\j\ne k}}^{K}\left(\frac{1}{n_j}\sum_{x\in F_j}\gamma x^{\mathsf{T}}x^{(k)}-\frac{1}{n_k}\sum_{x_p\in F_k}\gamma x_p^{\mathsf{T}}x^{(k)}\right)\right]\right\}\\
&\ge\frac{1}{K}\sum_{k=1}^{K}\frac{1}{n_k}\sum_{x^{(k)}\in F_k}\left\{\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)\exp\left[\frac{1}{K-1}\sum_{\substack{j=1\\j\ne k}}^{K}\left(\frac{1}{n_j}\sum_{x\in F_j}\gamma x^{\mathsf{T}}x^{(k)}-\frac{1}{n_k}\sum_{x_p\in F_k}\gamma x_p^{\mathsf{T}}x^{(k)}\right)\right]\right)\right\}\\
&= \frac{1}{K}\sum_{k=1}^{K}\frac{1}{n_k}\sum_{x^{(k)}\in F_k}\frac{1}{K-1}\sum_{\substack{j=1\\j\ne k}}^{K}\left(\frac{1}{n_j}\sum_{x\in F_j}\gamma x^{\mathsf{T}}x^{(k)}-\frac{1}{n_k}\sum_{x_p\in F_k}\gamma x_p^{\mathsf{T}}x^{(k)}\right)\\
&\qquad+\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],
\end{aligned} = K 1 k = 1 ∑ K n k 1 x ( k ) ∈ F k ∑ log ⎩ ⎨ ⎧ 1 + c 1 c 1 c 1 1 + c 1 + 1 + c 1 1 + c 1 ( K − 1 ) exp K − 1 1 j = 1 j = k ∑ K n j 1 x ∈ F j ∑ γ x T x ( k ) − n k 1 x p ∈ F k ∑ γ x p T x ( k ) ⎭ ⎬ ⎫ ≥ K 1 k = 1 ∑ K n k 1 x ( k ) ∈ F k ∑ ⎩ ⎨ ⎧ 1 + c 1 c 1 log ( c 1 1 + c 1 ) + 1 + c 1 1 log ( 1 + c 1 ) ( K − 1 ) exp K − 1 1 j = 1 j = k ∑ K n j 1 x ∈ F j ∑ γ x T x ( k ) − n k 1 x p ∈ F k ∑ γ x p T x ( k ) ⎭ ⎬ ⎫ = K 1 k = 1 ∑ K n k 1 x ( k ) ∈ F k ∑ K − 1 1 j = 1 j = k ∑ K n j 1 x ∈ F j ∑ γ x T x ( k ) − n k 1 x p ∈ F k ∑ γ x p T x ( k ) + 1 + c 1 c 1 log ( c 1 1 + c 1 ) + 1 + c 1 1 log [ ( 1 + c 1 ) ( K − 1 ) ] ,
where the first inequality is derived from the convexity of e x e^x e x and it becomes an equality if and only if
γ x T x ( k ) = γ x ^ T x ( k ) , ∀ x , x ^ ∈ F j , ∀ x ( k ) ∈ F k , ∀ j , k ∈ [ K ] , (179) \gamma x^{\mathsf{T}}x^{(k)}=\gamma\hat{x}^{\mathsf{T}}x^{(k)},\qquad\forall x,\hat{x}\in F_j,\ \forall x^{(k)}\in F_k,\ \forall j,k\in[K], \tag*{(179)} γ x T x ( k ) = γ x ^ T x ( k ) , ∀ x , x ^ ∈ F j , ∀ x ( k ) ∈ F k , ∀ j , k ∈ [ K ] , (179)
the second inequality is derived from the convexity of e x e^x e x and it becomes an equality if and only if
1 n j ∑ x ∈ F j γ x T x ( k ) − 1 n k ∑ x p ∈ F k γ x p T x ( k ) = 1 n j ′ ∑ x ∈ F j ′ γ x T x ( k ) − 1 n k ∑ x p ∈ F k γ x p T x ( k ) \frac{1}{n_j}\sum_{x\in F_j}\gamma x^{\mathsf{T}}x^{(k)}-\frac{1}{n_k}\sum_{x_p\in F_k}\gamma x_p^{\mathsf{T}}x^{(k)}
=
\frac{1}{n_{j'}}\sum_{x\in F_{j'}}\gamma x^{\mathsf{T}}x^{(k)}-\frac{1}{n_k}\sum_{x_p\in F_k}\gamma x_p^{\mathsf{T}}x^{(k)} n j 1 x ∈ F j ∑ γ x T x ( k ) − n k 1 x p ∈ F k ∑ γ x p T x ( k ) = n j ′ 1 x ∈ F j ′ ∑ γ x T x ( k ) − n k 1 x p ∈ F k ∑ γ x p T x ( k )
⟺ γ x T x ( k ) − γ x p T x ( k ) = γ x ^ T x ^ ( k ) − γ x ^ p T x ^ ( k ) , ∀ x ∈ F j , x ^ ∈ F j ′ , ∀ x p , x ( k ) , x ^ p , x ^ ( k ) ∈ F k , ∀ k ∈ [ K ] , ∀ j , j ′ ≠ k ∈ [ K ] , (180) \Longleftrightarrow\quad
\gamma x^{\mathsf{T}}x^{(k)}-\gamma x_p^{\mathsf{T}}x^{(k)}
=
\gamma\hat{x}^{\mathsf{T}}\hat{x}^{(k)}-\gamma\hat{x}_p^{\mathsf{T}}\hat{x}^{(k)},\qquad
\forall x\in F_j,\hat{x}\in F_{j'},\ \forall x_p,x^{(k)},\hat{x}_p,\hat{x}^{(k)}\in F_k,\ \forall k\in[K],\ \forall j,j'\ne k\in[K], \tag*{(180)} ⟺ γ x T x ( k ) − γ x p T x ( k ) = γ x ^ T x ^ ( k ) − γ x ^ p T x ^ ( k ) , ∀ x ∈ F j , x ^ ∈ F j ′ , ∀ x p , x ( k ) , x ^ p , x ^ ( k ) ∈ F k , ∀ k ∈ [ K ] , ∀ j , j ′ = k ∈ [ K ] , (180)
and the third inequality is derived from the convexity of log x \log x log x and it becomes an equality if and only if
1 + c 1 c 1 = ( 1 + c 1 ) ( K − 1 ) exp [ 1 K − 1 ∑ j = 1 j ≠ k K ( 1 n j ∑ x ∈ F j γ x T x ( k ) − 1 n k ∑ x p ∈ F k γ x p T x ( k ) ) ] \frac{1+c_1}{c_1}
=
(1+c_1)(K-1)\exp\left[\frac{1}{K-1}\sum_{\substack{j=1\\j\ne k}}^{K}\left(\frac{1}{n_j}\sum_{x\in F_j}\gamma x^{\mathsf{T}}x^{(k)}-\frac{1}{n_k}\sum_{x_p\in F_k}\gamma x_p^{\mathsf{T}}x^{(k)}\right)\right] c 1 1 + c 1 = ( 1 + c 1 ) ( K − 1 ) exp K − 1 1 j = 1 j = k ∑ K n j 1 x ∈ F j ∑ γ x T x ( k ) − n k 1 x p ∈ F k ∑ γ x p T x ( k )
⟺ c 1 = { ( K − 1 ) exp [ 1 K − 1 ∑ j = 1 j ≠ k K ( 1 n j ∑ x ∈ F j γ x T x ( k ) − 1 n k ∑ x p ∈ F k γ x p T x ( k ) ) ] } − 1 . (181) \Longleftrightarrow\quad
c_1=
\left\{(K-1)\exp\left[\frac{1}{K-1}\sum_{\substack{j=1\\j\ne k}}^{K}\left(\frac{1}{n_j}\sum_{x\in F_j}\gamma x^{\mathsf{T}}x^{(k)}-\frac{1}{n_k}\sum_{x_p\in F_k}\gamma x_p^{\mathsf{T}}x^{(k)}\right)\right]\right\}^{-1}. \tag*{(181)} ⟺ c 1 = ⎩ ⎨ ⎧ ( K − 1 ) exp K − 1 1 j = 1 j = k ∑ K n j 1 x ∈ F j ∑ γ x T x ( k ) − n k 1 x p ∈ F k ∑ γ x p T x ( k ) ⎭ ⎬ ⎫ − 1 . (181)
Furthermore,
f s o f t ( F ) ≥ 1 K ∑ k = 1 K 1 n k ∑ x ( k ) ∈ F k 1 K − 1 ∑ j = 1 , j ≠ k K ( 1 n j ∑ x ∈ F j γ x T x ( k ) − 1 n k ∑ x p ∈ F k γ x p T x ( k ) ) + C = 1 K ∑ k = 1 K 1 n k ∑ x ( k ) ∈ F k 1 K − 1 ( ∑ j = 1 K 1 n j ∑ x ∈ F j γ x T x ( k ) − K 1 n k ∑ x p ∈ F k γ x p T x ( k ) ) + C = 1 K 1 K − 1 ∑ k = 1 K 1 n k ∑ x ( k ) ∈ F k ∑ j = 1 K 1 n j ∑ x ∈ F j γ x T x ( k ) − 1 K − 1 ∑ k = 1 K 1 n k ∑ x ( k ) ∈ F k 1 n k ∑ x p ∈ F k γ x p T x ( k ) + C = K K − 1 γ ∥ 1 K ∑ k = 1 K 1 n k ∑ x ( k ) ∈ F k x ( k ) ∥ 2 − 1 K − 1 ∑ k = 1 K 1 n k ∑ x ( k ) ∈ F k 1 n k ∑ x p ∈ F k γ x p T x ( k ) + C ≥ K K − 1 γ ∥ x ~ ∥ 2 − K K − 1 γ + C ≥ − K K − 1 γ + C , (182) \begin{aligned}
f_{\mathrm{soft}}(\mathcal{F}) &\ge\frac{1}{K}\sum_{k=1}^{K}\frac{1}{n_k}\sum_{x^{(k)}\in\mathcal{F}_k}\frac{1}{K-1}\sum_{j=1,j\ne k}^{K}\left(\frac{1}{n_j}\sum_{x\in\mathcal{F}_j}\gamma x^{\mathsf{T}}x^{(k)}-\frac{1}{n_k}\sum_{x_p\in\mathcal{F}_k}\gamma x_p^{\mathsf{T}}x^{(k)}\right)+C\\
&=\frac{1}{K}\sum_{k=1}^{K}\frac{1}{n_k}\sum_{x^{(k)}\in\mathcal{F}_k}\frac{1}{K-1}\left(\sum_{j=1}^{K}\frac{1}{n_j}\sum_{x\in\mathcal{F}_j}\gamma x^{\mathsf{T}}x^{(k)}-K\frac{1}{n_k}\sum_{x_p\in\mathcal{F}_k}\gamma x_p^{\mathsf{T}}x^{(k)}\right)+C\\
&=\frac{1}{K}\frac{1}{K-1}\sum_{k=1}^{K}\frac{1}{n_k}\sum_{x^{(k)}\in\mathcal{F}_k}\sum_{j=1}^{K}\frac{1}{n_j}\sum_{x\in\mathcal{F}_j}\gamma x^{\mathsf{T}}x^{(k)}\\
&\quad-\frac{1}{K-1}\sum_{k=1}^{K}\frac{1}{n_k}\sum_{x^{(k)}\in\mathcal{F}_k}\frac{1}{n_k}\sum_{x_p\in\mathcal{F}_k}\gamma x_p^{\mathsf{T}}x^{(k)}+C\\
&=\frac{K}{K-1}\gamma\left\|\frac{1}{K}\sum_{k=1}^{K}\frac{1}{n_k}\sum_{x^{(k)}\in\mathcal{F}_k}x^{(k)}\right\|^2\\
&\quad-\frac{1}{K-1}\sum_{k=1}^{K}\frac{1}{n_k}\sum_{x^{(k)}\in\mathcal{F}_k}\frac{1}{n_k}\sum_{x_p\in\mathcal{F}_k}\gamma x_p^{\mathsf{T}}x^{(k)}+C\\
&\ge\frac{K}{K-1}\gamma\|\tilde{x}\|^2-\frac{K}{K-1}\gamma+C\\
&\ge-\frac{K}{K-1}\gamma+C, \tag*{(182)}
\end{aligned} f soft ( F ) ≥ K 1 k = 1 ∑ K n k 1 x ( k ) ∈ F k ∑ K − 1 1 j = 1 , j = k ∑ K n j 1 x ∈ F j ∑ γ x T x ( k ) − n k 1 x p ∈ F k ∑ γ x p T x ( k ) + C = K 1 k = 1 ∑ K n k 1 x ( k ) ∈ F k ∑ K − 1 1 j = 1 ∑ K n j 1 x ∈ F j ∑ γ x T x ( k ) − K n k 1 x p ∈ F k ∑ γ x p T x ( k ) + C = K 1 K − 1 1 k = 1 ∑ K n k 1 x ( k ) ∈ F k ∑ j = 1 ∑ K n j 1 x ∈ F j ∑ γ x T x ( k ) − K − 1 1 k = 1 ∑ K n k 1 x ( k ) ∈ F k ∑ n k 1 x p ∈ F k ∑ γ x p T x ( k ) + C = K − 1 K γ K 1 k = 1 ∑ K n k 1 x ( k ) ∈ F k ∑ x ( k ) 2 − K − 1 1 k = 1 ∑ K n k 1 x ( k ) ∈ F k ∑ n k 1 x p ∈ F k ∑ γ x p T x ( k ) + C ≥ K − 1 K γ ∥ x ~ ∥ 2 − K − 1 K γ + C ≥ − K − 1 K γ + C , (182)
where x ~ = 1 K ∑ k = 1 K x ˉ k = 1 K ∑ k = 1 K 1 n k ∑ x ( k ) ∈ F k x ( k ) \tilde{x}=\frac{1}{K}\sum_{k=1}^{K}\bar{x}_k=\frac{1}{K}\sum_{k=1}^{K}\frac{1}{n_k}\sum_{x^{(k)}\in\mathcal{F}_k}x^{(k)} x ~ = K 1 ∑ k = 1 K x ˉ k = K 1 ∑ k = 1 K n k 1 ∑ x ( k ) ∈ F k x ( k ) , the second inequality becomes an equality if and only if
x p = x ( k ) , ∀ x , x p ∈ F k , ∀ k ∈ [ K ] , (183) x_p=x^{(k)},\quad\forall x,x_p\in\mathcal{F}_k,\ \forall k\in[K], \tag*{(183)} x p = x ( k ) , ∀ x , x p ∈ F k , ∀ k ∈ [ K ] , (183)
and the third inequality becomes an equality if and only if
x ~ = 1 K ∑ k = 1 K x ˉ k = 0. (184) \tilde{x}=\frac{1}{K}\sum_{k=1}^{K}\bar{x}_k=0. \tag*{(184)} x ~ = K 1 k = 1 ∑ K x ˉ k = 0. (184)
From Eq. (S.160), one can deduce Eq. (S.154), from Eq. (S.161), one can deduce Eq. (S.155), and they are compatible with Eq. (S.156) and Eq. (S.157), which completes the proof.