Towards Interpretable Natural Language Understanding with Explanations as Latent Variables

Wangchunshu Zhou, Jinyi Hu, Hanlin Zhang, Xiaodan Liang, Maosong Sun, Chenyan Xiong, Jian Tang

TL;DR

Generating natural language explanations usually requires vast, expensive human annotation pipelines, and traditional two-stage models often sacrifice classification accuracy for interpretability. This paper introduces ELV (Explanations as Latent Variables), a variational EM framework that jointly trains an explanation generator and an explanation-augmented classifier using only dozens to a couple hundred annotated explanations. The framework also extends into ELV-EST, a semi-supervised self-training approach that treats generated explanations as flexible "soft logic rules," producing massive gains over standard self-training baselines.

What Problem Does This Paper Address?

While natural language explanations provide valuable interpretability for black-box neural networks, existing methods suffer from two key limitations:

  1. High annotation cost: Prior approaches demand thousands of human-written explanations, which are expensive and time-consuming to curate.
  2. Decoupled training: Most pipelines generate explanations in one stage and feed them into a classifier in another. Without end-to-end feedback, the generated explanations may fail to reflect the classifier's actual decision process, often degrading task accuracy.
  3. Rigid semi-supervised alternatives: Earlier works that turn explanations into semi-supervised learning signals rely on semantic parsers to extract hard logic rules, a brittle strategy that fails on open-domain, nuanced language.

Methods

The authors frame natural language understanding as maximizing the marginal likelihood $\log p(y|x)$ with explanation $e$ treated as an unobserved latent variable. They optimize the Evidence Lower Bound (ELBO) using Variational Expectation-Maximization (EM):

  • E-Step (Explanation Generation): A conditional generator $q_\theta(e|x, y)$ (implemented with UniLM) generates an explanation given input $x$ and label $y$. On labeled samples with gold explanations ($D_E$), it maximizes text likelihood. On labeled samples lacking human explanations ($D_L$), it minimizes the KL divergence between $q_\theta(e|x, y)$ and the posterior $p(e|x, y) \propto p_\phi(y|x, e)p(e|x)$, directly incorporating feedback from the classifier.
  • M-Step (Explanation-Augmented Prediction): The classifier $p_\phi(y|x, \mathcal{E})$ (implemented with BERT) predicts label $y$ conditioned on $x$ and a set of retrieved/generated explanations $\mathcal{E}$. Explanations and sentences are concatenated, encoded via BERT, averaged, and passed to an MLP.
  • SentenceBERT Retrieval as Prior: Unconditional seq2seq explanation generation ($p(e|x)$ without label $y$) often hallucinates. Instead, the authors model $p(e|x)$ by retrieving the top-$N$ explanations from training examples whose embeddings (via SentenceBERT) are closest to the test input.
  • Semi-Supervised Learning (ELV-EST): In low-resource label regimes, the model assigns pseudo-labels to high-confidence unlabeled instances, generates synthetic explanations for them, adds them to the pool, and iteratively re-runs variational EM.
       [E-Step]
Labeled / Pseudo-Labeled Data ---> Generator q_θ(e|x,y)
          ^                                |
          | feedback via posterior         v
 Classifier p_ϕ(y|x,E) <---------- Sampled / Retrieved Explanations
       [M-Step]

Datasets

The authors evaluate on four benchmark datasets across two tasks using human-annotated explanation subsets collected in prior work:

  • Relation Extraction (RE):
  • TACRED (139 human explanations; ~68k supervised train, ~2.7k semi-supervised train)
  • SemEval-2010 Task 8 (203 human explanations; ~7k supervised train, ~1.2k semi-supervised train)
  • Aspect-Based Sentiment Classification (ASC):
  • Laptop (70 human explanations; 1,806 supervised train, 135 semi-supervised train)
  • Restaurant (75 human explanations; 2,830 supervised train, 107 semi-supervised train)

Key Insights and Ideas

  • Explanations as "Soft Logic Rules": Natural language explanations generalize beyond a single instance (e.g., "wonderful appears near food"). Pre-trained language models can exploit these regularities directly in latent space without brittle symbolic parsers.
  • Joint Optimization Eliminates the Accuracy-Explainability Trade-off: Instead of sacrificing downstream F1 for interpretable text, classifier feedback drives the generator toward explanations that are actually decision-critical, boosting classification performance.
  • Nearest-Neighbor Grounding Prevents Hallucination: Relying on embedding-based retrieval from labeled exemplars to approximate $p(e|x)$ provides a more stable prior than generating explanations unconditionally from scratch at test time.

Key Results

  • Supervised Setting: ELV consistently beats vanilla BERT-base fine-tuning across all benchmarks:
  • TACRED (Micro-F1): 65.9 vs. 64.7 (BERT-base)
  • SemEval (Micro-F1): 80.7 vs. 78.3 (BERT-base)
  • Restaurant (Macro-F1): 77.8 vs. 75.4 (BERT-base)
  • Laptop (Macro-F1): 75.2 vs. 72.4 (BERT-base)
  • Semi-Supervised Setting (ELV-EST): Massive gains over standard pseudo-labeling and self-training:
  • TACRED: 42.5 vs. 36.9 (Self-Training)
  • SemEval: 66.4 vs. 59.5 (Self-Training)
  • Restaurant: 59.5 vs. 47.2 (Self-Training)
  • Laptop: 63.6 vs. 42.3 (Self-Training)
  • Explanation Quality (Human Evaluation): Five annotators scored test explanations on a 1–5 scale. ELV beat fine-tuned UniLM across Informativeness (3.87 vs. 3.48), Correctness (4.20 vs. 3.94), and Consistency (3.51 vs. 3.14).
  • Robustness Check: Randomly corrupting 80% of words in retrieved explanations degraded performance below the baseline (e.g., Restaurant Macro-F1 dropped from 77.8 to 73.2), confirming the model genuinely relies on semantic explanation content.

Limitations and Future Work

  • Post-hoc Rationalization Risks: The generator may still produce plausible-sounding "ad-hoc" explanations that do not faithfully represent the internal neural reasoning, despite classifier feedback partially mitigating this.
  • Data Bias Propagation: Pre-trained generator backbones risk introducing or amplifying social biases into generated explanations.
  • Model Exploration: Experiments were restricted to BERT-base and UniLM-base; evaluating newer, larger language models (e.g., RoBERTa, ELECTRA) or inference-efficient compressed architectures (e.g., DistilBERT) remains open for future research.

Summary updated

BibTeX
@inproceedings{zhou2020towards,
  author = {Wangchunshu Zhou and Jinyi Hu and Hanlin Zhang and Xiaodan Liang and Maosong Sun and Chenyan Xiong and Jian Tang},
  title = {{Towards Interpretable Natural Language Understanding with Explanations as Latent Variables}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=vcwQq83Pgl-},
}
Figure