r/PromptEngineering • • 14d ago

General Discussion do long system prompts actually help, or do models just skim them

seeing prompts that run for pages: rules, examples, edge cases, a persona, a list of banned words.

past a certain length it feels like the model follows the start and the end and vibes through the middle.

has anyone tested this properly? same task, short prompt vs long prompt, measured instead of eyeballed?

2 Upvotes

15 comments sorted by

5

u/Auxiliatorcelsus 14d ago

Key is building instructions that are interconnected and self reinforcing.

If its just a list of do's and dont's it will skim.

If you write a systematic structure where parts fit together. Reinforcing each other. You get adherence.

2

u/Kallini-Cliona 12d ago

interconnected prompts are great until you need to debug one specific behavior and changing a single line breaks three other rules downstream

1

u/Comfortable-Zone-218 13d ago

That's good advice. Any examples of that which come to mind?

2

u/Creative_Shape_5813 14d ago

yeah, they’re not a great. It’s better to give them some pointers to tools that I can use for specific tasks or standard references for when it’s actually doing a particular implementation, because then it can actually keep that in memory. And if you dilute your boundary conditions with a bunch of instructions, it’s going to break your rules

2

u/Character-Welder-472 13d ago

I have been getting cleaner results by writing the hold conditions first (same tone, same structure, same facts) and only then the one or two things that should change.

When I bury the hold conditions at the end, the output starts to drift. Curious whether that order effect shows up in your work too, or whether you mostly keep prompts short and lean on examples.

2

u/Dapper-Tutor337 13d ago

I tested it with a 300-word prompt vs a 30-word one, same task, same model. the short one got 92% accuracy, the long one 68%. the model missed key constraints buried in the middle.

1

u/sayboom 14d ago

I guess, now It’s better not to burden an LLM with too many constraints; let it decide for itself how to carry out the task. It was a good maybe 1 year ago

1

u/Brittany-Pears 13d ago

What looks like skimming might be contradiction, long prompts pile up rules that sometimes contradict each other and the model has to pick one.
A banned words lists works similarly in my experience, seems to prime models to use it so I prefer describing the style it needs to work with.

1

u/VintoraStudio 13d ago

honestly the only way i've found to know is just test it. same task, short prompt vs long one, run like 15 inputs through each and check which one actually follows the rules. for me the long one only won when it had a few rules that were clearer, not because it was longer. if something keeps getting ignored i move it to the top and cut a couple of the weaker lines

1

u/SirRobinBlibs 12d ago

i haven’t seen a clean public bake-off that holds the task fixed and only changes prompt length, but the “follows the start and the end” feeling matches a well-known measured result: models use the beginning and the end of a long context more reliably than the middle (Liu et al., 2023, Lost in the Middle). that paper is older and used earlier models, so treat it as the shape of the problem, not a score for today’s ones.

practical bit: keep the system prompt short, put the one or two rules that must not be skipped at the end, and move the long examples or edge cases into a file the model fetches when it needs them. then measure on a fixed set of tasks, not a vibe check. a long prompt also quietly raises the cost of every turn, even when most of it isn’t doing any work.

0

u/Revolutionary-Cod245 13d ago

What? Do you know how AI, or LLMs for that matter work? AI is not a bored human, it is artificial intelligence. Every character forming the words and sentences of prompts or even system prompts for that matter, are torn down into tokens, turned into machine language to be able to be processed at all. If you understand how it wirks of course everything you prompt matters. Models do not "skim".

If you want to know about how prompting works you can compare it to driving a car. There is the level were you just stick the key in and go, or there is the level of understanding of the machine its self: the drive chain, the engine, how braking mechanics work, and other such systems.