Diff-Explainer: Differentiable Convex Optimization for Explainable Multi-hop Inference

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

TL;DR

This paper introduces Diff-Explainer, a novel hybrid framework that combines neural networks with explicit constraints using differentiable convex optimization. It aims to improve both the accuracy and explainability of multi-hop question answering systems, outperforming existing methods by integrating structured reasoning directly into the learning process.

What Problem Does This Paper Address?

Explainable Question Answering (QA) in complex domains, particularly multi-hop inference, is a significant challenge. While Transformer-based models achieve high accuracy, they often act as "black boxes," making it difficult to understand their reasoning. Conversely, traditional explainable QA models, often based on Integer Linear Programming (ILP), struggle with performance and scalability. This paper addresses the gap between high-accuracy but opaque neural models and interpretable but less performant symbolic methods, seeking a unified approach that offers both explainability and robust performance.

Methods

Diff-Explainer's core innovation is the integration of explicit constraints into a neural architecture through differentiable convex optimization (DCX) layers. Specifically, it transforms existing ILP-based constraints from solvers like TupleILP and ExplanationLP into convex optimization problems that can be solved within a neural network. This allows for end-to-end training, where neural representations (e.g., sentence embeddings from Transformers) are fine-tuned alongside the optimization process. The paper leverages Semi-Definite Programming (SDP) as a convex approximation for combinatorial optimization problems, enabling the integration of complex reasoning structures. The framework constructs a graph connecting candidate hypotheses and retrieved facts, then uses a DCX layer to select the optimal subgraph representing the answer and its supporting explanation.

Datasets

The paper evaluates Diff-Explainer on two primary datasets:

  • WorldTree Corpus: A dataset of scientific questions and explanations, used for both training and evaluation.
  • ARC-Challenge Corpus: A multiple-choice science question dataset designed to be challenging for existing QA and neural approaches.

Key Insights and Ideas

  • Bridging the Neural-Symbolic Divide: The most significant insight is the successful integration of symbolic reasoning (explicit constraints) directly into end-to-end neural learning via differentiable convex optimization. This moves beyond simply using neural models to generate explanations and instead uses them to reason with explicit rules.
  • Differentiable Optimization as a Layer: By framing convex optimization problems as neural network layers, the framework allows for gradient-based learning, enabling the fine-tuning of both neural components and the optimization process simultaneously.
  • Robustness to Distractors: Diff-Explainer demonstrates improved robustness to distracting information compared to standard Transformer models, likely due to the structured reasoning imposed by the constraints.
  • End-to-End Fine-tuning Benefits: The paper shows that fine-tuning with explanations (not just answer selection) leads to better performance, suggesting that the model learns to leverage explanatory signals for improved reasoning.

Key Results

  • Performance Improvement: Diff-Explainer outperforms non-differentiable solvers (TupleILP and ExplanationLP) by significant margins (13.3% and 8.91% absolute improvement on WorldTree).
  • Outperforming Transformers: The best Diff-Explainer setting surpasses state-of-the-art transformer-based models (BERT Large) by 12.16% (with explanations) and 21.85% (without explanations) on WorldTree.
  • ARC-Challenge Performance: On the ARC-Challenge dataset, Diff-Explainer improves upon original TupleILP and ExplanationLP by 10.12% and 2.74% respectively, and outperforms AutoRocc by 1.71% with fewer parameters.
  • Robustness: The model shows consistent performance improvements across different knowledge bases and question sets, highlighting its robustness.
  • Explanation Quality: Qualitative analysis shows Diff-Explainer often retrieves more accurate explanations and can better combine information for correct inference, though it can still be distracted by lexical noise.

Limitations and Future Work

  • Distraction Handling: While more robust than standard Transformers, Diff-Explainer can still be distracted by lexical noise, particularly in complex reasoning scenarios (as seen in Question 3 of the qualitative analysis).
  • Constraint Complexity: The paper acknowledges that Diff-Explainer can be extended to encode different constraints with varying degrees of complexity.
  • Future Directions: The authors suggest extending the framework to handle other forms of multi-hop QA, including open-domain, cloze style, and answer generation. They also propose adapting and improving constraints for other tasks like relation extraction, semantic role labeling, sentiment analysis, and explanation regeneration, paving the way for more controllable, transparent, and explainable NLP models.

Summary updated

BibTeX
@article{thayaparan2022diff,
  author = {Mokanarangan Thayaparan and Marco Valentino and Deborah Ferreira and Julia Rozanova and André Freitas},
  title = {{Diff-Explainer: Differentiable Convex Optimization for Explainable Multi-hop Inference}},
  journal = {Trans. Assoc. Comput. Linguistics},
  year = {2022},
  doi = {10.1162/tacl\_a\_00508},
}
Figure