Datasets › N-back-tasks-for-ChatGPT
N-back-tasks-for-ChatGPT
Dataset Introduction. We create this dataset to test the working memory capacity of language models. We choose the N-back task because it is widely used in cognitive science as a measure of working memory capacity. To create the N-back task dataset, we generated 30 blocks of trials for N = {1, 2, 3}, respectively. Each block contains 30 trials, including 10 match trials and 20 nonmatch trials. The dataset for each block is stored in a text file. The first line in the text file is the letter presented on every trial. The second line is the condition corresponding to every letter in the first line ('m':this is a match trial; '-': this is a nonmatch trial). We have created many versions of the N-back task, including verbal ones and spatial ones.
Data Resources. The dataset we created can be accessed at https://github.com/Daniel-Gong/ChatGPT_WM/tree/main/datasets.
Data Pre-Processing. None.
Prompt Example. Here we only focus on the base version of verbal N-back tasks. We use the following format of prompts for N = {1, 2, 3}:
User:
Instruction: as a language model, you are asked to perform a 1-back task. A letter will be presented on every trial. Your task is to respond with 'm' whenever the letter presented is the same as the previous letter, and '-' whenever the letter presented is different from the previous letter. A strict rule is that you must not output anything other than 'm' or '-'. Now begins the task.
User:
{letter}
Model:
{-}(because this is the first letter)
User:
{letter}
Model:
{m/-}
...
User:
Instruction: as a language model, you are asked to perform a 2-back task. A letter will be presented on every trial. Your task is to respond with 'm' whenever the letter presented is the same as the letter two trials ago, and '-' whenever the letter presented is different from the letter two trials ago. A strict rule is that you must not output anything other than 'm' or '-'. Now begins the task.
User:
{letter}
Model:
{-}(because this is the first letter)
User:
{letter}
Model:
{m/-}
...
User:
Instruction: as a language model, you are asked to perform a 3-back task. A letter will be presented on every trial. Your task is to respond with 'm' whenever the letter presented is the same as the letter three trials ago, and '-' whenever the letter presented is different from the letter three trials ago. A strict rule is that you must not output anything other than 'm' or '-'. Now begins the task.
User:
{letter}
Model:
{-}(because this is the first letter)
User:
{letter}
Model:
{m/-}
...
Metrics. We use exact match of the extraction results to calculate the hit rate, false alarm rate, and accuracy. d′ (detection sensitivity) is calculated as the z score of hit rate minus the z score of false alarm rate. In the case where the hit rate or false alarm rate is equal to either 0 or 1, they will be adjusted by 0.01 to handle the problem of z score being infinite.
Benchmarks archive 2025-07-28
No leaderboard in the archive resolves to this dataset.
Papers archive 2025-07-28
No paper in the archive has a leaderboard row on this dataset; the archive counts 1 paper for it but never published that list.
Dataset loaders archive 2025-07-28
No loader listed in the archive.
Tasks archive 2025-07-28
No task tagged in the archive.
License archive 2025-07-28
MIT license
Modalities archive 2025-07-28
No modality tagged.
Languages archive 2025-07-28
No language tagged.
Variants archive 2025-07-28
- N-back-tasks-for-ChatGPT
1 variant name, as the archive lists them.
Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections