arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.01304cs.LG
收藏

当硬负例有害时:弥合检索中硬负例生成的生成-判别鸿沟

When Hard Negatives Hurt: Bridging the Generative-Discriminative Gap in Hard Negative Synthesis for Retrieval

Shenzhen International Graduate School, Tsinghua University(清华大学深圳国际研究生院);Huawei Technologies Co., Ltd.(华为技术有限公司);City University of Hong Kong(香港城市大学);School of Cyber Science and Technology, Sun Yat-sen University(中山大学信息科学与技术学院);School of Intelligence Science and Technology, Nanjing University(南京大学智能科学与技术学院);The Hong Kong University of Science and Technology(香港科学与技术大学);Huawei Noah’s Ark Lab(华为诺亚实验室)

Zhicheng Zhang, Jiwei Tang, Kuicai Dong, Xiaopeng Li, Jieming Zhu, Jingyu Li, Qianhui Zhu, Fengyuan Lu, Wang Jiaheng, Gang Wang, Hai-Tao Zheng, Zhaocheng Du

AI总结:

针对检索中硬负例生成存在的生成-判别鸿沟问题,提出CausalNeg方法,通过CoT引导的反事实扰动和查询视角熵最大化来提升检索性能。

摘要:

硬负例挖掘已成为训练检索器的主流策略,但它面临内在局限性:负例受限于语料库可用性,由检索器分数而非诊断价值选择,并且随着检索器改进,假阳性污染日益严重。基于LLM的合成提供了一种原则性替代方案,其中负例不受约束、具有针对性且无假阳性风险。但我们表明,将生成的负例天真地融入对比学习通常会降低检索性能。我们识别并形式化根本原因为生成-判别鸿沟:LLM生成优化流畅、合理的文本,而对比学习要求在决策边界处进行战略性的相关性违反。我们的分析揭示了两种复合失败模式:判别无关生成,即LLM缺乏对查询信息需求的显式模型,默认生成通用或主题漂移的文本,不提供对比信号;以及源依赖捷径,即分布性伪影使模型能够根据来源而非相关性区分负例,导致梯度漂移,积极破坏优化。为弥合这一鸿沟,我们提出CausalNeg,包含两个主要模块:(1) CoT引导的反事实扰动用于数据构建:将文档满足查询的原因分解为显式信息需求,然后精确违反个别需求以构建具有可控、可解释硬度的负例。(2) 训练期间的查询视角熵最大化:将生成的负例分散到相似度谱中,最小化源身份与相似度分数之间的互信息,以抑制捷径利用。我们在https://github.com/mzhangzhicheng/CausalNeg公开代码。

英文摘要:

Hard negative mining has become the dominant strategy for training retrievers, yet it faces intrinsic limitations: negatives are bounded by corpus availability, selected by retriever score rather than diagnostic value, and increasingly contaminated by false positives as the retriever improves. LLM-based synthesis offers a principled alternative, where negatives that are unconstrained, targeted, and free from false positive risk. But we show that naively incorporating generated negatives into contrastive learning often degrades retrieval performance. We identify and formalize the root cause as a generative-discriminative gap: LLM generation optimizes for fluent, plausible text, while contrastive learning demands strategic violations of relevance at the decision boundary. Our analysis reveals two compounding failure modes: discriminative-agnostic generation, where the LLM lacks an explicit model of query information needs and defaults to generic or topic-drifted text that provides no contrastive signal; and source-dependent shortcuts, where distributional artifacts enable the model to distinguish negatives by origin rather than relevance, causing gradient drift that actively corrupts optimization. To close this gap, we propose CausalNeg consisting of two main modules: (1) CoT-guided counterfactual perturbation for data construction: decomposes why a document satisfies a query into explicit information requirements, then surgically violates individual requirements to construct negatives with controlled, interpretable hardness. (2) Query-view entropy maximization during training: disperses generated negatives across the similarity spectrum, minimizing the mutual information between source identity and similarity scores to suppress shortcut exploitation. We make our code publicly available at https://github.com/mzhangzhicheng/CausalNeg.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