Joshua Penman

AI researcher

I work on how and what language models learn — what a model actually takes away from the data it is trained on, and how that can be steered.

Research

Semantic Overlays: Mitigating Prompt Injection with Annotations Beyond Tokens and Steering Vectors
Joshua Penman · arXiv:2608.23873 · August 2026

Everything a language model sees is tokens, so untrusted text can be written to read like a trusted instruction — which is what prompt injection exploits. Semantic Overlays are small learned adapters applied to a frozen model’s residual stream at chosen prefill positions, giving the model an out-of-band annotation channel that tokens cannot forge. Marking untrusted spans non-executable moves AlpacaFarm attack success from 99.0% to 0% and SEP separation from 24.3% to 99.0%, while the marked spans stay readable.

Epistemic Goggles: A Pretrained Module that Induces an Epistemic Frame via Gradient Editing
Joshua Penman · arXiv:2607.01690 · July 2026

Finetuning a language model on documents explicitly labeled as fictional still leaves a model that believes them. Goggles is a learned module that intervenes on the finetuning gradient rather than the data, imparting a chosen epistemic frame to whatever the documents teach — raising correct identification of the content as fictional from roughly 9% to 91% while preserving capability.

Elsewhere