REM-Net: Recursive Erasure Memory Network for Commonsense Evidence Refinement

Yinya Huang, Meng Fang, Xunlin Zhan, Qingxing Cao, Xiaodan Liang

Introduction

Commonsense Question Answering (QA) remains a significant challenge for artificial intelligence because it requires reasoning about world logic that is rarely explicitly stated in text. While incorporating external knowledge from bases like ConceptNet or Wikipedia is a common strategy, these methods often suffer from a "signal-to-noise" problem. Brute-force retrieval frequently introduces irrelevant or confounding information that can mislead a model.

REM-Net (Recursive Erasure Memory Network) addresses this by moving beyond simple retrieval. Instead of just reading external knowledge, REM-Net refines it through a process of recursive erasure, physically removing low-quality or irrelevant facts to focus on the most explanatory evidence.

System Architecture

REM-Net consists of three primary components designed to bridge the gap between raw text and world knowledge:

  1. Query Encoder: This component utilizes pre-trained language models (such as BERT or RoBERTa) to encode the context, question, and candidate answers into a unified "query embedding."
  2. Evidence Generator: Rather than relying on static database lookups, REM-Net employs COMET (a generative transformer pre-trained on knowledge graphs). COMET produces candidate supporting facts tailored to specific keywords in the question, allowing for flexible, context-aware knowledge generation.
  3. Recursive Erasure Memory (REM) Module: This is the core innovation of the framework, designed to iteratively prune the generated evidence set.
Overview of the REM-Net architecture, integrating COMET-generated evidence with a recursive refinement module.

The Recursive Erasure Memory (REM) Module

Unlike standard attention mechanisms that merely assign lower weights to irrelevant facts, the REM module operates through multiple "hops" to physically refine the evidence set. The process follows a specific cycle:

  • Scoring: Multi-head attention is used to match the current query embedding against the set of evidence.
  • Updating: The query embedding is updated using a residual term derived from the highest-scoring evidence, refining the model's understanding of what information is still needed.
  • Erasure: The module identifies and deletes the $k$ lowest-ranked facts from the evidence set.
  • Recursion: This process repeats. By removing noise, the model forces its attention mechanisms to reconcile the question with only the most relevant remaining information in subsequent steps.
Detailed view of the Recursive Erasure Memory (REM) module, illustrating the iterative process of attention-based scoring and fact erasure.

Experimental Evaluation

The authors evaluated REM-Net on two major commonsense benchmarks:

  • WIQA: A dataset of "what if" counterfactual questions (e.g., "Suppose less nutrients in the soil happens, how will it affect seeds germinating?") requiring understanding of causal influence graphs.
  • CosmosQA: A dataset focused on daily life scenarios, requiring situational reasoning and social norms.

Key Results

REM-Net demonstrated superior performance across both benchmarks. On WIQA, it achieved 80.09% accuracy using a RoBERTa-large backbone. On CosmosQA, it reached 81.4% accuracy on the dev set, a significant improvement over the standard RoBERTa-large baseline of 78.6%.

Ablation studies confirmed that both the "Erasure" (E) and "Recursion" (R) components are vital; removing the erasure step led to a performance drop of approximately 6% on WIQA, proving that pruning evidence is as critical as selecting it.

Conclusion and Interpretability

Beyond performance gains, REM-Net offers enhanced explainability. By examining the "surviving" facts after the erasure process, researchers can trace the model's logic. For instance, in questions regarding fuel logistics, the model successfully erased facts about "pumping oil" while retaining facts about "transportation" to correctly answer questions about arrival at gas stations. While the model's performance is currently bounded by the initial quality of the COMET generator, the recursive erasure approach represents a significant step toward more robust and interpretable commonsense reasoning.

Summary updated

BibTeX
@inproceedings{huang2021rem,
  author = {Yinya Huang and Meng Fang and Xunlin Zhan and Qingxing Cao and Xiaodan Liang},
  title = {{REM-Net: Recursive Erasure Memory Network for Commonsense Evidence Refinement}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i7.16791},
}
Figure