RedTachyon
commited on
Commit
•
9a64e80
1
Parent(s):
5a0f0b3
Upload folder using huggingface_hub
Browse files- CrNI4xVOUs/16_image_0.png +3 -0
- CrNI4xVOUs/17_image_0.png +3 -0
- CrNI4xVOUs/17_image_1.png +3 -0
- CrNI4xVOUs/18_image_0.png +3 -0
- CrNI4xVOUs/18_image_1.png +3 -0
- CrNI4xVOUs/19_image_0.png +3 -0
- CrNI4xVOUs/19_image_1.png +3 -0
- CrNI4xVOUs/20_image_0.png +3 -0
- CrNI4xVOUs/20_image_1.png +3 -0
- CrNI4xVOUs/3_image_0.png +3 -0
- CrNI4xVOUs/7_image_0.png +3 -0
- CrNI4xVOUs/8_image_0.png +3 -0
- CrNI4xVOUs/8_image_1.png +3 -0
- CrNI4xVOUs/9_image_0.png +3 -0
- CrNI4xVOUs/CrNI4xVOUs.md +706 -0
- CrNI4xVOUs/CrNI4xVOUs_meta.json +25 -0
CrNI4xVOUs/16_image_0.png
ADDED
Git LFS Details
|
CrNI4xVOUs/17_image_0.png
ADDED
Git LFS Details
|
CrNI4xVOUs/17_image_1.png
ADDED
Git LFS Details
|
CrNI4xVOUs/18_image_0.png
ADDED
Git LFS Details
|
CrNI4xVOUs/18_image_1.png
ADDED
Git LFS Details
|
CrNI4xVOUs/19_image_0.png
ADDED
Git LFS Details
|
CrNI4xVOUs/19_image_1.png
ADDED
Git LFS Details
|
CrNI4xVOUs/20_image_0.png
ADDED
Git LFS Details
|
CrNI4xVOUs/20_image_1.png
ADDED
Git LFS Details
|
CrNI4xVOUs/3_image_0.png
ADDED
Git LFS Details
|
CrNI4xVOUs/7_image_0.png
ADDED
Git LFS Details
|
CrNI4xVOUs/8_image_0.png
ADDED
Git LFS Details
|
CrNI4xVOUs/8_image_1.png
ADDED
Git LFS Details
|
CrNI4xVOUs/9_image_0.png
ADDED
Git LFS Details
|
CrNI4xVOUs/CrNI4xVOUs.md
ADDED
@@ -0,0 +1,706 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# A Novel Information Theoretic Objective To Disentangle Representations For Fair Textual Classification
|
2 |
+
|
3 |
+
Anonymous authors Paper under double-blind review
|
4 |
+
|
5 |
+
## Abstract
|
6 |
+
|
7 |
+
One of the pursued objectives of deep learning is to provide tools that learn abstract representations of reality from the observation of multiple contextual situations. More precisely, one wishes to extract *disentangled representations* which are (i) low dimensional and *(ii)* whose components are independent and correspond to concepts capturing the essence of the objects under consideration (Locatello et al., 2019b). One step towards this ambitious project consists in learning disentangled representations with respect to a predefined (sensitive)
|
8 |
+
attribute, *e.g.*, the gender or age of the writer. Perhaps one of the main application for such disentangled representations is fair classification. Existing methods extract the last layer of a neural network trained with a loss that is composed of a cross-entropy objective and a disentanglement regularizer. In this work, we adopt an information-theoretic view of this problem which motivates a novel family of regularizers that minimizes the mutual information between the latent representation and the sensitive attribute conditional to the target. The resulting set of losses, called CLINIC, is *parameter free* and thus, it is easier and faster to train. CLINIC losses are studied through extensive numerical experiments by training over 2k neural networks. We demonstrate that our methods offer a better disentanglement/accuracy trade-off than previous techniques, and generalize better than training with cross-entropy loss solely provided that the disentanglement task is not too constraining.
|
9 |
+
|
10 |
+
## 1 Introduction
|
11 |
+
|
12 |
+
There has been a recent surge towards disentangled representations techniques in deep learning Mathieu et al. (2019); Locatello et al. (2019a; 2020); Gabbay & Hoshen (2019). Learning disentangled representations from high dimensional data ultimately aims at separating a few explanatory factors (Bengio et al., 2013)
|
13 |
+
that contain meaningful information on the objects of interest, regardless of specific variations or contexts.
|
14 |
+
|
15 |
+
A disentangled representation has the major advantage of being less sensitive to accidental variations (*e.g.*,
|
16 |
+
style) and thus generalizes well. In this work, we focus on a specific disentanglement task which aims at learning a representation independent from a predefined attribute S. Such a representation will be called *disentangled with respect to* S. This task can be seen as a first step towards the ideal goal of learning a perfectly disentangled representation.
|
17 |
+
|
18 |
+
Moreover, it is particularly well-suited for fairness applications, such as fair classification, which are nowadays increasingly sought after. When a learned representation Z is disentangled from a sensitive attribute S such as the age or the gender, any decision rule based on Z is independent of S, making it fair in some sense. For instance, it satisfies the Demographic Parity criterion (see Proposition 1)). Learning disentangled representations with respect to a sensitive attribute is challenging and previous works in the Natural Language Processing (NLP) community were based on two types of approach. The first one consists in training an adversary Elazar & Goldberg (2018); Coavoux et al. (2018). Despite encouraging results during training, Lample et al. (2018) show that a new adversary trained from scratch on the obtained representation is able to infer the predefined attribute, suggesting that the representation is in fact not disentangled. The second one consists in training a variational surrogate Cheng et al. (2020); Colombo et al.
|
19 |
+
|
20 |
+
(2021); John et al. (2018) of the mutual information (MI) Cover & Thomas (2006) between the learned representation and the variable from which one wishes to disentangle it. One of the major weaknesses of both approaches is the presence of an additional optimization loop designed to learn additional parameters during training (the parameters of the adversary for the first method, and the parameters required to approximate the MI for the second one), which is time-consuming and requires careful tuning (see Alg. 1).
|
21 |
+
|
22 |
+
Our contributions. We introduce a new method to learn disentangled representations, with a particular focus on fair representations in the context of NLP. Our contributions are two-fold:
|
23 |
+
(1) We provide new perspectives on the disentanglement with respect to a predefined attribute problem using information-theoretic concepts. Our analysis motivates the introduction of new losses tailored for classification, called CLINIC (Conditional mutuaL InformatioN mInimization for fair ClassifIcAtioN).
|
24 |
+
|
25 |
+
It is faster than previous approaches as it does not to require to learn additional parameters. One of the main novelty of CLINIC is to minimize the MI between the latent representation and the sensitive attribute conditional to the target which leads to high disentanglement capability while maintaining high-predictive power.
|
26 |
+
|
27 |
+
(2) We conduct **extensive numerical experiments** which illustrate and validate our methodology. More precisely, we train over 2K neural models on four different datasets and conduct various ablation studies using both Recurrent Neural Networks (RNN) and pre-trained transformers (PT) models. Our results show that the CLINIC's objective is better suited than existing methods, it is faster to train and requires less tuning as it does not have learnable parameters. Interestingly, in some scenarios, it can increase both disentanglement and classification accuracies and thus, overcoming the classical disentanglement-accuracy trade-off.
|
28 |
+
|
29 |
+
From a practical perspective, we would like to add that our method is well-suited for fairness applications and is compliant with the *fairness through unawareness principle* that obliges one to fix a single model which is later applied across all groups of interest Gajane & Pechenizkiy (2017); Lipton et al. (2018). Indeed, our method only requires access to the sensitive attribute during its learning phase, but the resulting learned prediction function does not take the sensitive variable as an input.
|
30 |
+
|
31 |
+
## 2 Related Works
|
32 |
+
|
33 |
+
In order to describe existing works, we begin by introducing some useful notations. From an input textual data represented by a random variable (r.v.) X ∈ X , the goal is to learn a parameter θ ∈ Θ of an encoder fθ : *X → Z ⊂* R
|
34 |
+
dso as to transform X into a latent vector Z = fθ(X) of dimension d that summarizes the useful information of X. Additionally, we require the learned embedding Z to be *guarded* (following the terminology of Elazar & Goldberg (2018)) from an input sensitive attribute S ∈ S associated to X, in the sense that no classifier can predict S from Z better than a random guess. The final decision is done through predictor gϕ that makes a prediction Yˆ = gϕ(Z) ∈ Y, where ϕ ∈ Φ refers to the learned parameters. We will consider classification problems where Y is a discrete finite set.
|
35 |
+
|
36 |
+
## 2.1 Disentangled Representations
|
37 |
+
|
38 |
+
The main idea behind most of the previous works focusing on the learning of disentangled representations
|
39 |
+
consists in adding a disentanglement regularizer to a learning task objective. The resulting mainstream loss takes the form:
|
40 |
+
$$\mathcal{L}(\theta,\phi)=\underbrace{\mathcal{L}_{t a s k}}_{\mathrm{target~task}}+\lambda\cdot\underbrace{\mathcal{R}\left(f_{\theta}(X),S;\phi\right)}_{\mathrm{disentanglement}},$$
|
41 |
+
, (1)
|
42 |
+
where ϕ denotes the trainable parameters of the regularizer. Let us describe the two main types of regularizers used in the literature, both having the flaw to require a nested loop, which adds an extra complexity to the training procedure (see Alg. 1).
|
43 |
+
|
44 |
+
Adversarial losses. They rely on fooling a classifier (the adversary) trained to recover the sensitive attribute S from Z. As a result, the corresponding disentanglement regularizer is trained by relying on the cross-entropy
|
45 |
+
(CE) loss between the predicted sensitive attribute and the ground truth label S. Despite encouraging results, adversarial methods are known to be unstable both in terms of training dynamics Sridhar et al. (2021); Zhang et al. (2019) and initial conditions Wong et al. (2020).
|
46 |
+
|
47 |
+
Losses based on Mutual Information (MI). These losses, which also rely on learned parameters, aim at
|
48 |
+
|
49 |
+
$\left(1\right)$.
|
50 |
+
minimizing the MI I(Z; S) between Z and S, which is defined by
|
51 |
+
|
52 |
+
$$I(Z;S)=\mathbb{E}_{Z S}\left[\log\frac{p_{Z S}(Z,S)}{p_{Z}(Z)p_{S}(S)}\right],$$
|
53 |
+
|
54 |
+
$$(2)^{\frac{1}{2}}$$
|
55 |
+
, (2)
|
56 |
+
where the joint probability density function (pdf) of the tuple (*Z, S*) is denoted pZS and the respective marginal pdfs are denoted pZ and pS. Recent MI estimators include MINE (Belghazi et al., 2018), NWJ (Nguyen et al., 2010), CLUB (Cheng et al., 2020), DOE (McAllester & Stratos, 2020), Iα (Colombo et al., 2021),
|
57 |
+
SMILE Song & Ermon (2019).
|
58 |
+
|
59 |
+
## 2.2 Parameter Free Estimation Of Mi
|
60 |
+
|
61 |
+
The CLINIC's objective can be seen as part of the second type of losses although it does not involve additional learnable parameters. MI estimation can be done using contrastive learning surrogates Chopra et al. (2005) which offer satisfactory approximations with theoretical guarantees (we refer the reader to Oord et al. (2018) for further details). Contrastive learning is connected to triplet loss Schroff et al. (2015) and has been used to tackle the different problems including self-supervised or unsupervised representation learning
|
62 |
+
(*e.g.* audio Qian et al. (2021), image Yamaguchi et al. (2019), text Reimers & Gurevych (2019); Logeswaran
|
63 |
+
& Lee (2018)). It consists in bringing closer pairs of similar inputs, called *positive pairs* and further dissimilar ones, called *negative pairs*. The positive pairs can be obtained by data augmentation techniques Chen et al.
|
64 |
+
|
65 |
+
(2020) or using various heuristic (e.g similar sentences belong to the same document Giorgi et al. (2020),
|
66 |
+
backtranslation Fang et al. (2020) or more complex techniques Qu et al. (2020); Gillick et al. (2019); Shen et al. (2020)). For a deeper dive in mining techniques used in NLP, we refer the reader to Rethmeier &
|
67 |
+
Augenstein (2021).
|
68 |
+
|
69 |
+
One of the novelty of CLINIC is to provide a novel information theoretic objective tailored for fair classification.
|
70 |
+
|
71 |
+
It incorporates both the sensitive and target labels in the disentanglement regularizer.
|
72 |
+
|
73 |
+
## 2.3 Fair Classification And Disentanglement
|
74 |
+
|
75 |
+
The increasing use of machine learning systems in everyday applications has raised many concerns about the fairness of the deployed algorithms. Works addressing fair classification can be grouped into three main categories, depending on the step at which the practitioner performs a *fairness intervention* in the learning process: (i) pre-processing Brunet et al. (2019); Kamiran & Calders (2012), (ii) in-processing Colombo et al.
|
76 |
+
|
77 |
+
(2021); Barrett et al. (2019) and (iii) post-processing d'Alessandro et al. (2017) techniques (we refer the reader to Caton & Haas (2020) for exhaustive review). When the attribute for which we want to disentangle the representation is a sensitive attribute (*e.g.* gender, age, race), our method can be considered as an in-process fairness technique. This is because a perfectly disentangled representation achieves a widely used definition of fairness namely *Demographic Parity*, as stated by the following proposition, whose proof is deferred to the Ssec. A.1.
|
78 |
+
|
79 |
+
Proposition 1. Suppose Z is independent of S and denote by Yˆ = gϕ(Z)*. Then the decision rule satisfies* the Demographic Parity criterion, which requires that Yˆ is independent of S*, i.e.* P(Yˆ = y | S = 0) = P(Yˆ =
|
80 |
+
y
|
81 |
+
′| S = 1) for all y, y′ ∈ Y.
|
82 |
+
|
83 |
+
## 3 Model And Training Objective
|
84 |
+
|
85 |
+
In this section, we introduce the new set of losses called CLINIC that is designed to learn disentangled representations. We begin with information theory considerations which allow us to derive a training objective, and then discuss the relation to existing losses relying on MI.
|
86 |
+
|
87 |
+
## 3.1 Analysis & Motivations 3.1.1 Problem Analysis.
|
88 |
+
|
89 |
+
When learning disentangled representations, the goal is to obtain a representation Z that contains no information about a sensitive attribute S but preserves the maximum amount of information between Z and the target label Y . We use Veyne diagrams in Fig. 1 to illustrate the situation. Notice that, for a given task, the MI between Y and S is fixed (i.e corresponding to CY ∩ CS). Therefore, any representation Z that maximizes the MI with Y (i.e corresponding to CY ∩ CZ) cannot hope to have a mutual information with S
|
90 |
+
lower than I(Y ; S). Informally, recalling that Z = fθ(X), we would like to solve:
|
91 |
+
|
92 |
+
$$\operatorname*{max}_{\theta\in\Theta}\;I(Z;Y)-\lambda\cdot I(Z;S),$$
|
93 |
+
|
94 |
+
$$\mathrm{{\mathbb{H}}}$$
|
95 |
+
|
96 |
+
I(Z; Y ) − λ · I(Z; S), (3)
|
97 |
+
where λ > 0 controls the magnitude of the penalization. Existing works (Elazar & Goldberg, 2018; Barrett et al., 2019; Coavoux et al., 2018) rely on the CE loss to maximize the first term, i.e., within the area of CZ ∩ CY in Fig. 1, and either on adversarial or contrastive methods for minimizing the second term, i.e.,
|
98 |
+
the area of CZ ∩ CS in Fig. 1). The ideal objective is to maximize the area of (CZ ∩ CY ) \ CS. We refer to Colombo et al. (2021) for connections between adversarial learning and MI and to Oord et al. (2018) for connections between contrastive learning and MI.
|
99 |
+
|
100 |
+
![3_image_0.png](3_image_0.png)
|
101 |
+
|
102 |
+
Fig. 1: Veyne diagrams visualization.
|
103 |
+
|
104 |
+
## 3.1.2 Limitations Of Previous Methods
|
105 |
+
|
106 |
+
Since I(Z; S) = I(Z; S|Y ) + I(Z; S; Y ), when minimizing I(Z; S), previous work minimize actually the two terms I(Z; S|Y ) and I(Z; S; Y ). This could be problematic since I(Z; S; Y ) *tends to decrease the MI between* Z and Y *, a phenomenon we would like to avoid to keep high performance on our target task.* Our method will bypass this issue by minimizing the conditional mutual information I(Z; S|Y ) solely (this amounts to minimize the area of (CZ ∩ CS) \ (CZ ∩ CS ∩ CY ).
|
107 |
+
|
108 |
+
## 3.2 Clinic
|
109 |
+
|
110 |
+
Motivated by the previous analysis CLINIC aims at maximizing the new following ideal objective:
|
111 |
+
|
112 |
+
$\max\limits_{\theta\in\Theta}\;I(Z;Y)-\lambda\cdot I(Z;S|Y).$ f $I(Z;S)$ in Eq. 3 alleviates previously identified f.
|
113 |
+
I(Z; Y ) − λ · I(Z; S|Y ). (4)
|
114 |
+
Minimizing I(Z; S) in Eq. 4 instead of I(Z; S) in Eq. 3 alleviates previously identified flaws.
|
115 |
+
|
116 |
+
## 3.2.1 Estimation Of I(Z; S|Y )
|
117 |
+
|
118 |
+
The estimation of MI related quantities is known to be difficult Pichler et al. (2020); Paninski (2003). As a result, to estimate I(Z; S|Y ), we develop a tailored made constrastive learning objectives to obtain a parameter free estimator. Let us describe the general form for the loss we adopt on a given input {xi, yi, si}1≤i≤B of size B. Recall that zi = fθ(xi) is the output of the encoder for input xi. For each 1 ≤ i ≤ B, in fair classification task we have access to two subsets P(i), N (i) ⊂ {1, . . . , B*} \ {*i} corresponding respectively to *positive* and negative indices of examples. More precisely, P(i) (resp. N (i)) corresponds to the set of indices j ̸= i such that zj is similar (resp. dissimilar) to zi. Then, CLINIC consists in minimizing a loss of the form Eq. 1 with L*task* given by the CE between the predictions gϕ(zi) and the groundtruth labels yi, and with R given by:
|
119 |
+
|
120 |
+
$${\mathcal{R}}={\mathcal{R}}(Z,{\mathcal{P}},{\mathcal{N}},B,\tau_{p},\tau_{n})=-\sum_{i=1}^{B}\mathrm{C}_{i},$$
|
121 |
+
$$\left({\boldsymbol{4}}\right)$$
|
122 |
+
$$\left(5\right)$$
|
123 |
+
|
124 |
+
$$(6)$$
|
125 |
+
|
126 |
+
where the contribution Ci of sample i is
|
127 |
+
|
128 |
+
$$\mathbf{\Phi}^{\mathrm{T}}$$ $$\mathbf{C}_{i}={\frac{1}{\left|\mathcal{P}(i)\right|}}\sum_{j_{p}\in\mathcal{P}(i)}\log{\frac{e^{z_{i}\cdot z_{j_{p}}/\tau_{p}}}{\sum_{j_{n}\in\mathcal{N}(i)}e^{z_{i}\cdot z_{j_{n}}/\tau_{n}}}}.$$
|
129 |
+
. (6)
|
130 |
+
As emphasized in Eq. 5, the term R depends on several hyperparameters: the choice of positive and negative examples (P(i), N (i)), the associated temperatures τp, τn > 0 and the batch size B. Compared to Eq. 1, the proposed regularizer does not require any additional trainable parameters ϕ.
|
131 |
+
|
132 |
+
## 3.2.2 Hyperparameters Choice
|
133 |
+
|
134 |
+
Sampling strategy for P and N . The choice of positive and negative samples is instrumental for contrastive learning Wu et al. (2021); Karpukhin et al. (2020); Chen et al. (2020); Zhang & Stratos (2021);
|
135 |
+
Robinson et al. (2020). In the context of fair classification, the input data take the form (xi, si, yi) and we consider two natural strategies to define the subsets P and N . For any given y (resp. s), we denote by y
|
136 |
+
(resp. s) a uniformly sampled label in *Y \ {*y} (resp. in *S \ {*s}).
|
137 |
+
|
138 |
+
Remark 1. *It is usual in fairness applications to consider that the sensitive attribute is binary. In that case* S¯ *is deterministic.*
|
139 |
+
The first strategy (S1) is to take
|
140 |
+
|
141 |
+
$\mathcal{P}_{\mathcal{S}_{1}}(i)=\{1\leq j_{p}\leq B,\ \ \text{s.t.}\ \ y_{j_{p}}=y_{i},s_{j_{p}}=\bar{s}_{i}\},$ $\mathcal{N}_{\mathcal{S}_{1}}(i)=\{1\leq j_{n}\leq B,\ \ \text{s.t.}\ \ y_{j_{n}}=\bar{y}_{i}\}.$
|
142 |
+
The second strategy (S2) is to set
|
143 |
+
|
144 |
+
$\mathcal{P}_{S_{2}}(i)=\{1\leq j_{p}\leq B,\ \text{s.t}\ y_{j_{p}}=y_{i},s_{j_{p}}=\bar{s_{i}}\},$ $\mathcal{N}_{S_{2}}(i)=\{1\leq j_{n}\leq B,\ \text{s.t}\ y_{j_{n}}=\bar{y_{i}},s_{j_{n}}=s_{i}\}.$
|
145 |
+
Influence of the temperature. As discussed in Wang & Liu (2021); Wang & Isola (2020) in the case where τp = τn, a good choice of temperature parameter is crucial for contrastive learning. Our method offers additional versatility by allowing to fine tune two temperature parameters, τp and τn, respectively corresponding to the impact one wishes to put on positive and negative examples. For instance, a choice of τn << 1 tends to focus on hard negative pairs while τn >> 1 makes the penalty uniform among the negatives.
|
146 |
+
|
147 |
+
We investigate this effect in Ssec. 6.2.
|
148 |
+
|
149 |
+
Influence of the batch size. Previous works on contrastive losses Henaff (2020); Oord et al. (2018);
|
150 |
+
Bachman et al. (2019); Mitrovic et al. (2020) argue for using large batch sizes to achieve good performances.
|
151 |
+
|
152 |
+
In practice, hardware limits the maximum number of samples that can be stored in memory. Although several works He et al. (2020); Gao et al. (2021), have been conducted to go beyond the memory usage limitation, every experiment we conducted was performed on a single GPU. Nonetheless, we provide an ablation study with respect to admissible batch sizes in Sssec. B.3.1.
|
153 |
+
|
154 |
+
## 3.3 Theoretical Guarantees
|
155 |
+
|
156 |
+
There exists a theoretical bound between the contrastive loss of Eq. 5 and the mutual information between two probability laws in the latent space, defined according to the sampling strategy for P and N . CLINIC's training objective offers theoretical guarantees when approximating I(Z; S|Y ) in Eq. 4. Formally, strategy S1 and S2 aim at minimizing the distance between:
|
157 |
+
|
158 |
+
$$\underbrace{P_{Z}(\cdot\mid Y=0,S=0)}_{\mathcal{L}_{0,0}}\mathrm{~and~}\underbrace{P_{Z}(\cdot\mid Y=0,S=1)}_{\mathcal{L}_{0,1}},$$
|
159 |
+
and between
|
160 |
+
$$\underbrace{P_{Z}(\cdot\mid Y=1,S=0)}_{\mathcal{L}_{1,0}}\;\mathrm{and}\;\underbrace{P_{Z}(\cdot\mid Y=1,S=1)}_{\mathcal{L}_{1,1}}.$$
|
161 |
+
|
162 |
+
We prove the following result in A.2.
|
163 |
+
|
164 |
+
Theorem 1. For ϵ ∈ {0, 1}, denote by pϵ = |{1 ≤ i ≤ B, yi = ϵ}|/B*. Then, it holds that*
|
165 |
+
|
166 |
+
$$\frac{\log(p_{0}B)}{p_{0}}$$ _dantation of_
|
167 |
+
$$\frac{1}{p_{0}}I(\mathcal{L}_{0,0},\mathcal{L}_{0,1})\quad+\quad\frac{1}{p_{1}}I(\mathcal{L}_{1,0},\mathcal{L}_{1,1})\quad\quad\quad\geq0$$
|
168 |
+
p0+
|
169 |
+
$$\quad+\quad\frac{\log(p_{1}B)}{p_{1}}\quad-\quad({\mathcal R}/B).\quad(7)$$
|
170 |
+
|
171 |
+
Remark 2. *Th. 1 offers theoretical guarantees that our adaptation of contrastive learning in Eq. 5 is a good* approximation of I(Z; S|Y ) *in Eq. 4.*
|
172 |
+
Remark 3. To simplify the exposition we restricted to binary Y and S. The general case would involved quantities Ly,s with y ∈ Y and S ∈ S.
|
173 |
+
|
174 |
+
## 4 Experimental Setting
|
175 |
+
|
176 |
+
In this section, we describe the experimental setting which includes the dataset, the metrics and the different baselines we will consider. Due to space limitations, details on hyperparameters and neural network architectures are gathered in Ap. C. To ensure fair comparisons we re-implement all the models in a unified framework.
|
177 |
+
|
178 |
+
## 4.1 Datasets
|
179 |
+
|
180 |
+
We use the DIAL dataset Blodgett et al. (2016) to ensure backward comparison with previous works Colombo et al. (2021); Xie et al. (2017); Barrett et al. (2019). We additionally report results on TrustPilot (TRUST)
|
181 |
+
Hovy et al. (2015) that has also been used in Coavoux et al. (2018). Tweets from the DIAL corpus have been automatically gathered and labels for both polarity (*is the expressed sentiment positive or negative?*) and mention (*is the tweet conversational?*) are available. Sensitive attribute related to the race (is the author non-Hispanic black or non-Hispanic white?) has been inferred from both the author geo-location and the used vocabulary. For TRUST the main task consists in predicting a sentiment on a scale of five. The dataset is filtered and examples containing both the author birth date and gender are kept and splits follow Coavoux et al. (2018). These variables are used as sensitive information. To obtain binary sensitive attributes, we follow Hovy & Søgaard (2015) where age is binned into two categories (*i.e.* age under 35 and age over 45).
|
182 |
+
|
183 |
+
A word on the sensitive attribute inference. Notice that these two datasets are balanced with respect to the chosen sensitive attributes (S), which implies that a random guess has 50% accuracy.
|
184 |
+
|
185 |
+
## 4.2 Metrics
|
186 |
+
|
187 |
+
Previous works on learning disentangled representation rely on two metrics to assess performance.
|
188 |
+
|
189 |
+
Measuring disentanglement by reporting the accuracy of an adversary trained from scratch to predict the sensitive labels from the latent representation. Since both datasets are balanced, a perfectly disentangled representation corresponds to an accuracy of the adversary of 50%.
|
190 |
+
|
191 |
+
Success on the main classification task which is measured with accuracy (higher is better). As we are interested in controlling the desired degree of disentanglement (Colombo et al., 2021), we report the trade-off between these two metrics for different models when varying the λ parameter, which controls the magnitude of the regularization (see Eq. 1). For our experiments, we choose λ ∈ [0.001, 0.01, 0.1, 1, 10].
|
192 |
+
|
193 |
+
## 4.3 Baselines
|
194 |
+
|
195 |
+
Losses. To compare CLINIC with previous works, we compare against adversarial training (ADV) Elazar &
|
196 |
+
Goldberg (2018); Coavoux et al. (2018); Barrett et al. (2019) and the recently introduced Mutual Information upper bound Colombo et al. (2021) (Iα) which has been shown to offer more control over the degree of disentanglement than previous estimators. We compare CLINIC with the classical constrative method that estimates I(Z; S) (see Eq. 4). Beware that this baseline, be denoted as S0, does not incorporate information on Y .
|
197 |
+
|
198 |
+
Encoders. To provide an exhaustive comparison, we work both with RNN-encoder and PT (e.g BERT Devlin et al. (2018)) based architectures. Contrarily to previous works that use frozen PT Ravfogel et al. (2020), we fine-tune the encoder during training and evaluate our methods on various types of encoders (*e.g.* DISTILBERT
|
199 |
+
(DIS.) Sanh et al. (2019), ALBERT (ALB.) Lan et al. (2019), SQUEEZEBERT (SQU.) Iandola et al. (2020)). These models are selected based on efficiency.
|
200 |
+
|
201 |
+
## 5 Numerical Results
|
202 |
+
|
203 |
+
In this section, we gather experimental results on the fair classification task. Because of space constraints, additional results can be found in Ap. B.
|
204 |
+
|
205 |
+
## 5.1 Overall Results
|
206 |
+
|
207 |
+
We report in Tab. 1 the best model on each dataset for each of the considered methods. In Tab. 1, each row corresponds to a single λ which controls the weight of the regularizer (see Eq. 1).
|
208 |
+
|
209 |
+
Tab. 1: Overall results on the fair classification task: the columns with Y and S stand for the main and the sensitive task accuracy respectively. ↓ means lower is better whereas ↑ means higher is better. The best model is bolded and second best is underlined. CE refers to a model trained based on CE solely (case λ = 0 in Eq. 1).
|
210 |
+
|
211 |
+
| RNN | BERT | | | | | | | |
|
212 |
+
|---------|--------|------|-------|------|------|-------|------|------|
|
213 |
+
| Dat. | Loss | λ | Y (↑) | S(↓) | λ | Y (↑) | S(↓) | |
|
214 |
+
| DIAL-S | CE | 0.0 | 62.7 | 73.2 | 0.0 | 76.2 | 76.7 | |
|
215 |
+
| S0 | 1.0 | 66.1 | 55.1 | 10 | 74.5 | 66.8 | | |
|
216 |
+
| S1 | 1.0 | 79.1 | 51.0 | 1.0 | 73.5 | 58.3 | | |
|
217 |
+
| S2 | 1.0 | 79.9 | 50.0 | 0.1 | 75.1 | 69.4 | | |
|
218 |
+
| ADV | 1.0 | 58.4 | 70.2 | 0.1 | 74.8 | 72.7 | | |
|
219 |
+
| Iα | 0.1 | 55.2 | 72.3 | 0.1 | 74.5 | 70.1 | | |
|
220 |
+
| DIAL-M | | CE | 0.0 | 77.5 | 62.1 | 0.0 | 82.7 | 79.1 |
|
221 |
+
| S0 | 10 | 76.7 | 54.9 | 10 | 76.6 | 66.6 | | |
|
222 |
+
| S1 | 10 | 69.3 | 50.0 | 1.0 | 81.6 | 52.0 | | |
|
223 |
+
| S2 | 10 | 69.3 | 50.0 | 1.0 | 75.0 | 50.0 | | |
|
224 |
+
| ADV | 0.01 | 76.9 | 57.9 | 0.1 | 82.6 | 74.6 | | |
|
225 |
+
| Iα | 0.1 | 75.5 | 55.7 | 10 | 74.9 | 55.0 | | |
|
226 |
+
| TRUST-A | | CE | 0.0 | 72.9 | 53.0 | 0.0 | 74.9 | 53.8 |
|
227 |
+
| S0 | 10 | 69.3 | 50.0 | 10 | 70.1 | 50.0 | | |
|
228 |
+
| S1 | 10 | 75.1 | 50.0 | 10 | 75.1 | 50.0 | | |
|
229 |
+
| S2 | 10 | 71.1 | 50.0 | 10 | 75.1 | 50.0 | | |
|
230 |
+
| ADV | 10 | 65.5 | 50.0 | 10 | 70.1 | 50.0 | | |
|
231 |
+
| Iα | 10 | 75.1 | 55.0 | 10 | 70.1 | 50.0 | | |
|
232 |
+
| TRUST-G | | CE | 0.0 | 75.4 | 52.0 | 0.0 | 74.9 | 53.8 |
|
233 |
+
| S0 | 10 | 73.1 | 50.0 | 10 | 73.3 | 50.0 | | |
|
234 |
+
| S1 | 10 | 76.1 | 50.0 | 10 | 76.2 | 50.0 | | |
|
235 |
+
| S2 | 10 | 74.8 | 50.0 | 10 | 76.2 | 50.0 | | |
|
236 |
+
| ADV | 10 | 56.3 | 50.0 | 10 | 73.2 | 50.0 | | |
|
237 |
+
| Iα | 10 | 76.2 | 50.0 | 10 | 73.2 | 50.3 | | |
|
238 |
+
|
239 |
+
Global performance. For each dataset, we report the performance of a model trained without disentanglement regularization (CE rows in Tab. 1). Results indicate this model relies on the sensitive attribute S
|
240 |
+
to perform the classification task. In contrast, all disentanglement techniques reduce the predictability of S from the representation Z. Among these techniques, we observe that Iα improves upon ADV as already pointed out in Colombo et al. (2021). Our CLINIC based methods outperform both ADV and Iα baselines, suggesting that contrastive regularization is a promising line of search for future work in disentanglement.
|
241 |
+
|
242 |
+
Comparing the strategies of **CLINIC**. Among the three considered sampling strategies for positives and negatives, S1 and S2 are the best and always improve performance upon S0. This is because S1 and S2 incorporate knowledge on the target task to construct positive and negative samples, which is crucial to obtain good performance.
|
243 |
+
|
244 |
+
Datasets difficulty. From Tab. 1, we can observe that some sensitive/main label pairs are more difficult to disentangle than others. In this regard, TRUST is clearly easier to disentangled than DIAL. Indeed, every models except for CE achieve perfect disentanglement. This suggests we are in the case CY ∩ CS = ∅ of Fig. 1, meaning that the sensitive attribute S only contains few information on the target Y . Within DIAL,
|
245 |
+
sentiment label is the hardest but CLINIC with strategy S1 achieves a good trade-off between accuracy and disentanglement.
|
246 |
+
|
247 |
+
RNN vs BERT **encoder.** Interestingly, the BERT encoder is always harder to disentangle than the RNN encoder.
|
248 |
+
|
249 |
+
This observation can be seen as an additional evidence that BERT may exhibit gender, age and/or race biases, as already pointed out in Ahn & Oh (2021); Mozafari et al. (2020); de Vassimon Manela et al. (2021).
|
250 |
+
|
251 |
+
## 5.2 Controlling The Level Of Disentanglement
|
252 |
+
|
253 |
+
A major challenge when disentangling representations is *to be able to control the desired level of disentanglement* Feutry et al. (2018). We report performance on the main task and on the disentanglement task for both BERT (see Fig. 2) and RNN (see Fig. 3) for differing λ. Notice that we measure the performance of the disentanglement task by reporting the accuracy metric of a classifier trained on the learned representation.
|
254 |
+
|
255 |
+
Results on **DIAL**. We report a different behavior when working either with RNN or BERT. From Fig. 3h we observe that CLINIC (especially S1 and S2) allows us to both learn perfectly disentangled representation as well as allow a fined grained control over the desirable degree of disentanglement when working with RNN-based encoder. On the other hand, previous methods (e.g ADV or Iα) either fail to learn disentangled representations (see Iα on Fig. 2c) or do it while losing the ability to predict Y (see ADV on Fig. 2c). As already pointed out in the analysis of Tab. 1, we observe again that it is both easier to learn disentangled representation and to control the desire degree of disentanglement with RNN compared to BERT.
|
256 |
+
|
257 |
+
![7_image_0.png](7_image_0.png)
|
258 |
+
Fig. 2: Fair Classification results using BERT. Results are given with B = 256 and τp = τn = 0.5.
|
259 |
+
Results on **TRUST**. This dataset exhibits an interesting behaviour known as spurious correlations Yule
|
260 |
+
(1926); Simon (1954); Pearl et al. (2000). This means that, without any disentanglement penalty, the encoder learns information about the sensitive features that hurts the classification performance on the test set. We also observe that learning disentangled representation with CLINIC (using S1 or S2) outperforms a model trained with CE loss solely. This suggests that CLINIC could go beyond the standard disentanglement/accuracy trade-off.
|
261 |
+
|
262 |
+
![8_image_0.png](8_image_0.png)
|
263 |
+
|
264 |
+
![8_image_1.png](8_image_1.png)
|
265 |
+
|
266 |
+
50 60 70 50 60 70
|
267 |
+
|
268 |
+
Fig. 4: Ablation study on PT on DIAL-S. Figures from left to right correspond to the performance of ALB., DIS. and SEQU..
|
269 |
+
|
270 |
+
Fig. 5: Ablation study on
|
271 |
+
(τn, τp) for DIAL-S.
|
272 |
+
|
273 |
+
## 5.3 Superiority Of The Clinic**'S Objective**
|
274 |
+
|
275 |
+
In this experiment we assess the relevance of using I(Z; S|Y ) (Eq. 4) instead of I(Z; S) (Eq. 3). For all the considered λ, all datasets and all the considered checkpoints, we display in Fig. 6 the disentanglement/accuracy trade-off.
|
276 |
+
|
277 |
+
Analysis. Each point in Fig. 6 corresponds to a trained model (with a specific λ). The more a point is at the bottom right, the better it is for our purpose. Notice that the points stemming from our strategies S1 and S2 (orange/green) lie further down on the right than the point stemming from S0 (bleu). For instance, the use of S1 or S2 for the RNN provide many models exhibiting perfect sensitive accuracy while maintaining high main accuracy, which is not the case for S0. For BERT, models trained with S0 either have high sensitive and main accuracy or low sensitive and main accuracy. On the contrary, there are points stemming from S1 or S2 that lies on the bottom right of Fig. 6. Overall, Fig. 6 validates the use of I(Z; S|Y ) *instead of* I(Z; S).
|
278 |
+
|
279 |
+
![9_image_0.png](9_image_0.png)
|
280 |
+
Fig. 6: Disentanglement/accuracy trade-off for various datasets, checkpoints and values of λ. Point with high sensitive accuracy (*e.g.* in the upper right corner) corresponds to low values of λ (e.g. λ ∈ {10−3, 10−2, 10−1}).
|
281 |
+
|
282 |
+
## 5.4 Speed Up Gain
|
283 |
+
|
284 |
+
In contrast with CLINIC, both previous methods ADV and Iα rely on an additional network for the computation of the disentanglement regularizer in Eq. 1. These extra parameters need to be learned with the use of an additional loop during training: at each update of the encoder fθ, several updates of the network are performed to ensure that the regularizer computes the correct value. This loop is both times consuming and involves extra parameters (e.g new learning rates for the additional network) that must be tuned carefully.
|
285 |
+
|
286 |
+
This makes ADV and Iα more difficult to implement on large-scale datasets. Tab. 2, illustrates both the parameter reduction and the speed up induced by CLINIC.
|
287 |
+
|
288 |
+
| Method | # params. | 1 epoch. | |
|
289 |
+
|----------|---------------|------------|------|
|
290 |
+
| ADV | 2220 −0.6% | 551 −17% | |
|
291 |
+
| RNN | Iα | 2234 | 663 |
|
292 |
+
| CLINIC | 2206 −1.3% | 500 −24% | |
|
293 |
+
| ADV | 109576 −0.01% | 2424 −10% | |
|
294 |
+
| BERT | Iα | 109591 | 2689 |
|
295 |
+
| CLINIC | 109576 −0.03% | 2200 −19% | |
|
296 |
+
|
297 |
+
Tab. 2: Runtime for 1 epoch (using DIAL-S, B = 64 and relying on a single NVIDIA-V100 with 32GB of memory). The model sizes are given in thousand. We compute the relative improvement with respect to the strongest baseline Iα from Colombo et al. (2021).
|
298 |
+
|
299 |
+
## 6 Ablation Study
|
300 |
+
|
301 |
+
In this section, we conduct an ablation study on CLINIC with the best sampling strategy (S1) to better understand the importance of its relative components. We focus on the effect of (i) the choice of PT models,
|
302 |
+
(ii) the batch size and *(iii)* the temperature. This ablation study is conducted for both DIAL-S and TRUST-A,
|
303 |
+
where we recall that the former is harder to disentangle than the latter. Results on TRUST-A can be found in Ap. B.
|
304 |
+
|
305 |
+
## 6.1 Changing The Pt **Model**
|
306 |
+
|
307 |
+
Setting. As recently pointed out by Bommasani et al. (2021), PT plays a central role in NLP, thus the need to understand their effects is crucial. We test CLINIC with PT that are lighter and require less computation time to finetune than BERT.
|
308 |
+
|
309 |
+
Analysis. The results of CLINIC trained with SQU., DIS. and ALB. are given in Fig. 4. Overall, we observe that CLINIC consistently achieves better results on all the considered models. Interestingly, for λ > 0.1, we observe that ADV degenerates: the main task accuracy is around 50% and the sensitive task accuracy either is 50% or reaches a high value. This phenomenon has been reported in Barrett et al. (2019); Colombo et al.
|
310 |
+
|
311 |
+
(2021).
|
312 |
+
|
313 |
+
## 6.2 Effect Of The Temperature
|
314 |
+
|
315 |
+
Recall that CLINIC uses two different temperatures (see Eq. 5) denoted by τp and τn, corresponding to the magnitude one wishes to put on positive and negatives examples. In this experiment, we study their relative importance on the disentanglement/accuracy trade-off.
|
316 |
+
|
317 |
+
Analysis. Fig. 5 gathers the performance of CLINIC for different (τp, τn). We observe that low values of τp (i.e focusing on easy positive) conduct to uninformative representation (i.e low accuracy for Y ). As τp increases, the choice of τn becomes relevant. Previously introduced supervised contrastive losses Khosla et al.
|
318 |
+
|
319 |
+
(2020) only use one temperature thus can only rely on diagonal score from Fig. 5. Since the chosen trade-off depends on the final application, we believe this ablation study validates the use of two temperatures.
|
320 |
+
|
321 |
+
## 7 Summary And Concluding Remarks
|
322 |
+
|
323 |
+
We introduced CLINIC, a set of novel losses tailored for fair classification. CLINIC both outperform existing disentanglement methods and can go beyond the traditional accuracy/disentanglement trade-off. Future works include (1) improving CLINIC to enable finer control over the disentanglement degree, and (2) developing a way to measure the accuracy/disentanglement trade-off which appears to differ for each dataset.
|
324 |
+
|
325 |
+
## 8 Limitations
|
326 |
+
|
327 |
+
This paper proposes a novel information-theoretic objective to learn disentangled representations. While the results held for English and studied pre-trained encoders, we observed different behavior depending on the disentanglement difficulty. Overall predicting for which attribute or which data we will be able to see a positive trade-off while disentangling remains an open question.
|
328 |
+
|
329 |
+
Additionally, similarly to previous work in the same line of research we also assumed to have access to (a binary) S which might not be the case for various practical applications.
|
330 |
+
|
331 |
+
## References
|
332 |
+
|
333 |
+
Jaimeen Ahn and Alice Oh. Mitigating language-dependent ethnic bias in bert. *arXiv preprint* arXiv:2109.05704, 2021.
|
334 |
+
|
335 |
+
Philip Bachman, R Devon Hjelm, and William Buchwalter. Learning representations by maximizing mutual information across views. *arXiv preprint arXiv:1906.00910*, 2019.
|
336 |
+
|
337 |
+
Maria Barrett, Yova Kementchedjhieva, Yanai Elazar, Desmond Elliott, and Anders Søgaard. Adversarial removal of demographic attributes revisited. In *Proceedings of the 2019 Conference on Empirical Methods* in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing
|
338 |
+
(EMNLP-IJCNLP), pp. 6331–6336, 2019.
|
339 |
+
|
340 |
+
Mohamed Ishmael Belghazi, Aristide Baratin, Sai Rajeswar, Sherjil Ozair, Yoshua Bengio, Aaron Courville, and R Devon Hjelm. Mine: mutual information neural estimation. *arXiv preprint arXiv:1801.04062*, 2018.
|
341 |
+
|
342 |
+
Y. Bengio, A. Courville, and P. Vincent. Representation learning: A review and new perspectives. *IEEE*
|
343 |
+
Transactions on Pattern Analysis and Machine Intelligence, 35(8):1798–1828, 2013.
|
344 |
+
|
345 |
+
Su Lin Blodgett, Lisa Green, and Brendan O'Connor. Demographic dialectal variation in social media: A
|
346 |
+
case study of African-American English. In *Proceedings of the 2016 Conference on Empirical Methods in* Natural Language Processing, pp. 1119–1130, Austin, Texas, November 2016.
|
347 |
+
|
348 |
+
Rishi Bommasani, Drew A Hudson, Ehsan Adeli, Russ Altman, Simran Arora, Sydney von Arx, Michael S
|
349 |
+
Bernstein, Jeannette Bohg, Antoine Bosselut, Emma Brunskill, et al. On the opportunities and risks of foundation models. *arXiv preprint arXiv:2108.07258*, 2021.
|
350 |
+
|
351 |
+
Marc-Etienne Brunet, Colleen Alkalay-Houlihan, Ashton Anderson, and Richard Zemel. Understanding the origins of bias in word embeddings. In *International Conference on Machine Learning*, pp. 803–811, 2019.
|
352 |
+
|
353 |
+
Cristian S Calude and Giuseppe Longo. The deluge of spurious correlations in big data. Foundations of science, 22(3):595–612, 2017.
|
354 |
+
|
355 |
+
Simon Caton and Christian Haas. Fairness in machine learning: A survey. *arXiv preprint arXiv:2010.04053*,
|
356 |
+
2020.
|
357 |
+
|
358 |
+
Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations. In *International conference on machine learning*, pp. 1597–1607, 2020.
|
359 |
+
|
360 |
+
Pengyu Cheng, Weituo Hao, Shuyang Dai, Jiachang Liu, Zhe Gan, and Lawrence Carin. Club: A contrastive log-ratio upper bound of mutual information. In *International Conference on Machine Learning*, pp.
|
361 |
+
|
362 |
+
1779–1788, 2020.
|
363 |
+
|
364 |
+
Sumit Chopra, Raia Hadsell, and Yann LeCun. Learning a similarity metric discriminatively, with application to face verification. In *2005 IEEE Computer Society Conference on Computer Vision and Pattern* Recognition (CVPR'05), volume 1, pp. 539–546, 2005.
|
365 |
+
|
366 |
+
Junyoung Chung, Caglar Gulcehre, KyungHyun Cho, and Yoshua Bengio. Empirical evaluation of gated recurrent neural networks on sequence modeling. *arXiv preprint arXiv:1412.3555*, 2014.
|
367 |
+
|
368 |
+
Maximin Coavoux, Shashi Narayan, and Shay B Cohen. Privacy-preserving neural representations of text.
|
369 |
+
|
370 |
+
arXiv preprint arXiv:1808.09408, 2018.
|
371 |
+
|
372 |
+
Pierre Colombo, Chloe Clavel, and Pablo Piantanida. A novel estimator of mutual information for learning to disentangle textual representations. *arXiv preprint arXiv:2105.02685*, 2021.
|
373 |
+
|
374 |
+
Thomas M. Cover and Joy A. Thomas. Elements of Information Theory (Wiley Series in Telecommunications and Signal Processing). Wiley-Interscience, USA, 2006. ISBN 0471241954.
|
375 |
+
|
376 |
+
Brian d'Alessandro, Cathy O'Neil, and Tom LaGatta. Conscientious classification: A data scientist's guide to discrimination-aware classification. *Big data*, 5(2):120–134, 2017.
|
377 |
+
|
378 |
+
Daniel de Vassimon Manela, David Errington, Thomas Fisher, Boris van Breugel, and Pasquale Minervini.
|
379 |
+
|
380 |
+
Stereotype and skew: Quantifying gender bias in pre-trained and fine-tuned language models. In *Proceedings* of the 16th Conference of the European Chapter of the Association for Computational Linguistics: Main Volume, pp. 2232–2242, 2021.
|
381 |
+
|
382 |
+
Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. *arXiv preprint arXiv:1810.04805*, 2018.
|
383 |
+
|
384 |
+
Yanai Elazar and Yoav Goldberg. Adversarial removal of demographic attributes from text data. arXiv preprint arXiv:1808.06640, 2018.
|
385 |
+
|
386 |
+
Hongchao Fang, Sicheng Wang, Meng Zhou, Jiayuan Ding, and Pengtao Xie. Cert: Contrastive self-supervised learning for language understanding. *arXiv preprint arXiv:2005.12766*, 2020.
|
387 |
+
|
388 |
+
Clément Feutry, Pablo Piantanida, Yoshua Bengio, and Pierre Duhamel. Learning anonymized representations with adversarial neural networks. *arXiv preprint arXiv:1802.09386*, 2018.
|
389 |
+
|
390 |
+
Aviv Gabbay and Yedid Hoshen. Demystifying inter-class disentanglement. *arXiv preprint arXiv:1906.11796*,
|
391 |
+
2019.
|
392 |
+
|
393 |
+
Pratik Gajane and Mykola Pechenizkiy. On formalizing fairness in prediction with machine learning. arXiv preprint arXiv:1710.03184, 2017.
|
394 |
+
|
395 |
+
Luyu Gao, Yunyi Zhang, Jiawei Han, and Jamie Callan. Scaling deep contrastive learning batch size under memory limited setup. In Proceedings of the 6th Workshop on Representation Learning for NLP
|
396 |
+
(RepL4NLP-2021), pp. 316–321, 2021.
|
397 |
+
|
398 |
+
Daniel Gillick, Sayali Kulkarni, Larry Lansing, Alessandro Presta, Jason Baldridge, Eugene Ie, and Diego Garcia-Olano. Learning dense representations for entity retrieval. *arXiv preprint arXiv:1909.10506*, 2019.
|
399 |
+
|
400 |
+
John M Giorgi, Osvald Nitski, Gary D Bader, and Bo Wang. Declutr: Deep contrastive learning for unsupervised textual representations. *arXiv preprint arXiv:2006.03659*, 2020.
|
401 |
+
|
402 |
+
Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross Girshick. Momentum contrast for unsupervised visual representation learning. In *Proceedings of the IEEE/CVF Conference on Computer Vision and* Pattern Recognition, pp. 9729–9738, 2020.
|
403 |
+
|
404 |
+
Olivier Henaff. Data-efficient image recognition with contrastive predictive coding. In International Conference on Machine Learning, pp. 4182–4192. PMLR, 2020.
|
405 |
+
|
406 |
+
Dirk Hovy and Anders Søgaard. Tagging performance correlates with author age. In *Proceedings of the 53rd* annual meeting of the Association for Computational Linguistics and the 7th international joint conference on natural language processing (volume 2: Short papers), pp. 483–488, 2015.
|
407 |
+
|
408 |
+
Dirk Hovy, Anders Johannsen, and Anders Søgaard. User review sites as a resource for large-scale sociolinguistic studies. In *Proceedings of the 24th international conference on World Wide Web*, pp. 452–461, 2015.
|
409 |
+
|
410 |
+
Forrest N Iandola, Albert E Shaw, Ravi Krishna, and Kurt W Keutzer. Squeezebert: What can computer vision teach nlp about efficient neural networks? *arXiv preprint arXiv:2006.11316*, 2020.
|
411 |
+
|
412 |
+
Vineet John, Lili Mou, Hareesh Bahuleyan, and Olga Vechtomova. Disentangled representation learning for non-parallel text style transfer. *arXiv preprint arXiv:1808.04339*, 2018.
|
413 |
+
|
414 |
+
Faisal Kamiran and Toon Calders. Data preprocessing techniques for classification without discrimination.
|
415 |
+
|
416 |
+
Knowledge and Information Systems, 33(1):1–33, 2012.
|
417 |
+
|
418 |
+
Vladimir Karpukhin, Barlas Oğuz, Sewon Min, Patrick Lewis, Ledell Wu, Sergey Edunov, Danqi Chen, and Wen-tau Yih. Dense passage retrieval for open-domain question answering. *arXiv preprint arXiv:2004.04906*,
|
419 |
+
2020.
|
420 |
+
|
421 |
+
Prannay Khosla, Piotr Teterwak, Chen Wang, Aaron Sarna, Yonglong Tian, Phillip Isola, Aaron Maschinot, Ce Liu, and Dilip Krishnan. Supervised contrastive learning. *arXiv preprint arXiv:2004.11362*, 2020.
|
422 |
+
|
423 |
+
Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
|
424 |
+
|
425 |
+
Guillaume Lample, Sandeep Subramanian, Eric Smith, Ludovic Denoyer, Marc'Aurelio Ranzato, and Y-Lan Boureau. Multiple-attribute text rewriting. In *International Conference on Learning Representations*, 2018.
|
426 |
+
|
427 |
+
Zhenzhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel, Piyush Sharma, and Radu Soricut. Albert:
|
428 |
+
A lite bert for self-supervised learning of language representations. *arXiv preprint arXiv:1909.11942*, 2019.
|
429 |
+
|
430 |
+
Zachary C Lipton, Alexandra Chouldechova, and Julian McAuley. Does mitigating ml's impact disparity require treatment disparity? In Proceedings of the 32nd International Conference on Neural Information Processing Systems, pp. 8136–8146, 2018.
|
431 |
+
|
432 |
+
Francesco Locatello, Gabriele Abbati, Tom Rainforth, Stefan Bauer, Bernhard Schölkopf, and Olivier Bachem.
|
433 |
+
|
434 |
+
On the fairness of disentangled representations. *arXiv preprint arXiv:1905.13662*, 2019a.
|
435 |
+
|
436 |
+
Francesco Locatello, Stefan Bauer, Mario Lucic, Gunnar Raetsch, Sylvain Gelly, Bernhard Schölkopf, and Olivier Bachem. Challenging common assumptions in the unsupervised learning of disentangled representations. In *international conference on machine learning*, pp. 4114–4124, 2019b.
|
437 |
+
|
438 |
+
Francesco Locatello, Stefan Bauer, Mario Lucic, Gunnar Rätsch, Sylvain Gelly, Bernhard Schölkopf, and Olivier Bachem. A sober look at the unsupervised learning of disentangled representations and their evaluation. *arXiv preprint arXiv:2010.14766*, 2020.
|
439 |
+
|
440 |
+
Lajanugen Logeswaran and Honglak Lee. An efficient framework for learning sentence representations. arXiv preprint arXiv:1803.02893, 2018.
|
441 |
+
|
442 |
+
Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. *arXiv preprint arXiv:1711.05101*,
|
443 |
+
2017.
|
444 |
+
|
445 |
+
Emile Mathieu, Tom Rainforth, Nana Siddharth, and Yee Whye Teh. Disentangling disentanglement in variational autoencoders. In *International Conference on Machine Learning*, pp. 4402–4412, 2019.
|
446 |
+
|
447 |
+
David McAllester and Karl Stratos. Formal limitations on the measurement of mutual information. In Silvia Chiappa and Roberto Calandra (eds.), *Proceedings of the Twenty Third International Conference on* Artificial Intelligence and Statistics, volume 108 of *Proceedings of Machine Learning Research*, pp. 875–884, 2020.
|
448 |
+
|
449 |
+
Jovana Mitrovic, Brian McWilliams, and Melanie Rey. Less can be more in contrastive learning. 2020.
|
450 |
+
|
451 |
+
Marzieh Mozafari, Reza Farahbakhsh, and Noël Crespi. Hate speech detection and racial bias mitigation in social media based on bert model. *PloS one*, 15(8):e0237861, 2020.
|
452 |
+
|
453 |
+
XuanLong Nguyen, Martin J Wainwright, and Michael I Jordan. Estimating divergence functionals and the likelihood ratio by convex risk minimization. *IEEE Transactions on Information Theory*, 2010.
|
454 |
+
|
455 |
+
Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding.
|
456 |
+
|
457 |
+
arXiv preprint arXiv:1807.03748, 2018.
|
458 |
+
|
459 |
+
Liam Paninski. Estimation of entropy and mutual information. *Neural computation*, 15(6):1191–1253, 2003. Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in pytorch. In NIPS 2017 Workshop on Autodiff, 2017.
|
460 |
+
|
461 |
+
Judea Pearl et al. Models, reasoning and inference. *Cambridge, UK: CambridgeUniversityPress*, 19, 2000.
|
462 |
+
|
463 |
+
Georg Pichler, Pablo Piantanida, and Günther Koliander. On the estimation of information measures of continuous distributions. *arXiv preprint arXiv:2002.02851*, 2020.
|
464 |
+
|
465 |
+
Rui Qian, Tianjian Meng, Boqing Gong, Ming-Hsuan Yang, Huisheng Wang, Serge Belongie, and Yin Cui.
|
466 |
+
|
467 |
+
Spatiotemporal contrastive video representation learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 6964–6974, 2021.
|
468 |
+
|
469 |
+
Yanru Qu, Dinghan Shen, Yelong Shen, Sandra Sajeev, Jiawei Han, and Weizhu Chen. Coda: Contrastenhanced and diversity-promoting data augmentation for natural language understanding. *arXiv preprint* arXiv:2010.08670, 2020.
|
470 |
+
|
471 |
+
Shauli Ravfogel, Yanai Elazar, Hila Gonen, Michael Twiton, and Yoav Goldberg. Null it out: Guarding protected attributes by iterative nullspace projection. *arXiv preprint arXiv:2004.07667*, 2020.
|
472 |
+
|
473 |
+
Nils Reimers and Iryna Gurevych. Sentence-bert: Sentence embeddings using siamese bert-networks. arXiv preprint arXiv:1908.10084, 2019.
|
474 |
+
|
475 |
+
Nils Rethmeier and Isabelle Augenstein. A primer on contrastive pretraining in language processing: Methods, lessons learned and perspectives. *arXiv preprint arXiv:2102.12982*, 2021.
|
476 |
+
|
477 |
+
Joshua Robinson, Ching-Yao Chuang, Suvrit Sra, and Stefanie Jegelka. Contrastive learning with hard negative samples. *arXiv preprint arXiv:2010.04592*, 2020.
|
478 |
+
|
479 |
+
Victor Sanh, Lysandre Debut, Julien Chaumond, and Thomas Wolf. Distilbert, a distilled version of bert:
|
480 |
+
smaller, faster, cheaper and lighter. *arXiv preprint arXiv:1910.01108*, 2019.
|
481 |
+
|
482 |
+
Florian Schroff, Dmitry Kalenichenko, and James Philbin. Facenet: A unified embedding for face recognition and clustering. In *Proceedings of the IEEE conference on computer vision and pattern recognition*, pp.
|
483 |
+
|
484 |
+
815–823, 2015.
|
485 |
+
|
486 |
+
Dinghan Shen, Mingzhi Zheng, Yelong Shen, Yanru Qu, and Weizhu Chen. A simple but tough-to-beat data augmentation approach for natural language understanding and generation. *arXiv preprint arXiv:2009.13818*,
|
487 |
+
2020.
|
488 |
+
|
489 |
+
Herbert A Simon. Spurious correlation: A causal interpretation. *Journal of the American statistical* Association, 49(267):467–479, 1954.
|
490 |
+
|
491 |
+
Jiaming Song and Stefano Ermon. Understanding the limitations of variational mutual information estimators.
|
492 |
+
|
493 |
+
arXiv preprint arXiv:1910.06222, 2019.
|
494 |
+
|
495 |
+
A Sridhar, Chawin Sitawarin, and David Wagner. Mitigating adversarial training instability with batch normalization. In Proceedings of International Conference on Learning Representation Workshop on Security and Safety in Machine Learning Systems, 2021.
|
496 |
+
|
497 |
+
Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. *The journal of machine learning research*, 15(1):
|
498 |
+
1929–1958, 2014.
|
499 |
+
|
500 |
+
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In *Advances in neural information processing systems*, pp.
|
501 |
+
|
502 |
+
5998–6008, 2017.
|
503 |
+
|
504 |
+
Feng Wang and Huaping Liu. Understanding the behaviour of contrastive loss. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 2495–2504, 2021.
|
505 |
+
|
506 |
+
Tongzhou Wang and Phillip Isola. Understanding contrastive representation learning through alignment and uniformity on the hypersphere. In *International Conference on Machine Learning*, pp. 9929–9939, 2020.
|
507 |
+
|
508 |
+
Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pierric Cistac, Tim Rault, R'emi Louf, Morgan Funtowicz, and Jamie Brew. Huggingface's transformers: State-ofthe-art natural language processing. *arXiv preprint arXiv:1910.03771*.
|
509 |
+
|
510 |
+
Eric Wong, Leslie Rice, and J Zico Kolter. Fast is better than free: Revisiting adversarial training. arXiv preprint arXiv:2001.03994, 2020.
|
511 |
+
|
512 |
+
Chuhan Wu, Fangzhao Wu, and Yongfeng Huang. Rethinking infonce: How many negative samples do you need? *arXiv preprint arXiv:2105.13003*, 2021.
|
513 |
+
|
514 |
+
Qizhe Xie, Zihang Dai, Yulun Du, Eduard Hovy, and Graham Neubig. Controllable invariance through adversarial feature learning. In *Advances in Neural Information Processing Systems*, pp. 585–596, 2017.
|
515 |
+
|
516 |
+
Bing Xu, Naiyan Wang, Tianqi Chen, and Mu Li. Empirical evaluation of rectified activations in convolutional network. *arXiv preprint arXiv:1505.00853*, 2015.
|
517 |
+
|
518 |
+
Shin'ya Yamaguchi, Sekitoshi Kanai, Tetsuya Shioda, and Shoichiro Takeda. Multiple pretext-task for self-supervised learning via mixing multiple image transformations. *arXiv preprint arXiv:1912.11603*, 2019.
|
519 |
+
|
520 |
+
G Udny Yule. Why do we sometimes get nonsense-correlations between time-series?–a study in sampling and the nature of time-series. *Journal of the royal statistical society*, 89(1):1–63, 1926.
|
521 |
+
|
522 |
+
Huan Zhang, Hongge Chen, Chaowei Xiao, Sven Gowal, Robert Stanforth, Bo Li, Duane Boning, and Cho-Jui Hsieh. Towards stable and efficient training of verifiably robust neural networks. *arXiv preprint* arXiv:1906.06316, 2019.
|
523 |
+
|
524 |
+
Wenzheng Zhang and Karl Stratos. Understanding hard negatives in noise contrastive estimation. *arXiv* preprint arXiv:2104.06245, 2021.
|
525 |
+
|
526 |
+
## A Proofs A.1 Proof Of Proposition 1
|
527 |
+
|
528 |
+
Recall Yˆ = gϕ(Z) and assume that Z is independent of the sensitive attribute S. We have the following:
|
529 |
+
|
530 |
+
$$\mathbb{P}(\hat{Y}=y\,|\,S=0)=\mathbb{P}(g_{\phi}(Z)=y\,|\,S=0)$$ $$=\frac{\mathbb{P}(g_{\phi}(Z)=y,\,S=0)}{\mathbb{P}(S=0)}$$ $$=\frac{\mathbb{P}(g_{\phi}(Z)=y)\mathbb{P}(S=0)}{\mathbb{P}(S=0)}$$ $$=\mathbb{P}(\hat{Y}=y),$$
|
531 |
+
|
532 |
+
where we use the independence assumption in the second equality. The same computation is valid for P(Yˆ = y
|
533 |
+
′| S = 1) which gives the *Demographic Parity*:
|
534 |
+
|
535 |
+
$$\mathbb{P}({\hat{Y}}=y\,|\,S=0)=\mathbb{P}({\hat{Y}}=y^{\prime}\,|\,S=1).$$
|
536 |
+
|
537 |
+
## A.2 Proof Of Theorem 1
|
538 |
+
|
539 |
+
Let us define:
|
540 |
+
$${\mathcal{B}}_{0}:=\{1\leq i\leq B:\,y_{i}=0\}$$
|
541 |
+
and
|
542 |
+
The regularization term defined in Eq. 5 can be rewritten as follows:
|
543 |
+
$${\mathcal{B}}_{1}:=\{1\leq i\leq B:\,y_{i}=1\}$$
|
544 |
+
$${\mathcal{R}}=-\left(\sum_{i\in{\mathcal{B}}_{0}}\mathrm{C}_{i}+\sum_{i\in{\mathcal{B}}_{1}}\mathrm{C}_{i}\right).$$
|
545 |
+
Then, denoting by B0 (resp. B1) the cardinal of B0 (resp. B1) and following Oord et al. (2018), it holds that:
|
546 |
+
|
547 |
+
$$-\frac{1}{B_{0}}\sum_{i\in\mathcal{B}_{0}}\mathrm{C}_{i}\geq\log(B_{0})-I(\mathcal{L}_{0,0},\mathcal{L}_{0,1})$$
|
548 |
+
and
|
549 |
+
$$-{\frac{1}{B_{1}}}\sum_{i\in B_{1}}\mathrm{C}_{i}\geq\log(B_{1})-I({\mathcal{L}}_{1,0},{\mathcal{L}}_{1,1})$$
|
550 |
+
|
551 |
+
As a result,
|
552 |
+
|
553 |
+
$$\begin{array}{ccccccccccccc}-&({\cal R}/B)&\geq&\frac{\log(B_{0})}{p_{0}}&+&\frac{\log(B_{1})}{p_{1}}\frac{I({\cal L}_{0,0},{\cal L}_{0,1})}{p_{0}}&-&\frac{I({\cal L}_{1,0},{\cal L}_{1,1})}{p_{1}},\end{array}$$
|
554 |
+
|
555 |
+
from which we deduce the desired result.
|
556 |
+
|
557 |
+
## A.3 Additional Motivation
|
558 |
+
|
559 |
+
We provide in Fig. 7 example of extreme situations when learning to disentangle representations. This figure can be analyzed using the Venne diagram of Fig. 1.
|
560 |
+
|
561 |
+
## A.4 Algorithms Used For The Baseline Models.
|
562 |
+
|
563 |
+
When training an adversary or a MI with learnable parameters the procedure requires extra learnable parameters that need to be tuned using a Nested Loop.
|
564 |
+
|
565 |
+
![16_image_0.png](16_image_0.png)
|
566 |
+
|
567 |
+
Fig. 7: Two extremes situations. In both cases, a classifier can predict the main task with high accuracy. The right representation is fairer than the left one as the gender is harder to extract.
|
568 |
+
Algorithm 1 Procedure to learn the baselines 1: Input Labeled dataset D = {(xj , sj , yj ), ∀j ∈ [1, *|D| −* K]}, independant labeled dataset D′ =
|
569 |
+
{(xj , sj , yj ), ∀j ∈ [|D| − K, |D|]}, θ parameters of the encoder network, ϕ parameters of the main classifier, ψ parameters of the regularizer.
|
570 |
+
|
571 |
+
2: Initialize parameters θ, ϕ, ψ 3: Optimization 4: Freeze θ 5: **while** (*θ, ϕ, ψ*) not converged do 6: for i ∈ [1*, Unroll*] do ▷ Nested loop 7: Sample a batch B
|
572 |
+
′from D′
|
573 |
+
8: Update *ϕ, ψ* using (Eq. 1).
|
574 |
+
|
575 |
+
9: **end for**
|
576 |
+
10: Unfreeze θ and freeze *ϕ, ψ* 11: Sample a batch B from D
|
577 |
+
12: Update θ with B (Eq. 1).
|
578 |
+
|
579 |
+
13: Unfreeze *ϕ, ψ* 14: **end while**
|
580 |
+
15: Output Encoder and classifier weights *θ, ϕ*
|
581 |
+
|
582 |
+
## B Additional Experimental Results
|
583 |
+
|
584 |
+
In this section, we report additional experiments. Specifically, we gather:
|
585 |
+
- All the unreported experiments in the core paper for fair classification task on both RNN and BERT
|
586 |
+
for the four considered sensitive/main attribute pairs (see Ssec. B.2 for TRUST and Ssec. B.1 for DIAL).
|
587 |
+
|
588 |
+
- The ablation study on the PT choice for TRUST-G (see Sssec. B.3.2).
|
589 |
+
|
590 |
+
- The ablation study on the batch size for TRUST-G (see Sssec. B.3.1).
|
591 |
+
|
592 |
+
- The ablation study on the impact of the temperature for TRUST-G (see Sssec. B.3.3).
|
593 |
+
|
594 |
+
## B.1 Controlling Experiment On Dial
|
595 |
+
|
596 |
+
Important aspects when learning to disentangle representations are (i) achieving perfect independence between considered r.v while achieving high accuracy on the target task but also (ii) to control the desired level of disentanglement Feutry et al. (2018). To ease visual comparison, we report the results on the two main attributes mention (DIAL-M) and sentiment (DIAL-S) while protecting the race. RNN**-based encoder.** We report in Fig. 8 the results of the RNN encoder on DIAL. We observe that for both cases, CLINIC is able to achieve perfect disentanglement. The loss Iα plateau for λ ≥ 0.1. Overall the two best strategies (S1 and S2) achieve stronger results than considered baselines.
|
597 |
+
|
598 |
+
BERT**-based encoder.** For BERT we gather the results in Fig. 9. Similarly to what is reported in Ssec. 5.2, we observe a steep transition and notice that all considered estimators provide little control over the desired degree of disentanglement. It is worth noting that for DIAL-S, S2 underperforms and is not able to achieve better than 69.4 on the sensitive task accuracy. This failure case has motivated our choice for selecting S1 while conducting the ablation studies.
|
599 |
+
|
600 |
+
![17_image_0.png](17_image_0.png)
|
601 |
+
|
602 |
+
Takeaways. Overall, we observe that CLINIC outperforms considered baselines when combined with both RNN and BERT encoders on the DIAL dataset.
|
603 |
+
|
604 |
+
Fig. 8: Results on DIAL for the fair classification task relying on a RNN encoder.
|
605 |
+
|
606 |
+
![17_image_1.png](17_image_1.png)
|
607 |
+
|
608 |
+
Fig. 9: Results on DIAL for the fair classification task using BERT.
|
609 |
+
|
610 |
+
## B.2 Controlling Experiment On Trust
|
611 |
+
|
612 |
+
Here we report the results on TRUST for both attribute age (TRUST-A) and gender (TRUST-A) while predicting the sentiment on a like scale of 5.
|
613 |
+
|
614 |
+
RNN**-based encoder.** From Fig. 10, we observe that both attributes (i.e gender and age) can be disentangled from the main attribute (i.e sentiment label). Interestingly, we observe a general trend: the more the representations are disentangled (i.e the lower the sensitive accuracy) the higher accuracy is obtained on the main task. On both TRUST datasets, we observe that both CLINIC and Iα are able to outperform theCE
|
615 |
+
model (reported by the upper dash line). Overall, most of the models are able to achieve almost perfectly disentangled representations, i.e for all models with λ = 10 the sensitive accuracy falls below 51%.
|
616 |
+
|
617 |
+
![18_image_0.png](18_image_0.png)
|
618 |
+
|
619 |
+
Fig. 10: Fair classification task on TRUST using a RNN encoder.
|
620 |
+
|
621 |
+
![18_image_1.png](18_image_1.png)
|
622 |
+
Fig. 11: Fair classification task results on TRUST with BERT.
|
623 |
+
BERT**-based encoder.** From Fig. 11, we observe similar trends to the previous ones: learning disentangled representation improves general performances on the main task. This phenomenon can be interpreted through the lens of spurious correlations Calude & Longo (2017). We observe that CLINIC with both S1 and S0 is able to remove almost all information from the sensitive labels even using small values of λ.
|
624 |
+
|
625 |
+
Takeaways. Overall on TRUST, it is easier to disentangle the representations from the sensitive attribute.
|
626 |
+
|
627 |
+
We observe that CLINIC achieves strong results with both S1 and S2. It shows that incorporating the main label (Y ) information in the sampling strategy for supervised contrastive learning loss is a key to achieve a good trade-off.
|
628 |
+
|
629 |
+
## B.3 Additional Results On Ablation Studies
|
630 |
+
|
631 |
+
In this section, we gather the results of the ablation studies conducted on CLINIC to better understand the relative importance of the different elements. We specifically report results on TRUST-A on the batch size
|
632 |
+
(Sssec. B.3.1), the choice of the PT model (Sssec. B.3.2) as well as the role of the temperature (Sssec. B.3.3).
|
633 |
+
|
634 |
+
## B.3.1 Effect Of The Batch Size
|
635 |
+
|
636 |
+
Setting. As mentioned in Sec. 3, the batch size plays a key role when learning disentangled representations.
|
637 |
+
|
638 |
+
In order to study its influence on CLINIC, we choose to work with DIS., to fit large batch sizes on a single GPU.
|
639 |
+
|
640 |
+
Analysis. We experiment with λ = 0.1 and report the results on DIAL in Fig. 12. Interestingly, we observe a threshold phenomenon: for each model, a small value of the batch size leads to a poor performance on the main task. In contrast, working with large batch (i.e of size greater than 300) allows to learn representations that achieve low sensitive accuracy (around 57%) while maintaining a high main task accuracy (around 75%).
|
641 |
+
|
642 |
+
On an easier task, changing the batch size does not impact the performances.
|
643 |
+
|
644 |
+
![19_image_0.png](19_image_0.png)
|
645 |
+
Fig. 12: Ablation on batch size on DIAL-S (λ = 1).
|
646 |
+
|
647 |
+
![19_image_1.png](19_image_1.png)
|
648 |
+
Fig. 13: Ablation study on batch size using DIS. for TRUST-A. Results on TRUST-G are given for λ = 1.
|
649 |
+
|
650 |
+
## B.3.2 Study On Pt **Models**
|
651 |
+
|
652 |
+
Fig. 14 gathers the results on the ablation study on PT for TRUST. We observe that for most of the considered PT, disentangling the representations improves the main task accuracy performance. We observe that overall CLINIC (with S1) achieves the best performances and can reach perfectly disentangled representations.
|
653 |
+
|
654 |
+
Takeaways. When changing the pretrained model, we observe a consistent behavior of CLINIC which outperforms the considered baselines. The observe improvement when disentangling the representation is
|
655 |
+
|
656 |
+
![20_image_0.png](20_image_0.png)
|
657 |
+
|
658 |
+
Fig. 14: Albation study on pretrained models on TRUST-A. Figures from left to right corresponds to the performance of ALB., DIS. and SQU. on TRUST-G.
|
659 |
+
|
660 |
+
![20_image_1.png](20_image_1.png)
|
661 |
+
|
662 |
+
Fig. 15: Ablation study on (τn, τp) for TRUST-A. Results are reported using BERT on TRUST-G for the main task ↑ (left) and the sensitive task ↓ (right) for λ = 0.1 and B = 256.
|
663 |
+
consistent across the different models which further validate the spurious correlation interpretation. This phenomenon is likely to be dataset and not model specific.
|
664 |
+
|
665 |
+
## B.3.3 Study On Temperature
|
666 |
+
|
667 |
+
We report on Fig. 15, the results of the ablation study on temperature conducted on TRUST-G. When the sensitive attribute is easier to disentangle, we observe that the sensitive accuracy is less impacted by a change in the temperature as most of the models achieve perfect disentanglement. However, there is an impact on the main task accuracy. Overall we observe some (τn, τp) area achieving lower results (bottom right of the matrix Fig. 15).
|
668 |
+
|
669 |
+
Takeaways. When working on TRUST that is easier to disentangle, we observe that the temperature tuning seems to have less impact on the sensitive task performance. However, it is needed to ensure a good sensitive/main task accuracy trade-off.
|
670 |
+
|
671 |
+
## C Training Details
|
672 |
+
|
673 |
+
We report in this section training details to reproduce the reported experiments. We give estimate run times on NVIDIA-V100 with 32Go of memory.
|
674 |
+
|
675 |
+
## C.1 Model Architecture
|
676 |
+
|
677 |
+
We report in the section the considered model architectures.
|
678 |
+
|
679 |
+
RNN**-encoder.** For this model, we use a bidirectionnal GRU Chung et al. (2014) with 2 layers (the hidden dimension is set to 128) with LeakyReLU Xu et al. (2015). The encoder is followed by multi-layer perceptron of dimension 256.
|
680 |
+
|
681 |
+
Pretrained-encoder. For this model the encoder is followed by a single projection layer.
|
682 |
+
|
683 |
+
Attacker network. It is composed of 3 hidden layers with input sizes of Hdim, where Hdim refers to the dimension of the attacked network.
|
684 |
+
|
685 |
+
## C.2 Implementation Details
|
686 |
+
|
687 |
+
All the models have been trained using the ADAMW optimizer Loshchilov & Hutter (2017) which is an improvement of the ADAM Kingma & Ba (2014) optimizer with warmup set to 1000 Vaswani et al. (2017). The dropout rate Srivastava et al. (2014) has been set to 0.2. The learning rate of the optimizer has been set to 0.001 for the RNN-based encoders and to 0.00001 for the BERT models. The PT are trained for 15k iterations and the randomly initialized RNN are trained for 30k iterations.
|
688 |
+
|
689 |
+
Used libraries. In this work we relied on the following libraries and would like to thank their authors for open-sourcing them:
|
690 |
+
- Code from Barrett et al. (2019); Elazar & Goldberg (2018) to process DIAL. The baseline ADV has been re-implemented in our framework. The associated Github can be found https://github.com/
|
691 |
+
yanaiela/demog-text-removal.
|
692 |
+
|
693 |
+
- Code from Coavoux et al. (2018) to process DI. In their work they also used the ADV baseline has been re-implemented in our framework. The associated GitHub can be found here: https:
|
694 |
+
//github.com/mcoavoux/pnet.
|
695 |
+
|
696 |
+
- Code from Colombo et al. (2021) has been privately shared by the authors.
|
697 |
+
|
698 |
+
- All the models have been implemented in Pytorch Paszke et al. (2017).
|
699 |
+
|
700 |
+
- The tokenizers, the PT have been taken from transformers Wolf et al..
|
701 |
+
|
702 |
+
## C.3 Computing Costs
|
703 |
+
|
704 |
+
In this section, we report the (estimated) computational cost of reproducing our experiments. Note that we relieved on NVIDIA-V100 with 32 GO of memory. Each pretrained model takes (approximately) 3 hours to train and whereas the RNN encoder requires 5 hours to be trained. All models have been trained with batch size of 256. An adversary requires around 15 mins to be trained. **Controlling experiment.** For this experiments we trained 5 × 5 × 4 = 100 RNN encoders and the same number of pretrained models. For each model we evaluate 6 checkpoints which makes 1200 probing classifiers. The checkpoint with lowest R (see Eq. 1) is selected. This experiment requires 500 + 300 + 1200/4 = 1100h of GPUs.
|
705 |
+
|
706 |
+
Ablation study. For the batch size experiment, we trained 8×3×2 = 48 models with 240 probing classifiers for a total cost of GPU 204 hours. For the pretrained models ablation study, we trained 5 × 3 × 2 = 30 models with 150 probing classifiers for a total cost of 128 hours. For the temperature we trained 8 × 8 × 2 = 128 models with 640 probing classifiers for a total of 544 GPU hours. Overall summary. The approximated total cost is around 2k GPU hours.
|
CrNI4xVOUs/CrNI4xVOUs_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": 0,
|
8 |
+
"ocr_failed": 0,
|
9 |
+
"ocr_success": 0,
|
10 |
+
"ocr_engine": "none"
|
11 |
+
},
|
12 |
+
"block_stats": {
|
13 |
+
"header_footer": 22,
|
14 |
+
"code": 0,
|
15 |
+
"table": 2,
|
16 |
+
"equations": {
|
17 |
+
"successful_ocr": 27,
|
18 |
+
"unsuccessful_ocr": 5,
|
19 |
+
"equations": 32
|
20 |
+
}
|
21 |
+
},
|
22 |
+
"postprocess_stats": {
|
23 |
+
"edit": {}
|
24 |
+
}
|
25 |
+
}
|