few-shot setting

#4
by ryin - opened

I found that all the inputs and targets text are in zero-shot prompt setting by default.
Take the task "sports_understanding" for example, a sample from the dataset is like:

{'idx': 641,
'inputs': 'Determine whether the following statement or statements are plausible or implausible:\n'
'Statement: P.J. Washington pitched a shutout\n'
'Plausible/implausible?',
'multiple_choice_scores': [0, 1],
'multiple_choice_targets': ['plausible', 'implausible'],
'targets': ['implausible']
}

There comes 2 problems for me.

According to the official repo(https://github.com/google/BIG-bench/tree/main/bigbench/benchmark_tasks/sports_understanding#prompting), a few-shot prompt is composed of a prefix context and multiple exemplar QA pairs. If I just simply concatenate 3 data samples to create 2-shot input, the prefix("'Determine whether the following statement or statements are plausible or implausible") will repeat 3 times, which is redundant.

Besides, I want to apply some other prompt format to the input and target texts, so I hope I can access the origin version of text. (eg. "P.J. Washington pitched a shutout")

Is there any plan to support these features in the future?

Sign up or log in to comment