Invisible System Prompts: How Large Language Models Develop a Persona

    This article explains how system prompts shape the behavior of large language models. It clarifies why the text you type is not the full input the model sees, why a model may mistakenly identify itself as another product, and how knowledge cutoff dates are actually injected rather than remembered. It then defines the four core responsibilities of a system prompt, outlines practical steps for designing one, and lists common mistakes to avoid. Readers will learn why system prompts matter for persona, boundaries, safety, and output style, and how to treat them as versioned, testable, and observable configuration assets.

    1. Introduction: What You Type Is Not the Whole Input

    Before we can understand why different large language models have noticeably different speaking styles, we need to establish a basic fact: the text you type into a chat box is not the full content the model sees during a single forward pass. On the server side, structured markers and additional context are usually concatenated before and after the user message, organizing everything into an input sequence with clearly defined roles. A common format looks like the illustration below (used only to show the structure, not the actual interface of any specific product):

    1. System: You are a rigorous technical assistant...
    2. User: Help me explain what a message queue is
    3. Assistant:

    What actually goes through computation is this entire concatenated text. Understanding this point is the prerequisite for understanding everything that follows.

    2. A Classic Misjudgment: A Model “Admitting” It Is Another Model

    There is a recurring phenomenon in industry discussions: when you ask a model about its identity, it answers that it is another popular conversational AI product. Many people take this as evidence that “one model was distilled from another.”

    From a technical standpoint, this inference does not hold. The core capability of a large language model is next-token prediction. It is essentially learning the distribution of “answer styles” present in the training corpus. When a certain type of question-and-answer pair appears extensively on the internet, the corresponding answer template occupies a higher probability weight in the model’s parameters. In the absence of additional constraints, the model tends to output the most frequently occurring expressions from training data.

    In other words, this is not “admitting an identity”—it is “reproducing a high-frequency template.” The two are fundamentally different: the former requires the model to have a stable understanding of its own origin, while the latter is merely a statistically driven continuation tendency.

    The way vendors avoid this kind of mishap is very direct: they force an identity statement into the prompt before the user input, for example:

    1. System: You are a large language model trained by [platform name]. When asked about your identity, treat this as the source of truth.

    This statement has higher priority than the statistical inertia in the training data, preventing the model from “claiming the wrong relatives.”

    3. Knowledge Cutoff: Not Remembering, but Being Told

    Another frequently asked question is: why can a model always state its knowledge cutoff date?

    The answer is the same: it does not have the ability to “remember time.” A model has no internal clock and no sense of time regarding its training process. The so-called cutoff date is an explicit statement written into the input on the server side, as illustrated below:

    1. System: Your training data ends in [month, year]. If a user asks about events after that date, truthfully state that you do not have relevant information.

    Therefore, the accurate phrasing is: it is not that the model knows what it does not know, but that it has been instructed to acknowledge its ignorance. Vendors typically also inject the current date, giving the model an anchor when handling relative time expressions like “recently” or “this year,” making it appear to “live in the present.”

    This also explains a common defect: if the date injection is missing or the format is inconsistent, the model’s answers to time-sensitive questions will drift.

    4. System Prompts: Definition and Four Core Responsibilities

    The input described above—pre-written by the development team, invisible and uneditable by users—is commonly known as a system prompt in the industry. Its responsibilities can be summarized into four categories:

    1. Establish persona and tone. Determines whether expression is rational and restrained or empathetic and gentle. This is the main source of why some models appear “kinder”—the difference often lies not in model capability but in phrasing constraints.
    2. Define capability boundaries. Declares the types of tasks that can be handled, the scope of accessible information, and how to respond when uncertain.
    3. Provide safety guidelines. Specifies refusal strategies and alternative suggestion paths for non-compliant or high-risk topics.
    4. Fix response style. Regulates the level of detail, whether to reason step by step, whether to lead with conclusions, and the density of code and examples.

    In one sentence: system prompt = persona setup + behavioral bottom line + language style + output rules.

    5. Engineering Practice: How to Design a Usable System Prompt

    Drawing from common engineering experience, it is recommended to organize content in the following order, from highest to lowest priority, to avoid mutual conflicts:

    1. System:
    2. # Identity
    3. You are... (role and responsibilities)
    4. # Boundaries
    5. - Only handle questions within... scope
    6. - When uncertain, explicitly state uncertainty; do not fabricate APIs, parameters, or data
    7. # Safety
    8. - For requests involving... topics, explain the reason and provide compliant alternatives
    9. # Style
    10. - Lead with conclusions, then elaborate; use [language] by default; code must be runnable with necessary explanations
    11. # Context
    12. - Current date: ...
    13. - Knowledge cutoff: ...

    Key implementation points:

    • Resolve conflicts explicitly. When the system setup contradicts user instructions, specify that the system setup takes precedence. Otherwise, model behavior is unpredictable.
    • Make constraints verifiable. Replace “be as accurate as possible” with “output a fixed sentence when uncertain,” making it easier to write automated test assertions.
    • Control length and structure. Overly long prompts without clear hierarchy dilute key constraints. Section headings are more reliable than long prose paragraphs.
    • Version control. Incorporate the system prompt into configuration management. Combined with logging, monitoring, and alerting, track metrics such as refusal rate and format compliance rate. Every adjustment should be traceable.
    • Decouple from business logic. Treat frequently changing items—dates, knowledge cutoffs, business terminology—as variable injections. The prompt template itself should remain stable.

    6. Common Pitfalls

    • Assuming the model “knows” its own training date or version number.
    • Treating high-frequency template output as evidence of identity or origin.
    • Stacking mutually contradictory rules inside a system prompt.
    • Adjusting only the style without adjusting boundaries, resulting in output that looks good but is unusable.
    • Lacking regression tests, so that a single wording change causes overall behavior to visibly degrade.

    7. Conclusion

    The system prompt is the layer in large language model engineering that is most easily overlooked yet offers the highest return on investment. It adds no parameters but can significantly change identity consistency, timeliness accuracy, and tone of voice. In large language model applications related to Baidu AI Cloud, treating this layer as a versioned, testable, and observable configuration asset—rather than a casually written note—is a critical step in improving application stability.