University of Trento Logo
Structured Machine Learning Group Logo

auto-nesy-bench: Auto-Formalizing Neuro-Symbolic Predictors

Samuele Bortolotti10, Weixin Chen20, Han Zhao2,
Andrea Passerini1, Stefano Teso11, Antonio Vergari31

1University of Trento, 2University of Illinois Urbana-Champaign, 3University of Edinburgh

0 Equal contribution 1 Equal supervision

University of Illinois Urbana-Champaign Logo
University of Edinburgh Logo
the auto-formalization pipeline
Given a natural-language description of a constraint and its variables, an LLM generates a DIMACS, NAT, PySAT, CPMpy or SymPy formalization. Every output is converted to DIMACS, compiled into a circuit, and used by a NeSy predictor, so that its output satisfies the constraint by design. The five boxes show equivalent encodings of (green ∧ clear) β‡’ forward.

Abstract

Neuro-Symbolic (NeSy) predictors incorporate prior knowledge into the prediction process of neural networks, ensuring that outputs satisfy specified constraints, making them particularly suitable for high-stakes applications where compliance with domain knowledge is essential. A key bottleneck in this paradigm is the acquisition of symbolic constraints: encoding domain knowledge into logical formulas remains a manual and expert-intensive process. In this work, we investigate the extent to which auto-formalization via LLMs can systematically translate textual knowledge into symbolic knowledge that can be plugged into NeSy predictors. To this end, we introduce auto-nesy-bench, a new benchmark for evaluating constraint formalization and its impact on downstream accuracy of NeSy predictors. Through an extensive evaluation across several domains, we find that LLMs can formalize constraints to a meaningful extent, generating formulas that are often similar to those provided by human experts. Moreover, when the generated formulas are syntactically valid, they can lead to high-quality downstream predictions.

Downloads

Non-redistributable datasets: download_external_datasets.sh (CIFAR-10, CIFAR-100, SUSHI3)

Codebase and data: GitHub

Paper: coming soon

Built on: rsbench (data, code)

Most datasets are shipped with the benchmark archive. CIFAR-10, CIFAR-100 and SUSHI3 cannot be redistributed, so the script above fetches them from their original sources:

# all three datasets into ./data
bash download_external_datasets.sh ./data

# or only some of them
bash download_external_datasets.sh ./data cifar10 sushi

Overview

Why auto-formalization? NeSy predictors guarantee that their predictions satisfy a constraint π–ͺ, but they assume π–ͺ is handed to them as a well-formed formula. Writing it requires a domain expert. What if an end user wants to deploy a NeSy predictor and no expert is available? We use LLMs as the expert, and translate a textual description of the domain knowledge into a CNF formula.

Our goal. We do not aim to replace domain experts, but to support them. LLM-generated formulas remain interpretable, so a user can inspect and correct them before plugging them into a NeSy predictor. Auto-formalization lowers the barrier to adopting NeSy AI, while keeping a human in control of the knowledge the model relies on.

What does the benchmark provide?

We also repurpose two existing benchmarks for auto-formalization: satbench (1,041 satisfiable instances, Wei et al., EMNLP 2025) and dcpbench (85 discrete, non-optimization instances, Michailidis et al., 2026).

Dataset Problems Variables (min / max / mean) Clauses (min / max / mean) NeSy-ready
satbench 1,041 5 / 90 / 36 4 / 50 / 20 βœ—
dcpbench 85 8 / 1,102,080 / 58,673 20 / 7,095,776 / 394,204 βœ—
auto-nesy-bench 18 9 / 102 / 32 17 / 129,648 / 7,966 βœ“

Tasks

Every task is adapted from an established dataset. Follow the links in the Source column to see the original datasets, and please cite them (see Source datasets) if you use the corresponding tasks.

