Problem · 18 studies
Why the LLM ignores your instructions, and what fixes it
Models drop instructions when a prompt holds too many rules, when a requirement sits far from the point where it must be applied, or when a vague directive competes with the task. The best-measured fixes: put the task last, cut unnecessary constraints, remind at the end, and write few, checkable bans.
The symptom: the prompt grows, rules start to drop
A system prompt starts with five rules and works. Over weeks it grows to forty: tone, bans, formats, closing phrases. Then the model begins skipping some of them, usually without saying so. A closing JSON block goes missing, a banned word reappears, the answer runs long, or the model answers a different question than the one you asked.
The failures are not random. In a study of instruction load, overloaded models mostly omitted instructions rather than executing them wrongly, and the omissions came from the end of the list. In a Microsoft study of format requirements, "do something at the end" requirements failed up to 50% of the time on hard tasks, while bans like "don't use commas" held up almost perfectly.
Why it happens
Four mechanisms recur across the papers.
- Arithmetic of many rules. If each rule is followed 98% of the time, the chance of following all 80 at once is close to zero. The breaking-point study saw near-full compliance at 10-40 rules and perfect compliance falling to zero at 80, for all five models and in every format.
- Constraints compete with the task. The constraint-paradox study added constraints taken from the model's own successful answers; 5 of them cut task success by 15-40% while the constraints themselves were met 94%+ of the time. Attention moved from substance to form.
- Distance between the rule and the moment of use. The model weighs nearby text most. A requirement stated at the top fades by the end of a long answer, which is why terminal requirements fail (salience study) and why a task buried mid-context gets lost (task-position study).
- Helpfulness reflexes override limits. The U-curve study found medium-length prompts (~27 words) worst for length limits: enough context to trigger a detailed answer, not enough to signal that the limit matters. 97% of experiments showed the U shape.
Fixes ranked by measured effect
- Put the task last, or repeat it at the end. In the task-position study, moving a question from the end to the middle of a long context dropped some models from 96% to 8%; 76% of mid-position errors were answers copied from neighboring examples. Repeating the task at the end brought all 9 models back to within ±4 points of the best position at 8K tokens.
- Delete constraints the model would meet anyway. Each unnecessary length, keyword or style rule costs task accuracy: Claude-Sonnet-4.5 lost 15% on multi-hop questions and 30-70B models kept only 65-85% of their accuracy (constraint paradox). For agents, a minimal prompt beat a heavily instructed one by 32% on search tasks; "use tools" alone carried 70% of the benefit.
- Tag the requirement at the start and remind at the end. The salience reminder brought compliance from 70–87% back to 90–100%. With five stacked requirements, o4-mini fell from 99% to 47.5%, so a specific reminder beats "follow everything".
- Write bans, not directives. In an ablation of 18 real agent rules on Claude Opus, all helpful rules were prohibitions and all harmful ones were prescriptions; removing "don't touch unrelated code" cost 20 points. Merely having structured rules gave +7–14%.
- Keep a small critical tier. Split rules into a short critical set and send the rest separately (breaking-point study).
- Go short or go full, avoid the middle. Removing "comprehensive" and "helpful" from the system prompt improved length compliance by 598% (71 of 72 tests) in the U-curve study.
- Extract the rules before answering. Asked only to extract requirements from a long spec, models recovered 94.4% of hidden rules (spec contract); listing constraints first keeps them next to the answer (constraint-first reasoning).
- State rules as facts. Rewriting 3 of 11 commands into declarative form ("Emoji: disabled") improved all 11 (declarative register).
- Make manner rules countable. An agent forbidden to praise still praised in half of 17,930 turns, while it kept a length limit (checkable vs manner rules).
A combined prompt stack
- Top: role and goal, then a short critical tier written as bans or
Parameter: statelines with numbers where possible (guardrails, declarative, checkable). - Middle: documents and examples. If a document carries its own rules, run an extraction pass first and paste the numbered list here (spec contract).
- End: the task itself, then a specific reminder:
Make sure to follow ALL the format requirements stated above, naming the terminal ones (task last, salience reminder). - After generation: a separate check against the list, met / not met, then targeted fixes (Re5 draft-check-fix). For mixed inputs, classify first and send only the matching rules (classification-guided prompting).
What does not work, and where the papers disagree
- Reordering as a cure for overload. The constraint paradox tried constraint-first, task-first and "solve first, then format": every variant still dropped. Order helps salience; it does not remove interference.
- Top versus bottom. The primacy study says put the most important instruction first; the tail gets skipped. The task-position study and the salience study say the question and terminal requirements belong at the end. VeriCode found middle instructions followed 5-10% worse than first or last ones, with primacy in a single prompt and recency when rules arrive turn by turn. Read together: rules at the top, task at the bottom, critical rule repeated at the bottom.
- How many rules is too many. The guardrails study saw no drop up to 50 rules in agent task success, the breaking-point study saw full compliance collapse at 80, and the constraint paradox saw 5 constraints hurt accuracy. They measure different things: task success, all-rules compliance, and accuracy under extra constraints.
- Bans are not universal. Bans held for concrete actions, but "don't flatter" failed because nothing can be counted (manner rules).
- "Think step by step" for constraints. It broke constraint adherence on all three models in SR to QR; RID also warns that free reasoning can rationalize blind rule-following.
- Telling the model to ignore old rules. Terms still in context keep pulling the output; rewrite the state document instead (the Pan principle, from 391 sessions).
Fixes ranked by measured effect
| Study | Lab score | Finding | Effect |
|---|---|---|---|
| Where the Task Sits in Your Context: Why an LLM Ignores the Question Unless It Comes LastMay 22, 2026 | 92 | Moving the question from the end to the middle of a long context dropped some models from 96% to 8%; repeating it at the end restored all 9 models to within ±4 points at 8K. | Helps |
| The Constraint Paradox: Why Too Many Requirements Break LLMsJan 29, 2026 | 94 | Adding 5 constraints taken from the model's own successful answers cut task success by 15-40%, while constraints were met 94%+ of the time; reordering did not help. | Helps |
| Salience Reminder: How to Keep a Model from "Forgetting" Format Requirements Under LoadMar 7, 2026 | 93 | An explicit tag at the start plus a reminder at the end raised format compliance from 70–87% to 90–100%; o4-mini fell from 99% to 47.5% with five requirements. | Helps |
| CCI (Cross-Component Interference): the more instructions in your prompt, the worse the resultMay 7, 2026 | 83 | A minimal agent prompt beat a heavily instructed one by 32% on search tasks; 'use tools' alone gave 70% of the full prompt's benefit. | Helps |
| Guardrails Beat Guidance: Negative Constraints in Instructions Work, Positive Directives BackfireApr 13, 2026 | 94 | In 18 real agent rules, all helpful ones were prohibitions and all harmful ones prescriptions; removing one ban cost 20 points, and structured rules alone gave +7–14%. | Helps |
| The U-Curve of Constraint Compliance: Why Medium-Length Prompts Are the Worst OptionDec 2, 2025 | 92 | Medium-length prompts (~27 words) were worst for limits in 97% of experiments; removing 'comprehensive' and 'helpful' triggers improved compliance by 598%. | Helps |
| The LLM Breaking Point: Past ~80 Simultaneous Rules, Models Stop Following Them, Whatever the FormatJul 21, 2026 | 83 | Five models followed 10-40 rules almost fully, but perfect compliance fell to zero at 80 rules in every format. | Mixed |
| PSCI: The Spec Contract — a technique that makes the model learn the document's rules before it answersJul 9, 2026 | 90 | Asked only to extract requirements from a spec, the model recovered 94.4% of hidden rules; generating against that list keeps them active. | Helps |
| Declarative Register: How Swapping Commands for Facts Ends the Turf War Between Instructions in Your PromptsMar 26, 2026 | 80 | Rewriting 3 of 11 imperative rules as declarative state lines improved compliance on all 11. | Helps |
| Checkable Rules vs. Manner Rules: Why an AI Agent Respects a Response-Length Limit but Ignores "Don't Flatter" and "Challenge Gently"Sep 17, 2026 | 80 | An agent told not to praise still praised in half of 17,930 turns, while countable rules like a length limit held. | Mixed |
| VeriCode: Verifiable Instructions for Evaluating LLM-Generated CodeOct 8, 2025 | 90 | Five code-style instructions cut functionality by 6% and were all met only 47% of the time; middle instructions were followed 5-10% worse. | Mixed |
| The primacy effect: LLMs do what comes first, and the rest falls off the endJul 15, 2025 | 92 | Under instruction overload, models skip rather than botch instructions, and the skips come from the end of the list (primacy effect). | Helps |
| SR → QR: Two-Step Constraint Reinforcement via Self-Declaration and Fact RecallJun 4, 2026 | 72 | 'Let's think step by step' broke constraint adherence on all three models; self-declaring the constraint and recalling allowed facts before answering held it. | Mixed |
| Constraint-First Reasoning (CFR): list the requirements first, then solve the problemAug 5, 2026 | 76 | Listing all answer constraints before solving keeps them next to the answer and avoids correct logic with an invalid final answer. | Helps |
| Re5: three-step self-review instead of a monolithic promptJul 8, 2025 | 83 | Draft, checklist self-check, then targeted fixes let weak models meet multi-constraint requirements a single prompt drops. | Helps |
| Classification-Guided Prompting: Figure Out the Task Type First, Then Give a Narrow Prompt Built Just For ItJul 22, 2026 | 77 | One prompt with rules for 16 document types did worse than narrow per-type prompts selected after classification. | Helps |
| The Pan Principle (Semantic Vitality Law): Why Symbol Systems Kill LLM Performance and How to Protect YourselfJun 17, 2026 | 76 | Across 391 sessions, piling up rules and tags degraded task understanding; an explicit goal plus a rewritten state document worked better. | Helps |
| The RID Framework: Getting LLMs Past Blind Rule-FollowingOct 14, 2025 | 90 | A goal-vs-rule schema that classifies hard and soft constraints stops absurd literal compliance. | Helps |
Prompts to copy
Salience reminder (tag + reminder)
IMPORTANT FORMAT REQUIREMENT: {format_requirement}
{main_task}
{additional_instructions_if_needed}
Make sure to follow ALL the format requirements stated above.
From: Salience Reminder: How to Keep a Model from "Forgetting" Format Requirements Under Load
Task last, reminder if it sits in the middle
{context_part_1}
{intermediate_instruction}
{context_part_2}
────────────────────────────────────────
Reminder, your task is: {question_or_instruction}
From: Where the Task Sits in Your Context: Why an LLM Ignores the Question Unless It Comes Last
Prohibitions instead of directives
You are a {role}.
Prohibitions (what not to do):
— Don't {unwanted action 1}
— Don't {unwanted action 2}
— Don't {unwanted action 3}
— Don't {unwanted action 4}
— Don't {unwanted action 5}
{optional: 1-2 lines of context about the project or task}
From: Guardrails Beat Guidance: Negative Constraints in Instructions Work, Positive Directives Backfire
Techniques that help
Questions people ask
Why does ChatGPT ignore some of my instructions?
Usually too many rules at once, a requirement placed far from where it must be applied, or a vague directive competing with the task. One study saw perfect compliance fall to zero at 80 simultaneous rules.
Should important instructions go at the start or the end?
Both, for different things. Studies found rule lists lose their tail, while the question and closing format requirements are kept best when they come last. Put rules at the top, the task at the bottom, and repeat the critical rule at the end.
Are 'don't' rules better than 'do' rules?
For concrete actions, yes in the agent study measured: every helpful rule was a ban. But vague bans like 'don't flatter' failed; rules that can be counted held.
Does a longer, more detailed prompt help?
It depends. Extra constraints the model would meet anyway cost 15-40% of task success in one study. Another found medium-length prompts worst for limits; very short or fully specified ones did better.