RMT-team/babilong-train-5k-samples

Dataset

BABILong (5k train samples) : a long-context needle-in-a-haystack benchmark for LLMs

1

stars

21

commits

1

linked in READMEs

Sep 19, 2024

updated

README

BABILong (5k train samples) : a long-context needle-in-a-haystack benchmark for LLMs

Preprint is on arXiv

bAbI + Books = BABILong

BABILong is a novel generative benchmark for evaluating the performance of NLP models in processing arbitrarily long documents with distributed facts.

It contains 10 configs, each corresponding to its bAbI task. Each config has spltis corresponding to different sequence lengths in tokens: '4k', '32k', '128k', '256k', '512k', '1M'

Solving tasks with a long context size requires the model to distinguish important information from large amounts of irrelevant details. To simulate this behavior we ”hide” the sentences of the original task between the sentences of irrelevant text. We use the bAbI dataset [1] as facts and PG19 as background text. Resulting test samples might have lenghts of millions of tokens.

BABILong consists of 10 tasks designed for evaluation of basic aspects of reasoning. The bAbI tasks are generated by simulating a set of characters and objects engaged in various movements and interactions with each other in multiple locations. Each interaction is represented by a fact, e.g. ”Mary travelled to the office”, and the task is to answer a question using the facts from the current simulation, for instance, ”Where is Mary?”. The bAbI tasks vary based on the number of facts, question complexity and the aspects of reasoning.

First ten tasks of BABILong

TaskNamefacts per tasksupporting facts per task
qa1single supporting fact2 - 101
qa2two supporting facts2 - 682
qa3three supporting facts4 - 323
qa4two arg relations21
qa5three arg relations2 - 1261
qa6yes-no questions2 - 261
qa7counting2 - 521-10
qa8lists-sets2 - 501-8
qa9simple negation2 - 101
qa10indefinite knowledge2 - 101

Join us in this exciting endeavor and let's push the boundaries of what's possible together!

Citation

@misc{kuratov2024search,
      title={In Search of Needles in a 10M Haystack: Recurrent Memory Finds What LLMs Miss}, 
      author={Yuri Kuratov and Aydar Bulatov and Petr Anokhin and Dmitry Sorokin and Artyom Sorokin and Mikhail Burtsev},
      year={2024},
      eprint={2402.10790},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}

References

[1] Weston, Jason, et al. "Towards ai-complete question answering: A set of prerequisite toy tasks." arXiv preprint arXiv:1502.05698 (2015).

Contributors

booydar

21 commits

RMT-team/babilong-train-5k-samples

Dataset

BABILong (5k train samples) : a long-context needle-in-a-haystack benchmark for LLMs

1

stars

21

commits

1

linked in READMEs

Sep 19, 2024

updated

README

BABILong (5k train samples) : a long-context needle-in-a-haystack benchmark for LLMs

Preprint is on arXiv

bAbI + Books = BABILong

BABILong is a novel generative benchmark for evaluating the performance of NLP models in processing arbitrarily long documents with distributed facts.

It contains 10 configs, each corresponding to its bAbI task. Each config has spltis corresponding to different sequence lengths in tokens: '4k', '32k', '128k', '256k', '512k', '1M'

Solving tasks with a long context size requires the model to distinguish important information from large amounts of irrelevant details. To simulate this behavior we ”hide” the sentences of the original task between the sentences of irrelevant text. We use the bAbI dataset [1] as facts and PG19 as background text. Resulting test samples might have lenghts of millions of tokens.

BABILong consists of 10 tasks designed for evaluation of basic aspects of reasoning. The bAbI tasks are generated by simulating a set of characters and objects engaged in various movements and interactions with each other in multiple locations. Each interaction is represented by a fact, e.g. ”Mary travelled to the office”, and the task is to answer a question using the facts from the current simulation, for instance, ”Where is Mary?”. The bAbI tasks vary based on the number of facts, question complexity and the aspects of reasoning.

First ten tasks of BABILong

TaskNamefacts per tasksupporting facts per task
qa1single supporting fact2 - 101
qa2two supporting facts2 - 682
qa3three supporting facts4 - 323
qa4two arg relations21
qa5three arg relations2 - 1261
qa6yes-no questions2 - 261
qa7counting2 - 521-10
qa8lists-sets2 - 501-8
qa9simple negation2 - 101
qa10indefinite knowledge2 - 101

Join us in this exciting endeavor and let's push the boundaries of what's possible together!

Citation

@misc{kuratov2024search,
      title={In Search of Needles in a 10M Haystack: Recurrent Memory Finds What LLMs Miss}, 
      author={Yuri Kuratov and Aydar Bulatov and Petr Anokhin and Dmitry Sorokin and Artyom Sorokin and Mikhail Burtsev},
      year={2024},
      eprint={2402.10790},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}

References

[1] Weston, Jason, et al. "Towards ai-complete question answering: A set of prerequisite toy tasks." arXiv preprint arXiv:1502.05698 (2015).

Contributors

booydar

21 commits