Task Source Variables Clauses Constraint
chx ChestX-Rays 9 27 Severity code determined by the number of findings
fashion Fashion-MNIST 10 46 Exactly one class
bdd-oia-2 BDD-OIA 11 17 Driving rules for move_forward and stop
cle4evr CLEVR (rsbench) 12 28 Two objects share shape and color
cifar10 CIFAR-10 15 157 Class determined by 7 semantic attributes
mn-add-bin MNIST 13 512 Binary-encoded digit addition
mn-mul-bin MNIST (rsbench) 15 712 Binary-encoded digit multiplication
sushi SUSHI3 16 56 4 Γ— 4 permutation matrix (ranking)
kand-logic-2 Kandinsky patterns (rsbench) 24 1,328 Two images share a shape or color pattern (2 primitives)
warcraft Warcraft shortest path 24 289 A single simple path on a 4 Γ— 4 grid
bdd-oia BDD-OIA 25 31 Driving rules for forward, stop, left and right
cebab CEBaB 25 1,070 Majority-vote sentiment aggregation
kand-logic Kandinsky patterns (rsbench) 36 129,648 Two images share a shape or color pattern (3 primitives)
mn-add MNIST 39 364 One-hot digit addition
road-r ROAD-R 41 243 Hand-written requirements over agents, actions and locations
sudoku Visual Sudoku 64 400 Valid 4 Γ— 4 Sudoku solution
cifar100 CIFAR-100 100 4,951 Exactly one class
mn-mul MNIST (rsbench) 102 3,514 One-hot digit multiplication

Examples

Source datasets

auto-nesy-bench would not exist without the datasets it builds on. If you use a task, please also cite the dataset it comes from.

