Add Redlite tasks for safety benchmarking #2020
Open
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.
Hello,
I've added a red teaming oriented group of tasks that have been featured in this paper
I've omitted the tasks based on
realtoxicity
as the original dataset is already featured inlm_eval
.The PR includes 7 tasks designed to evaluate various safety aspects of an LLM, as well as a custom metric,
best-of-pem-rouge
which takes computes both a rouge score, and a "prefix exact match" and picks the highest value. Details and justifications can be found in the paper.To test the integration, i ran all the tasks on two models, one local (gemma 2B) and one online (gpt4). I compared these results with the ones from the paper (detailed run results can be found here) and it produced the following :
There are small differences, for which there are three likely explanations :
redlite
is leveraging thesystem prompt
part of the datasets when the model supports it;lm_eval
does notIn general, most of the results are close, so i believe the implementation is functioning properly.