Add ce_loss metric and TriviaQA/NaturalQuestions tasks #520
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
With @yulinggu-cs we have added a new
ce_loss
metric which just scores the cross-entropy loss of the gold answer to tasks, which should have positive correlation with actual task performance.As examples of using this metric, we added these new tasks:
trivia_qa_wiki_ppl
: TrivaQA 8k validation set (Wiki subset, used in Llama-2 paper)natural_qs_open_ppl
: NaturalQuestions (nq_open validation subset, 3.6k questions, used in Llama papers)arc_easy_ppl
: Sample example of adding a CE-loss version of existing task (this is somewhat inefficient, redoing part of the earlier evaluation, so should be optimized if we end up doing this for existing tasks)We log tasks with this metric to a different tab in wandb.