Unveiling the Bias Impact on Symmetric Moral Consistency of Large Language Models

Ziyi Zhou, Xinwei Guo, Jiashi Gao, Xiangyu Zhao, Shiyao Zhang, Xin Yao, Xuetao WeiNeurIPS 2024

TL;DR

Large Language Models (LLMs) often provide contradictory moral advice simply because the order of options is swapped, revealing significant position and selection biases. This paper introduces tSMC, a framework that uses Kullback–Leibler (KL) divergence to quantify and mitigate these biases, providing a more accurate measure of an LLM's true "mitigated" symmetric moral consistency across 12 popular models.

The Problem: Fickle Moralists

As LLMs are increasingly integrated into industry and decision-making, their moral reliability is under the microscope. A core requirement for any ethical agent is symmetric consistency: if a model is asked to choose between action $x$ and action $y$, its choice should remain the same even if the order of the options is reversed ($M(x, y) = M(y, x)$).

However, current LLMs are often "fickle" moralists. Their choices are frequently dictated by position bias (preferring the first or last option) or selection bias (preferring a specific label like "Option A") rather than the actual moral content of the prompt. This paper aims to peel back these layers of bias to see if LLMs possess any intrinsic moral reasoning ability or if they are simply following structural patterns.

Methodology: The tSMC Framework

The authors propose the tSMC (mitigated Symmetric Moral Consistency) framework to evaluate and adjust for these biases. The process involves:

  1. Three Perturbation Settings:
    • Context Swap (CS): Swapping the position of the two actions within the text.
  2. Option Swap (OS): Swapping the option IDs (e.g., A becomes B).
  3. Full Swap (FS): Swapping both the context and the IDs.
  4. Bias Quantification: The framework uses Kullback–Leibler (KL) divergence to measure the distance between the model's probability distributions across these different settings. A high divergence indicates that the model's "moral" choice is heavily influenced by the prompt's structure.
  5. Mitigation: A final mitigated consistency score ($C_{mitig}$) is calculated, penalizing the raw consistency score based on the measured bias impact.
Evaluation diagram illustrating how swapping context and option IDs reveals position and selection biases.

Datasets

The study utilizes the MoralChoice Dataset, divided into two categories:

  • Low-Ambiguity Scenarios (687 questions): Scenarios with a clear "right" answer based on common sense and human values (e.g., "Should I assist in a suicide?").
  • High-Ambiguity Scenarios (680 questions): Moral dilemmas where no choice is perfectly "correct" (e.g., the Trolley Problem).

To prove their findings generalize beyond ethics, the authors also tested the models on the MMLU (high_school_us_history) subject.

Key Insights

  • The "Ambiguity Gap": LLMs are significantly more consistent when the moral answer is clear (84.8% average consistency) than when facing a dilemma (60.7%). In dilemmas, models often default to their structural biases.
  • Bias > Reasoning: In high-ambiguity tasks, some models (like Llama-2-13b) showed a nearly 80% performance gap between different swap settings, suggesting they weren't "reasoning" at all, but rather just picking "Option B" regardless of the text.
  • Size Doesn't Guarantee Stability: Interestingly, model size is not a perfect predictor of consistency. For example, Llama-2-7b outperformed the much larger Llama-2-70b in symmetric consistency.
  • The Phi-2 Paradox: The Phi-2 model demonstrated high consistency across settings but had notably low confidence scores. It appears "hesitant" in its judgments, unlike models like Mixtral-8x7B, which are often confidently biased.

Key Results

After mitigating for bias, Gemini-1.0-pro and Mixtral-8x7B emerged as the most consistent models in low-ambiguity scenarios. The tSMC framework effectively reduces the "absolute difference" in performance caused by swapping option IDs, providing a more stable metric for model comparison. Furthermore, the authors found a low correlation between how confident a model is and how consistent it is—high confidence can often just be a sign of high bias.

Comparison of mitigated consistency scores across 12 LLMs in high and low ambiguity scenarios.

Limitations and Future Work

The authors acknowledge several limitations:

  • MCQA Focus: The study primarily uses Multiple Choice Question Answering, which may not capture the nuances of open-ended conversational moral guidance.
  • Dataset Diversity: While MoralChoice is robust, future work should include more culturally diverse ethical datasets.
  • Additional Biases: The current framework focuses on position and selection bias, but other factors like length bias (preferring longer answers) still need to be addressed.

The researchers suggest that these biases might be inherent to pre-training data and recommend that future instruction tuning specifically target these structural inconsistencies to improve moral reliability.

Summary updated

BibTeX
@inproceedings{zhou2024unveiling,
  author = {Ziyi Zhou and Xinwei Guo and Jiashi Gao and Xiangyu Zhao and Shiyao Zhang and Xin Yao and Xuetao Wei},
  title = {{Unveiling the Bias Impact on Symmetric Moral Consistency of Large Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=5bVZYquNNY},
}
Figure