Exploring Self-supervised Logic-enhanced Training for Large Language Models
Fangkai Jiao, Zhiyang Teng, Bosheng Ding, Zhengyuan Liu, Nancy F. Chen, Shafiq Joty
TL;DR
LogicLLM introduces a self-supervised, logic-enhanced meta-training regime for LLMs by turning MERIt into an autoregressive objective and constructing logically consistent data from Wikipedia, paired with counterfactual augmentation to strengthen relational reasoning. The framework is model-agnostic and evaluated on FLAN-T5 and LLaMA across multiple benchmarks (ReClor, LogiQA-v2, RACE, MMLU, BBH), showing significant gains in logical reasoning without sacrificing broad language understanding. Larger models benefit more, and the approach remains compatible with instruction tuning, suggesting a scalable path to robust logic in LLMs. Comprehensive analyses of data construction, training strategies, robustness, and compatibility provide practical guidance for deploying logic-aware LLMs.
Abstract
Existing efforts to improve logical reasoning ability of language models have predominantly relied on supervised fine-tuning, hindering generalization to new domains and/or tasks. The development of Large Langauge Models (LLMs) has demonstrated the capacity of compressing abundant knowledge into a single proxy, enabling them to tackle multiple tasks effectively. Our preliminary experiments, nevertheless, show that LLMs do not show capability on logical reasoning. The performance of LLMs on logical reasoning benchmarks is far behind the existing state-of-the-art baselines. In this paper, we make the first attempt to investigate the feasibility of incorporating logical knowledge through self-supervised post-training, and activating it via in-context learning, which we termed as LogicLLM. Specifically, we devise an auto-regressive objective variant of MERIt and integrate it with two LLM series, i.e., FLAN-T5 and LLaMA, with parameter size ranging from 3 billion to 13 billion. The results on two challenging logical reasoning benchmarks demonstrate the effectiveness of LogicLLM. Besides, we conduct extensive ablation studies to analyze the key factors in designing logic-oriented proxy tasks.
