@article{Wang2026, 
author = {Meng Wang and Yisong Wang and Feifan Wu},
title = {Numerical Constraint-Aware Dense Retrieval with Two-Phase Contrastive Learning},
year = {2026},
journal = {Big Data Mining and Analytics},
volume = {9},
number = {2},
pages = {341-359},
keywords = {contrastive learning, Retrieval-augmented Generation (RAG), dense retriever, benchmark dataset, numerical constraint query},
url = {https://www.sciopen.com/article/10.26599/BDMA.2025.9020047},
doi = {10.26599/BDMA.2025.9020047},
abstract = {Retrieval-Augmented Generation (RAG) enhances Large Language Models (LLMs) by integrating external knowledge, leading to significant improvements in both factual accuracy and task performance. However, existing dense retrievers face considerable challenges when handling numerical constraints, particularly in queries requiring precise filtering conditions. To systematically explore these issues, we introduce Numerical Constraint Question (NumConQ), a comprehensive multi-domain benchmark dataset that contains more than 6500 queries covering healthcare, finance, education, sports, and movies. Empirical analysis reveals that state-of-the-art dense retrievers achieve only 16.3% accuracy in numerical constraint satisfaction, significantly underperforming relative to their semantic matching capabilities. To address these limitations, we propose Numerical Constraint-aware Retriever (NC-Retriever), which features: (1) a two-phase contrastive learning framework that combines in-batch negative samplings with progressively introduced hard negatives, and (2) a hybrid numerical representation scheme for consistent tokenization. Extensive experiments show that NC-Retriever achieves a relative improvement of 65.84% in recall@10 and a 78.28% increase in precision@10 compared to current state-of-the-art methods. The code and benchmark dataset are available at https://github.com/Tongji-KGLLM/NumConQ.}
}