30.11.2026
Our paper MERLIN-DDx: Learning Clinical Diagnostic Reasoning from Reference-Filtered Traces by Jan Frick, Dennis Fast, Conor Fallon, Konstantin Schlüter, Roseli Neuschäfer, Jonas Antonio Cittadino, Felix Gers and Alexander Löser has been accepted at Findings of EACL 2027.
Clinical notes record what doctors concluded, not the diagnostic reasoning that led there, so language models learn to jump from a note straight to a diagnosis. MERLIN-DDx supplies that reasoning as training data. A generator-verifier pipeline writes reasoning traces for real hospital admissions from MIMIC-IV in four stages: symptoms, a ranked differential diagnosis, reranking with lab results, and the final ICD code. Every stage is checked against the clinical reference WikiDoc and the patient's recorded outcome, and only traces that hold up are kept. The resulting dataset holds over 124,000 stage records from 10,400 admissions.
Fine-tuning Qwen3 models from 0.6B to 32B parameters on these reference-filtered traces improves ICD coding at admission time at every model size, with the largest gains on rare diagnoses. Compared with models trained on the same cases without the traces, the traces add 1.7 to 6.9 macro-F1 points.
More on the method and results is on the project page, and the code is open source. The dataset will be released on PhysioNet once its review process is complete. The work is part of our research on predicting clinical outcomes.
















