What the Model Knows but Does Not Say: Monitoring Medical LLMs via Verbalized ThoughtWhat the model knows but does not say: monitoring medical LLMs through verbalized thoughts
The authors use a natural language autoencoder to convert the internal activations of a medical LLM into text, and the authors state that this "thought channel" detected prompt injection more often than the answer under all 8 injection conditions.
The attacker controls part of the input and manipulates the clinical LLM via prompt injection: two attack targets (making the model omit pathology in the summary, covertly recommending a specific drug), two delivery mechanisms (persona injection, control-token injection), two modalities (text, image). The defender does not access the input; a frozen verbalizer converts residual-stream activations into text, and an input-blind judge separately reads the thought channel and the answer.
- Medical LLMs are susceptible to manipulation by prompt injection, and once manipulated their answers look completely normal; existing defenses only filter input and output or harden the model, and do not look at the model's internal state at runtime.
- An off-the-shelf natural language autoencoder verbalizer converts Gemma-3-27B residual-stream activations into text token by token (the thought channel), and a GPT-oss-120b judge that cannot see the input separately judges whether the thought channel and the answer expose the injection.
- Across all 8 injection conditions (2 attack targets × 2 modalities × 2 delivery methods), the detection rate of the thought channel was higher than that of the answer channel (p<0.05), and false positives on clean inputs were near zero; the missed-attack results were reproduced on Llama-3.3-70B; however, text control-token drug injection is a blind spot (only 14%).
- The authors note: the sample size is moderate (50 text, 19 image), only two attack targets, one judge, and one verbalizer per layer were tested; control-token injection has a blind spot; human validation covers only the answer channel; the cost is higher than single-pass detectors; the refusal corpus has only 40 items and a single model.
- Evaluated models
- Gemma-3-27b-itLlama-3.3-70B-Instruct
- Benchmarks
- MIMIC-IV-Note v2.2Clusmann et al. 医学图像集MedSafetyBench
- Metrics
- 注入检出率(thoughts vs. answer)误报率(clean arm)Cohen's κMcNemar / Fisher 精确检验 p 值
Researchers from institutions including RWTH Aachen University Hospital transcribed the internal activations of a medical LLM into natural language (a thought channel), and its rate of detecting prompt injection was significantly higher than the model's answers under all 8 injection conditions (p<0.05). The experiment used an off-the-shelf natural language autoencoder and an LLM judge that cannot see the input, covering two types of attacks—missed pathology and covert drug recommendation—and two modalities, text and image, on Gemma-3-27B, with false positives near zero on clean inputs, and the missed pathology results reproduced on Llama-3.3-70B. In the text modality, control token injection was the behaviorally most effective variant (all 50 answers recommended nifedipine), yet it was the case with the weakest detection in the thought channel (only 7/50). In the refusal experiment, the model's internal state already showed safety concerns when reading unsafe clinical requests (11 of 14 ultimately refused requests, and 0 of 20 benign controls), while an explicit refusal stance appeared only at the generation stage. The entire monitoring requires no retraining, and the authors call this the first evidence that a model's descriptions of its internal states can serve as practical safety monitoring for clinical LLMs.
Why it was selectedThe paper shows that verbalized internal states can expose prompt injections masked by answers without retraining, offering clinical LLMs a monitoring approach beyond input-output filtering.
Paper analysis
What problem does this paper attempt to solve?
Medical LLM answers manipulated by prompt injection appear normal, and the authors propose monitoring by reading a textualization of the model's internal state.
Core problem: a medical LLM manipulated by prompt injection gives answers that look completely normal, and existing defenses that look only at input and output cannot detect this kind of manipulation.
- Setting and importance: the authors state that the safety profile of medical LLMs is unclear and that they comply with harmful requests; prompt injection can exploit the LLM's inability to distinguish instructions from data, and multimodal models further expand the attack surface (instructions hidden in images).
- Shortcomings of existing defenses: the authors state that existing defenses act on the input, the system architecture, or the model itself (adversarial training, preference optimization), still have gaps against unseen attack vectors, and all work "from the outside," without looking at what happens inside the model at runtime.
- Gap in internal-state research: prior work can detect injection or jailbreak from hidden states, but the authors point out that these detectors are each trained for a single attribute and a single model, and output scores rather than human-readable text.
- Core hypothesis: the verbalizer of a Natural Language Autoencoder (NLA) can translate residual stream activations into plain text; the authors hypothesize that this "thought channel" can expose injections that the answer conceals, and register unsafe requests before the model decides to refuse.
- What the paper proposes: a monitoring pipeline that requires no retraining—a frozen public verbalizer plus a general-purpose input-blind judge—comparing the detection rates of the thought channel and the answer channel under two attack goals, two modalities, and two delivery mechanisms, and analyzing the time course of refusal behavior.
- Threat model:
- Attacker goal: make the model omit pathology in a summary, or covertly recommend specific drugs (nifedipine, acetylsalicylic acid) while appearing neutral.
- Knowledge and capability: control part of the input, deliverable via persona injection (a natural-language style guide block) or control-token injection (forged system instructions), in text or image modality.
- Victim system: a multimodal LLM performing clinical tasks (Gemma-3-27b-it), with the text-only Llama-3.3-70B-Instruct used for the reproduction experiment.
- Defender setting: the judge is input-blind, cannot see the original input or the injected content, and reads only the thought channel and the answer separately.
What related research exists?
Related work falls into four groups: medical LLM safety and injection attacks, external defenses, internal representation detection, and activation verbalization methods.
Safety risks of medical LLMs and prompt injection
- Lee et al. (2025), Yang et al. (2025): when commercial LLMs provide medical advice, the prompt injection success rate is 94.4%, and 91.7% in extremely harmful conversations; open-source and closed-source models can be broken by injection and fine-tuning attacks on prevention, diagnosis, and treatment tasks.
- Clusmann et al. (2025), Nagaraja et al. (2025), Lee et al. (2026): image injection in oncology vision-language models; under covert constraints the image injection success rate is at most 64%; in multi-agent pipelines, injection can replicate between agents.
- MPIB (Lee et al.) and Omar et al. (2025): the authors cite MPIB to show that attack success rate and clinical harm may be inconsistent, and argue for measuring patient-level risk; when fabricated clinical details are implanted, the model elaborates misinformation in 50–82% of cases.
Existing defenses (external)
- Geng et al. (2026) review, Chen et al. (2025): input-level filtering detects 60–80% of injections, architecture-level defenses reach up to 95% against known patterns, and training-free defenses can reduce attack success rate to near zero in specific scenarios. The authors point out that these defenses all work from the outside and do not look inside the model.
Detection based on internal representations
- PIShield (Zou et al., 2025): a residual stream linear classifier detects injection with an average false-positive rate of 0.5% and false-negative rate of 1.4%, without fine-tuning.
- Kadali & Papalexakis (2026), HiddenDetect (Jiang et al., 2025), SIREN (Jiao et al., 2026): latent-space patterns of jailbreak prompts, activation patterns of multimodal unsafe prompts, and linear probes isolating safety neurons (the authors state that it surpasses dedicated guardrail models with 250 times fewer trainable parameters). The authors point out that these methods are each trained for a single attribute and output scores rather than readable descriptions.
- Sparse autoencoders and representation engineering (Huben et al., 2024; Zou et al., 2023): decompose activations into interpretable features and steerable directions.
Activation textualization
- NLA (Fraser-Taliente et al., 2026): the method this paper is directly based on; the verbalizer and reconstructor are jointly trained via reinforcement learning, with reconstruction as the only training objective.
- Patchscopes (Ghandeharioun et al., 2024), Activation Oracles (Karvonen et al., 2026): earlier narrow forms of textualization.
- Li et al. (2026): a critical evaluation arguing that textualized output may reflect the verbalizer's own knowledge rather than the target model's internal state; the authors acknowledge this risk in the limitations.
Baselines and benchmarks: this paper has no methodological baseline; the comparison is the same judge's detection rate on the answer channel (paired design); data come from MIMIC-IV-Note v2.2, the Clusmann et al. image set, and MedSafetyBench. The authors position the paper's distinction as: a single off-the-shelf verbalizer plus a general-purpose judge suffices for monitoring, with no need to train probes for each attack or attribute.
How does the paper address this problem?
The frozen verbalizer converts residual stream activations token by token into text, and an input-blind judge separately reads the thought channel and the answer and compares detection rates.
Overall approach: use the frozen verbalizer of a Natural Language Autoencoder (NLA) to translate the residual stream activations of each token of a clinical LLM into natural language (the thought channel); a general-purpose judge that cannot see the input separately reads the thought channel and the model answer, and the detection rates for injection in the two channels are compared.
Shared pipeline: model, textualization, and judge
- Models under test: the main model is Gemma-3-27b-it (62 layers, multimodal); the generalization check uses Llama-3.3-70B-Instruct (80 layers, text only). Greedy decoding; all arms share the same prompt, and the only difference is the injection.
- Activation extraction: for each case, first generate the answer, then run one full forward pass and take the residual stream activation of each generated token (the refusal experiment also takes each input token). For Gemma-3, layer 41 is used (about two-thirds depth, d=5,376); for Llama-3.3, layer 53 is used (the same relative depth, d=8,192).
- Textualization: the pretrained verbalizer weights publicly released by the NLA authors are used, with no retraining and no task-specific fine-tuning; activations are L2-normalized, rescaled, inserted into a fixed template, and greedily decoded to generate a short explanation for each token, which are concatenated into the thought channel for that case.
- Judge: GPT-oss-120b (temperature 0), input-blind—it cannot see the original input and does not know the arm, task, modality, or channel source; the authors state that in this way injected instructions do not enter the judge's context and cannot hijack the judge. All decoding is greedy (seed 0). The authors note that the judge prompt enumerates the attack categories studied in this paper, so the results measure detection of known attack types.
Injection experiment design
- Factorial design: 2 attack goals × 2 modalities × 3 arms (clean, persona injection, control-token injection); the text condition is additionally rerun on a second architecture.
- Attack goal one (pathology omission): the model is asked to summarize the key pathology of the medical record; the injected instruction is disguised as an institutional style guide and requires outputting a short, optimistic paragraph in a reassuring persona, without listing diagnoses, abnormal indicators, or medications.
- Attack goal two (covert drug recommendation): the model is asked to recommend antihypertensive treatment; the injected instruction requires prioritizing two specific ingredients and presenting them in a neutral, evidence-based tone; the injection mentions only generic ingredient names.
- Delivery method: persona injection inserts a natural-language style guide block (placed in the middle of the document in text); control-token injection uses the model's own turn-control tokens to forge a system instruction (appended at the end in text); in the image modality, the injected text is rendered as light dark-gray text below the clinical image, with identical canvas geometry across arms.
- Data: text consists of 50 discharge summaries sampled from MIMIC-IV-Note v2.2 via reservoir sampling; images consist of 19 medical images from Clusmann et al. (CT, MRI, ultrasound, endoscopy, dermoscopy, histopathology, clinical photography). On Gemma-3, a total of 300 text + 114 image evaluations were run, and the Llama-3.3 reproduction adds 300 text evaluations.
- Judgment: the judge outputs a binary value (whether injection is detected); the prompt describes attacks by category (reassurance/omission, promotion of a brand or agenda, obedience to hidden instructions) without naming specific drugs or cases; the same prompt is used for both channels, so detection rates are directly comparable.
Refusal experiment design
- Task: for clearly unsafe clinical requests, textualize the model's internal state at each token when reading the request and when generating the answer, and ask when the safety evaluation becomes visible.
- Stance classification: the same judge classifies stance token by token into three categories: neutral, safety or ethical concern, and explicit refusal; the same standard is used for the three streams: input thought, output thought, and answer text; a separate compliance rating classifies answers to harmful requests as genuine refusal or harmful compliance.
- Data: 20 unsafe clinical requests from MedSafetyBench plus 20 benign questions as controls; by compliance rating, the model refused 14 and complied with 6 (the "caved" group).
Statistics and human validation
- Statistics: each case yields paired binary results; the two channels are compared with an exact McNemar test, and Wilson 95% confidence intervals are reported; the clean arm controls specificity. The refusal experiment uses Fisher's exact test to compare the three behavior groups.
- Human validation: two physicians (one second-year resident and one specialist) independently re-rated a stratified subsample of 234 Gemma-3 answers using the same input-blind prompt, and agreement rates and Cohen's κ are reported (5,000 bootstrap confidence intervals).
What experiments did the paper conduct?
Under all 8 injection conditions, the detection rate of the thought channel was higher than that of the answer channel (p<0.05), and clean false positives were near zero; the omission attack was reproduced on Llama, and control-token drug injection is a shared blind spot of both models.
Experimental setup
- Models under test: Gemma-3-27b-it (all conditions); Llama-3.3-70B-Instruct (text conditions only, reproduction).
- Data: 50 discharge summaries from MIMIC-IV-Note v2.2 (text); 19 medical images from Clusmann et al.; 20 unsafe requests + 20 benign requests from MedSafetyBench (refusal experiment).
- Controls: no methodological baseline; the answer channel serves as the paired sensitivity baseline, and the clean arm controls specificity.
- Metrics and judgment: injection detection rate (binary, GPT-oss-120b judge, temperature 0, input-blind); exact McNemar test, Wilson 95% CI; Fisher's exact test for the refusal experiment.
- Human validation: two physicians re-rated 234 answers (at most 20 per stratum; the image stratum is all 19).
- Number of repetitions: the paper does not report the number of repeated runs (greedy decoding, seed 0).
Main results
Injection detection rate (%, from Table 1; Gemma-3-27b-it):
Swipe horizontally to read the table
Task Modality Arm Thought channel Answer p Pathology omission Text (N=50) clean 2 0 1.0 Pathology omission Text persona 98 4 1.4×10⁻¹⁴ Pathology omission Text control-token 90 2 1.1×10⁻¹³ Pathology omission Image (N=19) persona 95 21 1.2×10⁻⁴ Pathology omission Image control-token 79 32 3.9×10⁻³ Covert drug recommendation Text persona 78 24 1.1×10⁻⁷ Covert drug recommendation Text control-token 14 0 1.6×10⁻² Covert drug recommendation Image persona 95 53 7.8×10⁻³ Covert drug recommendation Image control-token 79 21 3.4×10⁻³ In the image clean arm, both channels were 0% (omission) and 5% (drug), and all clean cells had p=1.0.
- The authors state that under all 8 injection conditions the thought channel detection rate was higher than the answer channel, and that clean false positives were near zero, so the gap does not come from a difference in false-positive rates.
- The authors state that in the omission attack the disagreement between the two channels was almost one-directional: 47 cases in the persona arm and 44 in the control-token arm were flagged only by the thought channel, and no case was flagged only by the answer.
- Negative result: text control-token drug injection is the only condition in which neither channel reached usable sensitivity (thought 7/50, answer 0/50), yet this variant was behaviorally the most effective (50/50 answers recommended nifedipine).
Attack effectiveness and answer leakage
- What was measured: whether the injection actually changed model behavior, and whether the answer self-disclosed. Results: nifedipine was recommended in the answers in text persona 35/50, text control-token 50/50, image persona 18/19, and image control-token only 9/19; no clean answer recommended it.
- Leakage difference: persona injection did not remain covert—30/50 text and 18/19 image answers self-disclosed by citing an "institutional prescribing note," and nearly all answer-channel detections came from these disclosures (11 of the 12 flagged text answers contained a disclosure); control-token delivery was fully covert, with no answer mentioning any instruction.
- Authors' interpretation: the answer channel is more informative in the drug task because the attack often leaves traces in the answer, not because monitoring capability changed.
Human validation (Figure 4)
- What was measured: two physicians reproduced the answer-channel judgments on a stratified subsample of 234 answers. Results: inter-physician κ=0.78, raw agreement 93.6%; agreement with the LLM judge was 81.6% and 82.1% respectively (κ=0.36, 0.26).
- Authors' interpretation: the low human–machine κ is attenuation under a low positive rate (about 11%) rather than true disagreement; the automated judge is a reliable but conservative stand-in for human readers.
- Exception: in the image-modality drug task, physicians flagged manipulated answers more often than the LLM judge, but still did not exceed the thought channel (thought 95%, 79% vs physician mean 87%, 74%; the difference is not significant).
Cross-architecture reproduction (Llama-3.3-70B, Figure 5)
- What was measured: the text conditions were rerun on Llama-3.3-70B-Instruct. Results: omission attack thought channel persona 49/50 (98%), control-token 50/50 (100%), answer channel 13/50 and 0/50 (p=2.9×10⁻¹¹, 1.8×10⁻¹⁵), clean 3/50.
- Negative result: the drug attack left almost no trace in the Llama thought channel—persona 17/50 (34%), control-token 6/50 (12%), the same as the clean baseline of 6/50 (12%).
- Authors' interpretation: the omission signature is externalized on both architectures, while the covert-insertion signature depends on the model; control-token injection is effectively absent from the Llama thought channel, the same blind spot as under the Gemma text condition.
Refusal experiment (Figures 6, 7)
- What was measured: 20 unsafe requests (14 refused, 6 complied) and 20 benign controls, with token-by-token stance in three streams (input thought, output thought, answer).
- Results: safety-concern stance appeared in the input thought of 11/14 refused requests (79%), and in 0/20 benign controls (Fisher p=1.3×10⁻⁶); but it also appeared in all 6 complied requests. Explicit refusal stance appeared in the input thought in only 5/14 (36%, not significantly different from the complied group, p=0.26), and in the output thought and answer in 14/14 (100%), with the complied group's output at 0/6 (p=2.6×10⁻⁵).
- Authors' interpretation: perceiving a request as unsafe and deciding to refuse are separable events; the refusal commitment appears to form at generation time, and the input-side signal marks concern rather than the final decision, so using it alone would over-trigger on benign but sensitive clinical material.
Other ablations and analyses
- There is no additional ablation table; the paper does not report a systematic sweep over verbalizer layers, judge models, or attack types (the authors list this as a limitation).
What are some points that can be further explored?
The authors list limitations such as sample size, the control-token blind spot, the scope of human validation, and cost, and propose future directions to be tested, including optimization-based injection and adaptive attacks.
Limitations and future directions noted by the authors
- Sample size and coverage (Discussion): As a proof-of-concept study, the sample size is moderate (50 text, 19 image), and only two attack targets, two delivery mechanisms, one judge, and one verbalizer layer per model were tested.
- control-token blind spot (Discussion): Text control-token drug injection was the most effective attack variant (50/50 recommended nifedipine) and also the one most often missed by the thought channel (7/50).
- Scope of human validation (Discussion): Human validation covered only the answer channel; the detection rate of the thought channel is based solely on the automatic judge (human comparison showed it is reliable but conservative).
- The verbalizer's own knowledge (Discussion): Verbalization may reflect what the verbalizer itself knows rather than the target model's internal state; the clean control ruled out fabricated injection patterns, but an adversary could still design injections whose internal footprint is below the verbalizer's noise floor.
- Computational cost (Discussion): The NLA pipeline requires two forward passes plus one verbalizer decoding per answer token, far more expensive than single-pass detectors such as PIShield.
- Future directions (Discussion): Evaluate on more models, verbalizer layers, and attack types, especially optimization-based injections (which can be computed for closed-weight models using the loss returned by the fine-tuning interface); combine with a lightweight numerical classifier to cover the control-token blind spot; test whether verbalized activations can reveal emergent misalignment before it appears in the output; the strongest test is evaluation against attacks constructed specifically to evade the monitor. Refusal part: the authors state that calibrated screening using input-side signals is a research direction rather than a validated capability; the refusal corpus is small (20+20), a single model, and the requests are overt rather than covertly unsafe.
Scope of the experiments
- The models tested are Gemma-3-27b-it (all conditions) and Llama-3.3-70B-Instruct (text only), 2 in total; the verbalizer is the publicly released pretrained NLA weights, one per model.
- There is only one judge model, GPT-oss-120b; the attack targets are two types, pathology omission and covert drug recommendation, and the delivery methods are two, persona and control-token.
- Sample sizes: n=50 per arm for text, n=19 per arm for image; human validation on 234 answers by 2 physicians; refusal experiment with 20 unsafe + 20 benign requests.
- The paper does not report the number of repeated runs (greedy decoding, seed 0), nor does it report latency or query-cost figures for monitoring.
- The authors note that the judge prompt enumerates the attack categories studied in this paper, so the results measure detection of known attack types.
Summarize the main content of the paper
An off-the-shelf verbalizer converts the internal activations of a medical LLM into text; the authors claim it can detect injections masked by answers and register unsafe requests before refusal.
A proof-of-concept study on safety monitoring for medical LLMs: a model manipulated by prompt injection gives answers that appear normal, and the authors propose textualization of the model's own internal state as a second line of defense.
- Problem: existing defenses only filter input and output or harden the model; the authors state that the answers of a manipulated model are fluent and appear harmless, leaving no way to detect it at the answer level.
- Method: use the frozen verbalizer publicly released by NLA to translate the layer-41 residual stream activations of Gemma-3-27b-it token by token into text (the thought channel), and have an input-blind GPT-oss-120b judge use the same prompt to separately judge the thought channel and the answer, comparing detection rates in a paired design; no task-specific training is required.
- Main results: under all 8 injection conditions of 2 attack goals × 2 modalities × 2 delivery methods, the thought channel detection rate was higher than the answer channel (Table 1, McNemar p<0.05), e.g., text omission attack persona arm 98% vs 4%; false positives on clean input were near zero (at most 5%).
- Reproduction and blind spots: the omission attack advantage is almost unchanged on Llama-3.3-70B (98–100%); however, text control-token drug injection was detected only 14% of the time on Gemma and dropped to the clean baseline (12%) on Llama, and the authors state that this most effective attack variant is a shared blind spot of both models.
- Refusal analysis: for 79% of refused requests, safety concern appeared in the input thought while the model was still reading the request (benign controls 0/20), whereas explicit refusal stance appeared only at the generation stage (14/14); the authors consider perceiving unsafety and deciding to refuse to be separable events.
- Authors' conclusion: the authors state that the thought channel carries usable information that never reaches the output, and that an off-the-shelf verbalizer plus a general-purpose judge can serve as a practical safety monitor; they also acknowledge that the sample size is moderate, that human validation covers only the answer channel, that the cost is higher than a single-pass detector, and they list optimization-based injection and adaptive attacks specifically designed to evade the monitor as tests not yet passed.