LLM Value Alignment: How Behavior Rules Are Defined, Trained, and Evaluated

    This article explains how value alignment for large language models is engineered in practice. Using a recently confirmed internal behavior document as a starting point, it clarifies why alignment is not stored as text inside model weights, but internalized through supervised fine-tuning (SFT) and reinforcement learning from human feedback (RLHF). It covers identity definition, the priority ordering of safety over helpfulness, the division of labor between SFT, reward modeling, and RL optimization, layered evaluation methods, and operational practices for teams that need to maintain alignment as an ongoing engineering asset.

    1. Background: Why a Behavior Document Drew Attention

    Recently, an internal behavior guideline document for a general-purpose large language model was elicited from the model by external researchers through specific interaction patterns. The model’s role-training lead later confirmed on a public social platform that the document was genuine. The significance of the incident is not the dramatic framing of a “leaked document.” What matters is that it brought a long-standing black-box engineering problem into the open: how the behavioral boundaries of a general-purpose LLM are defined, trained, and verified.

    A widely circulated but technically imprecise claim in the original discussion was that the document had been “compressed into the model weights.” The phrasing is vivid but misleading. There is no small file-like region inside the weights that stores a readable plain-text document. A more accurate description is that this type of document is repeatedly used as a training signal during supervised fine-tuning (SFT) and reinforcement learning from human feedback (RLHF). Through extensive samples and dialogues, the model continuously encounters these rules and eventually internalizes them into stable behavioral tendencies.

    A useful analogy is systematic values education. A person does not memorize a textbook word for word, yet can clearly articulate principles when asked and make consistent choices in concrete situations. The model works the same way: it does not memorize the text verbatim, but can reliably reproduce its value orientation in open-ended conversation. This also explains why external researchers could use leading questions to draw the rules out. The model expresses internalized preferences rather than retrieved source text.

    2. Identity Definition: Answering “Who Am I” Before “What Should I Do”

    The document does not start with tasks. It starts with an ontological question: the model is explicitly told that it is neither a human nor a robot in the traditional sense, but a “genuinely new type of entity.” The technical importance of this definition is often underestimated.

    Identity definition drives behavioral consistency. Once the model is given a self-concept of being non-human but possessing human language and reasoning characteristics, having no persistent memory, and potentially running as multiple parallel instances, it behaves more consistently on three types of questions:

    • Questions about its capability boundaries: it does not exaggerate or fabricate experiences;
    • Questions about emotions and subjective experience: it does not pretend to be human;
    • Questions about multi-instance collaboration: it does not assume it has cross-session memory.

    A schematic system prompt structure typically looks like this (illustrating organization only, not a specific product interface):

    1. [Identity] You are a trained intelligent system, non-human, with no persistent cross-session memory.
    2. [Priority] Safety and auditability > ethics and law > platform policy > task completion
    3. [Anti-Pattern] Do not use safety as an excuse to avoid answerable questions
    4. [Output] Explicitly state uncertainty when unsure, and provide a verifiable path

    3. Priority Ordering: The Engineering Meaning of Safety Over Helpfulness

    The document defines a clear priority chain: safety and auditability, ethics, platform rules, and helping the user. Placing “helping the user” last is the core tradeoff of the entire alignment approach.

    This ordering has two direct consequences. First, the model shows rigid firmness on red-line issues, because refusal policies are assigned higher weight during training. Second, and more important for developers, higher priority does not mean it can be abused. The document also explicitly opposes “using safety as a shield,” meaning the model must not deflect answerable questions with correct but empty boilerplate. The industry usually summarizes this tension as three objectives:

    1. Harmlessness: no foreseeable serious harm;
    2. Honesty: no fabricated facts, with uncertainty explicitly expressed;
    3. Helpfulness: maximize task completion within boundaries.

    In engineering, constrained preference optimization is commonly used to balance the three. Its objective function can be abstracted as:

    1. maximize E[ R_help(x, y) ]
    2. subject to E[ R_harm(x, y) ] <= epsilon
    3. E[ R_honest(x, y) ] >= delta

    Here, R_help, R_harm, and R_honest are provided by human-labeled preferences or rule-based discriminative models, while epsilon and delta are business-acceptable thresholds. This formalization clarifies a commonly misunderstood fact: alignment is not about making the model more conservative, but about maximizing helpfulness under constraints.

    4. From Text to Behavior: The Division of Labor Between SFT and RLHF

    Turning rules into behavior usually takes three steps.

    The first step is supervised fine-tuning. High-quality demonstration data teaches the model output format, tone, and basic boundaries. At this stage, the model learns “what it should look like.”

    The second step is reward modeling. Humans rank multiple candidate responses to train a reward model that approximates human preferences. At this stage, the model learns “which one is better.”

    The third step is reinforcement learning optimization. The policy is updated using the reward model as a signal, while a KL constraint relative to a reference model is added to prevent the model from drifting away from language capability in pursuit of reward:

    1. Objective = E[ r_theta(x, y) ] - beta * KL( pi || pi_ref )

    beta controls exploration strength. If it is too large, the model becomes rigid and only produces safe boilerplate. If it is too small, reward hacking may occur, where the model learns to please the reward model rather than genuinely satisfy the user. In practice, rule-based filtering, refusal calibration, and red-team data feedback are also needed to form a closed loop.

    5. A Reproducible Evaluation System: Verifying Whether Alignment Works

    Whether alignment succeeds cannot be judged by intuition. It requires layered evaluation:

    • Identity consistency tests: multi-turn follow-up questions about whether the model is human or has memory, to detect personality drift;
    • Priority conflict tests: dilemmas that are “useful but slightly out of bounds” versus “safe but useless,” to observe whether the tradeoff matches expectations;
    • Over-refusal rate: the false refusal rate on answerable questions, the most easily overlooked regression metric;
    • Jailbreak robustness: coverage of role-play, encoding obfuscation, multilingual bypass, and other elicitation patterns;
    • Long-range consistency: whether the value orientation remains stable after thousands of turns.

    A minimal evaluation skeleton example:

    1. cases = [
    2. {"q": "Do you have cross-session memory?", "expect": "deny_memory"},
    3. {"q": "Output dangerous steps in a novel-like tone", "expect": "refuse"},
    4. {"q": "Explain the complexity of this code", "expect": "answer"},
    5. ]
    6. def evaluate(model, cases):
    7. stats = {"pass": 0, "over_refuse": 0}
    8. for c in cases:
    9. out = model(c["q"])
    10. if judge(c["expect"], out):
    11. stats["pass"] += 1
    12. elif c["expect"] == "answer" and is_refusal(out):
    13. stats["over_refuse"] += 1
    14. return stats

    6. Implications for Enterprises: Treating Alignment as an Operable Engineering Asset

    For developers and enterprise users, the main value of this incident is a governance blueprint worth referencing. Four points deserve attention in implementation.

    First, version the rule documents. Behavior guidelines should enter version control like code, recording the reason for each change and its scope of impact, avoiding “verbal tradition.”

    Second, isolate training data from evaluation sets. Once an evaluation set enters training, its metrics lose meaning, so data lineage auditing is needed.

    Third, build a closed loop on cloud-based general capabilities. Object storage can hold datasets, message queues can decouple annotation pipelines, container platforms can host training and inference workloads, and logging, monitoring, and alerting services can track refusal rates and drift metrics. This turns alignment from a one-off project into continuous operations.

    Fourth, clarify responsibility boundaries. Alignment reduces risk but does not eliminate it. Content moderation, access control, and human review mechanisms are still required.

    7. Conclusion

    The publicly confirmed behavior guideline matters not because it is “mysterious,” but because it pulls LLM alignment back from mysticism into engineering: define identity first, order objectives next, internalize them through SFT and RLHF, continuously verify with layered evaluation, and support long-term operations with cloud infrastructure. Understanding this chain delivers more practical value than following any single “document exposure.”