AI GLOSSARY · AI CONCEPTS

Mean average precision (mAP)

Markdown version

Definition

Average precision summarizes ranked precision and recall under a stated evaluation convention. Mean average precision averages AP over queries or classes, sometimes with additional benchmark settings. Report the task and protocol: similarly named scores can use different conventions.

Also called: map metric, map object detection.

In plain language

Imagine a search engine returns ten results and you check which are actually useful. Average precision rewards putting the useful ones near the top: finding a good result at position one counts for more than finding it at position nine. Doing that for many different searches and averaging the results gives mean average precision. In image tasks, the same idea is used to score a model that draws boxes around objects. It gives one number, which is convenient, but it hides detail: two systems with the same score can fail in different ways, and the number depends on how 'correct' was defined.

Technical definition

In information retrieval, average precision for one query walks down the ranked list and sums the precision at each rank where a relevant document appears, divided by the number of relevant documents. Mean average precision is the mean of that value over a set of queries. scikit-learn defines average precision for classifiers as the weighted mean of precisions at each threshold, weighted by the increase in recall, and notes this is not the trapezoidal area under the precision-recall curve. In object detection, Ultralytics describes mAP as AP averaged across classes, with mAP50 using an IoU threshold of 0.50 and mAP50-95 averaging over thresholds from 0.50 to 0.95. Definitions vary between benchmarks.

Worked examples in this catalogue

Catalogue examples point at a skill, guide or coding tool listed on this site, with what to run and what you see. An example marked illustrative describes the item from its own documentation; it was not executed for this page. Platform Scores are our assessment under a published method, not a safety guarantee.

  1. Skill by Skill Almanac · Illustrative, not executed

    llm-eval-test-sets 57/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    An eval dataset for an LLM feature, with a checker for duplicates, missing graders, imbalance and leakage.
    Why it exercises the concept
    A ranking score like mAP needs a test set with known relevant items. The skill builds and checks that kind of test set, though it does not compute mAP itself.
  2. Skill by Skill Almanac · Illustrative, not executed

    rag-chunking-planner 56/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    Your documents chunked by three strategies, with defects and offline recall reported for each, so chunk settings are chosen with numbers.
    Why it exercises the concept
    It measures retrieval offline with recall. mAP is a related offline measure that also rewards placing correct items high in the list.
  3. Guide · Illustrative, not executed

    What Is RAG? Retrieval-Augmented Generation Explained

    What you see
    The guide describes indexing documents and querying them, and advises logging the top retrieved chunks for each failing question.
    Why it exercises the concept
    Logging the top retrieved chunks gives you the ranked lists that a ranking score like mAP would be computed on.

How it shows up when you use agents

mAP can appear when an agent helps evaluate retrieval or object detection. In retrieval work, an agent or a team compares search setups on a set of test queries with known relevant documents, and mAP is one score for that. In computer-vision work, model cards and tools report mAP for an object detection model, often with the thresholds written as mAP50 or mAP50-95.

What breaks when it is misunderstood: people compare mAP numbers from different benchmarks as if they were the same quantity. Definitions vary, such as which IoU threshold counts a box as correct and whether the curve is interpolated. A single score also hides whether the system misses items or ranks them low. The name is also confusing, because "AP" means average precision here and not "accuracy".

A next action: when an agent reports mAP, ask which task it is (ranking or detection), which thresholds were used and on what test set. Look at precision and recall alongside it. For retrieval, build a small labelled test set first, as the llm-eval-test-sets skill helps you do, and inspect real failures after the score. Ranking tweaks such as reranking are tested with metrics of this kind.

Worked example (illustrative)

For one two-item ranking, actual relevance [0,1] with scores [0.9,0.8] gives average precision 0.5 in scikit-learn, while trapezoidal precision-recall area is 0.25. If a second query has AP 1, their unweighted mean AP is 0.75. These computed examples use specified binary relevance and no tied scores; they do not define every object-detection benchmark convention.

Common confusions

  • Average precision versus mean average precision. Average precision scores one query or one class. Mean average precision averages those scores across queries or classes.
  • mAP versus accuracy. mAP depends on the order of ranked results or on confidence scores.
  • mAP50 versus mAP50-95. The first uses a single IoU threshold of 0.50. The second averages over thresholds from 0.50 to 0.95, as Ultralytics describes.
  • Myth. A higher mAP means better results for your use. It is a score on one test set under one definition, and your data may differ.

More in AI concepts

Next steps

  1. What Is RAG? Retrieval-Augmented Generation Explained The long-form guide.
  2. llm-eval-test-sets A skill that exercises it.
  3. Reranking Related term.
  4. Object detection Related term.
  5. All glossary terms A to Z and by family.

Sources

Definitions are written by Skill Almanac from these sources and were checked against them on 2026-11-24. Wikipedia is never the only source.

Review record

Last verified

Drafted by Claude (original draft) and Codex (automated revisions); sources and example targets checked by Independent automated source review (OpenAI Codex); not human peer review on 2026-11-24. Last verified .

Change log (5)
  • : Independent automated factual/example review completed. Cached US query estimate aligned to receipt; no traffic promise. Final technical gate recorded separately; publication disabled.
  • : First version.
  • : Verifier pass: removed ambiguous aliases and queries, cut two unsourced sentences.
  • : Metric and evaluation conventions corrected; independent exact-version review pending.
  • : Automated review completed; approved for the staged public release. Search indexing is controlled by the release configuration.