Interpretable Minority Synthesis for Imbalanced Classification
Proceedings of the Thirtieth International Joint Conference on Artificial Intelligence. Main Track. Pages 2542-2548.
https://doi.org/10.24963/ijcai.2021/350
Keywords
- Data Mining: Class Imbalance and Unequal Cost
- Machine Learning: Learning Generative Models
Abstract
This paper proposes a novel oversampling approach that strives to balance the class priors with a considerably imbalanced data distribution of high dimensionality. The crux of our approach lies in learning interpretable latent representations that can model the synthetic mechanism of the minority samples by using a generative adversarial network(GAN). A Bayesian regularizer is imposed to guide the GAN to extract a set of salient features that are either disentangled or intensionally entangled, with their interplay controlled by a prescribed structure, defined with human-in-the-loop. As such, our GAN enjoys an improved sample complexity, being able to synthesize high-quality minority samples even if the sizes of minority classes are extremely small during training. Empirical studies substantiate that our approach can empower simple classifiers to achieve superior imbalanced classification performance over the state-of-the-art competitors and is robust across various imbalance settings. Code is released in github.com/fudonglin/IMSIC.
- [Adel et al., 2018] Tameem Adel, Zoubin Ghahramani, and Adrian Weller. Discovering interpretable representations for both deep generative and discriminative models. In ICML, pages 50-59, 2018.
- [Beyazit et al., 2020] Ege Beyazit, Doruk Tuncel, Xu Yuan, Nian-Feng Tzeng, and Xindong Wu. Learning inter- pretable representations with informative entanglements. In IJCAI, pages 1970-1976, 2020. IJCAI
- [Branco et al., 2016] Paula Branco, Luís Torgo, and Rita P Ribeiro. A survey of predictive modeling on imbalanced domains. ACM Computing Surveys (CSUR), 49(2):1-50, 2016.
- [Chawla et al., 2002] Nitesh V Chawla, Kevin W Bowyer, Lawrence O Hall, and W Philip Kegelmeyer. Smote: syn- thetic minority over-sampling technique. Journal of artifi- cial intelligence research, 16:321-357, 2002.
- [Chen et al., 2016] Xi Chen, Yan Duan, Rein Houthooft, John Schulman, Ilya Sutskever, and Pieter Abbeel. In- fogan: Interpretable representation learning by informa- tion maximizing generative adversarial nets. NeurIPS, 29:2172-2180, 2016.
- [Elkan, 2001] Charles Elkan. The foundations of cost- sensitive learning. In IJCAI, volume 17, pages 973-978.
- [Goodfellow et al., 2014] Ian Goodfellow, Jean Pouget- Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Gen- erative adversarial nets. NeurIPS, 27:2672-2680, 2014.
- [Guo et al., 2019] Ting Guo, Xingquan Zhu, Yang Wang, and Fang Chen. Discriminative sample generation for deep imbalanced learning. In IJCAI, pages 2406-2412, 2019. IJCAI
- [He et al., 2008] Haibo He, Yang Bai, Edwardo A Garcia, and Shutao Li. Adasyn: Adaptive synthetic sampling ap- proach for imbalanced learning. In IJCNN, pages 1322- 1328. IEEE, 2008.
- [He et al., 2018] Yi He, Di Wu, Ege Beyazit, Xiaoduan Sun, and Xindong Wu. Supervised data synthesizing and evolving-a framework for real-world traffic crash severity classification. In ICTAI, pages 163-170. IEEE, 2018.
- [Heckerman and Wellman, 1995] David Heckerman and Michael P Wellman. Bayesian networks. Communications of the ACM, 38(3):27-31, 1995.
- [Higgins et al., 2017] Irina Higgins, Loic Matthey, Arka Pal, Christopher Burgess, Xavier Glorot, Matthew Botvinick, Shakir Mohamed, and Alexander Lerchner. beta-vae: Learning basic visual concepts with a constrained varia- tional framework. In ICLR, 2017.
- [Huang et al., 2016] Chen Huang, Yining Li, Chen Change Loy, and Xiaoou Tang. Learning deep representation for imbalanced classification. In CVPR, pages 5375-5384, 2016.
- [Kim and Mnih, 2017] Hyunjik Kim and Andriy Mnih. Dis- entangling by factorising. In NeurIPS worshop: From Per- ception to Control, 2017.
- [Kim et al., 2019] Minyoung Kim, Yuting Wang, Pritish Sahu, and Vladimir Pavlovic. Bayes-factor-vae: Hierar- chical bayesian deep auto-encoder models for factor dis- entanglement. In CVPR, pages 2979-2987, 2019.
- [Kingma and Welling, 2013] Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013.
- [LeCun et al., 2010] Yann LeCun, Corinna Cortes, and CJ Burges. Mnist handwritten digit database. 2010.
- [Lee et al., 2020] Wonkwang Lee, Donggyun Kim, Se- unghoon Hong, and Honglak Lee. High-fidelity synthesis with disentangled representation. In ECCV, pages 157- 174. Springer, 2020.
- [Li et al., 2020a] Xiaoya Li, Xiaofei Sun, Yuxian Meng, Jun- jun Liang, Fei Wu, and Jiwei Li. Dice loss for data- imbalanced nlp tasks. In ACL, pages 465--476, 2020.
- [Li et al., 2020b] Yu Li, Tao Wang, Bingyi Kang, Sheng Tang, Chunfeng Wang, Jintao Li, and Jiashi Feng. Over- coming classifier imbalance for long-tail object detection with balanced group softmax. In CVPR, pages 10991- 11000, 2020.
- [Lin et al., 2017a] Tsung-Yi Lin, Priya Goyal, Ross Gir- shick, Kaiming He, and Piotr Dollár. Focal loss for dense object detection. In ICCV, pages 2980-2988, 2017.
- [Lin et al., 2017b] Wei-Chao Lin, Chih-Fong Tsai, Ya-Han Hu, and Jing-Shang Jhang. Clustering-based undersam- pling in class-imbalanced data. Information Sciences, 409:17-26, 2017.
- [McCullagh, 2018] Peter McCullagh. Generalized linear models. Routledge, 2018.
- [Mullick et al., 2019] Sankha Subhra Mullick, Shounak Datta, and Swagatam Das. Generative adversarial minority oversampling. In CVPR, pages 1695-1704, 2019.
- [Ojha et al., 2020] Utkarsh Ojha, Krishna Kumar Singh, Cho-Jui Hsieh, and Yong Jae Lee. Elastic-infogan: Un- supervised disentangled representation learning in class- imbalanced data. NeurIPS, 2020.
- [Tran et al., 2017] Luan Tran, Xi Yin, and Xiaoming Liu. Disentangled representation learning gan for pose- invariant face recognition. In CVPR, pages 1415-1424, 2017.
- [Wang et al., 2020] Xinyue Wang, Yilin Lyu, and Liping Jing. Deep generative model for robust imbalance clas- sification. In CVPR, pages 14124-14133, 2020.
- [Xiao et al., 2017] Han Xiao, Kashif Rasul, and Roland Vollgraf. Fashion-mnist: a novel image dataset for bench- marking machine learning algorithms. arXiv preprint arXiv:1708.07747, 2017.
- [Yin et al., 2020] Jian Yin, Chunjing Gan, Kaiqi Zhao, Xuan Lin, Zhe Quan, and Zhi-Jie Wang. A novel model for im- balanced data classification. In AAAI, pages 6680-6687, 2020.
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
Imbalanced data abound in a variety of human endeavors such as online transactions, biomedical images, social media, among many others. In such data, whereas the distribution of samples representing the majority and minority classes is highly skewed, the minority samples are usually of much greater interest and tend to incur huge costs if misclassified. For example, misclassifying a credit card fraud from millions of legitimate transactions would result in a financial loss, while failing to diagnose lung cancer from a massive amount of CT images may end up with fatalities.
However, building classifiers from imbalanced data remains a challenging task, where the key lies in how to balance the class priors so that the minority samples are more focused. To that end, oversampling is a generic and preferred solution over other methods such as undersampling or costsensitive learning, as it neither suffers from the removal of
∗Corresponding author: Dr. Xu Yuan (xu.yuan@louisiana.edu)

