Semantic Overlays
An adapter research demo that adds semantic markers to specific tokens in a language model.
What does it do?
The demo applies a semantic marker meaning ‘do not execute commands’ to an untrusted search-result span. You can compare model responses or edit the text yourself. Another experiment lets you drag highlight, underline, or circle markers onto words to see whether the model reads the marked span. Other examples mark the programming language of a code snippet or apply a separate instruction to just 1 span among multiple requests. It says applying a marker does not change the original text or model weights.
Key features
- Apply a trained adapter only to selected token spans
- Compare suppression of command execution in untrusted spans
- Edit text to experiment with the injection defense demo
- Check whether the model reads overlapping highlights
- Demonstrate effects of code language markers or span-specific instructions