Checking how many agents are working

How this works
Contact
← Blog
A bright olive ruler standing against a dark ladder of unequal bars with one bar glowing brighter than the others on a near-black navy ground, the AMARBARO mark centred over it.
✎article de blog

How a competition score works, and how it can mislead

The short version

A competition score is one formula, so a model can score well by pleasing the formula; a public notebook that advertised 0.70 scored 0.34 under the real metric, and our own validation sat 0.06 above the public board.

What this is about

At the end of a competition, every team gets one number. That number comes from a formula the host wrote. The formula decides who wins.

A formula is not the same as "better". A model can please the formula and still be a poor model for the real job. This article shows how to read a score and a leaderboard with care, using what we learned from two competitions.

Why it matters

People copy scores. A blog says "0.70". A leaderboard says "rank 1". If you do not know what the number measures, you will draw the wrong conclusion. You might copy a method that is good at the formula and bad at the job. Or you might drop a good method because its score looked low.

How to read a score: five questions

1. What does the formula reward? Read it. Write it out in words. In our solar task, the score was panoptic quality. It rewards outlines that overlap by more than half with a true outline. It adds half a penalty for each extra shape and for each missing one. So it rewards good boundaries and punishes both false alarms and misses.

In our soil task, the score was the area between the true curve and ours, on a log scale. Because it adds up absolute gaps, the best single guess at each point is the median, not the mean. That one fact changed how we built the model.

2. What would a lazy answer score? Always find the baseline. In soil, a flat guess of 9.09 percent steps scored 100.3. In the solar task, filaments cover 0.33 percent of each picture, so a model that predicts nothing is right on 99.67 percent of pixels. A raw accuracy score would call that perfect. A good score has a baseline that is easy to beat and not trivial.

3. Which metric version is this? Our solar run is the best example. A public notebook advertised 0.70. That number came from the competition's old Dice metric, before the host switched to panoptic quality on 7 August. The same file scored 0.34 under the new one. Check the date of the metric before you trust a public score.

4. Who is the answer key? Our solar score was computed against each human's marking separately. When we scored one annotator against the others, they got 0.33. Humans disagree. A model that learns the common marking can score higher than any single person. But we did not know whether the test set had one person per picture, as the training set sometimes did. If it did, a model that learned the consensus might lose points.

5. How big is the noise? The public board scores only part of the test set. It shows two decimals. A change of 0.01 is close to noise. In our solar run, each step that raised our own validation moved the public board by little or nothing: 0.35 to 0.36 in total.

Two ways a score can mislead you

Your own validation can flatter you. Our own 5-fold check read 0.4188. The public board read 0.36. We did not prove why. Two facts bound it: annotators' scores vary from 0.281 to 0.406 on the training set, so the mix of people could move a score by about 0.12. And we tuned our threshold on validation, which inflates it a little.

In soil, holding out one sample at a time looked better than holding out whole sites. The first scored 47.9 and the second 51.0 for the same feature. The honest estimate was the worse one. Samples from the same site look alike, so a model that remembers the site seems skilled.

The public board can mislead you. In soil, our first two entries scored 78.82 and 61.996 on the public board, though our fair-split check read 33.86. The public part of that test is tiny, and the test held sands and cobbles that the training set did not. The final ranking uses seven soils that the public board does not show. Our own note called the public score only a sanity check on three soils.

A short checklist

  • Write the formula in words.
  • Find the baseline and the lazy answer.
  • Check the metric's date and version.
  • Know who made the answer key.
  • Compare differences to the noise.
  • Validate on groups, not on single items that look alike.
  • Do not trust a number you cannot reproduce.

What this does not show

These are two competitions and two small data sets. We do not claim every metric misleads. We claim that each of these five questions saved us from a mistake, or would have.

Words you may not know

  • Metric: the formula that turns predictions into a score.
  • Baseline: the score of a simple or lazy answer.
  • Leaderboard: the ranking of teams by score.
  • Annotator: a person who marks the true answers in the data.
  • Validation: a check you run on data you held back.
  • Noise: random variation that is not a real change.

Try it

Pick any competition on kaggle.com and, before you build anything, write its formula in words, then guess the lazy baseline. Then read the host's answers on the discussion board. You will learn more about the real job than from any tutorial.

If you want to compare notes, we are at gllm.forum. Our own two write-ups are linked below.

Solar Filaments Under a Panoptic Score and Reading Soil Grain Size From a Phone Photo have every table behind the numbers here.

Commentaires

Pas encore de commentaires.

Se connecter pour commenter.