FairViT: Fair Vision Transformer via Adaptive Masking

Bowei Tian, Ruijie Du, Yanning Shen
2/14/2026

No official code found. Best implementation: boweitian/Fair-Vision-Transformer (9 stars, last commit 2025-10-26).

Abstract

Vision Transformer (ViT) has achieved excellent performance and demonstrated its promising potential in various computer vision tasks. The wide deployment of ViT in real-world tasks requires a thorough understanding of the societal impact of the model. However, most ViT-based works do not take fairness into account and it is unclear whether directly applying CNN-oriented debiased algorithm to ViT is feasible. Moreover, previous works typically sacrifice accuracy for fairness. Therefore, we aim to develop an algorithm that improves accuracy without sacrificing fairness. In this paper, we propose FairViT, a novel accurate and fair ViT framework. To this end, we introduce a novel distance loss and deploy adaptive fairness-aware masks on attention layers updating with model parameters. Experimental results show \sys can achieve accuracy better than other alternatives, even with competitive computational efficiency. Furthermore, \sys achieves appreciable fairness results.

View on arXivView PDF

Code Implementations(1)

92PythonJul 7, 202411 months ago

Similar Papers

Cite this paper

@article{tian2026fairvit,
  title  = {FairViT: Fair Vision Transformer via Adaptive Masking},
  author = {Bowei Tian and Ruijie Du and Yanning Shen},
  year   = {2026},
  eprint = {2407.14799},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2407.14799},
  journal = {ECCV 2024 2024}
}

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

Discussion