Search queries in medicine are full of things the searcher does not want: a patient who "denies smoking," a tumor "without KRAS mutation," studies that are "not cell-line work." Most retrieval systems can only add evidence for a document, so they read these phrases as topics and rank up exactly the documents the user ruled out. Hybrid retrievers make this sharper. A hybrid retriever adds together a keyword score and a neural similarity score. The keyword score comes from a sparse index that matches exact words. The neural score comes from a dense encoder that maps text to a vector, where similar meanings land close together. This proposal asks a narrow, testable question: when a hybrid system gets an exclusion, should the exclusion be applied to the keyword half, the neural half, or both? We also ask what has to change on the document side so that a paper reporting "no KRAS mutation was found" is not punished for mentioning KRAS.
Our claim is that exclusions belong mainly in the keyword half, written as signed term weights over a vocabulary that marks negated mentions. A domain-pretrained biomedical encoder predicts those weights. Subtracting a concept vector in dense space removes its semantic neighbors along with it, so it demotes relevant documents as collateral damage. Exact clinical identifiers such as gene names, drugs, and variants are the terms dense models blur and keyword indexes keep precise. The whole scheme still runs as one inner-product search over a concatenated sparse-dense index, so no second filtering stage is needed.
Core Claim and What Is New
It is tempting to say that unified hybrid indexes "cannot subtract." That is not true, and it shapes the design. Hybrid First-stage Retrieval Models for Biomedical Literature writes BM25 as a sparse dot product and concatenates it with a dense vector, so one search scores both halves. Inner-product search places no sign restriction on the query vector. As a result, the score-combination trick of Implicit Negative Feedback in Clinical Information Retrieval, which scores the full query, scores the negated part separately, and subtracts a weighted copy, carries over unchanged to the concatenated index as a single query vector. That paper tested only BM25. It found that negated queries score about 21% worse in nDCG and that subtraction plus negation tagging closed 65.4% of the P@10 gap.
The open problem is therefore not whether subtraction is possible. It is where the subtraction should be applied, how the system decides which words are excluded, and how documents that mention the excluded concept in negated form are handled. We write the score as
$$s(q,d) = \langle \mathbf{q}_{\text{dense}}, \mathbf{d}_{\text{dense}} \rangle + \sum_{t \in V \cup V_{\neg}} w_t(q)\, x_t(d),$$
where $\mathbf{q}_{\text{dense}}, \mathbf{d}_{\text{dense}}$ are the dense vectors from a biomedical encoder. $V$ is the ordinary vocabulary and $V_{\neg}$ is a copy of it in which each term means "this term appears inside a negation in the document." $x_t(d)$ is the document's BM25-style weight for term $t$, and $w_t(q)$ is a query weight that may be negative.
For a query excluding KRAS, the intended solution puts a negative weight on KRAS and a small positive weight on its negated copy, while leaving the dense query vector carrying only the positive information need. The weights $w_t(q)$ come from a domain-pretrained encoder that reads the query and outputs signed per-term weights. This extends the idea in Contextualized Query Embeddings, which pulls only positive term weights out of token norms in a conversational encoder. Document-side negation copies extend the [nx]term tagging of Kuhn and Eickhoff from a rule-based NegEx pipeline to an index built from a biomedical model's predicted negation spans.
Domain pretraining has a specific role in this design rather than a decorative one. Domain-Specific Pretraining for Vertical Search shows that PubMedBERT trained from scratch beats general and mixed-domain models in biomedical search. ECNU-ICA at TREC 2019 PM reports off-the-shelf BERT failing to beat doc2vec on precision-medicine retrieval. We therefore expect the quality of the predicted exclusion weights and negation spans to depend on domain pretraining, and we test that directly.
Research Program
We build one system with switchable parts. The dense half is a PubMedBERT-initialized bi-encoder trained on synthetic PubMed query-document pairs in the style of Ma et al. The sparse half is a BM25 index over $V \cup V_{\neg}$. Document negation spans come from a PubMedBERT tagger trained on available clinical negation annotations; NegEx serves as the comparison tagger.
The query-side weight predictor is trained on exclusion variants generated from the same synthetic pairs. We take a synthetic query for document A, find a hard negative B that affirms a biomedical concept X which A lacks or mentions only negatively, and rewrite the query to exclude X. We vary the surface form across "without," "other than," "excluding," and "patient denies." The predictor and the dense encoder are trained with a contrastive loss that should rank A above B. The same generated data also trains every competing arm that can use it, so no arm gets training signal the others lack.
We then compare three placements of the exclusion under one fixed index and one fixed training budget: in the keyword half only, in the dense half only (subtracting an encoded negated-concept vector with a tuned weight), and in both. We also cross each placement with document-side negation copies switched on or off. The analysis targets one mechanism, collateral demotion: judged-relevant documents that lose rank because they mention the excluded concept's neighbors, or the concept itself in negated form.
Baselines
The do-nothing reference is the same domain hybrid with the negation phrases left in the query and handled as ordinary text. This is how Ma et al.'s system and the Wang et al. pipeline treat every query, and it measures how much damage untreated exclusions cause.
The strongest existing published system on our non-negated control is Ma et al.'s HybridRerank. It combines bigram BM25 with a dual-encoder concatenation and a cross-attention reranker, and reports an average MAP of 0.4056 across the five BioASQ 8 batches, against 0.4043 for the average of the best competition systems. We reproduce it with our encoder and index. Our method must stay within noise of it on BioASQ 8, which has few explicit exclusions; doing so shows the exclusion machinery does no harm when it is not needed.
On TREC Precision Medicine 2018 scientific abstracts, the strongest file-reported runs are Team Cat-Garfield's BASE run in Team Cat-Garfield at TREC 2018 PM, with infNDCG 0.5621 and P@10 0.6704, and UCAS's MeSH treatment-filtering run UCASSA5 in UCAS at TREC-2018 PM, with infNDCG 0.5580. On TREC PM 2019 abstracts, the file reports 0.4672 infNDCG for ECNU-ICA's fine-tuned run with a doc2vec reranker. Beating these means exceeding them on infNDCG and P@10 without hand-written exclusion rules. We also build a variant that adds the rule filters as further negative-weighted metadata terms, so the comparison against rules is direct.
For TREC CDS 2014/2015, the file reports Kuhn and Eickhoff's results only in relative terms: the 21% negated-query nDCG gap, the 65.4% P@10 gap reduction, and a 300% P@10 gain on Topic 1. There is no reported absolute result on Lacuna for their score-combination method. We therefore re-implement it on BM25 and on the hybrid index. Beating it means closing more of the negated-versus-non-negated gap at equal or better non-negated performance.
Every arm uses the same corpus snapshot, the same encoder checkpoint, the same generated training data where applicable, and the same tuning budget. Fusion and penalty weights are tuned on held-out topics only.
Why not just…?
Why not just filter with Boolean NOT and rerank the survivors? Hard exclusion deletes any document that contains the term, including papers that mention it in negated form or in passing. Kuhn and Eickhoff found that simply pruning negated parts of the query discards the signal about what the user does not want. We run this pipeline with NegEx and with our PubMedBERT tagger and report recall loss on the judged-relevant documents it removes.
Why not just apply Kuhn-style subtraction to the whole hybrid vector? This is a real threat. It is linear, single-stage, and simple, and it is exactly our "both halves" placement without negation copies. If it matches the sparse-only signed weights, our placement claim is false, and we will report that. The collateral-demotion analysis is the deciding evidence: the claim predicts that dense subtraction pushes down relevant documents about neighboring concepts more than sparse subtraction does.
Why not just fine-tune the dense encoder on negated queries until it understands negation? This is also a real threat. Large generated sets helped dense pretraining in Domain-matched Pre-training Tasks for Dense Retrieval. We train this arm on the identical exclusion data. Our expectation that it falls short rests on dense models' weakness with exact identifiers: on BioASQ 8 Batch 2, Ma et al. report a dense-only MAP of 0.1173 against 0.2718 for BM25. The prediction is that dense-only exclusion fails most on gene and variant exclusions. We report results split by concept type so this can be checked.
Why not just use MeSH and metadata rules? UCAS's treatment filter is one of the strongest PM 2018 runs. Rules, however, need curated tags and cannot read free-text exclusions in case narratives. We include the rules as metadata terms in the same index, so the question becomes whether learned weights add anything beyond them.
Proposed Experiments
The main evaluation uses TREC CDS 2014/2015, split into negated and non-negated topic subsets following Kuhn and Eickhoff. We add TREC PM 2017–2019 abstracts, where the "not precision-medicine" and demographic exclusions are implicit, and an exclusion-rewritten version of PM topics in which each rewrite is checked by a person against the judged documents. BioASQ 8 serves as the no-exclusion control. Metrics are nDCG@10, P@10, infNDCG, and the negated/non-negated gap.
We add two measures of our own. The exclusion violation rate is the fraction of top-10 documents that affirm the excluded concept, checked by manually annotating a sample. Collateral demotion is the mean rank lost by judged-relevant documents that contain the excluded concept negated or contain its ontology neighbors.
Because these pools were built largely by keyword runs, a bias raised by On Complementarity Objectives for Hybrid Retrieval, we also report condensed-list metrics restricted to judged documents. We additionally judge a pooled sample from the dense-only arms so that pool bias does not decide the outcome.
Three ablations isolate the ingredients. Removing document-side negation copies tests the document-side mechanism. Replacing the learned weights with NegEx scope and a single tuned penalty tests whether the learned query weights matter. Swapping PubMedBERT for a general BERT in both the tagger and the weight predictor tests whether domain pretraining matters.
The decisive check is the placement comparison on the negated CDS subset and the rewritten PM topics. Two outcomes would refute the proposal. One is that keyword-half signed weights with negation copies fail to beat whole-vector subtraction and the negation-fine-tuned dense arm on violation rate while holding collateral demotion lower. The other is that the general-domain variant matches the domain variant.
References
- Hybrid First-stage Retrieval Models for Biomedical Literature
- Implicit Negative Feedback in Clinical Information Retrieval
- Contextualized Query Embeddings for Conversational Search
- Domain-Specific Pretraining for Vertical Search: Case Study on Biomedical Literature
- ECNU-ICA team at TREC 2019 Precision Medicine Track
- Team Cat-Garfield at TREC 2018 Precision Medicine Track
- UCAS at TREC-2018 Precision Medicine Track
- Domain-matched Pre-training Tasks for Dense Retrieval
- On Complementarity Objectives for Hybrid Retrieval