Learning with Logical Constraints but without Shortcut Satisfaction

Zenan Li, Zehua Liu, Yuan Yao, Jingwei Xu, Taolue Chen +2 more
2/12/2026

No official code found. Best implementation: SoftWiser-group/NeSy-without-Shortcuts (8 stars, last commit 2023-07-18).

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.

View on arXivView PDF

Code Implementations(1)

Code for the paper "Learning with Logical Constraints but without Shortcut Satisfaction"

83Shell, PrologFeb 22, 20233 years ago

Similar Papers

Cite this paper

@article{li2026learning,
  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ü},
  year   = {2026},
  eprint = {2403.00329},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2403.00329},
  journal = {ICLR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.00329.svg)](https://codeofpaper.com/paper/2403.00329)

Discussion