Skip to main content
QUICK REVIEW

[Paper Review] Harnessing Deep Neural Networks with Logic Rules

Zhiting Hu, Xuezhe Ma|arXiv (Cornell University)|Mar 21, 2016
Topic ModelingComputer Science47 references200 citations
TL;DR

The paper presents an iterative rule knowledge distillation framework that injects first-order logic rules into CNNs and RNNs, improving sentiment analysis and NER performance by distilling rule-informed predictions into network weights.

ABSTRACT

Combining deep neural networks with structured logic rules is desirable to harness flexibility and reduce uninterpretability of the neural models. We propose a general framework capable of enhancing various types of neural networks (e.g., CNNs and RNNs) with declarative first-order logic rules. Specifically, we develop an iterative distillation method that transfers the structured information of logic rules into the weights of neural networks. We deploy the framework on a CNN for sentiment analysis, and an RNN for named entity recognition. With a few highly intuitive rules, we obtain substantial improvements and achieve state-of-the-art or comparable results to previous best-performing systems.

Motivation & Objective

  • Motivate integrating structured logic rules with deep neural networks to improve interpretability and reduce data demands.
  • Propose an iterative teacher-student distillation framework that transfers rule knowledge into network parameters.
  • Demonstrate effectiveness across CNNs for sentiment analysis and RNNs for NER with simple, intuitive rules.

Proposed method

  • Represent rules in soft logic to allow continuous truth values.
  • Construct a rule-regularized teacher q by projecting the base predictor p_theta under posterior regularization constraints (KL divergence plus rule slack).
  • Train the student p_theta to imitate q while also fitting true labels, enabling semi-supervised learning with unlabeled data.
  • Iteratively alternate teacher construction and student training to distill rule knowledge into network parameters.
  • Use an imitation parameter pi(t) that shifts from true-label learning to rule imitation over training iterations.

Experimental results

Research questions

  • RQ1Can declarative first-order logic rules be effectively integrated into general neural architectures (CNNs, RNNs) through iterative distillation?
  • RQ2Do rule-informed networks (student p and teacher q) outperform purely data-driven baselines on sentiment analysis and NER?
  • RQ3How do soft logic encodings and rule-based constraints affect semi-supervised learning and data-efficiency?

Key findings

  • In sentiment analysis, CNN with Rule-p and Rule-q outperform the base CNN, achieving 88.8% SST2 accuracy vs 87.2% baseline and up to 89.3% with the teacher model on SST2.
  • In MR and CR sentiment tasks, Rule-enhanced models show improved accuracy over the base CNN, with Rule-q achieving 81.7% and 85.3% respectively (MR/CR).
  • In CoNLL-2003 NER, incorporating transition rules and list-based constraints yields higher F1 for the teacher q (91.11 and 91.18) compared to the base BLSTM (89.55).
  • The teacher model q generally outperforms the distilled student p, especially when rules induce cross-span dependencies.
  • Semi-supervised variants using unlabeled data further boost performance, particularly in low-label regimes.

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.