Parameter-efficient Modularised Bias Mitigation via AdapterFusion

Deepak Kumar, Oleg Lesota, George Zerveas, Daniel Cohen, Carsten Eickhoff, Markus Schedl, Navid Rekabsaz

Abstract

Large Pre-trained Language Models (PLMs) frequently internalize and propagate societal biases present in their training corpora. Traditional mitigation techniques often result in irreversible model changes, a lack of flexibility for context-dependent information retrieval, and catastrophic forgetting when addressing multiple bias attributes. This paper introduces Debiasing with Adapter Modules (DAM), a modular framework that leverages parameter-efficient adapters and AdapterFusion to encapsulate debiasing functionalities. By keeping the core model frozen and using plug-and-play modules, DAM allows for "fairness-on-demand," enabling users to toggle specific bias mitigations without compromising the primary task performance or the model's original state.

Introduction

As Large Language Models become foundational to modern AI applications, the ethical imperative to mitigate societal biases—such as those related to gender, race, and age—has intensified. However, existing "in-processing" methods typically suffer from three critical limitations. First is irreversibility: once a model is debiased through full fine-tuning, its original weights are lost. Second is inflexibility: certain contexts (e.g., medical diagnostics) may actually require demographic information that standard debiasing removes. Third is catastrophic forgetting: attempting to mitigate multiple biases sequentially often degrades the model's performance on previously learned attributes or the underlying task.

To address these challenges, we propose DAM (Debiasing with Adapter Modules). DAM treats debiasing as a modular service rather than a permanent model state, utilizing small, trainable bottleneck layers inserted into the transformer architecture while the backbone remains frozen.

Methodology

The DAM framework operates through a three-phase training pipeline designed to decouple task-specific learning from bias mitigation.

1. Task Adapter Training

Initially, a task-specific adapter is trained to perform the primary objective (e.g., occupation classification). This adapter learns the necessary representations for the task while the base PLM parameters remain fixed, ensuring the core model's general knowledge is preserved.

2. Debiasing Adapter Training

Separate adapters are trained for each protected attribute (such as gender, race, or age). These modules utilize adversarial training. A debiasing head attempts to predict the protected attribute from the adapter's output, while the adapter is trained to minimize the head's accuracy via a gradient reversal layer. This process effectively "scrubs" the specific demographic information from the adapter's representations.

3. Fusion Layer

To combine these disparate functionalities, a Fusion Layer utilizing an attention mechanism is introduced. This layer learns to dynamically weight and integrate the outputs of the task adapter and the various debiasing adapters. This architecture allows the model to provide a final, debiased embedding that balances utility with fairness.

Experimental Setup

The effectiveness of DAM was evaluated across three distinct classification benchmarks:

  • BIOS: Predicting occupations from biographies, focusing on gender as the protected attribute.
  • FDCL18: Hate speech detection in tweets, focusing on dialect-based race (African American vs. White American English).
  • PAN16: Mention detection in tweets, used for multi-attribute testing involving both gender and age.

Key Results and Discussion

Performance and Utility

DAM demonstrates that modularity does not come at the cost of performance. On the BIOS dataset using a BERT-Base backbone, DAM achieved a task accuracy of 84.86%, nearly identical to the biased baseline. Simultaneously, it significantly reduced "leakage"—the ability of an external classifier to recover protected attributes from the model's internal representations—outperforming strong baselines like Iterative Nullspace Projection.

Multi-Attribute Mitigation

One of the primary strengths of the DAM approach is its resilience against catastrophic forgetting. In the PAN16 multi-attribute experiments (Gender + Age), the Fusion mechanism successfully mitigated both biases simultaneously. Unlike standard fine-tuning, where training for a second attribute often overwrites the first, DAM’s encapsulated adapters allowed for a balanced reduction in leakage for both demographic markers.

Parameter Efficiency

DAM is highly efficient, requiring the training of only a fraction of the parameters compared to full fine-tuning. For instance, in a BERT-Base implementation, DAM utilizes approximately 24M trainable parameters, whereas standard fine-tuning requires updating all 110M parameters. This efficiency makes DAM a sustainable choice for large-scale deployments where multiple fairness configurations may be required.

Conclusion and Future Work

DAM introduces a "fairness-on-demand" architecture that is modular, reversible, and efficient. By treating debiasing as a plug-and-play component, researchers and developers can tailor model behavior to specific ethical and contextual requirements without retraining the underlying PLM.

Despite these successes, limitations remain. The current study treats gender as a binary construct due to dataset constraints and focuses on "fairness through blindness" (information removal) rather than "fairness of service" (equal performance across subgroups). Future research will explore the application of DAM to generative models and investigate the transferability of debiasing adapters across different primary tasks.

Summary updated

BibTeX
@inproceedings{kumar2023parameter,
  author = {Deepak Kumar and Oleg Lesota and George Zerveas and Daniel Cohen and Carsten Eickhoff and Markus Schedl and Navid Rekabsaz},
  title = {{Parameter-efficient Modularised Bias Mitigation via AdapterFusion}},
  booktitle = {EACL},
  year = {2023},
  doi = {10.18653/v1/2023.eacl-main.201},
}
Figure