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

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.

Authors

Publication Details

Published
2026-12-02
DOI
https://doi.org/10.2196/preprints.118380
Primary Topic
Machine Learning in Healthcare
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

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

Yngve Mikkelsen
Machine Learning in Healthcare
preprint

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

Yngve Mikkelsen
preprint en

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.

Machine Learning in Healthcare
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon