Skip to main content
QUICK REVIEW

[Paper Review] Deep Adaptive Semantic Logic (DASL): Compiling Declarative Knowledge into Deep Neural Networks

Karan Sikka, Andrew Silberfarb|arXiv (Cornell University)|Mar 16, 2020
Topic ModelingComputer Science45 references6 citations
TL;DR

This paper introduces Deep Adaptive Semantic Logic (DASL), a framework that compiles first-order logic knowledge into differentiable deep neural networks using a logit-based truth representation to avoid vanishing gradients. By unifying data and declarative knowledge in a single end-to-end trainable model, DASL reduces data requirements by up to 1,000× in a toy MNIST task and improves visual relationship detection performance by 10.7% in low-data regimes.

ABSTRACT

We introduce Deep Adaptive Semantic Logic (DASL), a novel framework for automating the generation of deep neural networks that incorporates user-provided formal knowledge to improve learning from data. We provide formal semantics that demonstrate that our knowledge representation captures all of first order logic and that finite sampling from infinite domains converges to correct truth values. DASL's representation improves on prior neural-symbolic work by avoiding vanishing gradients, allowing deeper logical structure, and enabling richer interactions between the knowledge and learning components. We illustrate DASL through a toy problem in which we add structure to an image classification problem and demonstrate that knowledge of that structure reduces data requirements by a factor of $1000$. We then evaluate DASL on a visual relationship detection task and demonstrate that the addition of commonsense knowledge improves performance by $10.7\%$ in a data scarce setting.

Motivation & Objective

  • Address the brittleness of symbolic knowledge representation and data hunger of deep learning by unifying them in a single framework.
  • Enable deep neural networks to incorporate formal, user-provided declarative knowledge expressed in first-order logic.
  • Overcome vanishing gradient issues in neural-symbolic systems by using a logit-based truth representation instead of fuzzy logic.
  • Demonstrate that DASL supports full first-order logic, including nested quantifiers, functions, and equality, with formal soundness and completeness.
  • Reduce data requirements and improve generalization in low-data regimes through structured knowledge integration in vision tasks.

Proposed method

  • Represent domain relations and functions as reusable, learnable neural networks with arbitrary architecture.
  • Compile first-order logic assertions into a single deep neural network by composing neural components using logical connectives.
  • Use a logit-based truth representation (real-valued, unbounded) to preserve gradient flow during backpropagation, avoiding vanishing gradients.
  • Treat labels as logical assertions, unifying supervised, semi-supervised, unsupervised, and distantly supervised learning under one training regime.
  • Apply mini-batch sampling to infinite domains, proving convergence to correct truth values in the limit.
  • Support restricted quantification and hybrid network architectures through syntactic extensions without violating first-order logic constraints.

Experimental results

Research questions

  • RQ1Can a deep neural network be automatically compiled from declarative knowledge expressed in first-order logic while preserving differentiability?
  • RQ2Does a logit-based truth representation in neural-symbolic systems prevent vanishing gradients and enable deeper logical structures?
  • RQ3Can DASL achieve soundness and completeness for full first-order logic, including quantifiers and equality?
  • RQ4To what extent does integrating commonsense knowledge reduce data requirements in vision tasks with limited labeled data?
  • RQ5How does DASL improve model generalization and performance in zero-shot and low-data settings compared to standard deep learning baselines?

Key findings

  • DASL achieves a 1,000-fold reduction in data requirements on a modified MNIST digit classification task by incorporating arithmetic constraints as declarative knowledge.
  • On the Visual Relationship Detection (VRD) dataset, DASL improves recall by 10.7% (from 59.4% to 70.1%) when using only 1% of training data, demonstrating strong performance gains in data-scarce settings.
  • The performance gain is more pronounced in low-data regimes (e.g., 1% data) and zero-shot settings, where knowledge acts as a strong regularizer.
  • The VGG-SS model augmented with knowledge achieves 78.5% recall at R@100, a 1.4% absolute improvement over the baseline, with statistical significance (p < 0.01).
  • DASL’s formal semantics prove soundness and completeness for full first-order logic, including nested quantifiers and equality, with convergence guarantees under finite sampling.
  • The logit-based truth representation enables stable backpropagation through complex logical structures, overcoming limitations of prior fuzzy logic-based approaches.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.