AI CompendiumA public chart of the language
Home / Safety & Alignment / Spotlighting
Safety & Alignment

Spotlighting

Marking where each piece of text came from so the model can tell instructions from data.

Definition

A family of techniques that annotate or transform untrusted input — wrapping it in delimiters, tagging its provenance, encoding it in a distinctive way — so the model can distinguish trusted instructions from content it should only treat as data.

The reported result was a large reduction in attack success for a small cost to the underlying task, which is a favourable trade and the reason it is widely adopted as one layer. It is a mitigation, though — it reduces the probability rather than closing the channel.

The reason it belongs in the stack is that it targets the mechanism rather than the payload: it makes provenance visible so the model has information it needs to distinguish instruction from data. That is why it composes with other defences instead of competing with them.

How people use it
Handling retrieved documents.
"Wrap everything from the corpus in explicit data tags. It is not a fix, but it measurably reduces how often it works."
Worked example

Layering it with a content filter

Retrieved text from an untrusted source reaches the model.

Mark it as data, and keep a permission rule on the tools that could act on it. The marking reduces how often an injection lands, and the permission rule bounds what happens when one does — which is the layered posture, and more honest than any single fix.

Sources
Related terms