A Logic-Driven Framework for Consistency of Neural Models

Tao Li, Vivek Gupta, Maitrey Mehta, Vivek Srikumar
8/31/2019
cs.AIcs.CLcs.LG

Official code: utahnlp/consistency (30 stars, Python, Apache-2.0, PyTorch, last commit 2021-06-13).

Abstract

While neural models show remarkable accuracy on individual predictions, their internal beliefs can be inconsistent across examples. In this paper, we formalize such inconsistency as a generalization of prediction error.

Show full abstract

We propose a learning framework for constraining models using logic rules to regularize them away from inconsistency. Our framework can leverage both labeled and unlabeled examples and is directly compatible with off-the-shelf learning schemes without model redesign. We instantiate our framework on natural language inference, where experiments show that enforcing invariants stated in logic can help make the predictions of neural models both accurate and consistent.

View on arXivView PDF

Code Implementations(1)

PyTorchApache-2.0

Implementation of models in our EMNLP 2019 paper: A Logic-Driven Framework for Consistency of Neural Models

303PythonAug 14, 20195 years agoApache-2.0
bertconsistencyemnlp2019first-order-logiclogic+7 more

Similar Papers

Cite this paper

@article{li2019logicdriven,
  title  = {A Logic-Driven Framework for Consistency of Neural Models},
  author = {Tao Li and Vivek Gupta and Maitrey Mehta and Vivek Srikumar},
  year   = {2019},
  eprint = {1909.00126},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1909.00126}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1909.00126.svg)](https://codeofpaper.com/paper/1909.00126)

Discussion