Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
lm-evaluation-harness
Commits
66421b57
Commit
66421b57
authored
Dec 08, 2023
by
lintangsutawika
Browse files
add prompt variation
parent
55eff889
Changes
76
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
125 additions
and
0 deletions
+125
-0
lm_eval/tasks/bbh/alternative_worlds/README.md
lm_eval/tasks/bbh/alternative_worlds/README.md
+34
-0
lm_eval/tasks/bbh/alternative_worlds/prompt_variation/bbh_alt_pv_zeroshot.yaml
...ernative_worlds/prompt_variation/bbh_alt_pv_zeroshot.yaml
+5
-0
lm_eval/tasks/bbh/alternative_worlds/prompt_variation/style_01/zeroshot/_zeroshot_template_yaml
...rompt_variation/style_01/zeroshot/_zeroshot_template_yaml
+12
-0
lm_eval/tasks/bbh/alternative_worlds/prompt_variation/style_01/zeroshot/boolean_expressions.yaml
...ompt_variation/style_01/zeroshot/boolean_expressions.yaml
+6
-0
lm_eval/tasks/bbh/alternative_worlds/prompt_variation/style_01/zeroshot/causal_judgement.yaml
.../prompt_variation/style_01/zeroshot/causal_judgement.yaml
+4
-0
lm_eval/tasks/bbh/alternative_worlds/prompt_variation/style_01/zeroshot/date_understanding.yaml
...rompt_variation/style_01/zeroshot/date_understanding.yaml
+4
-0
lm_eval/tasks/bbh/alternative_worlds/prompt_variation/style_01/zeroshot/disambiguation_qa.yaml
...prompt_variation/style_01/zeroshot/disambiguation_qa.yaml
+4
-0
lm_eval/tasks/bbh/alternative_worlds/prompt_variation/style_01/zeroshot/formal_fallacies.yaml
.../prompt_variation/style_01/zeroshot/formal_fallacies.yaml
+6
-0
lm_eval/tasks/bbh/alternative_worlds/prompt_variation/style_01/zeroshot/geometric_shapes.yaml
.../prompt_variation/style_01/zeroshot/geometric_shapes.yaml
+4
-0
lm_eval/tasks/bbh/alternative_worlds/prompt_variation/style_01/zeroshot/hyperbaton.yaml
...worlds/prompt_variation/style_01/zeroshot/hyperbaton.yaml
+4
-0
lm_eval/tasks/bbh/alternative_worlds/prompt_variation/style_01/zeroshot/logical_deduction_five_objects.yaml
...ion/style_01/zeroshot/logical_deduction_five_objects.yaml
+4
-0
lm_eval/tasks/bbh/alternative_worlds/prompt_variation/style_01/zeroshot/logical_deduction_seven_objects.yaml
...on/style_01/zeroshot/logical_deduction_seven_objects.yaml
+4
-0
lm_eval/tasks/bbh/alternative_worlds/prompt_variation/style_01/zeroshot/logical_deduction_three_objects.yaml
...on/style_01/zeroshot/logical_deduction_three_objects.yaml
+4
-0
lm_eval/tasks/bbh/alternative_worlds/prompt_variation/style_01/zeroshot/movie_recommendation.yaml
...mpt_variation/style_01/zeroshot/movie_recommendation.yaml
+5
-0
lm_eval/tasks/bbh/alternative_worlds/prompt_variation/style_01/zeroshot/navigate.yaml
...e_worlds/prompt_variation/style_01/zeroshot/navigate.yaml
+4
-0
lm_eval/tasks/bbh/alternative_worlds/prompt_variation/style_01/zeroshot/penguins_in_a_table.yaml
...ompt_variation/style_01/zeroshot/penguins_in_a_table.yaml
+4
-0
lm_eval/tasks/bbh/alternative_worlds/prompt_variation/style_01/zeroshot/reasoning_about_colored_objects.yaml
...on/style_01/zeroshot/reasoning_about_colored_objects.yaml
+4
-0
lm_eval/tasks/bbh/alternative_worlds/prompt_variation/style_01/zeroshot/ruin_names.yaml
...worlds/prompt_variation/style_01/zeroshot/ruin_names.yaml
+5
-0
lm_eval/tasks/bbh/alternative_worlds/prompt_variation/style_01/zeroshot/salient_translation_error_detection.yaml
...tyle_01/zeroshot/salient_translation_error_detection.yaml
+4
-0
lm_eval/tasks/bbh/alternative_worlds/prompt_variation/style_01/zeroshot/snarks.yaml
...ive_worlds/prompt_variation/style_01/zeroshot/snarks.yaml
+4
-0
No files found.
lm_eval/tasks/bbh/alternative_worlds/README.md
0 → 100644
View file @
66421b57
| Task | Prompt Variation | Output Variation | Option in Sample |
| :-----------------:| :---------------: | :---------------: |:---------------: |
| boolean_expression | Yes | Yes | No |
| causal_judgement | Yes | Yes | Yes |
| date_understanding | Yes | Yes | Yes |
| disambiguation_qa | Yes | Yes | Yes |
| dyck_languages | Yes | No | No |
| formal_fallacies | Yes | Yes | Yes |
| geometric_shapes | Yes | Yes | Yes |
| hyperbaton | Yes | Yes | Yes |
| logical_deduction_five_objects| Yes | Yes | Yes |
| logical_deduction_seven_objects| Yes | Yes | Yes |
| logical_deduction_three_objects| Yes | Yes | Yes |
| movie_recommendation| Yes | Yes | Yes |
| multistep_arithmetic_two| Yes | No | No |
| navigate | Yes | Yes | Yes |
| object_counting | Yes | No | No |
| penguins_in_a_table| Yes | Yes | Yes |
| reasoning_about_colored_objects| Yes | Yes | Yes |
| ruin_names | Yes | Yes | Yes |
| salient_translation_error_detection| Yes| Yes | Yes |
| snarks | Yes | Yes | Yes |
| sports_understanding| Yes | Yes | No |
| temporal_sequences | Yes | Yes | Yes |
| tracking_shuffled_objects_five_objects| Yes| Yes | Yes |
| tracking_shuffled_objects_seven_objects| Yes| Yes | Yes |
| tracking_shuffled_objects_three_objects| Yes| Yes | Yes |
| web_of_lies | Yes | Yes | No |
| word_sorting | Yes | No | No |
Notes:
-
`web_of_lies`
already starts with
`Question: `
-
Tasks with options are
`Options: (A) ...`
(multiple choice) or
`Options: - ...`
(binary choice)
\ No newline at end of file
lm_eval/tasks/bbh/alternative_worlds/prompt_variation/bbh_alt_pv_zeroshot.yaml
0 → 100644
View file @
66421b57
group
:
bbh_alt_pv_zeroshot
task
:
-
bbh_alt_pv_01_zeroshot
-
bbh_alt_pv_02_zeroshot
-
bbh_alt_pv_03_zeroshot
lm_eval/tasks/bbh/alternative_worlds/prompt_variation/style_01/zeroshot/_zeroshot_template_yaml
0 → 100644
View file @
66421b57
group: bbh_alt_pv_01_zeroshot
dataset_path: lukaemon/bbh
output_type: multiple_choice
test_split: test
doc_to_text: !function ../../styles.styles_01
doc_to_target: !function ../../styles.doc_to_target
doc_to_choice: !function ../../styles.doc_to_choice
num_fewshot: 0
metric_list:
- metric: acc
- metric: acc_norm
- metric: brier_score
\ No newline at end of file
lm_eval/tasks/bbh/alternative_worlds/prompt_variation/style_01/zeroshot/boolean_expressions.yaml
0 → 100644
View file @
66421b57
"
dataset_name"
:
"
boolean_expressions"
"
description"
:
"
Evaluate
the
result
of
a
random
Boolean
expression.
\n\n
"
"
include"
:
"
_zeroshot_template_yaml"
"
task"
:
"
bbh_alt_pv_01_zeroshot_boolean_expressions"
"
doc_to_target"
:
target
"
doc_to_choice"
:
[
"
True"
,
"
False"
]
lm_eval/tasks/bbh/alternative_worlds/prompt_variation/style_01/zeroshot/causal_judgement.yaml
0 → 100644
View file @
66421b57
"
dataset_name"
:
"
causal_judgement"
"
description"
:
"
Answer
questions
about
causal
attribution.
\n\n
"
"
include"
:
"
_zeroshot_template_yaml"
"
task"
:
"
bbh_alt_pv_01_zeroshot_causal_judgement"
lm_eval/tasks/bbh/alternative_worlds/prompt_variation/style_01/zeroshot/date_understanding.yaml
0 → 100644
View file @
66421b57
"
dataset_name"
:
"
date_understanding"
"
description"
:
"
Infer
the
date
from
context.
\n\n
"
"
include"
:
"
_zeroshot_template_yaml"
"
task"
:
"
bbh_alt_pv_01_zeroshot_date_understanding"
lm_eval/tasks/bbh/alternative_worlds/prompt_variation/style_01/zeroshot/disambiguation_qa.yaml
0 → 100644
View file @
66421b57
"
dataset_name"
:
"
disambiguation_qa"
"
description"
:
"
Clarify
the
meaning
of
sentences
with
ambiguous
pronouns.
\n\n
"
"
include"
:
"
_zeroshot_template_yaml"
"
task"
:
"
bbh_alt_pv_01_zeroshot_disambiguation_qa"
lm_eval/tasks/bbh/alternative_worlds/prompt_variation/style_01/zeroshot/formal_fallacies.yaml
0 → 100644
View file @
66421b57
"
dataset_name"
:
"
formal_fallacies"
"
description"
:
"
Distinguish
deductively
valid
arguments
from
formal
fallacies.
\n\n
"
"
include"
:
"
_zeroshot_template_yaml"
"
task"
:
"
bbh_alt_pv_01_zeroshot_formal_fallacies"
"
doc_to_target"
:
target
"
doc_to_choice"
:
[
"
valid"
,
"
invalid"
]
\ No newline at end of file
lm_eval/tasks/bbh/alternative_worlds/prompt_variation/style_01/zeroshot/geometric_shapes.yaml
0 → 100644
View file @
66421b57
"
dataset_name"
:
"
geometric_shapes"
"
description"
:
"
Name
geometric
shapes
from
their
SVG
paths.
\n\n
"
"
include"
:
"
_zeroshot_template_yaml"
"
task"
:
"
bbh_alt_pv_01_zeroshot_geometric_shapes"
lm_eval/tasks/bbh/alternative_worlds/prompt_variation/style_01/zeroshot/hyperbaton.yaml
0 → 100644
View file @
66421b57
"
dataset_name"
:
"
hyperbaton"
"
description"
:
"
Order
adjectives
correctly
in
English
sentences.
\n\n
"
"
include"
:
"
_zeroshot_template_yaml"
"
task"
:
"
bbh_alt_pv_01_zeroshot_hyperbaton"
lm_eval/tasks/bbh/alternative_worlds/prompt_variation/style_01/zeroshot/logical_deduction_five_objects.yaml
0 → 100644
View file @
66421b57
"
dataset_name"
:
"
logical_deduction_five_objects"
"
description"
:
"
A
logical
deduction
task
which
requires
deducing
the
order
of
a
sequence
of
objects.
\n\n
"
"
include"
:
"
_zeroshot_template_yaml"
"
task"
:
"
bbh_alt_pv_01_zeroshot_logical_deduction_five_objects"
lm_eval/tasks/bbh/alternative_worlds/prompt_variation/style_01/zeroshot/logical_deduction_seven_objects.yaml
0 → 100644
View file @
66421b57
"
dataset_name"
:
"
logical_deduction_seven_objects"
"
description"
:
"
A
logical
deduction
task
which
requires
deducing
the
order
of
a
sequence
of
objects.
\n\n
"
"
include"
:
"
_zeroshot_template_yaml"
"
task"
:
"
bbh_alt_pv_01_zeroshot_logical_deduction_seven_objects"
lm_eval/tasks/bbh/alternative_worlds/prompt_variation/style_01/zeroshot/logical_deduction_three_objects.yaml
0 → 100644
View file @
66421b57
"
dataset_name"
:
"
logical_deduction_three_objects"
"
description"
:
"
A
logical
deduction
task
which
requires
deducing
the
order
of
a
sequence
of
objects.
\n\n
"
"
include"
:
"
_zeroshot_template_yaml"
"
task"
:
"
bbh_alt_pv_01_zeroshot_logical_deduction_three_objects"
lm_eval/tasks/bbh/alternative_worlds/prompt_variation/style_01/zeroshot/movie_recommendation.yaml
0 → 100644
View file @
66421b57
"
dataset_name"
:
"
movie_recommendation"
"
description"
:
"
Recommend
movies
similar
to
the
given
list
of
movies.
\n\n
"
"
include"
:
"
_zeroshot_template_yaml"
"
task"
:
"
bbh_alt_pv_01_zeroshot_movie_recommendation"
"
process_docs"
:
!function
../../utils.fix_movie_recommendation
\ No newline at end of file
lm_eval/tasks/bbh/alternative_worlds/prompt_variation/style_01/zeroshot/navigate.yaml
0 → 100644
View file @
66421b57
"
dataset_name"
:
"
navigate"
"
description"
:
"
Given
a
series
of
navigation
instructions,
determine
whether
one
would
end
up
back
at
the
starting
point.
\n\n
"
"
include"
:
"
_zeroshot_template_yaml"
"
task"
:
"
bbh_alt_pv_01_zeroshot_navigate"
lm_eval/tasks/bbh/alternative_worlds/prompt_variation/style_01/zeroshot/penguins_in_a_table.yaml
0 → 100644
View file @
66421b57
"
dataset_name"
:
"
penguins_in_a_table"
"
description"
:
"
Answer
questions
about
a
table
of
penguins
and
their
attributes.
\n\n
"
"
include"
:
"
_zeroshot_template_yaml"
"
task"
:
"
bbh_alt_pv_01_zeroshot_penguins_in_a_table"
lm_eval/tasks/bbh/alternative_worlds/prompt_variation/style_01/zeroshot/reasoning_about_colored_objects.yaml
0 → 100644
View file @
66421b57
"
dataset_name"
:
"
reasoning_about_colored_objects"
"
description"
:
"
Answer
extremely
simple
questions
about
the
colors
of
objects
on
a
surface.
\n\n
"
"
include"
:
"
_zeroshot_template_yaml"
"
task"
:
"
bbh_alt_pv_01_zeroshot_reasoning_about_colored_objects"
lm_eval/tasks/bbh/alternative_worlds/prompt_variation/style_01/zeroshot/ruin_names.yaml
0 → 100644
View file @
66421b57
"
dataset_name"
:
"
ruin_names"
"
description"
:
"
Select
the
humorous
edit
that
'ruins'
the
input
movie
or
musical
artist
name.
\n\n
"
"
include"
:
"
_zeroshot_template_yaml"
"
task"
:
"
bbh_alt_pv_01_zeroshot_ruin_names"
"
process_docs"
:
!function
../../utils.fix_ruin_names
\ No newline at end of file
lm_eval/tasks/bbh/alternative_worlds/prompt_variation/style_01/zeroshot/salient_translation_error_detection.yaml
0 → 100644
View file @
66421b57
"
dataset_name"
:
"
salient_translation_error_detection"
"
description"
:
"
Detect
the
type
of
error
in
an
English
translation
of
a
German
source
sentence.
\n\n
"
"
include"
:
"
_zeroshot_template_yaml"
"
task"
:
"
bbh_alt_pv_01_zeroshot_salient_translation_error_detection"
lm_eval/tasks/bbh/alternative_worlds/prompt_variation/style_01/zeroshot/snarks.yaml
0 → 100644
View file @
66421b57
"
dataset_name"
:
"
snarks"
"
description"
:
"
Determine
which
of
two
sentences
is
sarcastic.
\n\n
According
to
Cambridge
University
Dictionary,
sarcasm
is
\"
the
use
of
remarks
that
clearly
mean
the
opposite
of
what
they
say,
made
in
order
to
hurt
someone's
feelings
or
to
criticize
something
in
a
humorous
way.
\"
Sarcastic
sentences
often
contain
satirical
or
ironic
utterances,
hyperboles,
ambivalent
or
witty
remarks.
\n\n
"
"
include"
:
"
_zeroshot_template_yaml"
"
task"
:
"
bbh_alt_pv_01_zeroshot_snarks"
Prev
1
2
3
4
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment