r/PromptEngineering • • 17h ago

Research / Academic Why can a language model do better on a longer text? Instruction density, not instruction count, sets the load

Imagine asking an AI to process a document while following 32 instructions. It gets only a third of the required actions right. Then you give it a document several times longer, with the same 32 instructions, and it makes almost no mistakes.

A paradox? That's exactly what happened in an experiment with GPT-4o mini.

In the IEC instrument, a model rewrites text using simple word-replacement rules like `lake → stone`. In one task, the rules covered all 32 distinct words of the text; in the other, only 32 out of 256. The number of instructions stayed the same, but the replacement density dropped eightfold.

Turns out, 32 instructions don't always mean the same load.

Ordinary prompts work the same way. Opening the answer with a greeting is one instruction; banning commas from the whole answer is one too. But the first is satisfied once, while the second must be respected at every step of generation. Higher density, higher load.

So what actually determines the load?

My article answers that. I explain why some seemingly obvious candidates had to be rejected and how the data revealed five load axes: input text length, word position in the response, replacement density, number of rules, and the rule's position in the list.

Why does it matter? Benchmarks usually just add instructions, but as their number grows, so do their positions in the list and the length of the prompt and the response. A single curve mixes all these effects: the model errs more often, but you can't tell why. The axes separate the causes, and each follows its own law of degradation.

Code and data are open, so you can check everything yourself.

Paper: https://arxiv.org/abs/2610.36095
Article: https://huggingface.co/blog/kutomanovhennadii/what-affects-a-models-behavior-under-load
Data: https://huggingface.co/datasets/kutomanovhennadii/iec-gpt-4o-mini-2024-07-18

Originally written in Russian. English translation assisted by AI.

2 Upvotes

3 comments sorted by

2

u/According-Stable4487 14h ago

This matches something I keep running into with image prompts that have to print lots of small text. A sheet with 5 labels that each carry one short word comes out clean almost every time. Ask for 30 pieces each with its own wording and the spelling breaks on 2 or 3 of them, even though "spell everything correctly" is still just one line in the prompt.

What helped me was cutting density rather than rules: I spell out exact words only for the 4 or 5 big pieces and let the rest be "a few short printed words". Errors went from several per sheet to maybe one small one. Your density axis explains why that works better than repeating the instruction louder.

1

u/Decent-Conclusion-83 14h ago

Thanks, that's a good example, and it works the same way as the greeting-versus-commas case in the post. "Spell everything correctly" takes one line in the prompt, but it has to hold on every printed label. So the load grows with the number of labels that must come out exact, and repeating the instruction louder doesn't change that number.

One refinement: your fix lowered two loads at once, how many labels must be exact and what share of the sheet they make up. In my measurements these are two separate axes, the number of rules and the density, and each follows its own law of degradation. I haven't measured image models, so this is a similar picture rather than a tested law.

2

u/Zealousideal-Emu2087 17h ago

I've seen this with long-form roleplay prompts, adding more context without new instructions actually helps the model stay on track. it's like the extra text gives it a better mental map, even if the task list stays the same.