open-compass / open-compass/opencompass

[Feature] add acc_norm evaluation

Open
#471 0 comments 0 reactions 1 assignee View on GitHub

@Leymore is already working on this.

Since Oct 12, 2023.

Dominant language
Python
Stars
7.5k
Forks
869
Avg merge
17h 52m
Merged PRs (30d)
13

Description

Describe the feature

lm-evaluation-harness supports acc_norm evaluation, which is used in huggingface leaderboard

ARC: 25-shot, arc-challenge (acc_norm)
HellaSwag: 10-shot, hellaswag (acc_norm)

acc_norm is calculated by the result (answer logits sum) divided by answer length

acc_norm = 1.0 if np.argmax(results / completion_len) == gold else 0.0

In ARC and hellaswag datasets, different answers have different lengths, so longer answers are likely to have larger logits sum, so it should be normalized with answer length to give a accurate prediction.

Will you implement it?
  • I would like to implement this feature and create a PR!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.