Prompt Leakage

A problem I’ve noticed with even frontier models that I don’t see discussed very often is prompt leakage.

This is the phenomenon where a model will take something in its input or memory and put it where it doesn’t belong in an output.

Some models are more prone to this than others. I’ve seen GPT 5.5 do it a lot, largely because it likes making really cluttered UIs and it needs random detail to clutter it.

But another place it shows up a lot is with Gemini. It loves inserting random memories into outputs and unnecessary instruction leakage into images.

It occurs when a detail from your prompt gets way over-indexed and ends up in the results where it shouldn’t be.

For example:

1. UI Design Over-indexing:

I might be designing some UI for an app and tell the model to use icons instead of text to create a clearer visual layout with less clutter. It will follow the instruction, but then it also adds body text that says, “Clean icon design: we use icons to prevent visual clutter.” It basically takes the correction I gave it and leaks it into a new part of the UI.

2. Gemini Memory Leakage:

With Gemini, it is more of a memory prompt leakage thing. It knows from memory that there is a particular G.K. Chesterton quote I like ( “Determinists do not pretend to be human beings” ) and then it puts that in the footer of every tool it makes for no reason at all.

What prompt leakage describes is the tendency of LLMs to over-index on irrelevant details and put them where they don’t belong.

Prompt leakage example annotated with red pen

I was going through my Gemini image history to find examples to use for this post, and here was a great one. Red pen annotated with GPT Image 2.0

Here’s another example from Gemini, where I told it I was making a humorous image that would compare how Pokemon had to keep adding more and more modifiers to get ever more powerful Pokemon, and how OpenAI’s model naming scheme kept adding random modifiers. It decided to mention that it was a humorous parallel in the middle of the image.

Gemini prompt leakage humorous parallel example

“A Humorous Parallel”

The less I give it, the more it leaks. I wanted a super basic UI that only required a single field, but it felt like it couldn’t make any UI without giving it a big old sidebar and a bunch of random header elements for absolutely no reason. So, it filled it up with random leakage.

Prompt leakage in a basic text-to-speech tool

Extreme leakage shown in a basic text-to-speech tool.

In summary, prompt leakage is the annoying tendency many models have to include irrelevant details from your prompt or surrounding context in outputs where they don’t belong.

Someone really ought to make an eval for this.

Links

They're clicky!

Follow on X →Ironwood →
Adam Holter
Adam Holter

Founder of Ironwood AI. Writing about AI models, agents, and what's actually happening in the space.