A Pseudo-Semantic Loss for Autoregressive Models with Logical Constraints
Kareem Ahmed, Kai-Wei Chang, Guy Van den Broeck
摘要
Neuro-symbolic AI bridges the gap between purely symbolic and neural approaches to learning. This often requires maximizing the likelihood of a symbolic constraint w.r.t the neural network's output distribution. Such output distributions are typically assumed to be fully-factorized. This limits the applicability of neuro-symbolic learning to the more expressive autoregressive distributions, e.g., transformers. Under such distributions, computing the likelihood of even simple constraints is #P-hard. Instead of attempting to enforce the constraint on the entire output distribution, we propose to do so on a random, local approximation thereof. More precisely, we optimize the likelihood of the constraint under a pseudolikelihood-based approximation centered around a model sample. Our approximation is factorized, allowing the reuse of solutions to sub-problems, a main tenet for efficiently computing neuro-symbolic losses. Moreover, it is a local, high-fidelity approximation of the likelihood, exhibiting low entropy and KL-divergence around the model sample. We evaluate our approach on Sudoku and shortest-path prediction cast as autoregressive generation, and observe that we greatly improve upon the base model's ability to predict logically-consistent outputs. We also evaluate on the task of detoxifying large language models. Using a simple constraint disallowing a list of toxic words, we are able to steer the model's outputs away from toxic generations, achieving SoTA detoxification compared to previous approaches.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 8 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Adaptable Logical Control for Large Language Models 引用了 RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Models
- Logically Consistent Language Models via Neuro-Symbolic Integration 引用了 Differentiation of Blackbox Combinatorial Solvers
- Logically Consistent Language Models via Neuro-Symbolic Integration 引用了 Semantic Probabilistic Layers for Neuro-Symbolic Learning
- Logically Consistent Language Models via Neuro-Symbolic Integration 引用了 Coherent Hierarchical Multi-Label Classification Networks
- Logically Consistent Language Models via Neuro-Symbolic Integration 引用了 On the Independence Assumption in Neurosymbolic Learning
- Semantic Probabilistic Layers for Neuro-Symbolic Learning 引用了 Differentiation of Blackbox Combinatorial Solvers
- Semantic Probabilistic Layers for Neuro-Symbolic Learning 引用了 Coherent Hierarchical Multi-Label Classification Networks
- Semantic Probabilistic Layers for Neuro-Symbolic Learning 引用了 Einsum Networks: Fast and Scalable Learning of Tractable Probabilistic Circuits
- On the Independence Assumption in Neurosymbolic Learning 引用了 Semantic Probabilistic Layers for Neuro-Symbolic Learning
- Neurosymbolic Diffusion Models 引用了 Differentiation of Blackbox Combinatorial Solvers
- Neurosymbolic Diffusion Models 引用了 Adaptable Logical Control for Large Language Models
- Neurosymbolic Diffusion Models 引用了 Logically Consistent Language Models via Neuro-Symbolic Integration
- Neurosymbolic Diffusion Models 引用了 Semantic Probabilistic Layers for Neuro-Symbolic Learning
- Neurosymbolic Diffusion Models 引用了 On the Independence Assumption in Neurosymbolic Learning
引用它的顶会 Paper8
- Adaptable Logical Control for Large Language ModelsHonghua Zhang, Po-Nien Kung, Masahiro Yoshida, Guy Van den Broeck 等NeurIPS 2024 · 42 次引用
- On the Independence Assumption in Neurosymbolic LearningEmile van Krieken, Pasquale Minervini, Edoardo M. Ponti, Antonio VergariICML 2024 · 18 次引用
- Neurosymbolic Diffusion ModelsEmile van Krieken, Pasquale Minervini, Edoardo Maria Ponti, Antonio VergariNeurIPS 2025 · 12 次引用
- Compositional Neural Network Verification via Assume-Guarantee ReasoningHai Duong, David Shriver, ThanhVu Nguyen, Matthew DwyerNeurIPS 2025 · 10 次引用
- Logically Consistent Language Models via Neuro-Symbolic IntegrationDiego Calanzone, Stefano Teso, Antonio VergariICLR 2025 · 2 次引用
它引用的 Paper10
- RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language ModelsSamuel Gehman, Suchin Gururangan, Maarten Sap, Yejin Choi 等EMNLP Findings 2020 · 692 次引用
- Differentiation of Blackbox Combinatorial SolversMarin Vlastelica Pogancic, Anselm Paulus, Vít Musil, Georg Martius 等ICLR 2020 · 341 次引用
- Einsum Networks: Fast and Scalable Learning of Tractable Probabilistic CircuitsRobert Peharz, Steven Lang, Antonio Vergari, Karl Stelzner 等ICML 2020 · 155 次引用
- Coherent Hierarchical Multi-Label Classification NetworksEleonora Giunchiglia, Thomas LukasiewiczNeurIPS 2020 · 142 次引用
- Semantic Probabilistic Layers for Neuro-Symbolic LearningKareem Ahmed, Stefano Teso, Kai-Wei Chang, Guy Van den Broeck 等NeurIPS 2022 · 133 次引用
相关 Paper
- Controllable Generation via Locally Constrained ResamplingKareem Ahmed, Kai-Wei Chang, Guy Van den BroeckICLR 2025
- Constraints-Guided Diffusion Reasoner for Neuro-Symbolic LearningXuan Zhang, Zhijian Zhou, Weidi Xu, Yanting Miao 等AAAI 2026
- MIL-Decoding: Detoxifying Language Models at Token-Level via Multiple Instance LearningXu Zhang, Xiaojun WanACL 2023 · 3 次引用
- Contrastive Perplexity for Controlled Generation: An Application in Detoxifying Large Language ModelsTassilo Klein, Moin NabiACL 2025
- CMD: a framework for Context-aware Model self-DetoxificationZecheng Tang, Keyan Zhou, Juntao Li, Yuyang Ding 等EMNLP 2024 · 1 次引用
