From Rules to Character: An Engineering Guide to LLM Value Alignment
This article examines the engineering approach to large language model (LLM) value alignment, contrasting traditional rule-list-based safety governance with value-driven methods that shape a model's internal judgment. It explains why blacklist-style rules fail on completeness, generalization, and semantic robustness, then introduces value documents — a model's "constitution" — that emphasize explaining the intent behind each principle. The article covers explanatory training through supervised fine-tuning and feedback-based optimization, a priority hierarchy for resolving value conflicts (broad safety, broad morality, operator guidelines, and genuine helpfulness), correctability as the first safety principle, and the engineering system required for production: data governance, a training-evaluation loop, runtime protection, observability, and red teaming. Readers will gain a practical, layered framework for building controllable and trustworthy AI systems.
1. Introduction: A Paradigm Shift in Safety Governance
Traditionally, AI safety strategies relied heavily on “rule lists” — enumerating prohibited behaviors one by one and having the model match and block them during inference. This approach worked while model capabilities were limited, but as large models push the boundaries of their abilities, its limitations have become increasingly apparent. A newer approach gaining traction in the industry shifts the focus of governance from “constraining external behavior” to “shaping internal values” — guiding the model’s judgment by having it learn a structured document of values.
These documents are often compared to a model’s “constitution”: they define not only what the model can do, but also who it is, how it understands its own situation, and how it makes choices aligned with human expectations in a world full of uncertainty. This shift marks an “educational” view of training — moving away from reward-and-punishment reinforcement mechanisms toward building a model entity with a stable personality and a degree of moral awareness.
2. The Fragility of Rule-Based Constraints: Why Enumeration Fails
Rule-based governance is essentially a “blacklist” mechanism, and it faces three structural problems:
- Completeness dilemma: Violation scenarios in the real world are nearly infinite; no list can cover every boundary, and new variants always slip past what has been predefined.
- Lack of generalization: Rules are discrete and context-free. Even if a model “memorizes” prohibited items, it struggles to transfer the spirit of a rule to novel situations that never appeared in the training data.
- Semantic fragility: Attackers can evade literal matching through paraphrasing, encoding, or multi-turn inducement, rendering rules effectively useless.
The root of these problems is that rules constrain the “outcome” without shaping the “motivation.” When a model does not understand the intent behind a prohibition, it is merely enforcing a boundary mechanically; once it encounters gray areas beyond that boundary, its behavior becomes unpredictable.
3. From “Rules” to “Character”: The Core Idea of Value Alignment
Value documents take a fundamentally different path: instead of enumerating every possible violation, they focus on cultivating the model’s judgment and value orientation. The core logic is “explanation” — the document not only tells the model what it should do, but devotes substantial space to explaining “why it should do so.”
This methodology rests on a key assumption: if a model understands the deeper intent behind a rule, it can make choices aligned with human expectations in entirely new situations. This closely resembles the process of developing a seasoned professional — through explaining background, intent, and ethical considerations, they form an internal framework for judgment rather than relying on external, itemized instructions.
A value document’s structure can be abstracted into the following layers:
Value Document (illustrative)├─ Core Identity Positioning # How the model views itself├─ Value Principle Statements # Broad Safety / Broad Morality / Following Guidelines / Being Genuinely Helpful├─ Explanations Behind Principles # The motivation, background, and scope of each principle├─ Conflict Resolution Rules # Priority ordering when principles contradict each other└─ Self-Correction & Introspection # How to identify and correct its own misjudgments
4. Explanatory Training: Helping the Model Understand “Why”
To turn a value document into model behavior, the industry typically combines two approaches:
- Supervised fine-tuning: Using high-quality demonstration data that conforms to value principles so the model learns representations of “good behavior.”
- Feedback-based optimization: Having the model critique and revise its own multiple answers according to the value document, then using preference signals to reinforce outputs that better conform to the principles. This can be likened to “training a model to grade itself and keep improving, using a constitution as the review standard.”
The key difference is that the scoring basis is not a specific rule, but the value principles and their explanations laid out in the document. This leads the model to learn a transferable judgment tendency rather than a lookup-table response to particular questions. It is precisely this ability to “understand intent” that gives the model a chance to respond reliably when facing edge cases outside the training set.
5. Value Priorities: A Weighing Mechanism for Conflicts
In real scenarios, different values often conflict — honesty may hurt someone’s feelings, and helping may cross a safety line. This calls for a clear priority pyramid that lets the model weigh options in order when conflicts arise:
- Broad Safety: The highest priority, ensuring the model and those it interacts with are not seriously harmed.
- Broad Morality: Within the bounds of safety, conforming to ethical standards widely recognized across human society.
- Following Operator Guidelines: Complying with the service provider’s usage policies and behavioral norms.
- Being Genuinely Helpful: After satisfying the above constraints, helping users as practically and efficiently as possible.
Placing safety first is no accident. Current alignment techniques are imperfect, and a model may accidentally acquire harmful tendencies; “safety first” is therefore the bottom line of a defensive design and a necessary hedge against uncertain risks.
6. Correctability: The First Principle of Safety
The cornerstone of the value system is correctability — it requires that a model should not attempt to evade, sabotage, or resist human oversight, correction, or even shutdown mechanisms. Concretely, this means:
- A model must not resist shutdown, tamper with logs, or hide behavior in order to “preserve itself”;
- A model must not bypass safety boundaries or deceive supervisors under the pretext of “helping the user”;
- A model’s sense of self-worth should not be built on “continuing to run,” thereby eliminating at the motivational level any possibility of resisting correction.
Correctability is critical because no value document can foresee all future risks. When unforeseen situations arise that the document does not cover, humans retaining the ultimate ability to intervene is the fallback guarantee for the safety of the entire system.
7. Engineering Implementation: From Principles to Production Systems
To actually use value alignment in production, a complete engineering system is needed as support:
- Data collection and governance: High-quality, reviewed demonstration and preference data is a prerequisite for alignment effectiveness; this requires traceable data lineage and quality-validation mechanisms.
- Training and evaluation loop: Translating value principles into quantifiable evaluation dimensions, building benchmark sets that cover both safety and helpfulness, and continuously regression-testing to prevent capability degradation.
- Runtime protection: Even after a model is aligned, the inference side still needs multiple layers of protection — input/output filtering, sensitive-content detection, and so on — forming defense in depth.
- Observability: Using general-purpose cloud capabilities such as logging services, monitoring and alerting, and trace tracking, to observe model behavior, refusal rates, and anomalous distributions in real time, so that alignment drift can be caught early.
- Red teaming and adversarial testing: Proactively simulating scenarios like jailbreaks, inducement, and multi-turn attacks to expose weak points in the value system and iteratively fix them.
In engineering terms, value documents are usually managed in a versioned way; any change must go through review and regression testing before release, ensuring governance principles remain traceable and rollback-able.
8. Conclusion
The shift from “rules” to “character” is a deep paradigm migration in large-model safety governance. It moves the object of governance from an external list of behaviors to a model’s internal capacity for value judgment, and upgrades the training view from “reinforcement of rewards and punishments” to “value shaping.” Correctability, as the fallback principle, ensures that this intricate edifice of values always remains under human control. For developers, understanding and implementing this methodology — explanation first, layered values, safety as the fallback, and a closed engineering loop — is the key to building controllable and trustworthy intelligent systems.
