Semantic Objective Functions: A distribution-aware method for adding logical constraints in deep learning

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Mendez-Lucero, Miguel Angel, Gallardo, Enrique Bojorquez, Belle, Vaishak
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866909210299596800
author Mendez-Lucero, Miguel Angel
Gallardo, Enrique Bojorquez
Belle, Vaishak
author_facet Mendez-Lucero, Miguel Angel
Gallardo, Enrique Bojorquez
Belle, Vaishak
contents Issues of safety, explainability, and efficiency are of increasing concern in learning systems deployed with hard and soft constraints. Symbolic Constrained Learning and Knowledge Distillation techniques have shown promising results in this area, by embedding and extracting knowledge, as well as providing logical constraints during neural network training. Although many frameworks exist to date, through an integration of logic and information geometry, we provide a construction and theoretical framework for these tasks that generalize many approaches. We propose a loss-based method that embeds knowledge-enforces logical constraints-into a machine learning model that outputs probability distributions. This is done by constructing a distribution from the external knowledge/logic formula and constructing a loss function as a linear combination of the original loss function with the Fisher-Rao distance or Kullback-Leibler divergence to the constraint distribution. This construction includes logical constraints in the form of propositional formulas (Boolean variables), formulas of a first-order language with finite variables over a model with compact domain (categorical and continuous variables), and in general, likely applicable to any statistical model that was pretrained with semantic information. We evaluate our method on a variety of learning tasks, including classification tasks with logic constraints, transferring knowledge from logic formulas, and knowledge distillation from general distributions.
format Preprint
id arxiv_https___arxiv_org_abs_2405_15789
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Semantic Objective Functions: A distribution-aware method for adding logical constraints in deep learning
Mendez-Lucero, Miguel Angel
Gallardo, Enrique Bojorquez
Belle, Vaishak
Artificial Intelligence
Information Theory
Machine Learning
Logic in Computer Science
Issues of safety, explainability, and efficiency are of increasing concern in learning systems deployed with hard and soft constraints. Symbolic Constrained Learning and Knowledge Distillation techniques have shown promising results in this area, by embedding and extracting knowledge, as well as providing logical constraints during neural network training. Although many frameworks exist to date, through an integration of logic and information geometry, we provide a construction and theoretical framework for these tasks that generalize many approaches. We propose a loss-based method that embeds knowledge-enforces logical constraints-into a machine learning model that outputs probability distributions. This is done by constructing a distribution from the external knowledge/logic formula and constructing a loss function as a linear combination of the original loss function with the Fisher-Rao distance or Kullback-Leibler divergence to the constraint distribution. This construction includes logical constraints in the form of propositional formulas (Boolean variables), formulas of a first-order language with finite variables over a model with compact domain (categorical and continuous variables), and in general, likely applicable to any statistical model that was pretrained with semantic information. We evaluate our method on a variety of learning tasks, including classification tasks with logic constraints, transferring knowledge from logic formulas, and knowledge distillation from general distributions.
title Semantic Objective Functions: A distribution-aware method for adding logical constraints in deep learning
topic Artificial Intelligence
Information Theory
Machine Learning
Logic in Computer Science
url https://arxiv.org/abs/2405.15789