Hard negative mining is a technique used to find negative examples that an AI model incorrectly identifies as a target. These examples help teams understand why an object detection or recognition model produces false positives and where additional training data may be needed.
For example, a helmet detector may mistake a white bucket for a hard hat because the two objects share similar visual features. A verified white bucket can become a hard negative if the model repeatedly predicts it as a helmet.
For teams developing computer vision datasets systems, hard negative mining can help improve how models distinguish between target objects and visually similar non-targets. However, the examples must be correctly labeled, relevant to the deployment environment, and balanced with difficult positive examples.
This guide explains what hard negatives are, how to identify and review them, how to build a practical mining workflow, and how to evaluate whether the additional AI training data improves model performance.
Table of contents:
- ● What Is A Hard Negative?
- ● A Hard Negative Is Not A Labeling Mistake
- ● How Hard Negative Mining Reduces False Positives
- ● Where Hard Negatives Come From
- ● A Practical Hard Negative Mining Workflow
- ● Six Useful Ways To Find Hard Negatives
- ● How to Tell Whether a Hard Negative Is Useful
- ● Build A Dataset, Not A Folder Of Mistakes
- ● How Much Hard Negative Data Should You Add?
- ● Keep Evaluation Outside The Mining Loop
- ● A Practical Hard Negative Audit
- ● Five Ways Hard Negative Training Can Backfire
- ● Hard - negative Examples In Real Projects
- ● Hard Today Does Not Mean Hard Forever
- ● Hard - negative Dataset Quality Checklist
- ● Frequently Asked Questions
- ● The Main Principle
What Is A Hard Negative?
A negative example is an image, object, or region that does not contain the target a model is trained to recognize. In object detection, a negative example may be a background region or a non-target object that should not receive the target class label.
A hard negative is a valid negative example that the current model finds difficult to distinguish from the target. It may receive a high target confidence score, rank close to a true match, or repeatedly trigger a false detection.
Hardness depends on the model, task, and operating conditions. An example that confuses one model may be easy for another model or become less difficult after retraining.
Example type | What it means | What to do |
|---|---|---|
Positive | Contains the target under the current class policy. | Use as positive supervision. |
Easy negative | Clearly does not contain the target and is rejected confidently. | Keep enough to represent ordinary background and non-target content. |
Hard negative | Does not contain the target but receives a high target score or otherwise competes strongly with positives. | Verify, tag the confusion mechanism, and use controlled training exposure. |
Mislabeled negative | Actually contains the target but is labeled negative. | Correct the annotation; do not train it as a negative. |
Ambiguous example | Cannot be labeled consistently under the current policy. | Escalate the class or annotation rule before using it. |

A Hard Negative Is Not A Labeling Mistake
A hard negative and a mislabeled negative are not the same thing.
A hard negative is correctly labeled as a non-target, but the model mistakes it for the target. A mislabeled negative actually contains the target but has been incorrectly marked as negative.
For example, a white bucket may be a valid hard negative for a helmet detector. However, a helmet partly hidden behind the bucket must not be labeled as a negative if the task requires all visible helmets to be annotated.
Training on incorrect negative labels can teach the model to reject real target objects. Reviewers should therefore inspect the full image, not just the cropped region, before confirming a hard negative.
How Hard Negative Mining Reduces False Positives
Large licensed image datasets for AI training and video collections contain enormous numbers of easy negatives. Most road pixels are not pedestrians; most warehouse regions are not forklifts; most catalog products are not the target SKU. Those examples remain important because they define the broad world the model will encounter, but repeatedly showing examples the model already rejects contributes less corrective signal than showing a recurring confuser.
Hard - negative mining concentrates training pressure on the local distinctions that cause false positives. The model sees a non - target object, texture, context or partial pattern that previously looked positive and receives explicit evidence that the cue is insufficient on its own.
AI models often encounter many examples that are easy to reject. These examples are still important because they represent the background and non-target objects found in real environments.
Hard negative mining focuses on examples that the model repeatedly mistakes for the target. For instance, if a helmet detector produces false detections on white buckets, mining and reviewing those bucket examples can provide more useful training signals than adding large numbers of unrelated background images.
The goal is to help the model learn which visual features are not enough to identify the target. However, hard negatives should not replace ordinary negative examples or difficult positive examples. The training data must continue to represent the conditions in which the model will be used.
Harder is not automatically better. A stream dominated by near - boundary negatives can push scores down globally, suppress difficult positives or overfit a finite gallery of mistakes. The useful question is not “how many hard negatives can we add?” but “which recurring error families need more contrast, and how much exposure improves them without damaging guardrails?”

