Towards Regularized Mixture of Predictions for Class-Imbalanced Semi-Supervised Facial Expression Recognition
Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. Main Track. Pages 1377-1385.
https://doi.org/10.24963/ijcai.2025/154
Keywords
- Computer Vision: CV: Transfer, low-shot, semi- and un- supervised learning
- Computer Vision: CV: Biometrics, face, gesture and pose recognition
- Humans and AI: HAI: Human-computer interaction
Abstract
Semi-supervised facial expression recognition (SSFER) effectively assigns pseudo-labels to confident unlabeled samples when only limited emotional annotations are available. Existing SSFER methods are typically built upon an assumption of the class-balanced distribution. However, they are far from real-world applications due to biased pseudo-labels caused by class imbalance. To alleviate this issue, we propose Regularized Mixture of Predictions (ReMoP), a simple yet effective method to generate high-quality pseudo-labels for imbalanced samples. Specifically, we first integrate feature similarity into the linear prediction to learn a mixture of predictions. Furthermore, we introduce a class regularization term that constrains the feature geometry to mitigate imbalance bias. Being practically simple, our method can be integrated with existing semi-supervised learning and SSFER methods to tackle the challenge associated with class-imbalanced SSFER effectively. Extensive experiments on four facial expression datasets demonstrate the effectiveness of the proposed method across various imbalanced conditions. The source code is made publicly available at https://github.com/hangyu94/ReMoP.
- [Barsoum et al., 2016] Emad Barsoum, Cha Zhang, Cris- tian Canton Ferrer, and Zhengyou Zhang. Training deep networks for facial expression recognition with crowd- sourced label distribution. In ICMI, pages 279-283, 2016.
- [Cubuk et al., 2020] Ekin D Cubuk, Barret Zoph, Jonathon Shlens, and Quoc V Le. Randaugment: Practical auto- mated data augmentation with a reduced search space. In CVPR Workshops, pages 702-703, 2020.
- [Du et al., 2023] Zhongjing Du, Xu Jiang, Peng Wang, Qizheng Zhou, Xi Wu, Jiliu Zhou, and Yan Wang. Lion: label disambiguation for semi-supervised facial expression recognition with progressive negative learning. In IJCAI, pages 699-707, 2023. IJCAI
- [Fang et al., 2021] Cong Fang, Hangfeng He, Qi Long, and Weijie J. Su. Exploring deep neural networks via layer- peeled model: Minority collapse in imbalanced train- ing. Proceedings of the National Academy of Sciences, 118(43):e2103091118, 2021.
- [Florea et al., 2020] Corneliu Florea, Mihai Badea, Laura Florea, Andrei Racoviteanu, and Constantin Vertan. Margin-mix: Semi-supervised learning for face expression recognition. In ECCV, pages 1-17, 2020.
- [Guo and Li, 2022] Lanzhe Guo and Yufeng Li. Class- imbalanced semi-supervised learning with adaptive thresholding. In ICML, pages 8082-8094, 2022.
- [Guo et al., 2016] Yandong Guo, Lei Zhang, Yuxiao Hu, Xi- aodong He, and Jianfeng Gao. Ms-celeb-1m: A dataset and benchmark for large-scale face recognition. In ECCV, pages 87-102, 2016.
- [He et al., 2016] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recog- nition. In CVPR, pages 770-778, 2016.
- [Jiang and Deng, 2023] Jing Jiang and Weihong Deng. Boosting facial expression recognition by a semi- supervised progressive teacher. IEEE Transactions on Af- fective Computing, 14(3):2402-2414, 2023.
- [Kim et al., 2020] Jaehyung Kim, Youngbum Hur, Sejun Park, Eunho Yang, Sung Ju Hwang, and Jinwoo Shin. Dis- tribution aligning refinery of pseudo-label for imbalanced semi-supervised learning. In NeurIPS, pages 14567- 14579, 2020.
- [Lee and Kim, 2024] Hyuck Lee and Heeyoung Kim. Cd- mad: Class-distribution-mismatch-aware debiasing for class-imbalanced semi-supervised learning. In CVPR, pages 23891-23900, 2024.
- [Lee et al., 2021] Hyuck Lee, Seungjae Shin, and Heey- oung Kim. Abc: Auxiliary balanced classifier for class- imbalanced semi-supervised learning. In NeurIPS, pages 7082-7094, 2021.
- [Lee, 2013] Dong-Hyun Lee. Pseudo-label: The simple and efficient semi-supervised learning method for deep neural networks. In ICML Workshop on Challenges in Represen- tation Learning, page 896, 2013.
- [Li and Deng, 2019] Shan Li and Weihong Deng. Reliable crowdsourcing and deep locality-preserving learning for unconstrained facial expression recognition. IEEE Trans- actions on Image Processing, 28(1):356-370, 2019.
- [Li and Deng, 2022] Shan Li and Weihong Deng. Deep fa- cial expression recognition: A survey. IEEE Transactions on Affective Computing, 13(3):1195-1215, 2022.
- [Li et al., 2019] Yong Li, Jiabei Zeng, Shiguang Shan, and Xilin Chen. Occlusion aware facial expression recognition using cnn with attention mechanism. IEEE Transactions on Image Processing, 28(5):2439-2450, 2019.
- [Li et al., 2021] Hangyu Li, Nannan Wang, Xinpeng Ding, Xi Yang, and Xinbo Gao. Adaptively learning facial ex- pression representation via cf labels and distillation. IEEE Transactions on Image Processing, 30:2016-2028, 2021.
- [Li et al., 2022] Hangyu Li, Nannan Wang, Xi Yang, Xiaoyu Wang, and Xinbo Gao. Towards semi-supervised deep facial expression recognition with an adaptive confidence margin. In CVPR, pages 4166-4175, 2022.
- [Li et al., 2024] Hangyu Li, Nannan Wang, Xi Yang, Xi- aoyu Wang, and Xinbo Gao. Unconstrained facial expres- sion recognition with no-reference de-elements learning. IEEE Transactions on Affective Computing, 15(1):173- 185, 2024.
- [Lucey et al., 2010] Patrick Lucey, Jeffrey F. Cohn, Takeo Kanade, Jason Saragih, Zara Ambadar, and Iain Matthews. The extended cohn-kanade dataset (ck+): A complete dataset for action unit and emotion-specified expression. In CVPR Workshops, pages 94-101, 2010.
- [Ma et al., 2024] Chengcheng Ma, Ismail Elezi, Jiankang Deng, Weiming Dong, and Changsheng Xu. Three heads are better than one: Complementary experts for long-tailed semi-supervised learning. In AAAI, pages 14229-14237, 2024.
- [Menon et al., 2021] Aditya Krishna Menon, Sadeep Jaya- sumana, Ankit Singh Rawat, Himanshu Jain, Andreas Veit, and Sanjiv Kumar. Long-tail learning via logit ad- justment. In ICLR, pages 1-24, 2021.
- [Mollahosseini et al., 2017] Ali Mollahosseini, Behzad Hasani, and Mohammad H Mahoor. Affectnet: A database for facial expression, valence, and arousal computing in the wild. IEEE Transactions on Affective Computing, 10(1):18-31, 2017.
- [Oh et al., 2022] Youngtaek Oh, Dong-Jin Kim, and In So Kweon. Daso: Distribution-aware semantics-oriented pseudo-label for imbalanced semi-supervised learning. In CVPR, pages 9786-9796, 2022.
- [Papyan et al., 2020] Vardan Papyan, XY Han, and David L Donoho. Prevalence of neural collapse during the terminal phase of deep learning training. Proceedings of the Na- tional Academy of Sciences, 117(40):24652-24663, 2020.
- [Roy and Etemad, 2024] Shuvendu Roy and Ali Etemad. Exploring the boundaries of semi-supervised facial expres- sion recognition using in-distribution, out-of-distribution, and unconstrained data. IEEE Transactions on Affective Computing, 2024.
- [Ruan et al., 2021] Delian Ruan, Yan Yan, Shenqi Lai, Zhen- hua Chai, Chunhua Shen, and Hanzi Wang. Feature de- composition and reconstruction learning for effective fa- cial expression recognition. In CVPR, pages 7660-7669, 2021.
- [Sohn et al., 2020] Kihyuk Sohn, David Berthelot, Nicholas Carlini, Zizhao Zhang, Han Zhang, Colin A Raffel, Ekin Dogus Cubuk, Alexey Kurakin, and Chunliang Li. Fixmatch: Simplifying semi-supervised learning with con- sistency and confidence. In NeurIPS, pages 596-608, 2020.
- [Tarvainen and Valpola, 2017] Antti Tarvainen and Harri Valpola. Mean teachers are better role models: Weight- averaged consistency targets improve semi-supervised deep learning results. In NIPS, pages 1195-1204, 2017.
- [Van der Maaten and Hinton, 2008] Laurens Van der Maaten and Geoffrey Hinton. Visualizing data using t-sne. Journal of machine learning research, 9(11):2579-2605, 2008.
- [Wang et al., 2020] Kai Wang, Xiaojiang Peng, Jianfei Yang, Shijian Lu, and Yu Qiao. Suppressing uncertainties for large-scale facial expression recognition. In CVPR, pages 6897-6906, 2020.
- [Wei and Gan, 2023] Tong Wei and Kai Gan. Towards real- istic long-tailed semi-supervised learning: Consistency is all you need. In CVPR, pages 3469-3478, 2023.
- [Wei et al., 2021] Chen Wei, Kihyuk Sohn, Clayton Mellina, Alan Yuille, and Fan Yang. Crest: A class-rebalancing self-training framework for imbalanced semi-supervised learning. In CVPR, pages 10857-10866, 2021.
- [Wen et al., 2016] Yandong Wen, Kaipeng Zhang, Zhifeng Li, and Yu Qiao. A discriminative feature learning ap- proach for deep face recognition. In ECCV, pages 499- 515, 2016.
- [Wu and Cui, 2023] Zhiyu Wu and Jinshi Cui. La-net: Landmark-aware learning for reliable facial expression recognition under label noise. In ICCV, pages 20698- 20707, 2023.
- [Xue et al., 2021] Fanglei Xue, Qiangchang Wang, and Guodong Guo. Transfer: Learning relation-aware facial expression representations with transformers. In ICCV, pages 3601-3610, 2021.
- [Yang et al., 2022] Yibo Yang, Shixiang Chen, Xiangtai Li, Liang Xie, Zhouchen Lin, and Dacheng Tao. Inducing neural collapse in imbalanced learning: Do we really need a learnable classifier at the end of deep neural network? In NeurIPS, pages 37991-38002, 2022.
- [Yu et al., 2023] Zhuoran Yu, Yin Li, and Yong Jae Lee. InPL: Pseudo-labeling the inliers first for imbalanced semi-supervised learning. In ICLR, pages 1-17, 2023.
- [Zeng et al., 2022] Dan Zeng, Zhiyuan Lin, Xiao Yan, Yut- ing Liu, Fei Wang, and Bo Tang. Face2exp: Combating data biases for facial expression recognition. In CVPR, pages 20291-20300, 2022.
- [Zhang et al., 2016] Kaipeng Zhang, Zhanpeng Zhang, Zhifeng Li, and Yu Qiao. Joint face detection and align- ment using multitask cascaded convolutional networks. IEEE Signal Processing Letters, 23(10):1499-1503, 2016.
- [Zhang et al., 2021] Yuhang Zhang, Chengrui Wang, and Weihong Deng. Relative uncertainty learning for facial expression recognition. In NeurIPS, pages 17616-17627, 2021.
- [Zhang et al., 2023] Yuhang Zhang, Yaqi Li, Lixiong Qin, Xuannan Liu, and Weihong Deng. Leave no stone un- turned: Mine extra knowledge for imbalanced facial ex- pression recognition. In NeurIPS, pages 14414-14426, 2023.
References were extracted automatically from the PDF and may contain errors.
Full text extracted automatically from the PDF; figures, tables and equations may differ. The PDF is the version of record.
1 Introduction
Facial expressions, a fundamental form of non-verbal communication, are crucial for human-to-human and humancomputer interactions [Li and Deng, 2022]. Recently, some semi-supervised facial expression recognition (SSFER) algorithms [Florea et al., 2020; Li et al., 2022; Roy and Etemad, 2024] have been proposed to improve model performance by assigning pseudo-labels to a large number of confident unlabeled samples. A common assumption is that the class distribution of the constructed semi-supervised facial expression datasets is balanced, meaning the number of facial expression samples in each class is nearly equal. However, this assumption may be unsatisfactory in realistic scenarios, as the class distributions in most facial expression datasets are imbalanced [Li et al., 2021; Zhang et al., 2023].
∗Corresponding author

