Manuscript Offprint

arXiv:2608.30256

Beyond Surface Forms: Symbolic Edits as a Test for Logical Reasoning with LLMs

Ramya Keerthy Thatikonda, Wray Buntine, Ehsan Shareghi

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Logical reasoning with large language models (LLMs) is a critical capability, as it reflects a system's ability to correctly deduce hypotheses from a given context using faithful deductive processes. However, LLM reasoning has often been shown to be sensitive to small surface-level variations in problem formulation, raising questions about whether models truly follow the underlying logical structure. Studying this behavior is challenging because the symbolic components of logical problems, such as operators and predicates, are difficult to systematically manipulate in natural language. We introduce a tool-driven framework for generating controlled, label-preserving edits to logical reasoning problems. Our method operates on symbolic representations of first-order logic and constraint satisfaction problem tasks, enabling targeted modifications to logical operators and other structural components before translating them back into natural language. Using this framework, we evaluate various LLMs under cumulative and individual operator edits and analyze their behavior in response to these changes. Our quantitative and qualitative analyses show that LLM reasoning behavior under controlled operator edits is inconsistent, regardless of model size or family: models sometimes adapt correctly to structural changes but often fail to track their logical consequences. The results from this automated stress test enable an evaluation of language models across different dimensions and help measure the reliability of their reasoning. 1^{1}

1 Introduction

Deductive logical reasoning is an important testbed for studying the ability of large language models (LLMs) to perform clear, step-by-step inference while following explicitly specified rules. Recent

Figure

Figure 1: Example from the Deduction dataset, with outputs generated by the Gemma3-27B model, showing how label-preserving edits disrupt the model’s reasoning. For instance, at edit level 1, the operator changes from Pears > Kiwi to Pears < Kiwi, leading the model to incorrectly interpret the final order.

work has reported performance saturation on many existing logical reasoning benchmarks (Qi et al., 2025; Deng et al., 2024). These results have motivated growing scrutiny of benchmark reliability, particularly in mathematical reasoning, where studies ask whether reported gains reflect robust reasoning abilities or instead arise from artifacts such as training-distribution effects, benchmark contamination, or leakage (Mirzadeh et al., 2025; Stolfo et al., 2023).

A common paradigm for conducting such studies is to create new versions of problems in existing benchmarks by replacing numerical values and entities, thereby altering the surface form of the question. While effective for mathematics, where such perturbations often involve simple numerical substitutions (Mirzadeh et al., 2025), logical reasoning depends on structured symbolic components, including operators, predicates, constants, and constraints, that collectively determine the validity of a deduction. Small changes to these components

1^{1}The code and dataset are available at Ramya-Keerthy/BeyondSurfaceForms.

can fundamentally alter both the reasoning process and the outcome. Understanding whether LLMs respond appropriately to such structural changes is therefore critical for evaluating their capabilities. However, systematically studying this behavior remains difficult. Existing evaluations rely on manually created problem variations, which are costly to produce and difficult to scale (Stolfo et al., 2023). To the best of our knowledge, there is currently no systematic framework for generating controlled modifications to logical reasoning problems that isolate structural changes while tracking their effects on the final outcome.

To address this challenge, we introduce a structural analysis framework for logical reasoning that uses tool-driven template generation to produce controlled, label-preserving variations of logical deduction problems. The framework decomposes textual reasoning problems into their underlying logical components using symbolic representations and enables targeted interventions on specific elements of the logical structure using a symbolic solver as a tool. We specifically focus on operator-level edits, allowing us to examine how model performance changes when logical operators are modified while tracking changes in the final answer. Figure 1 shows an example of how a change in an operator affects the model's performance in determining the final answer.

We conduct a comprehensive operator-edit analysis along two dimensions: cumulative edits that preserve the final answer and single edits that can change the ground truth of the problem. We initially evaluate these interventions using final-answer accuracy to capture changes in predictions under label-preserving edits. We measure the performance of several LLMs on deductive logical reasoning and constraint satisfaction tasks, two categories that require reasoning from logical structure rather than external world knowledge. We follow this by applying single edits that can modify the ground-truth answer, allowing us to assess whether the models reliably adapt their final predictions to these changes. Our experiments stress-test different natural-language reasoning strategies, including standard chain-of-thought prompting (Wei et al., 2022), inference-time scaling (Snell et al., 2024; Wu et al., 2024), and symbolic chain-of-thought reasoning (Xu et al., 2024).

Overall, our study provides a systematic analysis of how LLM reasoning behavior changes under controlled structural interventions. By generating variations of logical reasoning problems, we enable evaluation beyond traditional final-answer accuracy and examine whether models consistently track the logical consequences of these structural edits. Our results across recent LLMs with different reasoning strategies show that model behavior under operator interventions is inconsistent: reasoning changes rapidly under logical modifications and varies unpredictably. Label-changing edits further help us understand the extent to which models fall back on known answers, indicating potential reliance on previously learned answer patterns. In addition, an LLM-based qualitative analysis examines reasoning paths and provides insight into the conditions that lead a drop in reasoning stability. These findings suggest that current language models do not reliably ground their reasoning in the symbolic structure of the problem, underscoring the need for benchmarks that explicitly probe structural reasoning in LLMs.

References (49)