Learning with Logical Constraints but without Shortcut Satisfaction
State Key Lab of Novel Software Technology, Nanjing University(南京大学计算机软件新技术国家重点实验室);The University of Hong Kong(香港大学);Birkbeck, University of London(伦敦大学伯克贝克学院)
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.
A homotopy-type-theoretic generalization of neurosymbolic inference
King Abdullah University of Science and Technology(阿卜杜拉国王科技大学);KAUST Center of Excellence for Smart Health (KCSH)(KAUST智能健康卓越中心);KAUST Center of Excellence for Generative AI(KAUST生成式人工智能卓越中心)
SemanticForge: Repository-Level Code Generation through Semantic Knowledge Graphs and Constraint Satisfaction
Department of Elec.&Comp. Science, University of Massachusetts Amherst(马萨诸塞大学阿姆赫斯特分校电子与计算机科学系);Department of Computer Sys. Engineering, Northeastern University(东北大学计算机系统工程系);Department of Computer Science, George Mason University(乔治·梅森大学计算机科学系);Department of Info. Networking Institude, Carnegie Mellon University(卡内基梅隆大学信息网络研究所);Department of Computer & Mathematical Sciences, Auckland University of Technology(奥克兰理工大学计算机与数学科学系)