Analysis of gender bias in legal texts using natural language processing methods

buir.advisorKoç, Aykut
dc.contributor.authorSevim, Nurullah
dc.date.accessioned2023-07-27T11:02:46Z
dc.date.available2023-07-27T11:02:46Z
dc.date.copyright2023-07
dc.date.issued2023-07
dc.date.submitted2023-07-20
dc.descriptionCataloged from PDF version of article.
dc.descriptionThesis (Master's): Bilkent University, Department of Electrical and Electronics Engineering, İhsan Doğramacı Bilkent University, 2023.
dc.descriptionIncludes bibliographical references (leaves 66-81).
dc.description.abstractWord embeddings have become important building blocks that are used profoundly in natural language processing (NLP). Despite their several advantages, word embed-dings 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. Furthermore, transformer-based contextualized language models constitute the state-of-the-art in several natural language processing (NLP) tasks and applications. Despite their utility, contextualized models can contain human-like social biases as their training corpora generally consist of human-generated text. Evaluating and re-moving social biases in NLP models have been an ongoing and prominent research endeavor. In parallel, the NLP approaches in the legal area, namely legal NLP or computational law, have also been increasing recently. Eliminating unwanted bias in the legal domain is doubly crucial since the law has the utmost importance and effect on people. We approach the gender bias problem from the scope of legal text processing domain. In the first stage of our study, we focus on the gender bias in traditional word embeddings, like Word2Vec and GloVe. Word embedding models which 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. In the second stage, we study the gender bias encoded in BERT-based models. We propose a new template-based bias measurement method with a bias evaluation corpus using crime words from the FBI database. This method quantifies the gender bias present in BERT-based models for legal applications. Furthermore, we propose a fine-tuning-based debiasing method using the European Court of Human Rights (ECtHR) corpus to debias legal pre-trained models. We test the debiased models on the LexGLUE benchmark to confirm that the under-lying semantic vector space is not perturbed during the debiasing process. Finally, overall results and their implications have been discussed in the scope of NLP in legal domain.
dc.description.provenanceMade available in DSpace on 2023-07-27T11:02:46Z (GMT). No. of bitstreams: 1 B162271.pdf: 2364046 bytes, checksum: 3edf43737642736a0a12c0a42fcc1f47 (MD5) Previous issue date: 2023-07en
dc.description.statementofresponsibilityby Nurullah Sevim
dc.format.extentxvi, 82 leaves : illustrations, charts ; 30 cm.
dc.identifier.itemidB162271
dc.identifier.urihttps://hdl.handle.net/11693/112448
dc.language.isoEnglish
dc.rightsinfo:eu-repo/semantics/openAccess
dc.subjectNatural Language Processing
dc.subjectWord embeddings
dc.subjectTransformer
dc.subjectGender bias
dc.titleAnalysis of gender bias in legal texts using natural language processing methods
dc.title.alternativeHukuki metinlerdeki cinsiyetçi önyargının doğal dil işleme metotlarıyla analizi
dc.typeThesis
thesis.degree.disciplineElectrical and Electronic Engineering
thesis.degree.grantorBilkent University
thesis.degree.levelMaster's
thesis.degree.nameMS (Master of Science)

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
B162271.pdf
Size:
2.25 MB
Format:
Adobe Portable Document Format

License bundle

Now showing 1 - 1 of 1
No Thumbnail Available
Name:
license.txt
Size:
1.71 KB
Format:
Item-specific license agreed upon to submission
Description: