CA-HNM: Constraint-Aware Hard Negative Mining for Dense Retrieval with Structured Domain Models
Ngoc Luyen Le, Marie-Hélène Abel, Bertrand Laforge
Abstract
Dense retrievers are commonly trained with hard negatives selected from lexical or dense retrieval results. Retrieval proximity, however, does not indicate whether a candidate conflicts with explicit domain structure. We introduce CA-HNM, a constraint-aware hard-negative mining framework that combines retrieval-based candidate generation with deterministic incompatibility rules derived from a structured domain model. The framework removes known positives, constructs a local typed context around the query target, records relational, scope, target, and level mismatches, and uses the resulting candidates to fine-tune a standard dual encoder. Structured information is required only during offline negative construction. We evaluate CA-HNM on MOOCCubeX and Course-Skill Atlas with two encoders, two training losses, and ten seeds. Relative to a retrieval-rank-matched control, CA-HNM-Pure has higher mean NDCG@10 in six of eight dataset--encoder--loss configurations. Four hierarchical 95% bootstrap intervals are entirely above zero, mostly under triplet loss. In a separate experiment, CA-HNM-Mixed shows slightly higher mean NDCG@10 than a matched-mixed control on both collections. Structural variants show that changes in available structure can also change candidate eligibility and negative-pool composition. The results indicate that the contribution of constraint-aware selection depends on the training objective and the composition of the negative pool.
Create a lesson
Related papers
A Domain-Aware Pipeline for Structured Extraction and Retrieval-Augmented Question Answering over arXiv Superconductivity Literature
Shared title terminology · Ivan Iorsh, Aleksandr Kapitonov, Ivan Filianin et al.
Coverage Under Contradiction: A Benchmark for Negation-Aware Retrieval
Shared title terminology · Pasha Abrishamchian, Eugene Yang, Andrew Yates et al.
CACO: Coverage-Aware Coordinated Optimization for Continuous Generative Retrieval
Shared title terminology · Pan Zhang, Nan Zhuang, Yongkang Zhang et al.
NONSENSE: Non-Semantic Strings Expose Semanticity Gaps in Dense Retrieval
Shared title terminology · Ankit Gupta
UniGraph: A Unified Graph-based Index for Dynamic Hybrid Dense-Sparse Vector Retrieval
Shared title terminology · Keyu Chen, Xiaoyao Zhong, Jiabao Jin et al.
When Direction Matters: Diagnosing Relational Instruction Following in Dense Retrieval
Shared title terminology · Zhanyu Wu, Richong Zhang