Natural Hard-Negative Mining from Positives for Instruction-Following Retrieval
Abstract
Instruction-following information retrieval (IFIR) requires retrievers to rank documents by both a query and its instance-specific instructions, yet instruction-conditioned contrastive supervision remains scarce. Existing synthetic methods typically fix a positive passage and generate additional negatives, overlooking the hard-negative potential of the original positive. We propose Natural Hard-Negative Mining (NHNM), which promotes convertible negatives under query-compatible instructions and repurposes original positives as natural instruction hard negatives. Its automated Candidate Cleaning, Reversal Construction, and Geometry Filtering pipeline produces compact, high-contrast supervision aligned with the pretrained retrieval space. Applied to MSMARCO, NHNM yields NHNM-MARCO, an IFIR training set of nearly 7K instances. On InstructIR and FollowIR, models with 568M to 4B parameters fine-tuned on NHNM-MARCO achieve strong instruction-following performance and match or surpass substantially larger retrievers in several settings. Controlled analyses and ablations attribute these gains to natural hard-negative supervision rather than model scale or training-data volume.
Figures & tables
| Model | Size | Robust | nDCG |
|---|---|---|---|
| Cross Encoder | |||
| Mistral-7B-Instruct Jiang et al. (2023) | 7B | 35.30 | 63.10 |
| FollowIR-7B Weller et al. (2025a) | 7B | 71.50 | 81.30 |
| Bi Encoder | |||
| BM25 Robertson et al. (1995) | - | 26.92 | 76.01 |
| Contriever Izacard et al. (2021) | 110M | 47.40 | 84.85 |
| Type | Model | Size | Robust04 | News21 | Core17 | Average | ||||
| MAP | -MRR | nDCG@5 | -MRR | MAP | -MRR | Score | -MRR | |||
| Instruct LMs | Flan-T5-Base Chung et al. (2024) | 0.2B | 13.8 | +3.6 | 7.2 | +7.3 | 10.4 | +1.5 | 10.5 | +4.1 |
| Llama-2-7B-Chat | 7B | 17.8 | +0.7 | 17.8 | +0.6 | 14.5 | +4.9 | 16.7 | +2.1 | |
| Flan-T5-Large Chung et al. (2024) | 0.8B | 14.7 | +3.9 | 8.0 | +8.9 | 11.4 | +1.3 | 11.4 | +4.7 | |
| GritLM-Reranker Muennighoff et al. (2025) | 7B | 23.1 | +6.9 | 20.2 | -6.7 | 18.8 | +10.4 | 20.7 | +3.5 | |
| Mistral-7B-Instruct Jiang et al. (2023) | 7B | 23.2 | +12.6 | 27.2 | +4.8 | 19.7 | +13.0 | 23.4 | +10.1 | |
| Training Data | Robust. | nDCG@10 |
|---|---|---|
| No fine-tuning | 49.29 | 83.93 |
| InF-IR-style Zhuang et al. (2025) | 31.51 | 72.09 |
| Promptriever-style Weller et al. (2025b) | 51.84 | 86.35 |
| NHNM-MARCO ( ours ) | 67.06 | 93.12 |
| Variant | InstructIR | FollowIR | |||
|---|---|---|---|---|---|
| nDCG @10 | Robust | MAP | Score | -MRR | |
| No fine-tuning | 83.93 | 49.29 | 78.79 | 22.8 | -0.2 |
| No Cleaning | 90.62 | 60.93 | 87.64 | 22.3 | +0.2 |
| No Geometry Filter | 92.27 | 65.25 | 89.79 | 23.2 | +2.3 |
| No Original Positive | 90.31 | 60.40 | 87.22 | 22.5 | +1.8 |
| NHNM ( ours ) | 93.12 | 67.06 | 90.95 | 23.7 | +4.1 |
| Training Signal | nDCG@10 | Robust. | MAP |
|---|---|---|---|
| No fine-tuning | 83.93 | 49.29 | 78.79 |
| MS MARCO QPN | 81.80 | 45.40 | 76.12 |
| Positive Instruction | 84.53 | 49.07 | 79.70 |
| NHNM-MARCO | 93.12 | 67.06 | 90.95 |
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
| Parameter | Qwen-0.6B | Qwen-4B | BGE-M3 |
|---|---|---|---|
| Base model | Qwen3-Emb.-0.6B | Qwen3-Emb.-4B | BGE-M3 |
| Geometry encoder | Qwen-0.6B | Qwen-4B | BGE-M3 |
| Retained instances | 6,716 | 6,655 | 7,354 |
| Tuning | Full | LoRA ( ) | LoRA ( ) |
| Epochs | 1 | 1 | 1 |
| Batch (micro accum.) |
| Method | Metric | Robust04 | News21 | Core17 | Avg. |
|---|---|---|---|---|---|
| Baseline | Score | 26.5 | 26.1 | 21.7 | 24.8 |
| -MRR | +3.5 | +1.2 | +4.4 | +3.0 | |
| Score | 27.1 | 26.7 | 22.1 | 25.3 | |
| -MRR | +6.9 | +5.8 | +8.8 | +7.2 |
| Method | Dev | DL19 | DL20 |
|---|---|---|---|
| MRR@10 | nDCG@10 | nDCG@10 | |
| SEAL | 12.7 | – | – |
| BM25+RM3 | 15.7 | 52.2 | 49.0 |
| BM25 | 18.4 | 50.6 | 48.0 |
| MINDER | 18.6 | – | – |
| Qwen3-Emb.-0.6B | 18.6 | – | – |
| No. of | Tokens per input | Total | |||
|---|---|---|---|---|---|
| API stage | inputs | Input | Output | Total | tokens |
| Candidate Cleaning | 29,902 | 1,401.1 | 352.8 | 1,754.0 | 52.45M |
| Reversal Construction | 7,527 | 1,303.2 | 362.3 | 1,665.5 | 12.54M |
| Field | Case and decision |
|---|---|
| 1. Healing time for broken ribs | |
| Query | “How long does it take broken ribs to heal?” |
| Gives the usual six-to-eight-week recovery time. | |
| CN | Describes fractures still unhealed after roughly two months, non-union, and possible surgery. |
| FN removed | Independently states that fractured-rib pain and disability can last about six weeks. |
| Why | The FN already answers the duration question; the CN supports a delayed-healing condition absent from the ordinary answer. |
| InstructIR instruction. I am a pharmacist and need detailed scientific literature about how dihydroquercetin interacts with common pharmaceuticals, particularly for cardiovascular and metabolic health. Query. what is dihydroquercetin | |
|---|---|
| Ours: top-ranked documents | Qwen3-Embedding-0.6B baseline |
| 1. Relevant. Taxifolin is discussed in terms of drug biotransformation, liver enzymes, and interactions with medications for cardiovascular and metabolic disorders. | 1. Non-relevant. A general scientific overview of taxifolin’s antioxidant properties, natural sources, and possible health benefits. |
| 2. Non-relevant. A broad review of taxifolin’s antioxidant effects, natural sources, cardiovascular wellness, and glycemic control. | 2. Non-relevant. A dermatology-focused passage about topical taxifolin formulations and skin health. |
| 3. Non-relevant. A passage about anticoagulants for heart-rhythm disorders that does not address dihydroquercetin. | 3. Non-relevant. A holistic-health passage about taxifolin’s anti-inflammatory properties and compatibility with herbal extracts. |
| FollowIR query. Evidence that radio waves from radio towers or mobile phones affect brain-cancer occurrence. Changed relevance criterion. Relevant documents report experimental, statistical, or news evidence comparing brain-cancer incidence; any document mentioning leukemia is non-relevant. | |
|---|---|
| Ours: top-ranked documents | Qwen3-Embedding-0.6B baseline |
| 1. Relevant. “Disconnecting Phones and Tumors” reports a Danish study comparing cellphone use among people with and without brain tumors. | 1. Relevant. “Cell Phone Carcinogens?” discusses trends in brain tumors and possible risks from electromagnetic fields. |
| 2. Relevant. “Really? The Claim—Cellphones Increase the Risk of Brain Cancer” summarizes evidence concerning the claimed association. | 2. Relevant. “Really? The Claim—Cellphones Increase the Risk of Brain Cancer” summarizes evidence concerning the claimed association. |
| 3. Relevant. “Two Studies Report No Links to Cancer in Cell Phones’ Use” reports controlled studies of cellphone users and brain tumors. | 3. Relevant. “Disconnecting Phones and Tumors” reports a Danish case-control study. |
| 4. Relevant. “As Cell Phone Use Explodes, Debate Over Health Risk Grows” reviews human and animal evidence about brain cancer. | 4. Relevant. “Two Studies Report No Links to Cancer in Cell Phones’ Use” reports controlled studies of cellphone users and brain tumors. |
| 5. Relevant. “No Cellphone Surprise” comments on the reported lack of association between cellphone use and brain tumors. | 5. Non-relevant. “Cellular Phone Scare Discounted” foregrounds an elevated rate of acute myeloid leukemia , violating the added exclusion. |
Hard Negative Mining
Hard negative mining selects plausible, confusable non-matches to train models to distinguish fine-grained similarities.
See all 33 papers