It is well known that the model trained on class-imbalanced labeled samples is biased towards the majority classes [Menon et al., 2021], for example, Happiness and Neutral in FER. This issue can be further exacerbated for existing semi-supervised learning (SSL) methods, since the pseudolabels assigned to confident unlabeled samples may also be biased, leading to an even more severely imbalanced training set. However, traditional class-imbalanced learning methods, usually designed for labeled samples, cannot be easily combined with SSL methods [Lee et al., 2021]. Therefore, to better facilitate real-world scenarios, we aim to design an SSFER
anced samples, which has not yet been thoroughly explored.
Recently, some SSL methods [Lee et al., 2021; Guo and Li, 2022; Ma et al., 2024] combat the biased pseudo-labels caused by class imbalance at the level of linear prediction, but they often overlook the impact of feature similarity. This oversight becomes more exacerbated in FER, where the main challenge is significant intra-class variations and inter-class similarities at the feature level [Li et al., 2019; Ruan et al., 2021]. In this context, feature similarity and linear prediction are crucial for generating high-quality pseudolabels. To this end, we first examine the effects of linear prediction and feature similarity on pseudo-label quality. There are three sources that guide the model to pseudo-label unlabeled samples: one from a linear classifier, one from a feature classifier (e.g., a collection of class centers [Wen et al.,
2016]), and one from the combination of both classifiers. As shown in Figure 1(b), we observe that the mixed manner consistently enhances the quality of pseudo-labels with higher F1 scores than others. This observation provides excellent insights into learning unlabeled facial expression samples by considering feature and linear prediction levels.
In this paper, we propose a simple yet effective method for class-imbalanced SSFER with a regularized mixture of predictions, which performs a reliable way to generate pseudolabels for imbalanced samples. Specifically, we first use a feature classifier to learn a feature prediction, reflecting the feature similarity between a facial expression feature and the class centers [Wen et al., 2016]. Meanwhile, a linear classifier projects the feature to a linear prediction. We then merge the linear and feature ones into a mixture of predictions to generate a high-quality pseudo-label for an unlabeled sample. However, merely combining these two predictions cannot fully mitigate the bias from the class imbalance issue. To overcome this challenge, inspired by neural collapse [Papyan et al., 2020], we introduce a class regularization term into the feature classifier that constrains the geometry of the feature distribution. This ensures the discriminative power of facial expression features with an explicit inter-class boundary. Furthermore, our method is effective in classifying facial expressions during the inference stage. Overall, the main contributions of this work can be summarized as follows:
- To the best of our knowledge, this is the first practical solution for class-imbalanced semi-supervised facial expression recognition. As a plug-and-play solution, it exhibits strong transferability across various SSL and SSFER methods like FixMatch and Ada-CM.
- We design a mixture of predictions to generate highquality pseudo-labels and enhance inference performance. In addition, we introduce a class regularization term to improve the discriminative power of features.
- Extensive experiments on four challenging datasets demonstrate the superiority of our method under various imbalanced settings, compared to the state-of-the-art class-imbalanced SSL algorithms.
2 RelatedWork
Facial Expression Recognition. An underlying objective of Facial Expression Recognition (FER) is to extract discriminative facial expression features along with a linear classifier for predicted class distributions. In deep learning, numerous FER methods have been proposed under this paradigm [Li et al., 2024]. Typically, Li et al. [2019] proposed classifying facial expressions with attention mechanism from partiallyoccluded faces. Wang et al. [2020] proposed a suppressing method to overcome the uncertainty issue in FER. Xue et al. [2021] applied the Vision Transformers to explore the relation-aware facial expression features. Wu et al. [2023] leveraged facial landmarks to reduce the impact of noisy supervision. Until recently, the issue of class imbalance has also been widely explored in FER. For example, Li et al. [2021] designed an adaptive regular loss to re-weight the importance of different facial expression categories. Zeng et al. [2022]
leveraged large-scale unlabeled images to mitigate the data bias from class-imbalanced facial expression samples. Zhang et al. [2023] proposed to extract extra information related to the minority category from all training samples.
While most of these methods have achieved superior performance in a fully-supervised manner, they heavily consume a large number of labeled samples for the model's training. Unlike them, several methods have leveraged unlabeled samples to explore FER performance in a semi-supervised manner [Jiang and Deng, 2023]. Particularly, Florea et al. [2020] proposed to predict artificial labels of unlabeled samples by center embeddings. Li et al. [2022] designed an adaptive confidence margin to fully learn unlabeled samples. Du et al. [2023] further considered the label ambiguity issue among labeled samples and enhanced the learning on unlabeled samples. However, all these methods are designed under the balanced class distribution. To the best of our knowledge, we are the first to achieve SSFER with class-imbalanced facial expression samples.
Class-Imbalanced Semi-Supervised Learning. Recent semi-supervised learning (SSL) has a long history of research. A typical pipeline in SSL generates pseudo-labels for confident unlabeled samples using the model's outputs, which are used for supervised learning. Take the recent FixMatch [Sohn et al., 2020] as an example. Specifically, it generated pseudo-labels for unlabeled samples with highconfidence predictions above a pre-defined threshold, then leveraged their weak and strong augmentations to achieve consistency regularization. While these methods have seen success in the balanced class scenarios, they fail to improve the biased model's performance when encountering classimbalanced training samples.
To alleviate the above practical problem, class-imbalanced semi-supervised learning (CISSL) methods have garnered increasing attention in recent years [Oh et al., 2022; Wei and Gan, 2023; Lee and Kim, 2024]. For example, Kim et al. [2020] proposed softly refining the biased pseudo-labels by solving a convex optimization problem. Wei et al. [2021] selected more pseudo-labeled samples from minority categories to retrain the baseline SSL model. Lee et al. [2021] introduced an auxiliary balanced classifier in FixMatch to mitigate the class imbalance. Unlike the fixed confidence thresholding, Guo et al. [2022] selected pseudo-labeled samples based on the adaptive thresholds for different categories. Yu et al. [2023] introduced the concept of energy scores from out-ofdistribution detection to generate pseudo-labels for unlabeled samples, which can address the drawbacks of previous confidence scores. Very recently, Ma et al. [2024] proposed to model various class distributions by multiple experts trained with different logit adjustments. These methods mainly focus on the predictions from linear classifiers but ignore the importance of feature similarity. In contrast, we discover the solution of a regularized mixture of predictions for pseudolabeling class-imbalanced unlabeled samples.
3 Preliminary
The Neural Collapse (NC) [Papyan et al., 2020] reveals an intriguing phenomenon that during the terminal phase of training a deep classification model on the balanced dataset, the learned features of the same class will converge to their class centers. Meanwhile, these class centers will exhibit a simplex equiangular tight frame (ETF). The ETF structure can maximize the inter-class difference.