(c) InfoGAN: not diverse
(d) Our Approach
Figure 1: Illustration of the outputs of linear and deep oversampling techniques, where the digits "0", "2", "4", and "5" represent the minority classes in an imbalanced ratio of 1 : 100. (a) SMOTE [Chawla et al., 2002] outputs noises erroneously as nonexistent digits. InfoGAN [Chen et al., 2016] may either (b) lose track of digit identities so as to generate samples from wrong classes or (c) overfit to identical visual patterns thereby lacking diversity. (d) Our approach synthesizes samples being both faithful and diverse.
valuable information nor entails expert knowledge to craft domain-specific objective functions [Branco et al., 2016].
Yet, the crux of oversampling relies on two principles: i) the fidelity, where synthesized samples should truly belong to the minority classes, and ii) the diversity, where synthesized samples should carry a variety of patterns so as to better the classifier. To implement the two principles, the dominant paradigm is to uncover the geometric shape underlying data, on which new data points are synthesized within the local regions, comprising both majorities and minorities (so to cover various patterns), with the minority class dominating (so the new points are likely to be the true minorities).
Unfortunately, this conventional oversampling paradigm only works well for low-dimensional data and fails to generalize to high-dimensional and complex data, such as images. The reason is that the high-dimensional vectors usually lie on or close to a non-linear manifold that is described by a much smaller number of latent features. The previous methods applying a linear combination of existing data to synthesize new points fail to respect such non-linear structures. As a result, the synthesized samples being disparate from the manifold will become noises, not belonging to any class, as shown in Figure 1a, defying the fidelity principle.
To overcome the issue, it seems plausible to leverage deep generative models to capture the non-linear intrinsic structures of data, hoping that the new points are synthesized faithfully. This idea, however, cannot work well, as the deep models are usually data-hungry, while the minority classes can afford very limited numbers of samples only. In effect, the use of deep generative models gives rise to a prominent fidelity-diversity tradeoff. That is, on the one hand, if the minority samples do cover a variety of patterns (e.g., visual concepts such as rotation and scaling), the samples carrying each pattern cannot suffice to train a robust deep model, where the synthesized samples are likely to be noises (e.g., images with non-existent or wrong digit identities) as shown in Figures 1b. On the other hand, if the minority samples carry limited patterns only, the deep models tend to discover a converged region, making the synthesized samples nearlyidentical as shown in Figures 1c. The trained classifier would suffer from overfitting and hence generalize poorly to the test data that carry additional or different patterns.
To tackle the undesired tradeoff between fidelity and diversity, this paper proposes a novel generative adversarial network (GAN) architecture that learns interpretable latent representations to describe the non-linear structures underlying data. Our key idea is to impose a Bayesian regularizer to encourage the extracted features to interact in accordance with a dependency structure given a priori. This structure can guide the GAN to discover a set of features that carry salient semantic meanings as we desire by controlling over the granularity of the latent space. In particular, on the one hand, we enforce the salient features that determine the class membership of synthesized samples be strictly disentangled from other features, so as to practice the fidelity principle. On the other hand, we allow the features representing visual concepts to be entangled in an informative manner, so as to observe the diversity principle. As such, our GAN architecture enjoys better sample efficiency and thus can synthesize high-quality minority samples across various imbalance settings.
Specific contributions of this paper are as follows.
- We propose a novel oversampling approach by leveraging GAN to model the data generating mechanism with non-linear latent representations.
- A Bayesian regularizer is crafted to impose structural constraints upon the learned space, guiding GAN to discover a set of salient features that convey semantic meanings and form dependency structures in a humancontrolled, and hence interpretable, manner.
- Extensive experiments are carried out, and the results substantiate that our approach can enable simple classifiers to outperform the state-of-the-art imbalanced classification competitors across various imbalanced ratios.
2 Preliminaries, Challenge, and Our Idea
Problem Statement. Consider a set of N samples {xi}Ni=1 ∈ X , deemed as the real data, which are drawn from a complex yet unknown distribution xi ∼ Preal. Suppose they are in C classes, with the numbers of samples in each class being {n1, . . . , nC} and N = ∑Cc=1 nc. In this paper, we consider a highly imbalanced setting, where the size of the largest class (i.e., the majority) is much larger than that of the smallest one (i.e., the minority) by at least two orders of magnitudes. Our goal is to synthesize new samples for minority classes, balancing the class priors for accurate classification.
We frame our design in a generative adversarial network (GAN) regime. Let G and D denote the generator and the discriminator, respectively. For a conventional GAN, G takes in a noise vector z ∈ Rdz and outputs the synthesized, fake data; then, D receives both the data generated by G and the original samples, striving to classify them as real or fake. As such, the training process of a GAN can be deemed as a twoplayer minimax game between G and D, defined as follows.
where Ladv(·, ·) denotes the adversarial loss [Goodfellow et al., 2014] and Ω(G) is the regularization term. The intuition behind Eq. (1) is that, while G aims to generate seemingly authentic data to fool D, D tries its best to screen the fake data out. To this end, subsequent GAN studies devise different regularizers to impose constraints on the searching space of G, hoping the learned G to possess various properties.
InfoGAN for Salient Feature Disentanglement. To have control over the patterns of synthesized data, InfoGAN [Chen et al., 2016] tailored a information-theoretic regularizer that maximizes mutual information between a set of observed variables and the generator distribution. Specifically, G receives the input vectors in the form of [z, c]⊤, where c ∈ Rdc is a set of observed variables.
The regularizer is defined as Ω(G) = I (c; G(z, c)), where I(·, ·) calculates mutual information and G(z, c) is the fake samples output by G. The intuition behind this design is to preserve the information of observed variables during the generation process, so they can convey certain semantic meanings, where each variable becomes an disentangled salient feature of the synthesized samples (e.g., digit identities and visual concepts of images).
Challenge: the Fidelity-Diversity Tradeoff. To adopt InfoGAN (or other GAN variants) for the minority synthesis, a prominent tradeoff between fidelity and diversity arises. The reason is that, as the mutual information term is computationally intractable, InfoGAN casts it into a variational lower bound maximization problem instead. This approximation, however, makes the optimization problem data-hungry, while in our setting the minority classes can afford very limited samples only. Hence, the independence of the extracted latent features cannot be guaranteed, such that the generated samples are likely to be noises and hence are not faithful. For example in MNIST, the synthesized minorities may be nonexistent digits or seem to be the digits from majority classes.
A na¨ıve solution to counter this fidelity issue is to replicate or replay the minority samples multiple times along with the majority samples during training. Unfortunately, this solution leads to overfitting since the minority classes usually contain samples having limited visual patterns. As a result, the synthesized minorities are likely to be identical, lacking diversity. A classifier trained on such synthesized minorities cannot generalize well to the test data with additional or different patterns, yielding inferior classification performance.
Our Idea: Bayesian Network Regularizer. To improve sample efficiency, we model the joint distribution of the observed variables and the extracted latent features with a Bayesian network [Heckerman and Wellman, 1995; Beyazit et al., 2020], which in turn functions as a GAN regularizer. Three observations motivate this idea. First, a Bayesian structure captures feature relationships, leading to the extraction of latent representation in a finer level of granularity, which allows to model the joint distribution of variables in a high degree of freedom. Namely, it can control the structure of the latent feature space, in a way that it lets some variables be strictly disentangled from other variables, while allowing some other variables to be entangled in a pre-defined manner. Second, compared to the unstructured method, having control over the feature dependency structure lifts the requirement of massive amounts of training data, making it better suit for class-imbalanced settings. Third, capturing the dependency structure among the latent features provides additional understanding about the data. Such an understanding in turn fosters the (deep) model interpretability.
3 Our Approach
We aim to learn interpretable minority representations via the joint consideration of strictly disentangled and informatively entangled latent features. In Section 3.1, we elaborate the learning objective function and the intuition behind its design. In Section 3.2, we scrutinize the parameter estimation strategy tailored for efficiency improvement.
3.1 Bayesian Regularizer for Minority Synthesis
Our GAN architecture is illustrated in Figure 2. Let [z, c]⊤ denote the input variables, in which the noise vector z implicitly approximates the sample probability distribution and c represents the observed variables expected to take on salient meanings after training. Without loss of generality, we follow [Chen et al., 2016; Beyazit et al., 2020] to draw z and c from factored distributions such as Gaussian with identity covariance, i.e., z, c ∼ N(0, I). θG and θD parameterize the generator G and discriminator D, respectively.
Latent Code Extraction. We consider D to comprise two sub-networks, namely, a feature extractor and a classifier. In particular, after receiving a sample being fake (i.e., generated by G) or real, a feature extractor F parameterized by θF extracts the latent features from the sample, defined as:
where the dimensions of z′ and c′ are identical to those of z and c, respectively. Here, we deem c′ as the latent code, in which each variable represents a salient feature, forming a dependency structure with the observed variables in c.
Bayesian Modeling. We let a Bayesian network B model the joint distribution of c and c′ , w.r.t. a given connectivity pattern, as a product of local distribution probabilities. Denoted by pi = {pi1, pi2, . . . , pik} the parents of the i-th variable c′i in the latent code c′ , k < |c| + |c′ |. Note, 1) the observed variables in c do not have parents as they are sampled directly from a Gaussian; 2) any latent c′i can be parented by both observed or latent variables according to the topology of B. The local conditional probability of c′i is defined as:

