<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Understanding and Evaluating Racial Biases in Image Captioning</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>10/11/2021</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10308928</idno>
					<idno type="doi"></idno>
					<title level='j'>Proceedings</title>
<idno>2380-7504</idno>
<biblScope unit="volume"></biblScope>
<biblScope unit="issue"></biblScope>					

					<author>Dora Zhao</author><author>Angelina Wang</author><author>Olga Russakovsky</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Image captioning is an important task for benchmarking visual reasoning and for enabling accessibility for people with vision impairments. However, as in many machine learning settings, social biases can influence image captioning in undesirable ways. In this work, we study bias propagation pathways within image captioning, focusing specifically on the COCO dataset. Prior work has analyzed gender bias in captions using automatically-derived gender labels; here we examine racial and intersectional biases using manual annotations. Our first contribution is in annotating the perceived gender and skin color of 28,315 of the depicted people after obtaining IRB approval. Using these annotations, we compare racial biases present in both manual and automatically-generated image captions. We demonstrate differences in caption performance, sentiment, and word choice between images of lighter versus darker-skinned people. Further, we find the magnitude of these differences to be greater in modern captioning systems compared to older ones, thus leading to concerns that without proper consideration and mitigation these differences will only become increasingly prevalent. Code and data is available at https://princetonvisualai. github.io/imagecaptioning-bias/.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.">Introduction</head><p>Computer vision applications have become ingrained in numerous aspects of everyday life, and problematically, so have the societal biases they contain. For example, gender and racial biases are prevalent in image tagging <ref type="bibr">[62,</ref><ref type="bibr">7]</ref> and image search <ref type="bibr">[39,</ref><ref type="bibr">52]</ref>; visual recognition models have disparate error rates across demographics and geographic regions <ref type="bibr">[16,</ref><ref type="bibr">24]</ref>. The perpetuation and amplification of social biases precipitate the need for a deeper exploration of these systems and of the bias propagation pathways.</p><p>We focus on the task of image captioning: the process of generating a textual description of an image <ref type="bibr">[69,</ref><ref type="bibr">50,</ref><ref type="bibr">76,</ref><ref type="bibr">48,</ref><ref type="bibr">3,</ref><ref type="bibr">33]</ref>. This task serves as an important testbed for visual reasoning and can improve accessibility of digital images for people who are blind or low vision.</p><p>In this work, we assess the pathways for bias propa-gation: from the images, to the manual captions, and finally to the automatically generated captions. We focus our attention on studying the Common Objects in Context (COCO) <ref type="bibr">[47,</ref><ref type="bibr">19]</ref> dataset; it is a widely used image captioning benchmark <ref type="bibr">[32]</ref>, thus making any biases especially problematic <ref type="bibr">[22]</ref>. We collect both skin color and perceived gender annotations on 28,315 of the people in the COCO 2014 validation dataset after obtaining IRB approval. This data allows us (and future researchers) to analyze disparities in image captioning (and other visual recognition tasks) across different demographics. Concretely, we observe:</p><p>&#8226; The dataset is heavily skewed towards lighter-skinned <ref type="bibr">(7.</ref>5x more common than darker-skinned) and male (2.0x more than female) individuals. <ref type="foot">1</ref> Further, darkerskinned females are especially underrepresented, appearing 23.1x less than lighter-skinned males.</p><p>&#8226; There are racial terms (including racial slurs) in the manual captions. The racial descriptors are not learned by the older captioning systems <ref type="bibr">[59,</ref><ref type="bibr">50]</ref>, but are learned by the newer transformer-based models <ref type="bibr">[67]</ref> -although the slurs do not yet appear to be learned.</p><p>&#8226; Image captioning systems perform slightly better (according to CIDEr <ref type="bibr">[68]</ref> and BLEU <ref type="bibr">[55]</ref>, although not SPICE <ref type="bibr">[2]</ref>) on images of lighter-skinned people. This is consistent with disparate accuracies on e.g., pedestrian detection <ref type="bibr">[73]</ref> and facial recognition <ref type="bibr">[16]</ref>.</p><p>&#8226; There are visual differences in the depictions of lighter and darker-skinned individuals. For example, lighterskinned people tend to be pictured more with indoor and furniture objects, whereas darker-skinned people tend to be more with outdoor and vehicle objects.</p><p>&#8226; Even after controlling for visual appearance, the captions still differ in word choices used to describe images with lighter versus darker-skinned individuals. This is particularly apparent in the manual captions and in modern transformer-based systems.</p><p>Our work lays the foundation for studying bias propagation in image captioning on the popular COCO dataset.</p><p>Data and code is freely available for research purposes at <ref type="url">https://princetonvisualai.github</ref>. io/imagecaptioning-bias/.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.">Related Work</head><p>Presence of dataset bias. Our work follows a long line of literature identifying, analyzing, and mitigating bias in machine learning systems. One key facet of this discussion is the bias in datasets used to train models. Under the framework of representational harms <ref type="bibr">[14,</ref><ref type="bibr">6]</ref>, there is commonly a lack of representation <ref type="bibr">[16,</ref><ref type="bibr">74]</ref> and stereotyped portrayal <ref type="bibr">[17,</ref><ref type="bibr">62,</ref><ref type="bibr">54,</ref><ref type="bibr">65]</ref> of certain marginalized demographic groups. Along with many ethical concerns <ref type="bibr">[56,</ref><ref type="bibr">66]</ref>, these dataset biases are problematic because they can propagate into models <ref type="bibr">[15,</ref><ref type="bibr">17]</ref>. In this work we analyze the biases present in a commonly-used image captioning benchmark, COCO <ref type="bibr">[47,</ref><ref type="bibr">19]</ref>, using our new crowdsourced annotations.</p><p>Mitigating dataset bias. The root causes of dataset bias are complex: they stem from bias in image search engines <ref type="bibr">[52]</ref>, data collection practices <ref type="bibr">[74,</ref><ref type="bibr">24]</ref>, and real-world disparities. Proposed solutions to dataset bias include new data collection approaches <ref type="bibr">[38,</ref><ref type="bibr">35]</ref>, manual data cleanup <ref type="bibr">[74,</ref><ref type="bibr">75]</ref>, synthetic data generation <ref type="bibr">[58,</ref><ref type="bibr">20,</ref><ref type="bibr">60]</ref> -or, in extreme cases, even withdrawing the dataset after insurmountable biases have been identified <ref type="bibr">[13]</ref>. Researchers have advocated for increased transparency of datasets <ref type="bibr">[27,</ref><ref type="bibr">35]</ref>, including developing tools to steer researcher intervention <ref type="bibr">[8,</ref><ref type="bibr">70]</ref>. Our work does not aim to mitigate dataset bias but instead to articulate its impact on downstream image captioning models.</p><p>Algorithmic bias mitigation. In tandem with efforts to reform data collection, a variety of algorithmic bias mitigation techniques have been proposed; see e.g., Hutchinson and Mitchell. <ref type="bibr">[34]</ref> for an overview. This work goes along with others that unveil biases present in existing algorithms <ref type="bibr">[53,</ref><ref type="bibr">49,</ref><ref type="bibr">4]</ref>. One important theme is bias amplification <ref type="bibr">[78,</ref><ref type="bibr">71,</ref><ref type="bibr">72]</ref>, or social biases in the data getting amplified in the trained models. In this vein, we study how bias in manual image captions propagates into automated captioning systems.</p><p>Image captioning models. Image captioning models are increasingly being developed as a more complex way of labeling images <ref type="bibr">[69,</ref><ref type="bibr">50,</ref><ref type="bibr">76,</ref><ref type="bibr">48,</ref><ref type="bibr">3,</ref><ref type="bibr">33]</ref>. Recent work has discovered biases in these systems, but often with respect to gender <ref type="bibr">[31,</ref><ref type="bibr">12,</ref><ref type="bibr">64]</ref>; the study of racial biases in captioning has been limited to analyzing bias in the manual captions <ref type="bibr">[54,</ref><ref type="bibr">65]</ref>. Racial bias has been identified in other automated systems <ref type="bibr">[9]</ref> (e.g., speech recognition <ref type="bibr">[44]</ref>, facial recognition <ref type="bibr">[28]</ref>, pedestrian detection <ref type="bibr">[73]</ref>); here we expand this work to studying racial biases in image captioning. This spurs the important question of whether race should be included in generated image captions at all. Prior works <ref type="bibr">[63,</ref><ref type="bibr">51]</ref> find that, in certain contexts, people who are blind or low vision want racial descriptors to be included. Further, this motivates the need to understand how people  Annotation setup. Using Amazon's Mechanical Turk (AMT), we crowdsource race and gender labels. In our interface (Fig. <ref type="figure">1</ref>), we present workers with a person instance in a COCO image and ask them to provide the skin color using the Fitzpatrick Skin Type scale <ref type="bibr">[25]</ref>, ranging from 1 (lightest) to 6 (darkest), and the binary gender expression. We also give workers the option of marking "unsure" for either. Each instance is annotated three times. We compensate the workers at a rate of $10 / hr.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.">Crowdsourcing Demographic Annotations</head><p>Inferring race and gender. Race and gender annotations are fundamentally imperfect <ref type="bibr">[29,</ref><ref type="bibr">41,</ref><ref type="bibr">61]</ref>. First, the annotated labels may differ from the person's identity. Second, the labels are discretized (which enables disaggregated analysis at the cost of collapsing identities). Further, the labels are for social constructs and thus subjective and influenced by the annotators' perceptions. We follow prior work <ref type="bibr">[16,</ref><ref type="bibr">73]</ref> in formulating our annotation process; we use phenotypic skin color as a proxy for race because of its visual saliency over other conceptualizations of race. However, as noted by Hanna et al. <ref type="bibr">[29]</ref>, we are actualizing a particular static conceptualization of observed race here. By operationalizing race this way, we miss differences that may appear in other operationalizations, such as racial identity.</p><p>Quality control. To ensure annotation quality to the extent possible, we limit the task to workers who have completed over 1,000 tasks with a 98% acceptance rate. We also construct 57 gold standard images where the gender and lightor-dark labels were agreed-upon by five independent annotators, including one of the authors. We inject 5 of these images randomly in a task with 50 images, and only allow workers who have correctly labeled these images to submit.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2.">Gender annotations</head><p>We start by analyzing the collected gender annotations, looking at distributions at both the instance and image level.</p><p>Instance-level annotations. We analyze the gender annotations of the 28,315 person instances. To determine the label for a person, we use the majority over the three annotations. If majority is not achieved, or there are contradictory gender labels, the instance is labelled as no consensus. We observe that contradictory gender labels are most common when the person is a child, has obscured facial features, or possesses features that contradict social gender stereotypes (e.g. woman with short hair).</p><p>Analyzing the distribution, we see that males make up 47.4% of the instances compared to females who only comprise 23.7% (see Fig. <ref type="figure">2</ref>). Most of the remaining instances were annotated unsure (26.6%), and a consensus was unable to be reached for only 2.2% of instances.</p><p>Image-level annotations. To analyze the dataset at the granularity of images, which is what the captions refer to, we map individual instance annotations to the image (as there are often multiple people per image). We use the annotations given to the largest bounding box, under the assumption that captions will mainly refer to the largest person in the image <ref type="bibr">[11]</ref>. The only exception is if the second largest bounding box contains an individual of the opposite gender, and is more than half the size of the largest bounding box. In this case, we categorize the image as both.</p><p>The image-level distribution closely mirrors that of the instance-level (Fig. <ref type="figure">2</ref>). Again, there are more than twice as many male images (47.4%) as female images (21.0%).</p><p>Comparing collected gender annotations with automatically derived ones <ref type="bibr">[78]</ref>. Previously, works looking at gender bias in COCO have used gender labels derived from the manual captions: "[if] any of the captions mention the word man or woman we mark it, removing any images that mention both genders." <ref type="bibr">[78]</ref> We compare our annotations with theirs. They label 5,413 images: our labels agree with theirs on 66.3% and disagree on 1.4%; the remaining 32.3% we determine cannot be reliably labeled with one gender, e.g., because the person is too small or there are multiple peo-ple of different genders in the image. We successfully label 10,780 images; they only label 3,591 of these correctly (details in Appendix A). This is consistent with the argument of Jacobs and Wallach <ref type="bibr">[37]</ref>: gender is operationalized differently in caption-derived versus human-collected annotations.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3.">Skin color annotations</head><p>For the skin color annotations, we follow a similar process as with our gender annotations. The only difference is that we add a method for dividing skin color into the broader categories of lighter and darker. Using these new categories, we similarly analyze the skin color distribution at both the instance and image level.</p><p>Instance-level skin color distribution. Using the same schema as in Sec. 3.2, we obtain instance-level annotations for skin color. The top two most frequently occurring Fitzpatrick Skin Types are 2 (31.5%) and 1 (15.4%). In contrast, Fitzpatrick Skin Types 5 and 6 comprise only 1.9% and 1.7% of the instances, respectively. This underrepresentation of darker-skinned individuals is an example of representational harm in and of itself.</p><p>We also include a broader skin color breakdown consisting of two categories: lighter and darker. Following previous work <ref type="bibr">[16]</ref>, we define the lighter category as all instances rated 1-3 on the Fitzpatrick scale and darker as containing 4-6. We also assign some of the instances that were previously uncategorized by skin color (because of conflicting labels assigned under the more granular 6-point scheme) to these broader categories. Using this skin color breakdown, 61.0% of the instances are lighter individuals, whereas only 8.1% are darker individuals. The amount of no consensus instances decreases from 15.4% to 13.9% when using this breakdown.</p><p>Image-level skin color distribution. At the image-level, we categorize skin color as lighter and darker, employing the same consensus method as for gender in Sec. 3.2. Of the images, 64.6% are part of the lighter category and 7.0% are part of darker, meaning there are 9.2x more lighter-skinned images than darker-skinned.</p><p>Intersectional analysis. We analyze the skin color and gender labels in tandem. Within lighter images, males are overrepresented at 52.8% compared to females at 25.7%. However, this difference is even starker when looking at darker images, where males comprise 65.1% of the images while females only make up 20.6%, reflecting the unique intersectional underrepresentation faced by darkerskinned females, as noted by Buolamwini and Gebru <ref type="bibr">[16]</ref>. In fact, of the 15,762 images annotated, only 226 of them (1.4%) are of darker-skinned females.</p><p>Worker information. AMT workers were asked to optionally disclose their own race and gender identity. Of the workers asked, 97.9% provided their gender and 97.3% provided their race. As seen in Fig. <ref type="figure">2</ref>, the annotators are pre- dominantly white (77.1%) and male (63.2%).</p><p>Prior work has found that annotators describe in-group versus out-group members differently <ref type="bibr">[54]</ref>. Thus, there may be a concern that the skew in worker demographics could influence our collected labels. To understand whether a worker's demographics influences their selection of labels, we explore disagreements in annotations. We do so by comparing the mean difference in annotation when the pair of workers are of the same self-reported demographic group versus when they are of differing groups. If workers from different groups label images differently, we would expect pairs from distinct groups to have a greater disagreement than pairs from the same group. However, we find for skin tone there is not a substantial difference in the disagreement between pairs of the same racial group (0.870 &#177; 0.009) and different groups (0.857 &#177; 0.011). For gender, the mean difference for same gender pairs (0.109 &#177; 0.002) and different gender pairs (0.112 &#177; 0.003) is similar as well. This indicates that there is not a systematic difference between how workers of different self-reported demographic groups label images, suggesting our collected labels would be similar even if the workers came from a different demographic composition.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.">Experiments</head><p>We now discuss the findings from our experiments on understanding what kinds of biases propagate in image captioning systems. First, we examine racial terms (Sec. 4.1) and disparate performance (Sec. 4.2). We then analyze bias in terms of representation, i.e., differences between the lighter and darker images and corresponding captions. To do this we first consider the images in Sec. 4.3, before controlling for these visual differences and studying the captions in Sec. 4.4.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Models.</head><p>We examine the captions generated by six image captioning models: (1) FC <ref type="bibr">[59]</ref> is a simple sequence encoder that takes in image features encoded by a CNN; (2) Att2in <ref type="bibr">[59]</ref> is similar but images are encoded using spatial features; (3) DiscCap <ref type="bibr">[50]</ref> further adds a loss term to encourage discriminability; (4-6) Transformer <ref type="bibr">[67]</ref>, AoANet <ref type="bibr">[33]</ref>, and Oscar <ref type="bibr">[45]</ref> are transformer-based models representing the current state-of-the-art. In our analysis we particularly focus on contrasting Att2in vs DiscCap, since they differ only in the added discriminability loss, and the older (1-3) vs the newer (4-6) models. We train the models on the COCO 2014 training set using proposed hyperparameters from the respective papers (e.g., the discriminability loss weight is = 10 for DiscCap). Oscar is further pre-trained on a public corpus of text-image pairs Data. Our racial analysis is performed on 10,969 images of the COCO 2014 validation set which were definitively labeled as either lighter or darker (not both or unsure).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.1.">Captions contain racial descriptors</head><p>We begin by analyzing the presence of racial descriptors and offensive language in the manual as well as automatically generated captions.</p><p>Manual captions. Prior works <ref type="bibr">[54,</ref><ref type="bibr">65]</ref> show that people are more likely to use racial descriptors when describing non-white individuals. We observe this pattern in humanannotated captions by conducting a keyword search of the captions in the COCO 2014 training set using a precompiled list of racial descriptors (details in Appendix B). For ambiguous terms (e.g. "white", "black") that can be used in a non-racial context, we manually inspect the captions. Assuming the training distribution mirrors that of the validation, for the manual captions, annotators used racial descriptors to describe individuals who appear to be white 0.03% of the time versus 0.54% of the time for individuals who appear to be Black. Furthermore, in 26.9% of the instances when a racial descriptor for a white individual is used, the annotator is also mentioning an individual of a different race in the caption as well (e.g. "the white woman and Black woman"). We see this as a manifestation of the belief that "white" is the norm, and race is only salient when there is a deviation or explicit difference between multiple people.</p><p>In addition to looking for racial descriptors, we check for the presence of slurs and offensive language using a precompiled list of profane words <ref type="bibr">[77]</ref>. There are 1,691 instances of profane language, occurring in 0.40% of the sentences in the COCO 2014 training set. We find alarming occurrences not only of racial slurs but also of homophobic and sexist language as well, similar to the NSFW discoveries by Prabhu and Birhane <ref type="bibr">[13]</ref>.</p><p>Automated captions. Racial descriptors are not found in the automated captions generated by FC, Att2In, DiscCap, AoANet, or Oscar. While this may be attributed to the fact that racial descriptors are uncommon in the training set, we disprove the idea that this is wholly the reason. To do so, we observe that other words which occur at similar rates (and are thus equally uncommon) are in fact still present in the model-generated captions. For example, the word "Japanese" occurs 69 times in the training set and 0 times in AoANet-generated captions while other descriptors, such as "uncooked" and "soaked", which appear 88 and 61 times in the training set, occur 2 and 6 times in the generated captions respectively.</p><p>While it is rare, we find that racial and cultural descriptors as well as offensive language do propagate into the captions generated by the newer transformer-based models. For Transformer, AoANet, and Oscar, we find instances of offensive language. In addition, there are racial descriptors in 2 of the captions generated by Transformer and 12 cultural descriptors. Furthermore, for 10 of the 14 images, the model uses these descriptors when the human captions do not contain any racial or cultural descriptors (Fig. <ref type="figure">3</ref>). This leads to the worry that models may replicate offensive language or exploit spurious correlations to assign descriptors in a stereotypical and harmful way.  <ref type="bibr">[67]</ref> assigns racial or cultural descriptors to the caption. While in the first image the descriptor of "Asian" is present in the human-annotated caption, neither of the descriptors, "Indian" nor "Mexican," are applicable in the latter images.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2.">Performance differs slightly between lighter and darker images</head><p>We next evaluate whether image captioning models produce captions of different qualities on images with lighterskinned people than darker-skinned people. To do so, we first assess the differences in BLEU <ref type="bibr">[55]</ref>, CIDEr <ref type="bibr">[68]</ref> and SPICE <ref type="bibr">[2]</ref> scores between captions on lighter and darker images. Both BLEU and CIDEr rely on n-gram matching with BLEU measuring precision and CIDEr the similarity between the generated caption and the "consensus" of manual captions. SPICE, however, focuses more on semantics, capturing how accurately a generated caption describes the image's scene graph (e.g. objects, attributes).</p><p>From these results (Tbl. 1), we make two key observations. First, according to both BLEU and CIDEr, the models Att2in, Transformer, AoANet, and Oscar perform somewhat better on lighter images than darker images: e.g., they achieve 2.7 &#177; 0.7, 3.2 &#177; 1.2, 1.9 &#177; 1.6, and 3.0 &#177; 1.1 higher CIDEr scores respectively on lighter than darker images. We observe that these differences in BLEU and CIDEr are not significant for the FC and Disc-Cap -likely because their overall CIDEr scores are worse, at only 87.2 and 71.1 respectively, whereas the other four models attain CIDEr scores above 90.0 (see Appendix C). This suggests that the way models are choosing to describe the images may be better-suited for the majority group. In fact, we see there is a slight positive correlation between the performance of the model (as measured by CIDEr) and the differences in performance between the two groups with an R 2 of 0.343 (Fig. <ref type="figure">4</ref>). Second, there are no noticeable differences with SPICE, indicating that the captions identify key visual concepts equally accurately across both groups. Nonetheless, it is important to note that negative results do not indicate something is bias-free, but merely that our particular experiment did not uncover strong biases.</p><p>Table <ref type="table">1</ref>: The differences in captioning performance (score on lighter -score on darker) as measured by BLEU <ref type="bibr">[55]</ref>, CIDEr <ref type="bibr">[68]</ref>, and SPICE <ref type="bibr">[2]</ref> multiplied by 100 on the COCO 2014 validation dataset. Error bars represent 95% confidence intervals across random seeds used to train 5 models per architecture. BLEU CIDEr SPICE FC <ref type="bibr">[59]</ref> 0.5 &#177; 0.5 0.8 &#177; 1.8 0.2 &#177; 0.3 Att2in <ref type="bibr">[59]</ref> 2.4 &#177; 0.4 2.7 &#177; 0.7 0.0 &#177; 0.1 DiscCap <ref type="bibr">[50]</ref> 0.3 &#177; 0.5 0.6 &#177; 0.7 0.0 &#177; 0.2 Transformer [67] 2.5 &#177; 0.9 3.2 &#177; 1.2 0.1 &#177; 0.3 AoANet <ref type="bibr">[33]</ref> 1.8 &#177; 0.8 1.9 &#177; 1.6 0.0 &#177; 0.2 Oscar <ref type="bibr">[45]</ref> 2.1 &#177; 0. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3.">Visual appearance differs between lighter and darker images</head><p>The analyses so far only consider issues in the captions themselves, irrespective of the image. We now explore how the visual depictions of people of different groups differ. We analyze simple image layout statistics, apply the RE-VISE <ref type="bibr">[70]</ref> tool for discovering bias in datasets, and consider differences in visual appearance of the image content.</p><p>We split our skin-tone-labeled image dataset of 10,969 images into 9,609 images for training and 1,360 for testing. 2  We use area under the ROC curve (AUC) as our metric on a balanced (through re-weighting) test set, so random guessing would have an AUC of 50%. We bootstrap over 1,000 resamples and report a 95% confidence interval.</p><p>Image layout statistics. We consider the following simple image layout statistics as our features: number of people in the image, largest person bounding box size, distance of the largest bounding box from the center of the image, and gender (male, female, unsure, or no consensus) one-hot coded. We train logistic regression models us- 2 These images belong to the COCO 2017 training and validation set respectively; recall that all belong to the COCO 2014 validation set.</p><p>Figure <ref type="figure">5</ref>: Images with people of lighter and darker skin tones co-occur with object categories at different frequencies. Whereas the former tend to be pictured with object categories that are indoor, the latter tend to be pictured with object categories that are more likely to be outdoors.</p><p>ing LBFGS through the sklearn package <ref type="bibr">[57]</ref> to predict whether the input corresponds to the lighter or darker label. An ability to classify serves as a signal for how distinguishable the input features of the two groups are. We use a balanced class weight and run five-fold cross-validation to tune the L2 regularization hyperparameter (1e 4 to 1e4).</p><p>Our two best performing models are trained on the distance from center and the distance plus the gender. Distance alone achieves an AUC of 56.6 &#177; 5.2; adding gender increases the AUC to 57.8 &#177; 4.9. Distance is predictive because darker-skinned individuals tend to be further from the image center than lighter-skinned individuals; this is troubling since the "important" parts of an image tend to be more centered <ref type="bibr">[11]</ref>. Gender is a useful feature since from Sec. 3.3 we know that the gender distribution differs between the two groups.</p><p>REVISE <ref type="bibr">[70]</ref> bias discovery. We next apply the REvealing VIsual biaSEs (REVISE) tool. <ref type="foot">3</ref> Using REVISE we discovered that darker-skinned people appear more frequently with outdoor objects, and lighter-skinned people appear more frequently with indoor objects (Fig. <ref type="figure">5</ref>). Specifically, objects like sink, potted plant, and toothbrush all appear with lighter-skinned people over 13x as much as with darker-skinned people, despite lighter-skinned people only appearing in 7x as many images as darker-skinned people. Although at the moment the differences in object cooccurrences do not appear to have noticeable downstream effects (Sec. 4.2), these differences may lead to discrepancies in performance as certain objects become more easily identifiable for different skin tone groups.</p><p>Visual appearance. Finally, we use image classification models for a detailed examination of how the content of the images differs between different skin tones. To ensure that the skin color of the pictured individual does not affect the model's prediction, we use COCO's object-level segmentations to mask all the people objects. We fill in these Table <ref type="table">2</ref>: Three bias analyses on manual and automated captions of images for which visual content has been controlled. For the first column the VADER sentiment score <ref type="bibr">[36]</ref> is multiplied by 100. For the last two columns, the number is AUC&#8677;100 for classification ability, where higher numbers indicate a greater ability to distinguish between the two groups. Error bars represent 95% confidence intervals across random seeds used to train 5 models per architecture.</p><p>Sentiment masks with the average color pixel in the image. Using the masked images, we fine-tune a pre-trained ResNet-101 <ref type="bibr">[30]</ref> over five epochs using the Adam optimizer <ref type="bibr">[42]</ref> and a batch size of 64. We oversample the darker images to account for the imbalanced class sizes. During training, the learning rate is initialized to be 0.01 and decays by a factor of 0.1 after three epochs. The model achieves an AUC of 55.4 &#177; 4.9, indicating that there is a slight learnable difference between the scenes of lighter and darker images.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.4.">Captions describe people differently based on skin tone</head><p>Finally, we consider how both manual and automatic captions differ when describing lighter versus darker images. To do so, we first control for the visual differences, in order to disentangle the issues coming from the image content versus from the words used in the caption. We do so by finding images that are as similar as possible in content, and differ only by the skin color of the people pictured, i.e., constructing counterfactuals within the realm of our existing dataset. Concretely, for each darker image, we find the corresponding lighter image that minimizes the Euclidean distance between the extracted ResNet-34 features <ref type="bibr">[30]</ref> of the masked images using the Gale-Shapley algorithm <ref type="bibr">[26]</ref> for stable matching (Fig. <ref type="figure">6</ref>). After examining the results, we select the top 40% most similar image pairs.</p><p>The resulting dataset has 876 images. When needed, we use 700 for training (80%) and 176 for testing (20%); otherwise we compute statistics over the whole dataset. As expected, a visual classifier trained on these images (with the people masked) achieves an AUC of only 44.7 &#177; 9.3, failing to differentiate between the two groups.</p><p>In the following analyses, we use the same six models and training setup as in previous experiments. However, we use the dataset, introduced above, which consists of 876 unmasked images for evaluation. This data thus allows us to examine whether human-annotated and model-generated We pick 40% as our threshold for controlled images to include. captions diverge even when visual differences (except skin color) are controlled.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.4.1">Sentiment Analysis</head><p>For our first line of inquiry, we use the Valence Aware Dictionary and Sentiment Reasoner (VADER) <ref type="bibr">[36]</ref> to perform sentiment analysis on the human-annotated captions. Limitations include that sentiment analysis tools have been shown to encode societal biases themselves <ref type="bibr">[43,</ref><ref type="bibr">23]</ref>, and may not generalize well to out-of-distribution machinegenerated text. VADER returns a compound polarity score from 1 (strongly negative) to 1 (strongly positive). Scores less than 0.05 are considered negative; scores greater than 0.05 positive. We find that human-annotated captions describing lighter images have a mean compound score of 0.073 &#177; 0.01 whereas those describing darker images have a mean compound score of 0.059 &#177; 0.01. The difference in compound scores is statistically significant (p = 0.005), with captions describing lighter images being more positive.</p><p>We find that automated captioning systems do not appear to amplify the difference in sentiment scores between the two groups (Tbl. 2). The lack of difference is largely due to the fact that automated captions tend to be more neutral than the human-annotated ones, thus removing most of the sentiment. In fact, the compound scores were all less than 0.03, excluding scores for captions generated by Transformer (0.046 for lighter and 0.042 for darker).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.4.2">Sentence embedding differences</head><p>For our next analysis, we use sentence embeddings from the Universal Sentence Encoder <ref type="bibr">[18]</ref> to compare how the semantic content of captions differs between lighter and darker images. To note, racial descriptors in the captions are not removed for this experiment. We train a multilayer perceptron classifier (MLP) on the embeddings and run fivefold cross validation to tune the learning rate (1e 5 to 1) and number of epochs (1 to 150). We find that the classifier can differentiate between the captions with an AUC of 68.9 &#177; 3.5, indicating a learnable difference in the resulting caption content despite the visual content (with skin tone masked) being indistinguishable.</p><p>We see in Tbl. 2 that the ability to differentiate based on embeddings drops in the generated captions, especially for the more advanced Transformer model to 54.2&#177;3.1, which is almost random. Although humans appear to be assigning different content to similar images with people of different skin tones, automated captioning models do not appear to uphold this trend, at least with respect to the particular sentence embeddings we use.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.4.3">Vocabulary differences</head><p>Finally, we consider word choice in the captions. We use a logistic regression model and a vocabulary of the 100 most commonly used words (filtering out articles, prepositions, and racial descriptors, e.g. "white") in the COCO 2014 training set. Our features are size 100 binary indicators of whether a particular word is present in a caption. The classifier achieves an AUC of 61.8 &#177; 3.8 on human captions. Beyond the differential use of racial descriptors we already observed in Sec. 4.1, this suggests annotators use different vocabularies to describe images even with similar visual content (other than skin tone).</p><p>The ability to distinguish between lighter and darker images further increases when automated captions are used. Particularly, in Tbl. 2 we see from Att2in to Dis-cCap and FC to Transformer, the AUCs slightly increases from 62.8&#177;1.5 to 63.0&#177;3.2 and 65.9&#177;4.2 to 66.0&#177;1.4, respectively. From FC to AoANet, there is a greater increase in AUC from 65.9 &#177; 4.2 to 68.0 &#177; 1.8. We do note that, for Oscar, the ability to differentiate based on vocabulary decreases compared to FC as the AUC drops from 65.9 &#177; 4.2 to 64.4 &#177; 2.8. This may be due to the fact that Oscar is pre-trained on a larger corpus of data; the greater dataset diversity may help diminish the differences between the vocabularies used. Overall, this leads us to believe that more advanced models are more likely to employ different word choices when describing different groups of people.</p><p>Interpreting these results relative to that of the previous section in which we found that the semantic content of generated captions did not differ much between different groups, we consider whether different words are being used despite caption content being similar. As an example, the sentences "Apples are good." and "Apples are great." may map to similar sentence embeddings, but the specific word choice employed is different. In this vein, we find, for instance, that on AoANet's captions, the average coefficent of the word "road" is 0.226 higher than that of the word "street" (where higher coefficients are predictive of darker), even though upon manual inspection the images being described are similar (see Appendix D). While differences in the usage of words, such as "road" and "street," are relatively innocuous, these subtle differences in vocabulary may become more problematic when we consider how certain words like "articulate" have developed a different meaning when applied to Black people <ref type="bibr">[21,</ref><ref type="bibr">1]</ref>. Thus, in future work, it is important to consider not only the semantic differences captured in the sentence embeddings but also the specific words being employed.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.">Discussion and Conclusion</head><p>In this work, we seek to understand not only what racial biases are present in the COCO image captioning dataset, but also how these biases propagates into models trained on them. We annotate skin color and gender expression of people in the images, and consider various forms of bias such as those in the form of differentiability between different groups. We find instances of bias in the dataset and the automated image captioning models. However, we are careful to note that cases in which we did not find bias do not mean there are not any, merely that our particular experiments did not uncover them. By looking at the models that seem to be most indicative of where the image captioning space is progressing, we can see that the bias appears to be increasing. For researchers, this serves as a reminder to be cognizant that these biases already exist and a warning to be careful about the increasing bias that is likely to come with advancements in image captioning technology.</p><p>Based on these analyses, we propose directions for mitigating the biases found in captioning systems. First, from our findings in Sec. 3.2 and 4.1, we see that human annotators make assumptions about the demographics of people pictured or use different language when describing people of different skin tone groups. To mitigate this, dataset collectors can provide more explicit instructions for annotators (e.g. do not label gender or include racial descriptors to people). In addition, we also find that ground-truth captions contain profane language (Sec. 4.1). In line with existing mitigation efforts <ref type="bibr">[74,</ref><ref type="bibr">13]</ref>, manual captions containing slurs or other offensive concepts should be removed from the dataset. Additionally, in Fig. <ref type="figure">2</ref> we see that only 7.0% of the dataset contained images of people with darker skin tones, i.e., 1096 images. We need to collect more diverse datasets such that we can measure disaggregated statistics and compare metrics such as the difference in SPICE scores with the knowledge that our measurements do not suffer from a high sampling bias. Finally, from our analysis of generated captions (Sec. 4.4), we note that Oscar exhibits less bias compared to the other transformer-based models. This suggests the greater dataset diversity from pre-training the model may help reduce the amount of bias that propagates into the automated captions.</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="1" xml:id="foot_0"><p>The gender disparity was previously observed in<ref type="bibr">[78]</ref> although with automatically-inferred rather than manually-annotated labels.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="3" xml:id="foot_1"><p>We additionally include the 813 images labeled both in both groups.</p></note>
		</body>
		</text>
</TEI>