Definition 1 (Simplex Equiangular Tight Frame) For a Kclass classification problem, a simplex ETF is a collection of vectors mk ∈ Rd , k = 1, 2, ..., K if:
where M = [m1, ...,mK] ∈ Rd×K , d is the dimension of the vector, U ∈ Rd×K is an orthogonal matrix satisfying U⊤U = IK, IK is an identity matrix, and 1K ∈ RK is a vector of all ones.
Then, the vectors in a simplex ETF construct an optimal geometry for image classification, which have an equal l2 norm and the same pair-wise angle, i.e.,
where δk,t equals to 1 when k = t and 0 otherwise. The pairwise angle - 1 K-1 is the maximal equiangular separation of K vectors in the feature space Rd [Yang et al., 2022].
Based on the above definition, two important geometry properties derived from the neural collapse phenomenon can be formally summarized as: (NC1) Variability collapse. Intra-class variability of the last-layer features collapses to zero during the terminal phase of training, i.e., ||xi -hk|| = 0, where xi is i-th feature from class k, and hk is the center of class k; (NC2) Convergence to a simplex ETF. The normalized class centers, i.e., ˜hk = (hk-hG)/||hk-hG||, converge to a simplex ETF satisfying Eq. (2), where hG = Avgk{hk} is the global mean of all centers.
4 Method
4.1 ProblemFormulation
For a K-class imbalanced semi-supervised FER task, we have both a batch of labeled samples X = {(xi, yi)}Ni=1 and unlabeled samples U = {xuj }µN j=1 , where µ is a hyper-parameter to determine the relative ratio of X and U, and xi, xuj ∈ Rd are facial expression features for labeled and unlabeled samples, respectively. For the i-th labeled feature xi, it is associated with a ground-truth label yi ∈ {1, 2, ...,K}. Let Nk denote the number of labeled samples in class k, we assume that the classes are sorted in descending order, i.e. N1 ≥ N2 ≥ ... ≥ NK. The degree of class imbalance is defined as the imbalance ratio γ = N1 NK . Similarly, the same assumption for unlabeled samples exists in the CISSL setting. Considering that the training samples from existing facial expression datasets are inherently class-imbalanced [Zhang et al., 2023], we therefore preserve the natural effect of class imbalance on unlabeled samples.
A basic goal of class-imbalanced semi-supervised FER is to train a linear classifier Fl parameterized by θl using X and U. Specifically, let pl(y | x) = Fl(x; θl) be the linear prediction produced by the linear classifier for input x, there is an objective similar to FixMatch [Sohn et al., 2020], consisting of a supervised term and an unsupervised term:
where H is the cross-entropy loss, 1(·) is the indicator function, and τ is a threshold to decide whether or not to retain the pseudo-label. α(·) and A(·) denote the weakly-augmented operation and strongly-augmented operation, respectively. To obtain the pseudo-label ̂ yj = argmax k (yj), it is general to
compute the model's prediction for the weakly-augmented version of the unlabeled sample: yj = pl(y | α(xuj ))1 . In this regard, our work aims to enhance pseudo-label quality at the feature level.
4.2 The ProposedMethod
In class-imbalanced semi-supervised facial expression recognition, the core challenge is how to generate high-quality pseudo-labels for imbalanced facial expression samples. To address this issue, we propose a novel method, named Regularized Mixture of Predictions (ReMoP). In the following section, we will provide an overview of the proposed method and elaborate on key technologies.
Overview. Figure 2 depicts the framework of our proposed ReMoP method. Specifically, in each forward pass, a labeled sample and an unlabeled sample are input into the same encoder for their features using weakly-augmented (WA) and strongly-augmented (SA) operations. Then, we follow the standard SSL learner to project the WA labeled feature and the SA unlabeled feature to the linear predictions using a linear classifier. To generate high-quality pseudo-labels for unlabeled samples, we project the WA unlabeled feature to a mixture of predictions pm(y | α(xuj )), which combines a feature prediction from the feature classifier and a linear prediction from the linear classifier. Meanwhile, we select all labeled features and some unlabeled features with confidence scores higher than the threshold τ, to update the feature classifier. Finally, a class regularization term Lreg is introduced to constrain the geometry of the feature distribution.
Learning a mixture of predictions. In this work, we combine the linear prediction and the feature prediction (i.e., feature similarity). Instead of linear pseudo-labels in the existing SSL learner, we use a mixture of predictions to generate high-quality pseudo-labels for unlabeled samples. Specifically, given a linear classifier Fl, we first learn a linear prediction pl(y | α(xuj )) for a WA unlabeled feature α(xuj ). To execute the mixture of predictions, we initialize a feature classifier H ∈ Rd×K by
where hk ∈ Rd×1 denotes the center for the k-th class. Let ps(y | α(xuj )) be the feature prediction produced by the feature classifier, we normalize the feature and the k-th center hk for their similarity score as
Then, we combine the above two predictions and obtain a mixture of predictions as
1 In SSL, it is popular to generate a pseudo-label using the prediction on the weakly-augmented unlabeled sample, which is used to match the prediction on the strongly-augmented version.
Algorithm 1 ReMoP's main learning algorithm.
Input: A batch of labeled data X = {(xi, yi)}Ni=1 and unlabeled data U = {xuj }µN j=1 , number of epochs Emax, number of training iterations tmax, and the initial parameters θl and H.
Output: Updated parameters θl and H.
- 1: // Training
- 2: for e = 1, 2, ...,Emax do
- 3: for t = 1, 2, ..., tmax do
- 4: // Exploring labeled and unlabeled samples
- 5: Learn the linear prediction pl(y | α(xi)) for labeled sample xi using Fl.
- 6: Learn the mixture of predictions pm(y | α(xuj )) for unlabeled sample xuj by Eq. (6).
- 7: Generate the pseudo-label ̂ ye j by Eq. (7).
- 8: Update model parameters by Eq. (3).
- 9: // Learning a feature classifier
- 10: Update class centers using labeled features and confident unlabeled features by Lc.
- 11: Constrain the geometry of centers by Eq. (8).
- 12: end for
- 13: end for
- 14: // Testing
- 15: Deploy classifiers Fl and H for the mixture of predictions.
where β is a hyper-parameter to balance two predictions. Finally, we use the mixture of predictions to obtain an enhanced pseudo-label:
which is used to replace the linear pseudo-label for the unsupervised term in Eq. (3).
Class regularization term. As previously mentioned, the learning behavior of a classification model on balanced datasets is revealed by a neural collapse phenomenon [Papyan et al., 2020]. To be specific, when the model achieves zero training error rate, the learned features will collapse to their class centers, forming an interesting geometric structure (i.e., a simplex ETF) after being globally centered.
However, the model cannot exhibit the ideal structure on imbalanced datasets, resulting in the features of minority classes becoming indistinguishable [Fang et al., 2021]. To this end, we claim that the cosine similarity of any pairs of globally-centered vectors from H should be close to -1/(K - 1) in the imbalanced setting. In this way, we can maximally separate inter-class features. Specifically, we first update class centers [Wen et al., 2016] using labeled samples and confident unlabeled samples via the center loss Lc = 12 ∑ ||x -hy||22 , where hy denotes the y-th center related to the feature x. Then, we introduce a regularization term Lreg into the mixture of predictions to further mitigate the data bias from the class imbalance:
In summary, our method is optimized in an end-to-end process. It is flexible to be integrated into any standard SSL and SSFER frameworks. Finally, we have the following loss function for training:
where λ1 and λ2 are hyper-parameters to balance three terms' intensity. Note that Lbase takes the enhanced pseudo-labels in Eq. (7) as inputs.
Moreover, unlike the linear prediction from a linear classifier used in existing FER pipelines, we merge it to the feature similarity for a mixture of predictions during the testing stage. Specifically, for a testing feature xt , we deploy two classifiers Fl and H for the mixture of predictions pm(y | xt ). The whole progress of the proposed method is summarized in Algorithm 1.
5 Experiments
5.1 Datasets
We conduct experiments on four public facial expression datasets, including RAF-DB [Li and Deng, 2019], FERPlus [Barsoum et al., 2016], CK+ [Lucey et al., 2010], and AffectNet [Mollahosseini et al., 2017]. RAF-DB is a large-scale facial expression dataset with 29,672 real-world facial images, which are labeled by about 40 annotators into a singlelabel subset and a two-tab subset. In our experiments, we use the single-label subset with 12,271 training images and 3,068 testing images, including seven basic facial expression categories (i.e., surprise, fear, disgust, happiness, sadness, anger, and neutral). FERPlus provides the new eight-class labels (i.e., seven basic categories and contempt) created by 10 crowd-sourced annotators. It consists of 28,709 training images, 3,589 validation images, and 3,589 testing images. CK+ consists of 593 video sequences from 123 subjects. For a fair comparison, we follow [Li et al., 2022] to select each sequence's first frame and the last frame as the neutral face and the targeted facial expression, containing 636 facial images with seven basic categories. Different from the first three datasets, AffectNet is by far the largest in-the-wild facial expression dataset, containing more than 1M facial images but a large number of noisy labels. In our experiments, we choose about 287,651 manually annotated images with seven basic categories and the contempt category as inter-dataset unlabeled samples to evaluate the CISSL performance.
Following the setting in CISSL [Guo and Li, 2022], we use the imbalance ratio γ with the given N1 to construct the class-imbalanced training set. Specifically, we set the number of labeled samples in class k as Nk = N1 · γ- k-1 K-1 for 1 < k ≤ K. In this work, we design various combinations of γ and N1. Considering the imbalanced testing class distribution in RAF-DB, FERPlus, and CK+, we report the overall accuracy and the mean accuracy across all categories by default. Unless otherwise specified, we conduct experiments three times using different random seeds to obtain the mean and the standard deviation.
5.2 Implementation Details
We implement all experiments using the PyTorch toolbox with one NVIDIA A100 GPU. For the basic encoder, we use the ResNet-18 [He et al., 2016] pre-trained on the MS-Celeb1M face recognition dataset [Guo et al., 2016] for learning facial expression features. Besides, we use MTCNN [Zhang et al., 2016] to align and resize facial images to 224×224 pixels.
| Method | Strategy | RAF-DB | FERPlus | CK+ |
|---|---|---|---|---|
| H Lreg | N1 = 500 γ = 150 | N1 = 1000 γ = 150 | N1 = 500 γ = 150 | |
| - - ✓ | 73.50/ 49.10 | 76.75/ 49.51 | 77.36/ 55.42 | |
| Vanilla | - | 74.22/ 50.84 | 77.74/ 52.87 | 78.30/ 57.05 |
| ✓ ✓ | 75.13/ 52.16 | 78.08/ 53.24 | 79.09/ 57.67 | |
| FixMatch | - - ✓ - | 77.71/ 55.48 79.86/ 58.52 | 82.21/ 54.62 82.65/ 57.16 | 80.03/ 59.06 84.43/ |
| 63.51 | ||||
| ✓ ✓ | 81.29/ 60.93 | 83.67/ 58.77 | 85.69/ 66.69 |
During training, we follow [Li et al., 2022] to use RandomCrop and RandomHorizontalFlip as the weak augmentation strategy, and add RandAugment [Cubuk et al., 2020] as the strong augmentation strategy for a fair comparison. By default, we use the Adam optimizer. For RAF-DB and CK+, we train the model with a learning rate of 1e - 4, training epoch 100, and batch size 16. For FERPlus, due to a large number of training samples, we train the model with a learning rate of 1e - 4, training epoch 80, and batch size 32. The number of training iterations tmax is set to 1,000 in all experiments. The relative ratio µ is set to 1 except for AffectNet as 5. The hyper-parameter β in Eq. (6) is set to 0.5. Following FixMatch [Sohn et al., 2020], the default threshold τ is 0.95. In Eq. (9), the hyper-parameters λ1 and λ2 are set to 1e - 4 and 0.1, respectively.
5.3 Ablation Study
Effect of two modules in ReMoP. We examine the effectiveness of ReMoP in Table 1. Several observations can be summarized as follows: 1) Compared with the Vanilla-based baseline using a linear classifier (row 1), introducing a feature classifier for the mixture of predictions (row 2) consistently improves inference performance; 2) A significant improvement between rows 2 and 3 is achieved after introducing Lreg into H. Since the class regularization term is used to constrain the feature classifier for the geometry of feature distribution, it is reasonable to enhance the discriminative power of facial expression features; 3) The similar improvements (rows 4 to 6) are present in the learning of unlabeled samples as well. These results also verify that the proposed method effectively learns unlabeled facial expression samples at feature and linear prediction levels.
Effect of the mixture of predictions for testing samples. To eliminate the concern that the mixture of predictions is more effective in determining facial expression categories than the linear prediction during the testing stage, we conduct an ablation study to evaluate their difference. As shown in Figure 3, the mixture strategy consistently improves performance in each case. This contributes an important insight for FER to explore the impact of discriminative features.
Effect of varying hyper-parameter β. In Figure 4, we conduct an ablation study on RAF-DB to analyze the effect of different value β ∈ {0.1, 0.3, 0.5, 0.7, 0.9}. The hyperparameter β reflects the intensity of two predictions in the mixture of predictions. From the results, we can observe that when β is too large or too small, the performance decreases as the excessive importance of linear prediction or feature similarity hampers the quality of pseudo-labels. We fix β = 0.5 for all the experiments according to the experimental results. Effect of ReMoP on feature learning. As mentioned above, the proposed ReMoP constrains the geometry of the feature distribution. To verify this, we visualize the t-SNE distribution [Van der Maaten and Hinton, 2008] for facial expression features learned by FixMatch and FixMatch-based ReMoP. As shown in Figure 5, ReMoP helps construct a discriminative feature space, which can boost FER performance.
| RAF-DB | CK+ | |||
|---|---|---|---|---|
| Method | N1 = 2000 γ = 50 | N1 = 500 γ = 50 | N1 = 2000 γ = 150 | N1 = 500 γ = 150 |
| FixMatch [Sohn et al., 2020] w/ ReMoP | 85.31±0.21/ 72.19±0.54 86.85±0.07/ 76.92±0.08 | 80.99±0.33/ 64.46±1.05 83.15±0.60/ 71.12±0.02 | 83.18±1.34/ 67.76±0.67 85.06±0.68/ 69.10±0.90 | 79.93±2.05/ 57.92±4.86 84.70±0.77/ 65.90±0.65 |
| Ada-CM [Li et al., 2022] w/ ReMoP | 85.75±0.29/ 73.12±0.39 86.15±0.36/ 76.01±0.69 | 81.39±0.36/ 65.80±1.49 81.63±0.47/ 68.80±0.27 | 83.80±1.10/ 68.05±1.29 84.05±0.23/ 69.99±0.11 | 80.24±1.49/ 60.26±1.54 83.73±1.81/ 67.12±0.77 |


