Constrained Sequential Inference in Machine Learning Using Constraint Programming
Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. Main Track. Pages 2628-2636.
https://doi.org/10.24963/ijcai.2025/293
Keywords
- Machine Learning: ML: Structured prediction
- Constraint Satisfaction and Optimization: CSO: Constraint programming
- Machine Learning: ML: Neuro-symbolic methods/Abductive Learning
- Machine Learning: ML: Generative models
Abstract
Sequence models in machine learning often struggle to exhibit long-term structure. We consider this problem at inference time in the context of enforcing constraints that are not necessarily featured in the dataset on which the generative model was trained. The difficulty lies in imposing previously-unseen structure while staying close to the training dataset. It is particularly hard for long-term structure, which requires balancing foresight over many yet-to-be generated tokens and the immediacy of next-token predictions from the sequence model. We address this problem by introducing our neurosymbolic framework GeAI-BLAnC. The learned probabilities of the sequence model are mixed in with the marginal probabilities computed from a constraint programming / belief propagation framework applied to a constraint programming model expressing the desired structure.
The next predicted token is then selected from the resulting probability distribution. Experiments in the context of molecule and music generation show that we can achieve the structure imposed post-training without straying too much from the structure of the dataset learned during training.
@inproceedings{ijcai2025p293,
title = {Constrained Sequential Inference in Machine Learning Using Constraint Programming},
author = {Manibod, Virasone and Saikali, David and Pesant, Gilles},
booktitle = {Proceedings of the Thirty-Fourth International Joint Conference on
Artificial Intelligence, {IJCAI-25}},
publisher = {International Joint Conferences on Artificial Intelligence Organization},
editor = {James Kwok},
pages = {2628--2636},
year = {2025},
month = {8},
note = {Main Track},
doi = {10.24963/ijcai.2025/293},
url = {https://doi.org/10.24963/ijcai.2025/293},
}
TY - CPAPER TI - Constrained Sequential Inference in Machine Learning Using Constraint Programming AU - Manibod, Virasone AU - Saikali, David AU - Pesant, Gilles T2 - Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence, IJCAI-25 PB - International Joint Conferences on Artificial Intelligence Organization PY - 2025 SP - 2628 EP - 2636 DO - 10.24963/ijcai.2025/293 UR - https://doi.org/10.24963/ijcai.2025/293 ER -Copied
Machine-readable versions of this paper, for tools and AI agents: