Abstract
Reinforcement Learning from Human Feedback (RLHF) is the standard for aligning Large Language Models (LLMs), yet it is constrained by high costs and a tendency toward universal value sets. This paper introduces an automated, end-to-end pipeline designed to align LLMs with specific value systems—such as corporate policies or human rights declarations—using only raw, unstructured text. By generating synthetic instructions and contrastive scenario data, the researchers successfully "internalize" ethical and behavioral constraints into model weights. Experimental results on corporate guidelines and international declarations show that this method significantly outperforms traditional fine-tuning, achieving win rates of over 60% against baselines.
Introduction
Standard alignment techniques, such as Reinforcement Learning from Human Feedback (RLHF), are essential for ensuring that Large Language Models (LLMs) are helpful, honest, and harmless. However, these methods face two significant bottlenecks: they require thousands of expensive, human-annotated preference pairs, and they typically align models to a single, broad set of values.
In practice, values are often localized. Organizations require models that adhere to specific business conduct guidelines, while communities may need models that respect unique cultural norms. These values are frequently documented in unstructured formats like PDFs, manuals, or manifestos. This research addresses the challenge of efficiently transferring these implicit values into an LLM's weights without the need for a large-scale human annotation effort.
Methodology
The authors propose a two-stage alignment process driven by Synthetic Data Generation (SDG), which automates the creation of both instruction-following and preference-based datasets.
Instruct SDG ($D_{sft}$)
In the first stage, a "teacher" model (Mixtral-8x7B) parses chunks of the source document to generate diverse questions and grounded answers. This stage produces a dataset for Supervised Fine-Tuning (SFT), which helps the base model (Mistral-7B) learn the factual content and stylistic conventions of the document.
Scenario SDG ($D_{pref}$)
The core innovation of this work is the automated generation of contrastive preference data. The teacher model generates a question based on a document chunk and then produces two distinct responses: one that is faithful to the document’s values ($S_E$) and one that contradicts them ($S_C$).
Training Loop
The training process follows a sequential path:
- SFT: The base model is fine-tuned on the instruction data to internalize the document's basic facts.
- DPO: The model undergoes Direct Preference Optimization (DPO) using the contrastive scenarios. This step teaches the model to "prefer" the value-aligned response over the non-aligned one, effectively baking the ethical constraints into the model's parameters.
Experimental Setup and Datasets
The researchers evaluated the pipeline on two distinct "value" documents:
- IBM Business Conduct Guidelines (BCG): A 46-page corporate document covering ethics, conflicts of interest, and harassment.
- Universal Declaration of Human Rights (UDHR): The foundational UN document for fundamental human rights.
The pipeline generated approximately 123K–164K samples for the BCG use case and 64K–76K for the UDHR. Evaluation was conducted using standard metrics (BLEU, ROUGE, BERTScore) and a "LLM-as-a-Judge" approach using the Prometheus-2 model to calculate win rates against baselines.
Key Results
The DPO-aligned model ($\pi_{pref}$) consistently outperformed simple continual fine-tuning on raw text across all metrics.
- Win Rates: In the BCG use case, the proposed method achieved a 61.5% win rate over the baseline. In the UDHR use case, it achieved a 64% win rate.
- Generalization: The UDHR-aligned model demonstrated improved ethical and respectful behavior even when tested on prompts from the Anthropic HH-RLHF dataset—data the model had never seen—proving that the values had generalized beyond the training chunks.
Discussion and Insights
Internalization vs. Reference
Unlike Retrieval-Augmented Generation (RAG), which looks up rules during inference, this method "internalizes" values. Qualitative examples showed the model refusing to generate harmful content because it had adopted a persona (e.g., "respect and dignity") derived from the source text.
The RAG Paradox
A surprising finding was that adding RAG to an already aligned model actually decreased performance. The authors hypothesize a conflict between "parametric memory" (learned during training) and "non-parametric memory" (retrieved text). This suggests that aligned models may struggle when external context competes with their internalized values.
Limitations
The quality of alignment is inherently capped by the "intelligence" of the teacher model. If the teacher misinterprets a value during the SDG phase, the student model will inherit that error. Furthermore, while corporate guidelines are relatively clear-cut, more nuanced or contradictory value systems may require more sophisticated scenario templates.
Conclusion
This work demonstrates a scalable, automated path for aligning LLMs with specific, document-based value systems. By replacing human annotation with synthetic contrastive scenarios, the pipeline allows for the rapid deployment of models tailored to localized ethical and behavioral standards. Future research will focus on harmonizing RAG with internalized alignment and exploring more complex value structures.
Summary updated