Low-rank finetuning for LLMs: A fairness perspective
Saswat Das, Marco Romanelli, Cuong Tran, Zarreen Reza, Bhavya Kailkhura, Ferdinando Fioretto
TL;DR
This work analyzes whether low-rank fine-tuning (LoRA) can adequately learn distribution shifts during task-specific adaptation of LLMs from a fairness standpoint. By comparing LoRA and full fine-tuning across toxicity mitigation and sequential decision tasks, using tools such as LogitLens and KL-divergence of token posteriors, it shows that low-rank updates can retain harmful biases and toxicity from the baseline model, especially at smaller ranks, and that the degree of adaptation scales with the LoRA rank. The study finds that higher LoRA ranks more closely resemble full fine-tuning but still risk preserving or amplifying unfair decision boundaries in sequential tasks, indicating a trade-off between efficiency and fairness. These findings underscore the need for careful evaluation of LoRA-based fine-tuning for safety and societal impact, and suggest that rank selection and alternative strategies may be necessary to ensure responsible LLM deployments. $P_eta(y|x)$ and other quantities are analyzed under variations of rank $r$ and dimensionality to illustrate how information from fine-tuning data propagates through the model.
Abstract
Low-rank approximation techniques have become the de facto standard for fine-tuning Large Language Models (LLMs) due to their reduced computational and memory requirements. This paper investigates the effectiveness of these methods in capturing the shift of fine-tuning datasets from the initial pre-trained data distribution. Our findings reveal that there are cases in which low-rank fine-tuning falls short in learning such shifts. This, in turn, produces non-negligible side effects, especially when fine-tuning is adopted for toxicity mitigation in pre-trained models, or in scenarios where it is important to provide fair models. Through comprehensive empirical evidence on several models, datasets, and tasks, we show that low-rank fine-tuning inadvertently preserves undesirable biases and toxic behaviors. We also show that this extends to sequential decision-making tasks, emphasizing the need for careful evaluation to promote responsible LLMs development.
