A Semantic-based Method for Unsupervised Commonsense Question Answering

Yilin Niu, Fei Huang, Jiaming Liang, Wenkai Chen, Xiaoyan Zhu, Minlie Huang

Abstract

Unsupervised commonsense question answering (QA) typically relies on pre-trained language models (LMs) to score candidate answers based on string probability. However, these models are often biased by surface-level linguistic features, leading to poor robustness. We present SEQA (SEmantic-based Question Answering), a method that decouples reasoning from lexical form by comparing candidate answers to a set of model-generated "plausible" answers in a semantic vector space. SEQA achieves state-of-the-art performance on multiple benchmarks and demonstrates significantly higher robustness against adversarial lexical perturbations.

Introduction

Unsupervised commonsense reasoning tasks require models to select the correct answer without task-specific fine-tuning. Standard approaches utilize the likelihood of an answer string given a question context. While effective in some cases, these methods are notoriously sensitive to minor changes in wording or sentence structure—phenomena known as lexical perturbations. This sensitivity makes existing unsupervised methods brittle and unreliable in real-world scenarios where the same idea can be expressed in many ways.

Methodology: The SEQA Framework

SEQA addresses these limitations through a two-stage "generate-then-compare" pipeline. Instead of directly scoring candidates, the model treats the reasoning process as a voting mechanism:

  1. Voter Generation: Given a question, a generative model (such as GPT-2) produces a set of $K$ "voters"—plausible answers generated independently of the provided multiple-choice options.
  2. Semantic Voting: A feature extractor (such as SentenceRoBERTa) maps both the generated voters and the candidate choices into a shared semantic embedding space. The final score for a candidate is determined by its aggregate semantic similarity to the pool of voters.
The SEQA workflow: generating voters from the question and calculating weights based on semantic similarity to candidate choices.

By operating in the semantic space, SEQA ensures that synonyms or structurally different sentences with the same meaning receive similar scores, effectively neutralizing the impact of surface-level variations.

Experimental Results

The authors evaluated SEQA on four major commonsense benchmarks: COPA, SCT, SocialIQA, and CosmosQA. SEQA consistently outperformed strong unsupervised baselines like Pro-A and MI-QA. Notably, on the Story Cloze Test (SCT) and CosmosQA, SEQA improved upon the best baseline by over 10 percentage points.

Robustness and Scalability

A key strength of SEQA is its resilience to adversarial attacks. When tested against tools like TextFooler, which replaces words with synonyms to trick models, SEQA's performance remained stable while baseline models plummeted. Furthermore, the model's performance scales positively with the number of generated voters, reaching a stable plateau as the sample size increases.

Performance of SEQA compared to baselines across different sample sizes, showing superior accuracy and robustness before and after adversarial attacks.

Conclusion

SEQA demonstrates that shifting from string-based probability to semantic-based comparison significantly enhances both the accuracy and robustness of unsupervised commonsense reasoning. By decoupling the content of the answer from its specific lexical form, SEQA avoids the statistical biases that plague standard language models. While computationally more intensive than single-pass scoring, the method provides a more stable and human-like approach to zero-shot question answering.

Summary updated

BibTeX
@inproceedings{niu2021semantic,
  author = {Yilin Niu and Fei Huang and Jiaming Liang and Wenkai Chen and Xiaoyan Zhu and Minlie Huang},
  title = {{A Semantic-based Method for Unsupervised Commonsense Question Answering}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.acl-long.237},
}
Figure