Turning a Blind Eye: Explicit Removal of Biases and Variation from Deep Neural Network Embeddings
Paper · 2019 · Mohsan Alvi, Andrew Zisserman and Christoffer Nellåker
Summary
An age classifier trained on celebrity photographs can learn something about the people who appear in those photographs and mistake it for evidence about the person in front of it. In the collection studied by the authors of Turning a Blind Eye, younger women and older men are especially common. When a network learns to estimate age from these examples, its internal description of a face can preserve gender cues that help it reproduce the training pattern. The paper asks whether training can make those cues harder to recover while keeping the description useful for estimating age. The same question applies to other facial attributes, including pose and the broad ancestral-origin categories used in the study.
Joint learning and unlearning (JLU) is the name the authors give their method. A shared part of the network converts each photograph into a set of numerical features. The main classifier uses those features for the intended task, and auxiliary classifiers try to identify attributes the authors want to suppress. Training gives these classifiers alternating roles. First, the auxiliary classifiers practice reading the current features. Then the network changes the features to make those classifiers assign equal probability to their possible answers, while the main classifier continues to learn from its own labels. The auxiliary classifiers keep adapting as the features change. This gives the network a more demanding test than trying to confuse a classifier that learned to read an earlier version of the features.
On a held-out IMDB test set with equal numbers of women and men in each age category, gender suppression made the two groups’ predicted age distributions more similar. Overall age classification accuracy was 78.9% with ordinary training and 78.1% with JLU. The authors also turned the problem around. They trained gender classifiers on deliberately skewed samples in which the younger and older people belonged to opposite gender categories. Suppressing age raised gender accuracy on the balanced test set from 70% to 86% for one training sample and from 62% to 82% when the training association was reversed. When the authors suppressed several attributes together, the main task generally held up, although age classification incurred a larger accuracy cost.
The paper also presents LAOFIW, which groups 14,000 photos of faces into broad categories based on ancestral origin. This collection can provide labels for an auxiliary classifier even when the main training collection was assembled for a different task. Together, the experiments show that separately labeled photographs can help shape which facial attributes are easy to recover from a shared representation. The measured reductions concern the classifiers and data used in the study. Whether other classifiers could recover the attributes, or whether individual decisions meet a particular standard of fairness, remains open.
Deep dive: Turning a Blind Eye: Explicit Removal of Biases and Variation from Deep Neural Network Embeddings
Turning a Blind Eye tests whether facial classifiers can keep the features they need while shedding information that leads to biased predictions. · about 35 minutes to read
The problem and its context
What an image label leaves open
In supervised image classification, a label tells a network what answer it should give for a training image. The network also has to learn how to describe that image internally so it can produce the answer. Convolutional image recognition made it practical to learn features and a decision rule together from labeled examples. The introduction situates the paper in that tradition and cites Deep Residual Learning for Image Recognition.
Learning the description gives a network considerable freedom. A training label can reward a correct answer regardless of which visible regularity helped produce it. In the celebrity photographs the paper discusses, facial appearance can contain evidence about age, while the makeup of the collection makes gender statistically informative about age as well. As long as both sources of evidence help on the available examples, the age labels alone give the training procedure little reason to distinguish between them. A network can carry the association forward into its predictions on other photographs.
The authors use the term spurious variation for an attribute they want the representation to set aside in a particular task. Head orientation gives a concrete example. The direction a person was facing when photographed can change the image substantially, yet the person’s age persists across those views. An age representation may still record orientation because it is visible and useful to preserve during general feature learning. Gender and ancestral origin pose a related question in the paper’s age example. The authors want the age classifier to work from features that make these attributes difficult to read.
Whether an attribute counts as unwanted depends on the job assigned to the network. A pose classifier needs information that an age classifier may be asked to lose. The paper makes this dependence explicit by changing which attribute is the intended answer across experiments. The resulting question is more specific than asking whether an embedding contains a great deal of facial information. It asks which distinctions a representation can preserve together and which can be weakened while a chosen task remains useful.
How collection bias can travel
The authors point to the way face datasets are assembled. Public collections frequently draw heavily on celebrity imagery. The people who appear in such collections, the ages at which they are photographed, and their frequency of appearance can all help determine which patterns a learning system encounters. In the IMDB data studied here, the association of younger ages with women and older ages with men describes the sample. The authors argue that a classifier intended for broader use has reason to avoid relying on that association.
An earlier example discussed in the paper concerns the setting of a photograph. In the work by Zhao and colleagues, kitchens appeared more often in images of women. The paper describes how a network learned to use the presence of a kitchen as evidence for identifying women. The surroundings could therefore help the network on data where the collection pattern persisted. The example makes clear why a high rate of correct answers can coexist with a questionable decision rule. A test set that preserves the association may continue to reward it.
The authors also consider what happens when a small labeled collection is too limited to serve as the sole basis for training. A common response is to start from parameters learned on a larger collection for a related task and update them using the available labels. This is fine-tuning. The starting network can carry over useful visual features and associations inherited from earlier training. The new examples can introduce associations of their own. Looking at the current collection alone therefore gives an incomplete account of where the contents of a representation came from.
These issues motivate different kinds of measurement. Correctness on the intended task establishes how well the network answers the question a benchmark asks. Testing whether a separate classifier can recover an unwanted label establishes something about the representation available to the main classifier. Comparing predictions across groups can reveal a practical consequence of the information the network retains. The paper uses all of these perspectives because the same aggregate accuracy can accommodate very different patterns of prediction.
The introduction connects the question to settings such as employment, medicine, law, and government, where the basis of an automated decision can matter to the person affected by it. The facial experiments address a technical part of that concern. The intervention starts with an attribute already identified as undesirable for the chosen task and tries to make it harder to infer from the features that support a decision. That choice of what the network should use is part of the study’s connection to bias, fairness & safety.
Where the training idea came from
The paper draws on domain adaptation, where a classifier learned on one kind of data is expected to work on another. The related-work discussion describes approaches that make the source and target distributions more alike from the classifier’s perspective. The authors adapt the underlying idea for their own question. If a representation can be trained to obscure the distinction between domains, it can also be trained to obscure a selected distinction among the people or photographs it represents.
The immediate precedent comes from work by Tzeng and colleagues. A classifier is trained to recognize a distinction, and its output is compared with a distribution that gives every possible class the same probability. This comparison supplies a training signal for changing the representation. The procedure in Turning a Blind Eye uses that signal for several secondary distinctions around one primary task. Each unwanted attribute has its own classifier, so the categories for head orientation can differ from those used for ancestral origin or age.
The authors also discuss work by Yin and Liu on pose-invariant face recognition. That approach learns multiple tasks and automatically adjusts the weights given to different sources of variation. It gives the authors a precedent for treating the relative influence of auxiliary tasks as something training can determine. Their own experiments use prescribed weights. The question of adaptive weighting returns in their discussion because different attributes can respond differently to the same training schedule.
Changing the distribution of training examples is another strategy described in the paper. When the same photograph carries both an intended label and a label for an unwanted attribute, the training procedure can use those annotations to account for their relationship. The practical obstacle is that image datasets are typically collected with a purpose already in mind. A collection suitable for age classification may lack the pose or ancestral-origin annotations a researcher would need to adjust its distribution along those dimensions. The authors want an approach that uses whatever task-specific annotations are available across different collections.
Finally, the paper discusses gradient reversal in earlier work on removing unwanted variation. The idea there is to train an auxiliary predictor and send an opposing update back through the network that produces its features. Turning a Blind Eye gives that update a specific target at the output of the auxiliary classifier. It asks for an even distribution over the classes. That lets the authors distinguish uncertainty, which is the behavior they want, from a low score on correct classifications, which a highly systematic pattern of wrong answers could also produce.
The method, step by step
Give each classifier a job
JLU starts with a photograph and a supervised task. For an age experiment, the label says which age category the photograph belongs to. The shared feature extractor converts the image into an embedding, a vector of values that the classifier can read. The age classifier receives the vector and assigns a probability to every age category. A gender classifier can read the same vector and produce probabilities over the gender labels. Additional classifiers can try to read other labeled attributes from the embedding in the same way.
Each classifier has its own parameters. The feature extractor has a separate set of shared parameters. That division makes the training procedure possible. Updating the gender classifier can improve how it reads the features while leaving the representation of every image unchanged. Updating the feature extractor can change what the age and gender classifiers receive even while the rule used by the gender classifier stays fixed. JLU uses each kind of update for a different purpose.
The primary task determines what the embedding must continue to support. The secondary tasks specify which distinctions should become hard to recover. A secondary classifier is trained to make accurate predictions during its own turn. Those predictions then give the procedure something specific to disrupt. Repeating the cycle matters because a classifier fitted to yesterday’s features can become a poor test of what today’s features contain.
Alternating updates in joint learning and unlearning
The steps in order.
Specify what the data supply
The primary dataset is a collection of image and label pairs. The paper represents it as follows.
𝒟ₚ = {(xᵢ, yᵢ)}ᵢ₌₁ⁿᵖ
Here, 𝒟ₚ is the primary dataset, xᵢ is an image, and yᵢ is its label. The index i identifies an example. The superscript bound nᵖ represents the paper’s nₚ, the number of primary examples. Labels identify a class among the possibilities for that task, whose class count is denoted by K in the classification loss.
The authors define the available secondary datasets separately.
𝒟ₛ = {𝒟ₘ}ₘ₌₁ᴹ
The symbol 𝒟ₛ denotes the collection of secondary datasets. An individual dataset 𝒟ₘ supplies labels for the attribute indexed by m. The index runs from 1 through M, where M is the number of secondary attributes selected for suppression.
The sets are connected through the feature extractor. In an age experiment, an IMDB photograph can provide supervision for the age classifier. A LAOFIW photograph can provide supervision for an ancestral-origin classifier that uses the same feature extractor. The procedure can ask both classifiers to influence the shared features with the labels available for their respective images. When a collection supplies several relevant labels, as cleaned IMDB does for age and gender, it can serve more than one training role.
This arrangement makes the secondary collections part of the training mechanism. Their labels teach the auxiliary classifiers what to look for, and their photographs provide inputs on which the procedure can try to neutralize those classifiers. Accordingly, where an auxiliary collection comes from matters even when its labels never become the answer to the primary task.
Measure ordinary classification error
The primary classifier and the secondary classifiers learn from correct labels using the same general kind of loss. Softmax converts the scores from a classifier into probabilities across its output classes. The supervised loss then picks out the probability the classifier gave to the correct answer.
L_softmax(x, y; θ_repr, θ_C) = −∑ₖ₌₁ᴷ 𝟙[y = k] log pₖ
The expression L_softmax denotes the supervised classification loss. The image is x, and y is its correct class. The parameter set θ_repr produces the shared features, and θ_C belongs to the classifier being trained. The summation covers class indices k from 1 through K, the total number of classes for that classifier. The term pₖ is the softmax probability of class k for image x. The indicator 𝟙[y = k] equals 1 for the labeled class and 0 for the other classes. The logarithm, written log, and the leading minus sign give a larger penalty to a smaller probability on the labeled answer.
The paper calls the primary loss Lₚ and the supervised loss for secondary attribute m Lₘ. The same operation can therefore teach an age classifier to recognize the correct age category or teach a pose classifier to distinguish the labeled directions. Which loss is active determines which labels supply the training signal.
Each secondary classifier needs this ordinary training even though the authors ultimately want it to predict poorly. Its supervised loss asks how successfully it can use the features to recognize the attribute. If its predictions remain good after the representation has changed, the classifier has found evidence that the latest confusion update left available. Its renewed ability to read the embedding gives the next update a target.
Set the target for confusion
The confusion step uses the auxiliary classifier’s entire probability distribution. It sets equal weight on every output class and asks the feature extractor to bring the predicted distribution towards that target. The paper’s notation for the class sum and the class count overlaps. The following form uses separate symbols for those roles and expresses the uniform weighting described by the authors.
L_conf,m(xₘ, yₘ, θₘ; θ_repr) = −∑ⱼ₌₁ᴷᵐ (1/Kₘ) log pⱼ
The expression L_conf,m is the confusion loss for attribute m. The input xₘ belongs to its secondary dataset, and yₘ is the label associated with that example. The parameters θₘ belong to its classifier, while θ_repr denotes the shared feature parameters. The index j walks through that classifier’s output classes, and Kₘ is their number, shown as Kᵐ in the upper bound of the sum. The probability pⱼ is the softmax output for class j. Each class receives the target weight 1/Kₘ. The logarithm and the minus sign penalize probabilities that fall below the uniform target, with the total loss minimized when the probabilities are equal.
The label yₘ appears in the arguments because the input comes from the labeled secondary task. In this update the uniform target gives the same role to every class, whatever the label. A side-facing photograph and a frontal photograph are both supposed to produce a flat pose distribution. A classifier that switched the left and right categories consistently would still reveal a distinction between them. A flat distribution sets a target that removes that kind of preference from the classifier’s output.
The mathematical objective is cross-entropy with the uniform distribution supplying the class weights. In the implementation description, the authors say they approximate this loss using Kullback–Leibler divergence, a way of comparing probability distributions, between the softmax output and the uniform distribution. The written objective specifies which distribution supplies the weights. The implementation description gives the two distributions involved and leaves their order in the divergence unstated. That detail matters to anyone reconstructing the precise updates, since exchanging the arguments of this divergence generally changes the calculation.
Combine losses without making them share an update
Each unwanted attribute supplies a confusion loss. The method averages them to obtain a single quantity to use alongside primary classification.
L_conf = (1/M) ∑ₘ₌₁ᴹ L_conf,m(xₘ, yₘ, θₘ; θ_repr)
The symbol L_conf denotes the combined confusion loss, and M is the number of secondary tasks. The index m runs across those tasks. Each L_conf,m term uses the corresponding image xₘ, associated label yₘ, and classifier parameters θₘ, together with the shared feature parameters θ_repr. The factor 1/M makes the sum an average across tasks.
The supervised losses for the secondary classifiers form a separate weighted sum.
Lₛ = ∑ₘ₌₁ᴹ βₘ Lₘ(xₘ, yₘ, θ_repr; θₘ)
Here, Lₛ is the combined secondary classification loss. The sum runs over tasks indexed by m, up to the total M. For each task, Lₘ measures how well the classifier with parameters θₘ predicts label yₘ from image xₘ using the current features produced by θ_repr. The coefficient βₘ sets the weight assigned to that supervised loss. It belongs to the phase that fits the secondary classifiers. The averaging in L_conf governs the separate phase that tries to confuse them.
The full expression brings the primary, secondary, and confusion terms together.
L(xₚ, yₚ, xₛ, yₛ, θₚ, θₛ, θ_repr)
= Lₚ(xₚ, yₚ; θ_repr, θₚ) + Lₛ + α L_conf
The symbol L denotes the overall objective. The inputs and labels for the primary task are xₚ and yₚ, and θₚ contains the primary classifier’s parameters. The symbols xₛ and yₛ denote the secondary inputs and labels collectively, while θₛ collects the parameter sets θₘ of the secondary classifiers. The shared feature parameters are θ_repr. On the right, Lₚ is the supervised loss on the primary task, Lₛ is the combined supervised loss on the secondary tasks, and L_conf is their averaged confusion loss. The coefficient α sets the influence of confusion on the update that also learns the primary task.
The full expression describes the training objectives. The order of operations determines which parameters receive which signal. During the secondary fitting phase, the features stay fixed while the auxiliary heads learn to classify them using Lₛ. The authors describe this as finding the best available classifiers for the current features. In the following phase, the auxiliary heads stay fixed. The network updates the shared representation using the primary and confusion terms, and the primary head learns from its labeled examples.
Holding the auxiliary heads fixed during confusion locates the intended change in the embedding. If the confusion update could change the secondary classifier directly, it could make that classifier output equal scores while leaving the image features untouched. If the supervised secondary updates changed the features too, they could actively strengthen the attribute that representation training seeks to suppress. Alternation lets the classifier first measure what is available and then exert pressure on the part of the network that makes it available.
The primary loss supplies a reason to retain useful distinctions throughout this process. Making all embeddings alike could frustrate the secondary classifiers, but it would also prevent the primary classifier from using differences among photographs to choose its answer. The competing losses encourage a representation with enough variation to support the primary task and less of the specific variation exposed by the auxiliary heads. The balance depends on the tasks, their labels, and the effect each update has on the shared features.
Make the updates concrete
The experiments use VGG-M adapted from a network pretrained on VGG-Face. In the architecture described by the authors, five convolutional layers are followed by three fully connected layers. The shared representation runs from conv1 through fc7, with task decisions made from the resulting features. The convolutional layers process the image first and pass their outputs to the later layers that supply the embedding.
The authors froze conv1 through conv5 for all experiments. They report that updating the convolutional weights produced no significant improvement in their trials and that freezing them sped up training. The learned changes to the shared representation in these experiments thus occur in its later layers. The pretrained convolutional layers still help determine which image information reaches those layers.
The authors used stochastic gradient descent, which makes successive parameter updates from training examples, with a learning rate of 1×10⁻⁴. The classification layers used rates boosted by a factor of 10. The confusion loss weight α was set to 0.1, and every secondary classification weight βₘ was set to 1. To address unequal class frequencies in the training data, the authors also weighted losses by the inverse of each class’s relative frequency. A rarer class therefore contributes more per example under that weighting. The implementation used MatConvNet.
The age task has a particular setup. The authors considered the dataset relatively small for training a network to estimate age as a continuous quantity. They grouped ages into categories spanning 5 years in the main part of the distribution, with wider categories at the ends. They counted a prediction as correct when it was in the true category or within one category of it. This accommodates cases near a boundary, where two people close in age could fall on opposite sides of the dividing line. The age accuracy figures measure success under that binning and tolerance rule.
Read the secondary scores during training
The paper plots the test performance of the primary classifier and the auxiliary classifiers as JLU proceeds. The auxiliary tasks can have different class counts and therefore different reference errors from random predictions. For these plots, the authors rescale their scores.
a = 1 − e/e_max
The symbol a is the rescaled secondary score. The quantity e is the classifier’s mean-class error, which gives the classes equal standing in the error measurement. The quantity e_max is the corresponding error for a classifier that draws its answers at random. The constant 1 sets the score of a perfect classifier to 1, and the subtraction yields a score of 0 at the random reference. The primary accuracy is plotted on its original scale.
A secondary curve approaching the random reference indicates that the classifier has lost much of its ability to read that particular attribute. The primary curve shows whether the intended prediction remains useful during the same training process. The paper also gives end-of-training comparisons. Those comparisons describe how much recoverability changed relative to each baseline embedding and the corresponding random reference.
Experiments and results
How the facial collections were prepared
The experiments use different sources of labels for different parts of the training procedure. IMDB supplies age and gender. LAOFIW supplies the broad ancestral-origin groupings. AFLW supplies head orientation. The main task and the unwanted attributes can use different collections while drawing their features from the same network.
The IMDB collection was assembled from profile photographs of the 100,000 most popular actors on IMDb. The source associates profile information with images that appear on the profile. The authors identify an immediate problem with this procedure. A photograph on an actor’s profile can contain a single face and still depict a colleague. The gender and date of birth attached to that photograph may then refer to someone else. The age label has another source of error because it is derived from the interval between the recorded photograph date and the associated date of birth. Some dates are inconsistent even with the person having been born when the photograph was supposedly taken.
To obtain cleaner labels, the authors obtained age and gender estimates from the Microsoft Azure Face API for an identity-balanced selection of 150,000 images. They removed photographs when the service’s gender estimate disagreed with the IMDB label. For age, they rejected a photograph when the service’s estimate differed from the IMDB age by more than 10 years. The selection after filtering contained 60,000 images. Its age distribution still leaned towards younger women and older men, which gave the authors a naturally occurring association to study.
The paper reports a separate experiment to assess the filtering. The authors trained a VGG-M gender classifier using the original selection and trained another using the filtered collection. They withheld 20% of the images for testing. The resulting gender classification accuracies on the respective test images were 75% before cleaning and 99% after cleaning. This comparison reports performance under the two data preparations. The evaluations use their respective image collections, so the figures also reflect changes in which photographs survived the filtering.
For the bias experiments, the authors prepared a separate test subset from cleaned IMDB. Every age category contains the same number of women as men, and the photographs in this subset were kept out of training. The true age distribution is consequently the same for both groups in that evaluation. For age classification this makes any difference between the groups’ aggregate predicted distributions easier to interpret. For gender classification it removes the training advantage of treating an age category as evidence for one gender over the other.
The authors assembled LAOFIW to study ancestral origin and to provide auxiliary supervision for tasks where that attribute is meant to become harder to recover. They used Bing Image Search with 43 origin-related search terms, combining them with words referring to men, women, boys, or girls. Searches were restricted to photographs of faces and returned 20,000 images. To identify duplicates, the authors compared image descriptors based on histograms of oriented gradients, which summarize local directions of changes in image intensity. They report encoding those descriptors with a Gaussian mixture for the comparison.
After removing duplicates, the authors manually grouped the remaining 14,000 photographs. The dataset description names sub-Saharan Africa, the Indian Subcontinent, Europe, and East Asia as the categories. The authors chose broad groupings they considered visually distinct for their experiments. They describe roughly equal numbers of male and female individuals, along with variation in expression, illumination, and age. More than a third of the photographs show faces at non-frontal angles. The paper states an intention to make LAOFIW public.
The pose data came from AFLW. The authors assigned photographs to five categories based on yaw, the turning of the head to the left or right. The categories range from a left profile through a near-frontal left view, a frontal view, and a near-frontal right view to a right profile. To augment the non-frontal examples, the authors duplicated and horizontally flipped them. They selected a class-balanced training subset of 24,000 images and reserved a class-balanced test set of 6,000 images.
Age prediction under the celebrity association
The initial bias experiment trains two age classifiers on cleaned IMDB. The baseline learns age from the labeled images. The JLU network learns age while the auxiliary training procedure tries to suppress gender. The authors compare age accuracy on the balanced test set and examine the distribution of predicted ages for each gender. They also inspect the embeddings of the held-out images themselves.
The network supplies a 4096-dimensional representation for each photograph. To display it, the authors use t-SNE, a visualization procedure that places high-dimensional examples on a lower-dimensional plot. They color the examples by gender. A distinction between the groups is readily visible in the baseline plot, even though the baseline was trained for age. In the JLU plot, the separation is much less pronounced. This gives a view of how the geometry presented in the projection changes when gender suppression is included.
The age predictions give a view of what the main classifier does with its features. The true distributions for women and men coincide by construction in the test subset. The baseline assigns women younger ages and men older ages on average in the sense that their distributions tend toward underestimation and overestimation, respectively. The direction echoes the pattern in the training collection. In the JLU network, the two prediction distributions are more closely aligned.
The authors quantify that comparison with Kullback–Leibler divergence. Here it is used to compare predicted ages across the two groups, in a different application from the confusion calculation during training. Its inputs are distributions of the primary classifier’s predictions over the held-out photographs. The score captures how different those distributions are from each other.
Predicted age distributions on gender-balanced IMDB test data, KL divergence
The distributions for women and men are closer after gender unlearning.
The numbers
| System or setting | KL divergence |
|---|---|
| Age-only baseline | 0.049 |
| JLU with gender unlearning (this paper) | 0.027 |
The baseline’s overall age accuracy on this test set was 78.9%, with 78.4% for women and 79.4% for men. The JLU network reached 78.1% overall, with 77.4% for women and 78.9% for men. These scores use the paper’s age-bin tolerance. Each group score records how frequently its images meet that criterion, while the divergence captures how similarly the network distributes ages across the groups.
Taken together, the measurements describe the practical tradeoff in this experiment. The lower divergence accompanies a modest cost in primary accuracy on the same test data. The authors’ aim here is a reduction in the difference in how the age classifier treats the groups. Correctness and similarity of predictions can move separately because a distribution summarizes how frequently age categories are predicted, leaving open which examples received each prediction.
Gender prediction when age becomes a shortcut
The next experiment changes the strength and direction of the training association on purpose. The experimental description defines EB1 using women aged 0-30 and men aged 40+. For EB2 it assigns the older range to women and the younger range to men. The authors describe a 10-year buffer to exaggerate the separation. These are age-selected subsets of cleaned IMDB. A separate histogram caption gives different age cutoffs, an ambiguity that affects the exact reconstruction of the subsets.
For both subsets, the authors train a gender-only baseline and a gender classifier with JLU that also suppresses age. Evaluation again uses the held-out IMDB subset balanced by gender within each age category. This gives age a very different relationship to gender at training and at testing. A classifier can fit the gender labels in its training subset by using an age rule. On the balanced test set, applying that rule leads it to favor a gender in age categories where both genders are equally represented.
The direction of the baseline predictions follows the direction set by training. In EB1, younger individuals are frequently predicted to be women and older individuals to be men. In EB2, the baseline more often predicts men among the young and women among the old. The authors inspect the ages of the people who receive the respective predicted labels and find that JLU brings those age distributions closer to their reference distributions for both training subsets.
Gender classification accuracy on balanced IMDB test data after extreme-bias training
Age unlearning improves gender accuracy under both directions of the training association.
The numbers
| System or setting | accuracy % |
|---|---|
| EB1 gender-only baseline | 70 |
| EB1 JLU with age unlearning (this paper) | 86 |
| EB2 gender-only baseline | 62 |
| EB2 JLU with age unlearning | 82 |
The EB1 comparison gives 70% test accuracy for the baseline and 86% for JLU. The EB2 comparison gives 62% for the baseline and 82% for JLU. All four scores concern gender classification on the balanced test data. The difference between the EB1 and EB2 baselines also shows why the two settings are best read through each matched comparison. Reversing the association changes which gender and age combinations appear in training, and the resulting baselines already have different levels of accuracy before JLU is added.
The pattern of errors helps explain the improvement. The younger and older categories have opposite implications for a baseline depending on which subset it saw. With age unlearning, the distribution of those errors shifts towards the reference in both settings, and more test images receive the correct gender label. Here the training intervention pays off on the primary task because the evaluation deliberately removes the predictive advantage of the age shortcut.
Preserving one attribute while suppressing the others
In the last series of experiments, the authors rotate the primary task among age, ancestral origin, gender, and pose. For each choice, the other attributes become secondary tasks. A primary-only network provides the baseline for that configuration. The comparison asks how reliably auxiliary classifiers can recover their labels from its features and how that recoverability changes with JLU. It also compares the primary accuracy achieved with and without the intervention.
The paper uses two ways to present secondary performance. In the plots through training, mean-class error is rescaled so that random prediction occupies the same reference point for every auxiliary task. In the results comparison, the authors describe the proportion of baseline performance above chance that JLU removed. The latter figure depends on where the baseline starts. A reported proportion of suppression has meaning relative to the corresponding baseline and random reference for that task. It describes a change in tested recoverability, which is why the authors can compare attributes whose classifiers have different output categories.
With age as the primary task, the authors report that JLU’s age classification accuracy was 5% lower than the baseline’s. The ancestral-origin classifier reached the random reference. The authors report suppressing 88% of the baseline’s above-chance recoverability for gender and 91% for pose. The reduction in age accuracy belongs to the configuration that targets several secondary attributes together. The earlier age experiment suppresses gender alone and reports its own accuracy figures on the balanced subset.
With ancestral origin as the primary task, the authors report a 1% improvement in primary classification accuracy relative to the baseline. The proportions reported as unlearned were 92% for age, 98% for gender, and 86% for pose. These percentages concern the performance of the secondary classifiers relative to their baseline and random references. The primary accuracy comparison concerns classification of the LAOFIW categories.
With gender as the primary task, JLU matched the baseline’s primary accuracy. The reported reductions in recoverability were 94% for age, 98% for ancestral origin, and 95% for pose. The training setup here asks the representation to support gender while several distinct sources of information are being discouraged. Its purpose differs from the deliberately extreme IMDB experiments, which change the age composition of the gender training subset to make a specific shortcut especially attractive.
With pose as the primary task, JLU likewise matched the baseline’s primary accuracy. The proportions of above-chance recoverability removed were 93% for age, 78% for ancestral origin, and 86% for gender. Ancestral origin was especially difficult to suppress in this configuration. The pose score on the main task and the ancestral-origin score on the auxiliary task describe different aspects of the same embedding. The former can hold steady while the latter leaves more recoverable information than the authors wanted.
Across the configurations, the paper reports that secondary classifier accuracy came within 5% of chance in 9/12 cases. The training plots show how primary accuracy and rescaled secondary accuracy evolve, with the primary-only baseline available as a reference. The end results give both the feasibility and the cost of the intervention for this set of tasks. Performance on several primary tasks can be maintained while multiple other attributes become harder for the auxiliary classifiers to predict. The age and pose configurations mark different difficulties, one in preserving the main task and the other in suppressing a particular secondary attribute.
What the ablations show
The paper evaluates the full JLU procedure against primary-only training and uses controlled changes in the training data, visualizations, and training trajectories to investigate its effects. It does not present a component-by-component ablation with separate versions of the confusion target, alternating schedule, and weighting scheme. The comparisons therefore answer different questions about the intervention as a whole.
Balanced age labels make the output comparison informative
For age prediction, both networks face the same held-out task and the same balanced test distribution. The age-only baseline shows some separation by gender in the plot of its embeddings. Its predictions also follow the expected direction of the training association. After the JLU intervention, the visual separation is weaker and the predicted age distributions move closer together. The evidence covers both the representation seen by the classifier and the aggregate behavior of the classifier itself.
The balance within each true age category is central to that interpretation. If one gender were younger in the test data, different predicted distributions could be a sign of accurate estimates of different underlying groups. Here the two groups start from matching age distributions. The divergence comparison can therefore track how the networks’ outputs differ under a common distribution of true age categories. The primary accuracy comparison supplies separate evidence about whether the ages assigned to individual images remain close to their labels.
The visualization adds a diagnostic that the aggregate output score cannot supply. It shows whether gender visibly organizes the projected features used by the age network. The output score adds evidence that any change in this organization also has a consequence for the network’s predictions. An experiment reporting one of these measurements in isolation would leave the other question open. Their agreement supports the authors’ account of an intervention that changes the age representation and its behavior on a test set designed to reveal the training association.
Reversing the training association tests the shortcut explanation
The EB1 and EB2 experiments manipulate the relationship that the baseline is suspected of exploiting. Young age suggests one gender in EB1 and the other in EB2. The baseline prediction pattern changes in the corresponding direction. This supports the claim that the networks are responding to the way age and gender co-occur in training. A comparison built around only one direction would offer less leverage on whether the behavior follows the imposed relationship.
JLU improves accuracy against the relevant baseline under each direction. The corresponding shift in prediction distributions gives the accuracy comparison a concrete interpretation. The improvement occurs where the guessed gender tracks the training ages less closely, and balanced testing creates room for the other facial evidence to matter more. The reversal tests this explanation twice with opposing training associations, while the same balanced test design removes either association’s advantage.
This is a comparison of complete training configurations. It shows the outcome of adding the authors’ unlearning procedure to each deliberately biased setting. The individual contributions of refreshing the auxiliary classifier, using a uniform target, and selecting the confusion weight remain bundled in that change. The paper’s case for the uniform target comes from the behavior the loss is designed to produce. Its experiment establishes the performance of the procedure that uses that target.
Changing the primary task exposes distinct failure modes
The experiments with several unwanted attributes ask what happens when the same general architecture and training logic are applied with different priorities. The rotation is revealing because an attribute can be suppressed more successfully in one configuration than in another. The embedding trained for age leaves ancestral origin at the random reference under the reported test. The embedding trained for pose leaves appreciably more of its baseline ancestral-origin predictability. The selection of the primary task changes the conditions under which suppression has to operate.
Several explanations for such differences are compatible with the design. The intended tasks can require different features, and they also draw on different labeled data and class definitions. The rotation changes those conditions together. It establishes an empirical asymmetry across the tested setups, while leaving the contributions of task, collection, and classifier difficulty unresolved. In particular, the pose result leaves open whether retaining effective pose features contributed to the remaining ancestral-origin signal.
The main-task figures show another asymmetry. A stable primary score can accompany incomplete suppression, as in the pose setting. A lower primary score can accompany strong suppression, as in the age setting. Looking only at primary accuracy would omit the first issue, and looking only at secondary recoverability would omit the second. The pairing of the measures is what distinguishes the shortcomings.
The training trajectories show these measurements during optimization. Because the secondary curves use a common random reference, a reader can see when a classifier is losing the ability to read its label even when its raw chance level differs from another classifier’s. The primary baseline gives a reference for how the intended task is doing at the same stage. The plots describe the behavior of the alternating procedure over training. The paper supplies neither repeated-run convergence measurements nor a sweep that isolates the effect of the update schedule.
The choice to freeze convolutional layers rests on the authors’ observation that training those layers offered no significant improvement and cost additional time. They give the resulting setup for the reported experiments without a detailed numerical comparison of the freezing options. The same applies to weighting. The reported settings show what uniform secondary classification weights can accomplish in these configurations, and the uneven results motivate the authors’ suggestion that task weights could change during training.
Limitations
Limits the authors identify
The authors acknowledge that some sources of unwanted variation prove harder to suppress than others. They point to the weaker result when ancestral origin is suppressed in the network trained for pose. A fixed set of task weights cannot be presumed to have the same effect across every attribute and primary objective. The authors suggest assigning different weights to the auxiliary classifiers and discuss a procedure that would adjust those weights over training. Improved convergence is a possibility they raise, with the reported experiments using the fixed settings described in the method.
The paper is also explicit about the cost of unlearning when age is the intended task. In the single-attribute experiment, the authors value closer agreement between the groups’ age predictions and report the accompanying decrease in accuracy. The experiment suppressing several attributes incurs a larger reported age performance cost relative to its own baseline. These results limit how broadly the improvements under extreme bias can be applied. The effect on the main task depends on what is being predicted, how the data were selected, and which sources of variation training tries to suppress.
The authors identify shortcomings in the original IMDB labels and treat filtering as a practical response. Incorrect identities and unreliable timestamps are reasons to doubt some of the metadata-derived labels. The age bins and tolerance also reflect an explicit choice about how to use the resulting collection. Given its size, they treat age as a grouped prediction problem. Their evaluation therefore concerns the task they constructed from those labels, at the resolution and with the allowance for nearby categories that they specify.
Limits of attributing the effect to information removal
The test of removal is operational. A trained auxiliary classifier tries to infer an attribute from the features. When its predictions approach random performance, the experiment shows that this classifier recovers little usable signal in that setting. Training the classifier against successive versions of the representation makes the observation more informative, because the classifier has opportunities to adapt. The result still depends on the ability of the available classifier and the examples it can learn from.
An embedding could encode a distinction in relationships among features that a different classifier could exploit. It could also make some cases hard to classify while still revealing the attribute reliably within a particular subset. The reported averages permit such possibilities. A demonstration that broader classes of classifiers also fail would require additional recovery tests or a corresponding mathematical argument. Chance-level performance in the paper supports a claim tied to the tested prediction procedure.
The output analysis has its own scope. Similar predicted age distributions can arise when both groups receive accurate age estimates or when both experience similar aggregate patterns of error. They can also arise when distinct errors cancel in the group totals. The paper evaluates accuracy alongside the distributions, which helps distinguish some of these cases, but neither quantity connects each person’s prediction to the particular cues the network used. The t-SNE plot is likewise a projection. Visual overlap supports a change in the displayed geometry, while separation that a different projection or classifier could expose remains possible.
For the same reason, the face experiments leave broader fairness claims open. They test behavior by age and gender on selected partitions and measure recoverability of particular attributes. Fairness standards can concern error patterns, particular groups, and the role of a decision in a larger process. The paper’s experiments give evidence about a defined statistical intervention in facial classification. The high-stakes applications discussed in the introduction would require evidence about their own decisions and populations.
Limits imposed by the labels and collections
The choice of secondary labels fixes what JLU directly targets. A researcher must specify the unwanted attribute and find training examples that teach a classifier to distinguish its classes. An unrecognized shortcut sits outside this mechanism. A known shortcut can also be only partially represented in an auxiliary dataset. With separate collections, the feature extractor receives confusion updates on the secondary images that are available. How far that effect carries to different primary images depends in part on how the two collections overlap in their visual characteristics and label coverage.
LAOFIW’s categories are constructed for the paper’s experimental purpose. Image searches shape the pool, the authors choose broad classes for visual distinctness, and assignment is manual. The categories are therefore labels for this curated collection. The paper’s descriptions even vary in geographic scope between Europe in the dataset section and Western Europe in the abstract. These details limit what a reader can infer about the geographic precision of the labels or the coverage of people whose ancestral backgrounds fit the categories poorly. Suppressing recoverability of these labels measures a narrower target than suppressing all information a different grouping might associate with ancestry.
For IMDB, agreement with the Azure service governs which images remain. That may improve label consistency while also changing the kinds of photographs included. The cleaning experiment measures classifier accuracy on the respective retained and original data, and the paper describes the holdout in terms of images. The account leaves open how much of the accuracy change comes from correcting apparent label conflicts, excluding difficult cases, or other differences between the evaluated samples. It also leaves the extent of separation by identity in that comparison unspecified.
Balanced testing removes the specific relationship between gender and age categories that the main experiments are designed to examine. The images still come from the same source and undergo the same cleaning process. Thus the extreme-bias results establish transfer from artificially restricted training subsets to the authors’ balanced subset. Measuring transfer to another photographic source would require a different test. For exact replication, the age thresholds also need clarification. The body defines the EB splits using 0-30 and 40+, whereas a histogram caption describes the younger group as under 35 and the older group as above 45. Both descriptions impose an age separation, but they select different sets of eligible photographs.
Limits of the comparisons
All reported JLU experiments use the adapted VGG-M setup with fixed convolutional layers. They demonstrate that the later parts of a pretrained network can change recoverability under the examined conditions. The paper leaves open how the same training procedure behaves with a different architecture, different initialization, or a different division between fixed and trainable layers. Its implementation description also leaves the ordering of the KL divergence arguments implicit. Those details matter for reconstructing the precise training process and for assessing the portability of the reported settings.
The primary-only baseline measures what happens when the same task is learned without JLU. The paper discusses gradient reversal, training-distribution adjustments, and multitask weighting as related approaches, without a matched comparison that ranks them on these tasks. Its results support a comparison between the authors’ baseline and their full procedure. Likewise, the reported point results give the direction and size observed in these experiments. Repeated-run variation and sensitivity to the loss weights remain unquantified, which matters especially when reading the small primary accuracy improvement reported for ancestral-origin classification.
What came after
No follow-up studies are identified here, so subsequent adoption of JLU remains undocumented in this account. The paper itself closes with a concrete research question prompted by its results. Secondary classification losses carry equal weights in the reported experiments, yet some attributes remain easier to read from the resulting embeddings than others. The authors propose adapting the weights as training proceeds, drawing on the earlier multitask work they discuss. Whether that change would further reduce secondary recoverability while preserving the primary task was left for future experiments.
Cite
Cite as Mohsan Alvi, Andrew Zisserman and Christoffer Nellåker. 2019. Turning a Blind Eye: Explicit Removal of Biases and Variation from Deep Neural Network Embeddings. Lecture notes in computer science.
@inproceedings{alvi2019turning,
title = {{Turning a Blind Eye: Explicit Removal of Biases and Variation from Deep Neural Network Embeddings}},
author = {Mohsan Alvi, Andrew Zisserman and Christoffer Nellåker},
booktitle = {Lecture notes in computer science},
year = {2019},
doi = {10.1007/978-3-030-11009-3\_34},
eprint = {1809.02169},
archivePrefix = {arXiv},
url = {https://doi.org/10.1007/978-3-030-11009-3_34}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/alvi-2019-turning-blind-eye-explicit-removal/
References
- He, K., Zhang, X., Ren, S., Sun, J.: Deep Residual Learning for Image Recognition. ArXiv e-prints (December 2015) our card
- Krizhevsky, A., Sutskever, I., Hinton, G.E.: Imagenet classification with deep convolutional neural networks. In: Advances in neural information processing systems. (2012) 1097–1105 our card
- Simonyan, K., Zisserman, A.: Very Deep Convolutional Networks for Large-Scale Image Recognition. ArXiv e-prints (September 2014) our card
- Tommasi, T., Patricia, N., Caputo, B., Tuytelaars, T.: A Deeper Look at Dataset Bias. ArXiv e-prints (May 2015) OpenAlex ↗ · Scholar ↗
- Torralba, A., Efros, A.A.: Unbiased look at dataset bias. In: in CVPR. (2011) OpenAlex ↗ · Scholar ↗
- Cao, Q., Shen, L., Xie, W., Parkhi, O.M., Zisserman, A.: VGGFace2: A dataset for recognising faces across pose and age. 8 OpenAlex ↗ · Scholar ↗
- Guo, Y., Zhang, L., Hu, Y., He, X., Gao, J.: Ms-celeb-1m: Challenge of recognizing one million celebrities in the real world. (02 2016) OpenAlex ↗ · Scholar ↗
- Huang, G.B., Ramesh, M., Berg, T., Learned-Miller, E.: Labeled faces in the wild: A database for studying face recognition in unconstrained environments. Technical Report 07-49, University of Massachusetts, Amherst (October 2007) OpenAlex ↗ · Scholar ↗
- Kemelmacher, I., Seitz, S., Miller, D., Brossard, E.: The megaface benchmark: 1 million faces for recognition at scale. (12 2015) OpenAlex ↗ · Scholar ↗
- Kostinger, M., Wohlhart, P., Roth, P.M., Bischof, H.: Annotated Facial Landmarks in the Wild: A large-scale, real-world database for facial landmark localization, IEEE (November 2011) 2144–2151 OpenAlex ↗ · Scholar ↗
- Parkhi, O., Vedaldi, A., Zisserman, A.: Deep Face Recognition. BMVC 1(3) (September 2015) 6 OpenAlex ↗ · Scholar ↗
- Girshick, R., Donahue, J., Darrell, T., Malik, J.: Rich feature hierarchies for accurate object detection and semantic segmentation. ArXiv e-prints (November 2013) our card
- Long, M., Cao, Y., Wang, J., Jordan, M.I.: Learning Transferable Features with Deep Adaptation Networks. ArXiv e-prints (February 2015) OpenAlex ↗ · Scholar ↗
- Oquab, M., Bottou, L., Laptev, I., Sivic, J.: Learning and Transferring Mid-level Image Representations Using Convolutional Neural Networks, IEEE (June 2014) 1717–1724 OpenAlex ↗ · Scholar ↗
- Buolamwini, J., Gebru, T.: Gender shades: Intersectional accuracy disparities in commercial gender classification. In Friedler, S.A., Wilson, C., eds.: Proceedings of the 1st Conference on Fairness, Accountability and Transparency. Volume 81 of Proceedings of Machine Learning Research., New York, NY, USA, PMLR (23–24 Feb 2018) 77–91 OpenAlex ↗ · Scholar ↗
- Ras, G., van Gerven, M., Haselager, P.: Explanation Methods in Deep Learning: Users, Values, Concerns and Challenges. ArXiv e-prints (March 2018) OpenAlex ↗ · Scholar ↗
- Sweeney, L.: Discrimination in Online Ad Delivery. ArXiv e-prints (January 2013) OpenAlex ↗ · Scholar ↗
- Zhao, J., Wang, T., Yatskar, M., Ordonez, V., Chang, K.W.: Men Also Like Shopping: Reducing Gender Bias Amplification using Corpus-level Constraints. In: Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, Copenhagen, Denmark, Association for Computational Linguistics (September 2017) 2979–2989 our card
- Tzeng, E., Hoffman, J., Darrell, T., Saenko, K.: Simultaneous deep transfer across domains and tasks. In: Computer Vision (ICCV), 2015 IEEE International Conference on, IEEE (2015) 4068–4076 OpenAlex ↗ · Scholar ↗
- Gretton, A., Smola, A., Huang, J., Schmittfull, M., Borgwardt, K., Schölkopf, B.: Covariate shift and local learning by distribution matching. In: Dataset Shift in Machine Learning. Biologische Kybernetik, Cambridge, MA, USA (2009) 131–160 OpenAlex ↗ · Scholar ↗
- Tzeng, E., Hoffman, J., Saenko, K., Darrell, T.: Adversarial Discriminative Domain Adaptation. ArXiv e-prints (February 2017) OpenAlex ↗ · Scholar ↗
- Yin, X., Liu, X.: Multi-Task Convolutional Neural Network for Pose-Invariant Face Recognition. IEEE Transactions on Image Processing 27(2) (February 2018) 964–975 arXiv: 1702.04710. OpenAlex ↗ · Scholar ↗
- Jia, S., Lansdall-Welfare, T., Cristianini, N.: Right for the Right Reason: Training Agnostic Networks. ArXiv e-prints (Jun 2018) OpenAlex ↗ · Scholar ↗
- Raff, E., Sylvester, J.: Gradient Reversal Against Discrimination. ArXiv e-prints (July 2018) OpenAlex ↗ · Scholar ↗
- Ganin, Y., Ustinova, E., Ajakan, H., Germain, P., Larochelle, H., Laviolette, F., Marchand, M., Lempitsky, V.: Domain-Adversarial Training of Neural Networks. In Csurka, G., ed.: Domain Adaptation in Computer Vision Applications. Springer International Publishing, Cham (2017) 189–209 OpenAlex ↗ · Scholar ↗
- Dalal, N., Triggs, B.: Histograms of Oriented Gradients for Human Detection. In: Proceedings of the 2005 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR'05) - Volume 1 - Volume 01. CVPR '05, Washington, DC, USA, IEEE Computer Society (2005) 886–893 OpenAlex ↗ · Scholar ↗
- Rothe, R., Timofte, R., Gool, L.V.: DEX: Deep EXpectation of Apparent Age from a Single Image, IEEE (December 2015) 252–257 OpenAlex ↗ · Scholar ↗
- Chatfield, K., Simonyan, K., Vedaldi, A., Zisserman, A.: Return of the Devil in the Details: Delving Deep into Convolutional Nets, British Machine Vision Association (2014) 6.1–6.12 OpenAlex ↗ · Scholar ↗
- Vedaldi, A., Lenc, K.: Matconvnet – convolutional neural networks for matlab. In: Proceeding of the ACM Int. Conf. on Multimedia. (2015) our card