Debiasing Algorithm through Model Adaptation

Tomasz Limisiewicz, David Marecek, Tomás Musil
2/12/2026

No official code found. Best implementation: tomlimi/DAMA (9 stars, MIT, last commit 2025-01-29).

Abstract

Large language models are becoming the go-to solution for the ever-growing number of tasks. However, with growing capacity, models are prone to rely on spurious correlations stemming from biases and stereotypes present in the training data. This work proposes a novel method for detecting and mitigating gender bias in language models. We perform causal analysis to identify problematic model components and discover that mid-upper feed-forward layers are most prone to convey bias. Based on the analysis results, we intervene in the model by applying a linear projection to the weight matrices of these layers. Our titular method, DAMA, significantly decreases bias as measured by diverse metrics while maintaining the model's performance on downstream tasks. We release code for our method and models, which retrain LLaMA's state-of-the-art performance while being significantly less biased.

View on arXivView PDF

Code Implementations(1)

tomlimi/DAMACommunity60%
MIT

Debiasing Algorithm through Model Adaptation. The method for decreasing gender bias in LLaMa family LLMs.

93Shell, PythonAug 6, 20231 years agoMIT

Similar Papers

Cite this paper

@article{limisiewicz2026debiasing,
  title  = {Debiasing Algorithm through Model Adaptation},
  author = {Tomasz Limisiewicz and David Marecek and Tomás Musil},
  year   = {2026},
  eprint = {2310.18913},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2310.18913},
  journal = {ICLR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.18913.svg)](https://codeofpaper.com/paper/2310.18913)

Discussion