Hard negative mining vs OHEM, focal loss and active learning
Several techniques focus learning on difficult examples, but they solve different parts of the problem. Keeping the distinctions clear prevents a data - curation workflow from being confused with a loss function or an online sampling rule.
Method | Primary purpose | How examples are selected | Does it create a curated hard-negative dataset? |
|---|---|---|---|
Offline hard-negative mining | Find deployment-relevant negatives that cause false positives or near-boundary confusion. | Run a model over a candidate pool, then verify and curate candidates. | Yes, if the selected examples are retained with labels, lineage and mining metadata. |
Online hard example mining (OHEM) | Focus detector training on high-loss examples during optimization. | Select hard examples online from current proposals or minibatch candidates. | Not necessarily; it is primarily a training-time selection strategy. |
Focal loss | Reduce the dominance of easy examples in dense detection. | Continuously down-weight well-classified examples through the loss. | No; it changes weighting rather than building a reviewed candidate set. |
Active learning | Spend labeling effort on examples expected to be informative. | May use uncertainty, disagreement, rarity, coverage or other acquisition signals. | Sometimes; hard negatives can be one acquisition category among several. |
Research context: Online Hard Example Mining (CVPR 2016) showed how selecting difficult examples online could improve region - based detector training. Focal Loss (ICCV 2017) addressed the extreme foreground - background imbalance in dense detectors by down - weighting easy examples. These methods are related to hard - negative mining, but neither removes the need to inspect deployment - specific false positives when the data itself is the problem.
Where Hard Negatives Come From
“Looks like the target” can mean several different things. Tagging why an example is confusing makes the queue easier to diagnose and prevents teams from responding to every false positive with the same type of new data.
• Look - alike shape: a non - target shares the target's silhouette, parts or pose.
• Texture or material: repeated patterns, gloss, reflectivity, grain or color blocks dominate the representation.
• Context shortcut: a shelf, workstation, road marking, background or camera cue has become a proxy for the target.
• Partial object: a crop, occlusion or fragment resembles one highly discriminative target part.
• Scale or blur: small objects, motion blur, compression or poor resolution make unrelated objects converge visually.
• Neighboring class: the classes are genuinely close, such as mug versus cup, van versus minibus, or adjacent product variants.
The tag should influence the intervention. If most new false positives are context shortcuts, collecting more shape look - alikes is unlikely to solve the real problem. If the errors cluster at tiny object sizes, the limiting factor may instead be image resolution, annotation policy, model architecture or the product threshold.

