Maintenance Notice

Due to necessary scheduled maintenance, the JMIR Publications website will be unavailable from Wednesday, July 01, 2020 at 8:00 PM to 10:00 PM EST. We apologize in advance for any inconvenience this may cause you.

Who will be affected?

Currently submitted to: JMIR AI

Date Submitted: Dec 2, 2026
Open Peer Review Period: Dec 3, 2026 - Jan 28, 2027
(currently open for review)

Warning: This is an author submission that is not peer-reviewed or edited. Preprints - unless they show as "accepted" - should not be relied on to guide clinical practice or health-related behavior and should not be reported in news media as established information.

Local Contrastive Adaptation of Clinical Retrieval Encoders Transfers Asymmetrically Between Documentation Eras for Same-Note-Derived Queries: Experimental Study

  • Yngve Mikkelsen

ABSTRACT

Background:

Dense retrieval encoders are adapted to a site's notes because retrieval depends on how care is documented. Documentation changes, and an adapted encoder must still retrieve earlier records.

Objective:

This study aimed to estimate whether local adaptation of a clinical retrieval encoder transfers equally in both directions between documentation eras within one institution.

Methods:

In a within-institution two-by-two design, encoders were contrastively adapted on 18,000 discharge summaries from the Medical Information Mart for Intensive Care III (MIMIC-III; 2001–2012) or the Medical Information Mart for Intensive Care IV Clinical Notes Module (MIMIC-IV-Note; 2014 onward), after excluding detected cross-database near-duplicates, and scored on 1,000 known-item queries per era from the target note itself. The primary estimand was the asymmetry D, the backward minus the forward matched-era advantage, with mean reciprocal rank at 10 and recall at 10 as co-primary metrics, over six training runs. Other conditions varied encoder, MIMIC-III redaction markers, training mix, index, split and query source; a lexical baseline was tuned on the same training samples.

Results:

Adaptation raised top-10 retrieval from 0.32 to 0.63 on earlier-era and from 0.37 to 0.62 on later-era records; other-era adaptation also helped. The matched-era advantage was 0.079 on earlier-era and 0.019 on later-era records, 34% and 10% of the attainable benefit; D was 0.060 (95% confidence interval across runs 0.046–0.074) in mean reciprocal rank and 0.079 (0.063–0.095) at recall@10, positive in all six runs at both. D was present in a second general-purpose encoder (0.067), at about half the primary size in a biomedical encoder (0.029), without MIMIC-III redaction markers (0.041), across two calendar periods within MIMIC-III (0.056) and in dense-lexical fusion, the best-retrieving system (0.044). There was no evidence of it for tuned lexical retrieval (−0.003, interval including zero) or for queries from radiology impressions, on which adaptation gained little, and it was reversed between overlapping patient cohorts within MIMIC-IV (−0.017). Replacing a historical-era with a current-era encoder removed from the top 10 27% of the historical records that the outgoing encoder had retrieved; balanced two-era training recovered 60% of the aggregate backward shortfall in mean reciprocal rank (67% at recall@10) but reduced the number of exits by 40%.

Conclusions:

For same-note-derived queries, local adaptation of a dense retrieval encoder favors the documentation it was trained on, at a cost to older records. Adoption still improves archive retrieval, but replacing a historical-era with a current-era encoder removes historical records from the retrieved set, so retraining should be evaluated on historical as well as current records.


 Citation

Please cite as:

Mikkelsen Y

Local Contrastive Adaptation of Clinical Retrieval Encoders Transfers Asymmetrically Between Documentation Eras for Same-Note-Derived Queries: Experimental Study

JMIR Preprints. 02/12/2026:118380

DOI: 10.2196/preprints.118380

URL: https://preprints.jmir.org/preprint/118380

Download PDF


Request queued. Please wait while the file is being generated. It may take some time.

© The authors. All rights reserved. This is a privileged document currently under peer-review/community review (or an accepted/rejected manuscript). Authors have provided JMIR Publications with an exclusive license to publish this preprint on it's website for review and ahead-of-print citation purposes only. While the final peer-reviewed paper may be licensed under a cc-by license on publication, at this stage authors and publisher expressively prohibit redistribution of this draft paper other than for review purposes.