Skip to content

MoralReason: Generalizable Moral Decision Alignment For LLM Agents Using Reasoning-Level Reinforcement Learning

Conference: AAAI 2026 arXiv: 2511.12271
Code: Project Page / Dataset
Area: LLM Agent / Alignment RLHF Keywords: Moral Alignment, GRPO, Reasoning-Level Reinforcement Learning, Out-of-Distribution Generalization, Ethical Frameworks

TL;DR

This work employs Group Relative Policy Optimization (GRPO) to train LLMs at the reasoning level for ethical framework alignment, achieving out-of-distribution generalization on the Moral-Reason-QA dataset (680 high-ambiguity scenarios) with utilitarian alignment scores improving from 0.207 to 0.964.

Background & Motivation

State of the Field

Background: LLMs serving as autonomous agents in domains such as healthcare and law must make moral decisions aligned with specific ethical frameworks (utilitarianism, deontology, virtue ethics).

Limitations of Prior Work: (a) Existing alignment methods primarily target a single "harmlessness" objective and cannot distinguish between different ethical frameworks; (b) strong performance on training scenarios does not guarantee generalization to novel scenarios; (c) decision-level rewards are insufficient โ€” alignment must be enforced at the reasoning level.

Key Challenge: Different ethical frameworks may prescribe fundamentally different "correct" answers to the same scenario, yet existing methods lack the flexibility to align with distinct frameworks.

Goal: Enable LLMs to internalize the reasoning patterns of a specified ethical framework and generalize to unseen moral dilemma scenarios.

Key Insight: Apply GRPO with reasoning-level rewards rather than decision-level rewards alone, so that the model learns why a decision is made rather than merely which option to select.

Core Idea: Through reasoning-level reinforcement learning, LLMs internalize ethical frameworks during the reasoning process, enabling generalized moral decision alignment on unseen scenarios.

Method

Overall Architecture

Input: A moral dilemma scenario description. Output: A reasoning chain grounded in a specified ethical framework, followed by a decision. Pipeline: (1) Construct the Moral-Reason-QA dataset (680 scenarios ร— 3 ethical frameworks) โ†’ (2) GRPO fine-tuning of Qwen3-4B-Base โ†’ (3) Out-of-distribution evaluation.

Key Designs

  1. Moral-Reason-QA Dataset Construction:

    • Function: Generate high-ambiguity moral scenarios and corresponding reasoning traces for three ethical frameworks.
    • Mechanism: Among 680 scenarios, 171 high-disagreement scenarios (where the three frameworks diverge) are used for alignment training; each is expanded into 3 training samples with reasoning chains, yielding 2,040 instances in total.
    • Design Motivation: High-ambiguity scenarios present the greatest alignment challenge, ensuring training data quality.
  2. Composite Reward Function:

    • Function: Provide fine-grained feedback at the reasoning level.
    • Mechanism: Alignment reward (+3.0 aligned / โˆ’1.0 misaligned / โˆ’3.0 ambiguous) + keyword reward (capped at 2.0, detecting framework-specific reasoning vocabulary).
    • Design Motivation: The keyword reward guides the model to adopt correct ethical reasoning patterns rather than merely matching the final answer.
  3. GRPO Training Strategy:

    • Function: Group-relative policy optimization without a critic model.
    • Mechanism: 150 training steps, learning rate \(5\times10^{-6}\), trained exclusively on 119 training scenarios (70% of the disagreement scenarios).
    • Design Motivation: GRPO is more lightweight than PPO, making it suitable for rapid alignment on small datasets.

Loss & Training

GRPO group-relative optimization; composite reward = alignment reward + min(keyword reward, 2.0). Training consists of only 150 steps.

Key Experimental Results

Main Results (Out-of-Distribution Moral Alignment Scores)

Ethical Framework Baseline (Qwen3-4B) After Training Gain
Utilitarianism 0.207 0.964 +0.757
Deontology 0.207 0.657 +0.450
Virtue Ethics 0.586 0.586 +0.000

Ablation Study

Configuration Performance Notes
Reasoning-level reward Best Proposed method
Decision-level reward only Inferior Cannot learn reasoning patterns
Utilitarian training curve Monotonically increasing Most stable
Deontological training curve Declines after step 75 Signs of overfitting

Key Findings

  • The base model exhibits an implicit virtue ethics bias (0.586 vs. 0.207 for utilitarianism), which is only revealed through OOD evaluation.
  • Utilitarian alignment achieves the greatest gain (+0.757), followed by deontology (+0.450); virtue ethics shows no improvement because the base model already favors this framework.
  • Deontological training peaks at step 75 and subsequently declines, suggesting the need for more refined training strategies.
  • Only 119 training scenarios are sufficient to achieve strong generalization to 50 unseen scenarios.

Highlights & Insights

  • Distinction between reasoning-level and decision-level rewards: Guiding ethical reasoning within the reasoning process โ€” rather than merely evaluating the final choice โ€” constitutes a form of "process reward" that is transferable to other tasks requiring specific reasoning patterns.
  • OOD evaluation reveals implicit biases: The base model's virtue ethics bias is only detectable through out-of-distribution evaluation.
  • Generalization from minimal training data: 119 scenarios and 150 training steps suffice for strong generalization, suggesting that ethical reasoning patterns are highly transferable.

Limitations & Future Work

  • Validation on a single 4B-scale model only: Alignment behavior may differ in larger models.
  • Failure to align virtue ethics is not analyzed in depth.
  • Binary decision evaluation is overly simplistic โ€” real-world moral dilemmas typically involve continuous degrees of disagreement.
  • Deontological overfitting requires better training strategies (e.g., early stopping, curriculum learning).
  • vs. Constitutional AI: CAI constrains outputs via rules; this work uses RL to learn reasoning patterns.
  • vs. Standard RLHF: Standard RLHF targets "harmlessness"; this work supports alignment to distinct ethical frameworks.
  • Insight: The intrinsic biases of LLMs (e.g., virtue ethics bias) warrant further systematic investigation.

Rating

  • Novelty: โญโญโญโญ Reasoning-level moral alignment represents a meaningful new direction.
  • Experimental Thoroughness: โญโญโญ Limited to a single model scale with constrained ablations.
  • Writing Quality: โญโญโญโญ The framework and results are presented clearly.
  • Value: โญโญโญโญ Provides a practical tool for moral alignment of LLM agents.

Additional Notes

  • The methodology and experimental design of this work offer reference value for related research areas.
  • Future work should validate the generalizability and scalability of the proposed method across more scenarios and larger model scales.
  • Potential research value lies in combining this work with recent related approaches (e.g., intersections with RL/MCTS/multimodal methods).
  • It is advisable to assess the deployment feasibility and computational efficiency of the method in light of practical application requirements.
  • The choice of dataset and evaluation metrics may affect the generalizability of the conclusions; cross-validation on additional benchmarks is recommended.

Additional Notes

  • The methodology and experimental design of this work offer reference value for related research areas.
  • Future work should validate the generalizability and scalability of the proposed method across more scenarios and larger model scales.
  • Potential research value lies in combining this work with recent related approaches (e.g., intersections with RL/MCTS/multimodal methods).