concept Updated 2026-07-09 Tags: Ai, Retrieval, Training-Data, Evaluation

Hard Negative Mining

Hard negative mining is the practice of constructing training examples that look relevant but should be rejected. In Episode 17: 向量模型工程师:AI 的隐藏瓶颈与新时代的信息迷宫, N 同学 / N Student describes hard negatives as a central cost in tuning Vector Model Engineering and Reranking Models for real enterprise retrieval.

The episode’s examples make the problem concrete: industry abbreviations, factory models, part numbers, similar product names, or SEO-stuffed pages may all look close to a generic model while being wrong for the business task. Hard negatives force the model to learn the difference between broad topical similarity and the specific Semantic Search Relevance the user needs.

Key Claims

  • Easy negatives teach little because the model can already separate them.
  • Hard negatives should be built from the domain’s actual failure modes, not only from random unrelated documents.
  • Good hard negatives require Domain Expert Alignment because outsiders may not know which small distinction matters.
  • Hard negatives are useful for both first-stage vector models and second-stage rerankers.
  • Poor negative design can make a benchmark score improve without making the deployed retrieval system better.

Connections