RedTachyon commited on
Commit
4a8ca35
1 Parent(s): 0c41d87

Upload folder using huggingface_hub

Browse files
6xwqONp6KK/10_image_0.png ADDED

Git LFS Details

  • SHA256: a258e54b19a5e28ae8b8dc2127eacae97bb95ce56fd2f95aa7c66587280ecd41
  • Pointer size: 130 Bytes
  • Size of remote file: 41.4 kB
6xwqONp6KK/17_image_0.png ADDED

Git LFS Details

  • SHA256: 0faf98620fbf455a3e324a9fca24a1f944c1e8214d611e2357420dd6e27aed3f
  • Pointer size: 130 Bytes
  • Size of remote file: 68.2 kB
6xwqONp6KK/4_image_0.png ADDED

Git LFS Details

  • SHA256: 9822b6a04c7cec3f37b830e43c14f44e39eb60c45b6565070966705bd5999ac5
  • Pointer size: 130 Bytes
  • Size of remote file: 45.2 kB
6xwqONp6KK/6xwqONp6KK.md ADDED
@@ -0,0 +1,763 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Making Reliable And Flexible Decisions In Long-Tailed Classification
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ ## Abstract
6
+
7
+ Long-tailed classification is challenging due to its heavy imbalance in class probabilities.
8
+
9
+ While existing methods often focus on overall accuracy or accuracy for tail classes, they overlook a critical aspect: certain types of errors can carry greater risks than others in realworld long-tailed problems. For example, misclassifying patients (a tail class) as healthy individuals (a head class) entails far more serious consequences than the reverse scenario.
10
+
11
+ To address this critical issue, we introduce Making Reliable and Flexible Decisions in Longtailed Classification (RF-DLC), a novel method aimed at ensuring reliable predictions in long-tailed problems. Leveraging Bayesian Decision Theory, we introduce an integrated gain to seamlessly combine long-tailed data distribution and the decision-making procedure. We further propose an efficient variational optimization strategy for the decision risk objective.
12
+
13
+ Our method adapts readily to diverse utility matrices, which can be designed for specific tasks, ensuring its flexibility for different problem settings. In empirical evaluation, we design a new metric, False Head Rate, to quantify tail-sensitivity risk, and conduct comprehensive experiments on multiple real-world tasks, including classification, uncertainty estimations, and ablation studies, to demonstrate the reliability and flexibility of our method.
14
+
15
+ ## 1 Introduction
16
+
17
+ Real-world categorical data is often long-tailed distributed, where the data distribution is biased towards a few "head" classes and the "tail" classes have much fewer samples (Reed, 2001; Lin et al., 2014; Van Horn
18
+ & Perona, 2017; Krishna et al., 2017; Liu et al., 2019b; Wang et al., 2020; Li et al., 2022). The long-tailed problem primarily stems from the inherent biases in the data collection process, which are challenging to avoid. Models trained on long-tailed data using conventional methods often exhibit notable performance drops compared to those trained on balanced datasets (Wang et al., 2022).
19
+
20
+ Existing approaches to long-tailed classification usually focus on improving overall accuracy or accuracy for tail classes, such as re-weighting loss (Lin et al., 2017; Cao et al., 2019; Cui et al., 2019; Wu et al., 2020),
21
+ logit adjustment (Menon et al., 2020; Ren et al., 2020; Hong et al., 2021), and knowledge transfer (Liu et al., 2019b; Xiang et al., 2020). However, in practical applications, the ultimate goal is often not accuracy but making optimal decisions. Existing methods on long-tailed classification assume that mispredictions between any pair of classes are equally risky, which is often violated in real-world tasks. The probability of misclassifying tailed samples as head samples is very high in existing methods. For example, in disease detection where healthy individuals belong to head classes and patients belong to tail classes, the risk of classifying patients as healthy individuals is significantly larger than the reverse scenario (Yang et al., 2022).
22
+
23
+ In autonomous driving, mispredicting tail classes like pedestrians or cyclists as head classes like vehicles will significantly increase the risk of accidents and injuries (Carranza-García et al., 2021). To enable reliable long-tailed classification and simultaneously integrate decision-making, we propose Making Reliable and Flexible Decisions in Long-tailed Classification (RF-DLC), a general learning framework aimed at reliable predictions1 on diverse realistic long-tailed problems. Specifically, we introduce the integrated
24
+
25
+ 1The words "prediction" and "decision" are used interchangeably throughout this paper.
26
+ gain from *Bayesian Decision Theory* (Robert et al., 2007; Berger, 2013), an important branch of costsensitive learning, which allows us to seamlessly incorporate decision risk and long-tailed data distribution in a single objective. While cost-sensitive learning has been applied to standard classification (Elkan, 2001; Chung et al., 2016; Shu et al., 2019), its application to long-tailed classification remains unexplored. We also propose a variational optimization strategy to efficiently maximize the integrated gain w.r.t. model parameters. Leveraging the notion of "utility matrix", our method is flexible to many real-world tasks with different types of risks. In our empirical evaluations, we design a new metric, False Head Rate (FHR), to quantity the mispredictions from tail classes to head classes—a common source of high risk in long-tailed classification (Sengupta et al., 2016; Rahman et al., 2021; Yang et al., 2022). The main contributions of this paper are summarized as follows:
27
+ - RF-DLC is the first to consider decision-making in long-tailed classification. Built upon Bayesian Decision Theory, RF-DLC enables principled and reliable predictions on long-tailed data.
28
+
29
+ - RF-DLC introduces a new objective called integrated gain, an efficient variational optimization strategy, and several utility matrices tailored for different long-tailed scenarios. These techniques are naturally derived from Bayesian Decision Theory, ensuring that they are integral to the model's function rather than add-on tricks.
30
+
31
+ - RF-DLC is flexible and can be adapted to various tasks with diverse metrics. Users can adopt our method to many specific fields by re-designing utility matrices.
32
+
33
+ - We conduct comprehensive experiments to demonstrate that RF-DLC significantly improves decision-making while maintaining or improving traditional metrics such as accuracy and calibration.2
34
+
35
+ ## 2 Related Works
36
+
37
+ Long-tailed Classification. Previous methods mainly tackle long-tailed classification from the following aspects: i) adjusting data distribution to obtain balanced datasets, including over-sampling (Han et al.,
38
+ 2005), under-sampling (Liu et al., 2008) and data augmentation (Chu et al., 2020; Kim et al., 2020; Liu et al.,
39
+ 2020)3; ii) re-balancing the importance of different classes in loss functions, including re-weighting loss (Lin et al., 2017; Mahajan et al., 2018; Cao et al., 2019; Cui et al., 2019; Menon et al., 2020; Wu et al., 2020)
40
+ and logit adjustment (Menon et al., 2020; Ren et al., 2020; Hong et al., 2021); iii) applying heterogeneous model architectures to handle head and tail samples in different ways, including OLTR (Liu et al., 2019b),
41
+ LFME (Xiang et al., 2020), RIDE (Wang et al., 2020), TLC (Li et al., 2022) and SRepr (Nam et al., 2023).
42
+
43
+ Other attempts explore broader long-tailed classifications, including non-uniform testing distributions (Zhang et al., 2022), outlier samples (Wang et al., 2022; Bai et al., 2022), and partial-labeled datasets (Hong et al., 2022). Our method is significantly different from existing methods by targeting decision-making and asymmetric misprediction risks, which are important problems in realistic long-tailed data.
44
+
45
+ Bayesian Decision Theory **and Cost-sensitive Learning.** Robert et al. (2007); Berger (2013) have comprehensively introduced Bayesian Decision Theory, which can be adapted to many different tasks by the design of utility functions. For its usage in modern machine learning, multiple ways have been explored: i) loss-calibrated variational inference, including Loss-calibrated EM (Lacoste-Julien et al., 2011),
46
+ LCVB (Jaiswal et al., 2020) and variational inference on continuous utilities (Kuśmierczyk et al., 2019);
47
+ ii) loss-calibrated expectation propagation (Morais & Pillow, 2022). Bayesian Decision Theory is one of the main methodologies to solve cost-sensitive learning (Elkan, 2001; Ling & Sheng, 2008; Chung et al.,
48
+ 2016), which focuses on decision-making under heterogeneous misprediction costs. Our method is built upon Bayesian Decision Theory and introduces the integrated gain to consider the long-tailed data distribution in the decision-making procedure, which has not been explored in previous works.
49
+
50
+ 2The code will be publicly available upon acceptance. 3These methods fall behind the SOTA of long-tailed classification for many years. Therefore, we did include them in the experiments.
51
+
52
+ ## 3 Background
53
+
54
+ This section provides the necessary background knowledge on long-tailed classification and Bayesian Decision Theory for understanding our method.
55
+
56
+ Long-tailed Distribution. In long-tailed categorical data, the training and testing sets follow different distributions (Moreno-Torres et al., 2012; Cui et al., 2019; Liu et al., 2019b). Specifically, the training data is distributed in a descending manner over categories in terms of class probability:
57
+
58
+ $$p(y_{1}=k_{1})\geq p(y_{2}=k_{2}),\ \ \mathrm{if}\ k_{1}\leq k_{2},$$
59
+ $\left(1\right)$.
60
+ p(y1 = k1) ≥ p(y2 = k2), if k1 ≤ k2, (1)
61
+ while the testing data is assumed to be uniform over categories: p(y1 = k1) = p(y2 = k2) for all pairs of
62
+ (k1, k2). The distributional shift between training and testing data makes long-tailed problems challenging.
63
+
64
+ Bayesian Decision Theory. To make optimal decisions in diverse problem settings, Bayesian Decision Theory provides a principled framework (Robert et al., 2007; Berger, 2013). In the supervised setting, for a dataset D = {X,Y } = {(xi, yi)}
65
+ N
66
+ i=1 and a θ-parameterized model, we denote the likelihood and prior to be QN
67
+ i=1 p(yi|xi, θ) and p(θ) respectively. The posterior distribution is then p(θ|D) =
68
+ p(θ)QN
69
+ i=1 p(yi|xi, θ)/QN
70
+ i=1 p(yi|xi). We further assume a decision gain g(d|x, θ) to quantify the utility gained by choosing decision d for input x when the model with parameters θ controls the mapping from x to y. Subsequently, the *posterior expected gain* for an input x is defined as
71
+
72
+ $$\left(2\right)$$
73
+ $$\mathbf{H}|_{\uparrow}$$
74
+ $\left(3\right)$.
75
+ G(d|x, D) := Eθ∼p(θ|D)g(d|x, θ), (2)
76
+ where we average over all possible models weighted by their posterior probabilities. Previous works (LacosteJulien et al., 2011; Cobb et al., 2018) maximize this objective w.r.t. model parameters to obtain a decisioncalibrated posterior q(θ).
77
+
78
+ ## 4 Methodology
79
+
80
+ In this section, we introduce RF-DLC, a method aimed at optimal decision-making for long-tailed data, grounded in Bayesian Decision Theory. The conventional posterior expected gain in Eq. 2 implicitly assumes that both training and testing data share the same distribution, which is violated in long-tailed problems.
81
+
82
+ To address this challenge, we adopt the concept of the *integrated gain* from Bayesian Decision Theory, which incorporates the data distribution into the posterior expected gain as follows:
83
+ G(d) := E(x1,y1)*,...,*(xN ,yN )∼p(x,y)G(d|X, D) = E(x1,y1)*,...,*(xN ,yN )∼p(x,y)Eθ∼p(θ|D)G(d|X, θ), (3)
84
+ where G(d|X, θ) = QN
85
+ i=1 g(di|xi, θ) is the decision gain over the entire dataset and d = [d1*, ..., d*N ]
86
+ Tis the decision vector. In the long-tailed setting, we naturally want the model to fit the testing distribution.
87
+
88
+ Therefore, the integrated gain used in our method is defined as:4
89
+
90
+ $$\theta{\sim}p(\theta|{\mathcal{D}})\,G(d|X,\theta).$$
91
+
92
+ G(d) := E(x1,y1)*,...,*(xN ,yN )∼ptest(x,y)Eθ∼p(θ|D)G(d|X, θ). (4)
93
+ This function serves as our training objective, integrating both the data distribution and the decision gain within a single function. To use this objective in long-tailed data, there are four main challenges left to address: i. How to compute the decision gain g(d|x, θ)? (Section 4.1) ii. How to handle the long-tailed distributed training data? (Section 4.2) **iii.** How to learn the intractable posterior distribution p(θ|D)?
94
+
95
+ (Section 4.3) iv. How to make optimal decisions during testing? (Section 4.4)
96
+
97
+ ## 4.1 How To Design The Decision Gain?
98
+
99
+ To quantify the utility of making a decision, we define the decision gain as:
100
+
101
+ $$g(d|\mathbf{x},\mathbf{\theta}):=\prod_{y^{\prime}}p(y^{\prime}|\mathbf{x},\mathbf{\theta})^{u(y^{\prime},d)}.$$
102
+ y′
103
+ ′,d). (5)
104
+ 4The notion ptest(x, y) is the testing distribution and will be discussed in Section 4.2.
105
+ $\left(4\right)$.
106
+ $\left(5\right)$.
107
+ Here, u(y
108
+ ′, d) refers to the *utility function* which scores the decision d when the true label is y
109
+ ′. The utility values play a critical role in re-weighting the likelihoods of different decisions to prioritize particular mispredictions and allow us to encode human knowledge and expertise tailored to specific tasks.
110
+
111
+ Eq. 5 is different from previous work like Cobb et al. (2018), which uses g
112
+ ′(d|x, θ) := Py′ Uy′,d · p(y
113
+ ′|x, θ).
114
+
115
+ Both definitions achieve the goal of averaging the predictive probability p(y|x, θ) weighted by the utility values. However, Eq. 5 has two advantages: i) Stability: Eq. 5 is more stable for training. After taking the logarithm, Eq. 5 becomes Py′ Uy′,d(x)·log p(y
116
+ ′|x, θ) which is a weighted average of the log probabilities, while Cobb et al. (2018) becomes log Py′ Uy′,d(x)· p(y
117
+ ′|x, θ), which is a log of weighted average of the probabilities and not commonly used in classification problems. ii) Flexibility: Eq. 5 allows for more general and flexible utility values whereas Cobb et al. (2018) requires the utility matrix U to be positive definite (otherwise we may not be able to compute the logarithm). Due to these reasons, we use Eq. 5.
118
+
119
+ The theoretical foundation of utility function has been comprehensively studied in Robert et al. (2007);
120
+ Berger (2013). For example, Chapter 2.2 of Robert et al. (2007) guarantees the existence of utility functions with rational decision-makers. Note that our design of the decision gain differs from previous works LacosteJulien et al. (2011); Cobb et al. (2018) for the benefits of objective optimization. A detailed discussion can be found in Appendix A.
121
+
122
+ Once we have defined the form of the decision gain g(d|x, θ), the next step is designing the utility function u(y
123
+ ′, d). For classification tasks, we can employ a utility matrix U:
124
+
125
+ $$\mathbf{U}:={\begin{bmatrix}u(0,0)&u(0,1)&\cdots&u(0,|\mathcal{Y}|)\\ u(1,0)&u(1,1)&\cdots&u(1,|\mathcal{Y}|)\\ \vdots&\vdots&\ddots&\vdots\\ u(|\mathcal{Y}|,0)&u(|\mathcal{Y}|,1)&\cdots&u(|\mathcal{Y}|,|\mathcal{Y}|)\end{bmatrix}}$$
126
+ (6) $$\binom{6}{4}$$.
127
+ , (6)
128
+ where |Y| is the number of classes and Uij = u(y = *i, d* = j) is the utility score assigned to the case of predicting class i as j. The utility matrix serves as the task-specific knowledge and remains unchanged during training and testing. Users can assign negative values to discourage certain mispredictions and positive values to encourage the desired ones, which reflects their knowledge about specific tasks. To illustrate how to design utility matrices for different long-tailed problem settings, we provide practical examples in Fig. 1. For an in-depth discussion on utility designing, please refer to Chapter 2 of Robert et al. (2007). Standard Classification. The standard long-tailed classification can be regarded as a special case in our framework, where the overall accuracy is the most decisive metric in evaluation. In this case, the focus lies solely on determining whether the decision aligns with the ground truth (i.e., y = d). As shown in Fig. 1(a),
129
+ a simple one-hot utility can be defined by u(y
130
+ ′, d) = 1{y
131
+ ′ = d}, which corresponds to the standard accuracy metric.
132
+
133
+ Tail-sensitive Classification. Tail-class samples often have high importance due to their scarcity. Mispredictions from tail classes to head classes usually induce severe consequences in real-world tasks, such as activity recognition (Rahman et al., 2021) and medical images (Yang et al., 2022). In these domains, dangerous actions and illnesses are often scarce yet profoundly harmful if neglected. Besides, the lack of training samples in tail classes has been empirically proved to be the bottleneck of classification performance (Li et al., 2022). Therefore, the ratio of false head samples in evaluation can often reflect a model's real-world potential. To this end, a tail-sensitive utility matrix can be defined by adding extra penalties on false head mispredictions, as shown in Fig. 1(b). The tail-sensitive utility matrix encourages the model to predict uncertain samples as tail rather than head, without affecting correct predictions made with confidence.
134
+
135
+ Class/Meta-class-sensitive Classification. In certain applications where semantic differences exist between different categories, preventing mispredictions between specific (meta) classes becomes crucial, regardless of their class probabilities within the long-tailed distribution. For example, object detection systems at airports must avoid misclassifying birds as planes to ensure flight safety (Shi et al., 2021), and autonomous driving systems must prevent misclassifying mammals on the road as vehicles (both are meta-classes including various animal and vehicle types) to ensure driving safety (Yudin et al., 2019). In these contexts, we
136
+
137
+ ![4_image_0.png](4_image_0.png)
138
+
139
+ Figure 1: Examples of utility matrices, designed for (a) standard and (b) tail-sensitive classifications, along with (c) class-sensitive classification for bird-plane misprediction and (d) meta-class-sensitive classification for mammal-vehicle misprediction. The entries in the matrix reflect the risk levels (−1 is the most risky)
140
+ and can be flexibly assigned based on task requirements.
141
+ provide two examples in Fig. 1(c) and (d) to illustrate how utility values can be assigned to prevent the specific mispredictions that are of primary concern.
142
+
143
+ These utility matrices enable us to customize decision-making based on the particular objectives and challenges in different long-tailed classification scenarios, improving the reliability and flexibility in real-world applications.
144
+
145
+ ## 4.2 How To Handle The Distribution Shift?
146
+
147
+ In long-tailed classification, there exists a distribution shift between the training (long-tailed) and testing
148
+ (uniform) sets. We denote the data distributions of the training and testing sets as ptrain(x, y) and ptest(x, y)
149
+ respectively. Since all models are aimed to perform well on the testing set, the data distribution in Eq. 4 should be the testing distribution ptest(x, y). To address the discrepancy between the training and testing distributions, importance sampling (Kloek & Van Dijk, 1978) is adopted:
150
+
151
+ $$\begin{split}\mathbb{E}_{(\mathbf{x},y)\sim p_{\text{test}}(\mathbf{x},y)}\Psi(\mathbf{x},y)&=\int p_{\text{test}}(\mathbf{x},y)\Psi(\mathbf{x},y)d(\mathbf{x},y)=\int p_{\text{train}}(\mathbf{x},y)\frac{p_{\text{test}}(\mathbf{x},y)}{p_{\text{train}}(\mathbf{x},y)}\Psi(\mathbf{x},y)d(\mathbf{x},y)\\ &=\mathbb{E}_{(\mathbf{x},y)\sim p_{\text{test}}(\mathbf{x},y)}\frac{p_{\text{test}}(\mathbf{x},y)}{p_{\text{train}}(\mathbf{x},y)}\Psi(\mathbf{x},y),\end{split}\tag{7}$$
152
+
153
+ where Ψ(x, y) denote any possible function, which will be specified in Section 4.3. The ratio ptest(x, y)/ptrain(x, y) explicitly shows the discrepancy between training and testing data. One common assumption in long-tailed data is that distributional differences only exist between classes (Hong et al.,
154
+ 2021). Formally, this assumption can be expressed as follows: Assumption 1 (Intra-class Consistency). *The distributional differences only exist between classes. Given* a fixed class label, the data distributions are the same for training and testing data: p*train*(x|y) = p*test*(x|y).
155
+
156
+ Based on Assumption 1, the discrepancy ratio can be further simplified:
157
+
158
+ $$\frac{p_{\rm test}(\mathbf{x},y)}{p_{\rm train}(\mathbf{x},y)}=\frac{p_{\rm test}(y)p_{\rm test}(\mathbf{x}|y)}{p_{\rm train}(y)p_{\rm train}(\mathbf{x}|y)}=\frac{p_{\rm test}(y)}{p_{\rm train}(y)},\tag{8}$$
159
+
160
+ which only depends on the class probabilities of training and testing data. Given that the testing set is assumed to be uniform, the probability ptest(y) would be a constant, and thus the ratio is equivalent to:
161
+
162
+ $${\frac{p_{\mathrm{test}}(y)}{p_{\mathrm{train}}(y)}}\propto{\frac{1}{p_{\mathrm{train}}(y)}}\propto{\frac{1}{f(n_{y})}},$$
163
+ , (9)
164
+ where f(·) is an increasing function and ny refers to the number of samples in the class y. We introduce the notion of f(ny) because the class probability only depends on the number of samples in this class. Many
165
+
166
+ $$\mathbf{\Sigma}(9)$$
167
+
168
+ existing re-weighting methods in long-tailed classification can be regarded as special instances of f(·). For example, f(ny) = n γ y is the most conventional choice with a sensitivity factor γ to control the importance of head classes (Huang et al., 2016; Wang et al., 2017; Pan et al., 2021); f(ny) = (1 − β ny )/(1 − β) is the effective number which considers data overlap (Cui et al., 2019). A detailed analysis of the choice of f(·) in RF-DLC is conducted in Section 5.5.
169
+
170
+ ## 4.3 How To Learn The Posterior Distribution?
171
+
172
+ The posterior distribution p(θ|D) in the integrated gain (Eq. 4) is generally intractable. To learn the posterior, we use a variational distribution q(θ) to approximate the true posterior p(θ|D). Specifically, we find a tractable lower bound for the logarithm of the integrated gain:
173
+
174
+ log G(d = Y ) = logE(x1,y1),...,(xN ,yN )∼ptest(x,y)Eθ∼p(θ|D)G(d = Y |X, θ) i=1 E(xi,yi)∼ptest(x,y)Eθ∼q(θ) X y′ Uy′,di=yi · log p(y ′|xi, θ) + log p(yi|xi, θ) ≥ X N − KL(q(θ)||p(θ)) + C (10) i=1 Eθ∼q(θ)1 f(nyi ) X y′ Uy′,di=yi · log p(y ′|xi, θ) + log p(yi|xi, θ) ≈ X N − KL(q(θ)||p(θ)) + C := L(q, d = Y ),
175
+ $$(11)$$
176
+ where C = − log p(Y |X) is a constant. Here, the second equation is obtained using Jensen's inequality and the third equation is obtained using the importance sampling discussed in Section 4.2 as well as one-sample Monte Carlo (MC) approximation of the expectation over data points (xi, yi). The detailed derivation of this lower bound is similar to previous works (Lacoste-Julien et al., 2011; Cobb et al., 2018) and is proved in Appendix D. In the lower bound, we set di = yi since the true label is considered to be the optimal decision at the training stage. By maximizing L(q, d = Y ) w.r.t. q, we obtain a good approximation for the posterior p(θ|D).
177
+
178
+ Relationship with Standard Variational Inference. On the relationship between our method and standard variational inference (Jordan et al., 1999), a clear similarity is the notion of variational distribution q(θ), which is expected to approximate a posterior distribution. However, due to the distributional shift in long-tailed data, we should also specify whether the posterior distribution is based on training or testing distribution, which are denoted as ptrain(θ|D) and ptest(θ|D) respectively. We show below that the lower bound L contains the objective for standard variational inference:
179
+
180
+ $$L(q,\mathbf{d}=\mathbf{Y})\approx\mathbb{E}_{(\mathbf{x}_{1},\mathbf{y}_{1}),\ldots,(\mathbf{x}_{N},\mathbf{y}_{N})\sim p_{\mathrm{test}}(\mathbf{x},\mathbf{y})}\mathbb{E}_{\mathbf{\theta}\sim q(\mathbf{\theta})}\log G(\mathbf{d}=\mathbf{Y}|\mathbf{X},\mathbf{\theta})-K L(q(\mathbf{\theta})||p_{\mathrm{test}}(\mathbf{\theta}|\mathcal{D})),$$
181
+
182
+ where the approximation is due to the use of MC approximation. If further assuming the utility matrix to be one-hot (i.e., Uy,d = 1{y = d}), the equation can be further simplified as:
183
+
184
+ $$L(q,d=Y)\approx-K L(q(\theta)||p_{\mathrm{test}}(\theta|{\mathcal{D}})).\tag{1}$$
185
+
186
+ The proof is provided in Appendix E. Particle-based Variational Distribution. To pursue the efficiency of posterior inference, we construct the variational distribution using particles (Liu & Wang, 2016; D'Angelo & Fortuin, 2021):
187
+
188
+ $$q(\mathbf{\theta})=\sum_{j=1}^{M}w_{j}\cdot\delta(\mathbf{\theta}-\mathbf{\theta}_{j}),\tag{1}$$
189
+ $$(12)$$
190
+ $$(13)$$
191
+
192
+ where {wj}M
193
+ j=1 are normalized weights which hold PM
194
+ j=1 wj = 1, and δ(·) is the Dirac delta function. The
195
+ "particles" {θj}M
196
+ j=1 are implemented through ensemble models. Empirical studies have previously explored ensemble methods in the context of long-tailed data (Wang et al., 2020; Li et al., 2022). Our framework provides a theoretical foundation for these approaches in long-tailed problems: due to the scarcity of tailed data, there is not enough evidence to support a single solution, leading to many equally good solutions (which give complementary predictions) in the loss landscape. Therefore, estimating the full posterior distribution is essential to get a comprehensive characterization of the solution space. Particle optimization reduces the cost of Bayesian inference and is more efficient than variational inference (Blundell et al., 2015) and Markov chain Monte Carlo (MCMC) (Brooks et al., 2011), especially on the high-dimensional and multimodal deep neural network posteriors.
197
+
198
+ Repulsive Regularization. The integrated gain optimization in Eq. 10 includes a regularization term KL(q(θ)||p(θ)), which keeps q to be close to the prior p(θ). If we assume the prior p(θ) to be a Gaussian distribution, the regularization can be extended to:
199
+
200
+ $$KL(q(\mathbf{\theta})||p(\mathbf{\theta}))=\lambda\int_{\Theta}||\mathbf{\theta}||^{2}\cdot q(\mathbf{\theta})d\mathbf{\theta}+\int_{\Theta}q(\mathbf{\theta})\log q(\mathbf{\theta})d\mathbf{\theta}=\frac{\lambda}{M}\sum_{j=1}^{M}||\mathbf{\theta}_{j}||^{2}-H(\mathbf{\theta}),\tag{14}$$
201
+ $$(15)$$
202
+
203
+ where λ is a constant, Θ is the parameter space and H(θ) is the entropy of θ. The first term (L2regularization) prevents the model from over-fitting and the second term (entropy) applies a *repulsive force* to individual models to promote their diversity, pushing the particles away from each other (Liu & Wang, 2016; D'Angelo & Fortuin, 2021). To make the entropy term computable, we introduce a simple approximation:
204
+ H(θ) ≈
205
+ 1 2 log |Σˆθ|, where Σˆθ is the covariance matrix estimated by particles. Other entropy approximations can also be used. By the technique of SWAG-diagonal covariance (Maddox et al., 2019), the covariance matrix can then be directly computed by: Σˆθ = *diag*(θ 2−θ 2). Overall, the regularization term is a combination of L2 weight decay and the repulsive force and the final form of this regularization term is:
206
+
207
+ $$KL(q(\mathbf{\theta})||p(\mathbf{\theta}))\approx\frac{\lambda}{M}\sum_{j=1}^{M}||\mathbf{\theta}_{j}||^{2}-\frac{1}{2}\sum_{k}\log{(\overline{{\mathbf{\theta}^{2}}}-\overline{{\mathbf{\theta}}}^{2})}_{k},\tag{1}$$
208
+
209
+ which is different from existing diversity regularization used in long-tailed classification (Wang et al., 2020; Li et al., 2022). The repulsive regularization in our method is naturally derived from the integrated gain optimization, with strong theoretical motivation.
210
+
211
+ ## 4.4 How To Make Optimal Decisions During Testing?
212
+
213
+ Following the standard Bayesian Decision Theory, we maximize the logarithm of the posterior expected gain G(d
214
+ ⋆|x
215
+ ∗, D) in Eq.(2) for each testing input x
216
+ ∗to obtain optimal decisions:
217
+
218
+ $$d^{\star}=\operatorname*{arg\,max}_{d}\log G(d|\mathbf{x}^{*},\mathcal{D})\approx\operatorname*{arg\,max}_{d}\sum_{j=1}^{M}\sum_{y^{\prime}}U_{y^{\prime},d}\cdot\log p(y^{\prime}|\mathbf{x}^{*},\mathbf{\theta}_{j}).\tag{16}$$
219
+
220
+ where the approximation is due to q(θ) ≈ p(θ|D). Importantly, for symmetric utility matrices (e.g., one-hot utility in Fig. 1(a)), Eq. 16 can be further simplified to d
221
+ ⋆ ≈ arg maxd PM
222
+ j=1 log p(d|x, θj ), which aligns with the standard ensemble models.
223
+
224
+ In summary, the integrated gain enables our method to simultaneously consider the posterior distribution, decision-making (utility matrix), and data distribution. It provides a principled way to address more realistic problems on the long-tailed data. The proposed RF-DLC is summarized in Algorithm 1.
225
+
226
+ ## 5 Experiments
227
+
228
+ In this section, we show the experimental results to demonstrate the effectiveness of our method. We use CIFAR10/100-LT (Cui et al., 2019), ImageNet-LT (Liu et al., 2019b), and iNaturalist (Van Horn et al.,
229
+ 2018) as the long-tailed datasets, and compare our method with multiple long-tailed baselines. Detailed implementation is summarized in Appendix F. Algorithm 1: RF-DLC
230
+ Inputs: Dataset D = {X,Y } = {(xi, yi)}
231
+ N
232
+ i=1, initial particles {θj}M
233
+ j=1, utility matrix U, the step size η; Results: Final particles {θ
234
+
235
+ j
236
+ }M
237
+ j=1;
238
+
239
+ $$/*{\mathrm{~Update~}}q(\theta)\;*/$$
240
+
241
+ for *each iteration* do XΞ,YΞ ← A mini-batch sampled from D;
242
+ LΞ(q, d = YΞ) ← Loss computed by Eq. 10; for j = 1*, ..., M* do θj ← θj − η · ∇θjLΞ ; /* Update q(θ) */
243
+ end end Table 1: False Head Rate evaluation for tail-sensitive long-tailed classification (%). Three datasets and three tail region settings are considered. Our method consistently outperforms all baselines across all settings.
244
+
245
+ | Dataset | Tail Ratio | CE | CB Loss | LDAM | RIDE | TLC | |
246
+ |-------------|--------------|-----------------------------------------------------------|--------------|-------------------|--------------|--------------|--------------|
247
+ | | | | | (Li et al., 2022) | RF-DLC | | |
248
+ | | | (Cui et al., 2019) (Cao et al., 2019) (Wang et al., 2020) | | | | | |
249
+ | 25% | 21.10 ± 0.43 | 14.84 ± 0.93 | 10.05 ± 1.01 | 8.94 ± 0.66 | 10.42 ± 0.64 | 4.99 ± 0.32 | |
250
+ | 50% | 37.87 ± 0.57 | 27.98 ± 1.44 | 19.64 ± 1.66 | 17.80 ± 1.39 | 20.27 ± 0.77 | 11.76 ± 0.29 | |
251
+ | CIFAR10-LT | 75% | 48.75 ± 1.39 | 33.93 ± 1.60 | 21.37 ± 2.10 | 19.77 ± 3.20 | 22.24 ± 1.53 | 11.01 ± 1.28 |
252
+ | average | 35.91 ± 0.54 | 25.58 ± 1.27 | 17.02 ± 1.56 | 15.50 ± 1.68 | 17.64 ± 0.93 | 9.25 ± 0.49 | |
253
+ | 25% | 45.53 ± 1.54 | 24.88 ± 0.34 | 21.22 ± 0.99 | 18.83 ± 0.70 | 21.18 ± 0.54 | 15.39 ± 0.57 | |
254
+ | 50% | 73.03 ± 1.59 | 48.41 ± 1.24 | 43.04 ± 1.18 | 39.50 ± 1.53 | 41.15 ± 0.55 | 31.34 ± 0.55 | |
255
+ | CIFAR100-LT | 75% | 91.30 ± 1.24 | 74.38 ± 1.47 | 65.62 ± 1.31 | 62.01 ± 2.70 | 61.34 ± 1.03 | 49.51 ± 1.45 |
256
+ | average | 69.95 ± 1.40 | 49.22 ± 0.83 | 43.29 ± 1.04 | 40.11 ± 1.62 | 41.22 ± 0.55 | 32.08 ± 0.78 | |
257
+ | 25% | 3.99 ± 0.08 | 3.66 ± 0.17 | 4.17 ± 0.19 | 3.62 ± 0.18 | 3.47 ± 0.13 | 2.70 ± 0.09 | |
258
+ | 50% | 12.77 ± 0.29 | 11.80 ± 0.12 | 12.73 ± 0.28 | 11.42 ± 0.27 | 11.49 ± 0.13 | 9.68 ± 0.25 | |
259
+ | ImageNet-LT | 75% | 30.99 ± 0.40 | 29.39 ± 0.28 | 29.90 ± 0.41 | 26.92 ± 0.33 | 27.12 ± 0.13 | 24.42 ± 0.19 |
260
+ | average | 15.92 ± 0.17 | 14.95 ± 0.15 | 15.60 ± 0.21 | 13.99 ± 0.24 | 14.03 ± 0.09 | 12.27 ± 0.08 | |
261
+
262
+ ## 5.1 Tail-Sensitive Long-Tailed Classification With False Head Rate
263
+
264
+ As discussed in Section 4.1, mispredictions from tail classes to head classes generally pose higher risks and quantifying the likelihood of such occurrences is crucial. Inspired by the false positive rate, we define the False Head Rate (FHR) as follows:
265
+
266
+ $$F H R={\frac{|{\mathcal{P}}_{\mathrm{head}}\cap{\mathcal{G}}_{\mathrm{tail}}|}{|{\mathcal{G}}_{\mathrm{tail}}|}},$$
267
+
268
+ $$(17)$$
269
+ |Gtail|, (17)
270
+ where Gtail is the set of samples that are labeled as tail classes and Phead is the set of samples that are predicted as head classes. To consider different tail regions, we select the last 25%, 50%, and 75% classes as tail classes, respectively. We apply the tail-sensitive utility in Fig. 1(b) to our method. From Table 1, we observe substantial improvements over all baselines across all settings, especially on the relatively small CIFAR datasets, which means that the False Head Rate is more challenging on small datasets.
271
+
272
+ ## 5.2 Class-Sensitive Long-Tailed Classification
273
+
274
+ We further try the (meta) class sensitive cases on CIFAR10-LT, including bird-plane detection (Shi et al.,
275
+ 2021) and vehicle-mammal detection (Yudin et al., 2019), as discussed in Section 4.1. The utility matrices used for these two tasks are Fig. 1 (c) and (d) respectively, and their full formats are shown in Appendix C.
276
+
277
+ We also design two corresponding metrics for accurate evaluation, and list the results in Table 2. We again observe that our method improves significantly on the metrics with negligible drops in standard accuracy.
278
+
279
+ These real-world tasks show the importance of taking the decision loss into account and also demonstrate the flexibility of our method which is compatible with different utilities, leading to better performance for different types of tasks.
280
+
281
+ Table 2: Class-sensitive long-tailed classification on CIFAR10-LT, comparing the baseline one-hot utility with class/metaclass-sensitive utility. The specifically designed utilities can effectively improve tailored metrics with negligible drops in standard overall accuracy.
282
+
283
+ | Task | Metric | Evaluation Score (%) ↓ | ACC (%) ↑ | |
284
+ |--------------------------|-----------|--------------------------|----------------------|-----------------------|
285
+ | |Pplane∩Gbird| | | | | |
286
+ | bird-plane detection | Rplane = | |Gbird| | 5.10 → 3.80 (−25.5%) | 84.11 → 83.84 (−0.3%) |
287
+ | |Pvehicle∩Gmammal | | | | | |
288
+ | vehicle-mammal detection | Rmammal = | |Gvehicle| | 1.40 → 0.35 (−75.5%) | 84.11 → 83.83 (−0.3%) |
289
+
290
+ | Method | CIFAR10-LT | CIFAR100-LT | | ImageNet-LT | | |
291
+ |----------------------------|--------------|---------------|--------------|---------------|--------------|---------------|
292
+ | All | Tail | All | Tail | All | Tail | |
293
+ | LA† (Menon et al., 2020) | 77.67 | - | 43.89 | - | 55.11 | - |
294
+ | ACE† (Cai et al., 2021) | 81.2 | - | 49.4 | 23.5 | 54.7 | - |
295
+ | SRepr† (Nam et al., 2023) | 82.06 ± 0.01 | - | 47.81 ± 0.02 | 23.31 ± 0.11 | 52.12 ± 0.06 | 32.14 ± 0.41* |
296
+ | CE | 73.65 ± 0.39 | 58.51 ± 0.62 | 38.82 ± 0.52 | 10.62 ± 1.23 | 47.80 ± 0.15 | 44.03 ± 0.24 |
297
+ | CB Loss (Cui et al., 2019) | 77.62 ± 0.69 | 68.73 ± 1.52 | 42.24 ± 0.41 | 20.50 ± 0.51 | 51.70 ± 0.25 | 48.29 ± 0.41 |
298
+ | LDAM (Cao et al., 2019) | 80.63 ± 0.69 | 77.14 ± 1.61 | 43.13 ± 0.67 | 23.50 ± 1.28 | 51.04 ± 0.21 | 47.21 ± 0.22 |
299
+ | RIDE (Wang et al., 2020) | 83.11 ± 0.52 | 79.62 ± 1.56 | 48.99 ± 0.44 | 28.78 ± 1.52 | 54.32 ± 0.54 | 50.74 ± 0.62 |
300
+ | TLC (Li et al., 2022) | 79.70 ± 0.65 | 76.39 ± 0.98 | 48.75 ± 0.16 | 28.40 ± 0.72 | 55.03 ± 0.34 | 51.56 ± 0.35 |
301
+ | RF-DLC | 83.75 ± 0.17 | 82.33 ± 1.16 | 50.24 ± 0.70 | 30.34 ± 1.49 | 55.73 ± 0.17 | 51.98 ± 0.40 |
302
+
303
+ Table 3: Top-1 overall accuracy and tail-class accuracy on standard long-tailed classification (%). Our method outperforms all baselines on both metrics.
304
+
305
+ ## 5.3 Standard Long-Tailed Classification
306
+
307
+ We evaluate the overall accuracy and tail-class accuracy. The results are shown in Table 35, where † means the results are directly copied from the original papers and ∗ is due to a different setting of tail classes6.
308
+
309
+ We apply the one-hot utility in our method. In particular, Our method significantly outperforms other baselines on the crucial tailed data. The results on iNaturalist are summarized in appendix G. These results demonstrate the reliability of our method in standard long-tailed classification.
310
+
311
+ ## 5.4 Uncertainty Estimation
312
+
313
+ In our method, the predictive uncertainty can be naturally obtained by the entropy of predictive distribution (Malinin & Gales, 2018). For the compared uncertainty estimation algorithms, MCP is a trivial baseline that obtains uncertainty scores from the maximum value of softmax distribution (Hendrycks & Gimpel, 2017); evidential uncertainty is rooted in the subjective logic (Jsang, 2018), and is introduced to long-tailed classification by Li et al. (2022). We evaluate the three uncertainty algorithms in Table 4. Our Bayesian predictive uncertainty outperforms the other two and has a remarkable advantage on the ECE
314
+ metric, demonstrating the superiority of using principled Bayesian uncertainty quantification.
315
+
316
+ ## 5.5 Ablation Studies
317
+
318
+ Effect of Utility. The effect of tail-sensitive utility is shown in Table 5. We compare the one-hot and tailsensitive utilities in terms of False Head Rate and standard overall accuracy. By applying the tail-sensitive utility, the performances on FHR can be significantly improved (18.00%) with a negligible drop in standard accuracy (0.04%). Besides, we also observe that the performance is relatively robust to the specific values of utility as long as the sign is correct. For example, changing −1 to −0.8 in the utility matrices in Fig. 1 will not significantly affect the performance of our method (ACC: from 50.24 to 50.34, FHR: from 32.08 to 32.85, on CIFAR100-LT).
319
+
320
+ Forms of Class Probability. We compare five different forms of f(ny) in terms of standard overall accuracy in Table 6 and Fig. 2a. We also analyze the weight values (i.e., 1/f(ny)) and their growth rates
321
+
322
+ 5Note that the classification evaluation is based on balanced test data. 6The number of tail classes of Nam et al. (2023) on ImageNet is less than ours, and thus their tail-class accuracy would naturally be much lower.
323
+
324
+ | Uncertainty Algorithm | CIFAR10-LT | CIFAR100-LT | ImageNet-LT | | | |
325
+ |--------------------------------|--------------|---------------|---------------|--------------|--------------|--------------|
326
+ | AUC (%) ↑ | ECE (%) ↓ | AUC (%) ↑ | ECE (%) ↓ | AUC (%) ↑ | ECE (%) ↓ | |
327
+ | MCP (Hendrycks & Gimpel, 2017) | 79.98 ± 0.10 | 14.33 ± 0.37 | 80.48 ± 0.51 | 23.75 ± 0.51 | 84.02 ± 0.24 | 18.35 ± 0.12 |
328
+ | Evidential (Li et al., 2022) | 83.20 ± 0.59 | 13.24 ± 0.55 | 77.37 ± 0.33 | 21.64 ± 0.47 | 81.45 ± 0.13 | 15.29 ± 0.12 |
329
+ | Bayesian (RF-DLC) | 86.83 ± 0.68 | 9.84 ± 0.17 | 81.24 ± 0.25 | 10.35 ± 0.28 | 84.45 ± 0.09 | 8.72 ± 0.13 |
330
+
331
+ Table 4: Calibration evaluation of different uncertainty algorithms. The Bayesian predictive uncertainty adopted in our method outperforms other algorithms.
332
+
333
+ | Utility | FHR (%) @tail ratio ↓ | Better (%) | ACC (%) ↑ | Worse (%) | | | |
334
+ |----------------|-------------------------|--------------|--------------|--------------|--------------|--------------|------|
335
+ | 25% | 50% | 75% | average | | | | |
336
+ | one-hot | 18.55 ± 0.38 | 38.62 ± 0.62 | 60.17 ± 1.48 | 39.12 ± 0.72 | 18.00 | 49.91 ± 0.33 | 0.04 |
337
+ | tail-sensitive | 15.39 ± 0.57 | 31.34 ± 0.55 | 49.51 ± 1.45 | 32.08 ± 0.78 | 49.89 ± 0.19 | | |
338
+
339
+ Table 5: Comparison of different utilities in terms of False Head Rate on CIFAR100-LT. The tail-sensitive utility can effectively improve FHR with a negligible drop in standard overall accuracy. between the first and the last class across different forms. We find that as the growth rate becomes larger, ACC will be better accordingly, which suggests a high level of class imbalance in the dataset.
340
+
341
+ Fig. 2a shows similar results on the relationship between growth rate and the tail-class accuracy. As the growth rate becomes larger, the tail and med accuracy will both become significantly better despite the slight drop in head accuracy, which is consistent with the improvement in overall accuracy. Based on these results, we suggest using f(ny) = ny in general.
342
+
343
+ Number of Particles. Generally, using more individual models will induce better performances. However, we also need to balance the performance with the computational cost. We visualize accuracy under different numbers of particles in Fig. 2b. The error bars are scaled to be within two standard deviations. The accuracy curves are all logarithm-like and the accuracy improvement is hardly noticeable for more than 6 particles. However, the computational cost is increasing at a linear speed. Therefore, we recommend using no more than six particles in practice for a desirable performance-cost trade-off.
344
+
345
+ Repulsive Force. We also evaluate the effectiveness of the repulsive force. The repulsive force effectively pushes the particle-based variational distribution to the target posterior and avoids collapsing into the same solution. Therefore, with the repulsive force, better predictive distributions can be learned, and thus better predictive uncertainty can be obtained. Besides, the repulsive force can also improve the overall accuracy by promoting the diversity of particles. We show the ablation study on repulsive force in Table 7.
346
+
347
+ Table 6:
348
+ Comparison of different forms of class probabilities.
349
+
350
+ Top-1 standard accuracy evaluated on CIFAR100-LT. The linear f(ng) is the most suitable form in terms of standard accuracy.
351
+
352
+ | | Weight Value | | | |
353
+ |-------------------------------------|----------------|------------|------|--------------|
354
+ | Form of f (ny) | | ACC (%) ↑ | | |
355
+ | | last class | growth (%) | | |
356
+ | | first class | | | |
357
+ | linear (Wang et al., 2017) | 0.0020 | 0.1667 | 8250 | 50.17 ± 0.25 |
358
+ | effective number (Cui et al., 2019) | 0.0023 | 0.1669 | 7297 | 49.90 ± 0.36 |
359
+ | sqrt (Pan et al., 2021) | 0.0447 | 0.4082 | 814 | 47.03 ± 0.30 |
360
+ | log | 0.1609 | 0.5581 | 247 | 45.26 ± 0.51 |
361
+ | log ny | 1.0000 | | | |
362
+ | constant | C | 1.0000 | 0 | 43.27 ± 0.30 |
363
+
364
+ ![10_image_0.png](10_image_0.png)
365
+
366
+ Figure 2: Ablation studies on CIFAR100-LT. Comparing (a) different forms of class probabilities and (b)
367
+ varying numbers of particles in terms of overall accuracy and the accuracy of 3 class regions.
368
+ Table 7: The effect of repulsive force, compared by calibration on CIFAR100-LT. Applying the repulsive
369
+
370
+ | Repulsive Force | AUC (%) ↑ | ECE (%) ↑ | ACC (%) ↑ |
371
+ |-------------------|--------------|--------------|--------------|
372
+ | V | 81.24 ± 0.25 | 10.35 + 0.28 | 50.24 ± 0.70 |
373
+ | × | 75.94 ± 0.56 | 13.40 ± 0.80 | 50.15 ± 0.41 |
374
+
375
+ force will induce better predictive uncertainty.
376
+
377
+ ## Б Conclusion And Limitations
378
+
379
+ This paper proposes Making Reliable and Flexible Decisions in Long-tailed Classification (RF-DLC) to address decision-making in realistic long-tailed problems. We focus on the problem of asymmetric misprediction cost in real-world long-tailed classification, and derive a novel decision-making framework from Bayesian Decision Theory. Specifically, we introduce the integrated gain to naturally incorporate the distributional shift in long-tailed data, and leverage the utility matrix to make flexible decisions for various task settings. In empirical evaluations, we propose a new False Head Rate metric to quantify the particular type of misprediction from tail classes to head classes, along with standard classification and uncertainty estimation experiments. The evaluation results demonstrate the superiority of our method on both standard and decision-critical long-tailed classifications.
380
+
381
+ However, we believe there are still some limitations for future developments. We list a few limitations below:
382
+ Long-tailed Regression. We have not explored long-tailed problems in regression, where the distribution of targets can also be highly imbalanced. However, with adjustments to the decision gain, we believe our framework can be adapted for regression tasks as well.
383
+
384
+ Dataset Shift. We have not accounted for general dataset shift scenarios, such as out-of-distribution data, where the assumption of semantically identical training and testing sets becomes invalid. Another example is the distribution of testing data. If it is no longer assumed to be uniform, the discrepancy ratio ptest(x, y)/ptrain(x, y) will not be expressed as 1/f(ny), but rather in a more general form.
385
+
386
+ ## Broader Impact Statement
387
+
388
+ As a general framework for long-tailed classification, our method is eligible for handling imbalanced data in many real-world applications. For example, the strategy adopted in our method can promote fairness and improve performance especially for the underrepresented demographic groups. Besides, the use of utility functions allows for considering specific groups and raising their importance. We believe that adapting our method to realistic social problems is an interesting and important direction. We will investigate this direction in our future works.
389
+
390
+ ## References
391
+
392
+ Jianhong Bai, Zuozhu Liu, Hualiang Wang, Jin Hao, Yang Feng, Huanpeng Chu, and Haoji Hu. On the effectiveness of out-of-distribution data in self-supervised long-tail learning. In International Conference on Learning Representations, 2022.
393
+
394
+ James O Berger. *Statistical decision theory and Bayesian analysis*. Springer Science & Business Media, 2013.
395
+
396
+ Charles Blundell, Julien Cornebise, Koray Kavukcuoglu, and Daan Wierstra. Weight uncertainty in neural network. In *International Conference on Machine Learning*, pp. 1613–1622. PMLR, 2015.
397
+
398
+ Steve Brooks, Andrew Gelman, Galin Jones, and Xiao-Li Meng. *Handbook of markov chain monte carlo*.
399
+
400
+ CRC press, 2011.
401
+
402
+ Jiarui Cai, Yizhou Wang, and Jenq-Neng Hwang. Ace: Ally complementary experts for solving long-tailed recognition in one-shot. In *Proceedings of the IEEE/CVF International Conference on Computer Vision*, pp. 112–121, 2021.
403
+
404
+ Kaidi Cao, Colin Wei, Adrien Gaidon, Nikos Arechiga, and Tengyu Ma. Learning imbalanced datasets with label-distribution-aware margin loss. *Advances in neural information processing systems*, 32, 2019.
405
+
406
+ Manuel Carranza-García, Pedro Lara-Benítez, Jorge García-Gutiérrez, and José C Riquelme. Enhancing object detection for autonomous driving by optimizing anchor generation and addressing class imbalance.
407
+
408
+ Neurocomputing, 449:229–244, 2021.
409
+
410
+ Peng Chu, Xiao Bian, Shaopeng Liu, and Haibin Ling. Feature space augmentation for long-tailed data. In Computer Vision–ECCV 2020: 16th European Conference, Glasgow, UK, August 23–28, 2020, Proceedings, Part XXIX 16, pp. 694–710. Springer, 2020.
411
+
412
+ Yu-An Chung, Hsuan-Tien Lin, and Shao-Wen Yang. Cost-aware pre-training for multiclass cost-sensitive deep learning. In *Proceedings of the Twenty-Fifth International Joint Conference on Artificial Intelligence*,
413
+ pp. 1411–1417, 2016.
414
+
415
+ Adam D Cobb, Stephen J Roberts, and Yarin Gal. Loss-calibrated approximate inference in bayesian neural networks. *arXiv preprint arXiv:1805.03901*, 2018.
416
+
417
+ Yin Cui, Menglin Jia, Tsung-Yi Lin, Yang Song, and Serge Belongie. Class-balanced loss based on effective number of samples. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 9268–9277, 2019.
418
+
419
+ Francesco D'Angelo and Vincent Fortuin. Annealed stein variational gradient descent. In *Third Symposium* on Advances in Approximate Bayesian Inference, 2020.
420
+
421
+ Francesco D'Angelo and Vincent Fortuin. Repulsive deep ensembles are bayesian. *Advances in Neural* Information Processing Systems, 34:3451–3465, 2021.
422
+
423
+ Thomas G Dietterich. Ensemble methods in machine learning. In *International workshop on multiple* classifier systems, pp. 1–15. Springer, 2000.
424
+
425
+ Charles Elkan. The foundations of cost-sensitive learning. In International joint conference on artificial intelligence, volume 17, pp. 973–978. Lawrence Erlbaum Associates Ltd, 2001.
426
+
427
+ Chuanxing Geng, Sheng-jun Huang, and Songcan Chen. Recent advances in open set recognition: A survey.
428
+
429
+ IEEE transactions on pattern analysis and machine intelligence, 43(10):3614–3631, 2020.
430
+
431
+ Hui Han, Wen-Yuan Wang, and Bing-Huan Mao. Borderline-smote: a new over-sampling method in imbalanced data sets learning. In *International conference on intelligent computing*, pp. 878–887. Springer, 2005.
432
+
433
+ Dan Hendrycks and Kevin Gimpel. A baseline for detecting misclassified and out-of-distribution examples in neural networks. In *International Conference on Learning Representations*, 2017.
434
+
435
+ Feng Hong, Jiangchao Yao, Zhihan Zhou, Ya Zhang, and Yanfeng Wang. Long-tailed partial label learning via dynamic rebalancing. In *International Conference on Learning Representations*, 2022.
436
+
437
+ Youngkyu Hong, Seungju Han, Kwanghee Choi, Seokjun Seo, Beomsu Kim, and Buru Chang. Disentangling label distribution for long-tailed visual recognition. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 6626–6636, 2021.
438
+
439
+ Minghui Hu, AK Malik, M Tanveer, and PN Suganthan. Ensemble deep learning: A review. Engineering Applications of Artificial Intelligence, 115:105151, 2022.
440
+
441
+ Chen Huang, Yining Li, Chen Change Loy, and Xiaoou Tang. Learning deep representation for imbalanced classification. In *Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition*, pp. 5375–5384, 2016.
442
+
443
+ Prateek Jaiswal, Harsha Honnappa, and Vinayak A Rao. Asymptotic consistency of loss-calibrated variational bayes. *Stat*, 9(1):e258, 2020.
444
+
445
+ Johan Ludwig William Valdemar Jensen. Sur les fonctions convexes et les inégalités entre les valeurs moyennes. *Acta mathematica*, 30(1):175–193, 1906.
446
+
447
+ Michael I Jordan, Zoubin Ghahramani, Tommi S Jaakkola, and Lawrence K Saul. An introduction to variational methods for graphical models. *Machine learning*, 37:183–233, 1999.
448
+
449
+ Audun Jsang. *Subjective Logic: A formalism for reasoning under uncertainty*. Springer Publishing Company, Incorporated, 2018.
450
+
451
+ Jaehyung Kim, Jongheon Jeong, and Jinwoo Shin. M2m: Imbalanced classification via major-to-minor translation. In *Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition*,
452
+ pp. 13896–13905, 2020.
453
+
454
+ Tuen Kloek and Herman K Van Dijk. Bayesian estimates of equation system parameters: an application of integration by monte carlo. *Econometrica: Journal of the Econometric Society*, pp. 1–19, 1978.
455
+
456
+ Anna Korba, Adil Salim, Michael Arbel, Giulia Luise, and Arthur Gretton. A non-asymptotic analysis for stein variational gradient descent. *Advances in Neural Information Processing Systems*, 33:4672–4682, 2020.
457
+
458
+ Ranjay Krishna, Yuke Zhu, Oliver Groth, Justin Johnson, Kenji Hata, Joshua Kravitz, Stephanie Chen, Yannis Kalantidis, Li-Jia Li, David A Shamma, et al. Visual genome: Connecting language and vision using crowdsourced dense image annotations. *International journal of computer vision*, 123(1):32–73, 2017.
459
+
460
+ Agustinus Kristiadi, Matthias Hein, and Philipp Hennig. Being bayesian, even just a bit, fixes overconfidence in relu networks. In *International Conference on Machine Learning*, pp. 5436–5446. PMLR, 2020.
461
+
462
+ Tomasz Kuśmierczyk, Joseph Sakaya, and Arto Klami. Variational bayesian decision-making for continuous utilities. *Advances in Neural Information Processing Systems*, 32, 2019.
463
+
464
+ Simon Lacoste-Julien, Ferenc Huszár, and Zoubin Ghahramani. Approximate inference for the loss-calibrated bayesian. In *Proceedings of the Fourteenth International Conference on Artificial Intelligence and Statistics*,
465
+ pp. 416–424. JMLR Workshop and Conference Proceedings, 2011.
466
+
467
+ Balaji Lakshminarayanan, Alexander Pritzel, and Charles Blundell. Simple and scalable predictive uncertainty estimation using deep ensembles. *Advances in Neural Information Processing Systems*, 30, 2017.
468
+
469
+ Bolian Li, Zongbo Han, Haining Li, Huazhu Fu, and Changqing Zhang. Trustworthy long-tailed classification.
470
+
471
+ In *Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition*, pp. 6970–6979, 2022.
472
+
473
+ Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In *European conference on computer* vision, pp. 740–755. Springer, 2014.
474
+
475
+ Tsung-Yi Lin, Priya Goyal, Ross Girshick, Kaiming He, and Piotr Dollár. Focal loss for dense object detection. In *Proceedings of the IEEE international conference on computer vision*, pp. 2980–2988, 2017.
476
+
477
+ Charles X Ling and Victor S Sheng. Cost-sensitive learning and the class imbalance problem. Encyclopedia of machine learning, 2011:231–235, 2008.
478
+
479
+ Chang Liu, Jingwei Zhuo, Pengyu Cheng, Ruiyi Zhang, and Jun Zhu. Understanding and accelerating particle-based variational inference. In *International Conference on Machine Learning*, pp. 4082–4092.
480
+
481
+ PMLR, 2019a.
482
+
483
+ Jialun Liu, Yifan Sun, Chuchu Han, Zhaopeng Dou, and Wenhui Li. Deep representation learning on long-tailed data: A learnable embedding augmentation perspective. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 2970–2979, 2020.
484
+
485
+ Qiang Liu and Dilin Wang. Stein variational gradient descent: A general purpose bayesian inference algorithm. *Advances in neural information processing systems*, 29, 2016.
486
+
487
+ Xu-Ying Liu, Jianxin Wu, and Zhi-Hua Zhou. Exploratory undersampling for class-imbalance learning.
488
+
489
+ IEEE Transactions on Systems, Man, and Cybernetics, Part B (Cybernetics), 39(2):539–550, 2008.
490
+
491
+ Ziwei Liu, Zhongqi Miao, Xiaohang Zhan, Jiayun Wang, Boqing Gong, and Stella X Yu. Large-scale longtailed recognition in an open world. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 2537–2546, 2019b.
492
+
493
+ Wesley J Maddox, Pavel Izmailov, Timur Garipov, Dmitry P Vetrov, and Andrew Gordon Wilson. A simple baseline for bayesian uncertainty in deep learning. *Advances in Neural Information Processing Systems*,
494
+ 32, 2019.
495
+
496
+ Dhruv Mahajan, Ross Girshick, Vignesh Ramanathan, Kaiming He, Manohar Paluri, Yixuan Li, Ashwin Bharambe, and Laurens Van Der Maaten. Exploring the limits of weakly supervised pretraining. In Proceedings of the European conference on computer vision (ECCV), pp. 181–196, 2018.
497
+
498
+ Andrey Malinin and Mark Gales. Predictive uncertainty estimation via prior networks. *Advances in Neural* Information Processing Systems, 31, 2018.
499
+
500
+ Aditya Krishna Menon, Sadeep Jayasumana, Ankit Singh Rawat, Himanshu Jain, Andreas Veit, and Sanjiv Kumar. Long-tail learning via logit adjustment. In *International Conference on Learning Representations*,
501
+ 2020.
502
+
503
+ Michael J Morais and Jonathan W Pillow. Loss-calibrated expectation propagation for approximate bayesian decision-making. *arXiv preprint arXiv:2201.03128*, 2022.
504
+
505
+ Jose G Moreno-Torres, Troy Raeder, Rocío Alaiz-Rodríguez, Nitesh V Chawla, and Francisco Herrera. A
506
+ unifying view on dataset shift in classification. *Pattern recognition*, 45(1):521–530, 2012.
507
+
508
+ Giung Nam, Sunguk Jang, and Juho Lee. Decoupled training for long-tailed classification with stochastic representations. In *International Conference on Learning Representations*, 2023.
509
+
510
+ Tai-Yu Pan, Cheng Zhang, Yandong Li, Hexiang Hu, Dong Xuan, Soravit Changpinyo, Boqing Gong, and Wei-Lun Chao. On model calibration for long-tailed object detection and instance segmentation. Advances in Neural Information Processing Systems, 34:2529–2542, 2021.
511
+
512
+ Arafat Rahman, Iqbal Hassan, and Md Atiqur Rahman Ahad. Nurse care activity recognition: A costsensitive ensemble approach to handle imbalanced class problem in the wild. In *Adjunct Proceedings of* the 2021 ACM International Joint Conference on Pervasive and Ubiquitous Computing and Proceedings of the 2021 ACM International Symposium on Wearable Computers, pp. 440–445, 2021.
513
+
514
+ William J Reed. The pareto, zipf and other power laws. *Economics letters*, 74(1):15–19, 2001. Jiawei Ren, Cunjun Yu, Xiao Ma, Haiyu Zhao, Shuai Yi, et al. Balanced meta-softmax for long-tailed visual recognition. *Advances in Neural Information Processing Systems*, 33:4175–4186, 2020.
515
+
516
+ Christian P Robert et al. *The Bayesian choice: from decision-theoretic foundations to computational implementation*, volume 2. Springer, 2007.
517
+
518
+ Soumyadip Sengupta, Jun-Cheng Chen, Carlos Castillo, Vishal M Patel, Rama Chellappa, and David W
519
+ Jacobs. Frontal to profile face verification in the wild. In *2016 IEEE winter conference on applications of* computer vision (WACV), pp. 1–9. IEEE, 2016.
520
+
521
+ Xiaohang Shi, Jun Hu, Xueyue Lei, and Shiyou Xu. Detection of flying birds in airport monitoring based on improved yolov5. In 2021 6th International Conference on Intelligent Computing and Signal Processing
522
+ (ICSP), pp. 1446–1451. IEEE, 2021.
523
+
524
+ Jun Shu, Qi Xie, Lixuan Yi, Qian Zhao, Sanping Zhou, Zongben Xu, and Deyu Meng. Meta-weight-net:
525
+ Learning an explicit mapping for sample weighting. *Advances in neural information processing systems*,
526
+ 32, 2019.
527
+
528
+ Grant Van Horn and Pietro Perona. The devil is in the tails: Fine-grained classification in the wild. *arXiv* preprint arXiv:1709.01450, 2017.
529
+
530
+ Grant Van Horn, Oisin Mac Aodha, Yang Song, Yin Cui, Chen Sun, Alex Shepard, Hartwig Adam, Pietro Perona, and Serge Belongie. The inaturalist species classification and detection dataset. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 8769–8778, 2018.
531
+
532
+ Haotao Wang, Aston Zhang, Yi Zhu, Shuai Zheng, Mu Li, Alex J Smola, and Zhangyang Wang. Partial and asymmetric contrastive learning for out-of-distribution detection in long-tailed recognition. In International Conference on Machine Learning, pp. 23446–23458. PMLR, 2022.
533
+
534
+ Xudong Wang, Long Lian, Zhongqi Miao, Ziwei Liu, and Stella Yu. Long-tailed recognition by routing diverse distribution-aware experts. In *International Conference on Learning Representations*, 2020.
535
+
536
+ Yu-Xiong Wang, Deva Ramanan, and Martial Hebert. Learning to model the tail. *Advances in Neural* Information Processing Systems, 30, 2017.
537
+
538
+ Tong Wu, Qingqiu Huang, Ziwei Liu, Yu Wang, and Dahua Lin. Distribution-balanced loss for multi-label classification in long-tailed datasets. In *European Conference on Computer Vision*, pp. 162–178. Springer, 2020.
539
+
540
+ Liuyu Xiang, Guiguang Ding, and Jungong Han. Learning from multiple experts: Self-paced knowledge distillation for long-tailed classification. In *European Conference on Computer Vision*, pp. 247–263. Springer, 2020.
541
+
542
+ Zhixiong Yang, Junwen Pan, Yanzhan Yang, Xiaozhou Shi, Hong-Yu Zhou, Zhicheng Zhang, and Cheng Bian.
543
+
544
+ Proco: Prototype-aware contrastive learning for long-tailed medical image classification. In *International* Conference on Medical Image Computing and Computer-Assisted Intervention, pp. 173–182. Springer, 2022.
545
+
546
+ Dmitry Yudin, Anton Sotnikov, and Andrey Krishtopik. Detection of big animals on images with road scenes using deep learning. In 2019 International Conference on Artificial Intelligence: Applications and Innovations (IC-AIAI), pp. 100–1003. IEEE, 2019.
547
+
548
+ Yifan Zhang, Bryan Hooi, HONG Lanqing, and Jiashi Feng. Self-supervised aggregation of diverse experts for test-agnostic long-tailed recognition. In *Advances in Neural Information Processing Systems*, 2022.
549
+
550
+ ## A The Design Of Decision Gain
551
+
552
+ This section is moved to the main body.
553
+
554
+ As mentioned in the paper, we design the decision gain to be the following:
555
+
556
+ $$g(d|\mathbf{x},\mathbf{\theta}):=\prod_{y^{\prime}}p(y^{\prime}|\mathbf{x},\mathbf{\theta})^{U_{y^{\prime},d}}.$$
557
+ $$(18)$$
558
+
559
+ Uy′,d . (18)
560
+ Our design is different from previous work like Cobb et al. (2018), which uses
561
+
562
+ $$g^{\prime}(d|\mathbf{x},\mathbf{\theta}):=\sum_{y^{\prime}}U_{y^{\prime},d}\cdot p(y^{\prime}|\mathbf{x},\mathbf{\theta}).\tag{19}$$
563
+
564
+ Both definitions achieve the goal of averaging the predictive probability p(y|x, θ) weighted by the utility values. However, our design has two advantages: i) Stability: Eq. 18 is more stable for training. After taking the logarithm, Eq. 18 becomes Py′ Uy′,d(x)·log p(y
565
+ ′|x, θ) which is a weighted average of the log probabilities, while Eq. 19 becomes log Py′ Uy′,d(x)· p(y
566
+ ′|x, θ), which is a log of weighted average of the probabilities and not commonly used in classification problems. ii) Flexibility: Eq. 18 allows for more general and flexible utility values whereas Eq. 19 requires the utility matrix U to be positive definite (otherwise we may not be able to compute the logarithm in Eq. 19). Due to these reasons, we use Eq. 18 in this paper.
567
+
568
+ ## B Related Model Architectures
569
+
570
+ The model architecture of our method is an ensemble of multiple individual models. This architecture belongs to a general type of Bayesian neural networks, called particle-based BNN or particle optimization (Liu &
571
+ Wang, 2016; D'Angelo & Fortuin, 2021). Generally, the particle-based variational distribution is in the form of q(θ) = PM
572
+ j=1 wj · δ(θ − θj ), where {wj}M
573
+ j=1 are normalized weights which hold PM
574
+ j=1 wj = 1, and δ(·) is the Dirac delta function. Each "particle" θj is a deterministic model and provides the predictive probability p(y|x, θj ). The particle-based BNN is first studied in Stein variational gradient descent (SVGD) (Liu &
575
+ Wang, 2016) and then explored by Liu et al. (2019a); Korba et al. (2020); D'Angelo & Fortuin (2020).
576
+
577
+ Instead of directly modeling the gradient flow, our framework optimizes the particles through stochastic gradient descent (SGD), with repulsive force induced by the integrated gain objective. Compared to existing particle optimization, our method is easy and cheap to implement, which is especially beneficial for large-scale deep learning.
578
+
579
+ Similar architectures like the "multi-expert" models have been explored by previous long-tailed classification methods (Xiang et al., 2020; Wang et al., 2020; Li et al., 2022). They usually combine several individual classifiers with a shared encoder to obtain better generalization performances (Lakshminarayanan et al.,
580
+ 2017; Hu et al., 2022), which is inspired by the observation that multiple i.i.d. initializations are less likely to generate averagely "bad" models (Dietterich, 2000). The particle-based models reduce the cost of Bayesian inference and are more efficient than variational inference and Markov chain Monte Carlo (MCMC), especially on high-dimensional and multimodal distributions. Besides, the computational cost of our method can be further reduced by leveraging recent techniques, such as partially being Bayesian in model architectures (Kristiadi et al., 2020).
581
+
582
+ ## C Full Utility Matrices For Class/Metaclass-Sensitive Utility
583
+
584
+ We show the full utility matrices of class-sensitive and metaclass-sensitive utilities in Fig. 3, which is based on the 10 categories of CIFAR10-LT (Cui et al., 2019).
585
+
586
+ ![17_image_0.png](17_image_0.png)
587
+ Figure 3: Full utility matrix configurations on CIFAR10-LT. The two matrices are designed to particularly avoid certain misprediction types (bird-place and mammal-vehicle mispredictions respectively).
588
+
589
+ ## D Derivation Of Eq. 10
590
+
591
+ The following proof is based on the assumption that both training and testing data are semantically identical7, and the only difference lies in class probabilities (ptrain(y) and ptest(y)).
592
+
593
+ Proof. We denote the dataset as D = {X,Y } = {(xi, yi)}
594
+ N
595
+ i=1, where each pair is drawn from the same data distribution. Then the logarithm of integrated gain would be:
596
+
597
+ log G(d) = log E(x1,y1),...,(xN ,yN )∼ptest(x,y)Eθ∼p(θ|D)G(d|X, θ) (a) ≥ E(x1,y1),...,(xN ,yN )∼ptest(x,y)log Eθ∼p(θ|D)G(d|X, θ) = E(x1,y1),...,(xN ,yN )∼ptest(x,y)log Z Θ q(θ)G(d|X, θ) p(θ|D) q(θ)dθ (b) ≥ E(x1,y1),...,(xN ,yN )∼ptest(x,y) Z Θ q(θ) log G(d|X, θ) p(θ|D) q(θ) dθ (20) := E(x1,y1),...,(xN ,yN )∼ptest(x,y)Ψ(D). Here, (a) and (b) are by Jensen's inequality (Jensen, 1906). The Ψ(D) inside the expectation can be further
598
+ extended to be:
599
+ Ψ(D) = Z Θ q(θ) log G(d|X, θ) p(θ|D) q(θ) dθ = Z Θ q(θ) log G(d|X, θ) · p(θ) q(θ) · p(Y |X, θ) p(Y |X) dθ = Z Θ q(θ) " logY N i=1 g(di|xi, θ) − log q(θ) p(θ) + logY N (21) i=1 p(yi|xi, θ) − log p(Y |X) # dθ = X N i=1 Eθ∼q(θ)[log g(di|xi, θ) + log p(yi|xi, θ)] − KL(q(θ)||p(θ)) − log p(Y |X).
600
+ 7In contrast to the open-set scenario (Geng et al., 2020), where additional classes may cause testing data to be semantically irrelevant to training data.
601
+ Therefore, the ultimate expression of integrated gain is:
602
+
603
+ log G(d) ≥ E(x1,y1),...,(xN ,yN )∼ptest(x,y)Ψ(D) = X N i=1 E(xi,yi)∼ptest(x,y)Eθ∼q(θ)[log g(di|xi, θ) + log p(yi|xi, θ)] − KL(q(θ)||p(θ)) − log p(Y |X) = X N i=1 E(xi,yi)∼ptrain(x,y)Eθ∼q(θ) ptest(xi, yi) ptrain(xi, yi) [log g(di|xi, θ) + log p(yi|xi, θ)] − KL(q(θ)||p(θ)) − log p(Y |X) (c) ≈ X N i=1 Eθ∼q(θ) ptest(xi, yi) ptrain(xi, yi) [log g(di|xi, θ) + log p(yi|xi, θ)] − KL(q(θ)||p(θ)) − log p(Y |X) i=1 Eθ∼q(θ)1 f(nyi ) X y′ Uy′,di · log p(y ′|xi, θ) + log p(yi|xi, θ) ∝ X N − KL(q(θ)||p(θ)) − log p(Y |X) := L(q, d). (22)
604
+ Here, (c) is by the one-sample MC estimates of the expectation over the data point (xi, yi).
605
+ $$\begin{array}{c}{{(22)}}\\ {{\Box}}\end{array}$$
606
+
607
+ ## E Proof Of Eq. 11 And Eq. 12
608
+
609
+ Proof. The objective in Eq. 10 can be written as:
610
+
611
+ L(q, d) ≈
612
+ X
613
+ N
614
+ i=1
615
+ E(xi,yi)∼ptest(x,y)Eθ∼q(θ)[log g(di|xi, θ) + log p(yi|xi, θ)] − KL(q(θ)||p(θ)) − log p(Y |X)
616
+ = E(x1,y1)*,...,*(xN ,yN )∼ptest(x,y)
617
+ X
618
+ N
619
+ i=1
620
+ Eθ∼q(θ)[log g(di|xi, θ) + log p(yi|xi, θ)] − KL(q(θ)||p(θ)) − log p(Y |X)
621
+ = E(x1,y1)*,...,*(xN ,yN )∼ptest(x,y)Eθ∼q(θ)[log G(d|X, θ) + log p(Y |X, θ)] − KL(q(θ)||p(θ)) − log p(Y |X)
622
+ (a)
623
+
624
+ Z
625
+ Θ
626
+ q(θ)
627
+ log q(θ)
628
+ p(θ)
629
+ − log ptest(Y |X, θ) + log p(Y |X)
630
+ dθ + E(x1,y1)*,...,*(xN ,yN )∼ptest(x,y)Eθ∼q(θ)log G(d|X, θ)
631
+ = −KL(q(θ)||ptest(θ|D)) + E(x1,y1)*,...,*(xN ,yN )∼ptest(x,y)Eθ∼q(θ)log G(d|X, θ).
632
+ (23)
633
+ Here, (a) is by N independent one-sample MC approximation over all of the data points. When we choose
634
+ the one-hot utility matrix U = I, the decision gain G(d = Y |X, θ) will equal the predictive probability
635
+ p(Y |X, θ), and thus it can be ignored. Therefore, the objective with one-hot utility matrix is:
636
+ $$L(q,d)\approx-K L(q(\theta)||p_{\mathrm{test}}(\theta|{\mathcal{D}})).$$
637
+ $$(24)$$
638
+ L(q, d) ≈ −KL(q(θ)||ptest(θ|D)). (24)
639
+
640
+ ## F Implementation Details
641
+
642
+ We summarize the necessary implementation details in this section for the reproducibility of our method. The hyper-parameter choices are concluded in table 8. The optimal values of those hyper-parameters are determined by grid search. We will release the code after acceptance.
643
+
644
+ ## F.1 Evaluation Protocol
645
+
646
+ The evaluation protocol consists of standard classification accuracy, three newly designed experiments on the False Head Rate (FHR) along with other two metrics, and calibration experiments on AUC and ECE metrics. Besides, we conduct several ablation studies to evaluate different choices of implementation and the
647
+
648
+ | | Learning | Training | Discrepancy | | | | | | |
649
+ |-------------|---------------|------------|---------------|------|--------|--------|------|----|-------|
650
+ | Dataset | Base Model | Optimizer | Batch Size | Rate | Epochs | Ratio | λ | τ | α |
651
+ | CIFAR10-LT | ResNet32 | SGD | 128 | 0.1 | 200 | linear | 5e-4 | 40 | 0.002 |
652
+ | CIFAR100-LT | ResNet32 | SGD | 128 | 0.1 | 200 | linear | 5e-4 | 40 | 0.3 |
653
+ | ImageNet-LT | ResNet50 | SGD | 256 | 0.1 | 100 | linear | 2e-4 | 20 | 50 |
654
+ | iNaturalist | Slim ResNet50 | SGD | 512 | 0.2 | 100 | linear | 2e-4 | 20 | 100 |
655
+
656
+ Table 8: Hyper-parameter configurations.
657
+ effectiveness of components in our method. For all quantitative and visual results, we repeatedly run the experiments five times with random initialization to obtain the averaged results and standard deviations to eliminate random error. We use f(ny) = ny unless otherwise specified.
658
+
659
+ ## F.2 Training Objective
660
+
661
+ We slightly modify the training objective in the code-level implementation to apply two practical tricks for better performance. Repulsive force. We find in experiments that although applying repulsive force can promote the diversity of particles, it will certainly disturb the fine-tuning stage in training, which consequently results in suboptimal performances by the end of training. To address this issue, we apply an annealing weight to the repulsive force to reduce its effect as the training proceeds:
662
+
663
+ $$\exp\{-t/\tau\}\cdot\frac{1}{2}\sum_{k}\log{(\overline{{{\theta^{2}}}}-\overline{{{\theta}}}^{2})}_{k},$$
664
+ $$(25)$$
665
+
666
+ 2)k, (25)
667
+ where t refers to the epoch and τ is a stride factor that controls the decay of annealing weight. With the annealing weight, the repulsive force will push particles away at the beginning of training, and gradually become negligible at the end of training.
668
+
669
+ Utility matrix. Although the utility matrices in Fig. 1 are designed to address the many realistic problem settings, they will also affect the accuracy of the classification task. Therefore, the utility term in Eq. 10 needs re-scaling so that its negative effect on the accuracy is controllable:
670
+
671
+ $$\log p(y|\mathbf{x},\mathbf{\theta})+\frac{1}{\alpha}\cdot\sum_{y^{\prime}}U_{y^{\prime},d}\cdot\log p(y^{\prime}|\mathbf{x},\mathbf{\theta}),$$
672
+ $$(26)$$
673
+
674
+ where α is the scaling factor. We can adjust the value of α to carefully control the effect of the utility term, which will bring us significant improvement on the False Head Rate (along with other metrics) with an acceptable accuracy drop.
675
+
676
+ ## F.3 Discussion On Computational Cost
677
+
678
+ We run all experiments on an NVIDIA RTX A6000 GPU (49 GB) and do not need multiple GPUs for one model. The model architecture follows RIDE (Wang et al., 2020) and TLC (Li et al., 2022), in which the first few layers in neural networks are shared among all particles. Therefore, the computational cost of our method is comparable to existing ensemble models. Besides, compared with gradient-flow-based BNN like D'Angelo & Fortuin (2021), which typically uses 20 particles, our model is far more efficient with no more than 5 particles.
679
+
680
+ ## G Additional Experimental Results G.1 Full Experimental Results On Classification
681
+
682
+ We list the full experimental results of top-1 accuracy in Table 9, including the results on iNaturalist (Van Horn et al., 2018). Classes are equally split into three class regions (head, med and tail). For
683
+
684
+ | Table 9: Full top-1 accuracy results (%). † means the results are directly copied from the original pa | per. | | | | |
685
+ |----------------------------------------------------------------------------------------------------------|--------------|--------------|--------------|--------------|------|
686
+ | Dataset | Method | All | Head | Med | Tail |
687
+ | CIFAR10-LT | LA† | 77.67 | - | - | - |
688
+ | ACE† | 81.2 | - | - | - | |
689
+ | SRepr† | 82.06 ± 0.01 | - | - | - | |
690
+ | CE | 73.65 ± 0.39 | 93.22 ± 0.26 | 74.27 ± 0.42 | 58.51 ± 0.62 | |
691
+ | CB Loss | 77.62 ± 0.69 | 91.70 ± 0.57 | 75.41 ± 0.76 | 68.73 ± 1.52 | |
692
+ | LDAM | 80.63 ± 0.69 | 90.03 ± 0.47 | 75.88 ± 0.81 | 77.14 ± 1.61 | |
693
+ | RIDE | 83.11 ± 0.52 | 91.49 ± 0.40 | 79.39 ± 0.61 | 79.62 ± 1.56 | |
694
+ | TLC | 79.70 ± 0.65 | 89.47 ± 0.33 | 74.33 ± 0.96 | 76.39 ± 0.98 | |
695
+ | RF-DLC | 83.75 ± 0.17 | 90.49 ± 0.60 | 78.89 ± 0.87 | 82.33 ± 1.16 | |
696
+ | CIFAR100-LT | LA† | 43.89 | - | - | - |
697
+ | ACE† | 49.4 | 66.1 | 55.7 | 23.5 | |
698
+ | SRepr† | 47.81 ± 0.02 | 66.69 ± 0.01 | 49.91 ± 0.01 | 23.31 ± 0.11 | |
699
+ | CE | 38.82 ± 0.52 | 68.30 ± 0.61 | 38.39 ± 0.49 | 10.62 ± 1.23 | |
700
+ | CB Loss | 42.24 ± 0.41 | 62.53 ± 0.44 | 44.36 ± 0.96 | 20.50 ± 0.51 | |
701
+ | LDAM | 43.13 ± 0.67 | 63.58 ± 0.93 | 42.90 ± 1.03 | 23.50 ± 1.28 | |
702
+ | RIDE | 48.99 ± 0.44 | 69.11 ± 0.54 | 49.70 ± 0.59 | 28.78 ± 1.52 | |
703
+ | TLC | 48.75 ± 0.16 | 69.43 ± 0.36 | 49.02 ± 0.94 | 28.40 ± 0.72 | |
704
+ | RF-DLC | 50.24 ± 0.70 | 69.92 ± 0.77 | 51.07 ± 0.82 | 30.34 ± 1.49 | |
705
+ | ImageNet-LT | LA† | 51.11 | - | - | - |
706
+ | ACE† | 54.7 | - | - | - | |
707
+ | SRepr† | 52.12 ± 0.06 | 62.52 ± 0.26 | 49.44 ± 0.18 | 32.14 ± 0.41 | |
708
+ | CE | 47.80 ± 0.15 | 53.46 ± 0.36 | 45.92 ± 0.19 | 44.03 ± 0.24 | |
709
+ | CB Loss | 51.70 ± 0.25 | 57.62 ± 0.46 | 49.19 ± 0.21 | 48.29 ± 0.41 | |
710
+ | LDAM | 51.04 ± 0.21 | 57.66 ± 0.40 | 48.26 ± 0.19 | 47.21 ± 0.22 | |
711
+ | RIDE | 54.32 ± 0.54 | 60.88 ± 0.71 | 51.35 ± 0.44 | 50.74 ± 0.62 | |
712
+ | TLC | 55.03 ± 0.34 | 61.19 ± 0.53 | 52.35 ± 0.31 | 51.56 ± 0.35 | |
713
+ | RF-DLC | 55.73 ± 0.17 | 62.18 ± 0.28 | 53.06 ± 0.22 | 51.98 ± 0.40 | |
714
+ | iNaturalist | LA† | 66.36 | - | - | - |
715
+ | ACE† | 72.9 | - | - | - | |
716
+ | SRepr† | 70.79 ± 0.17 | 70.70 ± 0.31 | 70.83 ± 0.20 | 70.79 ± 0.17 | |
717
+ | CE | 64.17 | 75.28 | 63.00 | 54.22 | |
718
+ | LDAM | 66.20 | 74.58 | 64.17 | 59.84 | |
719
+ | RIDE | 71.07 | 77.21 | 68.23 | 67.78 | |
720
+ | RF-DLC | 71.30 | 78.56 | 67.29 | 68.05 | |
721
+
722
+ example, there are 33, 33 and 34 classes respectively in the head, med and tail regions of CIFAR100-LT.
723
+
724
+ The results on iNaturalist are obtained by a single run due to the large size of the dataset. We use a slim version of ResNet50 for all baselines due to GPU memory limitation. Our method successfully outperforms all other baselines especially on the tailed classes.
725
+
726
+ ## G.2 Comparison With Cost-Sensitive Learning Approaches
727
+
728
+ The canonical approaches in cost-sensitive learning (Elkan, 2001) could not solve the decision-making problem in long-tailed classification effectively due to their lack of a holistic approach that integrates data distribution shifts and decision-making processes. For example, the method in Section 2 of Elkan (2001) does not consider specific error types and data distribution during the training phase, and fails to incorporate the utility matrix during testing. The Bayesian method in Section 4 of Elkan (2001) learns a standard posterior without accounting for data distribution or the utility matrix, applying the latter only during the testing phase. To further illustrate the advantages of our method, we empirically compare our method with two baselines: (1) the Bayesian method in Elkan (2001) and (2) the naive combination of a long-tailed approach, reweighting loss, and the Bayesian method in Elkan (2001). The table below (on CIFAR100-LT, with tailsensitive utility applied) shows that our method significantly outperforms both baselines in terms of ACC and FHR. This demonstrates the advantages of our method which concurrently addresses long-tailed distributions and decision-making during both training and testing phases in a unified way.
729
+
730
+ Table 10: Comparison with cost-sensitive learning approaches on CIFAR100-LT. Tail-sensitive utility is applied.
731
+
732
+ | Method | ACC (%) ↑ | FHR (%) ↓ | | | | |
733
+ |---------------------------------|-------------|-------------|-------|-------|-------|-------|
734
+ | All | Tail | 25% | 50% | 75% | Avg | |
735
+ | RF-DLC | 49.92 | 33.74 | 14.92 | 30.22 | 51.80 | 32.31 |
736
+ | Elkan (2001) | 43.36 | 24.68 | 25.97 | 41.98 | 52.64 | 40.20 |
737
+ | Reweighting Loss + Elkan (2001) | 45.40 | 26.35 | 20.69 | 41.28 | 65.36 | 42.44 |
738
+
739
+ ## G.3 Ablation Study On The Robustness Of Utility Values
740
+
741
+ We conducted the experiment on the robustness of utility values on CIFAR100-LT. The utility matrix used in this experiment is:
742
+
743
+ $$\mathbf{\nabla}U:=$$
744
+ $$\begin{array}{|cccc|}\hline1&0&\cdots&0\\ u&1&\cdots&0\\ \vdots&\vdots&\ddots&\vdots\\ u&u&\cdots&1\\ \hline\end{array}\tag{27}$$
745
+
746
+ The results, as shown in Table 11, demonstrate that all values of u will lead to improvement in FHR and comparable or better ACC compared with the baseline one-hot matrix (i.e. u = 0). These findings indicate that our method's performance is relatively insensitive to variations in utility values (we simply use −1 in the paper) and fine-tuning these values can further improve performance.
747
+
748
+ | Utility Value | ACC (%) ↑ | FHR (%) ↓ | | | | |
749
+ |-----------------|-------------|-------------|-------|-------|-------|-------|
750
+ | All | Tail | 25% | 50% | 75% | Avg | |
751
+ | 0 | 49.76 | 30.00 | 19.12 | 38.04 | 60.44 | 39.20 |
752
+ | -0.1 | 49.70 | 29.88 | 18.12 | 36.56 | 59.32 | 38.00 |
753
+ | -0.2 | 49.09 | 29.38 | 18.16 | 36.34 | 60.28 | 38.26 |
754
+ | -0.3 | 49.41 | 29.82 | 17.81 | 35.28 | 58.12 | 37.07 |
755
+ | -0.4 | 49.49 | 30.41 | 17.20 | 34.64 | 56.80 | 36.21 |
756
+ | -0.5 | 49.90 | 31.47 | 16.71 | 33.52 | 55.72 | 35.32 |
757
+ | -0.6 | 49.84 | 31.82 | 16.92 | 33.82 | 54.72 | 35.15 |
758
+ | -0.7 | 49.32 | 30.85 | 16.33 | 32.04 | 55.08 | 34.48 |
759
+ | -0.8 | 49.66 | 33.00 | 15.91 | 31.32 | 51.60 | 32.94 |
760
+ | -0.9 | 49.27 | 32.12 | 15.53 | 30.68 | 51.24 | 32.48 |
761
+ | -1 | 49.92 | 33.74 | 14.92 | 30.22 | 51.80 | 32.31 |
762
+
763
+ Table 11: Ablation study on the robustness of utility values on CIFAR100-LT.
6xwqONp6KK/6xwqONp6KK_meta.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "languages": null,
3
+ "filetype": "pdf",
4
+ "toc": [],
5
+ "pages": 22,
6
+ "ocr_stats": {
7
+ "ocr_pages": 1,
8
+ "ocr_failed": 0,
9
+ "ocr_success": 1,
10
+ "ocr_engine": "surya"
11
+ },
12
+ "block_stats": {
13
+ "header_footer": 22,
14
+ "code": 0,
15
+ "table": 11,
16
+ "equations": {
17
+ "successful_ocr": 40,
18
+ "unsuccessful_ocr": 9,
19
+ "equations": 49
20
+ }
21
+ },
22
+ "postprocess_stats": {
23
+ "edit": {}
24
+ }
25
+ }