Should We Attend More or Less? Modulating Attention for Fairness

Abdelrahman Zayed, Goncalo Mordido, Samira Shabanian, Sarath Chandar
5/22/2023
cs.CLcs.AIcs.CY

No official code found. Best implementation: chandar-lab/EAT (0 stars, MIT, last commit 2025-03-26).

Abstract

The advances in natural language processing (NLP) pose both opportunities and challenges. While recent progress enables the development of high-performing models for a variety of tasks, it also poses the risk of models learning harmful biases from the data, such as gender stereotypes. In this work, we investigate the role of attention, a widely-used technique in current state-of-the-art NLP models, in the propagation of social biases. Specifically, we study the relationship between the entropy of the attention distribution and the model's performance and fairness. We then propose a novel method for modulating attention weights to improve model fairness after training. Since our method is only applied post-training and pre-inference, it is an intra-processing method and is, therefore, less computationally expensive than existing in-processing and pre-processing approaches. Our results show an increase in fairness and minimal performance loss on different text classification and generation tasks using language models of varying sizes. WARNING: This work uses language that is offensive.

View on arXivView PDF

Code Implementations(1)

chandar-lab/EATCommunity100%
MIT

Increasing Robustness to Spurious Correlations using Attention Regularization

00Apr 5, 20221 years agoMIT

Similar Papers

Cite this paper

@article{zayed2023should,
  title  = {Should We Attend More or Less? Modulating Attention for Fairness},
  author = {Abdelrahman Zayed and Goncalo Mordido and Samira Shabanian and Sarath Chandar},
  year   = {2023},
  eprint = {2305.13088},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.13088v2}
}

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/2305.13088.svg)](https://codeofpaper.com/paper/2305.13088)

Discussion