What Are the Rules? Discovering Constraints from Data

Abstract. Constraint programming and AI planning are powerful tools for solving assignment, optimization, and scheduling problems. They require, however, the rarely available combination of domain knowledge and mathematical modeling expertise. Learning constraints from exemplary solutions can close this gap and alleviate the effort of modeling. Existing approaches either require extensive user interaction, need exemplary invalid solutions that must be generated by experts at great expense, or show high noise-sensitivity.

We aim to find constraints from potentially noisy solutions, without the need of user interaction. To this end, we formalize the problem in terms of the Minimum Description Length (MDL) principle, by which we select the model with the best lossless compression of the data. Solving the problem involves model counting, which is \#P-hard to approximate. We therefore propose the greedy UrPiLs algorithm to find high-quality constraints in practice. Extensive experiments on constraint programming and AI planning benchmark data show UrPiLs not only finds more accurate and succinct constraints, but also is more robust to noise, and has lower sample complexity than the state of the art.


the source code (August 2023), by Boris Wiegand.

Related Publications

Wiegand, B, Klakow, D & Vreeken, J What are the Rules? Discovering Constraints from Data. In: Proceedings of the AAAI Conference on Artificial Intelligence (AAAI), AAAI, 2024. (oral presentation, 2,3% acceptance rate; 23.8% overall)