<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Impact of Debiasing Word Embeddings on Information Retrieval</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Emma Gerritse</string-name>
          <email>emma.gerritse@ru.nl</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Institute for Computing and Information Sciences Radboud University</institution>
          ,
          <addr-line>Nijmegen</addr-line>
          ,
          <country country="NL">the Netherlands</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Word embeddings are a core technology in neural methods for information retrieval. However, previous work has suggested undesirable biases in word embeddings, in particular against gender. In this paper, we look at the extent of the bias in di erent cases. Presumably, not all biased analogies are `robust' and can sometimes give unexpected results. We discuss some ways in which bias in word embeddings could a ect systems in information retrieval, which is the topic of our future research.</p>
      </abstract>
      <kwd-group>
        <kwd>Word embeddings Bias Information Retrieval</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        The vector representations of words generated by neural network methods are
now commonly used for various information retrieval applications. Word2Vec [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]
and Glove [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] are amongst the best-known word embeddings and are used in
various downstream tasks, including document retrieval [
        <xref ref-type="bibr" rid="ref2 ref3 ref5 ref7 ref9">2, 3, 5, 7, 9</xref>
        ]. However,
Bolukbasi et al. [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] raises the concern that pre-trained word embeddings are
biased and exhibit female/male gender stereotypes to a disturbing extent. They
show that some analogies give sexist results; e.g., the answer to the analogy man
: computer programmer as woman : x solves for x = homemaker. They further
proposed two methods of removing gender stereotypes from word embeddings
and transforming embeddings such that gender-neutral words are not closer to
one gender than to another. In this paper, we provide an overview of our research
project on the e ect of word embedding bias for information retrieval tasks. Our
main two research questions are:
{ RQ1: To what extent are word embeddings biased?
{ RQ2: Which information retrieval tasks are a ected by this bias e ect?
      </p>
      <p>First, we discuss the related work in Section 2. In Section 3, we look at
word embedding bias based on word analogies and explore geometric properties
of word vectors. For the analogies, we observe that some analogies are biased,
but we also observe that they are not `robust'. Some analogies present
unexplained behavior, which needs further investigations. Considering the geometric
properties of vectors, we nd that the distribution of male and female words is
not equal, while the PCA visualization of vectors does not show gender biased
clusters. Next, in Section 4, we discuss the e ect of bias in word embedding for
information retrieval tasks and highlight future directions.
2
2.1</p>
    </sec>
    <sec id="sec-2">
      <title>Related work</title>
      <sec id="sec-2-1">
        <title>Word embeddings</title>
        <p>
          Word embeddings are representations of words in a lower dimensional space,
which capture relations between words. In the embedding space, similar words
are mapped close together. On top of that, the di erence between vectors has
meaning. For example, the result of kin!g ma!n + woma!n = quee!n should
hold. Well-known methods of word embeddings are Word2Vec [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ] and Glove [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ].
Word2Vec is trained by predicting a word depending on a surrounding window
of context words (Continuous Bag of Words) or by predicting the surrounding
window of words using the current word (skip-gram). Pre-trained embeddings
of Word2Vec are shared for researchers to use, most famously the embeddings
trained by Mikolov et al. [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ] , on the Google News dataset in 2013. Since these
embeddings are easily available, they are often used in research in information
retrieval.
2.2
        </p>
      </sec>
      <sec id="sec-2-2">
        <title>Bias in word embeddings</title>
        <p>
          Though word embeddings are very useful, Bolukbasi et al. [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ] found that word
embeddings can exhibit biases. Their paper focuses on the pre-trained
embeddings on the Google News Dataset. Considering analogies found in the
embedding space, they sometimes can give sexist results like computer programm!er
h!e + sh!e = homemak!er. To nd biased words, Bolukbasi et al. [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ] calculated
the projection of words in the dictionary on the he-she plane; by calculating
!w (h!e sh!e). The larger this value, the larger the bias associated with that
word is. They identi ed many analogies which could be biased, and Mechanical
Turkers rated these analogies for their level of bias. They constructed two ways
of debiasing, referred to as soft and hard debiasing. With these methods, words
which should be gender neutral are mapped to have the same distance between
clearly male and clearly female terms.
        </p>
        <p>
          However, Gonen and Goldberg [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ] have shown that debiasing is harder than