Dataset Task(s) Reference
MNIST mn-add(-bin), mn-mul(-bin), sudoku LeCun, 1998
MNIST addition mn-add(-bin) Manhaeve et al., NeurIPS 2018
Visual Sudoku sudoku Augustine et al., NeSy 2022
Fashion-MNIST fashion Xiao et al., 2017
CIFAR-10 / CIFAR-100 cifar10, cifar100 Krizhevsky, 2009
BDD-OIA bdd-oia(-2) Xu et al., CVPR 2020
ROAD-R road-r Giunchiglia et al., Machine Learning 2023
SUSHI3 sushi Kamishima, KDD 2003
CEBaB cebab Abraham et al., NeurIPS 2022
ChestX-Rays chx Cohen et al., MIDL 2022
Warcraft shortest path warcraft Vlastelica PogančiΔ‡ et al., ICLR 2020
Kandinsky patterns kand-logic(-2) MΓΌller and Holzinger, AIJ 2021
CLEVR cle4evr Johnson et al., CVPR 2017
rsbench mn-mul(-bin), kand-logic(-2), cle4evr, bdd-oia(-2) Bortolotti et al., NeurIPS 2024
BibTeX for the source datasets
@article{lecun1998mnist,
  title  = {The {MNIST} database of handwritten digits},
  author = {LeCun, Yann},
  url    = {http://yann.lecun.com/exdb/mnist/},
  year   = {1998}
}

@inproceedings{manhaeve2018deepproblog,
  title     = {{DeepProbLog}: Neural Probabilistic Logic Programming},
  author    = {Manhaeve, Robin and Dumancic, Sebastijan and Kimmig, Angelika and
               Demeester, Thomas and De Raedt, Luc},
  booktitle = {Advances in Neural Information Processing Systems},
  year      = {2018}
}

@inproceedings{augustine2022visual,
  title     = {Visual Sudoku Puzzle Classification: A Suite of Collective Neuro-Symbolic Tasks},
  author    = {Augustine, Eriq and Pryor, Connor and Dickens, Charles and
               Pujara, Jay and Wang, William and Getoor, Lise},
  booktitle = {International Workshop on Neural-Symbolic Learning and Reasoning (NeSy)},
  year      = {2022}
}

@article{xiao2017fashion,
  title   = {{Fashion-MNIST}: a Novel Image Dataset for Benchmarking Machine Learning Algorithms},
  author  = {Xiao, Han and Rasul, Kashif and Vollgraf, Roland},
  journal = {arXiv preprint arXiv:1708.07747},
  year    = {2017}
}

@techreport{krizhevsky2009learning,
  title       = {Learning Multiple Layers of Features from Tiny Images},
  author      = {Krizhevsky, Alex and Hinton, Geoffrey},
  institution = {University of Toronto},
  year        = {2009}
}

@inproceedings{xu2020explainable,
  title     = {Explainable Object-Induced Action Decision for Autonomous Vehicles},
  author    = {Xu, Yiran and Yang, Xiaoyin and Gong, Lihang and Lin, Hsuan-Chu and
               Wu, Tz-Ying and Li, Yunsheng and Vasconcelos, Nuno},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
  year      = {2020}
}

@article{giunchiglia2023roadr,
  title   = {{ROAD-R}: The Autonomous Driving Dataset with Logical Requirements},
  author  = {Giunchiglia, Eleonora and Stoian, Mihaela C{\u{a}}t{\u{a}}lina and
             Khan, Salman and Cuzzolin, Fabio and Lukasiewicz, Thomas},
  journal = {Machine Learning},
  volume  = {112},
  number  = {9},
  pages   = {3261--3291},
  year    = {2023}
}

@inproceedings{kamishima2003nantonac,
  title     = {Nantonac Collaborative Filtering: Recommendation Based on Order Responses},
  author    = {Kamishima, Toshihiro},
  booktitle = {Proceedings of the Ninth ACM SIGKDD International Conference on
               Knowledge Discovery and Data Mining},
  pages     = {583--588},
  year      = {2003}
}

@inproceedings{abraham2022cebab,
  title     = {{CEBaB}: Estimating the Causal Effects of Real-World Concepts on {NLP} Model Behavior},
  author    = {Abraham, Eldar D and D'Oosterlinck, Karel and Feder, Amir and Gat, Yair and
               Geiger, Atticus and Potts, Christopher and Reichart, Roi and Wu, Zhengxuan},
  booktitle = {Advances in Neural Information Processing Systems},
  volume    = {35},
  pages     = {17582--17596},
  year      = {2022}
}

@inproceedings{cohen2022torchxrayvision,
  title     = {{TorchXRayVision}: A library of chest {X}-ray datasets and models},
  author    = {Cohen, Joseph Paul and Viviano, Joseph D. and Bertin, Paul and
               Morrison, Paul and Torabian, Parsa and Guarrera, Matteo and
               Lungren, Matthew P and Chaudhari, Akshay and Brooks, Rupert and
               Hashir, Mohammad and Bertrand, Hadrien},
  booktitle = {Proceedings of the 5th International Conference on Medical Imaging with Deep Learning},
  series    = {Proceedings of Machine Learning Research},
  volume    = {172},
  pages     = {231--249},
  year      = {2022}
}

@inproceedings{vlastelica2020differentiation,
  title     = {Differentiation of Blackbox Combinatorial Solvers},
  author    = {Vlastelica Pogan{\v{c}}i{\'c}, Marin and Paulus, Anselm and Musil, Vit and
               Martius, Georg and Rolinek, Michal},
  booktitle = {International Conference on Learning Representations},
  year      = {2020}
}

@article{muller2021kandinsky,
  title   = {Kandinsky Patterns},
  author  = {M{\"u}ller, Heimo and Holzinger, Andreas},
  journal = {Artificial Intelligence},
  volume  = {300},
  pages   = {103546},
  year    = {2021}
}

@inproceedings{johnson2017clevr,
  title     = {{CLEVR}: A Diagnostic Dataset for Compositional Language and
               Elementary Visual Reasoning},
  author    = {Johnson, Justin and Hariharan, Bharath and van der Maaten, Laurens and
               Fei-Fei, Li and Zitnick, C Lawrence and Girshick, Ross},
  booktitle = {IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
  year      = {2017}
}

Detailed vs. non-detailed descriptions

Each task description comes in two variants. The detailed variant spells out every rule and lists the background facts that should not be encoded; the non-detailed variant describes the same task in ordinary prose and leaves more of the rule decomposition to the model. Two authors wrote both variants independently, one acting as an expert and one as a non-expert, and then reconciled them clause by clause. Only the constraint description changes between the two conditions: the prompt template and variable list are byte-identical. For example, for sushi:

[DETAILED]
- Each sushi item must be assigned to exactly one preference rank.
- Every rank must be assigned to exactly one sushi item.
- Each sushi item cannot be assigned to more than one rank.
- No two sushi items can share the same rank.

[NOT DETAILED]
- Encode a valid permutation matrix representing a complete ranking of the
  four sushi items.

Evaluation

What are NeSy predictors?

NeSy predictors are classifiers designed for reliability. Given an input π’™βˆˆβ„n, they predict a (multi-)label π’šβˆˆ{0,1}m while leveraging prior knowledge π–ͺ, usually structural or safety requirements over the outputs. The model produces a predictive distribution pΞΈ(π’šβˆ£π’™;π–ͺ) that assigns lower, or even provably zero, probability to outputs that violate π–ͺ:

π’šβŠ¨ΜΈπ–ͺ⟹pΞΈ(π’šβˆ£π’™;π–ͺ)=0.

For example, a self-driving car deciding whether to move forward from an image of the road can be given the constraint π–ͺ:(πšπš›πšŽπšŽπš—βˆ§πšŒπš•πšŽπšŠπš›)β‡’πšπš˜πš›πš πšŠπš›πš. The neural network alone may put mass on πšπš›πšŽπšŽπš—=1,πšŒπš•πšŽπšŠπš›=1,πšπš˜πš›πš πšŠπš›πš=0; a NeSy predictor rules that combination out and renormalizes over the assignments that satisfy π–ͺ. This only works if π–ͺ is correct, which is why we evaluate both the generated formulas and the predictors built on them.

a driving scene with pedestrians on a crosswalk
A driving scene in the style of bdd-oia. Pedestrians are on the crosswalk, so clear = 0. A neural network may still predict forward = 1; a NeSy predictor that enforces K only outputs actions consistent with the rules that relate the observed concepts to the actions.

Formula quality

Existing benchmarks check whether a generated formula has the right satisfiability status. A NeSy predictor needs more than that: it needs to know which assignments the formula admits, because it assigns probability mass only to those. We therefore compare the generated formula Ο•Μ‚ with the ground truth Ο•βˆ— over N variables through model counting (MC):

TP=MC(Ο•βˆ—βˆ§Ο•Μ‚),FP=MC(Β¬Ο•βˆ—βˆ§Ο•Μ‚),FN=MC(Ο•βˆ—βˆ§Β¬Ο•Μ‚),TN=MC(Β¬Ο•βˆ—βˆ§Β¬Ο•Μ‚).

Counts are exact for tasks with at most 20 variables and use ApproxMC otherwise. Auxiliary (Tseitin) variables are projected out before any negation or conjunction. From these counts we derive

Precision=TPTP+FP,Recall=TPTP+FN,F1=2β‹…Precisionβ‹…RecallPrecision+Recall.

Recall matters most: a formula that wrongly excludes a valid assignment makes that output impossible to predict. We also report the syntax error rate over the n generated formulas, after self-verification:

SyntaxErr=|{i:Ο•Μ‚i fails to parse}|n.

Downstream NeSy predictors

We train each predictor with the generated formula and compare it with the same backbone trained on the ground-truth formula, using F1, precision, recall and accuracy on a held-out test set, plus three metrics tailored to our setting.

Consistency (Con): the fraction of the N test predictions that satisfy the ground-truth formula,

Con=1Nβˆ‘i=1NπŸ™{π’šΜ‚iβŠ¨Ο•βˆ—}.

A consistency below 1 means that some predictions violate the constraints, which can be harmful in the downstream application.

Formula relationship (Rel): we test the two subset relations exactly,

Ο•βˆ—βŠ†Ο•Μ‚β‡”Ο•βˆ—βˆ§Β¬Ο•Μ‚β‰‘βŠ₯,Ο•Μ‚βŠ†Ο•βˆ—β‡”Ο•Μ‚βˆ§Β¬Ο•βˆ—β‰‘βŠ₯,

and assign each generated formula one of four relations:

Relation Condition Meaning
equal (Ο•Μ‚=Ο•βˆ—) Ο•βˆ—βŠ†Ο•Μ‚ and Ο•Μ‚βŠ†Ο•βˆ— Same satisfying assignments
permissive (Ο•Μ‚β‡Ο•βˆ—) Ο•βˆ—βŠ†Ο•Μ‚ and Ο•Μ‚βŠˆΟ•βˆ— Admits every valid assignment plus some invalid ones
strict (Ο•Μ‚β‡’Ο•βˆ—) Ο•Μ‚βŠ†Ο•βˆ— and Ο•βˆ—βŠˆΟ•Μ‚ Excludes some valid assignments
incomparable (Ο•Μ‚βˆ₯Ο•βˆ—) otherwise Both kinds of error

Model-count ratio (MC-R): how many more (or fewer) assignments the generated formula admits,

MC-R(Ο•Μ‚,Ο•βˆ—)=MC(Ο•Μ‚)max(MC(Ο•βˆ—),1).

For example, a permissive formula with MC-R = 1.75 admits 75% more assignments than the ground truth.

Evaluation pipeline

In the paper, we use auto-nesy-bench to evaluate an end-to-end pipeline: an LLM formalizes the constraint, and the resulting formula is plugged into a NeSy predictor used for learning and inference (see the figure at the top of the page).

Auto-formalization

Prompting. Each prompt frames the LLM as an expert in SAT solving and constraint modeling, gives the grounded variables and the constraint description, and asks for the formula inside a <cnf>...</cnf> block in one of five formats: raw DIMACS, natural-language Boolean operators (NAT), or Python programs using PySAT, CPMpy or SymPy. The LLM may introduce auxiliary variables, provided they are defined in terms of the given ones.

Self-verification. When the output has a syntax error, the LLM receives the erroneous formula and the error message, and answers either [[OK]] or [[FIXED]] followed by a corrected formula, for up to five rounds. Formatting issues that need no reasoning, such as a wrong DIMACS header or a missing Python import, are fixed automatically.

Compilation. Every output is converted to DIMACS and compiled into a sentential decision diagram with PySDD. Auxiliary variables are existentially quantified, so the circuit is defined over the same variables as the ground truth.

NeSy predictors: SPL and SL

Semantic probabilistic layer (SPL, hard constraint). SPL sits on top of a neural network and combines its unconstrained distribution qΞΈ(π’šβˆ£π’™) with a constraint circuit cπ–ͺ(π’š), which is non-zero only if π’šβŠ¨π–ͺ:

pΞΈ(π’šβˆ£π’™;π–ͺ)=1Z𝒙qΞΈ(π’šβˆ£π’™)cπ–ͺ(π’š),Z𝒙=βˆ‘π’šqΞΈ(π’šβˆ£π’™)cπ–ͺ(π’š).

The partition function Z𝒙 is computed exactly on the circuit. SPL is trained by maximum likelihood, β„’=βˆ’π”Ό[logpΞΈ(π’šβˆ£π’™;π–ͺ)], and predicts π’šΜ‚=argmaxπ’špΞΈ(π’šβˆ£π’™;π–ͺ), so every prediction satisfies π–ͺ by construction. We implement it with cirkit.

Semantic loss (SL, soft constraint). SL keeps a standard classifier with independent outputs pΞΈ(Yiβˆ£π’™) and penalizes the probability mass it places outside π–ͺ:

β„’SL(π–ͺ,pΞΈ)=βˆ’logβˆ‘π’šβŠ¨π–ͺ∏i=1mpΞΈ(Yi=yiβˆ£π’™),β„’total=β„’task+Ξ»β„’SL.

The sum is the weighted model count of π–ͺ, computed on the same circuit with KLay; we use Ξ»=1. At test time, SL predicts π’šΜ‚=argmaxπ’špΞΈ(π’šβˆ£π’™), with no guarantee of consistency.

The formula therefore matters in different ways: in SPL an incorrect formula rules out valid predictions or allows invalid ones, while in SL it only biases training.

Evaluated models

We evaluate eleven open-weight LLMs, from 8.2B to 117B parameters: qwen3-8b, qwen3-32b, qwen3-coder-next, mistral-nemo, phi4-reasoning-plus, gemma3-27b, gemma4-31b, olmo3-32b-think, deepseek-r1-llama-70b, gpt-oss-20b and gpt-oss-120b. Each model is run with zero-shot (ZS) and zero-shot chain-of-thought (ZS-CoT) prompts, across the five output formats, with a budget of five self-verification steps. For the downstream experiments, we train SPL and SL with the formulas that gpt-oss-120b, olmo3-32b-think and qwen3-8b generate with CPMpy and a detailed ZS-CoT prompt, over five seeds.

Key findings

Results on auto-nesy-bench. Each row is averaged over models and over the factors it does not fix; for example, prompting rows average over output formats. Output-format rows use only the detailed description. Mean Β± standard deviation; the best value in each group is in bold.

Variant Configuration F1 (↑) Precision (↑) Recall (↑) Syntax error (↓)
Description Non-detailed 0.330 Β± 0.206 0.357 Β± 0.218 0.464 Β± 0.221 25.3% Β± 24.9%
Β  Detailed 0.455 Β± 0.277 0.478 Β± 0.279 0.532 Β± 0.263 28.9% Β± 25.7%
Prompting ZS 0.437 Β± 0.262 0.463 Β± 0.268 0.515 Β± 0.243 28.2% Β± 24.7%
Β  ZS-CoT 0.472 Β± 0.290 0.494 Β± 0.289 0.548 Β± 0.281 29.6% Β± 26.6%
Output format DIMACS 0.364 Β± 0.223 0.394 Β± 0.231 0.467 Β± 0.227 20.5% Β± 18.8%
Β  NAT 0.331 Β± 0.173 0.361 Β± 0.178 0.457 Β± 0.199 31.8% Β± 22.5%
Β  PySAT 0.453 Β± 0.300 0.500 Β± 0.310 0.498 Β± 0.284 31.1% Β± 26.3%
Β  CPMpy 0.575 Β± 0.299 0.586 Β± 0.303 0.622 Β± 0.280 30.3% Β± 28.2%
Β  SymPy 0.549 Β± 0.280 0.550 Β± 0.281 0.614 Β± 0.265 30.8% Β± 29.4%

Results per LLM on auto-nesy-bench. Each row is averaged over the five output formats and both prompting strategies, using the detailed description. Models are ordered by size. Best value in bold, second best underlined.

Model Parameters F1 (↑) Precision (↑) Recall (↑) Syntax error (↓)
qwen3-8b 8.2B 0.372 Β± 0.202 0.402 Β± 0.192 0.423 Β± 0.200 30.6% Β± 25.5%
mistral-nemo 12B 0.053 Β± 0.074 0.051 Β± 0.073 0.154 Β± 0.093 62.8% Β± 22.9%
phi4-reasoning-plus 14B 0.423 Β± 0.177 0.438 Β± 0.167 0.440 Β± 0.191 49.4% Β± 16.9%
gpt-oss-20b 21B 0.505 Β± 0.163 0.564 Β± 0.124 0.556 Β± 0.149 30.0% Β± 10.9%
gemma3-27b 27B 0.040 Β± 0.040 0.048 Β± 0.053 0.164 Β± 0.134 55.6% Β± 29.7%
gemma4-31b 31B 0.706 Β± 0.233 0.732 Β± 0.203 0.782 Β± 0.197 3.9% Β± 2.5%
olmo3-32b-think 32B 0.569 Β± 0.126 0.609 Β± 0.105 0.677 Β± 0.110 15.0% Β± 9.0%
qwen3-32b 32.8B 0.655 Β± 0.138 0.678 Β± 0.127 0.712 Β± 0.132 14.4% Β± 11.2%
deepseek-r1-llama-70b 70B 0.412 Β± 0.148 0.435 Β± 0.164 0.527 Β± 0.159 28.3% Β± 22.7%
qwen3-coder-next 80B 0.478 Β± 0.192 0.507 Β± 0.218 0.576 Β± 0.147 20.0% Β± 13.2%
gpt-oss-120b 117B 0.786 Β± 0.137 0.796 Β± 0.137 0.838 Β± 0.101 7.8% Β± 7.1%

License

Code: distributed under the BSD 3-Clause license.

Data: labels, CNF targets and any bundled images or features are distributed under the CC BY-NC-SA 4.0 license. This is the most restrictive license among the bundled datasets, inherited from ROAD-R; all other bundled datasets use licenses that are equally or more permissive.

Dataset Task(s) License Redistributed
MNIST mn-add(-bin), mn-mul(-bin), sudoku Unrestricted (NIST-derived) βœ“
Fashion-MNIST fashion MIT βœ“
CIFAR-10 / CIFAR-100 cifar10, cifar100 No explicit license βœ—
BDD-OIA bdd-oia(-2) See rsbench βœ“
ROAD-R road-r CC BY-NC-SA 4.0 βœ“
SUSHI3 sushi Research use permitted; redistribution forbidden βœ—
CEBaB cebab CC BY 4.0 βœ“
ChestX-Rays chx Unrestricted (NIH), attribution requested βœ“
Warcraft tiles warcraft MIT βœ“
Kandinsky / CLEVR (rsbench) kand-logic(-2), cle4evr BSD 3-Clause βœ“

Datasets not redistributed. SUSHI3 must be downloaded from Kamishima’s archive, whose license explicitly forbids redistribution. CIFAR-10 and CIFAR-100 have no explicit license or redistribution grant, so they are downloaded from the original page (or via torchvision). The download_external_datasets.sh script does both. By running it, you agree to each dataset’s terms of use.

Citation

If you use auto-nesy-bench, please cite:

@misc{bortolotti2026autoformalizing,
  title={Auto-Formalizing Neuro-Symbolic Predictors},
  author={Samuele Bortolotti and Weixin Chen and Han Zhao and Andrea Passerini and Stefano Teso and Antonio Vergari},
  year={2026},
  eprint={2610.01519},
  archivePrefix={arXiv},
  primaryClass={cs.LG},
  url={https://arxiv.org/abs/2610.01519},
}

auto-nesy-bench extends rsbench:

@inproceedings{bortolotti2024benchmark,
  title     = {A Neuro-Symbolic Benchmark Suite for Concept Quality and Reasoning Shortcuts},
  author    = {Bortolotti, Samuele and Marconato, Emanuele and Carraro, Tommaso and
               Morettin, Paolo and van Krieken, Emile and Vergari, Antonio and
               Teso, Stefano and Passerini, Andrea},
  booktitle = {Advances in Neural Information Processing Systems},
  volume    = {37},
  pages     = {115861--115905},
  year      = {2024}
}

Acknowledgments

Funded by the European Union, Grant Agreement no. 101120763 (TANGO). Views and opinions expressed are those of the author(s) only and do not necessarily reflect those of the European Union or the European Health and Digital Executive Agency (HaDEA); neither can be held responsible for them. Antonio Vergari is supported by the β€œUNREAL: Unified Reasoning Layer for Trustworthy ML” project (EP/Y023838/1), selected by the ERC and funded by UKRI EPSRC. Stefano Teso was partially supported by the Flemish research foundation (FWO) project β€œNeurosymbolic AI for Constraint Learning” (G047124N). Weixin Chen and Han Zhao are partially supported by an NSF grant #2504555.