The Straight and Narrow: Do LLMs Possess an Internal Moral Path?
Luoming Hu, Jingjie Zeng, Liang Yang, Hongfei Lin
TL;DR
This work investigates whether LLMs harbor intrinsic moral representations by mapping latent morality through Moral Foundations Theory (MFT) and validating across English and Chinese. It introduces a Unified Moral Probe to detect ten moral classes, then derives steerable Moral Vectors $V_f$ guiding internal activations via inference-time steering on a chosen layer, with Dynamic AMF gating to balance safety and helpfulness. The approach demonstrates that moral concepts are linearly separable in middle layers, revealing a shared yet language-specific subspace, and shows that Adaptive Moral Fusion can substantially reduce jailbreak success (e.g., HarmBench ASR to $19.66\%$) while minimizing unnecessary refusals on benign prompts. Activation Oracle confirms that Moral Vectors encode meaningful ethical concepts, and the method yields a practical intrinsic defense against unsafe outputs, albeit with caveats about cultural scope, model-dependence, and dual-use risks that warrant careful governance.
Abstract
Enhancing the moral alignment of Large Language Models (LLMs) is a critical challenge in AI safety. Current alignment techniques often act as superficial guardrails, leaving the intrinsic moral representations of LLMs largely untouched. In this paper, we bridge this gap by leveraging Moral Foundations Theory (MFT) to map and manipulate the fine-grained moral landscape of LLMs. Through cross-lingual linear probing, we validate the shared nature of moral representations in middle layers and uncover a shared yet different moral subspace between English and Chinese. Building upon this, we extract steerable Moral Vectors and successfully validate their efficacy at both internal and behavioral levels. Leveraging the high generalizability of morality, we propose Adaptive Moral Fusion (AMF), a dynamic inference-time intervention that synergizes probe detection with vector injection to tackle the safety-helpfulness trade-off. Empirical results confirm that our approach acts as a targeted intrinsic defense, effectively reducing incorrect refusals on benign queries while minimizing jailbreak success rates compared to standard baselines.