Start with one error you actually want to reduce
“Improve precision” is too broad to guide a useful mining run. Start with an operational failure you can describe: reduce false helmet detections on white containers in indoor construction footage; stop printed product graphics from being counted as physical inventory; or reduce a costly pairwise confusion at checkout distance.
A useful mining objective names the model version, task, threshold or ranking regime, deployment environment, cost of the error and the behavior that must not get worse. If white buckets are the target confuser, small or partially occluded helmets are an obvious recall guardrail.
The candidate pool should resemble the stream that produces real decisions. Production logs can be valuable when privacy, rights and governance allow their use. Otherwise, use an unlabeled or partially labeled pool that mirrors deployment as closely as possible. Broad visual data can add diversity, but it should not quietly replace in - domain evidence when the operating target is narrow.
A Practical Hard Negative Mining Workflow
You do not need a complex active - learning platform for the first useful loop. The sequence below is deliberately simple enough to audit and repeat.
1. Define the failure objective and guardrails before mining. Decide which false - positive family matters and which positive slices must be protected.
2. Build a deployment - relevant candidate pool. Preserve source, scene, camera, product, event and rights metadata before selection.
3. Freeze a baseline model for the mining round. Save the model version, threshold and preprocessing so scores are comparable.
4. Rank candidate negatives. Use high target confidence, low margin, embedding proximity, pairwise confusion, detector proposals or another task - relevant signal.
5. Apply diversity constraints before annotation. Cap contributions from one video, track, camera, product, source image or embedding cluster.
6. Review candidates in context. Confirm that the target is absent, check for missing annotations, record the reason the example is confusing, and separate confirmed negatives from ambiguous cases.
7. Update the training dataset, retrain the model, and evaluate it on data that was not used to select the hard negatives. Check whether false positives decrease without reducing the model's ability to detect difficult positive examples.

Six Useful Ways To Find Hard Negatives

Hard negatives can be identified in several ways, depending on the model, task, and source of its errors. The following methods help teams find examples that are difficult for the model, rather than simply collecting unusual or visually complex images.
1. High - confidence false positives
The most direct strategy is to collect predictions the model makes with high confidence on examples that are known or verified to be negative. These are often the first candidates to inspect when the operational complaint is “the detector keeps seeing the object where it is not present.”
Do not take only the global top scores. Sample across a few meaningful score bands and across sources. The very highest scores reveal severe confusions, while examples near the operating threshold can be more representative of the boundary that determines real alerts or counts.
Deduplicate before annotation. Consecutive video frames, repeated shelf facings, one logo or one camera can otherwise consume the entire queue.
2. Low - margin and ranking - based examples
A useful negative does not have to be an actual false positive at the current threshold. In multiclass recognition, an example can be classified correctly while a confusable target class remains a close second. Margin - based mining ranks examples by the gap between the correct class and a competitor or between the top two scores.
This is especially useful for top - k systems, retrieval, recommendation - like interfaces and human - review workflows where ranking quality matters more than a single binary threshold. Keep the original scores and model version because a borderline example for one checkpoint may be easy for another.
3. Embedding - neighbor search
Embeddings can surface hard negatives even when the final classifier is correct. Extract features for positives and a large negative pool, then search for negatives close to positive examples, prototypes or clusters in feature space.
Nearest does not mean useful. Embeddings can also group by camera, crop style, lighting, source or watermark. Mine around multiple anchors, cap source concentration and verify candidates against the task definition rather than assuming similarity equals confusability.

