arXiv(opens in a new tab)cs.CLFeb 2025Cited by 3 papers on PaperVantage

Manuscript Offprint

arXiv:2502.16906

AutoLogi: Automated Generation of Logic Puzzles for Evaluating Reasoning Abilities of Large Language Models

Qin Zhu, Fei Huang, Runyu Peng, Keming Lu, Bowen Yu, Qinyuan Cheng, Xipeng Qiu, Xuanjing Huang, Junyang Lin

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Abstract

While logical reasoning evaluation of Large Language Models (LLMs) has attracted significant attention, existing benchmarks predominantly rely on multiple-choice formats that are vulnerable to random guessing, leading to overestimated performance and substantial performance fluctuations. To obtain more accurate assessments of models' reasoning capabilities, we propose an automated method for synthesizing open-ended logic puzzles, and use it to develop a bilingual benchmark, AutoLogi. Our approach features program-based verification and controllable difficulty levels, enabling more reliable evaluation that better distinguishes models' reasoning abilities. Extensive evaluation of eight modern LLMs shows that AutoLogi can better reflect true model capabilities, with performance scores spanning from 35% to 73% compared to the narrower range of 21% to 37% on the source multiple-choice dataset. Beyond benchmark creation, this synthesis method can generate high-quality training data by incorporating program verifiers into the rejection sampling process, enabling systematic enhancement of LLMs' reasoning capabilities across diverse datasets.

1 Introduction

Large Language Models (LLMs) have demonstrated remarkable capabilities across diverse applications (OpenAI, 2024; Anthropic, 2022; Qwen et al., 2025). Among these capabilities, logical reasoning has emerged as a critical skill (Luo et al., 2023; Wei et al., 2022; Yao et al., 2024; Zhu et al., 2024). The increasing emphasis on reasoning capabilities has highlighted the pressing need for reliable evaluation methodologies.

However, the field of reasoning evaluation faces three fundamental challenges: the vulnerability to

Figure

Figure 1: Comparison of evaluation processes between multiple-choice questions and our method. While multiple-choice questions may allow underperforming models to guess the correct answer, our method generates open generative questions, and utilize a verification function to validate the generated solution, providing a more accurate reflection of model performance.

random guessing, insufficient difficulty variation to differentiate model capabilities, and high human annotation costs in dataset construction. A critical issue lies in the prevalent reliance on closed-ended questions in existing benchmarks, where models are simply required to select answers from predefined options (Liu et al., 2020; Bansal et al., 2023; Zhong et al., 2021; Han et al., 2024; Ismayilzada et al., 2023). This format allows models with minimal reasoning capabilities to achieve substantially overestimated performance, leading to deeply misleading evaluation results that mask true reasoning deficiencies. The rapid advancements in LLMs are leading to the saturation of scores on existing benchmarks, reducing their effectiveness in differentiating model capabilities. Consequently, there is a growing and continuous need for the development of more challenging and distinctive benchmarks to better evaluate model performance. Nevertheless, constructing such high-quality reasoning datasets

  • Work done during internship at Qwen Team, Alibaba Group.

†^{\dagger} Corresponding authors.

requires extensive human annotation effort, which substantially limits the scale of available evaluation resources.

To address these challenges, we introduce a novel method for automatically synthesizing open-ended logic puzzles to construct a reasoning benchmark named AutoLogi. Our approach offers three key advantages: (1) as is illustrated in Figure 1, the open-ended format requires models to construct complete solutions from scratch, significantly mitigating the performance inflation caused by random guessing; (2) automated augmentation generates puzzles with varying logical constraints, enabling balanced difficulty distribution; (3) fully automated generation with minimal human verification substantially reduces benchmark construction costs. These innovations directly address the aforementioned challenges, offering a more reliable, balanced, and scalable evaluation methodology.

The proposed method follows a three-stage pipeline: information extraction from corpora for open-ended question synthesis, program-based verifier generation using advanced LLMs, and dataset augmentation for difficulty balance. Since most generation steps are based on LLMs thus potentially introducing errors, we employ a cross-validation framework where verification functions and traversal functions verify each other. The traversal functions validate puzzle correctness through exhaustive search, while verification functions check the traversal results. Although this provides only necessary conditions, our experiments show it corrects 23% of erroneous data. Building upon this foundation, We further develop a data augmentation method that creates puzzle variants by modifying logical constraints to control difficulty levels, enabling us to expand our dataset to 1,575 English and 883 Chinese puzzles.

Based on our insights that code execution provides verifiable reward signals for reasoning tasks, we explore its utility in synthesizing high-quality training data. Through rejection-sampling with verifiers, we generate both verified correct answers for supervised fine-tuning (SFT) and correct-incorrect answer pairs for Direct Preference Optimization (DPO, Rafailov et al., 2024). This verification mechanism provides stronger guarantees of solution correctness, thereby enabling the collection of higher-quality supervised training data.

Through comprehensive experiments with eight state-of-the-art language models (including GPT-4, Claude, Qwen, and LLaMA), we evaluate our method from two aspects. First, as a benchmark, AutoLogi exhibits superior discriminative power with a wider score distribution (35.25 to 72.61) compared to traditional multiple-choice formats (21.04 to 37.39), better reflecting models' true reasoning capabilities. Second, when used for training, our synthesized dataset leads to substantial improvements on independent reasoning benchmarks, notably improving Qwen's performance on LiveBench from 30% to 35% at 7B scale and from 46% to 52% at 72B scale.

Our core contributions are:

• We develop a method to generate open-ended logic puzzles with controllable complexity, mitigating the performance inflation caused by random guessing and ensuring reliable evaluation through code-based verification.

• We introduce AutoLogi, a bilingual logical reasoning benchmark that better reflects models’ reasoning capabilities compared to multiple-choice formats.

• We leverage our method to generate training data that improves model performance across multiple independent benchmarks 1^{1}.

References (35)