English

Learning with Logical Constraints but without Shortcut Satisfaction

Artificial Intelligence 2024-03-04 v1 Machine Learning

Abstract

Recent studies in neuro-symbolic learning have explored the integration of logical knowledge into deep learning via encoding logical constraints as an additional loss function. However, existing approaches tend to vacuously satisfy logical constraints through shortcuts, failing to fully exploit the knowledge. In this paper, we present a new framework for learning with logical constraints. Specifically, we address the shortcut satisfaction issue by introducing dual variables for logical connectives, encoding how the constraint is satisfied. We further propose a variational framework where the encoded logical constraint is expressed as a distributional loss that is compatible with the model's original training loss. The theoretical analysis shows that the proposed approach bears salient properties, and the experimental evaluations demonstrate its superior performance in both model generalizability and constraint satisfaction.

Keywords

Cite

@article{arxiv.2403.00329,
  title  = {Learning with Logical Constraints but without Shortcut Satisfaction},
  author = {Zenan Li and Zehua Liu and Yuan Yao and Jingwei Xu and Taolue Chen and Xiaoxing Ma and Jian Lü},
  journal= {arXiv preprint arXiv:2403.00329},
  year   = {2024}
}

Comments

Published as a conference paper at ICLR 2023, and code is available at https://github.com/SoftWiser-group/NeSy-without-Shortcuts

R2 v1 2026-06-28T15:05:36.105Z