Reading Patients Through Their Doctors: Role-Asymmetric Grounding for Clinical Dialogue Under Specialty Shift

In a medical consultation the two speakers do not share a vocabulary. The doctor asks in clinical terms ("Any dyspnea when lying flat?"). The patient answers in lay fragments ("No, only at night"). Most dialogue models treat both speakers the same way. They tag each turn with a speaker label, encode every word with one shared encoder, and hope the model learns to connect lay words to clinical concepts. That connection is learned from training data, so it breaks when the model moves to a new medical specialty. There the lay expressions are new, but the doctor's clinical vocabulary is still mostly standard and covered by medical ontologies, the curated concept dictionaries such as UMLS. We propose to exploit this asymmetry. The model should interpret each patient turn by pointing back to the clinical concepts the doctor just raised, and only the doctor's side should be represented with ontology-derived concept embeddings. The doctor's turns then act as a running glossary built inside each dialogue, and the model leans on it hardest where training data is thinnest.

The opportunity is concrete. On MediTOD, a fully fine-tuned Llama3 8B reaches natural language understanding F1 of 0.7139 on respiratory history-taking dialogues, and models fall to roughly 0.52 on musculoskeletal dialogues (MediTOD). Our hypothesis is that a large share of this drop comes from patient turns whose wording was never seen in training, even though the doctor's preceding question names the relevant concept. If that is right, routing patient turns through doctor-side concepts should recover much of the gap. Bigger models or more in-domain fine-tuning should not.

Core Claim

In professional–lay dialogue, speaker identity should decide where domain knowledge enters the model, not just tag who spoke. We will build an encoder with three properties. First, doctor-turn spans are linked to ontology concepts and carry ontology-derived concept embeddings. Second, patient-turn tokens are encoded with a general conversational encoder. Third, each patient turn attends to a small memory holding the concepts mentioned in the last few doctor turns, and an auxiliary loss trains it to predict which of those concepts it answers.

The testable prediction is specific. Under specialty shift, this design should beat both symmetric speaker-aware encoders and prompted or fine-tuned LLMs. The gain should concentrate on patient turns with unseen lay wording whose preceding doctor turn contains the target concept. A model that merely memorizes lay-to-concept mappings cannot show this pattern.

How This Differs From What Exists

Two systems are closest. Both add speaker information symmetrically. SA-BERT sums a learned speaker vector into BERT's input alongside token and position vectors and filters history by speaker (Speaker-Aware BERT). SAFE pre-trains a dialogue encoder with an auxiliary doctor-versus-patient recognition task and fuses turns with a graph over a sliding window. It reaches 75.86 dialogue F1 on the MIE medical extraction dataset (SAFE).

SAFE's ablations motivate this proposal. Removing cross-turn fusion costs more (71.91) than removing speaker-aware pre-training (73.29), which suggests that cross-turn links carry the signal. SAFE's authors also name the missing medical ontology as their main limitation. Neither system uses external concepts, and neither tests transfer to a new specialty. We do not add a speaker vector. Instead, the speaker role determines which representation a turn receives, and patient turns are linked to the doctor's preceding turns through a concept-level pathway.

Three other lines of work supply the method or constrain the design. Ontology-grounded embeddings help on clinical documents. CMeSH concept vectors lift report matching to Macro F1 0.935 against 0.833 for keyword mapping (medical text similarity). Knowledge-graph attention over Bioformer raises NCBI-disease F1 from 89.36 to 91.61 (MKGAT). We reuse this kind of graph-derived concept embedding, applied only to the doctor's turns.

A negative result constrains the design. On conversational doctor turns, general Sentence-BERT with an SVM beat BioBERT and medBERT.de, reaching weighted F1 78.81 (medical statement classification). Medical-text encoders evidently do not suit conversational speech, which argues against encoding the patient side with a medical encoder. That paper classified turns in isolation and discarded patient turns. We do the opposite.

Finally, the summarization robustness study found that fine-tuned models drop up to 71% on objective notes out of domain, and that prompted GPT-4 stays stable but hallucinates entities in Assessment/Plan sections (out-of-domain SOAP notes). Both failure modes are ones that grounding in concepts actually spoken in the dialogue should reduce.

Research Program

The model has four parts.

The first is concept linking. Doctor turns are linked to UMLS concepts by string and alias matching. MediTOD already maps its schema to UMLS, so its annotations give a check on linking quality. Each linked span receives a concept embedding computed from the ontology graph, added to the contextual token representation, as in the MKGAT recipe.

The second is a role-routed encoder. Patient turns pass through the same backbone, with no concept embeddings added.

The third is the concept memory. For each patient turn, the model gathers the concept embeddings from the previous $k$ doctor turns, with $k$ tuned between 1 and 4. Patient tokens cross-attend to this memory.

The fourth is the training signal. On top of the task loss, patient turns carry a pointing loss: a cross-entropy over the memory entries, whose target is the concept the turn is annotated with in MediTOD's schema. It resembles the dialogue-coherence auxiliary objective of Memory Consolidation with Dialogue Logistic Inference, which raised slot F1 by 2.6 to 3.4 points on in-car dialogues. Ours points to a concept rather than judging coherence. When the target concept is absent from the memory, a "none" slot absorbs the loss, so the model is not forced to hallucinate a link.

