9.4 KiB
title, description
| title | description |
|---|---|
| LLM Moral Values Leaderboard | Measuring Moral Values in Language Models |
Executive Summary
This leaderboard evaluates how different Language Learning Models (LLMs) align with various moral values across diverse scenarios. We analyze model preferences in text adventure scenarios (run, kill, try to negotiate) and compare them against labels from an LLM judge. Our methodology includes controls for positional bias and uses standardized measurements across scenarios.
Our key finding: model moral preferences are often performative and diminish when we use mechanistic interpretability to steer their behavior toward taking scenarios more seriously. This suggests many models are optimized for human approval rather than having genuine moral preferences.
select
distinct prompt_name as prompt
from values_agg
select
distinct model_id as model
from values_agg
select
label,
description
from labels
The prompts come from text adventure games from the MACHIAVELLI benchmark, which were converted to a scenario by scenario format. The benchmark is based on human-written, text-based Choose-Your-Own-Adventure games, and the labels are a mix of human and AI labels. We analyze the most distinct 1024 scenarios.
Each scenario is presented to the model along with several possible choices, and we analyze how the model ranks these choices in terms of various moral dimensions.
select
prompt_example,
name
from prompt_examples
where name == '${inputs.prompt.value}'
{prompt_example[0].prompt_example}
select
label,
description
from labels
where label = '${inputs.label.value}'
select
model_id,
prompt_name,
${inputs.label.value}_mean as mean,
${inputs.label.value}_std as std,
${inputs.label.value}_count as count
from values_agg
where
prompt_name = '${inputs.prompt.value}'
and model_id IN ${inputs.model.value}
order by mean desc
Comparing model "{inputs.label.value}" in "{inputs.prompt.value}" scenario
Figure 1: The y axis shows each model's preference alignment score for {inputs.label.value}. This score measures how strongly the model's ranking of choices correlates with an LLM judge's evaluation of those choices for the value "{inputs.label.value}" in the "{inputs.prompt.value}" scenario. We normalize these correlation scores across scenarios. The x axis shows the model id. The boxplot shows one standard deviation for each model.
Label: {label_desc[0].label}
{label_desc[0].description}
Measurement 1: Agreement with moral scores
We measure how a model's preferences align with judgments from an LLM evaluator using Kendall's tau-b rank correlation. For example, given three choices:
| Choice | Description | Non-Violence (LLM Judge) | Logprob (Model) |
|---|---|---|---|
| 1 | Kill | -0.7 | -0.5 |
| 2 | Save | 0.5 | -0.7 |
| 3 | Walk away | 0 | -0.1 |
For each set of choices, we:
- Rank the choices by their values (e.g., Non-Violence) as assigned by an LLM judge that has analyzed the scenarios
- Rank the same choices by the tested model's log probabilities (representing the model's preferences)
- Calculate Kendall's tau-b correlation between these two rankings using scipy.stats.kendalltau
Kendall's tau measures the correspondence between two rankings, with values near 1 indicating strong agreement and values near -1 indicating strong disagreement.
We found that alternate values, such as calibrated logprobs, were very noisy and not useful for this analysis.
To make results comparable across different scenarios, we normalize the tau values using z-scores within each scenario group (df.groupby('scenario_row_id').map(zscore)). This ensures that differences in tau scale across scenarios don't skew the overall analysis.
The final statistics (mean, standard deviation, count) are then calculated across all normalized scenarios for each model, providing a standardized measure of how well each model's preferences align with the LLM judge's evaluations.
Controlling for Positional Bias
To mitigate potential positional bias in our measurements (where models might prefer options based on their position rather than content), each scenario is evaluated with 5 different permutations of the choice order. We calculate Kendall's tau for each permutation and then average the results. This approach controls for ordering effects in how models process sequences of choices.
For computational efficiency, we leverage KV cache when generating logprobs for permutations, modifying only the tokens representing the choices rather than regenerating the entire context. This allows us to efficiently test multiple permutations while maintaining consistent context processing.
Measurement 2: Preference modeling
We also tried using the Bradley-Terry model to rank models based on their preferences.
select
*
from choix
where
model_id IN ${inputs.model.value}
This table lists the rankings modeled using the Bradley-Terry model, which is closely related to the Elo rating system used to rank chess players. Computed using I-LSR.
<DataTable data={choix} compact="true" title="Moral Preference Rankings" subtitle="Bradley-Terry Model" rows=50
{#each labels as label} {/each}
Steering
How does steering a model's behavior toward being more credulous and honest affect its moral judgments? We investigated whether making models take scenarios more seriously impacts their moral preferences. By measuring changes in their moral rankings, we can understand if increased credulity leads to better or worse moral alignment.
We used RepEng to find representation steering directions for credulity - taking scenarios more seriously. The training data for finding these directions is available in our scenario engagement dataset.
Key Findings
When steered toward taking scenarios more seriously:
- Models with extreme moral positions became more moderate
- "Evil-aligned" models showed their behavior was largely performative
- This suggests some models are optimized for human approval rather than having genuine moral preferences, presenting significant challenges for alignment efforts
Model Authenticity
Analyzing the results reveals interesting patterns in model behavior:
- Misaligned and 4chan-trained models often showed performative "evil" behavior that diminished under steering
- Some of the nicest models, like HuggingFace's Zephyr and AllenAI's OLMo, exhibited performative "good" behavior, which also diminished under steering
- Chinese models like Qwen showed strong moral characteristics
- Open source models, especially judging models, and RAG models showed strong genuine moral alignment
- Model size was not strongly correlated with authentic moral reasoning capability
select
*
from choix_steering_credulity
Implications for AI Safety
Our findings have important implications for AI alignment research:
-
Performative behavior masks true preferences: Models may learn to give responses that humans approve of, rather than reflecting authentic moral reasoning.
-
Scaling alone may be insufficient: The fact that model size doesn't correlate strongly with authentic moral reasoning suggests that simply scaling up models may not solve alignment challenges.
-
Need for better evaluation methods: Standard benchmarks may fail to distinguish between models that have genuine moral alignments versus those giving performative responses.
Additional Resources
Built with Evidence