arXiv:2608.25707cs.LGAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.25707

Fairness-Aware Test-Time Prompt Tuning

Yoann Launay, Parameswaran Kamalaruban, Tom Kempton, Stuart Burrell, David Sutton

Yoann Launay ∗^{*}

University of Cambridge

yl844@cam.ac.uk

Tom Kempton †^{\dagger}

University of Manchester

thomas.kempton@manchester.ac.uk

Parameswaran Kamalaruban

Risk and Security AI Lab, Visa Inc.

kaparame@visa.com

Stuart Burrell

Risk and Security AI Lab, Visa Inc.

sburrell@visa.com

David Sutton

Risk and Security AI Lab, Visa Inc.

dsutton@visa.com

Abstract

Vision-language models have displayed remarkable capabilities in multi-modal understanding and are increasingly used in critical applications where economic and practical deployment constraints prohibit re-training or fine-tuning. However, these models can also exhibit systematic biases that disproportionately affect protected demographic groups and existing approaches to addressing these biases require extensive model retraining and access to demographic attributes. There is a clear need to develop test-time adaptation (TTA) approaches that improve the fairness characteristics of pretrained models under distributional shift. In this paper, we evaluate how episodic TTA affects fairness in CLIP classification under subpopulation shifts and develop FAIRTPT, a novel fairness-aware episodic TTA method that jointly minimizes target marginal entropy while maximizing spurious marginal entropy through soft-prompt tuning. We find that standard episodic TTA generally exacerbates disparities between majority and minority groups, that blinding a model to spurious attributes without degrading target performance is inherently challenging, and that excessive blinding can lead to catastrophic forgetting. This model collapse can be prevented by monitoring test-time changes in target loss within the linear regime, while still achieving fairness improvements on reactive data and preserving overall performance. FAIRTPT outperforms all state-of-the-art episodic test-time debiasing methods and establishes a foundation for robust TTA, which is essential for achieving fairness in practice.

1 Introduction

Vision–language models (VLMs) such as CLIP [1] have achieved remarkable success across multimodal tasks, including recognition, retrieval, and reasoning [2, 3, 4]. A core strength of these models is zero-shot classification, which makes predictions without task-specific fine-tuning by aligning images with class-descriptive prompts in a shared embedding space. This ability is especially valuable when labeled data is scarce or fine-tuning is infeasible due to computational or deployment constraints, enabling strong cross-domain generalization [1, 5]. However, recent studies show that VLMs often inherit and sometimes amplify systematic biases from pre-training data [6, 7, 8, 9, 10, 11]. Such

*Work completed while at the Risk and Security AI Lab, Visa Inc.

†^{\dagger}Work completed while a consultant at the Risk and Security AI Lab, Visa Inc.

Preprint.

biases can propagate to downstream zero-shot classifiers, leading to disparities in performance across sensitive attributes (e.g., gender, race) and undermine fairness in socially critical domains [12].

Test-time adaptation (TTA) has emerged as a promising approach to improve generalization beyond zero-shot prediction by adapting models to unseen distributions during inference using only unlabeled test inputs [13, 14, 15, 16, 17, 18]. For VLMs, episodic TTA methods such as Test-Time Prompt Tuning (TPT) [19] and ZERO [20] adapt soft prompts or aggregate predictions over augmented views to improve accuracy. While these methods improve average accuracy, their impact on subgroup robustness (i.e., the ability to maintain performance across all sensitive groups) and fairness remains largely unexplored. Existing evaluations primarily focus on overall performance, overlooking fairness-related metrics. Moreover, prior work has highlighted instability and hyperparameter sensitivity in TTA methods [21, 22], raising concerns about their reliability in fairness-critical settings.

We address this gap by studying fairness-aware episodic TTA for VLMs, where adaptation is performed independently for each test instance and the model is reset after each episode. Formally, given an unlabeled test image x with neither the target attribute y nor the sensitive attribute s, the goal is to adapt the model (through prompt tuning) so that: (i) subgroup robustness is improved, i.e., disparities in accuracy across sensitive attributes are reduced, (ii) overall accuracy is maintained, and (iii) hyperparameter sensitivity is minimized, since tuning at test time is impractical. Existing test-time debiasing methods [23, 24, 25] often require batched test inputs or partial supervision of sensitive attributes, making them unsuitable for strict, fully unsupervised episodic adaptation. To our knowledge, only [26] propose an episodic unsupervised debiasing method (ORTHCALI). It projects out biased directions in text embeddings in a zero-shot setting, rather than following a standard TTA paradigm.

We introduce Fairness-Aware Test-Time Prompt Tuning (FAIRTPT), an episodic TTA method that jointly minimizes the marginal entropy of target attribute predictions to encourage overall accuracy, while maximizing the marginal entropy of sensitive attribute predictions to reduce reliance on spurious correlations. This dual-entropy objective mitigates subgroup disparities while preserving the simplicity and efficiency of prompt-level adaptation. To further stabilize adaptation and prevent catastrophic forgetting (where excessive debiasing degrades target performance), we propose a lightweight learning-rate adaptation heuristic that monitors target entropy changes during adaptation. Our method is fully unsupervised, operates in the episodic setting, and requires no access to sensitive attribute labels at test time.

Our contributions are summarized as follows:

  1. Evaluating fairness of episodic TTA methods. We present the first systematic fairness evaluation of episodic TTA methods (TPT, ZERO) for VLMs, showing that they often fail to improve subgroup robustness, can exacerbate disparities, and are highly sensitive to hyperparameters.

  2. Proposing and evaluating a fairness-aware episodic TTA method. We propose FAIRTPT, which jointly mitigates spurious reliance and preserves overall accuracy, while being more robust to hyperparameter choices. On standard fairness benchmarks, FAIRTPT outperforms or matches baselines (TPT, ZERO, ORTHCALI) in both overall and subgroup accuracy, and shows markedly improved stability under varying hyperparameters.

References (51)