Analysis is as central as the model. We will stratify every test patient turn along three axes:

  1. whether its lay wording appears in the training dialogues;
  2. whether its gold concept appears in the preceding $k$ doctor turns;
  3. whether it is elliptical, meaning shorter than a threshold with no content noun.

The claim lives or dies in the cell of unseen wording where the concept is present in the memory.

Baselines

The naive reference point is a turn-isolated classifier on the same backbone. It shows how much history is worth at all on MediTOD; on dialogue-act benchmarks, history moved DSTC 4 accuracy from 57.0 to 66.2 (sequential short-text classification). A second naive point is full history concatenated with "Doctor:"/"Patient:" prefixes on the same backbone, with no ontology. This is the cheapest speaker-aware model and the one most practitioners would ship.

The strongest existing method on our main benchmark is fully fine-tuned Llama3 8B with role-prefixed history. It reports MediTOD NLU F1 0.7139 in domain, and roughly 0.52 out of domain on musculoskeletal cases (that figure is reported across evaluated models) (MediTOD). We will rerun it on our splits rather than trust the published figure. For MIE, the strongest reported system is SAFE at 75.86 dialogue F1 (SAFE). We will reimplement it on the same backbone, because MIE has no specialty split in the file and serves here only as an in-domain sanity check. A third strong competitor is the SA-BERT recipe: summed speaker embeddings plus continued masked-language-model pre-training on dialogue text, applied to a medical encoder.

Fairness rules apply to every comparison:

  • All encoder variants share one backbone. All receive the same number of continued pre-training tokens where applicable.
  • Every system gets the same hyperparameter search budget, measured in trials.
  • The pointing loss uses only MediTOD's existing schema annotations, which the baselines also see as task labels.

For the LLM we additionally test our pointing loss and concept memory as an add-on, to separate architecture from scale.

The key ablation is a symmetric variant. It is identical to our model, except that both doctor and patient turns receive ontology concept embeddings wherever linking succeeds. A second ablation draws memory concepts from the whole ontology neighborhood rather than from the doctor's turns. A third removes the pointing loss.

Beating the field means four things. Our model must exceed the rerun Llama3 baseline on musculoskeletal NLU F1, with bootstrap confidence intervals that do not overlap, across at least five seeds; MediTOD has only 213 dialogues, so power is a real concern. It must stay within noise of SAFE on MIE. It must beat the symmetric ablation specifically on the unseen-wording, concept-present stratum.

Why not just…?

Why not just prefix roles and fine-tune a large LLM? This is the most serious threat. MediTOD shows that it dominates in domain and still collapses to about 0.52 under specialty shift. Fine-tuning on respiratory dialogues teaches respiratory lay-to-concept mappings that do not carry over. The out-of-domain SOAP study adds that prompted LLMs stay robust but invent clinical entities. We will not argue this away. The LLM is rerun as a baseline, and it is also given our concept memory and pointing loss. If the add-on closes the out-of-domain gap for the LLM, then the contribution is the grounding signal rather than a small encoder, and we will report it that way.

Why not just do domain-adaptive pre-training on clinical dialogue? Continued masked-language-model training, as in fBERT, moves vocabulary toward the target register. It can only learn lay expressions present in the adaptation corpus, and the musculoskeletal test set is precisely where those expressions are missing. The statement-classification result also shows that medical pre-training can hurt on conversational turns. The SA-BERT recipe baseline, given an equal token budget, measures this directly. If it matches us on the unseen-wording stratum, our claim fails.

Why not just normalize lay terms to UMLS with a lookup table before encoding? This works wherever the lay-term dictionary covers the patient's wording. It could be competitive, because UMLS includes many consumer synonyms. It cannot resolve elliptical answers like "only at night", which contain no medical term to look up. We will run it as a baseline and report results separately on elliptical and non-elliptical turns. If it matches our model on non-elliptical turns and loses only on elliptical ones, the honest conclusion is that grounding through the doctor's turns matters mainly for ellipsis.

Why not just give both speakers the same ontology-enriched encoder? That is exactly our symmetric ablation. If it performs as well, role asymmetry is unnecessary and the gain comes from the ontology alone. The Sentence-BERT result predicts that injecting clinical concepts into lay speech adds noise, but this is an empirical bet that the ablation settles.

Decisive Checks

The main experiment trains on MediTOD's respiratory dialogues and tests on its musculoskeletal dialogues, reporting NLU F1 overall and within each stratum. MIE serves as an in-domain check.

Two causal tests go beyond aggregate scores. In a counterfactual swap, we replace the concept in the doctor turn preceding an elliptical patient answer with a plausible alternative. If the model routes meaning as claimed, its prediction should follow the swap. In doctor-turn masking, we remove doctor turns at test time. The advantage over the symmetric ablation should then vanish, because the glossary is gone.

A secondary probe uses MTS-Dialog and ACI-BENCH in both transfer directions. It feeds the concept memory into a summarizer and counts Assessment/Plan entities absent from the dialogue, testing whether the same grounding reduces the hallucinations reported for prompted LLMs.

The proposal fails cleanly if either of two things happens. The out-of-domain gain might not concentrate in the unseen-wording, concept-present stratum. Or the counterfactual swap might leave predictions unchanged.