previously thought. They show that after debiasing with the methods proposed by
Bolukbasi et al. [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ], the original bias can still be recovered. They show this in
multiple ways. One of them is by applying k-means clustering on the 1000 most
biased words, both before and after debiasing. They nd that with an accuracy
of 92.5%, words are assigned to the same gender cluster as before debiasing.
They show that when training a classi er on the debiased words, they can still
predict with high accuracy whether they belong to the male or female group.
2.3
        </p>
      </sec>
      <sec id="sec-2-3">
        <title>Use of word embeddings in IR</title>
        <p>
          Word Embeddings are extensively used in Information Retrieval [
          <xref ref-type="bibr" rid="ref2 ref3 ref5 ref7 ref9">2, 3, 5, 7, 9</xref>
          ].
One example of this is Dehghani et al. [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ], where a neural ranking model is
trained with weak supervision. As an input representation, word vectors are
used. This method seems to gain a big improvement on simply using BM25.
Another example is Diaz et al. [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ], who have shown that using locally trained
word embeddings can be useful for query expansion.
3
        </p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Bias in word embeddings</title>
      <p>Word embeddings are well known to solve word analogies of the form \a is to
b as c is to d" and to exhibit meaningful distances between similar words. We
compute the distance between two word vectors using cosine similarity, so the
distance between words a and b would be 1 cos(!a ; !b ). We compute the answer
of an analogy by solving for the vector which has the greatest cosine similarity
in the following equation:</p>
      <p>max
d2Dnfa;b;cg
cos(!a
!b + !c ; !d )
We note this as !a !b + !c !d . If the reverse of this equation also holds, so
!d !c + !b !a , we will call the analogy robust.</p>
      <p>
        Bolukbasi et al. [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] examined gender biases in the embeddings, both in the
analogies and distances between words. We are going to look into these two
aspects as well. Gender-biased results can be observed in the analogies
generated from Word2Vec embeddings; e.g., computer programm!er h!e + sh!e
homemak!er. We tested some of the analogies given in [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], and found that while
the answer to computer programmer - he + she is indeed homemaker, this
analogy is not robust. Computing the reverse, we nd that homemak!er sh!e + h!e
carpent!er. We further repeat this process and alternate in both directions
until we get the same result in both directions. Figure 1 shows several examples.
We observe that carpent!er h!e + sh!e seamstre!ss, and for this analogy is
robust. While this analogy is still biased, it seems less severe than the computer
programmer and homemaker combination.
      </p>
      <p>Analogies depend on the choice of words examined. When taking the word
programmer instead of computer programmer, the analogy solves to
programmers (plural form), which does not seem to be biased. However, this analogy
converges to Henrik S rense!n sh!e + h!e M artin T horborg togeth!er, which
are the two founders of a Danish website. This suggests that the behavior of
computer programmer</p>
      <p>carpenter --shhee++shh!ee seamstress
programmer
he+sh!e programmers</p>
      <p>she+h!e Martin Thorborg together --shhee++shh!ee Henrik S rensen
he+sh!e homemaker</p>
      <p>-she+he
doctor -he+sh!e nurse
pizzas
he+sh!e cupcakes --shhee++shh!ee wa es</p>
      <p>she+h!e carpenter --shhee++shh!ee seamstress
these embedding vectors is not fully explainable; while some of these analogies
converge immediately, others converge to seemingly unrelated results. To further
investigate the strength of these biases, we would like to construct evaluation
measures, taking this convergence into account. We also hope to gain more
insights on how embedding analogies behave, and why these seemingly unexpected
results are obtained.</p>
      <p>
        Another question is whether biases can be observed from the geometric
properties of embedding vectors or not. To this end, we use the list of
professions given by Bolukbasi et al. [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] and divide them into female and male words
based on their cosine similarity between words he and she. We then compute
j cos( !w; h!e) cos( !w; sh!e)j and observe how this measure varies for the female
and male professions, (see also [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]). The results show more male words for
unbiased terms (values closer to 0) and more female words for biased terms (values
larger than 0.2). This suggests that there is a bigger bias towards female words
than to male words. On the other hand, when applying Principal Component
Analysis (PCA) to the same list of word vectors, we see that there is a less
severe separation between male and female words; see Figure 2. 1 Therefore, when
gender is the most important component of the embeddings, we should be able
to see this in the PCA plot. This PCA projection suggests that the rst and
second components of these vectors are not related to gender, but re ect other
properties of the words.
4
      </p>
    </sec>
    <sec id="sec-4">
      <title>E ect of bias in word embeddings for IR</title>
      <p>
        One of the reasons why bias in word embeddings could be harmful is because
the pre-trained word embeddings are often used by other researchers. Bolukbasi
et al. [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] give as an example that this bias might apply when looking for people
having a certain profession. If the profession is labeled as male, search engines
using word embeddings might favor men instead of women. This is especially
unwanted for conversational search because users here are often given only one
result. However, they did not test this claim in their paper. That is why we want
to test this, using some to be determined later task in IR. For example, we could
use a neural IR system like Dehghani et al. [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] and see if debiasing gives di erent
1 We chose PCA over T-SNE, as PCA reserves the relations in the embedding vectors.
70
60
s50
d
r
o
w
f40
o
r
e
b
m30
u
N
20
10
      </p>
      <p>Male words
Female words
results. We also wonder if there is a di erence in the severity of the bias based
on the task. If debiasing gives a di erence in search results, we want to see what
the e ects of this debiasing are.</p>
      <p>Another question we have is what happens if the user intent is biased. Say
someone is looking for example for all female singers in the Eurovision song contest.
Since sing!er (h!e sh!e) &lt; 0, this is labeled as a female word. However, you do
not want the bias correction to suddenly show male singers as well.</p>
      <p>
        This brings us to another topic: we still do not know why the bias enters
