∂-Explainer: Abductive Natural Language Inference via Differentiable Convex Optimization

Mokanarangan Thayaparan, Marco Valentino, Deborah Ferreira, Julia Rozanova, André Freitas

Abstract

Multi-hop Question Answering (QA) requires models to synthesize multiple disparate facts into a coherent logical explanation. While Transformer-based models excel at semantic matching, they often lack explicit logical structure. Conversely, symbolic solvers like Integer Linear Programming (ILP) provide explainability but are non-differentiable, preventing end-to-end optimization. This paper introduces $\partial$-Explainer (Diff-Explainer), a hybrid framework that bridges this gap by integrating symbolic logic constraints into neural networks via differentiable convex optimization. By relaxing discrete ILP problems into Semi-Definite Programming (SDP) layers, the model enables backpropagation through the logic engine, allowing the language model to learn "logically compatible" representations.

Introduction

Multi-hop reasoning is a significant challenge in Natural Language Processing. Answering a question such as "What is an example of a force producing heat?" requires more than simple keyword matching; it necessitates connecting multiple facts—such as "friction is a force" and "rubbing sticks creates friction"—to conclude that "rubbing sticks produces heat."

Example of multi-hop reasoning connecting a question, answer, and supporting facts.

Existing solutions typically fall into two categories: neural "black boxes" which are accurate but logically inconsistent, and symbolic "white boxes" which are explainable but non-differentiable. $\partial$-Explainer addresses this "differentiability gap," allowing the logic engine and the language model to be optimized simultaneously.

Methodology

The $\partial$-Explainer framework replaces traditional discrete logic solvers with a differentiable optimization layer. The process involves several key stages:

  1. Graph Construction: Questions and candidate answers are converted into hypotheses. The system retrieves supporting facts and constructs a graph where nodes represent sentences and edges represent semantic or lexical relevance.
  2. SDP Relaxation: To overcome the NP-hard nature of discrete ILP, the authors employ Semi-Definite Programming (SDP) relaxation. This transforms the discrete selection of facts into a continuous optimization problem.
  3. Differentiable Convex Optimization (DCX): By utilizing DCX layers, the optimization process becomes a functional component of the neural network. This allows the model to calculate loss based on the final explanation and backpropagate gradients to the Sentence-Transformer (STrans) embeddings.
The ∂-Explainer architecture, showing the flow from semantic relevance calculation to the differentiable convex optimization layer.

Experimental Results

The model was evaluated on the WorldTree and ARC-Challenge corpora, both of which require complex scientific reasoning.

  • Performance: $\partial$-Explainer demonstrated a significant performance boost, outperforming non-differentiable counterparts by 8.91% to 13.3% in absolute accuracy on WorldTree. On the ARC-Challenge dataset, it achieved 42.95% accuracy, surpassing standalone BERT-Large models.
  • Robustness: Unlike standard Transformers that often degrade with increased "noise" from retrieved facts, $\partial$-Explainer maintains stability. The structural constraints effectively filter out irrelevant distractors.
  • Explanation Quality: The model showed improved alignment with human logic, evidenced by higher Precision@1 and Precision@2 scores for retrieving gold-standard explanation sentences.

Conclusion and Future Work

$\partial$-Explainer demonstrates that symbolic logic and neural power can be unified through differentiable optimization. While the current implementation relies on manually defined constraints and faces some computational overhead due to SDP solvers, it paves the way for future systems that might learn constraints directly from data or scale to even larger knowledge bases.

Summary updated

BibTeX
@article{thayaparan2022explainer,
  author = {Mokanarangan Thayaparan and Marco Valentino and Deborah Ferreira and Julia Rozanova and André Freitas},
  title = {{∂-Explainer: Abductive Natural Language Inference via Differentiable Convex Optimization}},
  journal = {Trans. Assoc. Comput. Linguistics},
  year = {2022},
  doi = {10.1162/tacl\_a\_00508},
}
Figure