Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

CoDeR: Local Constraint-Compatible Retrieval Beyond Semantic Similarity

About

Information retrieval systems have long treated semantic similarity as a proxy for relevance. For constraint-sensitive queries, this proxy can fail when a document is topically close to the query but supports the opposite constraint direction, such as satisfying an attribute that should be excluded or affirming a relation that should be negated. We study this failure as constraint-violating evidence exposure and propose CoDeR, a local constraint-compatible dense retrieval method that separates topical relevance from constraint compatibility. CoDeR keeps a standard topical encoder for candidate coverage and adds a compatibility scorer, implemented as a bi-encoder, trained with lexical-polarity supervision over contrastive satisfying and violating evidences. The compatibility signal can be used to rescore topical candidates or to retrieve an auxiliary compatibility-oriented candidate set, producing a ranked document list without external Large Language Model~(LLM) calls at inference time. We evaluate CoDeR on controlled diagnostics and public negative-constraint retrieval benchmarks. Across three controlled diagnostic sets targeting antonymy, negation, and exclusion, CoDeR reduces V@2 by 20.59, 23.53, and 5.77 points relative to the strongest non-CoDeR baselines, and improves FVR by pushing the first violating document deeper in the ranking.

Xingkun Yin, Xuebin Tang, Hongyang Du• 2026

Related benchmarks

TaskDatasetResultRank
Question AnsweringNevIR 20 randomly sampled queries
Accuracy40
8
Constraint-aware RetrievalAntonym self-constructed
V@259.8
8
Constraint-aware RetrievalNegation self-constructed
V@250.98
8
Constraint-aware RetrievalExclusion self-constructed
Recall@250
8
Information RetrievalNevIR
V@230.2
8
Information RetrievalExcluIR
V@247.7
8
Information RetrievalNegConstraint
Recall@596.97
3
Showing 7 of 7 rows

Other info

Follow for update