our embeddings. Bolukbasi et al. [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] show that there is a high correlation in bias
in Word2Vec trained on Google News and Glove trained on the common crawl,
so we still cannot infer whether the method or the dataset is more important
for creating the bias. This makes us wonder if these kinds of biases also enter in
other neural IR systems, like the systems developed by Zamani et al. [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] or Guo
et al. [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. These systems seem to score well. However, to our knowledge, nobody
looked into the bias these systems might infer.
5
      </p>
    </sec>
    <sec id="sec-5">
      <title>Conclusion</title>
      <p>At this moment, we can conclude that there is still a lot of work needed to
understand how word embeddings behave in a real-life setting. As seen in previous
work, bias exists in word embeddings, both in the analogies and in the distance
between words. However, there are still some open questions of how these biases
are formed. We still do not know why bias is more visible when looking at the
cosine distance of professions to gendered words than when looking at the PCA
of these same professions. Word embeddings can give weird results, like creating
analogies to seemingly unrelated words. We should be careful to include them
in our IR systems if we do not fully understand how they work. On top of that,
we still do not know how bias and debiasing behave in an actual IR setting. Not
only do we not know this for word embeddings, but we also do not know this
for other neural methods in IR.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>Tolga</given-names>
            <surname>Bolukbasi</surname>
          </string-name>
          ,
          <string-name>
            <surname>Kai-Wei</surname>
            <given-names>Chang</given-names>
          </string-name>
          , James Y Zou,
          <string-name>
            <given-names>Venkatesh</given-names>
            <surname>Saligrama</surname>
          </string-name>
          , and
          <string-name>
            <surname>Adam T Kalai</surname>
          </string-name>
          .
          <article-title>Man is to computer programmer as woman is to homemaker? debiasing word embeddings</article-title>
          .
          <source>Advances in Neural Information Processing Systems</source>
          <volume>29</volume>
          , pages
          <fpage>4349</fpage>
          {
          <fpage>4357</fpage>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>Mostafa</given-names>
            <surname>Dehghani</surname>
          </string-name>
          , Hamed Zamani, Aliaksei Severyn, Jaap Kamps, and
          <string-name>
            <given-names>W Bruce</given-names>
            <surname>Croft</surname>
          </string-name>
          .
          <article-title>Neural ranking models with weak supervision</article-title>
          .
          <source>Proceedings of the 40th International ACM SIGIR Conference on Research and Development in Information Retrieval</source>
          , pages
          <volume>65</volume>
          {
          <fpage>74</fpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>Fernando</given-names>
            <surname>Diaz</surname>
          </string-name>
          , Bhaskar Mitra, and
          <string-name>
            <given-names>Nick</given-names>
            <surname>Craswell</surname>
          </string-name>
          .
          <article-title>Query expansion with locally-trained word embeddings</article-title>
          .
          <source>arXiv preprint arXiv:1605.07891</source>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>Hila</given-names>
            <surname>Gonen</surname>
          </string-name>
          and
          <string-name>
            <given-names>Yoav</given-names>
            <surname>Goldberg</surname>
          </string-name>
          .
          <article-title>Lipstick on a pig: Debiasing methods cover up systematic gender biases in word embeddings but do not remove them</article-title>
          .
          <source>arXiv preprint arXiv:1903.03862</source>
          ,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>Jiafeng</given-names>
            <surname>Guo</surname>
          </string-name>
          , Yixing Fan,
          <string-name>
            <given-names>Qingyao</given-names>
            <surname>Ai</surname>
          </string-name>
          , and
          <string-name>
            <given-names>W Bruce</given-names>
            <surname>Croft</surname>
          </string-name>
          .
          <article-title>A deep relevance matching model for ad-hoc retrieval</article-title>
          .
          <source>Proceedings of the 25th ACM International on Conference on Information and Knowledge Management</source>
          , pages
          <volume>55</volume>
          {
          <fpage>64</fpage>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>Tomas</given-names>
            <surname>Mikolov</surname>
          </string-name>
          , Ilya Sutskever, Kai Chen, Greg S Corrado, and
          <string-name>
            <given-names>Je</given-names>
            <surname>Dean</surname>
          </string-name>
          .
          <article-title>Distributed representations of words and phrases and their compositionality</article-title>
          .
          <source>Advances in Neural Information Processing Systems</source>
          <volume>26</volume>
          , pages
          <fpage>3111</fpage>
          {
          <fpage>3119</fpage>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>Bhaskar</given-names>
            <surname>Mitra</surname>
          </string-name>
          , Fernando Diaz, and
          <string-name>
            <given-names>Nick</given-names>
            <surname>Craswell</surname>
          </string-name>
          .
          <article-title>Learning to match using local and distributed representations of text for web search</article-title>
          .
          <source>Proceedings of the 26th International Conference on World Wide Web</source>
          , pages
          <volume>1291</volume>
          {
          <fpage>1299</fpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <surname>Je</surname>
            <given-names>rey Pennington</given-names>
          </string-name>
          , Richard Socher, and
          <string-name>
            <given-names>Christopher</given-names>
            <surname>Manning</surname>
          </string-name>
          . Glove:
          <article-title>Global vectors for word representation</article-title>
          .
          <source>Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP)</source>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>Chenyan</given-names>
            <surname>Xiong</surname>
          </string-name>
          , Zhuyun Dai, Jamie Callan, Zhiyuan Liu, and
          <string-name>
            <given-names>Russell</given-names>
            <surname>Power</surname>
          </string-name>
          .
          <article-title>End-to-end neural ad-hoc ranking with kernel pooling</article-title>
          .
          <source>Proceedings of the 40th International ACM SIGIR conference on research and development in information retrieval</source>
          , pages
          <volume>55</volume>
          {
          <fpage>64</fpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <surname>Hamed</surname>
            <given-names>Zamani</given-names>
          </string-name>
          ,
          <string-name>
            <given-names>Mostafa</given-names>
            <surname>Dehghani</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W. Bruce</given-names>
            <surname>Croft</surname>
          </string-name>
          , Erik
          <string-name>
            <surname>Learned-Miller</surname>
            ,
            <given-names>and Jaap</given-names>
          </string-name>
          <string-name>
            <surname>Kamps</surname>
          </string-name>
          .
          <article-title>From neural re-ranking to neural ranking</article-title>
          .
          <source>In Proceedings of the 27th ACM International Conference on Information and Knowledge Management - CIKM 18</source>
          . ACM Press,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>