4. Detector proposals and background regions
Object detectors generate large numbers of candidate regions or dense predictions. Run the detector over negative or fully annotated scenes and collect high - scoring outputs that are assigned as background or non - target by the detector's matching rules, then review them with the full frame visible.
Some candidates will be true confusers. Others will expose missing boxes, inconsistent box extents or unresolved policies around reflections, mannequins, printed depictions and tiny partial objects. Preserve the crop, prediction and surrounding image so reviewers can separate model error from annotation error.
5. Confusion matrices and class - pair queues
For multiclass systems, a confusion matrix is a practical mining map. Build dedicated queues for class pairs that are expensive or unusually easy to confuse, such as sedan versus hatchback, wrench versus pliers, or adjacent SKUs.
Store the direction of the confusion as well as the pair. A may be predicted as B frequently while B is rarely predicted as A, and that asymmetry can reveal a missing contrast or an imbalanced class policy.
6. Repeated errors across video or sequences
Sequential data helps separate one - frame noise from a stable misunderstanding. A false positive that appears once in motion blur is different from a non - target object that the detector confidently tracks for forty frames.
Group predictions into tracks, scenes or error events before sampling. Keep a few representative examples from each group and preserve event frequency separately in metadata. That way one important confuser can remain visible as a production problem without being counted as hundreds of independent training examples.
Human review is where mining earns its value
Hard - negative review is more demanding than ordinary negative labeling because the candidates were selected precisely for being confusing. Reviewers need more context, a clearer policy and a reliable escalation path.
• For detections, show the crop, full image, predicted box, target score, model version and nearby ground truth.
• For classification, show the class definition and, when useful, the strongest competing predictions.
• For video, show the short sequence or event rather than forcing a decision from one isolated frame.
• Keep “ambiguous / needs policy” separate from “confirmed negative.”
A practical review queue should distinguish at least four outcomes: confirmed hard negative; actually positive or missing annotation; ambiguous or policy - dependent; and valid negative but not useful for the mined set because it is duplicated, out of domain or unrelated to the targeted error family.
Second - pass review is most valuable for high - scoring errors, rare confusion types, examples that will be sampled heavily, and categories with low reviewer agreement. Disagreement is not merely an annotation problem: it can be evidence that the ontology itself is underspecified.
How to Tell Whether a Hard Negative Is Useful
Not every difficult example should be added to a training dataset. A useful hard negative must be correctly labeled, relevant to the target task, and representative of a problem the model actually encounters.
Before adding an example, ask:
• Does the image clearly exclude the target object?
• Does the model repeatedly confuse this example with the target?
• Is the example relevant to the intended deployment environment?
• Is it different enough from existing examples to add useful information?
• Could it cause the model to miss difficult positive examples?
• Can its source and annotation decision be traced?
For example, a white bucket may be a useful hard negative for a helmet detector if the model repeatedly mistakes it for a helmet. However, an image containing a partially hidden helmet should not be treated as a negative if the helmet is still a valid target.
The value of a hard negative depends on the problem it helps the model solve, not simply how difficult the example appears.
Build A Dataset, Not A Folder Of Mistakes
A maintainable hard - negative collection should be a structured view over the broader dataset, not a new semantic label that erases what the object actually is. A bucket remains a bucket even when it is a hard negative for “helmet.” The same sample can be positive for one class, hard negative for another and ordinary background for many others.
Useful fields include the original sample ID, source and split, target class, model version used for mining, score or margin, mining method, review decision, confusability tag, duplicate or event group, and any full - frame/crop relationship. For detection, keep the predicted box and its relation to nearby annotations. For video, preserve track or episode IDs.
Rights, privacy, provenance and usage restrictions belong with the same record. Mining does not change whether the underlying media is permitted for the intended training or evaluation use.
How Much Hard Negative Data Should You Add?
There is no fixed number or percentage of hard negatives that works for every AI model. The appropriate amount depends on the task, the frequency of false positives, the difficulty of the examples, the class balance, and the model's training method.
Instead of focusing only on the number of images, teams should measure how often the model sees unique hard negatives during training and whether those examples improve the targeted errors without harming recall or performance on other classes.
What matters is effective exposure during training, not the number of rows in a folder. Uniform sampling can make a small hard - negative set almost invisible, while repeatedly copying the same few examples can turn boundary refinement into memorization.
Use weighted or stratified sampling when you need control. Track how many mined negatives the model actually sees, how many are unique by source or error event, how concentrated the set is by confusion family, and whether the same difficult positives remain detectable.

Watch the interaction with the loss function
Cross - entropy already produces larger loss for confidently wrong predictions. Focal - style losses further reduce the contribution of easy examples, and metric - learning objectives explicitly compare positives with selected negatives. If a narrow mined set is also heavily oversampled, these mechanisms can reinforce one another.
Design sampling and optimization together. After retraining, check whether the model learned a better distinction or simply lowered confidence everywhere.
Deduplicate error events without deleting useful variation
Mining naturally produces repetition because models repeat their mistakes. Use file hashes for exact copies, perceptual or embedding similarity for visual variants, and source metadata for bursts, video tracks, product instances and repeated scenes.
Do not deduplicate blindly. Two similar examples can both be valuable when the difference is exactly what the model must learn, such as lighting, viewpoint, occlusion or scale. A practical approach is to assign group IDs and cap how much each group can contribute to annotation and training while preserving the relevant variation.
Keep Evaluation Outside The Mining Loop