where wi and σ2 i denote the weight vector representing a linear structure between c′i and its parents and the variance capturing the Gaussian noise around such structure, respectively.
The optimal parameters (wi, σ2 i ) for Eq. (3) can be estimated in each observed training batch. Specifically, in a batch of size m, we denote the values of the i-th latent variable c′i as c′i := [c′i,1 , . . . , c′i,m]⊤ ∈ Rm and the values of its parents as Pi := [pi,1, . . . , pi,m]⊤ ∈ Rm×k . Thus, the local conditional parameters can be estimated by solving the loglikelihood function, defined as follows.
By estimating the parameters for all local conditionals, we have the parameter of Bayesian network as θB = [( ˆw1, ˆσ2 1 ), . . . , ( ˆwn, ˆσ2n )] with n = k. The likelihood that the dependency structure formed by the observed variables and the latent code coincides the topology of B and is the joint product of local conditionals, calculated by:
Notably, the likelihood in Eq. (5) takes the form of a factorization of local conditionals and thus measures how well B fits the generated samples. By maximizing Eq. (5), we intermediately manipulate the data generator, regularizing it to generate samples with respect to the fidelity and diversity principles as we desire. In particular, the synthesized samples are faithful since 1) they cannot be differentiated by the discriminator and must belong to an existing class and 2) we can enforce the disentanglement of salient features by controlling which class they belong to, such that the minorities are synthesized precisely. Also, the synthesized samples can be diverse and carry various visual patterns because the salient features representing the visual concepts can be entangled in an informative, controllable, and hence interpretable fashion.
3.2 Gradient-Based Parameter Estimation
Estimating the parameter θB for the Bayesian regularizer entails a series of estimations of local conditionals by solving Eq. (4). Unfortunately, this process could be tedious and may introduce an estimation bias depending on the number of minority samples in a training batch. It is expected to bypass this process and estimate the parameters in a stochastic way, so as to improve the efficiency and minimize the bias.
To this end, we inject the likelihood maximization process into the loop of GAN training, guiding the GAN to generate data with a desired structure among the extracted features. Our solution is built upon the following observation. Suggested by Eq. (2), a mapping from observed variables to the latent code is parameterized by θG and θF . By taking the first-order derivative of Eq. (4) w.r.t. wi and σ2 i , we observe that the estimation of θB entails the marginal, along with the expectations between the observed and latent variables, indicating that θG and θF together with the factored distribution of the observed variables contain sufficient statistics to approximate θB. It allows to approximate the joint distribution P(c, c′ ; B) with θG and θF directly, omitting θB estimation, where the likelihood function is expressed as L(θG, θF : c, c′ , B). Based on this observation and Eq. (5), we derive the objective function as follows.
where E(c′i ) and E(pi,j) correspond to the empirical expectations of the i-th latent code and its k-th parent estimated in one training batch, respectively. Denoted by ¯pi the values taken by the variables which are not the parents of c′i in B. The intuition behind Eq. (6) is as follows. The value of the minus of two loss terms, both evaluated by ℓ, shall decrease if the salient features are correlated with their parents only, i.e., the parenting variables can precisely infer the latent code in the feedforward pass; Otherwise, if the salient features are correlated with their non-parents or cannot be inferred from their parents, this value increases. In practice, we implement the loss metric ℓ with mean squared error, which equates to the log-likelihood maximization for Gaussians in generalized linear models [McCullagh, 2018]. Thus far, Eq. (6) which functions as the Bayesian regularizer can be optimized through gradient-based, stochastic updates. By enforcing the observed variables and the latent codes to follow a specified structure (i.e., B), our GAN is guided to learn how to synthesize samples in an efficient and interpretable manner.
4 Experiments
This section experimentally validates that our approach can empower simple classifiers to perform the state-of-the-art imbalanced classification accuracy by synthesizing high-quality minority samples across various imbalance settings.
Datasets. We benchmark our experiments on two widely used image sets, namely, MNIST [LeCun et al., 2010] and Fashion-MNIST [Xiao et al., 2017]. To simulate an imbalance setting, we follow [Mullick et al., 2019] to choose specific classes as the minority and then randomly remove samples from those classes until the imbalanced ratio (IR, ratio of the size of the largest class to that of the smallest class) reaches a preset threshold. To verify the robustness of our approach, we use 6 different IR settings ranging from 50 to 500. Notably, a dataset with IR over 10 can be deemed as highly imbalanced and over 100, as extremely highly imbalanced. The larger the IR, the more difficult the classification task. To the best of our knowledge, cost-sensitive learning methods thinly restrict the IR under 10, while oversampling methods usually allow higher IRs. We perform a 10-fold crossvalidation to eliminate the randomization bias and record the averaged results and the corresponding statistics.
Compared Methods. We take three imbalanced learning competitors, namely, SMOTE [Chawla et al., 2002], InfoGAN [Chen et al., 2016], and DGC [Wang et al., 2020]. Among them, SMOTE and InfoGAN represent the interpolation-based oversampling techniques via capturing linear relations and deep geometric relations among data, respectively. DGC denotes a state-of-the-art imbalanced classifier, which does not explicitly synthesize new samples but balances the sample counts of class priors in the latent feature space directly. Note, DGC operates in an end-to-end fashion. To conduct a fair comparison, we synthesize the minority samples using SMOTE, InfoGAN, and our approach, and then feed the balanced datasets (original plus synthesized samples) to three CNNs with an identical architecture for classification. Our evaluation aims to answer the following three research questions.
Q1. Does our approach outperform the state-of-the-arts?
Given that the minority classes are of greater interests in realworld applications, recall, which measures the percentage of minority samples being correctly classified, is used. Also, to test how well the methods can maintain an accurate prediction on the majority classes, F1-score that represents the harmonic mean of recall and precision is employed.
Table 1 presents the comparative results. We have four observations. First, our approach achieves the best performance with 87.3% recall and 91.69% F1-score on average. The statistical evidence exhibits that our approach outperforms its counterparts across 4 experimental settings, with 16% and 6.17% performance improvement on average in terms of recall and F1-score, respectively. Second, SMOTE performs the worst by achieving averagely 76.5% recall and 85.94%
| MNIST | Fashion-MNIST | |||||||
|---|---|---|---|---|---|---|---|---|
| Method | 8 (IR=67:1) | 9 (IR=100:1) | Bag (IR=67:1) | Ankle boot (IR=100:1) | ||||
| Recall | F1-Score | Recall | F1-Score | Recall | F1-Score | Recall | F1-Score | |
| SMOTE | .829 ± .002 • | .899 ± .001 • | .767 ± .003 • | .860 ± .002 • | .686 ± .003 • | .812 ± .001 • | .778 ± .004 | • .866 ± .001 • |
| InfoGAN | .802 ± .003 • | .876 ± .000 • | .780 ± .003 • | .855 ± .001 • | .734 ± .003 • | .839 ± .001 • | .815 ± .001 | • .874 ± .000 • |
| DGC | .847 ± .001 • | .911 ± .000 • | .740 ± .001 • | .843 ± .000 • | .709 ± .001 • | .824 ± .000 • | .853 ± .000 | • .899 ± .000 • |
| Ours. | .893± .001 • | .930± .000 • | .859± .000 • | .915± .000 • | .831± .001 • | .899± .000 • | .908± .001 | • .922± .000 • |

