Skip to main content
QUICK REVIEW

[Paper Review] RobustLR: Evaluating Robustness to Logical Perturbation in Deductive Reasoning

Soumya Sanyal, Zeyi Liao|arXiv (Cornell University)|May 25, 2022
Natural Language Processing TechniquesComputer Science5 citations
TL;DR

This paper introduces RobustLR, a diagnostic benchmark to evaluate the logical robustness of language models in deductive reasoning tasks. By applying minimal logical perturbations—such as changes to conjunction, disjunction, and especially negation—across synthetic theory-statement pairs, the study reveals that models like RoBERTa, T5, and GPT-3 fail to generalize consistently, particularly with negation, indicating a lack of true logical understanding despite fine-tuning on reasoning datasets.

ABSTRACT

Transformers have been shown to be able to perform deductive reasoning on a logical rulebase containing rules and statements written in English natural language. While the progress is promising, it is currently unclear if these models indeed perform logical reasoning by understanding the underlying logical semantics in the language. To this end, we propose RobustLR, a suite of evaluation datasets that evaluate the robustness of these models to minimal logical edits in rulebases and some standard logical equivalence conditions. In our experiments with RoBERTa and T5, we find that the models trained in prior works do not perform consistently on the different perturbations in RobustLR, thus showing that the models are not robust to the proposed logical perturbations. Further, we find that the models find it especially hard to learn logical negation and disjunction operators. Overall, using our evaluation sets, we demonstrate some shortcomings of the deductive reasoning-based language models, which can eventually help towards designing better models for logical reasoning over natural language. All the datasets and code base have been made publicly available.

Motivation & Objective

  • To investigate whether language models truly understand logical operators or rely on spurious correlations in deductive reasoning.
  • To develop a diagnostic benchmark that tests robustness to minimal logical edits in input statements and rules.
  • To evaluate whether models generalize consistently across logical paraphrases based on formal logical equivalences.
  • To identify systematic failures in reasoning models, especially regarding logical negation and operator semantics.
  • To provide a public benchmark to guide future development of more logically robust reasoning models.

Proposed method

  • Design a diagnostic benchmark, RobustLR, comprising two evaluation sets: Logical Contrast and Logical Equivalence.
  • Construct the Logical Contrast set by applying minimal logical perturbations to rules (e.g., replacing 'and' with 'or', or adding negation) while preserving semantic meaning.
  • Construct the Logical Equivalence set using formal logical equivalences (e.g., De Morgan’s laws) to generate paraphrased rules with identical truth conditions.
  • Fine-tune RoBERTa, T5, and GPT-3 on existing deductive reasoning datasets before evaluating them on RobustLR’s test sets.
  • Filter out 'Unknown' predictions during evaluation to isolate performance on clearly entailed or contradicted statements.
  • Compare model performance on RobustLR against in-distribution data and human performance to measure robustness gaps.

Experimental results

Research questions

  • RQ1Can language models trained on deductive reasoning datasets generalize robustly to minimal logical perturbations in input rules and statements?
  • RQ2How do models perform on logical paraphrases that preserve truth conditions but alter surface form using formal logical equivalences?
  • RQ3To what extent do spurious statistical correlations in training data contribute to non-robust reasoning behavior in language models?
  • RQ4Why do models show particular difficulty with logical negation compared to conjunction and disjunction?
  • RQ5Is the performance gap between models and humans on RobustLR due to data spuriousness or inherent model limitations in learning logical semantics?

Key findings

  • Models fine-tuned on deductive reasoning datasets show significant performance drops on RobustLR’s Logical Contrast and Logical Equivalence sets, indicating poor robustness to logical perturbations.
  • The performance gap between in-distribution and out-of-distribution (perturbed) data remains around 15% even after filtering out 'Unknown' predictions, suggesting intrinsic learning limitations beyond data sparsity.
  • Models exhibit particular difficulty with logical negation, consistently failing to generalize across negated forms, even when the logical meaning is preserved.
  • Larger models like T5-11B show improved performance but still underperform human-level accuracy, indicating that scale alone does not resolve logical robustness issues.
  • The failure is not solely due to spurious correlations, as performance gaps persist even when label distribution is uniform and statistical bias is minimized.
  • RobustLR reveals that current language models lack systematic generalization in logical reasoning, especially for complex logical operations like negation and equivalence transformations.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.