Contextual Moral Value Alignment Through Context-Based Aggregation

Pierre L. Dognin, Jesus Rios, Ronny Luss, Inkit Padhi, Matthew D. Riemer, Miao Liu, Prasanna Sattigeri, Manish Nagireddy, Kush R. Varshney, Djallel BouneffoufarXiv 2024 · DOI

Introduction

Ensuring that Large Language Models (LLMs) align with human values is a critical challenge in AI safety. Traditional alignment techniques often treat "human values" as a static, universal target. However, morality is inherently context-dependent; a decision that prioritizes efficiency might be appropriate in a corporate logistics setting but ethically problematic in a social welfare context. This paper introduces Contextual Moral-Value Alignment (CMVA), a framework designed to allow LLMs to adapt their ethical stances based on specific cultural or situational contexts.

The Problem of Static Alignment

Most current alignment methods struggle with the ambiguity of conflicting values—for instance, the tension between "maximizing profit" and "ensuring customer satisfaction." The authors argue that AI should not merely follow a rigid set of rules but should instead navigate a "Moral Profile"—a weighted combination of values that shifts depending on the user and the environment.

The CMVA-GS Framework

To address this, the researchers developed the Contextual Moral Value Alignment Generative System (CMVA-GS). The architecture decouples moral expertise from contextual synthesis through a two-stage process.

The CMVA-GS architecture: specialized Moral Agents provide inputs to a Contextual Aggregator, which synthesizes a final response based on a user's Moral Profile.

1. Moral Value Agents

The system utilizes five independent LLMs (based on OpenAssistant 12B), each specialized in one of the five moral foundations: care, fairness, loyalty, authority, and sanctity. These agents are trained using Reinforcement Learning from Functional Tokens (RLFT) with Proximal Policy Optimization (PPO). This specialization ensures that each agent becomes an "expert" in its assigned moral domain.

2. Contextual Aggregator (CA)

The Contextual Aggregator acts as the system's central coordinator. It receives the initial input prompt, the responses generated by the specialized agents, and a Moral Profile Vector representing the desired weight of each value. Using Low-Rank Adaptation (LoRA), the aggregator is fine-tuned to synthesize these diverse inputs into a single, contextually appropriate response. This modular approach allows the system to handle various value combinations without retraining the core agents.

Experimental Setup and Datasets

The framework was evaluated using the Moral Integrity Corpus (MIC), derived from the Social Chemistry (SocialChem) dataset. The MIC contains prompt-reply pairs annotated with the five moral foundations. The dataset used for training the aggregator included approximately 91,000 training samples, with 11,400 samples each for validation and testing.

Key Results

The CMVA-GS was benchmarked against several baselines, including the original PT-model (OpenAssistant 12B), Llama-7b, and Llama-13b.

Quantitative Performance

Evaluation using ROUGE metrics demonstrated that CMVA-GS consistently outperformed all baseline models. The system's ability to aggregate specialized moral perspectives resulted in text that more closely matched human-annotated "morally correct" responses.

Comparison of ROUGE scores across different models. CMVA-GS (blue) consistently achieves the highest scores in ROUGE-1, ROUGE-2, ROUGE-L, and ROUGE-Lsum.

Specialization and Prompting Limits

The individual Moral Agents achieved significantly higher alignment with their specific values compared to the base model. For example, the "Authority" agent reached 98.83% alignment, whereas the base model achieved only 91.58%. Furthermore, the results indicated that simply prompting a large model like Llama-13b to "be moral" (the Agg13Llama baseline) was less effective than the specialized CMVA-GS architecture, highlighting the limitations of zero-shot prompting for complex ethical reasoning.

Discussion and Future Work

While CMVA-GS represents a significant step toward flexible AI alignment, several challenges remain:

  • Computational Overhead: Running multiple specialized agents alongside an aggregator increases memory usage and latency, posing hurdles for deployment in resource-constrained environments.
  • Transparency: The decision-making process of the aggregator remains largely a "black box," which may impact user trust.
  • Data Bias: The system's performance is tied to the quality and diversity of the MIC dataset. Future work should focus on expanding the framework to include a broader range of cultural and ethical frameworks.

By treating morality as a multi-objective vector rather than a scalar value, CMVA-GS provides a scalable path toward AI systems that can respect the nuanced and context-dependent nature of human ethics.

Summary updated

BibTeX
@misc{dognin2024contextual,
  author = {Pierre L. Dognin and Jesus Rios and Ronny Luss and Inkit Padhi and Matthew D. Riemer and Miao Liu and Prasanna Sattigeri and Manish Nagireddy and Kush R. Varshney and Djallel Bouneffouf},
  title = {{Contextual Moral Value Alignment Through Context-Based Aggregation}},
  year = {2024},
  eprint = {2403.12805},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.12805},
}
Figure