--- license: cc-by-4.0 task_categories: - text-generation - question-answering language: - en tags: - reasoning - planning - symbolic-reasoning - algorithmic-reasoning - benchmark - length-generalization size_categories: - 100K # RecurrReason: Recurrent Reasoning on Symbolic Puzzles **A difficulty-controlled benchmark for evaluating multi-step reasoning in language models** [![Paper](https://img.shields.io/badge/Paper-ICLR%202026-blue)](https://openreview.net/forum?id=ErgAON9dOW) [![GitHub](https://img.shields.io/badge/GitHub-Code-green)](https://github.com/gowravmannem/Recurrent-Reasoning-on-Puzzles) [![License](https://img.shields.io/badge/License-CC%20BY%204.0-yellow.svg)](https://creativecommons.org/licenses/by/4.0/) [![HuggingFace](https://img.shields.io/badge/๐Ÿค—-Dataset-orange)](https://huggingface.co/datasets/gmannem/RecurrReason) --- ## ๐Ÿ“‹ Table of Contents - [Overview](#overview) - [Dataset Structure](#dataset-structure) - [Puzzles](#puzzles) - [Quick Start](#quick-start) - [Citation](#citation) - [License](#license) --- ## ๐ŸŽฏ Overview RecurrReason is a benchmark of **four recurrent logic puzzles** with **optimal trajectories** and controlled difficulty scaling (N=1 to 10). It tests whether language models can: - Find **optimal** (minimal-length) solutions - Produce **valid** intermediate steps - **Generalize** to harder out-of-distribution instances | Metric | Value | |--------|-------| | **Total Puzzles** | 10,817 | | **Total Moves** | 285,933 | | **Puzzle Types** | 4 | | **Difficulty Range** | N=1 to 10 | Current reasoning benchmarks often test only **final answer correctness**. RecurrReason evaluates: - **Move validity**: Are all intermediate steps legal? - **Optimality**: Is the solution minimal-length? - **Length generalization**: Does performance hold on longer sequences? --- ## ๐Ÿ“Š Dataset Structure ### Data Splits | Split | N Range | Purpose | |-------|---------|---------| | **Train** | N=1-7 | In-distribution training data | | **Test (OOD)** | N=8-10 | Out-of-distribution evaluation | **Note:** We provide train and test splits. Users can create their own validation split from the training data if needed. ### File Structure ``` RecurrReason/ โ”œโ”€โ”€ Block World/ โ”‚ โ”œโ”€โ”€ bw_train_1_7.csv โ”‚ โ””โ”€โ”€ bw_test_8_10.csv โ”œโ”€โ”€ Checkers Jumping/ โ”‚ โ”œโ”€โ”€ cj_train_1_7.csv โ”‚ โ””โ”€โ”€ cj_test_8_10.csv โ”œโ”€โ”€ Tower of Hanoi/ โ”‚ โ”œโ”€โ”€ toh_train_1_7.csv โ”‚ โ””โ”€โ”€ toh_test_8_10.csv โ”œโ”€โ”€ River Crossing/ โ”‚ โ”œโ”€โ”€ rc_train_1_7.csv โ”‚ โ””โ”€โ”€ rc_test_8_10.csv โ””โ”€โ”€ README.md (this file) ``` --- ## ๐Ÿงฉ Puzzles RecurrReason contains four diverse logic puzzles with different structural properties: | Puzzle | Difficulty | Solution Length | Transition Locality | Puzzles | Moves | |--------|-----------|-----------------|---------------------|---------|-------| | **[Block World](BLOCK_WORLD.md)** | โญโญ | O(N) | O(1) | 849 | 5,827 | | **[Checkers Jumping](CHECKERS_JUMPING.md)** | โญโญโญ | (N+1)ยฒโˆ’1 | O(N) | 5,700 | 242,494 | | **[Tower of Hanoi](TOWER_OF_HANOI.md)** | โญโญโญโญโญ | 2^Nโˆ’1 | O(N) | 60 | 12,216 | | **[River Crossing](RIVER_CROSSING.md)** | โญโญโญโญ | Variable | O(N) global | 4,208 | 25,396 | Click on each puzzle name for detailed documentation including: - Puzzle rules and constraints - State representation format - Example trajectories - Column descriptions ### Quick Puzzle Descriptions
Block World - Rearrange blocks in stacks **Goal:** Move blocks from initial configuration to target configuration. **Rules:** - Only top block of a stack can be moved - Can place on empty stack or on top of another block **Why interesting:** O(1) transition locality makes it learnable and tests dependency reasoning. [โ†’ Full documentation](BLOCK_WORLD.md)
Checkers Jumping - Swap red and blue checkers **Goal:** Swap N red and N blue checkers on a 1D board with one empty space between them. **Rules:** - Red moves only right, blue only left (and vice versa based on starting configuration) - Can slide to adjacent empty space or jump over opposite color **Why interesting:** Quadratic solution length and tests avoiding dead-end configurations. [โ†’ Full documentation](CHECKERS_JUMPING.md)
Tower of Hanoi - Transfer disks between pegs **Goal:** Move N disks from source peg to target peg across 3 pegs. **Rules:** - Move one disk at a time - Only topmost disk can be moved - Larger disk cannot be on top of a smaller disk **Why interesting:** Exponential solution length (2^Nโˆ’1). It is a classic recursive problem. [โ†’ Full documentation](TOWER_OF_HANOI.md)
River Crossing - Transport agents safely **Goal:** Transport N actor-agent pairs across river using boat with capacity k. **Rules:** - Boat holds at most k individuals - Actor aแตข cannot be with agent Aโฑผ (jโ‰ i) unless agent Aแตข is present **Why interesting:** Global O(N) constraint verification and tests constraint satisfaction. [โ†’ Full documentation](RIVER_CROSSING.md)
--- ## ๐Ÿš€ Quick Start ### Installation ```bash pip install datasets ``` ### Loading the Dataset ```python from datasets import load_dataset # Load a specific puzzle dataset = load_dataset("gmannem/RecurrReason", "block_world") # Access splits train_data = dataset["train"] # N=1-7 test_data = dataset["test"] # N=8-10 (OOD) # Iterate over examples for example in train_data: print(f"Difficulty N={example['N']}") print(f"Current state: {example['current_state']}") print(f"Next state: {example['next_state']}") print(f"Move: {example['move']}") print("---") break ``` ### Loading All Puzzles ```python from datasets import load_dataset puzzles = ["block_world", "checkers_jumping", "tower_of_hanoi", "river_crossing"] datasets = { puzzle: load_dataset("gmannem/RecurrReason", puzzle) for puzzle in puzzles } # Access specific puzzle bw_train = datasets["block_world"]["train"] ``` ### Example: Evaluating a Model ```python from datasets import load_dataset # Load test data (OOD, N=8-10) test_data = load_dataset("gmannem/RecurrReason", "block_world", split="test") def evaluate_model(model, test_data): """ Evaluate model on RecurrReason benchmark. Metrics: - Success rate: % of puzzles solved correctly - Move validity: % of generated moves that are legal - Optimality gap: (model_length - optimal_length) / optimal_length """ success_count = 0 for example in test_data: # Your model prediction logic here predicted_next_state = model.predict( current_state=example['current_state'], goal_state=example['goal_state'] ) # Check if prediction matches ground truth if predicted_next_state == example['next_state']: success_count += 1 success_rate = success_count / len(test_data) print(f"Success Rate: {success_rate:.2%}") return success_rate ``` --- ## ๐Ÿ“„ Paper & Code **"Recurrent Reasoning on Symbolic Puzzles with Sequence Models"** Gowrav Mannem, Chowdhury Marzia Mahjabin, Jason Chen, Shivank Garg, Kevin Zhu *ICLR 2026 Workshop on Logical Reasoning of Large Language Models* ๐Ÿ”— [Read on OpenReview](https://openreview.net/forum?id=ErgAON9dOW) ๐Ÿ“„ [PDF](https://openreview.net/pdf?id=ErgAON9dOW) ๐Ÿ”— [GitHub Repository](https://github.com/gowravmannem/Recurrent-Reasoning-on-Puzzles) --- ## ๐Ÿ“– Citation If you use RecurrReason in your research, please cite the following papers. This benchmark extends the puzzles introduced by Shojaee et al. (2025) with BFS-optimal trajectories, permutation augmentations, and systematic difficulty scaling. ```bibtex @inproceedings{mannem2026recurrent, title={Recurrent Reasoning on Symbolic Puzzles with Sequence Models}, author={Gowrav Mannem and Chowdhury Marzia Mahjabin and Jason Chen and Shivank Garg and Kevin Zhu}, booktitle={ICLR 2026 Workshop on Logical Reasoning of Large Language Models}, year={2026}, url={https://openreview.net/forum?id=ErgAON9dOW} } @article{shojaee2025illusion, title={The illusion of thinking: Understanding the strengths and limitations of reasoning models via the lens of problem complexity}, author={Shojaee, Parshin and Mirzadeh, Iman and Alizadeh, Keivan and Horton, Maxwell and Bengio, Samy and Farajtabar, Mehrdad}, journal={arXiv preprint arXiv:2506.06941}, year={2025} } ``` --- ## ๐Ÿ“œ License This dataset is licensed under the **Creative Commons Attribution 4.0 International License (CC BY 4.0)**. **You are free to:** - Share โ€” copy and redistribute the dataset - Adapt โ€” remix, transform, and build upon the dataset - For any purpose, even commercially **Under the following terms:** - **Attribution** โ€” You must give appropriate credit by citing our paper Full license text: https://creativecommons.org/licenses/by/4.0/ --- ## ๐Ÿค Contributing Found an issue or have suggestions? Please: 1. Open an issue on [GitHub](https://github.com/gowravmannem/Recurrent-Reasoning-on-Puzzles/issues) 2. Use the "Discussions" tab on HuggingFace 3. Contact us at: gowravmannem@gmail.com ---
**Built with โค๏ธ for the AI reasoning research community**