Effect of ReMoP using different SSL learners. In this work, we claim that the proposed method as a plug-andplay solution can be integrated into existing SSL and SSFER methods. To evaluate this, we conduct experiments using a typical SSL method (FixMatch) and an SSFER method (AdaCM). As shown in Table 2, using ReMoP further improves the performance on overall and mean accuracy in each case, demonstrating the ability of the proposed method to address the class-imbalanced issue in SSFER. In the following, we use FixMatch [Sohn et al., 2020] as the baseline SSL learner.

5.4 Comparison with State-of-the-Art Methods
In this section, based on the widely-used FixMatch method [Sohn et al., 2020], we compare the proposed method with some popular CISSL methods, including ABC [Lee et al., 2021], Adsh [Guo and Li, 2022], InPL [Yu et al., 2023], and CPE [Ma et al., 2024].
Intra-dataset evaluation. In this part, we assume that labeled and unlabeled samples come from the same dataset, that is, they are randomly divided from original training set.
As shown in Table 3, we compare the proposed ReMoP with state-of-the-art CISSL methods on RAF-DB under four different class distributions. From these results, we can see that 1) the proposed method can consistently improve the vanilla method, validating the effectiveness of ReMoP to leverage unlabeled samples for discriminative learning; 2) the proposed method achieves satisfactory performance, outperforming existing methods by a large margin in most cases. For example, given the setting of (N1, γ) = (2000, 150), the proposed ReMoP significantly outperforms the competitive Adsh [Guo and Li, 2022] by 1.80% and 3.34% on overall and average accuracy, respectively.
In addition, Table 4 compares the performance on CK+ and FERPlus under two different class distributions, respectively. We can see that the proposed ReMoP steadily and significantly outperforms the state-of-the-art CISSL methods. For example, ReMoP outperforms CPE [Ma et al., 2024] by 2.62% and 3.17% overall accuracy on FERPlus under two different settings, respectively. These results demonstrate the superiority of the proposed method in learning with classimbalanced samples.
| RAF-DB | ||||
|---|---|---|---|---|
| Method | N1 = 2000 γ = 50 | N1 = 2000 γ = 150 | N1 = 500 γ = 50 | N1 = 500 γ = 150 |
| Vanilla | 84.04±0.56/ 70.13±0.73 | 80.97±0.30/ 61.41±1.05 | 77.55±0.40/ 58.28±1.15 | 73.08±0.39/ 48.52±1.54 |
| FixMatch [Sohn et al., 2020] w/ ABC [Lee et al., 2021] w/ Adsh [Guo and Li, 2022] w/ InPL [Yu et al., 2023] w/ CPE [Ma et al., 2024] w/ ReMoP (Ours) | 85.31±0.21/ 72.19±0.54 85.93±0.33/ 73.85±0.11 86.15±0.54/ 74.19±1.30 85.86±0.16/ 73.44±0.21 85.40±0.24/ 78.21±0.23 86.85±0.07/ 76.92±0.08 | 82.39±0.52/ 65.15±1.19 83.25±0.52/ 68.40±0.94 83.24±0.59/ 67.94±1.33 82.94±0.27/ 67.31±0.49 83.80±0.65/ 73.02±0.23 85.04±0.18/ 71.28±0.69 | 80.99±0.33/ 64.46±1.05 82.63±0.03/ 68.07±0.76 82.55±0.16/ 68.22±1.16 82.19±0.15/ 67.41±0.94 80.66±0.43/ 70.61±0.01 83.15±0.60/ 71.12±0.02 | 77.33±0.27/ 53.88±1.13 78.90±0.53/ 58.78±1.34 80.12±0.31/ 62.52±0.85 78.74±0.23/ 58.28±1.63 78.25±0.35/ 62.90±1.86 81.42±0.36/ 64.89±2.84 |
| CK+ | FERPlus | |||
|---|---|---|---|---|
| Method | N1 = 2000 γ = 150 | N1 = 500 γ = 150 | N1 = 4000 γ = 150 | N1 = 1000 γ = 150 |
| Vanilla | 82.44±0.32/ 63.53±1.42 | 76.94±1.44/ 54.34±0.78 | 82.79±0.32/ 60.14±0.73 | 77.13±0.33/ 49.44±0.79 |
| FixMatch [Sohn et al., 2020] w/ ABC [Lee et al., 2021] w/ Adsh [Guo and Li, 2022] w/ InPL [Yu et al., 2023] w/ CPE [Ma et al., 2024] w/ ReMoP (Ours) | 83.18±1.34/ 67.76±0.67 83.96±0.66/ 68.69±0.88 83.65±1.23/ 66.37±2.27 83.55±0.73/ 66.67±0.52 82.63±0.39/ 68.27±0.86 85.06±0.68/ 69.10±0.90 | 79.93±2.05/ 57.92±4.86 80.08±2.55/ 59.45±3.79 83.17±1.52/ 65.18±1.24 81.92±2.02/ 61.62±3.53 80.27±2.59/ 64.20±0.43 84.70±0.77/ 65.90±0.65 | 84.70±0.30/ 63.62±1.05 84.99±0.22/ 63.33±0.22 84.89±0.01/ 63.31±0.87 84.41±0.32/ 63.00±0.92 83.19±0.63/ 64.25±0.60 85.81±0.17/ 65.01±0.96 | 82.02±0.14/ 54.26±0.67 82.47±0.43/ 56.16±0.11 81.95±0.22/ 56.47±0.65 81.58±0.09/ 55.21±0.69 79.86±0.23/ 56.88±0.48 83.03±0.46/ 57.14±1.20 |
| Method | RAF-DB | FERPlus |
|---|---|---|
| Baseline∗ | 87.42 | 86.06 |
| RUL∗ [2021] | 88.98 | 88.30 |
| MEK∗ [2023] | 89.77 | - |
| Pseudo-Labeling [2013] | 87.39 | 85.13 |
| Mean-Teacher [2017] | 88.41 | 86.15 |
| PT [2023] | 88.69 | 86.60 |
| Ada-CM [2022] | 89.28 | 87.80 |
| FixMatch [2020] | 87.74 | 86.45 |
| w/ ABC [2021] | 87.78 | 87.38 |
| w/ Adsh [2022] | 88.98 | 88.01 |
| w/ InPL [2023] | 89.54 | 88.23 |
| w/ CPE [2024] | 88.14 | 87.98 |
| w/ ReMoP (Ours) | 90.29 | 89.06 |
Inter-dataset evaluation. In this part, we assume that labeled and unlabeled samples come from different datasets.
In Table 5, we conduct experiments on RAF-DB and FERPlus. Following the setting [Jiang and Deng, 2023], we treat the training images along with their labels from RAF-DB or FERPlus as labeled samples, and the training images from AffectNet as unlabeled samples. From the table, we can see that the proposed ReMoP significantly outperforms the existing methods by a large margin. Specifically, on the RAFDB dataset, our method achieves 2.15% overall accuracy improvements compared to the competitive CPE [Ma et al., 2024] and outperforms PT [Jiang and Deng, 2023] by 1.6% overall accuracy. Furthermore, we compare the proposed ReMoP with some fully-supervised methods. For example, our method outperforms MEK [Zhang et al., 2023] by 0.52% overall accuracy on RAF-DB.
6 Conclusion
In this work, we address the practical class-imbalanced semisupervised facial expression recognition task, focusing on the quality of pseudo-labels for imbalanced samples in a reliable manner. To this end, we propose the Regularized Mixture of Predictions (ReMoP) method, which integrates feature similarity with linear prediction to create a mixture of predictions. Additionally, we introduce a class regularization term that effectively handles class-imbalanced feature distribution. Through extensive experiments on four facial expression datasets, we demonstrate the efficacy of ReMoP across various challenging imbalanced setups. Our work may further contribute to understanding the importance of feature similarity in classifying facial expressions.
Acknowledgements
This work was supported in part by the National Natural Science Foundation of China under Grants U22A2096, 62036007, 62376235, and 62306178, in part by Scientific and Technological Innovation Teams in Shaanxi Province under grant 2025RS-CXTD-011, in part by the Shaanxi Province Core Technology Research and Development Project under grant 2024QY2-GJHX-11, in part by the Fundamental Research Funds for the Central Universities under GrantQTZX23042, in part by the GDST Basic Research Fund Nos. 2022A1515011652 and 2024A1515012399, in part by the HKBU Faculty Niche Research Areas No. RC-FNRAIG/22-23/SCI/04, and in part by the HKBU CSD Departmental Incentive Scheme.
Contribution Statement
Hangyu Li and Yixin Zhang contributed equally to this work.
@inproceedings{ijcai2025p154,
title = {Towards Regularized Mixture of Predictions for Class-Imbalanced Semi-Supervised Facial Expression Recognition},
author = {Li, Hangyu and Zhang, Yixin and Yao, Jiangchao and Wang, Nannan and Han, Bo},
booktitle = {Proceedings of the Thirty-Fourth International Joint Conference on
Artificial Intelligence, {IJCAI-25}},
publisher = {International Joint Conferences on Artificial Intelligence Organization},
editor = {James Kwok},
pages = {1377--1385},
year = {2025},
month = {8},
note = {Main Track},
doi = {10.24963/ijcai.2025/154},
url = {https://doi.org/10.24963/ijcai.2025/154},
}
TY - CPAPER TI - Towards Regularized Mixture of Predictions for Class-Imbalanced Semi-Supervised Facial Expression Recognition AU - Li, Hangyu AU - Zhang, Yixin AU - Yao, Jiangchao AU - Wang, Nannan AU - Han, Bo T2 - Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence, IJCAI-25 PB - International Joint Conferences on Artificial Intelligence Organization PY - 2025 SP - 1377 EP - 1385 DO - 10.24963/ijcai.2025/154 UR - https://doi.org/10.24963/ijcai.2025/154 ER -Copied
Machine-readable versions of this paper, for tools and AI agents: