puzzle-bench
收藏资源简介:
Puzzle Bench 是一个包含数独和迷宫任务的难度标记评估数据集,旨在比较离散扩散模型与自回归模型的性能。数据集包含两个主要配置:数独和迷宫。数独数据集包含10,000个9x9数独谜题,每个谜题都有求解器计算的难度指标,包括空白单元格数量、求解步骤数、回溯次数、最大递归深度和难度等级(简单、中等、困难)。迷宫数据集包含4,000个迷宫,涵盖4种网格大小,每个迷宫都有随机起点和终点,以及BFS难度指标,包括迷宫编码、起点和终点坐标、网格大小、生成算法、最短路径长度、BFS扩展节点数和难度等级。数据集适用于文本生成任务,支持英语,规模在10K到100K之间,采用MIT许可证。
Puzzle Bench is a difficulty-labeled evaluation dataset containing Sudoku and maze tasks, designed to compare the performance of discrete diffusion models and autoregressive models. The dataset includes two main configurations: Sudoku and maze. The Sudoku dataset consists of 10,000 9x9 Sudoku puzzles, each with difficulty metrics calculated by a solver, including the number of blank cells, number of solving steps, number of backtracks, maximum recursion depth, and difficulty level (easy, medium, hard). The maze dataset contains 4,000 mazes covering 4 grid sizes, each with a random start and end point, as well as BFS-based difficulty metrics, including maze encoding, start and end coordinates, grid size, generation algorithm, shortest path length, number of BFS-expanded nodes, and difficulty level. This dataset is applicable to text generation tasks, supports English, has a scale ranging from 10K to 100K, and is released under the MIT License.
Puzzle Bench 数据集概述
数据集基本信息
- 数据集名称: Puzzle Bench
- 托管地址: https://huggingface.co/datasets/zeyuzy/puzzle-bench
- 许可证: MIT
- 任务类别: 文本生成
- 语言: 英语
- 数据规模: 10K < n < 100K
- 标签: 数独、迷宫、谜题、约束满足、扩散模型、基准测试
数据集构成
数据集包含两个独立的配置,分别对应两种谜题类型。
配置一:Sudoku
- 配置名称:
sudoku - 样本数量: 10,000 个谜题
- 谜题类型: 9x9 标准数独
- 特征列:
puzzle: 81位数字字符串(0代表空格)solution: 81位数字解决方案字符串empty_count: 空格数量steps_count: 求解器步数(使用MRV + 回溯算法)backtrack_count: 回溯次数max_depth: 最大递归深度difficulty: 难度等级(easy / medium / hard)
难度分布
| 难度等级 | 样本数量 | 步数范围 | 回溯次数范围 |
|---|---|---|---|
| easy | 3,333 | 45-47 | 0(纯逻辑求解) |
| medium | 3,333 | 47-753 | 0-699 |
| hard | 3,334 | 754-663K | 698-663K |
配置二:Maze
- 配置名称:
maze - 样本数量: 4,000 个迷宫
- 特征列:
maze: 编码墙壁的二进制字符串start: 起点坐标(行,列)goal: 终点坐标(行,列)grid_size: 网格尺寸(3, 5, 7 或 10)algorithm: 生成算法(dfs 或 wilson)solution_length: BFS最短路径长度bfs_nodes: BFS扩展节点数difficulty: 难度等级(easy / medium / hard)
尺寸分布
| 网格尺寸 | 样本数量 | 解决方案长度范围 | 唯一起点数量 |
|---|---|---|---|
| 3x3 | 1,000 | 3-8 | 8 |
| 5x5 | 1,000 | 5-22 | 24 |
| 7x7 | 1,000 | 7-41 | 48 |
| 10x10 | 1,000 | 10-75 | 89 |
数据集目的
该数据集是带有难度标签的评估数据集,专为在数独和迷宫任务上比较离散扩散模型与自回归模型而设计。
相关资源
- GitHub项目: https://github.com/zeyuzhangzyz/puzzle-bench




