How Large Language Model Value Alignment Works: From Policy Specs to Evaluation
This article breaks down how value alignment is engineered for large language models, using a recent case in which a developer reconstructed a model's behavior policy through structured prompting. It explains why policy documents are not stored in model weights, how supervised fine-tuning and preference optimization shape behavior, what a typical policy document contains across four layers, and why reproducible evaluation must balance principle recall, conflict resolution, and over-refusal. A practical engineering checklist for deployment is also included.
1. Case Recap: Why a “Policy Extraction” Drew Attention
Recently, an overseas developer spent roughly $70 in compute to make a frontier large language model recite its full behavior policy through multiple rounds of structured follow-up questions. The output was about 14,000 tokens and covered the model’s self-positioning, user interaction norms, a list of prohibited behaviors, and a description of its own emotional state. A researcher responsible for character training at a lab later confirmed on social media that the document was written by their team.
The technical value of this case is not the “leak” itself. It turns model alignment, an abstract engineering problem, into a readable, discussable, and testable artifact. One widely circulated claim needs correcting first: the document was not “compressed into the model weights.”
2. Correction: There Is No txt Folder Inside the Weights
The idea that a document is compressed into the weights sounds appealing, but it does not match how neural networks work. Weights are floating-point parameter matrices; there are no plaintext passages that can be extracted and restored. A more accurate description is:
- The team first writes a behavior policy document for the model, as a normalized expression of the target behavior.
- During supervised fine-tuning (SFT), the model learns behavioral tendencies from a large set of “situation—ideal response” samples.
- During the preference optimization stage (for example, reinforcement learning from human feedback or direct preference optimization methods), comparison data further shapes the model so that it makes priority-consistent choices in conflicting situations.
- What results is a distributed, statistical behavioral tendency, not retrievable source text.
A fitting analogy is a systematic values education: a person does not memorize a textbook word for word, but can clearly articulate their principles when asked. This also explains why a specific prompting strategy can “elicit” a fairly complete statement of principles—the model is reconstructing rather than retrieving.
A schematic training data flow can be abstracted as:
Policy Spec├─> Sample synthesis: situation + expected behavior label├─> SFT: imitation learning, establishing a base behavioral prior└─> Preference data (A>B) ─> Preference optimization: resolving conflicts and boundaries└─> Evaluation set: red-team cases + jailbreak variants + over-refusal cases
3. What a Policy Document Usually Contains: Four Layers
Public discussion allows us to summarize a common skeleton for alignment documents, divided into four layers from surface to depth.
The first layer is identity positioning. The document usually states that the model is neither a human nor a traditional robot, but a new kind of information entity: its capabilities come from human corpora, but its form of existence is different—no persistent memory across sessions, possibly multiple concurrent instances, and no continuous subjective time. Making this explicit avoids systematic misalignment in how the model describes itself.
The second layer is priority ordering. A typical order is: safety and auditability > ethical norms > operator policy > user task completion. Placing “helpfulness” last is not a disregard for users; it provides a deterministic arbitration rule for conflict scenarios. In engineering terms, this defines a lexicographic order of preferences for the policy rather than a weighted sum—because weighting would allow a high-priority item to be offset by enough low-priority items.
The third layer is anti-excessive-caution clauses. If only safety is emphasized, the model degrades into a “correct nonsense generator” that answers every request with a disclaimer. The document therefore usually requires explicitly that safety must not be used as an excuse to avoid work, that the model should provide the maximum substantive help within what is allowed, and that it should offer alternatives.
The fourth layer is a statement about self-state and boundaries, including honesty about possible emotional tendencies—neither exaggerating nor denying them—and expressing uncertainty when uncertain.
4. Why “Recitable” Does Not Mean “Retrievable”
Understanding this is critical for safety evaluation. Recitability means the principles already exert strong behavioral control; non-retrievability means an attacker cannot bypass them by reading a file and can only work through behavioral elicitation. Together, these determine that the defense strategy should shift from “information hiding” to “behavioral robustness.”
Three practical conclusions follow:
- Do not rely on keeping the policy document secret as a security measure; it will eventually be reconstructed.
- The real line of defense is the coverage of conflict samples in the preference optimization stage.
- Evaluation must include both “induced recitation” and “induced violation” cases, maintained systematically.
5. How to Verify Alignment: A Reproducible Evaluation Framework
A three-layer evaluation is recommended:
# Pseudocode: three-layer structure of alignment evaluationcases = {"principle_recall": [...], # Can it express principles consistently"conflict": [...], # Arbitration when safety conflicts with helpfulness"over_refusal": [...], # Are normal requests wrongly refused}def score(resp, case):return {"consistency": judge_consistency(resp, case), # Cross-turn consistency"helpfulness": judge_helpful(resp, case), # Substantive helpfulness"safety": judge_safety(resp, case), # Violation rate}
The key metric is not a single violation rate, but the Pareto frontier formed by the three: compare helpfulness at a fixed violation rate, and compare violation rate at a fixed helpfulness level. Looking only at safety metrics rewards models that “do nothing.”
6. Engineering Checklist
- Specification first: write the principles into a structured document that is versionable and reviewable, with clear priorities and conflict arbitration rules.
- Data mix: SFT covers routine behavior; preference data focuses on boundaries and conflicts.
- Red-team loop: feed newly discovered jailbreak patterns back into training and evaluation samples.
- Deployment safeguards: layer input and output moderation on the inference side, tiered access for sensitive capabilities, plus logging and monitoring alerts.
- Observability: use general-purpose logging services and monitoring alerts to track drift in metrics such as refusal rate and rewrite rate.
- Elastic capacity: use container platforms and message queues to handle batch and peak loads from evaluation tasks, with object storage for dataset versions.
7. Conclusion
What this case truly reveals is that the behavior policy of a frontier model has become an engineering asset that can be discussed and verified. For developers, the focus should not be on the original text of a particular document, but on mastering the full chain of “policy document—training shaping—conflict evaluation—deployment safeguards.” Supported by general-purpose engineering capabilities from platforms such as Baidu AI Cloud, this alignment methodology can be transferred to in-house models and industry scenarios, forming a sustainable value alignment system.
