Back to search

University of Alberta

Debiasing Language Models using Distributionally Robust Optimization

Abstract

dc:description.abstract

It has been shown that pretrained language models exhibit biases and social stereotypes. Prior work on debiasing these language models has largely focussed on modifying embedding spaces in pretraining, which is not scalable for large models. Since pretrained models are typically fine-tuned on task-specific datasets for various downstream tasks, language model performance can be degraded and biases present in finetuning datasets may be amplified. We focus on the fine-tuning phase of language models rather than the computationally expensive pretraining. While training language models using traditional optimization approaches such as Empirical Risk Minimization has proven beneficial for downstream tasks, we often observe the social biases in these language models being amplified during the fine-tuning phase of the pretrained models. To counter this, we propose RobustDebias, a novel mechanism that adapts Distributionally Robust Optimization (DRO) methods for debiasing large language models in the fine-tuning phase. In this work, we focus on debiasing a model across multiple demographics while it is fine-tuned on the Masked Language Modeling (MLM) task. Our method can be used to finetune a pretrained model on any dataset and for any task. We perform extensive experiments on various language models. The results show that our method significantly mitigates bias while the impact on the language model performance is minimized.

Degree

thesis:*
Name thesis:degree_name
Master of Science
Level thesis:degree_level
Master's
Grantor
University of Alberta
Year dc:date.issued
2024

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Gandhi, Deep Rajesh
Advisor dc:contributor.advisor
  • Hegde, Nidhi (Computing Science)

Subjects

dc:subject × 7

Rights

dc:rights
Statement dc:rights
  • This thesis is made available by the University of Alberta Library with permission of the copyright owner solely for non-commercial purposes. This thesis, or any portion thereof, may not otherwise be copied or reproduced without the written consent of the copyright owner, except to the extent permitted by Canadian copyright law.
Language dc:language.iso
en

Identifiers

dc:identifier.*
DOI dc:identifier.doi
https://doi.org/10.7939/r3-85ft-dz66

Chain of custody

source
Harvested from
University of Alberta
Base URL
era.library.ualberta.ca/oai
Last updated
2026-11-26
Source record
OAI-PMH GetRecord
citation

Gandhi, Deep Rajesh. Debiasing Language Models using Distributionally Robust Optimization. Master's thesis, University of Alberta, 2024. https://doi.org/10.7939/r3-85ft-dz66