arXiv:2609.01361cs.CLSep 2026

Manuscript Offprint

arXiv:2609.01361

Investigating Linear Probe Robustness to Linguistic Register, Medical Specialty, and Corpus Shifts in Medical QA

Nishant Mishra, Ameen Abu-Hanna, Iacer Calixto

Abstract

Linear classifiers trained on hidden states of a large language model (LLM)—linear probes—can flag factual errors from a single forward pass. Geometrically, that implies that true and false statements separate along a stable direction in hidden state space, i.e., the truth direction. Prior work disagrees on whether this generalises across input shifts, but the disagreement is hard to interpret because cross-dataset probe transfer experiments confound several kinds of input change at once. We isolate three such variables in medical question-answering (QA): writing style (register), domain (medical specialty), and corpus (dataset). We build a benchmark using 500 MedQA entries, each rewritten into four styles (textbook, patient, clinical note, colloquial), annotated with clinical specialty, and grouped with two other exam corpora, MedMCQA and MMLU-medical, for cross-dataset evaluation. Probing four open-weight LLMs (2–8B), we find that the truth direction is largely robust to writing style (mean Δregister≈0.10\Delta_{register} \approx 0.10 AUROC on held-out facts) and to medical specialty ( Δspecialty≈0.03\Delta_{specialty} \approx 0.03), but degrades unevenly across corpora: by 0.12 AUROC on MMLU-medical and by 0.21 on MedMCQA, roughly twice the register gap. The register result replicates with a second generator and carries over to human-written patient questions. The truth direction is therefore largely stable within the medical domain but breaks under some corpus shifts, and question format does not explain the break, which suggests that the signal a linear probe recovers is partly bound to dataset structure rather than to medical knowledge alone.

1 Introduction

A medical LLM that confidently generates a medically sound-looking but incorrect dosage, contraindication, or differential diagnosis can cause serious harm. Detecting such errors before they reach a clinician or a patient is the central safety problem of medical NLP, and a growing line of work proposes that linear classifiers reading a frozen model's hidden states (linear probes) can flag factual incorrectness from a single forward pass (Azaria and Mitchell, 2023; Marks and Tegmark, 2024; Bürger et al., 2024). The geometric intuition is that true and false statements live in different regions of the LLM's hidden state space, and the probe learns a hyperplane that separates them; the normal to that hyperplane is what prior work calls the truth direction (Burns et al., 2023; Marks and Tegmark, 2024). Recent work has extended this to medical applications such as clinical knowledge recovery and adverse drug reaction detection (Berkowitz et al., 2025a,b).

For these probes to work in practice, their truth signal should be robust to the changes in input language a deployed system actually sees. A clinical assistant might be queried in formal examination-style prose by a medical student, in lay language on a consumer-health app, in telegraphic shorthand from an electronic health record, or in informal language by general users. These four ways of phrasing the same question are what we call linguistic registers, defined as stylistic configurations of vocabulary and syntax that hold meaning constant while varying surface form (Biber, 1988). LLMs are pretrained on large quantities of formal, textbook-like data (Penedo et al., 2023), and medical QA benchmarks are also mostly written in that register (Jin et al., 2021; Pal et al., 2022; Singhal et al., 2023), which makes textbook the natural register to train a probe on. Whether the signal it learns survives shifts to other registers has not yet been measured in medical LLMs.

Moreover, prior literature disagrees on whether such a signal genuinely exists as a stable geometric property of LLM representations or not. Marks and Tegmark (2024) and Bürger et al. (2024) report probes that recover a truth direction surviving causal interventions. Levinstein and Herrmann (2024) and Haller et al. (2025) show that probes rely on superficial training-data resemblance and break under small surface perturbations, including paraphrasing and negation. Orgad et al. (2025) report that truth probes only generalise across tasks that require similar underlying skills but break across task families. The difficulty here is that these cross-dataset or cross-task evaluations conflate many factors at once: the writing style of the questions, the topics they cover, the way wrong answers were authored, and the dataset's overall difficulty. A negative cross-dataset result could reflect any (or a combination) of these. We argue that until probe transfer is measured along each axis in isolation, this disagreement cannot be resolved.

In this work, we measure how the truth direction generalises under each of three input changes in isolation: writing style (register), domain (medical specialty), and corpus (a different medical QA dataset). To isolate register, we build a controlled-rewriting benchmark with 4,000 variants of 500 MedQA (textbook) questions (Jin et al., 2021), each paraphrased into three registers (patient-facing, clinical-note, colloquial) with both the correct answer and a wrong-answer distractor. To isolate specialty, we use the S-MedQA (Yan et al., 2026) specialty annotations, which map a subset of MedQA questions to 1 of 15 clinical specialties. To isolate corpus, we transfer the probe to MedMCQA (Pal et al., 2022), another medical exam dataset, and to MMLU-medical (Hendrycks et al., 2021) as a third, format-matched corpus. We find that the linear truth direction is robust to medical specialty ( Δspecialty≈0.03\Delta_{specialty} \approx 0.03 AUROC) and largely robust to register ( Δregister≈0.10\Delta_{register} \approx 0.10 AUROC), but degrades unevenly across corpora. Transfer to MMLU-medical decreases AUROC by 0.12, while transfer to MedMCQA by 0.21 ( Δdataset\Delta_{dataset}). We replicate our main finding regarding register with a second generator. We also show that the performance is unchanged when low-fidelity wrong-answer rewrites are filtered out, and carries over to human-written patient questions.

We confirm the signal is dominantly linear since an unregularized difference-of-means probe (Marks and Tegmark, 2024) matches ours, while a nonlinear MLP probe adds no meaningful gain. The probe outperforms basic output-based uncertainty baselines (entropy and self-consistency) by 6–11 AUROC points, and matches a self-evaluation baseline that reads the LLM’s own yes token probability when asked whether the answer is correct (Kadavath et al., 2022). Finally, raw probe scores are severely miscalibrated. Together, our findings indicate that linear probes are a viable within-dataset monitoring tool for medical QA, but not yet a standalone safety check that transfers across corpora. All corpora we use are exam-style multiple-choice QA. Our benchmark, code, prompts, and judging rubric are publicly released. 1^{1}

References (87)