Hard - negative projects are unusually vulnerable to leakage because the model used to surface candidates can influence the examples later used to claim improvement. A held - out test set should not drive candidate selection, threshold tuning or training decisions.
Split by the unit that creates dependence. For video, that may be sequence or event rather than individual frame. For products, it may be product instance or capture session. For sites or cameras, a location - level split may be required when scene - specific cues would otherwise leak. Synthetic derivatives of one source should remain with that source when splitting them would create dependence.
Targeted challenge slices are useful supplements, not replacements, for general evaluation. A bucket - versus - helmet slice answers whether that confusion improved. A broader held - out set answers whether the intervention harmed unrelated classes or difficult positives.
What good evaluation looks like
Tie the metric to the failure you set out to fix. For classification, precision, false - positive rate, specificity and calibration may matter. For detection, report false positives per image, per frame or per unit time at a stated operating point, and break results down by class, object size and scene when those slices matter. For retrieval, use ranking metrics that reveal whether confusable negatives outrank true matches.
Score distributions are especially useful. Ideally, the targeted hard - negative scores move downward after retraining while true - positive scores remain stable. If both distributions move down, the model may simply have become more conservative.
A Practical Hard Negative Audit
The following is a practical reporting framework for a mining project, not an industry standard. Its purpose is to make the effect of curation measurable instead of reporting only the number of candidates added.
Audit measure | What it reveals |
|---|---|
Confirmed-negative yield | How many reviewed candidates were truly negative under the current class policy. |
Unique error families after deduplication | Whether the queue contains broad confusability coverage or many copies of the same mistake. |
Source concentration | Whether one camera, video, product, site, shoot or synthetic template dominates the mined set. |
Confusion-family distribution | Whether errors are driven mainly by shape, context, texture, neighboring classes, partial objects or another mechanism. |
Persistence across model versions | Whether a confuser is a transient checkpoint artifact or a recurring model weakness. |
Guardrail movement | Whether recall, calibration or unrelated classes deteriorate while the targeted false-positive slice improves. |
If you operate a large image or video archive, this audit can be run before and after a mining round using source/session metadata and model scores. Publish numerical findings only when the audit has actually been performed; hypothetical percentages should not be presented as measured dataset facts.
Five Ways Hard Negative Training Can Backfire
• False - negative contamination: real targets are mislabeled as negatives because they are tiny, occluded, reflected, depicted or outside an annotation convention.
• Distribution distortion: training becomes saturated with unusual confusers and target confidence falls across the board.
• Shortcut replacement: the model stops using one brittle cue but learns another because the new negatives share a new artifact or source.
• Memorizing a finite error gallery: the model learns a fixed set of false positives without learning the underlying distinction.
• Ontology conflict: class definitions are unclear, so adding more boundary cases increases inconsistency rather than resolving it.
Keep template dataset versions, sampling configurations and challenge slices so the intervention remains reversible and diagnosable. You should be able to say what improved, what regressed and which data change caused it.
Hard - negative Examples In Real Projects
Personal Protective Equipment
A helmet detector may incorrectly identify white buckets, circular lights, or reflective signs as hard hats. To address this, teams can collect examples of these specific objects from relevant construction environments, verify that they do not contain helmets, and use them as hard negatives during training.
The dataset should also include difficult positive examples, such as small, partially hidden, or unusual helmet views. This helps the model learn to reject false positives without missing real helmets.
A hard - hat detector may fire on white buckets, circular lights and glossy signs. Instead of adding generic “no hard hat” images, mine those specific confusers from representative site footage, verify them, and pair them with difficult positive helmets such as small, dark, partially occluded or unusual views. If bucket false positives fall but small - helmet recall also drops, reduce the negative sampling pressure or add positive counterexamples.
Retail and Packaged Goods
Retail object recognition models may confuse physical products with printed product images, shelf labels, reflections, logos, or similar product variants.
For example, a product image printed on a poster should be labeled as a negative for physical inventory counting if the task only counts real products. However, the same image may be a positive example for a brand recognition task.
The annotation rules should clearly define which objects count as targets and which should be excluded.
Retail systems face printed product images, logos, reflections, shelf labels and near - identical variants. A picture of a product on a poster is negative for physical inventory counting but may be positive for brand recognition. Preserve SKU, store, shelf and campaign metadata so one promotional design does not dominate the queue, and use pair - specific mining for visually adjacent variants.
Wildlife and Environmental Monitoring
Wildlife detection models may confuse branches with antlers, rocks with curled animals, or shadows with animal silhouettes. Camera traps can also introduce difficult conditions such as infrared lighting, motion blur, and repeated backgrounds.
Hard negatives should be collected from environments similar to those used during deployment. Teams should also include difficult positive examples, such as small or partially hidden animals, to help protect detection performance.
Branches can resemble antlers or legs, rocks can resemble curled animals, and shadows can form familiar silhouettes. Camera traps add infrared illumination, water droplets, motion blur and repeated backgrounds. Mine empty frames from the same cameras and times of day as positive events, deduplicate by event, and protect recall on small or partially hidden animals.
Industrial Inspection
Industrial inspection models may mistake normal materials or structures for defects. For example, a seam may look like a crack, a reflection may resemble a scratch, or a machining mark may appear to be a dent.
These examples can be used as hard negatives when they are confirmed to be acceptable under the inspection rules. A separate evaluation set containing real defects should be maintained to check that the model does not become less sensitive to actual problems.
In inspection, the target may be a defect rather than an object. Hard negatives are acceptable structures that look defective: seams that resemble cracks, highlights that look like scratches, machining marks that resemble dents, or dust that resembles contamination. Keep a protected defect evaluation set so false - alarm reduction does not normalize the rare defects the system is meant to catch.
Hard Today Does Not Mean Hard Forever
A hard negative is not permanently hard. New cameras, codecs, seasons, markets, packaging, lighting or user behavior can move familiar non - targets back toward the decision boundary. Version hardness by model and time period rather than treating it as a permanent label.
Recent research continues to explore hard - negative mining under distribution shift. A 2026 construction - object - detection study, for example, mined cross - site false positives to improve cross - site generalization, illustrating that the source of the negatives matters as much as their score.
Make hard - negative curation a maintenance loop
After deployment, hard - negative curation can become a lightweight maintenance loop: observe errors, mine representative candidates, verify and tag them, update the training view, retrain and evaluate against untouched data.
Keep each round small enough to diagnose. If the team changes the architecture, augmentation, threshold and thousands of hard negatives at the same time, it becomes difficult to know what fixed the problem or what caused a regression.
Event - driven mining often makes more sense than an arbitrary calendar. Trigger a new round when false - positive rates rise, a new camera or market launches, a recurring confusion family becomes operationally significant, or a new model exposes a new boundary.

