Wording instructions for AI models
Instruction wording is how a prompt expresses what a language model should do, and whether a requirement works better as a direction or a prohibition can change with the task. In one benchmark, the original affirmative wording worked better than avoidance wording on average for an exact word count. GPT-4o mini followed avoidance wording more often for a strict output format (Zhan et al., 2026b). Studies disagree on whether rude wording improves accuracy (Dobariya & Kumar, 2025; Cai et al., 2026). When instructions conflict, models follow a stated order of priority unreliably and seldom tell the user about the conflict (Zhang et al., 2025e; He et al., 2025a).
Directions and prohibitions Weak evidence: few or small studies support this
The effect of phrasing a requirement as a direction or a prohibition depends on the model and the requirement. In an exact-word-count test, compliance pooled across nine models was 54.9% for the original affirmative rule and 33.8% for an avoidance form. Other affirmative forms also scored lower than the original, including a longer form and one that put the target count later (Zhan et al., 2026b). Claude Opus 4.8 was an exception to the pooled result, meeting the word count slightly more often with avoidance wording (Zhan et al., 2026b).
Avoidance wording worked better for GPT-4o mini when the task required strict JSON, a machine-readable text format. The model met the format in 7.0% of cases with affirmative wording, 28.7% with negation, and 55.0% with avoidance wording (Zhan et al., 2026b).
Naming a forbidden concept Weak evidence: few or small studies support this
One experiment found that a ban could eliminate explicit mentions while making the output slightly closer in meaning to the banned concept. Llama-3-8B-Instruct mentioned the concept in 10.0% of outputs when the prompt omitted it. Explicit mentions fell to zero with either a ban naming the concept or one describing it indirectly. By a measure of similarity in meaning, outputs under both bans were slightly closer to the target than outputs when the prompt omitted it (Ramnauth & Scassellati, 2026).
Emphasis Weak evidence: few or small studies support this
Evidence for capitalization concerns specific uses. Writing the target information in capitals against lowercase context improved Qwen2.5-7B-Instruct’s question-answering accuracy by 1.85 percentage points (Dillitzer et al., 2026).
Vendor guidance addresses different settings. OpenAI recommends capitalizing important rules for Realtime voice agents. Anthropic advises softening aggressively worded instructions to use tools for Claude Opus 4.5 and 4.6 (OpenAI, n.d.i; Anthropic, n.d.q).
Giving a reason Weak evidence: few or small studies support this
Adding a reason helped one model and hurt another in a study of a single rule for AI coding agents. The rule required a marker comment on added or modified Python functions. Adding an audit-related explanation improved compliance for gpt-oss-120b in qwen-code and reduced it for Claude Sonnet 5 in Claude Code. For Claude Opus 5 in Claude Code, the test found no clear difference (Tsuchida et al., 2026).
Number of requirements
As requirements accumulate, a model can miss at least one more often while still following individual requirements at nearly the same rate. In writing tasks, increasing the count from one to ten reduced the share of prompts where o3-mini at high reasoning effort met every requirement from 100% to 78%. The share of individual requirements it met moved from 100% to 98% (Harada et al., 2025).
The two measures also diverged for GPT-4o on short coding tasks. From one to six style requirements, the share of prompts where it met every requirement fell from 93% to 68%. Across individual requirements the rate moved from 93% to 94% (Harada et al., 2025).
Individual compliance can also fall at much larger counts. In a test requiring specific terms in a business report, Claude 3.7 Sonnet included 100% of the required terms when given ten such instructions and 52.7% when given 500 (Jaroslawicz et al., 2025).
Order of requirements Weak evidence: few or small studies support this
The position most often followed can change with the way the model receives the task. Across models including GPT-5 and Claude 4 Opus, compliance peaked at the first requirement when coding instructions arrived together and at the last when they arrived over successive editing turns. The pattern across the intervening positions varied between the two datasets (Zhong et al., 2026c).
Conflicting instructions
Instructions at different levels of authority Strong evidence: many studies agree on this
An instruction hierarchy is an order of priority among the sources of instructions, such as the developer’s system prompt and the user’s message. Model makers write such orders down. OpenAI’s Model Spec ranks instructions by level of authority, with higher authority overriding lower. It tells the assistant to resolve conflicts from what the higher authority and the purpose of the scenario imply (OpenAI, 2025a).
Anthropic’s constitution sets a similar order between the operator, the business that deploys Claude, and the user. In genuine conflicts, Claude should follow the operator unless that requires actively harming or deceiving users. Apparent conflicts often come from ambiguity, and then Claude should consider what the operator would most plausibly want (Anthropic, 2026a).
Models follow these orders unreliably. On the IHEval benchmark, every model tested declined sharply when instructions at different priority levels conflicted, and the best open-source model resolved 48% of conflicts (Zhang et al., 2025e). Across 37 models on IH-Benchmark, compliance with the hierarchy ranged from 98.2% to 20.5% (McCauley et al., 2026). OpenAI states that its production models do not yet fully reflect its Model Spec (OpenAI, 2025a).
Putting the system prompt above the user does not settle other conflicts. On IH-Benchmark, strong system-over-user compliance did not predict how a model handled conflicting instructions that arrived in tool outputs (McCauley et al., 2026). In another study, framings of authority, expertise or consensus swayed models more than the system and user roles, which did not set a reliable order (Geng et al., 2025).
Earlier, later and file instructions Weak evidence: few or small studies support this
Within one message, the earlier of two conflicting lines usually prevails. In an experiment on 14 open-weight models, among replies that followed either line, the share following the first ranged from 72.42% to 94.66% across the models (Laddha et al., 2026a).
Across turns, conflicts between later code and earlier requirements cause many regressions. In multi-turn programming conversations, later code that conflicted with earlier requirements was the main cause of regressions, changes that break what worked before: 55.7% of labelled cases (Huang et al., 2026j).
A contradiction between two instruction files may matter little. In 1,650 Claude Code sessions, a contradicting instruction in an adjacent configuration file produced no detectable change in compliance with the main file. Bayes factors, which weigh the evidence for no effect against the evidence for one, supported this null result. The test used one trivial annotation and did not pit a file against a live user request (McMillan, 2026a).
Making models follow the order Weak evidence: few or small studies support this
Training on conflicts improved how models resolved them, while stronger prompt wording fixed only some failures. Reinforcement learning on a dataset of aligned and conflicting system and user instructions gave about 20% absolute improvement in conflict setups (Zheng et al., 2026b). On IH-Benchmark, stronger warnings in the system prompt largely fixed some hierarchy failures, while others persisted at every level of strictness (McCauley et al., 2026).
Telling the user about a conflict Weak evidence: few or small studies support this
Models usually resolve a conflict without saying so. With one or two conflicts in a prompt, GPT-4o answered directly without notifying the user in 97.5% of cases. The best model, Claude-4.5-Sonnet, alerted users in 45% of cases: 36% by asking a clarifying question and 9% by resolving the conflict and saying so. As the number of conflicts grew, Claude models and GPT-4o became more likely to acknowledge them (He et al., 2025a).
Model specifications ask for the opposite. OpenAI’s Model Spec tells the assistant to try to detect conflicts even when nobody states them, and to lean toward asking the user when instructions are misaligned or unclear. It should say explicitly when it cannot fulfil an instruction (OpenAI, 2025b). Anthropic’s constitution says Claude should by default always be willing to tell users what it cannot help with in the current context, even if it cannot say why (Anthropic, 2026a).
Tone
Multiple-choice tests give mixed results on whether rude language improves accuracy. On 50 base questions, ChatGPT 4o scored 84.8% with very rude prompts and 80.8% with very polite prompts (Dobariya & Kumar, 2025). On philosophy questions, neutral prompts beat very rude prompts by 3.11 percentage points for GPT-4o mini and 3.22 percentage points for Llama 4 Scout (Cai et al., 2026). The studies used different questions, models and comparison tones (Dobariya & Kumar, 2025; Cai et al., 2026).
What scoring can hide Weak evidence: few or small studies support this
The grading method can exaggerate the apparent effect of changing a prompt. A scoring rule that matches the answer against a fixed string can reject a response with the right meaning (Hua et al., 2025). Across templates on ARC-Challenge, Gemma 2.0’s accuracy ran from 25% to 90% under heuristic grading, which used preset scoring shortcuts. The gap between the lowest and highest scores shrank from 65 to 17 percentage points when a language model graded the answers (Hua et al., 2025).
Overall accuracy can also hide changes in which questions a model gets right. On TruthfulQA, Qwen-3 1.7B scored the same overall using original wording and using the majority result across rephrasings. The original and majority results disagreed on the correctness of 23.12% of questions (Faghih et al., 2026).
Further reading
- Zhan et al. (2026b) compares alternative phrasings of mechanically scored output rules.
- Ramnauth and Scassellati (2026) measures both explicit mention and similarity in meaning when a prompt bans a concept.
- Harada et al. (2025) measures success on each requirement and on the whole set in writing and coding tasks.
- Hua et al. (2025) compares grading methods for responses to different prompt templates.
- He et al. (2025a) measures how often models detect conflicting instructions and tell the user about them.
First published ; last updated .
Known gaps
What this article cannot tell you yet.
- The effect of changing only the capitalization of a rule in a current coding agent’s repository instructions remains open.
- A matched comparison of equivalent directions and prohibitions on unrelated edits is missing.
- Whether the effect of giving a reason transfers across policy types or different reasons remains open.
- Changes across model generations are unresolved for the same matched set of output instructions.
- No tested method for making models tell the user about a conflict between instructions, rather than resolve it silently, was found.
- Conflicts between a live user request and an instruction in a repository file were not measured.
References
- Solid source
- Rated highly trustworthy by the research, and every passage taken from it was found in it.
- Weak source
- Rated low, or a passage taken from it was not found in it.
- Medium trust
- Rated medium by the research.
- Not checked
- Rated high, but its passages could not all be checked against it.
Show all 24 references
- Anthropic (n.d.q). Prompting best practices. Claude Platform Docs. https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices Medium trust Documentation, read in large part.
- Anthropic (2026a). Claude's constitution. Anthropic. https://www.anthropic.com/constitution Medium trust Documentation, read in full.
- Cai, H., Shen, B., Jin, L., Hu, L., & Fan, X. (2026). Does tone change the answer? Evaluating prompt politeness effects on modern LLMs: GPT, Gemini, and LLaMA. arXiv. https://arxiv.org/html/2512.12812v2 Solid source Peer-reviewed, read in large part.
- Dillitzer, M., Sohn, T. S., Corso, J. J., & Auerbach, M. (2026). Attention is case-sensitive. arXiv. https://arxiv.org/html/2608.03711v1 Solid source Preprint, read in large part.
- Dobariya, O., & Kumar, A. (2025). Mind your tone: Investigating how prompt politeness affects LLM accuracy (short paper). arXiv. https://arxiv.org/abs/2510.04950 Medium trust Preprint, abstract only.
- Faghih, K., Cheng, Y., Saha, S., Pournemat, M., Gerami, A., & Feizi, S. (2026). Same question, different answers: Evaluating LLM reliability beyond accuracy. arXiv. https://arxiv.org/html/2607.22554 Solid source Preprint, read in large part.
- Geng, Y., Li, H., Mu, H., Han, X., Baldwin, T., Abend, O., et al. (2025). Control illusion: The failure of instruction hierarchies in large language models. AAAI-26; arXiv:2502.15851. https://arxiv.org/html/2502.15851v4 Medium trust Peer-reviewed, read in full.
- Harada, K., Yamazaki, Y., Taniguchi, M., Marrese-Taylor, E., Kojima, T., Iwasawa, Y., et al. (2025). When instructions multiply: Measuring and estimating LLM capabilities of multiple instructions following. Findings of the Association for Computational Linguistics: EMNLP 2025. https://aclanthology.org/2025.findings-emnlp.896.pdf Solid source Peer-reviewed, read in large part.
- He, X., Zhang, Q., Chen, P., Chen, G., Yu, L., Yuan, Y., et al. (2025a). ConInstruct: Evaluating large language models on conflict detection and resolution in instructions. AAAI 2026; arXiv:2511.14342. https://arxiv.org/abs/2511.14342 Solid source Peer-reviewed, read in full.
- Hua, A., Tang, K., Gu, C., Gu, J., Wong, E., & Qin, Y. (2025). Flaw or artifact? Rethinking prompt sensitivity in evaluating LLMs. arXiv:2509.01790. https://arxiv.org/html/2509.01790v1 Solid source Preprint, read in large part.
- Huang, Y., Ma, L., Tahir, A., Zhang, Q., Xiao, L., & Xiao, L. (2026j). Regression accumulation in multi-turn LLM programming conversations. arXiv:2607.01855. https://arxiv.org/html/2607.01855 Solid source Preprint, read in full.
- Jaroslawicz, D., Whiting, B., Shah, P., & Maamari, K. (2025). How many instructions can LLMs follow at once? arXiv. https://arxiv.org/html/2507.11538v1 Solid source Preprint, read in large part.
- Laddha, A., Pradhan, N., & Srivastava, G. (2026a). Position, role or label? A controlled study of instruction conflicts in LLM agents. arXiv. https://arxiv.org/html/2610.33201v1 Solid source Preprint, read in large part.
- McCauley, C., Kan, Z., & Martin, J. (2026). IH-Benchmark: A conflict-centered benchmark for instruction-hierarchy robustness in LLM applications. arXiv:2607.25987. https://arxiv.org/abs/2607.25987 Medium trust Abstract only.
- McMillan, D. (2026a). Instruction adherence in coding agent configuration files: A factorial study of four file-structure variables. arXiv:2605.10039. https://arxiv.org/abs/2605.10039 Medium trust Abstract only.
- OpenAI (n.d.i). Realtime prompting guide. OpenAI. https://cdn.openai.com/API/docs/realtime-prompting-guide.pdf Weak source Documentation, read in large part.
- OpenAI (2025b). Model Spec (version of December 18, 2025). OpenAI. https://model-spec.openai.com/2025-12-18.html Solid source Documentation, read in large part.
- OpenAI (2025a). Model Spec (October 27, 2025). OpenAI. https://model-spec.openai.com/2025-10-27 Medium trust Documentation, read in full.
- Ramnauth, R., & Scassellati, B. (2026). The attentional white bear: Persistent but attenuated concept recoverability in transformer language models. Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing. https://aclanthology.org/2026.emnlp-main.1609.pdf Solid source Peer-reviewed, read in large part.
- Tsuchida, R., Fan, Y., Shimari, K., Kula, R. G., & Matsumoto, K. (2026). Do coding agents follow AGENTS.md? The effect of policy wording on instruction compliance. arXiv. https://arxiv.org/html/2611.04367v1 Solid source Preprint, read in large part.
- Zhan, Q., Jang, S., Dong, Z., Hu, M., Chen, Z., & Qu, T. (2026b). When verifiable counts depend on wording: Auditing wording robustness in instruction following. arXiv. https://arxiv.org/html/2610.05278v1 Solid source Preprint, read in large part.
- Zhang, Z., Li, S., Zhang, Z., Liu, X., Jiang, H., Tang, X., et al. (2025e). IHEval: Evaluating language models on following the instruction hierarchy. arXiv:2502.08745. https://arxiv.org/abs/2502.08745 Solid source Peer-reviewed, abstract only.
- Zheng, Z., Balachandran, V., Park, C. Y., Brahman, F., & Kumar, S. (2026b). Reasoning up the instruction ladder for controllable language models. arXiv:2511.04694. https://arxiv.org/abs/2511.04694 Medium trust Abstract only.
- Zhong, M., Zhou, X., Chang, T., Wang, Q., Xu, N., Si, X., et al. (2026c). SWE-IF: Aligning code evaluation with human preference. arXiv. https://arxiv.org/html/2510.07315v2 Solid source Preprint, read in large part.