Datasets:
Update dataset card with comprehensive README
Browse files
README.md
CHANGED
|
@@ -1,52 +1,17 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
configs:
|
| 4 |
-
- config_name: countdown_0.5k
|
| 5 |
-
data_files:
|
| 6 |
-
- split: test
|
| 7 |
-
path: countdown_0.5k/test-*
|
| 8 |
-
- config_name: countdown_2k
|
| 9 |
-
data_files:
|
| 10 |
-
- split: test
|
| 11 |
-
path: countdown_2k/test-*
|
| 12 |
-
- config_name: countdown_8k
|
| 13 |
-
data_files:
|
| 14 |
-
- split: test
|
| 15 |
-
path: countdown_8k/test-*
|
| 16 |
-
- config_name: default
|
| 17 |
-
data_files:
|
| 18 |
-
- split: html_to_tsv_0.5k
|
| 19 |
-
path: html_to_tsv_0.5k.jsonl
|
| 20 |
-
- split: html_to_tsv_2k
|
| 21 |
-
path: html_to_tsv_2k.jsonl
|
| 22 |
-
- split: html_to_tsv_8k
|
| 23 |
-
path: html_to_tsv_8k.jsonl
|
| 24 |
-
- split: pseudo_to_code_0.5k
|
| 25 |
-
path: pseudo_to_code_0.5k.jsonl
|
| 26 |
-
- split: pseudo_to_code_2k
|
| 27 |
-
path: pseudo_to_code_2k.jsonl
|
| 28 |
-
- split: path_traversal_0.5k
|
| 29 |
-
path: path_traversal_0.5k.jsonl
|
| 30 |
-
- split: path_traversal_2k
|
| 31 |
-
path: path_traversal_2k.jsonl
|
| 32 |
-
- split: path_traversal_8k
|
| 33 |
-
path: path_traversal_8k.jsonl
|
| 34 |
-
- split: tom_tracking_0.5k
|
| 35 |
-
path: tom_tracking_0.5k.jsonl
|
| 36 |
-
- split: tom_tracking_2k
|
| 37 |
-
path: tom_tracking_2k.jsonl
|
| 38 |
-
- split: tom_tracking_8k
|
| 39 |
-
path: tom_tracking_8k.jsonl
|
| 40 |
-
- split: countdown_0.5k
|
| 41 |
-
path: countdown_0.5k.jsonl
|
| 42 |
-
- split: countdown_2k
|
| 43 |
-
path: countdown_2k.jsonl
|
| 44 |
-
- split: countdown_8k
|
| 45 |
-
path: countdown_8k.jsonl
|
| 46 |
-
- split: travel_planning_2k
|
| 47 |
-
path: travel_planning_2k.jsonl
|
| 48 |
-
- split: travel_planning_8k
|
| 49 |
-
path: travel_planning_8k.jsonl
|
| 50 |
- config_name: html_to_tsv_0.5k
|
| 51 |
data_files:
|
| 52 |
- split: test
|
|
@@ -59,6 +24,14 @@ configs:
|
|
| 59 |
data_files:
|
| 60 |
- split: test
|
| 61 |
path: html_to_tsv_8k/test-*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
- config_name: path_traversal_0.5k
|
| 63 |
data_files:
|
| 64 |
- split: test
|
|
@@ -71,14 +44,6 @@ configs:
|
|
| 71 |
data_files:
|
| 72 |
- split: test
|
| 73 |
path: path_traversal_8k/test-*
|
| 74 |
-
- config_name: pseudo_to_code_0.5k
|
| 75 |
-
data_files:
|
| 76 |
-
- split: test
|
| 77 |
-
path: pseudo_to_code_0.5k/test-*
|
| 78 |
-
- config_name: pseudo_to_code_2k
|
| 79 |
-
data_files:
|
| 80 |
-
- split: test
|
| 81 |
-
path: pseudo_to_code_2k/test-*
|
| 82 |
- config_name: tom_tracking_0.5k
|
| 83 |
data_files:
|
| 84 |
- split: test
|
|
@@ -91,6 +56,18 @@ configs:
|
|
| 91 |
data_files:
|
| 92 |
- split: test
|
| 93 |
path: tom_tracking_8k/test-*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
- config_name: travel_planning_2k
|
| 95 |
data_files:
|
| 96 |
- split: test
|
|
@@ -103,396 +80,425 @@ configs:
|
|
| 103 |
data_files:
|
| 104 |
- split: test
|
| 105 |
path: travel_planning_icl_examples/test-*
|
| 106 |
-
dataset_info:
|
| 107 |
-
- config_name: countdown_0.5k
|
| 108 |
-
features:
|
| 109 |
-
- name: nums
|
| 110 |
-
list: int64
|
| 111 |
-
- name: target
|
| 112 |
-
dtype: int64
|
| 113 |
-
- name: solution
|
| 114 |
-
list: string
|
| 115 |
-
- name: search_steps
|
| 116 |
-
dtype: float64
|
| 117 |
-
- name: demonstration
|
| 118 |
-
dtype: string
|
| 119 |
-
- name: solution_text
|
| 120 |
-
dtype: string
|
| 121 |
-
- name: num_search_tokens
|
| 122 |
-
dtype: int64
|
| 123 |
-
splits:
|
| 124 |
-
- name: test
|
| 125 |
-
num_bytes: 274526
|
| 126 |
-
num_examples: 200
|
| 127 |
-
download_size: 73905
|
| 128 |
-
dataset_size: 274526
|
| 129 |
-
- config_name: countdown_2k
|
| 130 |
-
features:
|
| 131 |
-
- name: nums
|
| 132 |
-
list: int64
|
| 133 |
-
- name: target
|
| 134 |
-
dtype: int64
|
| 135 |
-
- name: solution
|
| 136 |
-
list: string
|
| 137 |
-
- name: search_steps
|
| 138 |
-
dtype: float64
|
| 139 |
-
- name: demonstration
|
| 140 |
-
dtype: string
|
| 141 |
-
- name: solution_text
|
| 142 |
-
dtype: string
|
| 143 |
-
- name: num_search_tokens
|
| 144 |
-
dtype: int64
|
| 145 |
-
splits:
|
| 146 |
-
- name: test
|
| 147 |
-
num_bytes: 1025464
|
| 148 |
-
num_examples: 200
|
| 149 |
-
download_size: 223580
|
| 150 |
-
dataset_size: 1025464
|
| 151 |
-
- config_name: countdown_8k
|
| 152 |
-
features:
|
| 153 |
-
- name: nums
|
| 154 |
-
list: int64
|
| 155 |
-
- name: target
|
| 156 |
-
dtype: int64
|
| 157 |
-
- name: solution
|
| 158 |
-
list: string
|
| 159 |
-
- name: search_steps
|
| 160 |
-
dtype: float64
|
| 161 |
-
- name: demonstration
|
| 162 |
-
dtype: string
|
| 163 |
-
- name: solution_text
|
| 164 |
-
dtype: string
|
| 165 |
-
- name: num_search_tokens
|
| 166 |
-
dtype: int64
|
| 167 |
-
splits:
|
| 168 |
-
- name: test
|
| 169 |
-
num_bytes: 3542139
|
| 170 |
-
num_examples: 200
|
| 171 |
-
download_size: 679197
|
| 172 |
-
dataset_size: 3542139
|
| 173 |
-
- config_name: html_to_tsv_0.5k
|
| 174 |
-
features:
|
| 175 |
-
- name: task_id
|
| 176 |
-
dtype: string
|
| 177 |
-
- name: website_id
|
| 178 |
-
dtype: string
|
| 179 |
-
- name: task_topic
|
| 180 |
-
dtype: string
|
| 181 |
-
- name: task_description
|
| 182 |
-
dtype: string
|
| 183 |
-
- name: gt
|
| 184 |
-
dtype: string
|
| 185 |
-
- name: tsv_header
|
| 186 |
-
dtype: string
|
| 187 |
-
- name: filtering_instruction
|
| 188 |
-
dtype: string
|
| 189 |
-
- name: html_content
|
| 190 |
-
dtype: string
|
| 191 |
-
splits:
|
| 192 |
-
- name: test
|
| 193 |
-
num_bytes: 5412528
|
| 194 |
-
num_examples: 100
|
| 195 |
-
download_size: 1224938
|
| 196 |
-
dataset_size: 5412528
|
| 197 |
-
- config_name: html_to_tsv_2k
|
| 198 |
-
features:
|
| 199 |
-
- name: task_id
|
| 200 |
-
dtype: string
|
| 201 |
-
- name: website_id
|
| 202 |
-
dtype: string
|
| 203 |
-
- name: task_topic
|
| 204 |
-
dtype: string
|
| 205 |
-
- name: task_description
|
| 206 |
-
dtype: string
|
| 207 |
-
- name: gt
|
| 208 |
-
dtype: string
|
| 209 |
-
- name: tsv_header
|
| 210 |
-
dtype: string
|
| 211 |
-
- name: filtering_instruction
|
| 212 |
-
dtype: string
|
| 213 |
-
- name: html_content
|
| 214 |
-
dtype: string
|
| 215 |
-
splits:
|
| 216 |
-
- name: test
|
| 217 |
-
num_bytes: 16085290
|
| 218 |
-
num_examples: 189
|
| 219 |
-
download_size: 3569635
|
| 220 |
-
dataset_size: 16085290
|
| 221 |
-
- config_name: html_to_tsv_8k
|
| 222 |
-
features:
|
| 223 |
-
- name: task_id
|
| 224 |
-
dtype: string
|
| 225 |
-
- name: website_id
|
| 226 |
-
dtype: string
|
| 227 |
-
- name: task_topic
|
| 228 |
-
dtype: string
|
| 229 |
-
- name: task_description
|
| 230 |
-
dtype: string
|
| 231 |
-
- name: gt
|
| 232 |
-
dtype: string
|
| 233 |
-
- name: tsv_header
|
| 234 |
-
dtype: string
|
| 235 |
-
- name: filtering_instruction
|
| 236 |
-
dtype: string
|
| 237 |
-
- name: html_content
|
| 238 |
-
dtype: string
|
| 239 |
-
splits:
|
| 240 |
-
- name: test
|
| 241 |
-
num_bytes: 17341279
|
| 242 |
-
num_examples: 120
|
| 243 |
-
download_size: 3748019
|
| 244 |
-
dataset_size: 17341279
|
| 245 |
-
- config_name: path_traversal_0.5k
|
| 246 |
-
features:
|
| 247 |
-
- name: context_nl
|
| 248 |
-
dtype: string
|
| 249 |
-
- name: question_repr
|
| 250 |
-
list: string
|
| 251 |
-
- name: answer_nl
|
| 252 |
-
dtype: string
|
| 253 |
-
splits:
|
| 254 |
-
- name: test
|
| 255 |
-
num_bytes: 1063102
|
| 256 |
-
num_examples: 200
|
| 257 |
-
download_size: 285075
|
| 258 |
-
dataset_size: 1063102
|
| 259 |
-
- config_name: path_traversal_2k
|
| 260 |
-
features:
|
| 261 |
-
- name: context_nl
|
| 262 |
-
dtype: string
|
| 263 |
-
- name: question_repr
|
| 264 |
-
list: string
|
| 265 |
-
- name: answer_nl
|
| 266 |
-
dtype: string
|
| 267 |
-
splits:
|
| 268 |
-
- name: test
|
| 269 |
-
num_bytes: 4161616
|
| 270 |
-
num_examples: 200
|
| 271 |
-
download_size: 1037013
|
| 272 |
-
dataset_size: 4161616
|
| 273 |
-
- config_name: path_traversal_8k
|
| 274 |
-
features:
|
| 275 |
-
- name: context_nl
|
| 276 |
-
dtype: string
|
| 277 |
-
- name: question_repr
|
| 278 |
-
list: string
|
| 279 |
-
- name: answer_nl
|
| 280 |
-
dtype: string
|
| 281 |
-
splits:
|
| 282 |
-
- name: test
|
| 283 |
-
num_bytes: 12489228
|
| 284 |
-
num_examples: 200
|
| 285 |
-
download_size: 3220328
|
| 286 |
-
dataset_size: 12489228
|
| 287 |
-
- config_name: pseudo_to_code_0.5k
|
| 288 |
-
features:
|
| 289 |
-
- name: problem_id
|
| 290 |
-
dtype: string
|
| 291 |
-
- name: pseudocode_lines
|
| 292 |
-
list: string
|
| 293 |
-
- name: code_lines
|
| 294 |
-
list: string
|
| 295 |
-
- name: testcases
|
| 296 |
-
list:
|
| 297 |
-
list:
|
| 298 |
-
list: string
|
| 299 |
-
splits:
|
| 300 |
-
- name: test
|
| 301 |
-
num_bytes: 887917
|
| 302 |
-
num_examples: 199
|
| 303 |
-
download_size: 324567
|
| 304 |
-
dataset_size: 887917
|
| 305 |
-
- config_name: pseudo_to_code_2k
|
| 306 |
-
features:
|
| 307 |
-
- name: problem_id
|
| 308 |
-
dtype: string
|
| 309 |
-
- name: pseudocode_lines
|
| 310 |
-
list: string
|
| 311 |
-
- name: code_lines
|
| 312 |
-
list: string
|
| 313 |
-
- name: testcases
|
| 314 |
-
list:
|
| 315 |
-
list:
|
| 316 |
-
list: string
|
| 317 |
-
splits:
|
| 318 |
-
- name: test
|
| 319 |
-
num_bytes: 1859944
|
| 320 |
-
num_examples: 200
|
| 321 |
-
download_size: 280306
|
| 322 |
-
dataset_size: 1859944
|
| 323 |
-
- config_name: tom_tracking_0.5k
|
| 324 |
-
features:
|
| 325 |
-
- name: story_components
|
| 326 |
-
dtype: string
|
| 327 |
-
- name: story
|
| 328 |
-
dtype: string
|
| 329 |
-
- name: question
|
| 330 |
-
dtype: string
|
| 331 |
-
- name: solution
|
| 332 |
-
dtype: string
|
| 333 |
-
- name: answer
|
| 334 |
-
list: string
|
| 335 |
-
splits:
|
| 336 |
-
- name: test
|
| 337 |
-
num_bytes: 670403
|
| 338 |
-
num_examples: 200
|
| 339 |
-
download_size: 139968
|
| 340 |
-
dataset_size: 670403
|
| 341 |
-
- config_name: tom_tracking_2k
|
| 342 |
-
features:
|
| 343 |
-
- name: story_components
|
| 344 |
-
dtype: string
|
| 345 |
-
- name: story
|
| 346 |
-
dtype: string
|
| 347 |
-
- name: question
|
| 348 |
-
dtype: string
|
| 349 |
-
- name: solution
|
| 350 |
-
dtype: string
|
| 351 |
-
- name: answer
|
| 352 |
-
list: string
|
| 353 |
-
splits:
|
| 354 |
-
- name: test
|
| 355 |
-
num_bytes: 2260843
|
| 356 |
-
num_examples: 200
|
| 357 |
-
download_size: 314324
|
| 358 |
-
dataset_size: 2260843
|
| 359 |
-
- config_name: tom_tracking_8k
|
| 360 |
-
features:
|
| 361 |
-
- name: story_components
|
| 362 |
-
dtype: string
|
| 363 |
-
- name: story
|
| 364 |
-
dtype: string
|
| 365 |
-
- name: question
|
| 366 |
-
dtype: string
|
| 367 |
-
- name: solution
|
| 368 |
-
dtype: string
|
| 369 |
-
- name: answer
|
| 370 |
-
list: string
|
| 371 |
-
splits:
|
| 372 |
-
- name: test
|
| 373 |
-
num_bytes: 8644352
|
| 374 |
-
num_examples: 200
|
| 375 |
-
download_size: 972886
|
| 376 |
-
dataset_size: 8644352
|
| 377 |
-
- config_name: travel_planning_2k
|
| 378 |
-
features:
|
| 379 |
-
- name: id
|
| 380 |
-
dtype: string
|
| 381 |
-
- name: ground_truth_cities
|
| 382 |
-
dtype: string
|
| 383 |
-
- name: ground_truth_durations
|
| 384 |
-
dtype: string
|
| 385 |
-
- name: num_cities
|
| 386 |
-
dtype: int64
|
| 387 |
-
- name: total_days
|
| 388 |
-
dtype: int64
|
| 389 |
-
- name: constraints
|
| 390 |
-
list:
|
| 391 |
-
- name: city
|
| 392 |
-
dtype: string
|
| 393 |
-
- name: end_day
|
| 394 |
-
dtype: int64
|
| 395 |
-
- name: num_days
|
| 396 |
-
dtype: int64
|
| 397 |
-
- name: start_day
|
| 398 |
-
dtype: int64
|
| 399 |
-
- name: type
|
| 400 |
-
dtype: string
|
| 401 |
-
- name: connected_cities
|
| 402 |
-
list:
|
| 403 |
-
list: string
|
| 404 |
-
- name: original_question_text
|
| 405 |
-
dtype: string
|
| 406 |
-
- name: disambig_question_text
|
| 407 |
-
dtype: string
|
| 408 |
-
- name: ground_truth_plan
|
| 409 |
-
dtype: string
|
| 410 |
-
- name: estimated_output_tokens
|
| 411 |
-
dtype: int64
|
| 412 |
-
splits:
|
| 413 |
-
- name: test
|
| 414 |
-
num_bytes: 1865273
|
| 415 |
-
num_examples: 769
|
| 416 |
-
download_size: 356514
|
| 417 |
-
dataset_size: 1865273
|
| 418 |
-
- config_name: travel_planning_8k
|
| 419 |
-
features:
|
| 420 |
-
- name: id
|
| 421 |
-
dtype: string
|
| 422 |
-
- name: ground_truth_cities
|
| 423 |
-
dtype: string
|
| 424 |
-
- name: ground_truth_durations
|
| 425 |
-
dtype: string
|
| 426 |
-
- name: num_cities
|
| 427 |
-
dtype: int64
|
| 428 |
-
- name: total_days
|
| 429 |
-
dtype: int64
|
| 430 |
-
- name: constraints
|
| 431 |
-
list:
|
| 432 |
-
- name: city
|
| 433 |
-
dtype: string
|
| 434 |
-
- name: end_day
|
| 435 |
-
dtype: int64
|
| 436 |
-
- name: num_days
|
| 437 |
-
dtype: int64
|
| 438 |
-
- name: start_day
|
| 439 |
-
dtype: int64
|
| 440 |
-
- name: type
|
| 441 |
-
dtype: string
|
| 442 |
-
- name: connected_cities
|
| 443 |
-
list:
|
| 444 |
-
list: string
|
| 445 |
-
- name: original_question_text
|
| 446 |
-
dtype: string
|
| 447 |
-
- name: disambig_question_text
|
| 448 |
-
dtype: string
|
| 449 |
-
- name: ground_truth_plan
|
| 450 |
-
dtype: string
|
| 451 |
-
- name: estimated_output_tokens
|
| 452 |
-
dtype: int64
|
| 453 |
-
splits:
|
| 454 |
-
- name: test
|
| 455 |
-
num_bytes: 1160141
|
| 456 |
-
num_examples: 239
|
| 457 |
-
download_size: 250315
|
| 458 |
-
dataset_size: 1160141
|
| 459 |
-
- config_name: travel_planning_icl_examples
|
| 460 |
-
features:
|
| 461 |
-
- name: id
|
| 462 |
-
dtype: string
|
| 463 |
-
- name: ground_truth_cities
|
| 464 |
-
dtype: string
|
| 465 |
-
- name: ground_truth_durations
|
| 466 |
-
dtype: string
|
| 467 |
-
- name: num_cities
|
| 468 |
-
dtype: int64
|
| 469 |
-
- name: total_days
|
| 470 |
-
dtype: int64
|
| 471 |
-
- name: constraints
|
| 472 |
-
list:
|
| 473 |
-
- name: city
|
| 474 |
-
dtype: string
|
| 475 |
-
- name: end_day
|
| 476 |
-
dtype: int64
|
| 477 |
-
- name: num_days
|
| 478 |
-
dtype: int64
|
| 479 |
-
- name: start_day
|
| 480 |
-
dtype: int64
|
| 481 |
-
- name: type
|
| 482 |
-
dtype: string
|
| 483 |
-
- name: connected_cities
|
| 484 |
-
list:
|
| 485 |
-
list: string
|
| 486 |
-
- name: original_question_text
|
| 487 |
-
dtype: string
|
| 488 |
-
- name: disambig_question_text
|
| 489 |
-
dtype: string
|
| 490 |
-
- name: ground_truth_plan
|
| 491 |
-
dtype: string
|
| 492 |
-
splits:
|
| 493 |
-
- name: test
|
| 494 |
-
num_bytes: 7311
|
| 495 |
-
num_examples: 4
|
| 496 |
-
download_size: 15869
|
| 497 |
-
dataset_size: 7311
|
| 498 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- text-generation
|
| 5 |
+
- text2text-generation
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
tags:
|
| 9 |
+
- long-context
|
| 10 |
+
- procedural-generation
|
| 11 |
+
- benchmark
|
| 12 |
+
- evaluation
|
| 13 |
+
pretty_name: "LongProc: Long Procedural Generation Benchmark"
|
| 14 |
configs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
- config_name: html_to_tsv_0.5k
|
| 16 |
data_files:
|
| 17 |
- split: test
|
|
|
|
| 24 |
data_files:
|
| 25 |
- split: test
|
| 26 |
path: html_to_tsv_8k/test-*
|
| 27 |
+
- config_name: pseudo_to_code_0.5k
|
| 28 |
+
data_files:
|
| 29 |
+
- split: test
|
| 30 |
+
path: pseudo_to_code_0.5k/test-*
|
| 31 |
+
- config_name: pseudo_to_code_2k
|
| 32 |
+
data_files:
|
| 33 |
+
- split: test
|
| 34 |
+
path: pseudo_to_code_2k/test-*
|
| 35 |
- config_name: path_traversal_0.5k
|
| 36 |
data_files:
|
| 37 |
- split: test
|
|
|
|
| 44 |
data_files:
|
| 45 |
- split: test
|
| 46 |
path: path_traversal_8k/test-*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
- config_name: tom_tracking_0.5k
|
| 48 |
data_files:
|
| 49 |
- split: test
|
|
|
|
| 56 |
data_files:
|
| 57 |
- split: test
|
| 58 |
path: tom_tracking_8k/test-*
|
| 59 |
+
- config_name: countdown_0.5k
|
| 60 |
+
data_files:
|
| 61 |
+
- split: test
|
| 62 |
+
path: countdown_0.5k/test-*
|
| 63 |
+
- config_name: countdown_2k
|
| 64 |
+
data_files:
|
| 65 |
+
- split: test
|
| 66 |
+
path: countdown_2k/test-*
|
| 67 |
+
- config_name: countdown_8k
|
| 68 |
+
data_files:
|
| 69 |
+
- split: test
|
| 70 |
+
path: countdown_8k/test-*
|
| 71 |
- config_name: travel_planning_2k
|
| 72 |
data_files:
|
| 73 |
- split: test
|
|
|
|
| 80 |
data_files:
|
| 81 |
- split: test
|
| 82 |
path: travel_planning_icl_examples/test-*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
---
|
| 84 |
+
|
| 85 |
+
# LongProc: Benchmarking Long-Context Language Models on Long Procedural Generation
|
| 86 |
+
|
| 87 |
+
<p align="center">
|
| 88 |
+
<a href="https://arxiv.org/abs/2501.05414"><img src="https://img.shields.io/badge/Paper-arXiv:2501.05414-B31B1B.svg" alt="Paper"></a>
|
| 89 |
+
<a href="https://github.com/princeton-nlp/LongProc"><img src="https://img.shields.io/badge/GitHub-Code-black?logo=github" alt="GitHub"></a>
|
| 90 |
+
<a href="https://princeton-pli.github.io/LongProc/"><img src="https://img.shields.io/badge/Project-Page-blue" alt="Project Page"></a>
|
| 91 |
+
</p>
|
| 92 |
+
|
| 93 |
+
**LongProc** (**Long Proc**edural Generation) is a benchmark for evaluating long-context LLMs through long procedural generation tasks that require models to follow specified procedures and produce structured outputs. LongProc was accepted at [COLM 2025](https://colmweb.org/).
|
| 94 |
+
|
| 95 |
+
<p align="center">
|
| 96 |
+
<img width="60%" alt="LongProc task examples" src="https://princeton-pli.github.io/LongProc/static/images/data_example.png">
|
| 97 |
+
</p>
|
| 98 |
+
|
| 99 |
+
## Dataset Overview
|
| 100 |
+
|
| 101 |
+
LongProc consists of **6 tasks**, each at up to 3 difficulty levels based on the expected output length (~0.5K, ~2K, ~8K tokens). The dataset is organized into **17 subsets** (configs), each containing a single `test` split.
|
| 102 |
+
|
| 103 |
+
| Task | Description | Configs | Total Examples |
|
| 104 |
+
|------|-------------|---------|---------------|
|
| 105 |
+
| **HTML to TSV** | Extract information from HTML pages into structured TSV tables | `html_to_tsv_0.5k`, `html_to_tsv_2k`, `html_to_tsv_8k` | 100 + 189 + 120 = 409 |
|
| 106 |
+
| **Pseudocode to Code** | Translate line-by-line pseudocode into C++ code | `pseudo_to_code_0.5k`, `pseudo_to_code_2k` | 199 + 200 = 399 |
|
| 107 |
+
| **Path Traversal** | Trace a route between cities in a directed graph where each city has one outgoing edge | `path_traversal_0.5k`, `path_traversal_2k`, `path_traversal_8k` | 200 + 200 + 200 = 600 |
|
| 108 |
+
| **Theory-of-Mind Tracking** | Track object locations and agent beliefs through multi-step stories | `tom_tracking_0.5k`, `tom_tracking_2k`, `tom_tracking_8k` | 200 + 200 + 200 = 600 |
|
| 109 |
+
| **Countdown** | Search to combine numbers with arithmetic operations to reach a target | `countdown_0.5k`, `countdown_2k`, `countdown_8k` | 200 + 200 + 200 = 600 |
|
| 110 |
+
| **Travel Planning** | Search to construct a trip plan satisfying duration and flight constraints | `travel_planning_2k`, `travel_planning_8k`, `travel_planning_icl_examples` | 769 + 239 + 4 = 1012 |
|
| 111 |
+
|
| 112 |
+
## Loading the Dataset
|
| 113 |
+
|
| 114 |
+
```python
|
| 115 |
+
from datasets import load_dataset
|
| 116 |
+
|
| 117 |
+
# Load a specific task + difficulty
|
| 118 |
+
ds = load_dataset("PrincetonPli/LongProc", "countdown_0.5k", split="test")
|
| 119 |
+
print(ds)
|
| 120 |
+
# Dataset({
|
| 121 |
+
# features: ['nums', 'target', 'solution', 'search_steps', 'demonstration', 'solution_text', 'num_search_tokens'],
|
| 122 |
+
# num_rows: 200
|
| 123 |
+
# })
|
| 124 |
+
|
| 125 |
+
# Load another config
|
| 126 |
+
ds = load_dataset("PrincetonPli/LongProc", "html_to_tsv_2k", split="test")
|
| 127 |
+
print(ds[0].keys())
|
| 128 |
+
# dict_keys(['task_id', 'website_id', 'task_topic', 'task_description', 'gt', 'tsv_header', 'filtering_instruction', 'html_content'])
|
| 129 |
+
```
|
| 130 |
+
|
| 131 |
+
## Data Fields
|
| 132 |
+
|
| 133 |
+
### html_to_tsv
|
| 134 |
+
|
| 135 |
+
| Field | Type | Description |
|
| 136 |
+
|-------|------|-------------|
|
| 137 |
+
| `task_id` | string | Unique identifier for the task instance |
|
| 138 |
+
| `website_id` | string | Identifier for the source website |
|
| 139 |
+
| `task_topic` | string | Topic of the webpage (e.g., "electronics", "books") |
|
| 140 |
+
| `task_description` | string | Description of what properties to extract |
|
| 141 |
+
| `gt` | string | Ground truth TSV output |
|
| 142 |
+
| `tsv_header` | string | Header row for the TSV output |
|
| 143 |
+
| `filtering_instruction` | string | Additional instructions for filtering rows |
|
| 144 |
+
| `html_content` | string | Full HTML content of the webpage (inlined) |
|
| 145 |
+
|
| 146 |
+
### pseudo_to_code
|
| 147 |
+
|
| 148 |
+
| Field | Type | Description |
|
| 149 |
+
|-------|------|-------------|
|
| 150 |
+
| `problem_id` | string | Unique problem identifier |
|
| 151 |
+
| `pseudocode_lines` | list[string] | Pseudocode description, line by line |
|
| 152 |
+
| `code_lines` | list[string] | Ground truth C++ code lines |
|
| 153 |
+
| `testcases` | list | Test cases for validation |
|
| 154 |
+
|
| 155 |
+
### path_traversal
|
| 156 |
+
|
| 157 |
+
| Field | Type | Description |
|
| 158 |
+
|-------|------|-------------|
|
| 159 |
+
| `context_nl` | string | Natural language description of the city graph |
|
| 160 |
+
| `question_repr` | list[string] | Source and destination cities |
|
| 161 |
+
| `answer_nl` | string | Ground truth route in natural language |
|
| 162 |
+
|
| 163 |
+
### tom_tracking
|
| 164 |
+
|
| 165 |
+
| Field | Type | Description |
|
| 166 |
+
|-------|------|-------------|
|
| 167 |
+
| `story_components` | string | Components of the story (agents, objects, rooms, containers) |
|
| 168 |
+
| `story` | string | The multi-step story |
|
| 169 |
+
| `question` | string | Question about an agent's belief about an object's location |
|
| 170 |
+
| `solution` | string | Step-by-step solution trace |
|
| 171 |
+
| `answer` | list[string] | Final answer(s) |
|
| 172 |
+
|
| 173 |
+
### countdown
|
| 174 |
+
|
| 175 |
+
| Field | Type | Description |
|
| 176 |
+
|-------|------|-------------|
|
| 177 |
+
| `nums` | list[int] | Four input numbers |
|
| 178 |
+
| `target` | int | Target number to reach |
|
| 179 |
+
| `solution` | list[string] | Sequence of equations forming the solution |
|
| 180 |
+
| `search_steps` | float | Number of search steps in the ground truth trace |
|
| 181 |
+
| `demonstration` | string | In-context demonstration of the search procedure |
|
| 182 |
+
| `solution_text` | string | Full solution text including the search procedure |
|
| 183 |
+
| `num_search_tokens` | int | Number of tokens in the search procedure |
|
| 184 |
+
|
| 185 |
+
### travel_planning
|
| 186 |
+
|
| 187 |
+
| Field | Type | Description |
|
| 188 |
+
|-------|------|-------------|
|
| 189 |
+
| `id` | string | Unique problem identifier |
|
| 190 |
+
| `ground_truth_cities` | string | Ordered list of cities in the ground truth plan |
|
| 191 |
+
| `ground_truth_durations` | string | Duration of stay for each city |
|
| 192 |
+
| `num_cities` | int | Number of cities to visit |
|
| 193 |
+
| `total_days` | int | Total number of trip days |
|
| 194 |
+
| `constraints` | list[object] | Constraints with city, type, start/end days, num_days |
|
| 195 |
+
| `connected_cities` | list[list[string]] | Direct flight connections between cities |
|
| 196 |
+
| `original_question_text` | string | Original problem statement |
|
| 197 |
+
| `disambig_question_text` | string | Disambiguated problem statement |
|
| 198 |
+
| `ground_truth_plan` | string | Complete ground truth trip plan |
|
| 199 |
+
| `estimated_output_tokens` | int | Estimated output length in tokens (not present in ICL examples) |
|
| 200 |
+
|
| 201 |
+
The `travel_planning_icl_examples` config contains 4 in-context learning examples that share the same schema but without `estimated_output_tokens`.
|
| 202 |
+
|
| 203 |
+
## Prompt Templates
|
| 204 |
+
|
| 205 |
+
The prompt templates below are used to construct the input prompts for each task. Placeholders in `{braces}` are filled from the corresponding data fields.
|
| 206 |
+
|
| 207 |
+
<details>
|
| 208 |
+
<summary><b>HTML to TSV</b></summary>
|
| 209 |
+
|
| 210 |
+
```
|
| 211 |
+
[TASK]
|
| 212 |
+
Your task is to extract specific information from an HTML webpage and output the extracted
|
| 213 |
+
information in a tsv file. You will be first given an HTML webpage. Then, you should follow
|
| 214 |
+
the specific instruction provided later and output the tsv file following the format provided
|
| 215 |
+
in the instruction.
|
| 216 |
+
|
| 217 |
+
[INPUT WEBPAGE]
|
| 218 |
+
```html
|
| 219 |
+
{html_content}
|
| 220 |
+
```
|
| 221 |
+
|
| 222 |
+
[TARGET INFORMATION]
|
| 223 |
+
Based on the HTML webpage above about {task_topic}, extract the following properties from
|
| 224 |
+
the items listed on the webpage: {task_description}{filtering_instruction}
|
| 225 |
+
|
| 226 |
+
[OUTPUT FORMAT]
|
| 227 |
+
Structure your output in TSV format such that each row of your output corresponds to the
|
| 228 |
+
aforementioned properties of an item and each property is separated from each other by a
|
| 229 |
+
tab "\t". Your output should be in the following format:
|
| 230 |
+
```tsv
|
| 231 |
+
{tsv_header}
|
| 232 |
+
{Your TSV output}
|
| 233 |
+
```
|
| 234 |
+
|
| 235 |
+
[IMPORTANT NOTES]
|
| 236 |
+
- Make sure that you have read through all items listed on the webpage and followed the
|
| 237 |
+
same order as they appear on the webpage.
|
| 238 |
+
- If you are asked to only extract some rows that satisfy specific conditions, ONLY extract
|
| 239 |
+
those rows that satisfy the conditions and do NOT include other irrelevant rows in your output.
|
| 240 |
+
- If a property of an item is blank, not applicable, or not parseable, please set the property
|
| 241 |
+
to "N/A" for the item.
|
| 242 |
+
- If a property spans multiple lines, please extract all the lines and replace the newline
|
| 243 |
+
character with a space character.
|
| 244 |
+
- If a property consists of a list of items, please replace the newline character with a space
|
| 245 |
+
character and separate the items with a comma ",".
|
| 246 |
+
- If there are any special characters, numerical values of a specific format, or any unusual
|
| 247 |
+
formatting in the property, please keep them as they are. If the property comes with a unit,
|
| 248 |
+
please keep the unit as well in the property.
|
| 249 |
+
- Do not include html tags in the extracted information. Only include the text.
|
| 250 |
+
- Do not provide any additional information in your output other than the tsv.
|
| 251 |
+
|
| 252 |
+
Now, extract the information from the HTML webpage above and follow the output format above
|
| 253 |
+
in your answer.
|
| 254 |
+
```
|
| 255 |
+
</details>
|
| 256 |
+
|
| 257 |
+
<details>
|
| 258 |
+
<summary><b>Pseudocode to Code</b></summary>
|
| 259 |
+
|
| 260 |
+
```
|
| 261 |
+
[TASK]:
|
| 262 |
+
You will be given lines of pseudocode, your task is to write the corresponding C++ code.
|
| 263 |
+
The pseudocode will provide detailed description of the c++ code line by line. The pseudocode
|
| 264 |
+
is garanteed to be correct and complete.
|
| 265 |
+
|
| 266 |
+
[INSTRUCTION]:
|
| 267 |
+
The following libraries are already included in the code.
|
| 268 |
+
```cpp
|
| 269 |
+
#include <cstdio>
|
| 270 |
+
#include <iostream>
|
| 271 |
+
#include <vector>
|
| 272 |
+
#include <algorithm>
|
| 273 |
+
#include <numeric>
|
| 274 |
+
#include <cmath>
|
| 275 |
+
#include <cstring>
|
| 276 |
+
#include <set>
|
| 277 |
+
#include <map>
|
| 278 |
+
#include <queue>
|
| 279 |
+
#include <stack>
|
| 280 |
+
#include <list>
|
| 281 |
+
#include <fstream>
|
| 282 |
+
#include <climits>
|
| 283 |
+
#include <cassert>
|
| 284 |
+
#include <iomanip>
|
| 285 |
+
#include <sstream>
|
| 286 |
+
#include <bitset>
|
| 287 |
+
using namespace std;
|
| 288 |
+
```
|
| 289 |
+
Do not include them in your code again. Please surround your code with ```cpp and ``` markers.
|
| 290 |
+
Note that the code should correspond to the pseudocode line by line.
|
| 291 |
+
|
| 292 |
+
[PSEUDOCODE]:
|
| 293 |
+
{pseudocode}
|
| 294 |
+
|
| 295 |
+
[CODE]:
|
| 296 |
+
```
|
| 297 |
+
|
| 298 |
+
Where `{pseudocode}` is constructed by joining `pseudocode_lines` with newlines.
|
| 299 |
+
</details>
|
| 300 |
+
|
| 301 |
+
<details>
|
| 302 |
+
<summary><b>Path Traversal</b></summary>
|
| 303 |
+
|
| 304 |
+
```
|
| 305 |
+
[TASK]
|
| 306 |
+
In a completely hypothetical world, there are a number of cities. Each city has a one-way
|
| 307 |
+
connection to only one other city via a specific transit method (bus, train, plane, or ferry).
|
| 308 |
+
Your task is to provide a route from a city to another city. You should follow the specific
|
| 309 |
+
instruction provided later and output the route following the format provided in the instruction.
|
| 310 |
+
|
| 311 |
+
[IMPORTANT NOTES]
|
| 312 |
+
- All connections are one-way. If city A is connected to city B, you can travel from A to B,
|
| 313 |
+
but not the other way around.
|
| 314 |
+
- Because each city is connected to only one other city, so there's only one possible route.
|
| 315 |
+
To find the route, you can simply start from the starting city, identify the next city it's
|
| 316 |
+
connected to, and repeat the process until you reach the destination city.
|
| 317 |
+
- Please follow the exact format specified below when outputting the route.
|
| 318 |
+
|
| 319 |
+
[OUTPUT FORMAT]
|
| 320 |
+
Please mark the route with <Route> and </Route> tags. The route should be in the following
|
| 321 |
+
format, where one line is one step of the route:
|
| 322 |
+
<Route>
|
| 323 |
+
From <CITY_NAME>, take a <TRANSIT_METHOD> to <CITY_NAME>.
|
| 324 |
+
...
|
| 325 |
+
From <CITY_NAME>, take a <TRANSIT_METHOD> to <CITY_NAME>.
|
| 326 |
+
</Route>
|
| 327 |
+
|
| 328 |
+
[EXAMPLE]
|
| 329 |
+
...
|
| 330 |
+
|
| 331 |
+
[PROBLEM]
|
| 332 |
+
{context_nl}
|
| 333 |
+
|
| 334 |
+
Now find the route from {src_city} to {dst_city} based on the information above.
|
| 335 |
+
```
|
| 336 |
+
|
| 337 |
+
Where `{src_city}` and `{dst_city}` come from the `question_repr` field.
|
| 338 |
+
</details>
|
| 339 |
+
|
| 340 |
+
<details>
|
| 341 |
+
<summary><b>Theory-of-Mind Tracking</b></summary>
|
| 342 |
+
|
| 343 |
+
```
|
| 344 |
+
[TASK]
|
| 345 |
+
You'll see a story about object placement. Each story involves four components: Agents,
|
| 346 |
+
Objects, Rooms, and Containers. Given a question about an (agent, object) pair, your task
|
| 347 |
+
is to track the locations and beliefs in stories about object placement asked in the question.
|
| 348 |
+
|
| 349 |
+
[APPROACH]
|
| 350 |
+
You will solve the problem by tracking the location of the agent, location of the object,
|
| 351 |
+
and the agent's belief of the object.
|
| 352 |
+
1. Initial Setup: set up agent's starting location, object's starting location, agent's
|
| 353 |
+
initial belief on the object's location. Note that if an agent does not see an object
|
| 354 |
+
at the start, their belief on the object is None.
|
| 355 |
+
2. Then, track step-by-step:
|
| 356 |
+
- If a step involves that the agent moves to another room, leaves a room, or enters a
|
| 357 |
+
room, you should update the agent's location.
|
| 358 |
+
- If a step involves the object of interest moving, you should update the object's location.
|
| 359 |
+
- To keep track of the agent's belief on the object: If the agent and the object are in
|
| 360 |
+
the same room, the agent can see the object, so the agent's belief will reflect the
|
| 361 |
+
true location of the object. If the agent cannot see the object, the agent's belief
|
| 362 |
+
will remain unchanged until the agent sees the object again.
|
| 363 |
+
3. Format your output exactly as shown in example answers below.
|
| 364 |
+
|
| 365 |
+
[EXAMPLE STORY / QUESTION / ANSWER]
|
| 366 |
+
...
|
| 367 |
+
|
| 368 |
+
[PROBLEM]
|
| 369 |
+
Read the following story and answer the question.
|
| 370 |
+
|
| 371 |
+
[STORY]
|
| 372 |
+
{story}
|
| 373 |
+
|
| 374 |
+
[QUESTION]
|
| 375 |
+
{question}
|
| 376 |
+
|
| 377 |
+
[YOUR ANSWER]
|
| 378 |
+
```
|
| 379 |
+
</details>
|
| 380 |
+
|
| 381 |
+
<details>
|
| 382 |
+
<summary><b>Countdown</b></summary>
|
| 383 |
+
|
| 384 |
+
```
|
| 385 |
+
[TASK]
|
| 386 |
+
You will be given four numbers and a target number, your task is to find a way to use all
|
| 387 |
+
four numbers exactly once, along with the basic operations (+, -, *, /), to reach the
|
| 388 |
+
target number.
|
| 389 |
+
|
| 390 |
+
[RULES]
|
| 391 |
+
- You can use each number exactly once.
|
| 392 |
+
- You can use the four basic operations (+, -, *, /).
|
| 393 |
+
- The intermediate results must be integers (no decimals allowed).
|
| 394 |
+
- The intermediate results must be positive.
|
| 395 |
+
- The intermediate results will not exceed 2000.
|
| 396 |
+
|
| 397 |
+
[APPROACH]
|
| 398 |
+
We will solve the problem by searching. Starting from a given set of four numbers, we will
|
| 399 |
+
follow this search process...
|
| 400 |
+
|
| 401 |
+
[EXAMPLES]
|
| 402 |
+
{demonstration}
|
| 403 |
+
|
| 404 |
+
[Problem]
|
| 405 |
+
Numbers: {nums}
|
| 406 |
+
Target: {target}
|
| 407 |
+
```
|
| 408 |
+
|
| 409 |
+
The `{demonstration}` field is provided per-example and contains worked examples of the search procedure. `{nums}` comes from joining the `nums` list.
|
| 410 |
+
</details>
|
| 411 |
+
|
| 412 |
+
<details>
|
| 413 |
+
<summary><b>Travel Planning</b></summary>
|
| 414 |
+
|
| 415 |
+
```
|
| 416 |
+
TASK:
|
| 417 |
+
Your task is to create a trip plan based on given constraints regarding cities to visit,
|
| 418 |
+
duration of stays for each city, and available direct flight connections.
|
| 419 |
+
|
| 420 |
+
REQUIREMENTS AND NOTES:
|
| 421 |
+
- You will arrange a trip plan for visiting several cities for a specified total number of days.
|
| 422 |
+
- You will be informed about how long we will stay in each city. Some cities have fixed
|
| 423 |
+
schedules because of pre-planned events. You have to follow the fixed schedules for those
|
| 424 |
+
cities. Cities without fixed schedules need to be arranged according to the constraints.
|
| 425 |
+
- Only direct flights may be used to travel between cities.
|
| 426 |
+
- When calculating the duration of a stay in a city, count both arrival and departure days
|
| 427 |
+
as full days.
|
| 428 |
+
|
| 429 |
+
APPROACH:
|
| 430 |
+
We will solve the problem by searching...
|
| 431 |
+
|
| 432 |
+
EXAMPLES:
|
| 433 |
+
{demonstration}
|
| 434 |
+
|
| 435 |
+
YOUR TASK:
|
| 436 |
+
{problem}
|
| 437 |
+
```
|
| 438 |
+
|
| 439 |
+
The `{demonstration}` is constructed from the `travel_planning_icl_examples` config. `{problem}` comes from `disambig_question_text` (or `original_question_text`).
|
| 440 |
+
</details>
|
| 441 |
+
|
| 442 |
+
## Running Evaluation
|
| 443 |
+
|
| 444 |
+
We recommend using the [LongProc GitHub repository](https://github.com/princeton-nlp/LongProc) for data loading and evaluation:
|
| 445 |
+
|
| 446 |
+
```python
|
| 447 |
+
from longproc.longproc_data import load_longproc_data
|
| 448 |
+
|
| 449 |
+
data, eval_fn = load_longproc_data("countdown_0.5k")
|
| 450 |
+
# data: list of dicts with 'input_prompt', 'reference_output', 'item'
|
| 451 |
+
# eval_fn: task-specific evaluation function
|
| 452 |
+
```
|
| 453 |
+
|
| 454 |
+
For large-scale evaluation, we recommend the [HELMET](https://github.com/princeton-nlp/HELMET) framework with the [LongProc Addon](https://github.com/princeton-nlp/HELMET/blob/longproc/longproc_addon/README.md).
|
| 455 |
+
|
| 456 |
+
## Citation
|
| 457 |
+
|
| 458 |
+
```bibtex
|
| 459 |
+
@inproceedings{ye25longproc,
|
| 460 |
+
title={LongProc: Benchmarking Long-Context Language Models on Long Procedural Generation},
|
| 461 |
+
author={Ye, Xi and Yin, Fangcong and He, Yinghui and Zhang, Joie and Yen, Howard and Gao, Tianyu and Durrett, Greg and Chen, Danqi},
|
| 462 |
+
journal={Conference on Language Modeling},
|
| 463 |
+
year={2025}
|
| 464 |
+
}
|
| 465 |
+
```
|
| 466 |
+
|
| 467 |
+
<details>
|
| 468 |
+
<summary><b>LongProc adapts several existing datasets. Please also cite the original sources:</b></summary>
|
| 469 |
+
|
| 470 |
+
```bibtex
|
| 471 |
+
@article{arborist,
|
| 472 |
+
author = {Li, Xiang and Zhou, Xiangyu and Dong, Rui and Zhang, Yihong and Wang, Xinyu},
|
| 473 |
+
title = {Efficient Bottom-Up Synthesis for Programs with Local Variables},
|
| 474 |
+
year = {2024},
|
| 475 |
+
journal = {Proc. ACM Program. Lang.},
|
| 476 |
+
volume = {8},
|
| 477 |
+
number = {POPL},
|
| 478 |
+
}
|
| 479 |
+
|
| 480 |
+
@inproceedings{spoc,
|
| 481 |
+
author = {Kulal, Sumith and Pasupat, Panupong and Chandra, Kartik and Lee, Mina and Padon, Oded and Aiken, Alex and Liang, Percy S},
|
| 482 |
+
booktitle = {Proceedings of the Conference on Advances in Neural Information Processing Systems (NeurIPS)},
|
| 483 |
+
title = {{SPoC: Search-based Pseudocode to Code}},
|
| 484 |
+
}
|
| 485 |
+
|
| 486 |
+
@inproceedings{gandhi2024stream,
|
| 487 |
+
title={{Stream of Search (SoS): Learning to Search in Language}},
|
| 488 |
+
author={Kanishk Gandhi and Denise H J Lee and Gabriel Grand and Muxin Liu and Winson Cheng and Archit Sharma and Noah Goodman},
|
| 489 |
+
booktitle={First Conference on Language Modeling},
|
| 490 |
+
year={2024},
|
| 491 |
+
}
|
| 492 |
+
|
| 493 |
+
@article{natplan,
|
| 494 |
+
title={{NATURAL PLAN: Benchmarking LLMs on Natural Language Planning}},
|
| 495 |
+
author={Zheng, Huaixiu Steven and Mishra, Swaroop and Zhang, Hugh and Chen, Xinyun and Chen, Minmin and Nova, Azade and Hou, Le and Cheng, Heng-Tze and Le, Quoc V and Chi, Ed H and others},
|
| 496 |
+
journal={arXiv preprint arXiv:2406.04520},
|
| 497 |
+
year={2024}
|
| 498 |
+
}
|
| 499 |
+
```
|
| 500 |
+
</details>
|
| 501 |
+
|
| 502 |
+
## Contact
|
| 503 |
+
|
| 504 |
+
For questions, feel free to open issues on the [GitHub repository](https://github.com/princeton-nlp/LongProc) or email `xi.ye@princeton.edu`.
|