When to Invoke: Refining LLM Fairness with Toxicity Assessment
Jing Ren, Bowen Li, Ziqi Xu, Renqiang Luo, Shuo Yu, Xin Ye, Haytham Fayek, Xiaodong Li, Feng Xia
TL;DR
FairToT addresses inconsistent LLM toxicity judgments across demographic groups, especially for implicit hate speech, by introducing an inference-time, prompt-based refinement framework. It uses two interpretable fairness indicators—Sentence Fairness Variance ($\theta^S$) and Entity Fairness Dispersion ($\theta^E$)—to detect cases where demographic variation is likely and conditionally invokes a three-stage mitigation that aligns entity-wide scores without changing model parameters. The evaluation on three implicit hate speech benchmarks shows substantial reductions in group-level disparities (SFV and EFD) with modest computational overhead. The work demonstrates that selective, inference-time refinement offers a practical path to fairer LLM-based moderation in real-world deployments.
Abstract
Large Language Models (LLMs) are increasingly used for toxicity assessment in online moderation systems, where fairness across demographic groups is essential for equitable treatment. However, LLMs often produce inconsistent toxicity judgements for subtle expressions, particularly those involving implicit hate speech, revealing underlying biases that are difficult to correct through standard training. This raises a key question that existing approaches often overlook: when should corrective mechanisms be invoked to ensure fair and reliable assessments? To address this, we propose FairToT, an inference-time framework that enhances LLM fairness through prompt-guided toxicity assessment. FairToT identifies cases where demographic-related variation is likely to occur and determines when additional assessment should be applied. In addition, we introduce two interpretable fairness indicators that detect such cases and improve inference consistency without modifying model parameters. Experiments on benchmark datasets show that FairToT reduces group-level disparities while maintaining stable and reliable toxicity predictions, demonstrating that inference-time refinement offers an effective and practical approach for fairness improvement in LLM-based toxicity assessment systems. The source code can be found at https://aisuko.github.io/fair-tot/.
