LLM Instruction-Following Priority and Prompt Optimization Guide
This article explains why negative prompt rules such as “do not use jargon” are often ignored by large language models and presents a practical approach to improving instruction adherence. It covers rule rewriting, banned-term lists with forced replacements, post-generation self-checks, memory layering, positive style guidance, and fallback practices, with a YAML configuration example.
1. Problem Diagnosis: Why “Do Not Use Jargon” Gets Ignored
In LLM applications, rules such as “do not use jargon” or “avoid colloquial expressions” look straightforward, but their constraint strength is often unstable. The issue is not that the model completely fails to understand the rule. Generation itself is a probabilistic selection process: the model tends to prefer high-frequency, fluent expression patterns from its training corpus. A negative prohibition requires the model to first identify a term, then judge whether it violates the rule, and finally suppress that term and find an alternative. This decision chain is long. General rules are also vague and broad; they cover many cases but lack an executable checklist, so they are easily overridden by high-frequency expressions during fast generation.
A more effective way to understand this is that rules in a system prompt have implicit priority. Usually, specific rules take precedence over general rules, positive instructions over negative prohibitions, front-loaded rules over later rules, examples over abstract descriptions, and short verifiable rules over long vague statements. If the prompt only says “avoid technical jargon,” provides no banned list or replacement table, and places the rule at the end, then it is a low-priority general negative prohibition. Occasional failure is not surprising.
The solution is not to repeatedly intensify the tone, but to reduce the model’s decision cost when executing rules: rewrite “do not use” into “banned list + forced replacement + post-generation self-check”; rewrite abstract style requirements into positive examples and scenario rules; front-load key rules; and maintain persistence through memory management.
2. Skill Rule Writing: From Vague Prohibition to Precise Interception and Forced Replacement
2.1 Restructure Prohibition Rules
Prohibition rules should be as precise, absolute, and scannable as possible. Do not write “try to avoid jargon.” Instead, write “In all technical writing scenarios, the following expressions are absolutely prohibited,” and place this at the beginning of the writing rules. The rule should specify scope, banned objects, exception conditions, and priority labels. For example, use P0 for hard constraints and P1 for style preferences. The banned list should not be too long, but it should cover high-frequency problem terms. Each rule should occupy its own line, and nested long sentences should be avoided. Vague words such as “try,” “suggest,” and “appropriately” weaken the constraint; replace them with executable wording such as “must,” “prohibit,” and “always replace.”
2.2 Build a Forced Replacement Table
A banned list alone is not enough, because the model knowing that it cannot use a term does not mean it knows what to use instead. The forced replacement table is the key: provide one-to-one or one-to-many standard written-language mappings for each banned expression, so the model can replace directly instead of reasoning on the fly. For polysemous terms, provide context selection rules. For example, “leverage stakeholders” can be replaced with “coordinate stakeholders,” “close the loop” can be replaced with “complete processing and verify results,” and “align understanding” can be replaced with “unify understanding.” The replacement table should immediately follow the banned list, forming a short “find and replace” path.
2.3 Add Post-Generation Self-Check Rules
Post-generation self-checks should turn inspection actions into short, clear steps: scan the P0 banned terms; check whether the replacement table was applied; check terminology consistency; check whether paragraphs have clear topic sentences; when a violation is found, rewrite the relevant sentence rather than the entire piece. The self-check rules should be placed at the end of the prompt, but they must reference the earlier banned list and replacement table. For higher-requirement scenarios, an external check script can also be added for a second scan, combining model self-check with program validation as a fallback.
3. Memory Management: Increase Rule Priority and Persistence
3.1 Optimize the Memory File Structure
A memory file should not be a pile of rules. It should be layered by priority: global principles, scenario rules, banned list, replacement table, and self-check checklist. Important rules should come first, headings should be short and clear, and rule IDs should be referenceable. Keep P0 hard constraints separate from P1 style preferences to avoid ambiguity when the model encounters conflicts. Each rule should express only one intent, reducing attention dilution.
3.2 Split Long Rules into Short Paragraphs
Long rules are easily ignored as a whole during generation. Split “do not use jargon, stay professional, consider readers, and mind logic” into multiple verifiable rules: use written language; express one judgment per sentence; put the conclusion before the evidence; define terms at first occurrence; set a topic sentence for each paragraph. Short rules are easier for the model to hit one by one during generation.
3.3 Refresh Memory Regularly
Memory needs maintenance. Expired rules, duplicate rules, and conflicting rules reduce overall constraint strength. Periodically delete invalid entries, merge duplicate expressions, version changes, and load key rules first at the start of a session. The number of rules should also be controlled; too many rules dilute attention and can bury P0 constraints.
4. Writing Style Design: From Negative Prohibition to Positive Guidance
4.1 Define the Ideal Writing Style
Rather than saying “do not be colloquial,” define “accurate, concise, logic-first, consistent terminology, appropriate examples, and reader-layered.” A positive description gives the model a clear target instead of relying only on exclusion.
4.2 Provide Positive Examples
Examples are stronger than abstract rules. Provide bad-sentence and good-sentence comparisons: Bad: “Let’s pull this thing together.” Good: “Coordinate with relevant parties to confirm interface boundaries and delivery time.” Examples should cover high-frequency scenarios and annotate the reason for replacement, so the model learns the pattern rather than memorizing a word list.
4.3 Refine Rules for Different Scenarios
Technical proposals emphasize background, goals, solution, risks, and conclusion; troubleshooting emphasizes symptoms, scope, root cause, handling, and verification; interface documentation emphasizes input, output, error codes, and examples; summary reports emphasize conclusion first, data support, and action items. The more specific the scenario rules, the more stably the model can execute them.
5. Additional Fallback Techniques
When rules conflict, explicitly specify that P0 overrides P1. Before generation, ask the model to list the hard constraints it will follow. During generation, self-check paragraph by paragraph. After generation, use a script to scan banned terms. For high-requirement text, reduce randomness and perform multiple correction rounds. The core principles are: hard constraints should be short, front-loaded, and scannable; soft guidance should provide positive examples; key rules should have self-check and external validation as fallbacks.
6. Optimized Configuration Example
# writing_rules.yamlP0_banned_terms:- leverage- align- close the loop- grip point- empowerP0_forced_replacements:leverage: coordinatealign: unify understandingclose the loop: complete processing and verify resultsgrip point: entry pointempower: supportP1_style_rules:- Use written language and express one judgment per sentence- Put conclusions before evidence and set a topic sentence for each paragraph- Define terms at first occurrenceself_check_steps:- Scan the P0 banned-term list- Check whether the replacement table was applied- Check terminology consistency and paragraph topic sentences- Rewrite the relevant sentence when a violation is found
The point of this structure is not to pursue a large number of rules, but to make key rules appear in the right place and in the right form: the banned list is front-loaded, the replacement table follows immediately, style rules are positive, self-check steps are executable, and memory is layered and maintainable. This improves the model’s hit rate on rules and keeps output stable and predictable across different scenarios.
