ADEPT: A DEbiasing PrompT Framework

Ke Yang, Charles Yu, Yi R. Fung, Manling Li, Heng Ji · OpenReview

Abstract

Several works have proven that finetuning is an applicable approach for debiasing contextualized word embeddings. Similarly, discrete prompts with semantic meanings have shown to be effective in debiasing tasks. With unfixed mathematical representation at the token level, continuous prompts usually surpass discrete ones at providing a pre-trained language model (PLM) with additional task-specific information. Despite this, relatively few efforts have been made to debias PLMs by prompt tuning with continuous prompts compared to its discrete counterpart. Furthermore, for most debiasing methods that alter a PLM's original parameters, a major problem is the need to not only decrease the bias in the PLM but also to ensure that the PLM does not lose its representation ability. Finetuning methods typically have a hard time maintaining this balance, as they tend to violently remove meanings of attribute words. In this paper, we propose ADEPT, a method to debias PLMs using prompt tuning while maintaining the delicate balance between removing biases and ensuring representation ability. To achieve this, we propose a new training criterion inspired by manifold learning and equip it with an explicit debiasing term to optimize prompt tuning. In addition, we conduct several experiments with regard to the reliability, quality, and quantity of a previously proposed attribute training corpus in order to obtain a clearer prototype of a certain attribute, which indicates the attribute's position and relative distances to other words on the manifold. We evaluate ADEPT on several widely acknowledged debiasing benchmarks and downstream tasks, and find that it achieves competitive results while maintaining (and in some cases even improving) the PLM's representation ability. We further visualize words' correlation before and after debiasing a PLM, and give some possible explanations for the visible effects.

Introduction

Pre-trained Language Models (PLMs) like BERT have revolutionized natural language processing but are known to inherit and amplify human stereotypes present in their training data. Addressing these social biases—such as those related to gender or religion—is critical for ethical AI deployment. However, existing debiasing techniques often face an "imbalance problem." Traditional methods typically involve full fine-tuning or linear projections to erase bias dimensions, which can be destructive. These "surgical" interventions often strip away the semantic meaning of words or damage the model's internal structure, leading to significant performance drops in downstream reasoning tasks like sentiment analysis or logical entailment.

The ADEPT Framework

To overcome these limitations, we introduce ADEPT (A DEbiasing PrompT Framework). ADEPT shifts the debiasing strategy from altering core model weights to a more lightweight and non-destructive approach using continuous prompt tuning.

The ADEPT framework architecture showing the separation of debiasing tasks and downstream task application.

Continuous Prompt Tuning

Instead of updating the millions of parameters within a PLM, ADEPT freezes the base model's weights. It introduces a small set of "continuous prompts"—trainable vectors prepended to the input sequence. This approach is highly efficient, requiring the training of less than 1% of the parameters needed for full fine-tuning (e.g., 1.97M vs. 335M for BERT-Large).

Manifold-Inspired Optimization

Unlike methods that assume bias exists in a simple linear subspace, ADEPT treats word embeddings as points on a complex, non-linear manifold. The framework utilizes a dual-loss objective:

  • Debiasing Loss ($L_{bias}$): Inspired by manifold learning techniques like t-SNE, this term measures the relative distances of attribute words (e.g., "man" vs. "woman") to neutral "prototype" words (e.g., "science," "art"). It optimizes the prompts to ensure these distance distributions match, effectively neutralizing the bias on the manifold.
  • Representation Loss ($L_{representation}$): To ensure the model doesn't lose its knowledge, ADEPT uses KL-divergence to minimize the difference between the hidden states of the original model and the debiased model, ensuring that semantic knowledge is not lost.

Experimental Evaluation

We evaluated ADEPT across several standard bias benchmarks, including SEAT (Sentence Encoder Association Test), CrowS-Pairs, and StereoSet. To ensure the model remained functional, we tested it on downstream tasks from the GLUE benchmark, such as SST-2, MRPC, RTE, and WNLI. Training was conducted using natural sentences from News-Commentary v15 and BookCorpus to establish realistic word prototypes.

Results and Insights

ADEPT demonstrates that effective debiasing does not require "surgery" on the model's core weights. By adding a specialized debiasing prefix, the model can be steered toward fairer outputs while maintaining its structural integrity.

t-SNE visualizations comparing word embedding distributions across different debiasing methods.

As shown in the visualizations above, traditional methods like DPCE often "shatter" the relationship between neutral and attribute words, disrupting the global structure of the embedding space. In contrast, ADEPT keeps the global manifold structure intact while successfully neutralizing bias.

Key results include:

  • Efficiency: Achieving competitive debiasing with only 1.97M trainable parameters.
  • Bias Reduction: Outperforming baselines on SEAT and CrowS-Pairs, moving scores significantly closer to ideal unbiased targets.
  • Performance Gains: Surprisingly, ADEPT-debiased models often outperformed the original biased models on GLUE tasks. For instance, on the MRPC task, the score improved from 83.1 to 85.0, suggesting that removing stereotypical "noise" can enhance focus on relevant semantic features.

Conclusion and Future Work

ADEPT provides a stable and efficient path for debiasing PLMs without sacrificing performance. While current evaluations focus on binary gender and ternary religion settings, the framework is mathematically extensible to more complex identities. Future work will focus on optimizing the objective terms for speed and developing more comprehensive datasets to measure the interplay between bias reduction and linguistic expressiveness.

Summary updated

BibTeX
@inproceedings{yang2023adept,
  author = {Ke Yang and Charles Yu and Yi R. Fung and Manling Li and Heng Ji},
  title = {{ADEPT: A DEbiasing PrompT Framework}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  url = {https://openreview.net/forum?id=9x5baA7NWS},
}
Figure