On Fairness of Low-Rank Adaptation of Large Models

Zhoujie Ding, Ken Ziyu Liu, Pura Peetathawatchai, Berivan Isik, Sanmi Koyejo · DOI

Introduction

As the scale of machine learning models continues to grow, Low-Rank Adaptation (LoRA) has emerged as the industry standard for efficient fine-tuning. By updating only a small fraction of a model's parameters, LoRA significantly reduces the computational and financial barriers to adapting large-scale models like Llama-2 or Vision Transformers (ViT). However, a critical question remains: does this efficiency come at the cost of fairness?

Previous research in model compression, such as pruning, has shown that reducing model capacity can disproportionately degrade performance on minority subgroups. This paper provides the first comprehensive audit of LoRA’s fairness, investigating whether its parameter-efficient nature introduces hidden harms in utility, calibration, and privacy across diverse demographic groups.

Methodology

The researchers conducted an extensive empirical comparison between LoRA and Full Fine-Tuning (FFT) across four key dimensions of model trustworthiness:

  1. Utility: Assessing subgroup accuracy parity to ensure consistent performance across different demographics.
  2. Calibration: Evaluating the reliability of model confidence scores across groups.
  3. Privacy: Testing resistance to Membership Inference Attacks (MIA).
  4. Generative Bias: Probing for gender stereotypes in tasks like machine translation and text completion.

The study utilized a diverse set of architectures, including vision models (ViT-Base, Swin-v2-Large) and large language models (Llama-2-7B, Mistral-7B). Evaluations were performed on benchmark datasets with demographic labels, such as the Berkeley D-Lab Hatespeech dataset (religion, race, gender, sexuality) and the UTK-Face dataset (age and gender classification).

Impact of the Base Model

A central finding of the study is that LoRA does not impose a consistent "fairness tax." Instead, the fairness of the adapted model is often a reflection of the underlying pre-trained base model rather than the adaptation method itself.

Comparison of accuracy and Equalized Odds Difference (EOD) for ViT-Base and Swin-v2-Large on the UTK-Face dataset, showing that the base model architecture significantly influences fairness outcomes.

As illustrated in the vision tasks, switching from a weaker base model (ViT-Base) to a stronger one (Swin-v2-Large) often eliminated subgroup disparities, regardless of whether LoRA or FFT was used. Furthermore, the study found that the LoRA rank ($r$)—the degree of parameter reduction—has negligible impact on fairness metrics once a minimum threshold for basic utility is met.

Fairness in Language Models

In the context of Large Language Models (LLMs), LoRA and FFT demonstrated comparable performance across various fairness metrics. On the D-Lab Hatespeech dataset, both methods maintained similar accuracy spreads across religious and other demographic subgroups.

Subgroup accuracy, Demographic Parity Difference (DPD), and Equalized Odds Difference (EOD) for Mistral-7B on the D-Lab Hatespeech dataset, categorized by religious groups.

Interestingly, in some generative tasks, LoRA exhibited unique properties. For instance, in Turkish-to-English translation, Llama-2 fine-tuned with LoRA showed less gender bias than the FFT version when trained on biased data. However, the researchers also identified a significant challenge: "token bias." LLMs often show unpredictable preferences for specific tokens (e.g., favoring "A" in multiple-choice formats), which can mask underlying demographic biases and complicate standard fairness evaluations.

Privacy and Calibration

Beyond utility, the study examined privacy and calibration. LoRA models generally proved as resistant to privacy leaks as FFT models. In certain vision tasks, LoRA even demonstrated superior resistance to Membership Inference Attacks. Regarding calibration, both methods tended toward overconfidence, though LoRA models showed a more aggressive clustering of predictions at extreme confidence levels (0.0 or 1.0), which may require careful handling in high-stakes applications.

Conclusion

This audit suggests that LoRA is a robust and relatively "fair" alternative to full fine-tuning. The primary driver of fairness remains the quality and scale of the base model. While LoRA does not inherently worsen bias, the discovery of token bias in LLMs highlights the need for more robust evaluation frameworks. Future research should also explore "fairness gerrymandering"—the intersectional biases that may remain hidden when examining demographic groups in isolation.

Summary updated

BibTeX
@inproceedings{ding2024fairness,
  author = {Zhoujie Ding and Ken Ziyu Liu and Pura Peetathawatchai and Berivan Isik and Sanmi Koyejo},
  title = {{On Fairness of Low-Rank Adaptation of Large Models}},
  booktitle = {COLM},
  year = {2024},
  url = {https://openreview.net/forum?id=K1M3gLW0MX},
}
Figure