# A reading-test grader reported a best score of 50. Its own rules gave 100.

One reading question had no answer in its passage. We submitted a single period. The grader’s cleaning rule removes punctuation, so the period became an empty answer and earned full credit. Our answer to a second question was the correct word, ‘granite.’

The two questions and responses were invented for this check. That pair earned 100 out of 100 at one allowed cutoff for treating a response as blank. Yet the same software reported 50 when we asked for the best score across settings. The discrepancy came down to when it looked at the period: before or after cleaning the answer.

We supplied the responses ourselves to test two fixed graders for the Stanford Question Answering Dataset version 2 (SQuAD v2), one from Stanford and one from Hugging Face. We kept `granite` on the answerable question. On the question with no answer, we tried punctuation, whitespace and a word removed by the grading rules, then two control responses. [Hugging Face metric fields](https://github.com/huggingface/evaluate/blob/a5db2ad54aaeadf15c7aa1f056bc6f7bbeeb7e5f/metrics/squad_v2/README.md#L60-L69) · [Pinned Stanford evaluator](https://github.com/rajpurkar/SQuAD-explorer/blob/eee5fdbf62f8613a7812b03419e6b29617b74fd1/evaluate-v2.0.py)

## When did the cutoff leave the answer alone?

Each response comes with a probability that the question has no answer. If that probability is above the chosen cutoff, the grader treats the response as blank. We chose these probabilities for the test. We set the value to 0.2 for the unanswerable question and 0.8 for the answerable question.

Consider a cutoff of 0.8. The first probability is below it and the second is exactly equal to it. Neither is above it, so the grader cleans and scores both submitted responses. The period becomes empty and `granite` remains `granite`. Both earn credit. We scored directly at 0, 0.2, 0.8 and 1 for each response we tried on the unanswerable question. [Pinned Hugging Face wrapper](https://huggingface.co/spaces/evaluate-metric/squad_v2/blob/53813ccf05135a8bfbae5a107258205981c400c4/squad_v2.py#L116-L137) · [Cutoff rule](https://github.com/huggingface/evaluate/blob/a5db2ad54aaeadf15c7aa1f056bc6f7bbeeb7e5f/metrics/squad_v2/compute_score.py#L126-L134)

## The best-score calculation saw characters that direct grading removed

The table compares the highest direct score across the tested cutoffs with the search’s reported best, using two measures. Exact match checks the cleaned text against the accepted answer. F1 allows partial credit for words in common. In this example 100 on either measure means both questions got full credit.

The cleaning rule removes punctuation, whitespace-only answers and common English articles such as `the`. A period, whitespace and `the` each cleaned down to nothing. All three reached 100 in direct scoring. In the best-score calculation, both programs checked whether the original response contained any characters. All three did. The search started with credit for treating the unanswerable question as blank. As it passed that question’s probability, the uncleaned response cost it the point. Later `granite` earned one point back. Its best tally stayed at one out of two, or 50.

An answer empty from the start gave 100 both ways. The word `maple` still contained a word after cleaning. Both calculations agreed on a best of 50 for that case. [Answer cleaning and scoring](https://github.com/huggingface/evaluate/blob/a5db2ad54aaeadf15c7aa1f056bc6f7bbeeb7e5f/metrics/squad_v2/compute_score.py#L60-L102) · [Best-score search](https://github.com/huggingface/evaluate/blob/a5db2ad54aaeadf15c7aa1f056bc6f7bbeeb7e5f/metrics/squad_v2/compute_score.py#L247-L276)

**Highest direct score across the tested cutoffs and reported best, on a 0–100 scale. Each number applies separately to exact match and F1.**

| Response to the unanswerable question | After cleaning | Highest direct score, exact match and F1 | Reported best, exact match and F1 |
| --- | --- | ---: | ---: |
| Empty response | Empty | 100 | 100 |
| Period (`.`) | Empty | 100 | 50 |
| Spaces and a tab | Empty | 100 | 50 |
| The word `the` | Empty | 100 | 50 |
| The word `maple` | `maple` | 50 | 50 |

## Check the settings at which a decision can change

For the strict ‘above the cutoff’ rule in these two scorers, calculate the score at the lowest allowed cutoff and at every distinct no-answer probability in range. Between those boundaries no answer changes from blank to scored text. We also checked the upper endpoint 1. Save the exact cutoff beside each score you report. This checks the calculation on the supplied answers without drawing any conclusion about a model’s reading ability.

## Related research

- [Why did a cutoff near 78% score worse when we actually used it?](https://sapien1.com/research/check-cross-validation-threshold-score)
- [Why two math graders disagreed on the answer 2](https://sapien1.com/research/check-math-exact-match)

[Language tests](https://sapien1.com/research#language)
