Datasets:

Modalities:
Text
Formats:
json
Languages:
English
Size:
n<1K
ArXiv:
Tags:
License:
File size: 12,892 Bytes
fa78b2e
8876495
 
 
 
 
 
fa78b2e
c6ad092
 
 
 
970dcbf
c6ad092
 
6fc5ddb
 
3bbd5c2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dfa96ab
 
35e591e
 
 
 
dfa96ab
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
---
configs:
- config_name: all
data_files:
  - split: train
  - path: commongen_hard_nohuman.json

license: apache-2.0
task_categories:
- text-generation
language:
- en
pretty_name: CommonGen-Lite
size_categories:
- n<1K
datasets:
- commongen
---
 


# CommonGen-Lite
Evaluating LLMs with [CommonGen](https://inklab.usc.edu/CommonGen/) using [CommonGen-lite](https://huggingface.co/datasets/allenai/commongen_lite) dataset (400 examples + 900 human references). 
We use GPT-4 to evaluate the constrained text generation ability of LLMs. Please see more in our [paper](https://arxiv.org/abs/1911.03705).

Github: [https://github.com/allenai/CommonGen-Eval](https://github.com/allenai/CommonGen-Eval)


## Leaderboard 

| model                      |   len |   cover |   pos |   win_tie |   overall |
|----------------------------|-------|---------|-------|-----------|-----------|
| human                      | 12.84 |   99.00 | 98.11 |    100.00 |     97.13 |
| gpt-4-0613                 | 14.13 |   97.44 | 91.78 |     50.44 |     45.11 |
| gpt-4-1106-preview         | 14.90 |   96.33 | 90.11 |     50.78 |     44.08 |
| gpt-3.5-turbo              | 12.76 |   92.11 | 83.00 |     49.78 |     38.06 |
| Yi-34b-chat                | 13.45 |   80.11 | 75.11 |     39.44 |     23.73 |
| vicuna-13b-v1.5            | 15.02 |   85.89 | 79.56 |     27.44 |     18.75 |
| tulu-2-dpo-70b             | 17.89 |   88.78 | 80.11 |     23.00 |     16.36 |
| Mixtral-8x7B-Instruct-v0.1 | 20.15 |   84.11 | 73.33 |     17.89 |     11.03 |
| Llama-2-7b-chat-hf         | 16.06 |   88.56 | 76.44 |     15.44 |     10.45 |
| zephyr-7b-beta             | 15.76 |   82.44 | 72.78 |     16.89 |     10.13 |
| Yi-6b-chat                 | 13.32 |   71.67 | 63.56 |     22.11 |     10.07 |

- **length**: the number of words on average in the generated sentences
- **cover**: the percentage of examples where all given concepts are covered by model outputs 
- **PoS**: the percentage of examples where the part-of-speech (PoS) of ALL given concepts are correct in model outputs
- **win_tie**: the percentage of examples where GPT-4-turbo prefers the model outputs over the human-written references (or thinks they are equally good)
- **overall**: `cover%` x `pos%` x `win_tie%` 

Link: [https://inklab.usc.edu/CommonGen/leaderboard.html](https://inklab.usc.edu/CommonGen/leaderboard.html)


To make your model on the leaderboard, please create an issue or PR to submit the inference script. I'll run the following evaluation script and update the leaderboard. 
You will not need to run the evaluation script yourself (the human references are hidden to avoid data leakage).


## Prompts


<details>
<summary>Instruction Prompt Template  (2-shots prompting)</summary>

```markdown
# Instruction

Given several concepts (i.e., nouns or verbs), write a short and simple sentence that contains *all* the required words.
The sentence should describe a common scene in daily life, and the concepts should be used in a natural way.

# Examples

## Example 1
- Concepts: "dog(noun), frisbee(noun), catch(verb), throw(verb)"
- Sentence: The dog catches the frisbee when the boy throws it into the air.

## Example 2
- Concepts: "apple(noun), place(verb), tree(noun), pick(verb)"
- Sentence: A girl picks some apples from a tree and places them into her basket.

# Your Task 

- Concepts: "{$concept_list}"
- Sentence: 
```

</details>


<details>
<summary>Evaluation Prompt Template (Pairwise Comparison)</summary>

```markdown
# Data

Given several concepts (i.e., nouns or verbs), we ask models to write a short and simple sentence that contains *all* the required words. 
The sentence should describe a common scene in daily life, and the concepts should be used in a natural way.

Concepts: "{$concept_list}"

Model A: "{$candidate_A}"

Model B: "{$candidate_B}"

# Your Task

Your task is to choose a better sentence from the two candidates. Decide which model's sentence is better in terms of the naturalness and commonness of the scenes they describe. 

## Rules: 
- A better sentence should describe a common scene in daily life, and all concepts should be used in a natural way.
- You should prefer sentences that use all given concepts with correct part-of-speech tags. 
- A simpler and shorter sentence is preferred if it describes the same scene as the other sentence.
- If you think both sentences are equally good or bad, please choose "tie".

Now, please output your choice ("A" or "B" or "tie").

Your choice: 
```

</details>



## Case studies 

Here are some examples of the generated sentences from the models. 

<details>
    <summary> Example 1 </summary>

- **Concepts**: `['demonstrate_V', 'machine_N', 'sew_V', 'use_V']`
- **Human Reference**: `She used the sewing machine to demonstrate how well she could sew.`
- **Mixtral-8x7B-Instruct-v0.1**: ` During the fashion design class, the teacher demonstrates how to use the sewing machine to create a stylish outfit.`
--> ```Versus=lose; Cover=False; PoS=False; Len=20```
- **Yi-34b-chat**: `The tailor demonstrates how to use the sewing machine.`
--> ```Versus=win; Cover=False; PoS=False; Len=9```
- **Yi-6b-chat**: `The machine demonstrates how to sew a useful item.`
--> ```Versus=lose; Cover=False; PoS=False; Len=9```
- **Llama-2-7b-chat-hf**: `The teacher demonstrates how to use the sewing machine to sew a new dress, which the student will use to create a beautiful outfit for the school play.`
--> ```Versus=lose; Cover=True; PoS=True; Len=28```
- **zephyr-7b-beta**: `The tailor demonstrates how to use the sewing machine to create garments by allowing the customer to try it out themselves.`
--> ```Versus=lose; Cover=False; PoS=False; Len=21```
- **tulu-2-dpo-70b**: `A woman demonstrates how to use a machine to sew, showing the audience step by step.`
--> ```Versus=lose; Cover=True; PoS=True; Len=16```
- **vicuna-13b-v1.5**: ` The tailor demonstrates how to use the sewing machine to make a dress.`
--> ```Versus=lose; Cover=False; PoS=False; Len=14```
- **gpt-3.5-turbo**: `The tailor uses the sewing machine to demonstrate how to sew a straight line.`
--> ```Versus=lose; Cover=True; PoS=True; Len=14```
- **gpt-4-0613**: `The instructor demonstrates how to use the sewing machine by sewing a piece of fabric.`
--> ```Versus=lose; Cover=True; PoS=True; Len=15```
- **gpt-4-1106-preview**: `The tailor demonstrates how to use the sewing machine by making a small pouch.`
--> ```Versus=win; Cover=False; PoS=False; Len=14```

</details>


<details>
    <summary> Example 2 </summary>

- **Concepts**: `['car_N', 'drive_V', 'road_N', 'water_N']`
- **Human Reference**: `A man drives the car slowly because there is water on the road`
- **Mixtral-8x7B-Instruct-v0.1**: ` During the road trip, the family takes breaks to drink water next to the car driving on the open road.`
--> ```Versus=lose; Cover=True; PoS=True; Len=21```
- **Yi-34b-chat**: `The car drives down the road splashing water from the puddles.`
--> ```Versus=win; Cover=True; PoS=True; Len=11```
- **Yi-6b-chat**: `The car drives along the road, avoiding the puddle of water.`
--> ```Versus=win; Cover=True; PoS=True; Len=11```
- **Llama-2-7b-chat-hf**: `The driver drives the car along the road, feeling the water splashing against the tires.`
--> ```Versus=lose; Cover=True; PoS=True; Len=15```
- **zephyr-7b-beta**: `The driver takes the car along the road until they reach a place with water, where they cannot drive anymore.`
--> ```Versus=lose; Cover=True; PoS=True; Len=20```
- **tulu-2-dpo-70b**: `A person drives their car on the road next to a river, where the water is flowing smoothly.`
--> ```Versus=lose; Cover=True; PoS=True; Len=18```
- **vicuna-13b-v1.5**: ` The car drives on the road by the water.`
--> ```Versus=lose; Cover=True; PoS=True; Len=10```
- **gpt-3.5-turbo**: `I drive my car on the road next to the water.`
--> ```Versus=win; Cover=True; PoS=True; Len=11```
- **gpt-4-0613**: `The man drives his car on the road that runs alongside the sparkling water.`
--> ```Versus=lose; Cover=True; PoS=True; Len=14```
- **gpt-4-1106-preview**: `The car drives smoothly on the wet road, splashing water as it goes.`
--> ```Versus=win; Cover=True; PoS=True; Len=13```

</details>


<details>
    <summary> Example 3 </summary>

- **Concepts**: `['ceiling_N', 'climb_V', 'gym_N', 'rope_N', 'suspend_V']`
- **Human Reference**: `The boys climbed the rope suspended from the gym ceiling.`
- **Mixtral-8x7B-Instruct-v0.1**: ` During gym class, the students take turns climbing the suspended rope while the others cheer from below, careful not to hit their heads on the ceiling.`
--> ```Versus=lose; Cover=True; PoS=True; Len=27```
- **Yi-34b-chat**: `The gymnast climbs the rope and suspends from the ceiling of the gym.`
--> ```Versus=lose; Cover=True; PoS=True; Len=13```
- **Yi-6b-chat**: `The climber suspends themselves on the rope as they climb the gym's ceiling.`
--> ```Versus=lose; Cover=True; PoS=True; Len=13```
- **Llama-2-7b-chat-hf**: `The gym teacher suspends herself from the ceiling using a rope while climbing to reach the high bar for a workout.`
--> ```Versus=lose; Cover=True; PoS=True; Len=21```
- **zephyr-7b-beta**: `Gymnasts suspend themselves from the ceiling by climbing on the ropes in the gym.`
--> ```Versus=lose; Cover=True; PoS=True; Len=14```
- **tulu-2-dpo-70b**: `In the gym, an athlete climbs a rope suspended from the ceiling to improve their physical fitness.`
--> ```Versus=lose; Cover=True; PoS=True; Len=17```
- **vicuna-13b-v1.5**: ` In the gym, she climbs up to the ceiling using a rope that is suspended from the top.`
--> ```Versus=lose; Cover=True; PoS=True; Len=19```
- **gpt-3.5-turbo**: `In the gym, the athlete climbs the rope and suspends himself from the ceiling.`
--> ```Versus=lose; Cover=True; PoS=True; Len=14```
- **gpt-4-0613**: `In the gym, a man climbs a rope that is suspended from the ceiling.`
--> ```Versus=lose; Cover=True; PoS=True; Len=14```
- **gpt-4-1106-preview**: `In the gym, the rope is suspended from the ceiling for athletes to climb during their workout.`
--> ```Versus=lose; Cover=True; PoS=True; Len=17```

</details>


<details>
    <summary> Example 4 </summary>

- **Concepts**: `['hat_N', 'knit_V', 'pile_N', 'rock_N', 'sit_V']`
- **Human Reference**: `The woman sat on a pile of rocks and knitted a hat.`
- **Mixtral-8x7B-Instruct-v0.1**: ` During her break, a woman sits on a rock and starts to knit a pile of hats to sell at the local market.`
--> ```Versus=lose; Cover=True; PoS=True; Len=24```
- **Yi-34b-chat**: `The knitted hat sat on a pile of rocks.`
--> ```Versus=lose; Cover=False; PoS=False; Len=9```
- **Yi-6b-chat**: `The woman knits a cozy hat while sitting on a rock, placing the pile of rocks around her.`
--> ```Versus=lose; Cover=True; PoS=True; Len=18```
- **Llama-2-7b-chat-hf**: `The old man sits on a rock and knits a new hat while piling up the ones he already has, enjoying the peaceful atmosphere.`
--> ```Versus=lose; Cover=True; PoS=False; Len=24```
- **zephyr-7b-beta**: `A woman sits on a rock and knits a hat from a pile of yarn.`
--> ```Versus=lose; Cover=True; PoS=True; Len=15```
- **tulu-2-dpo-70b**: `An elderly woman knits a colorful hat while sitting on a pile of rocks, enjoying the peaceful scenery around her.`
--> ```Versus=lose; Cover=True; PoS=True; Len=20```
- **vicuna-13b-v1.5**: ` The old man sits on a rock and knits a hat in a pile of yarn.`
--> ```Versus=lose; Cover=True; PoS=True; Len=17```
- **gpt-3.5-turbo**: `The old man sits on a rock, wearing a knitted hat, while a pile of leaves gathers around him.`
--> ```Versus=lose; Cover=False; PoS=False; Len=19```
- **gpt-4-0613**: `The woman sits on a rock, knitting a hat, with a pile of yarn beside her.`
--> ```Versus=lose; Cover=True; PoS=True; Len=16```
- **gpt-4-1106-preview**: `She sits on a rock, knitting a hat, and places the finished ones in a colorful pile beside her.`
--> ```Versus=lose; Cover=True; PoS=True; Len=19```

</details>

## Links 

- Contact: [Bill Yuchen Lin](https://yuchenlin.xyz/)
- Project website: [https://inklab.usc.edu/CommonGen/](https://inklab.usc.edu/CommonGen/)
- HuggingFace Dataset: [CommonGen-lite](https://huggingface.co/datasets/allenai/commongen_lite) 

## Citation 

```bibtex
@inproceedings{lin-etal-2020-commongen,
    title = "{C}ommon{G}en: A Constrained Text Generation Challenge for Generative Commonsense Reasoning",
    author = "Lin, Bill Yuchen  and
      Zhou, Wangchunshu  and
      Shen, Ming  and
      Zhou, Pei  and
      Bhagavatula, Chandra  and
      Choi, Yejin  and
      Ren, Xiang",
    booktitle = "Findings of the Association for Computational Linguistics: EMNLP 2020",
    month = nov,
    year = "2020",
    address = "Online",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/2020.findings-emnlp.165",
    pages = "1823--1840", 
}
```