Abstract
MTDiag is a novel framework that reimagines automatic medical diagnosis not as a complex reinforcement learning problem, but as a streamlined multi-task, multi-label classification challenge. By decomposing dialogues into independent classification samples and using contrastive learning to link symptoms to diseases, it achieves state-of-the-art accuracy across major benchmarks and is already deployed in real-world online medical consultation systems.
Introduction
Building an "AI doctor" capable of conducting multi-turn dialogues with patients is a significant challenge in healthcare AI. Traditionally, this has been framed as a Reinforcement Learning (RL) problem, where an agent learns through trial and error which symptoms to ask about to reach a final diagnosis.
However, RL-based systems face three major hurdles: training instability due to sensitive reward design, extreme data scarcity in the medical domain, and order bias. Order bias occurs when models treat symptoms like a sequence of words; in reality, the order in which a patient mentions symptoms does not change the underlying disease, and forcing a specific sequence can confuse the model.
Methodology
MTDiag addresses these issues by treating symptom checking as a multi-label classification task rather than a sequential decision process.
Dialogue Decomposition
To overcome data scarcity, MTDiag employs dialogue decomposition. A single medical dialogue containing $k$ implicit symptoms is broken down into multiple independent training samples. By training on various subsets of known symptoms to predict the remaining ones, the framework effectively multiplies the available training data, allowing the model to learn more robustly from limited records.
The MTDiag Architecture
The model utilizes a shared Transformer encoder to process known symptoms and their status (True/False). The encoded representations are then passed to two specialized heads:
- Symptom Prediction Head: Employs attentional pooling to identify the most probable next symptom to inquire about.
- Disease Representation Head: Uses Supervised Contrastive Learning to ensure that symptom combinations belonging to the same disease are clustered together in the model's latent space, while those from different diseases are pushed apart. This is supported by a "dynamic queue" that stores representations of previous samples to provide a rich pool of negative examples.
Inference with a Stop Threshold
During a live consultation, the model suggests the symptom with the highest probability. It continues asking questions until the probability of all remaining symptoms falls below a certain threshold ($\delta$), at which point it makes the final diagnosis.
Evaluation and Key Results
The researchers evaluated MTDiag on four diverse datasets: MDD (real-world hospital data), MZ (pediatric care), DXY (online healthcare community), and SymCat (large-scale synthetic data).
MTDiag outperformed all previous baselines, including complex RL models and recent sequence-generation frameworks like Diaformer:
- Accuracy Boost: It achieved a 1.7% to 3.1% improvement in diagnostic accuracy over the previous state-of-the-art.
- Efficiency: In datasets like MDD and DXY, it reached these higher accuracies while requiring fewer turns of inquiry on average.
- Real-world Impact: The system is currently deployed in an online medical consultant system, assisting doctors by pre-screening symptoms.
Insights and Future Work
A core insight of MTDiag is that symptoms are sets, not sequences. By moving away from auto-regressive generation, the model respects the unordered nature of medical symptoms. Furthermore, using disease prediction as an auxiliary task mimics how human doctors use a "hunch" to guide their inquiry.
While MTDiag is a significant step forward, the authors note that the field is still limited by the scale and quality of open-source medical datasets. Future work will focus on building better benchmarks and handling "Not Sure" responses from patients. The authors emphasize that such systems should remain auxiliary tools for doctors rather than independent diagnostic agents.
Summary updated