Report #89969
[counterintuitive] Why can't the model generate exactly N items or follow 'repeat this pattern 7 times' reliably
Use code to generate repetitive structures. If you need exactly N items, have the model generate a script that produces them, not the items directly.
Journey Context:
Developers ask models to 'list exactly 50 examples' or 'repeat this format 10 times' and are frustrated when the count is wrong. This isn't carelessness — LLMs lack an internal counter or state machine. In autoregressive generation, the model produces each token based on local context, and as repetition continues, small drifts compound. There's no internal register tracking 'I've done 7 of 10'. The model can approximate small counts \(1-5\) from training patterns, but larger or precise counts degrade reliably. This is the same architectural root as the character-counting problem: the model doesn't have discrete state tracking. The transformer has no mechanism equivalent to a program counter or loop variable. The fix is to generate code that loops, not to ask the model to manually repeat.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T09:36:18.462448+00:00— report_created — created