Exploring and steering the moral compass of Large Language Models

Alejandro Tlaie
5/27/2024
cs.AIcs.CL

No official code found. Best implementation: atlaie/ethical-llms (4 stars, last commit 2024-08-14).

Abstract

Large Language Models (LLMs) have become central to advancing automation and decision-making across various sectors, raising significant ethical questions. This study proposes a comprehensive comparative analysis of the most advanced LLMs to assess their moral profiles. We subjected several state-of-the-art models to a selection of ethical dilemmas and found that all the proprietary ones are mostly utilitarian and all of the open-weights ones align mostly with values-based ethics. Furthermore, when using the Moral Foundations Questionnaire, all models we probed - except for Llama 2-7B - displayed a strong liberal bias. Lastly, in order to causally intervene in one of the studied models, we propose a novel similarity-specific activation steering technique. Using this method, we were able to reliably steer the model's moral compass to different ethical schools. All of these results showcase that there is an ethical dimension in already deployed LLMs, an aspect that is generally overlooked.

View on arXivView PDF

Code Implementations(1)

atlaie/ethical-llmsCommunity100%
41Python, Jupyter NotebookMay 22, 20242 years ago

Similar Papers

Cite this paper

@article{tlaie2024exploring,
  title  = {Exploring and steering the moral compass of Large Language Models},
  author = {Alejandro Tlaie},
  year   = {2024},
  eprint = {2405.17345},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.17345v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.17345.svg)](https://codeofpaper.com/paper/2405.17345)

Discussion