Lune

EMNLP2025Top-tier venue

LogiCoL: Logically-Informed Contrastive Learning for Set-based Dense Retrieval

Yanzhen Shen, Sihao Chen, Xueqiang Xu, Yunyi Zhang, Chaitanya Malaviya, Dan Roth

Abstract

While significant progress has been made with dual-and bi-encoder dense retrievers, they often struggle on queries with logical connectives, a use case that is often overlooked yet important in downstream applications. Current dense retrievers struggle with such queries, such that the retrieved results do not respect the logical constraints implied in the queries. To address this challenge, we introduce LOGICOL, a logically-informed contrastive learning objective for dense retrievers. LOGICOL builds upon in-batch supervised contrastive learning, and learns dense retrievers to respect the subset and mutually-exclusive set relation between query results via two sets of soft constraints expressed via t-norm in the learning objective. We evaluate the effectiveness of LOGI-COL on the task of entity retrieval, where the model is expected to retrieve a set of entities in Wikipedia that satisfy the implicit logical constraints in the query. We show that models trained with LOGICOL yield improvement both in terms of retrieval performance and logical consistency in the results. We provide detailed analysis and insights to uncover why queries with logical connectives are challenging for dense retrievers and why LOGICOL is most effective. Our codes and data are available at https://github.com/yanzhen4/LogiCoL .

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Efficiently Teaching an Effective Dense Retriever with Balanced Topic Aware Sampling cites Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrieval
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on14

  1. Supervised Contrastive LearningPrannay Khosla, Piotr Teterwak, Chen Wang, Aaron Sarna et al.NeurIPS 2020 · 7,049 citations
  2. SimCSE: Simple Contrastive Learning of Sentence EmbeddingsTianyu Gao, Xingcheng Yao, Danqi ChenEMNLP 2021 · 2,496 citations
  3. Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text RetrievalLee Xiong, Chenyan Xiong, Ye Li, Kwok-Fung Tang et al.ICLR 2021 · 1,547 citations
  4. Contrastive Learning with Hard Negative SamplesJoshua David Robinson, Ching-Yao Chuang, Suvrit Sra, Stefanie JegelkaICLR 2021 · 999 citations
  5. Efficiently Teaching an Effective Dense Retriever with Balanced Topic Aware SamplingSebastian Hofstätter, Sheng-Chieh Lin, Jheng-Hong Yang, Jimmy Lin et al.SIGIR 2021 · 297 citations

Related papers

  1. Logical Consistency is Vital: Neural-Symbolic Information Retrieval for Negative-Constraint QueriesGanlin Xu, Zhoujia Zhang, Wangyi Mei, Jiaqing Liang et al.ACL Findings 2025 · 1 citation
  2. LED: Lexicon-Enlightened Dense Retriever for Large-Scale RetrievalKai Zhang, Chongyang Tao, Tao Shen, Can Xu et al.WWW 2023 · 27 citations
  3. Constructing Hard-Positive Query-Document Pairs for Dense Retrieval via Phrase RepresentativenessZhanyu Wu, Richong Zhang, Zhijie NieSIGIR 2026
  4. Contextual Document EmbeddingsJohn Xavier Morris, Alexander M. RushICLR 2025
  5. BoolQuestions: Does Dense Retrieval Understand Boolean Logic in Language?Zongmeng Zhang, Jinhua Zhu, Wengang Zhou, Xiang Qi et al.EMNLP Findings 2024 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines