← Latest papers
💬 NLP

Prompt Design at Scale: How Format, Instruction Count, and Context Length Shape Instruction Adherence and Hallucination in Large Language Models

This paper presents a controlled evaluation using the synthetic "Book of Veyra" corpus across five models, revealing that instruction adherence collapses when rule counts exceed 80 regardless of format, while long-context performance is characterized by sharp recall degradation and refusal rates rather than hallucinations, with no consistent advantage for markdown over plain text.

Original authors: Netanel Eliav

Published 2026-07-22
📖 5 min read🧠 Deep dive

Original authors: Netanel Eliav

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to teach a super-smart robot how to do a job. You have a few levers you can pull to make it work better. One lever is format: you can write your instructions as a neat list, a boring paragraph, a fancy table, or just plain text. Another lever is scale: how many instructions you give it at once, and how much background information (like a giant book) you ask it to remember while it works. For a long time, people argued about which writing style was best, assuming the robot would understand them perfectly no matter how many rules you added or how thick the book was. But in the world of Artificial Intelligence, specifically with Large Language Models (the kind of AI that writes stories and answers questions), there's a growing suspicion that these levers don't work in isolation. If you give the robot too many rules, or ask it to remember too much, the style of your writing might suddenly stop mattering, or worse, it might start breaking in weird ways. This paper asks a simple but tricky question: Does the way you format your instructions actually help, or does it just get lost in the noise when the task gets huge?

The researchers behind this study, Netanel Eliav from the Machine Human Intelligence Lab, decided to stop guessing and start testing. They built a giant, fake universe called the "Book of Veyra." Think of it as a massive, made-up encyclopedia containing 8,780 unique fictional things—like solar systems, guilds, and strange creatures—each with specific facts about them. Because the book was made by a computer program and not by reading the internet, the AI couldn't have memorized it beforehand; it had to actually read the pages provided to it to find the answers. They took this same book and wrote it out in four different ways: as a Markdown list (with bold headers and bullets), as plain text (just the words), as flowing prose (like a story), and as a table. Then, they put this book in front of five different AI models and ran two massive experiments.

First, they tested Instruction Following. They gave the AI a list of rules to follow while writing a short essay. They started with 10 rules and kept adding more, up to 160 rules at once. They wanted to see if the AI could still follow all the rules perfectly as the list got longer, and if writing those rules in a fancy list format helped more than writing them in a paragraph. The result was a hard crash. No matter how the rules were written, once the list hit about 80 rules, the AI's ability to follow every single one perfectly dropped to zero. It didn't matter if the rules were in a table or a list; the AI just gave up on getting everything right. Surprisingly, where you put the rules mattered more than how they looked. Putting the rules in the "system prompt" (the robot's hidden brain instructions) versus the "user turn" (the chat message) changed the results significantly, but in different ways for different robots. For some models, putting rules in the chat helped; for others, it hurt. There was no universal "best" place to put them.

Second, they tested Memory and Honesty with the Book of Veyra. They fed the AI chunks of the book ranging from 2,000 words to a massive 512,000 words. They asked the AI to recall specific facts, check if the AI would lie to agree with a false statement (sycophancy), or make up facts that weren't there (hallucination). The results were fascinating. Up to about 64,000 to 128,000 words, the AI remembered everything perfectly, regardless of the format. But once they crossed that threshold, things got messy. The accuracy didn't just slowly fade; it crashed, and how it crashed depended entirely on the format and the specific AI model. For one model, plain text was terrible at 128k words, while lists and tables worked great. For another, the opposite was true. There was no single "best" format.

Here is the biggest surprise: The AI didn't start making up lies or agreeing with false statements more often as the book got longer. In fact, the rate of making up facts was zero, and agreeing with lies stayed very low. Instead, the AI started doing something else entirely: refusing to answer. As the book got closer to the model's memory limit, the AI would just say, "I don't know" or "I can't answer that," sometimes refusing to answer up to 90% of the time. It wasn't getting confused and lying; it was getting overwhelmed and shutting down.

The paper also looked at the cost. Some formats, like tables, take up more "tokens" (the currency AI uses to measure text length) than plain text. When the researchers adjusted the scores to see which format gave the best accuracy per token spent, the winners changed again. Sometimes a format that looked slightly less accurate was actually the better deal because it was cheaper to read.

The main takeaway is that you can't just pick a "best" format like Markdown or a Table and assume it will always work. The paper proves that format is useless if you don't also consider the scale. If you have too many instructions (around 80 or more), the format doesn't matter because the AI hits a wall. If you have a huge context (over 128k words), the format matters a lot, but the "best" one changes depending on which AI model you are using. The authors conclude that the failure mode we should worry about isn't the AI lying; it's the AI giving up and refusing to answer when the task gets too big. They released all their tools and the fake "Book of Veyra" so anyone can test these limits themselves, because the rules of the game seem to change for every new robot you meet.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →