Fairness-aware Vision Transformer via Debiased Self-Attention

Yao Qiang, Chengyin Li, Prashant Khanduri, Dongxiao Zhu
1/31/2023
cs.CVcs.AIcs.LG

Official code: qiangyao1988/DSA (9 stars, Apache-2.0, last commit 2024-07-03).

Abstract

Vision Transformer (ViT) has recently gained significant attention in solving computer vision (CV) problems due to its capability of extracting informative features and modeling long-range dependencies through the attention mechanism. Whereas recent works have explored the trustworthiness of ViT, including its robustness and explainability, the issue of fairness has not yet been adequately addressed. We establish that the existing fairness-aware algorithms designed for CNNs do not perform well on ViT, which highlights the need to develop our novel framework via Debiased Self-Attention (DSA). DSA is a fairness-through-blindness approach that enforces ViT to eliminate spurious features correlated with the sensitive label for bias mitigation and simultaneously retain real features for target prediction. Notably, DSA leverages adversarial examples to locate and mask the spurious features in the input image patches with an additional attention weights alignment regularizer in the training objective to encourage learning real features for target prediction. Importantly, our DSA framework leads to improved fairness guarantees over prior works on multiple prediction tasks without compromising target prediction performance. Code is available at \href{https://github.com/qiangyao1988/DSA}{https://github.com/qiangyao1988/DSA}.

View on arXivView PDF

Code Implementations(1)

qiangyao1988/DSAOfficial100%
Apache-2.0

codes for paper "Fairness-aware Vision Transformer via Debiased Self-Attention"

90Jupyter NotebookJul 2, 20242 years agoApache-2.0

Similar Papers

Cite this paper

@article{qiang2023fairnessaware,
  title  = {Fairness-aware Vision Transformer via Debiased Self-Attention},
  author = {Yao Qiang and Chengyin Li and Prashant Khanduri and Dongxiao Zhu},
  year   = {2023},
  eprint = {2301.13803},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2301.13803v3}
}

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

Discussion