What to include in a hard - negative dataset brief
When a team buys, licenses or commissions visual data to address a known false - positive problem, “more negative images” is not a sufficient specification. A useful brief makes the target contrast testable.•
• Target class and exclusions: define what counts as positive, negative, depiction, reflection, partial object and ambiguous case.
• Known confusers: list recurring false - positive families and the environments in which they occur.
• Deployment conditions: specify cameras, viewpoints, lighting, object scale, background, geography or other variables that affect the error.
• Positive guardrails: identify difficult positives that must not be suppressed by the intervention.
• Lineage and deduplication: require source, scene, shoot, event or derivative identifiers where they are available.
• Annotation context: retain full frames, boxes, crops, review decisions and confusability tags as appropriate.
• Split policy: define which source groups must remain together and which held - out data cannot be used for mining.
• Rights and provenance: document the permitted training/evaluation use and any source restrictions.
• Acceptance criteria: define the evidence unit, coverage requirements and evaluation slices before collection begins.
When a team needs additional visual data to address recurring false positives, the dataset requirements should be defined before collection begins. Wavebreak Media offers licensed datasets and custom dataset production options that can be explored for specific computer vision requirements. Teams can define the target objects, known confusers, deployment conditions, annotation needs, metadata, and evaluation requirements before selecting or commissioning data.
A clear dataset brief helps ensure that the collected data addresses the actual model problem rather than simply increasing the number of images.
Hard - negative Dataset Quality Checklist
• Confirm that every mined negative is truly negative under the current class definition.
• Retain full - frame context for crops and detector proposals.
• Deduplicate repeated files, scenes, tracks and source events without deleting tasks - relevant variation.
• Tag the confusability mechanism and model version that surfaced each example.
• Stratify across deployment - relevant source, scene, camera, geography, scale and other variables.
• Measure effective training exposure, not only raw dataset counts.
• Pair difficult negatives with difficult positives that could otherwise be suppressed.
• Protect held - out test data from candidate selection and training.
• Track precision or false - positive gains alongside recall, calibration and unrelated - class guardrails.
• Re - score or re - mine when the model or deployment domain changes.
Frequently Asked Questions
What is hard negative mining?
Hard negative mining is a training - data strategy that finds valid negative examples a model scores as unusually target - like, verifies them, and gives useful candidates more attention during training. In object detection, the candidates are often false detections on background regions or non - target objects.
What is the difference between a hard negative and a hard example?
A hard negative is specifically a negative - labeled example that is difficult for the model. A hard example is broader and can be a difficult positive or negative. Online hard example mining therefore is not identical to hard - negative mining.
Does hard negative mining reduce false positives?
It can reduce recurring false positives when the examples are correctly labeled, representative of deployment and sampled with enough diversity. Improvement should be measured on held - out data because excessive mining can also reduce recall or make the model overly conservative.
What is the difference between hard negative mining and focal loss?
Hard - negative mining selects and often curates difficult negative examples. Focal loss changes the training objective so easy, well - classified examples contribute less loss. They can be used together, but they act at different layers of the training pipeline.
How many hard negatives should I add?
There is no universal ratio. Tune effective exposure against the targeted false - positive slice and positive guardrails. Count unique source or error groups as well as files so repeated scenes do not look like additional evidence.
Can hard negatives hurt recall?
Yes. If the negatives overlap visually with difficult positives or are oversampled, the model can lower target scores too broadly. Pair hard negatives with positive guardrails and monitor recall and score distributions after retraining.
How do you find hard negatives in object detection?
Run a frozen baseline over deployment - relevant scenes, collect high - scoring false detections or near - boundary proposals, apply diversity constraints, review them with full - frame context, group duplicates and source - related events, then retrain and evaluate on untouched data.
The Main Principle
Object recognition improves when training data helps a model learn both what the target is and what it is not. Easy negatives represent the general background, while hard negatives help the model distinguish the target from visually similar non-target objects. Both types of examples are important.
The highest - value hard - negative set is not necessarily the largest one or the one with the highest model scores. It is the one that captures recurring deployment - relevant confusions with clean labels, diverse sources, clear lineage, controlled sampling and an evaluation design that can detect side effects.
Hard negative mining is most useful when it is treated as a repeatable process. The model identifies confusing examples, reviewers verify their labels, the dataset is updated, and the model is evaluated on separate data. This process helps teams determine whether the new examples improve the intended task or introduce new problems.

Jen Togonon
