The standard scorecard for search, recommendation and object detection. Rewards putting the right results first, not just finding them eventually.
| Full name | Mean Average Precision |
| What it measures | How well a system ranks relevant results near the top of a list, averaged across many queries |
| Formula | For each query, average the precision measured at every point a relevant result is found; then average that across all queries |
| Typical range | 0 to 1 |
| Used for | Information retrieval, recommender systems, and object detection |
| Best used for | Ranking tasks where order matters, not just whether the right items appear somewhere in the list |
| Pair with | NDCG when relevance comes in degrees rather than a strict yes-or-no |
Search engines, recommender systems and object detectors all share the same underlying problem: given a query, rank a set of candidates so the good ones come first. mAP was built in classic information retrieval research to score exactly that, and it later found a second life scoring object detectors, judging whether a model’s bounding boxes around objects in an image are both correctly placed and correctly labelled.
For a single query, walk down the ranked list of results and, at every point a relevant result appears, compute the precision so far (relevant results found, divided by results examined up to that point). Average those precision values together to get the Average Precision (AP) for that one query. Then average AP across every query in the test set to get mAP. In object detection, the same idea gets layered with a geometric criterion: a predicted bounding box only counts as a correct detection if it overlaps the true box by more than some threshold, measured by Intersection over Union (IoU), and the influential COCO benchmark, introduced in 2014, reports mAP averaged across IoU thresholds from 0.5 to 0.95 rather than picking just one.
Say a search engine returns five documents for a query, and documents at ranks 1, 3 and 4 are actually relevant, while ranks 2 and 5 are not. The precision at rank 1 is 1/1 = 1.0. At rank 3, it is 2/3 ≈ 0.67. At rank 4, it is 3/4 = 0.75. Average those three precision values: (1.0 + 0.67 + 0.75) ÷ 3 ≈ 0.81, which is the Average Precision for this one query. A system that found the same three relevant documents but buried them at ranks 1, 4 and 5 instead would score noticeably lower, even though it found exactly the same relevant set, because mAP specifically rewards surfacing relevant results earlier.
mAP is the standard metric in information retrieval evaluation going back to the TREC conferences, in recommender system research, and in object detection, where it has been the headline leaderboard metric since the PASCAL VOC challenge in 2007 and remains so for COCO and nearly every detection benchmark since.
Unlike simple precision or recall at a fixed cut-off, mAP captures the full ranking, rewarding a system that puts good results first over one that finds the same results but buries them. Averaging across many queries gives a stable, reliable signal that is not dominated by any single easy or hard query. And it has decades of use across both retrieval and vision, so results are directly comparable to a huge body of prior work.
mAP treats relevance as binary in its classic retrieval form, either a result is relevant or it is not, which does not fit situations where some results are clearly better than others rather than simply relevant or irrelevant; that gradation is exactly what NDCG was designed to handle instead. It can also be sensitive to how ties and missing relevant documents are handled, details that differ subtly between implementations and can shift scores in ways that are easy to miss. In object detection specifically, the IoU threshold chosen (or the range averaged over, as in COCO) has a large effect on the final number, and results computed under different IoU conventions are not directly comparable.
I use mAP as the default scorecard for ranking and detection tasks where relevance is genuinely binary, or close enough to it. The moment relevance comes in real degrees, some results being excellent, others merely acceptable, I move to NDCG instead, since it was built specifically to reward that distinction. For object detection work, I always report the IoU convention alongside the mAP number, since the two numbers are meaningless without each other.