Hostname: page-component-74656f9884-kv2lp Total loading time: 0 Render date: 2026-11-06T04:02:10.421Z Has data issue: false hasContentIssue false

Gender bias in legal corpora and debiasing it

Published online by Cambridge University Press:  30 March 2022

Nurullah Sevim
Affiliation:
Department of Electrical and Electronics Engineering, Bilkent University, Ankara, Turkey National Magnetic Resonance Research Center (UMRAM), Bilkent University, Ankara, Turkey
Furkan Şahinuç
Affiliation:
Department of Electrical and Electronics Engineering, Bilkent University, Ankara, Turkey ASELSAN Research Center, Ankara, Turkey
Aykut Koç*
Affiliation:
Department of Electrical and Electronics Engineering, Bilkent University, Ankara, Turkey National Magnetic Resonance Research Center (UMRAM), Bilkent University, Ankara, Turkey
*
*Corresponding author. Email: aykut.koc@bilkent.edu.tr
Rights & Permissions [Opens in a new window]

Abstract

Word embeddings have become important building blocks that are used profoundly in natural language processing (NLP). Despite their several advantages, word embeddings can unintentionally accommodate some gender- and ethnicity-based biases that are present within the corpora they are trained on. Therefore, ethical concerns have been raised since word embeddings are extensively used in several high-level algorithms. Studying such biases and debiasing them have recently become an important research endeavor. Various studies have been conducted to measure the extent of bias that word embeddings capture and to eradicate them. Concurrently, as another subfield that has started to gain traction recently, the applications of NLP in the field of law have started to increase and develop rapidly. As law has a direct and utmost effect on people’s lives, the issues of bias for NLP applications in legal domain are certainly important. However, to the best of our knowledge, bias issues have not yet been studied in the context of legal corpora. In this article, we approach the gender bias problem from the scope of legal text processing domain. Word embedding models that are trained on corpora composed by legal documents and legislation from different countries have been utilized to measure and eliminate gender bias in legal documents. Several methods have been employed to reveal the degree of gender bias and observe its variations over countries. Moreover, a debiasing method has been used to neutralize unwanted bias. The preservation of semantic coherence of the debiased vector space has also been demonstrated by using high-level tasks. Finally, overall results and their implications have been discussed in the scope of NLP in legal domain.

Information

Type
Article
Copyright
© The Author(s), 2022. Published by Cambridge University Press
Figure 0

Table 1. Contents of Law2Vec corpus

Figure 1

Table 2. Categorization of the compiled legal corpus to train Law2VecNew

Figure 2

Table 3. Parameters used for Word2Vec model from Gensim library

Figure 3

Table 4. The content of the entire dataset consisting of ECHR decisions

Figure 4

Table 5. The content of the balanced dataset consisting of ECHR decisions

Figure 5

Table 6. Sentence templates used in the EEC

Figure 6

Table 7. The list of methods and embeddings models used

Figure 7

Table 8. Projection values of the CriList Words in Law2Vec and Law2VecNew: Only the most biased 10 words are shown before and after debiasing

Figure 8

Figure 1. Word projections onto gender vector for Law2Vec and Law2VecNew. Right side represents the female direction, left side represent the male direction, and 0 is the neutral point.

Figure 9

Table 9. Projection values of the CriList words in UK2Vec, EU2Vec, AU2Vec, CAN2Vec, and JAPAN2Vec

Figure 10

Figure 2. Word projections onto gender vector for UK2Vec,EU2Vec, CAN2Vec, AU2Vec, and JAPAN2Vec. Right side represents the female direction, left side represent the male direction, and 0 is the neutral point.

Figure 11

Figure 3. The distribution of bias directions in word embeddings models.

Figure 12

Figure 4. CriBias scores.

Figure 13

Table 10. The precision scores of clustering method

Figure 14

Figure 5. Clustering results of Law2Vec and Law2VecNew.

Figure 15

Figure 6. Clustering results for AU2Vec, CAN2Vec, EU2Vec, and UK2Vec.

Figure 16

Figure 7. Results based on k-Nearest neighbors for Law2Vec and Law2VecNew.

Figure 17

Figure 8. Results based on K-Nearest neighbors for UK2Vec, AU2Vec, CAN2Vec, and EU2Vec.

Figure 18

Table 11. The results of bias test via the EEC Dataset on Emotion Intensity Regression Task. For each legal embedding model (except JAPAN2Vec) and for each emotion type, the smallest (in absolute means) one of the Delta values from the Biased and Debiased embeddings are emboldened. Ties are underlined. JAPAN2Vec is failed to be debiased due to the lack of sufficient size vocabulary

Figure 19

Table 12. F1-scores of legal word embedding models on POS tagging task

Figure 20

Table 13. Accuracy ($\%$) results for decision prediction task on ECHR case files with biased and debiased embeddings