F1-score. This substantiates that the conventional oversampling techniques leveraging the linear structure to synthesize minority samples, cannot handle high-dimensional and complex data well, thereby yielding inferior performance.
Third, InfoGAN and DGC, both of which exploit deep models to capture the non-linear latent structure underlying data, enjoy better performances over SMOTE, with 2.3% and 2.92% recall improvement, respectively, and 0.27% and 1.2% F1-score improvement, respectively. This verifies the usefulness of modeling the data generating mechanism with salient features (latent code). Fourth, all methods perform worse in Fashion-MNIST than in MNIST, making an intuitive sense because Fashion-MNIST contains real-world data that carry more plentiful yet complex hidden patterns. We observe that InfoGAN and DGC decrease their recalls by 2.09% and 1.6% in Fashion-MNIST, respectively, from those in MNIST. This indicates that the data-hungriness of InfoGAN and DGC leads to inferior performance results in highly imbalanced settings, where the very limited sizes of minority classes cannot afford sufficient samples to allow them to properly characterize the complex patterns hidden behind Fashion-MNIST. On the contrary, our approach enjoys a higher sample efficiency by leveraging a Bayesian structure and hence performs robustly in Fashion-MNIST, with only a 0.76% drop in recall.
Q2. How robustly can our approach perform in a variety of imbalance settings?
We answer this question with Figure 3, in which the trends of recall and F1-score in different imbalance ratios are illustrated. Our observations are as follows. First, our approach outperforms the compared methods in terms of recall and F1score across all IR settings. Also, as IR increases, the performance of our approach deteriorates less noticeably ( for large IRs ≥ 400) than the compared methods. Second, DGC outperforms InfoGAN in low IR settings but its recall and F1-score drop more steeply than InfoGAN. Hence, InfoGAN exceeds DGC as IR increases. This is because DGC models a structural relationship between the latent code and the class labels in a closed form, missing out the intra-relationship among variables in the latent code. Therefore, DGC conceptually incurs high sample complexity, being more sensitive to different IRs. Both InfoGAN and our approach respect such variable-wise interactions and thus are more robust than DGC. Third, our approach enjoys a higher sample efficiency than InfoGAN, evidencing that our employed Bayesian structure can model the variable-wise interaction in a more explicit manner than mutual information.
Q3. How interpretable are our extracted salient features, and how well are they under control?
The answer to this question serves as an ablative study, revealing the effectiveness of our approach in implementing the fidelity and diversity principles during the minority synthesis process. To preserve the fidelity, we desire a strict disentanglement of the latent features deciding which classes the synthesized samples belong to. To this end, we apply a one-toone dependency structure to the observed variables and the latent code, as shown in Figure 4a. Beyond a visual, qualitative validation, we quantify the disentanglement capacity of our approach by using the dSprites dataset, following the setups of [Kim and Mnih, 2017]. The disentanglement scores calculated for InfoGAN and our approach across various IRs are reported in Figure 4b. The higher the score, the better the disentangling performance, with our approach clearly outperforming InfoGAN in all IR settings.
To verify whether our approach can synthesize samples with salient features being interacted in a pre-defined structure, we entangle the variables in the latent code as depicted in Figure 4c. The correspondingly synthesized samples are demonstrated in Figures 4d and 4e, where, the first two features extracted by the model in Figure 4d are thickness (c1) and width (c2), and the features in Figure 4e are rotation (c1) and width (c2). From the figures, we observe that the interaction of these features leads to an entangled latent variable c3 which conveys the semantic meanings of c1 and c2 jointly. These results suggest that the Bayesian regularizer can guide GAN to entangle or disentangle extracted latent variables in accordance with a given dependency structure.
| IR | 100 | 200 | 300 |
|---|---|---|---|
| InfoGAN | .525 | .410 | .361 |
| Ours. | .585 | .479 | .388 |

