{"slug": "revision-prompting-improves-industrial-llm-processes", "title": "Revision Prompting: improves industrial LLM processes", "summary": "Revision Prompting, a technique introduced by an unnamed author, improves industrial LLM processes by operating on input and output revisions instead of full re-runs, reducing token costs and ensuring consistency. The method constructs a prompt that includes the original input, output, and a diff of the updated input, prompting the LLM to generate a patch that updates the output. An example shows translating an e-bike product page from English to German, where a battery upgrade from 80 km to 100 km range is handled with a two-line patch instead of a full re-translation.", "body_md": "## The Problem that Revision Prompting solves\n\nWe prompt LLMs in two ways:\n\n- Ad-hoc prompting\n-\nPrompts LLMs manually, with a custom instruction per call.\n## Examples\n\n- Asking a coding agent to implement a new feature.\n- Asking a chatbot to draft an email.\n\n- Industrial prompting\n-\nPrompts LLMs as part of an automated process, with the same instruction across calls.\n## Examples\n\n- Extracting structured information from invoices as part of an accounting pipeline.\n- Translating documentation pages into other languages as part of a release process.\n\nIndustrial prompting typically processes some `Input` data with an `Instruction` to produce some `Output`.\nWhenever the `Input` gets updated, industrial prompting naively re-runs the `Instruction` on the `UpdatedInput` to produce the `UpdatedOutput`.\nThis approach has two downsides:\n\n- Lack of consistency\n- LLMs are non-deterministic, so the\n`UpdatedOutput` differs from the original`Output` beyond what the`UpdatedInput` necessitates. - Full processing time and token costs\n- Although only parts of the input have changed, we produce the\n`UpdatedOutput` in full. This is as expensive as the production of the original`Output`.\n\n*Revision prompting* resolves both downsides of naive re-runs by operating on the input and output **revisions** instead of the full input and output.\n\n## How Revision Prompting works\n\nAssume you have processed some `Input` with an `Instruction` to produce some `Output` by prompting an LLM with\n\n`Instruction`: `Input`\n\nNow, `Input` has been updated, and you also want to process the `UpdatedInput`.\nRevision Prompting processes the `UpdatedInput` by constructing the `RevisionPrompt` as\n\n`Instruction`: `Input` produced `Output`.\n\nThe input got updated as follows: `diff(`\n\n.`Input`, `UpdatedInput`)\n\nPlease produce a patch to update the output.\n\nThe LLM responds to the `RevisionPrompt` with the `OutputPatch` that we apply to the `Output` to obtain the `UpdatedOutput`.\n\n## Example\n\nYou translate the product page of an e-bike to German with the prompt\n\n`The Vela 3 e-bike has a range of 80 km.`\n\nIts battery recharges in three hours.\n\nThe frame is made from recycled aluminium.\n\nEvery Vela 3 includes a two-year warranty.\n\nand the LLM produces\n\n`Das E-Bike Vela 3 hat eine Reichweite von 80 km.`\n\nSein Akku lädt in drei Stunden auf.\n\nDer Rahmen besteht aus recyceltem Aluminium.\n\nJedes Vela 3 hat zwei Jahre Garantie.\n\nLater, a battery upgrade increases the range from 80 km to 100 km. Instead of re-translating the whole page, you prompt\n\n`The Vela 3 e-bike has a range of 80 km.`\n\nIts battery recharges in three hours.\n\nThe frame is made from recycled aluminium.\n\nEvery Vela 3 includes a two-year warranty.\n\nproduced\nOutput`Das E-Bike Vela 3 hat eine Reichweite von 80 km.`\n\nSein Akku lädt in drei Stunden auf.\n\nDer Rahmen besteht aus recyceltem Aluminium.\n\nJedes Vela 3 hat zwei Jahre Garantie.\n\nThe input got updated as follows:\ndiff(Input, UpdatedInput)- The Vela 3 e-bike has a range of 80 km.+ The Vela 3 e-bike has a range of 100 km.\nPlease produce a patch to update the output.\nThe LLM responds with\n\nApplying the `OutputPatch` to the original `Output` produces the updated translation.\n\nThe `OutputPatch` contains only two lines of text instead of a full re-translation. Unchanged content stays consistent with the original translation.\n\n## Why Revision Prompting works\n\n- Consistency\n- By supplying the LLM with the input revision\n`diff(`\n\n, we ensure that the`Input`,` UpdatedInput`)` OutputPatch`is limited to what the input changes necessitate. Everything not touched by the`OutputPatch` remains identical to the original`Output`. Therefore, the` UpdatedOutput`is**consistent** with the original` Output`. - Time & cost savings\n- Revision Prompting feeds the original\n`Output` back in as part of the prompt, so the LLM only generates the short`OutputPatch`. Most tokens thereby move from the output to the input. Since processing time scales roughly with the length of the output, this eliminates most of the processing time. It also converts most of the output token cost into much cheaper input token cost. If the re-run happens within a couple of minutes of the original run, prompt caching reduces part of the input token cost as well.\n\n## Revision Prompting in practice\n\n- Revision Formats\n- The ideal formats for encoding\n`diff(`\n\nand the`Input`,` UpdatedInput`)` OutputPatch`depend on the` Instruction`. The[POSIX](https://pubs.opengroup.org/onlinepubs/9799919799/utilities/diff.html)is a useful generic format. For JSON outputs, the`diff`\n\nutility[JSON Patch](https://jsonpatch.com/)format works well. - Expected Savings\n- The time & cost reduction scales with the size of the input changes and the sensitivity of the output to changes in the input. In our own industrial prompts, Revision Prompting reduces time by ~80%, and costs by ~65%.", "url": "https://wpnews.pro/news/revision-prompting-improves-industrial-llm-processes", "canonical_source": "https://revisionprompting.info/", "published_at": "2026-08-12 11:58:05+00:00", "updated_at": "2026-08-12 12:12:42.141039+00:00", "lang": "en", "topics": ["large-language-models", "artificial-intelligence"], "entities": ["LLM", "Vela 3"], "alternates": {"html": "https://wpnews.pro/news/revision-prompting-improves-industrial-llm-processes", "markdown": "https://wpnews.pro/news/revision-prompting-improves-industrial-llm-processes.md", "text": "https://wpnews.pro/news/revision-prompting-improves-industrial-llm-processes.txt", "jsonld": "https://wpnews.pro/news/revision-prompting-improves-industrial-llm-processes.jsonld"}}