Assessing and Enhancing the Robustness of Large Language Models with Task Structure Variations for Logical Reasoning

Qiming Bao, Gael Gendron, Alex Yuxuan Peng, Wanjun Zhong, Neset Tan +3 more
10/13/2023
11 citations
cs.CLcs.AI

Official code: Strong-AI-Lab/Logical-and-abstract-reasoning (31 stars, Python, MIT, last commit 2025-04-21).

Abstract

Large language models (LLMs), such as LLaMA, Alpaca, Vicuna, GPT-3.5 and GPT-4, have advanced the performance of AI systems on various natural language processing tasks to human-like levels. However, their generalisation and robustness when performing logical reasoning has not been sufficiently assessed.

Show full abstract

To comprehensively evaluate this ability, we develop three new logical reasoning datasets named "ReClor-plus", "LogiQA-plus" and "LogiQAv2-plus" that extend standard logical reasoning datasets to evaluate the robustness of the LLM's reasoning. For each, we create three subsets: the first with randomly shuffled options, the second with the correct choices replaced by "none of the other options is correct", and the third with a combination of shuffling and substitution. Experiments on these datasets show that these simple augmentations greatly hinder the models' performance. Despite their high performance on the original publicly available datasets, we find that all models perform poorly on these newly constructed datasets. We also demonstrate that introducing task variations into the training set can markedly improve the model's performance on both the original and our developed datasets. Finally, we show that applying logic-driven data augmentation for fine-tuning and prompting can enhance generalisation in both discriminative and generative models, offering a path to improving their robustness for tasks involving logical reasoning. Source code and data are made publicly available at https://github.com/Strong-AI-Lab/Logical-and-abstract-reasoning.

View on arXivView PDF

Code Implementations(1)

MIT

Evaluation on Logical Reasoning and Abstract Reasoning Challenges

316Python, ShellApr 4, 20231 years agoMIT
abstract-reasoninglarge-language-modelslogical-reasoning

Similar Papers

Cite this paper

@article{bao2023assessing,
  title  = {Assessing and Enhancing the Robustness of Large Language Models with Task Structure Variations for Logical Reasoning},
  author = {Qiming Bao and Gael Gendron and Alex Yuxuan Peng and Wanjun Zhong and Neset Tan and Yang Chen and Michael Witbrock and Jiamou Liu},
  year   = {2023},
  eprint = {2310.09430},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.09430v5}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.09430.svg)](https://codeofpaper.com/paper/2310.09430)

Discussion