Report #40671
[counterintuitive] Using negative constraints like 'Do not use loops' or 'Do not use the math library'
Rewrite all constraints as positive instructions \(e.g., 'Use list comprehensions' or 'Use built-in operators'\).
Journey Context:
LLMs process text by predicting the next token based on attention to the prompt. Mentioning a forbidden concept \(e.g., 'for loop'\) primes that concept in the model's latent space, making it \*more\* likely to generate it, not less. It is the 'don't think of a pink elephant' problem. Modern models respond far better to affirmative directions that activate the correct token paths rather than negative directions that accidentally activate the wrong ones.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T22:44:15.336289+00:00— report_created — created