When Form Changes but Logic Doesn't: Building Logic-invariant LLMs through Logical Structure
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) have achieved strong performance across diverse reasoning tasks, yet it remains unclear whether this performance reflects an understanding of underlying logical structure or a reliance on shallow semantic cues. A key indicator of such understanding is whether models treat logically equivalent inputs consistently, producing the same predictions despite differences in expression. Through systematic evaluation on curated data, we show that even strong LLMs often fail this test: they do not consistently preserve predictions across logically equivalent inputs and generalize poorly to unseen logical forms. To address this limitation, we propose LoGIcal STructure-guided reasoning (LoGIST), a framework that guides LLM reasoning with explicit logical structure. LoGIST maps each input instance to a decision diagram, a directed acyclic graph that captures the underlying logical structure, and encodes this graph into a logical embedding that conditions the LLM's reasoning process. Across multiple training settings, LoGIST reduces inconsistency under logical equivalence and improves generalization to unseen logical forms, suggesting that logical invariance is a useful target for building more robust and generalizable logical reasoning in LLMs.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 47 of its 63 references that are in the map. Submitted 18 Oct 2026.
Builds on
47 of 63 references.
References · 47
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 34,995
- 2017Proximal Policy Optimization Algorithmscited by 16,156
- 2024The Llama 3 Herd of Modelscited by 16,113
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,963
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 10,542
- 2025Qwen3 Technical Reportcited by 9,994
- 2023Visual Instruction Tuningcited by 8,191
- 2018Representation Learning with Contrastive Predictive Codingcited by 8,178
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 6,016
- 2024Qwen2.5 Technical Reportcited by 5,525
- 2021Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervisioncited by 3,937
- 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,454
35 more
- 2020Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hyperspherecited by 1,453
- 2022PaLI: A Jointly-Scaled Multilingual Language-Image Modelcited by 795
- 2023The Linear Representation Hypothesis and the Geometry of Large Language Modelscited by 794
- 2020Contrastive Learning with Hard Negative Samplescited by 650
- 2024GSM-Symbolic: Understanding the Limitations of Mathematical Reasoning in Large Language Modelscited by 599
- 2023The Reversal Curse: LLMs trained on "A is B" fail to learn "B is A"cited by 437
- 2023Logic-LM: Empowering Large Language Models with Symbolic Solvers for Faithful Logical Reasoningcited by 421
- 2020ProofWriter: Generating Implications, Proofs, and Abductive Statements over Natural Languagecited by 347
- 2022FOLIO: Natural Language Reasoning with First-Order Logiccited by 243
- 2023Talk like a Graph: Encoding Graphs for Large Language Modelscited by 190
- 2023LINC: A Neurosymbolic Approach for Logical Reasoning by Combining Language Models with First-Order Logic Proverscited by 186
- 2024Self-Discover: Large Language Models Self-Compose Reasoning Structurescited by 122
- 2023SatLM: Satisfiability-Aided Language Models Using Declarative Promptingcited by 116
- 2024Generalization v.s. Memorization: Tracing Language Models' Capabilities Back to Pretraining Datacited by 96
- 2023Testing the General Deductive Reasoning Capacity of Large Language Models Using OOD Examplescited by 88
- 2024ICLR: In-Context Learning of Representationscited by 58
- 2023Linear Spaces of Meanings: Compositional Structures in Vision-Language Modelscited by 55
- 2024Learning to grok: Emergence of in-context learning and skill composition in modular arithmetic taskscited by 46
- 2020Neural Execution Engines: Learning to Execute Subroutinescited by 40
- 2025Large Language Models Meet Symbolic Provers for Logical Reasoning Evaluationcited by 39
- 2024AST-T5: Structure-Aware Pretraining for Code Generation and Understandingcited by 37
- 2024Context versus Prior Knowledge in Language Modelscited by 34
- 2024Divide and Translate: Compositional First-Order Logic Translation and Verification for Complex Logical Reasoningcited by 31
- 2024SemCoder: Training Code Language Models with Comprehensive Semantics Reasoningcited by 30
- 2024Do LLMs Overcome Shortcut Learning? An Evaluation of Shortcut Challenges in Large Language Modelscited by 26
- 2023Learning Deductive Reasoning from Synthetic Corpus based on Formal Logiccited by 21
- 2024Paraphrase and Solve: Exploring and Exploiting the Impact of Surface Form on Mathematical Reasoning in Large Language Modelscited by 16
- 2023Exploiting Code Symmetries for Learning Program Semanticscited by 11
- 2025Towards Advanced Mathematical Reasoning for LLMs via First-Order Logic Theorem Provingcited by 9
- 2026NL2LOGIC: AST-Guided Translation of Natural Language into First-Order Logic with Large Language Modelscited by 9
- 2025MuSLR: Multimodal Symbolic Logical Reasoningcited by 8
- 2025Table as a Modality for Large Language Modelscited by 8
- 2025Spectral Insights into Data-Oblivious Critical Layers in Large Language Modelscited by 5
- 2025Representation Interventions Enable Lifelong Knowledge Memory Control in LLMscited by 4
- 2024GT2Vec: Large Language Models as Multi-Modal Encoders for Text and Graph-Structured Datacited by 2
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Beyond Surface Forms: Symbolic Edits as a Test for Logical Reasoning with LLMs
- 2025Dissecting Logical Reasoning in LLMs: A Fine-Grained Evaluation and Supervision Study
- 2025LogiDynamics: Unraveling the Dynamics of Inductive, Abductive and Deductive Logical Inferences in LLM Reasoning
- 2024Leveraging LLMs for Hypothetical Deduction in Logical Inference: A Neuro-Symbolic Approach
- 2026Towards a Mechanistic Understanding of Propositional Logical Reasoning in Large Language Models
- 2026Discovering a Shared Logical Subspace: Steering LLM Logical Reasoning via Alignment of Natural-Language and Symbolic Views
- 2023Towards LogiGLUE: A Brief Survey and A Benchmark for Analyzing Logical Reasoning Capabilities of Language Models
- 2023DetermLR: Augmenting LLM-based Logical Reasoning from Indeterminacy to Determinacy