nielsr HF Staff commited on
Commit
f2dadff
·
verified ·
1 Parent(s): 98a0674

Add dataset card and metadata for RandSATBench

Browse files

Hello! I'm Niels, part of the community science team at Hugging Face. I noticed that this dataset repository doesn't have a dataset card yet. I've opened this PR to add a README that includes:
- Metadata for task categories (`graph-ml`) and license (`mit`).
- Links to the associated paper and GitHub repository.
- Dataset statistics for the K-SAT and q-coloring benchmarks.
- Instructions on how to download or generate the datasets as described in the official repository.

This will help researchers better discover and utilize your benchmark on the Hugging Face Hub!

Files changed (1) hide show
  1. README.md +60 -0
README.md ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ task_categories:
4
+ - graph-ml
5
+ ---
6
+
7
+ # RandSATBench: Benchmarks for Constraint Satisfaction Problems
8
+
9
+ This repository contains the benchmarks presented in the paper [Benchmarking Graph Neural Networks in Solving Hard Constraint Satisfaction Problems](https://huggingface.co/papers/2602.18419).
10
+
11
+ **RandSATBench** provides a mixed set of easy, hard, and unsatisfiable instances of constraint satisfaction problems, specifically *q-coloring* and *Boolean satisfiability* (K-SAT) problems. The goal is to provide a challenging setting to compare the performance of deep learning methods (particularly Graph Neural Networks) against classical exact and heuristic solvers.
12
+
13
+ - **Paper:** [https://huggingface.co/papers/2602.18419](https://huggingface.co/papers/2602.18419)
14
+ - **Repository:** [https://github.com/ArtLabBocconi/RandCSPBench](https://github.com/ArtLabBocconi/RandCSPBench)
15
+
16
+ ## Datasets
17
+
18
+ The benchmark includes datasets for Boolean satisfiability (3-SAT and 4-SAT) and coloring problems (3-coloring and 5-coloring). The instances vary in size ($N=16, 32, 64, 256$) and connectivity.
19
+
20
+ | Dataset | # Train Instances | # Test Instances |
21
+ |---------|-------------------|------------------|
22
+ | 3-SAT | 168,000 | 42,000 |
23
+ | 4-SAT | 84,000 | 21,000 |
24
+ | 3-col | 60,000 | 20,000 |
25
+ | 5-col | 60,000 | 20,000 |
26
+
27
+ ## Usage
28
+
29
+ ### K-SAT
30
+
31
+ The random instances of 3-SAT or 5-SAT problems in CNF format can be downloaded using the following:
32
+
33
+ ```bash
34
+ wget https://huggingface.co/datasets/CarloLucibello/kSAT-Benchmarks/resolve/main/kSAT.zip
35
+ unzip kSAT.zip
36
+ ```
37
+
38
+ Ground truth solutions obtained by running the CaDiCal solver are available in the corresponding `train_labels.csv` files.
39
+
40
+ ### q-coloring
41
+
42
+ To generate the random graphs for the 3-coloring and 5-coloring benchmarks, use the scripts provided in the GitHub repository:
43
+
44
+ ```bash
45
+ cd datasets
46
+ python gen_graphs_coloring.py
47
+ ```
48
+
49
+ ## Citation
50
+
51
+ If you use this benchmark in your research, please cite:
52
+
53
+ ```bibtex
54
+ @article{lucibello2026benchmarking,
55
+ title={Benchmarking Graph Neural Networks in Solving Hard Constraint Satisfaction Problems},
56
+ author={Lucibello, Carlo and others},
57
+ journal={arXiv preprint arXiv:2602.18419},
58
+ year={2026}
59
+ }
60
+ ```