ThoughtSource icon indicating copy to clipboard operation
ThoughtSource copied to clipboard

evaluation for duplicated answer choices

Open KonstantinHebenstreit opened this issue 3 years ago • 1 comments

In datasets are sometimes examples with 4 or 5 answer choices. I think what has been done is just to duplicate one of the answer choices to always have 5 choices. The evaluation script does not include this option. Since we put letters in front of the choices (A,B,C,D,E), the model can also answer with a letter. But if the right choice it as two places it has two letters. This can lead to wrong evaluation scores based on the letters.

First example is commonsense_qa, but there might be others.

KonstantinHebenstreit avatar Mar 08 '23 12:03 KonstantinHebenstreit

Helper code to find those examples:

coll["commonsense_qa"].filter(lambda example: len(set(example["choices"]))==4)

KonstantinHebenstreit avatar Mar 08 '23 20:03 KonstantinHebenstreit