Do Specialized Dialogue Models Stop Reading the Speaker Label?

When a general language model is adapted, in stages, into a compact medical or customer-service chat model, it is trained on hundreds of thousands of transcripts in which a patient almost always speaks first and the doctor always answers. A model can fit such data by learning "odd turns are the patient, even turns are the doctor" and quietly stop attending to who is actually labeled as speaking. We call this role lock-in. We hypothesize that it is a form of forgetting the field has not measured. Existing staged-adaptation pipelines check domain accuracy and sometimes general knowledge, but never whether the model can still tell who said what once a conversation departs from the training template. That happens in real clinics whenever a caregiver joins, the doctor opens, or one party speaks twice in a row.

The proposal has two parts. First, we build an attribution test from existing role-annotated corpora and run it after every stage of a standard adaptation curriculum. This shows whether and when speaker tracking decays. Second, we test a cheap remedy that needs no architecture change. During each specialization stage we add a contrastive term that penalizes the model whenever it finds a target response equally plausible after the history's speaker labels have been permuted. That forces the labels to stay informative. If role lock-in turns out not to occur, that is itself a useful negative result for anyone deploying specialized dialogue models.

Core Claim

Our claim is that sequential specialization on fixed two-role transcripts degrades a compact model's speaker attribution under role perturbations, even when domain metrics improve. We further claim that a speaker-permutation contrastive loss, applied as a retention regularizer inside the curriculum, preserves attribution at no cost to domain performance. It should do so better than replaying general dialogue data with the same number of tokens.

The motivating evidence is indirect. Several papers show staged medical pipelines winning on domain metrics while treating dialogue as flat text. ChatDoctor goes from LLaMA-7B to Alpaca instructions to 100k patient-doctor dialogues. ChiMed-GPT runs continual pretraining, then supervised tuning, then preference alignment. Neither measures whether role tracking survives. Separately, Two-stage LLM Fine-tuning with Less Specialization and More Generalization shows that fine-tuning overfits to output format almost immediately; TriviaQA falls from 17.58% to 0.15% after tuning on RTE. A fixed alternating speaker template is exactly such a format, which is why we expect lock-in.

The remedy borrows its mechanism from Contrastive Speaker-Aware Learning for Multi-party Dialogue Generation with LLMs (SA-LLM). That paper trains a single fine-tuning step with negatives built by swapping speakers in the history, and raises Ubuntu IRC BLEU-1 from 16.8 to 19.5. We use the same kind of negative for a different job, and this is the difference from SA-LLM. SA-LLM uses the contrastive term to improve generation quality in one stage on general multi-party data and never measures forgetting. We use it as an anti-forgetting term across a domain curriculum, and judge it by retention under perturbation rather than by n-gram overlap.

Concretely, for target response $y$ and history $h$, let $\tilde h$ be the history with speaker labels permuted (roles swapped, a turn reassigned, or a third party relabeled). The training loss is

$$\mathcal{L} = \mathcal{L}_{\text{LM}}(y \mid h) + \lambda \max\big(0,\; m - [\log p(y \mid h) - \log p(y \mid \tilde h)]\big),$$

where $\mathcal{L}_{\text{LM}}$ is the usual next-token loss, $\lambda$ weights the auxiliary term, and $m$ is a margin. The term is zero once the true labels make $y$ at least $m$ nats more likely than the permuted ones. A model that ignores labels pays it in full.

Research Program

Measurement first. We construct a speaker-attribution probe from MedDG. MedDG has 17,864 gastroenterology consultations with 217,205 entities annotated on speaker-marked utterances, so attribution questions can be generated automatically. Examples are "Who first mentioned diarrhea?" and "Did the doctor or the patient propose the medication?". Each question is asked on the original dialogue and on three perturbed variants: the doctor opens, two consecutive turns come from one speaker, or a family-member speaker is inserted with relabeled turns. The probe is scored as attribution accuracy, and the gap between original and perturbed variants is the lock-in measure.

The same construction is applied to CSDS customer-service dialogues, which Improving Role-Oriented Dialogue Summarization with Interaction-Aware Contrastive Learning (CIAM) uses for role-specific summaries. Out-of-domain retention of speaker reasoning is measured on two further sets. DREAM is dialogue reading comprehension where many questions hinge on which speaker said or meant something. Multi-User MultiWOZ is multi-user query rewriting, which tests variable speaker counts.

The curriculum. We use compact models in the 1B–3B range, matching the Llama-3.2 scale shown competitive in Enhancing medical coding efficiency through domain-specific fine-tuned large language models. Stage one is general instruction tuning, as in ChatDoctor and TALLRec. Stage two is domain dialogue tuning on MedDG, or on CSDS for the second domain. Stage three is task tuning: entity-conditioned response generation for MedDG and role summarization for CSDS. Every probe is run after the base model and after each stage. This turns the vague "specialization tax" into a curve over stages for one specific ability.

Where the remedy goes. The research file identifies an open question about when speaker signals should enter a curriculum (Gap 1). We answer a narrower and testable version of it. The contrastive term is applied in stage two only, in stage three only, or in both, and we record which placement prevents the attribution drop.

Speaker names, not abstract flags. End-to-end Neural Coreference Resolution Revisited reports that natural-language speaker names work better than abstract flags. We therefore keep names in the text in all conditions. The question is not whether labels should be present, but whether the model keeps using them.

Baselines

The naive reference is a single-stage fine-tune from the base model directly on the task data, with speaker names in the text. It shows what both forgetting and domain gain look like without any curriculum.

The flat staged curriculum is the strongest established recipe for compact domain chat models. It reproduces the ChatDoctor-style pipeline above, with general instructions followed by domain dialogues and no speaker-specific objective. Every other condition shares its data, stage order, step count, and hyperparameter search budget. The only difference is the auxiliary loss, or the data substituted for it.

Matched-token replay is the curriculum with general multi-party and two-party dialogue mixed into stages two and three. We use Ubuntu IRC, plus DREAM training dialogues where licensing permits, and add exactly as many tokens as the contrastive negatives add.

The ProMoT variant applies the format-decoupling method of Two-stage LLM Fine-tuning to the dialogue stages. A soft prompt first absorbs the turn format while the model is frozen; then the weights are tuned.

SA-LLM as published is a single-stage contrastive fine-tune. It separates "contrastive loss" from "contrastive loss as a regularizer inside a curriculum."

An additive speaker-embedding ablation follows Speaker-Aware BERT. SA-BERT adds a learned speaker vector to each token's input embedding, and its ablations show drops when the vector is removed. Our version adds such vectors to the flat curriculum and tests whether architectural speaker signals alone prevent lock-in.

For domain performance, the published reference points are as follows. MedDGBERT's entity-prediction F1 is 29.81% (MedDG). BART-CIAM's CSDS ROUGE-L is 58.20 final, 59.88 user, and 52.69 agent (CIAM). On DREAM the best reported ensemble reaches 59.5% accuracy against 95.5% for humans (DREAM). For Multi-User MultiWOZ rewriting, BART-Large scores ROUGE-1 56.0 (Multi-User MultiWOZ). For our perturbed-attribution probe there is no reported result on Lacuna, so the flat curriculum's own score serves as the bar.

What counts as beating the baselines: the regularized curriculum should reduce the original-minus-perturbed attribution gap relative to both the flat curriculum and matched replay. That reduction must be statistically separable across three seeds. At the same time, MedDG entity F1 and CSDS ROUGE-L must stay within noise of the flat curriculum.

Why not just…?

Why not just prompt a frontier model with role instructions? Prior work shows frontier prompting underperforms specialized models on these exact role-asymmetric tasks. ChiMed-GPT reports MC dialogue ROUGE-L of 42.16 against GPT-4's 17.14, and CIAM reports that GPT-4 drifts across role boundaries and adds filler in role summaries. We still run a frontier model on our attribution probes as an upper reference. If it is near-perfect under perturbation, that strengthens the case that lock-in comes from specialization rather than from task difficulty.

Why not just replay general dialogue data during specialization? This is the most serious threat. Replay is the standard cure for forgetting and might fully restore attribution. The matched-token replay baseline exists to settle this. If replay closes the perturbation gap as well as the contrastive term does, we will report replay as the recommended practice. In that case our contribution narrows to the diagnostic and the stage-by-stage analysis. Our prior that the contrastive term will win rests on one point: replay data still mostly follows fixed alternation, so it does not directly penalize ignoring labels.

Why not just add speaker embeddings, as SA-BERT does? Embeddings make speaker information available, but nothing forces the model to use it once position alone predicts the role. The embedding ablation tests exactly this. If embeddings alone prevent lock-in, the architectural route wins, and we say so.

Why not just use ProMoT to absorb the format? ProMoT protects capabilities outside the task format. Role lock-in, though, may live inside the format, as a shortcut the model learns for the task itself. Running ProMoT as a baseline tells us which of these is happening.

Proposed Experiments and Decisive Checks

The first decisive check is existence. After the domain stage of the flat curriculum, does perturbed attribution accuracy on MedDG and CSDS fall relative to the post-instruction-tuning checkpoint? Original-order accuracy should stay flat or rise while this happens. If no such divergence appears at either model size, we publish the probe and the negative result and stop there.

The second check is the remedy. The contrastive regularizer should shrink the gap more than replay, ProMoT, or speaker embeddings. It should also leave MedDG entity F1 near the 29.81% reference or above it, and CSDS ROUGE-L near 58.20. The placement study should show whether applying it in stage two alone suffices.

The third check asks whether attribution matters for generation, beyond probes. On perturbed MedDG dialogues with an inserted caregiver, we will generate the doctor's next turn and have blinded annotators judge whether it addresses the correct party. This matters because MedDG documents that automatic metrics and human judgments diverge in clinical dialogue.

Finally, DREAM and Multi-User MultiWOZ scores at each stage show whether attribution protection inside the domain transfers to general speaker reasoning outside it.