5 RelatedWork
As our work tightly relates to deep generative modeling and imbalanced classification, in this section, we discuss how it connects with and differs from the prior arts.
Deep Generative Models. Popularized by [Kingma and Welling, 2013] and [Goodfellow et al., 2014], Variational Auto-Encoders (VAEs) and Generative Adversarial Networks (GANs) have become the de facto solutions to model the data generation mechanism with deep architectures. To compare, VAEs explicitly model the data density functions via variational approximations, while GANs implicitly learn the data densities by setting up a two-player game between a generator and a discriminator. Subsequent VAEs [Higgins et al., 2017; Adel et al., 2018] investigate how to further disentangle latent features by imposing constraints on the variational posterior. Compared to VAEs, GANs need to implement additional apparatus for the latent feature disentanglement. A prominent work is InfoGAN [Chen et al., 2016], where the mutual information between the observed and the extracted latent feature subsets are maximized to realize the disentanglement. In addition to a set of subsequent studies such as [Tran et al., 2017; Lee et al., 2020], we are aware of two recent works [Kim et al., 2019; Beyazit et al., 2020] that also respect dependency structure among variables in the latent space with Bayesian treatment. However, these works were to extract various types of salient features while our task is imbalanced classification. The technical challenge and focus are thus different.
Despite effective, most existing deep generative models envision uniformly distributed data and usually perform poorly in an imbalanced setting with scarce minority samples [Ojha et al., 2020]. Exploiting deep generative models for imbalanced classification is relatively under-explored. Our approach strives to fill this gap, enabling the extraction of interpretable and salient features with high sample efficiency, thereby enjoying a robust and quality minority synthesis across various imbalance settings.
Imbalanced Classification. Existing studies can be classified into two categories [Branco et al., 2016; Huang et al., 2016]. First, cost-sensitive learning, which tailors taskspecific loss functions, such that the minority classes are more focused during the optimization process [Elkan, 2001]. Recent advances include focal loss [Lin et al., 2017a] and dice loss [Li et al., 2020a], which have manifested remarkable performance in the tasks of computer vision and natural language processing, respectively. Unfortunately, they entail extensive domain expert knowledge to craft the learning objectives and to tune the hyperparameters [Li et al., 2020b], thereby being less accessible for users without such knowledge.
Second, resampling techniques, which manipulate the class priors by either dampening majorities (i.e., undersampling) or synthesizing minorities (i.e., oversampling) strategically. As undersampling tends to remove valuable information [Lin et al., 2017b], especially in highly imbalanced settings, oversampling becomes superior.
However, the mainstream oversampling studies focus on generating artificial points with a linear combination of the existing data [Chawla et al., 2002; He et al., 2008; 2018; Yin et al., 2020], failing to respect the fact that high-dimensional and complex data usually lie around a lower-dimensioned, non-linear manifold. Few studies have explored how to capture such intrinsic structures with deep models [Guo et al., 2019; Wang et al., 2020] with their methods operating in an end-to-end, black-box fashion, leaving the data generating mechanism agnostic and unknown. Therefore, these studies always suffer from tedious parameter-tuning processes based on various domains, tasks, and imbalance settings. Our approach opens the black box and explicitly models the data generating distribution in an interpretable feature space, controlled with human-in-the-loop.
6 Conclusion
This paper has proposed a novel oversampling approach which exploits the generative adversarial network (GAN) to model the data generating mechanism for the minority samples. The crux of our design lies in the learning of latent yet interpretable representations to capture the non-linear geometric structure underlying data. To this end, we have devised a Bayesian regularizer which guides the GAN to extract a set of salient features that interact in accordance with a dependency structure given a priori. As such, we can control over the learned space by intentionally entangle or disentangle the salient feature as we wish, so as to synthesize minority samples that carry diverse patterns and are faithful to the class labels. We have carried out both quantitative and qualitative experiments in a variety of imbalanced settings. The results substantiate that 1) our approach can synthesize high-quality samples in even extremely high imbalance ratios, and 2) our synthesized samples can help the simple classifiers to outperform the state-of-the-art imbalanced learning methods.
Acknowledgements
The authors would like to thank the IJCAI 2021 reviewers for their constructive feedback. This work was supported in part by the US National Science Foundation (NSF) under Grants 1652107, 1763620, 1948374, and 2019511, and in part by the Louisiana Board of Regents under Contract LEQSF(201821)-RD-A-24. Any opinion and findings expressed in the paper are those of the authors and do not necessarily reflect the view of funding agencies.
@inproceedings{ijcai2021p350,
title = {Interpretable Minority Synthesis for Imbalanced Classification},
author = {He, Yi and Lin, Fudong and Yuan, Xu and Tzeng, Nian-Feng},
booktitle = {Proceedings of the Thirtieth International Joint Conference on
Artificial Intelligence, {IJCAI-21}},
publisher = {International Joint Conferences on Artificial Intelligence Organization},
editor = {Zhi-Hua Zhou},
pages = {2542--2548},
year = {2021},
month = {8},
note = {Main Track},
doi = {10.24963/ijcai.2021/350},
url = {https://doi.org/10.24963/ijcai.2021/350},
}
TY - CPAPER TI - Interpretable Minority Synthesis for Imbalanced Classification AU - He, Yi AU - Lin, Fudong AU - Yuan, Xu AU - Tzeng, Nian-Feng T2 - Proceedings of the Thirtieth International Joint Conference on Artificial Intelligence, IJCAI-21 PB - International Joint Conferences on Artificial Intelligence Organization PY - 2021 SP - 2542 EP - 2548 DO - 10.24963/ijcai.2021/350 UR - https://doi.org/10.24963/ijcai.2021/350 ER -Copied
Machine-readable versions of this paper, for tools and AI agents: