--- dataset_info: dataset_name: CogniLoad_Dataset description: | CogniLoad is a synthetic dataset of logic grid puzzles. It is designed as a benchmark for evaluating the logical reasoning capabilities of models. The dataset is generated from TXT puzzle files and associated JSON metadata files. Each puzzle includes initialisation statements, numbered logical statements, and a final question. Puzzles are characterized by their length (total number of statements), difficulty, and the number of "needle" statements (critical pieces of information). The dataset is structured into multiple JSONL files, with each file containing puzzles of a specific length. languages: - en license: cc-by-4.0 task_categories: - question-answering - logical-reasoning task_ids: - closed-domain-qa pretty_name: CogniLoad Dataset size_categories: - "n<15K" source_datasets: - original --- # Dataset Card for CogniLoad Logic Puzzles ## Dataset Description - **Repository:** [GitHub](https://github.com/kaiserdan/cogniload) - **Point of Contact:** daniel.kaiser[AT]uit.no **CogniLoad** is a synthetic dataset specifically created for benchmarking logical reasoning in AI models. It consists of logic grid-style puzzles where the goal is uncover a hidden value from a sequence of logical statements. Each puzzle is defined by: * **Initialisation statements**: Setting up the initial state. * **Numbered instruction statements**: Statements for the LLM to reason through. * **A question**: The specific information to find. * **Solution**: The correct answer to the question. Puzzles are categorized by `length` (total number of statements), `difficulty` (a difficulty score), and `needles` (the count of critical, "needle-in-a-haystack" statements). A derived field, `hays`, represents the number of non-critical statements (`num_statements - needles`). In our benchmark we start each puzzle with the instruction `Solve this logic puzzle. You MUST finalize your response with a single sentence about the asked property (eg \"Peter is in the livingroom.\", \"Peter is wearing blue socks\",.. ). Solve the puzzle by reasoning through the statements in a strictly sequential order :`. Following this instruction we list the intialisation statements, the instruction statements, and finally the question. Besides the puzzles and parameters we also provide the metadata associated with each puzzle inside the dataset to empower further studies. The dataset is provided in JSON Lines (JSONL) format, with separate files for puzzles of the lengths 20, 50, 100, and 250 (e.g., `length_20.jsonl`, `length_50.jsonl`). ## How to use The dataset can be loaded using the Hugging Face `datasets` library: ```python from datasets import load_dataset # To load a specific split (e.g., puzzles of length 20) dataset = load_dataset("dkfo/cogniload", name="length_20") # To load all splits dataset = load_dataset("dkfo/cogniload", name="all") ``` ## Example puzzle This is an example puzzle with 20 statements, difficulty 5, and 10 needles. ``` Solve this logic puzzle. You MUST finalize your response with a single sentence about the asked property (eg "Peter is in the livingroom.", "Peter is wearing blue socks",.. ). Solve the puzzle by reasoning through the statements in a strictly sequential order : Carl is wearing a white pant and last ate a toast and is wearing white gloves and is located at the restaurant and last listened to jazz music. Jesse last ate a burger and is wearing a pink pant and is wearing black gloves and is located at the diner and last listened to folk music. Olivia last listened to pop music and is wearing blue gloves and is wearing a orange pant and last ate a sushi and is located at the bar. Paula last ate a potatoes and is located at the beach and is wearing a green pant and last listened to synth music and is wearing green gloves. Dennis is wearing yellow gloves and is located at the hacienda and is wearing a purple pant and last ate a pizza and last listened to ska music. 1. The people located in the beach and which most recently ate potatoes and wearing green gloves and which most recently listened to synth music and wearing a green pant change into a purple pant and move to the diner and eat a pizza and put on black gloves and listen to folk music 2. The people which most recently ate toast and wearing a white pant and which most recently listened to jazz music and located in the restaurant and wearing white gloves move to the hacienda and listen to ska music 3. The people which most recently ate toast and which most recently listened to ska music listen to pop music 4. The people which most recently listened to pop music and wearing white gloves and wearing a white pant and located in the hacienda and which most recently ate toast put on blue gloves 5. The people wearing a orange pant and wearing blue gloves and which most recently ate sushi and which most recently listened to pop music and located in the bar change into a pink pant and move to the beach 6. The people wearing a white pant and which most recently ate toast and located in the hacienda and wearing blue gloves and which most recently listened to pop music move to the restaurant and change into a green pant 7. The people wearing black gloves and wearing a purple pant and which most recently listened to folk music and which most recently ate pizza and located in the diner put on yellow gloves and move to the hacienda and change into a blue pant and eat a sushi and listen to ska music 8. The people which most recently listened to pop music and wearing blue gloves and which most recently ate toast eat a pizza and move to the hacienda and listen to ska music and put on white gloves and change into a pink pant 9. The people wearing yellow gloves and which most recently listened to ska music and which most recently ate pizza and wearing a purple pant and located in the hacienda eat a burger 10. The people wearing a pink pant and which most recently ate pizza and located in the hacienda eat a toast and listen to folk music and change into a blue pant 11. The people wearing yellow gloves put on purple gloves and listen to pop music and move to the beach and change into a orange pant 12. The people wearing a pink pant and wearing black gloves and located in the diner and which most recently listened to folk music and which most recently ate burger listen to synth music and change into a purple pant and put on green gloves and eat a potatoes 13. The people wearing purple gloves put on blue gloves and move to the restaurant and change into a purple pant and listen to country music and eat a burger 14. The people located in the hacienda and which most recently ate toast and wearing a blue pant and wearing white gloves put on green gloves and listen to synth music 15. The people wearing blue gloves and which most recently ate sushi and wearing a pink pant and which most recently listened to pop music and located in the beach change into a green pant and eat a potatoes and listen to jazz music and move to the diner and put on white gloves 16. The people wearing a blue pant and which most recently listened to synth music put on black gloves and change into a pink pant and listen to ska music and move to the beach and eat a sushi 17. The people located in the diner and wearing green gloves and which most recently listened to synth music and wearing a purple pant put on blue gloves and move to the hacienda and change into a green pant and eat a pizza and listen to folk music 18. The people which most recently listened to ska music and which most recently ate sushi listen to pop music and put on blue gloves 19. The people located in the hacienda and wearing blue gloves and which most recently ate pizza and wearing a green pant and which most recently listened to folk music put on black gloves and listen to country music and move to the museum and eat a taco 20. The people which most recently ate sushi and wearing a pink pant put on green gloves What did Carl most recently eat? ``` Solution: `sushi`