CoChat

Measuring and Mitigating Gender Bias in Legal Contextualized Language Models

Open access
Bozdag, Mustafa, Sevim, Nurullah, Koç, Aykut · 2024 · ACM Transactions on Knowledge Discovery from Data

The DOI matches its Crossref record; 97 of the 98 references it cites were found in a registry or an index.

Abstract

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 removing social biases in NLP models has been a major research endeavor. In parallel, NLP approaches in the legal domain, namely, legal NLP or computational law, have also been increasing. Eliminating unwanted bias in legal NLP is crucial, since the law has the utmost importance and effect on people. In this work, we focus on the gender bias encoded in BERT-based models. We propose a new template-based bias measurement method with a new 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 new 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’ language understanding performance on the LexGLUE benchmark to confirm that the underlying semantic vector space is not perturbed during the debiasing process. Finally, we propose a bias penalty for the performance scores to emphasize the effect of gender bias on model performance.

Overview

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.1145/3628602

Cites

97 of 98 references verified0 citation errors · 1 not checkable

Statistics

Verification

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Citations

Cites

Show all 98 references

Research works printed but not linked: 9

  1. [5] Kevin D. Ashley. 1988. Modelling Legal Argument: Reasoning with Cases and Hypotheticals . Ph. D. Dissertation. University of Massachusetts. -
  2. [16] Tolga Bolukbasi, Kai-Wei Chang, James Zou, Venkatesh Saligrama, and Adam Kalai. 2016. Man is to computer programmer as woman is to homemaker? Debiasing word embeddings. In Proceedings of the 30th International Conference on Neural Information Processing Systems (NIPS'16) . Curran Associates Inc., Red Hook, NY, 435-364. -
  3. [26] Ilias Chalkidis, Manos Fergadiotis, Prodromos Malakasiotis, and Ion Androutsopoulos. 2019. Neural contract element extraction revisited. In Proceedings of the Workshop on Document Intelligence at NeurIPS . Retrieved from https://openreview.net/forum?id=B1x6fa95UH -
  4. [36] Filippo Galgani, Paul Compton, and Achim Hoffmann. 2012. Combining different summarization techniques for legal text. In Proceedings of the Workshop on Innovative Hybrid Approaches to the Processing of Textual Data (HYBRID'12) . Association for Computational Linguistics, 115-123. -
  5. [50] [Zhenzhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel, Piyush Sharma, and Radu Soricut. 2020. ALBERT: Alite BERT for self-supervised learning of language representations. In Proceedings of the 8th International Conference on Learning Representations (ICLR'20) . OpenReview.net, 17 pages. Retrieved from https://openreview.net/forum?id= H1eA7AEtvS](https://openreview.net/forum?id=H1eA7AEtvS) -
  6. [64] Conor O'Sullivan and Joeran Beel. 2019. Predicting the outcome of judicial decisions made by the European Court of Human Rights. In Proceedings of the 27th AIAI Irish Conference on Artificial Intelligence and Cognitive Science . -
  7. [67] Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. 2019. Language models are unsupervised multitask learners. OpenAI Blog 1, 8 (2019), 9 . -
  8. [78] [Don Tuggener, Pius von Däniken, Thomas Peetz, and Mark Cieliebak. 2020. LEDGAR: A large-scale multi-label corpus for text classification of legal provisions in contracts. In Proceedings of the 12th Language Resources and Evaluation Conference . European Language Resources Association, 1235-1241. Retrieved from https://aclanthology.org/2020.lrec1.155](https://aclanthology.org/2020.lrec-1.155) -
  9. [87] Manzil Zaheer, Guru Guruganesh, Kumar Avinava Dubey, Joshua Ainslie, Chris Alberti, Santiago Ontanon, Philip Pham, Anirudh Ravula, Qifan Wang, Li Yang, and Amr Ahmed. 2020. Big Bird: Transformers for longer sequences. In Advances in Neural Information Processing Systems , H. Larochelle, M. Ranzato, R. Hadsell, M.F. Balcan, and H. Lin (Eds.), Vol. 33. Curran Associates, Inc., 17283-17297. Retrieved from https://proceedings.neurips.cc/paper/2020/file/ c8512d142a2d849725f31a9a7a361ab9-Paper.pdf -

Cited by

Metadata

Authors
Bozdag, M., Sevim, N., & Koç, A.
Affiliations
Bilkent University (TR)
Venue
ACM Transactions on Knowledge Discovery from Data
Published
2024-02-13
Volume
18
Issue
4
Pages
1-26
ISSN
  • 1556-4681 (ISSN-L)
  • 1556-472X
OpenAlex
W4387735167
Cited by
15
References
89
Citations by year
2026: 5 · 2025: 7 · 2024: 3
FWCI
3.76
Type
journal article
Language
en
Open access
Locations
  • ACM Transactions on Knowledge Discovery from Data (publishedVersion)
  • Bilkent University Institutional Repository (Bilkent University) (submittedVersion, cc-by)
Funders
  • TUBITAK 1001 grant (120E346)
  • BAGEP 2023 Young Scientist Award
Topics
  • Physical Sciences › Computer Science › Artificial Intelligence › Ethics and Social Impacts of AI
  • Social Sciences › Law › Artificial Intelligence in Law
  • Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
Keywords
gender bias, social bias, contextual language models, BERT, legal NLP, computational law, bias measurement, bias mitigation, fine-tuning, transformer models

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review

Data sources

Bibliographic data: Semantic Scholar, OpenAlex, Crossref.

Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).

Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.