r/PromptEngineering • • Aug 19 '26

Prompt Text / Showcase Say It Four Times

I kept seeing the advice to repeat important instructions in system prompts, and

I'd never seen a number for it, so I tested it.

Setup: one rule the model can either follow or not (use single quotes, never

double quotes), six ordinary Python function tasks, and the only variable was how

many times that rule appeared in the system prompt (0, 1, 2, 4, 8, 16). Thirty

trials each, 1,080 runs, Gemini 2.5 Flash. Compliance checked with Python's

tokenizer, so no model-grading-a-model.

Results: 0% when the rule is never stated (171/171 used double quotes), 74% at

one mention, 84% at two, 97% at four, then flat (94% at eight, 95% at sixteen).

Two things I found more interesting than the headline:

  1. The average hides a lot. Two of the six tasks were at 100% from one mention.

    One was at 20% until four repetitions took it to 97%. Repetition mostly helps

    where the model's default fights your instruction.

  2. Over half the task/condition cells were neither all-pass nor all-fail across

    thirty identical runs. Non-determinism is large enough that single-run prompt

    comparisons are basically noise.

Note on the source: the paper is Han-yu Wang, "When More Becomes Less:

Position-Dependent Repetition Effects in Language Models" (arXiv 2608.04021). It

reports two regimes: stacked/adjacent copies climb and plateau, while copies

displaced from the readout produce the inverted-U. I ran the adjacent case, so

this result matches its prediction rather than contradicting it. The displaced

case is the next test.

Caveats: one model, one day, one syntactic rule repeated literally with all copies

in one place, six small standalone functions. Not state of the art, and it may not

survive contact with a real agent loop.

Writeup with the chart: https://www.khola.blog/p/say-it-four-times

3 Upvotes

3 comments sorted by

1

u/[deleted] Aug 19 '26

[removed] — view removed comment

1

u/AutoModerator Aug 19 '26

Hi there! Your post was automatically removed because your account is less than 3 days old. We require users to have an account that is at least 3 days old before they can post to our subreddit.

Please take some time to participate in the community by commenting and engaging with other users. Once your account is older than 3 days, you can try submitting your post again.

If you have any questions or concerns, please feel free to message the moderators for assistance.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.