When Form Changes but Logic Doesn't: Building Logic-invariant LLMs through Logical Structure
Xuyuan Liu, Xinshuai Dong, Elynn Chen, Yujun Yan
Abstract. 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.
From the authors: Xuyuan Liu · edit · also an author?
Nothing yet.
edit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:44 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This paper shows that LLMs are not consistent under logical invariance, and improves the logical invariance of LLMs by embedding ROBDD (a formal graph representation of logical problems) and fusing the embedding into the LLM via cross attention. Reviews are generally around borderline accept (5/4/3).
Main strengths:
- The motivation of studying logical invariance and capturing logical invariance via ROBDDs is clear.
- Experiment results show that the proposed method works on different LLMs, training methods and two real-world datasets.
Main weaknesses:
- The comparison between LoGIST and baselines are not fair, as baselines don’t use the extra ROBDD input. It is recommended to consider baselines that take ROBDDs as input, in order to prove the gain comes from LoGIST architecture rather than ROBDD input.
- The construction algorithm of ROBDD is not clear in the paper. The authors need to be explicit whether logical invariance comes from the construction of ROBDD or the LoGIST encoder.
- The existence of a clean ROBDD is a strong assumption. It would be nice to see how LoGIST is applied in real-world problems, where the extracted ROBDDs may contain noise.
- The comparison between and is confounded by both difficulty and logical invariance. More controlled experiments are needed to support the claim that LLMs fail to capture logical invariance.
If the above weaknesses are addressed, it will meaningfully improve the chance of acceptance from reviewers and myself, though it’s not guaranteed.
Final justification
I've read the responses from both authors and reviewers. The rebuttal added a linearized-ROBDD baseline and an alignment ablation that isolate where the gain comes from, a noisy-ROBDD experiment that removes the clean-input assumption, and a controlled inconsistency analysis that disentangles logical form from difficulty, and all three reviewers acknowledged these as resolving the weaknesses I raised in the initial meta-review.
Given that all three reviewers confirmed their concerns are addressed and support acceptance (5/5/4), I recommend to accept this paper.
Read meta-review
Meta-review
This paper shows that LLMs are not consistent under logical invariance, and improves the logical invariance of LLMs by embedding ROBDD (a formal graph representation of logical problems) and fusing the embedding into the LLM via cross attention. Reviews are generally around borderline accept (5/4/3).
Main strengths:
- The motivation of studying logical invariance and capturing logical invariance via ROBDDs is clear.
- Experiment results show that the proposed method works on different LLMs, training methods and two real-world datasets.
Main weaknesses:
- The comparison between LoGIST and baselines are not fair, as baselines don’t use the extra ROBDD input. It is recommended to consider baselines that take ROBDDs as input, in order to prove the gain comes from LoGIST architecture rather than ROBDD input.
- The construction algorithm of ROBDD is not clear in the paper. The authors need to be explicit whether logical invariance comes from the construction of ROBDD or the LoGIST encoder.
- The existence of a clean ROBDD is a strong assumption. It would be nice to see how LoGIST is applied in real-world problems, where the extracted ROBDDs may contain noise.
- The comparison between and is confounded by both difficulty and logical invariance. More controlled experiments are needed to support the claim that LLMs fail to capture logical invariance.
If the above weaknesses are addressed, it will meaningfully improve the chance of acceptance from reviewers and myself, though it’s not guaranteed.
Final justification
I've read the responses from both authors and reviewers. The rebuttal added a linearized-ROBDD baseline and an alignment ablation that isolate where the gain comes from, a noisy-ROBDD experiment that removes the clean-input assumption, and a controlled inconsistency analysis that disentangles logical form from difficulty, and all three reviewers acknowledged these as resolving the weaknesses I raised in the initial meta-review.
Given that all three reviewers confirmed their concerns are addressed and support acceptance (5/5/4), I recommend to accept this paper.
1 comment
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper studies whether LLMs give stable answers when the same logical meaning is written in different but equivalent forms. The authors create controlled variants of reasoning problems using, e.g., material implication, double negation, De Morgan’ s laws, and mixed transformations. They show that strong LLMs can change their answers, even when the logical meaning is unchanged.
Next, the paper proposes LoGIST. LoGIST represets each reasoning instance with a graph. It learns a logic embedding from this graph by contrastive learning. Experiments on synthetic data, FOLIO, and ProverQA show that LoGIST improves consistency across equivalent logical forms.
Strengths and weaknesses
Strengths:
- The motivation is clear and important. Logical equivalence gives a clean test for whether models use logical structure or only surface patterns.
- The use of ROBDDs seems to be a reasonable technical choice. ROBDDs are canonical under a fixed variable order, so they fit the goal of logical invariance.
- The experiments are also fairly broad: two base LLMs, three training methods, and two external reasoning benchmarks.
Weaknesses:
- The gains on FOLIO and ProverQA are positive, but sometimes modest. On such cases, it should be better to show uncertainty estimates.
- Stronger baselines would make the paper more convicing. For example, the authors could compare with data augmentation using equivalent rewrites, formula canonicalization, prompting with formal representations, or a symbolic ROBDD solver. Without these comparisons, it is hard to know whether the improvement comes from the LoGIST architecture or simply from adding symbolic information.
Questions
- How are ROBDDs obtained at test time? Are they built from gold formal annotations, model-generated logical forms, or an automatic parser?
- Does the invariance generalize beyond the current transformations? The paper mainly studies material implication, double negation, De Morgan’ s laws, and mixed combinations. These are useful, but limited.
Limitations
yes
Formatting concerns
No
1 comment
Rebuttal
We thank Reviewer wYgY for the detailed and insightful comments, and for recognizing the value of our problem formulation and empirical study. Below we respond to each concern in turn.
W1: Study on uncertainty
We thank the reviewer for raising this point and agree that uncertainty estimates strengthen the interpretation of these results. Taking Llama-3.1-8B-Ins on FOLIO and ProverQA as an example: all reported numbers are averages over 3 runs, and we report the mean ± standard deviation below.
| Method | FOLIO | ProverQA |
|---|---|---|
| PPO | 0.606 ± 0.010 | 0.569 ± 0.012 |
| PPO + LoGIST | 0.645 ± 0.008 | 0.602 ± 0.006 |
| GRPO | 0.621 ± 0.004 | 0.626 ± 0.011 |
| GRPO + LoGIST | 0.650 ± 0.008 | 0.652 ± 0.010 |
We find the results to be statistically robust: every LoGIST gain is at least twice the largest standard deviation, and even the smallest, +0.026 (GRPO, ProverQA), remains well outside the combined uncertainty of the two runs. The improvements are therefore driven by the method rather than by measurement noise. We will revise the manuscript to make this point clear.
W2: Comparison with stronger baseline
We thank the reviewer for this suggestion. Following it, we add a baseline that receives the full ROBDD as input in textual form: the diagram is linearized following [1, 2] and prepended to the context, so the LLM sees the same structural information as LoGIST, differing only in how it is delivered (prompt text vs. logical embedding). An example data instance containing a linearized ROBDD is:
{Instruction}
{Context}
Reasoning Graph (ROBDD, linearized):
Root: N0
N0: if contribute_to_film_preservation(Aurora) then N2 else FALSE
N2: if appreciate_film_history(Aurora) then N3 else FALSE
N3: if collect_videodisks(Aurora) then FALSE else N4
N4: if study_cinema(Aurora) then TRUE else FALSE
{Question}
...
This baseline is trained and evaluated with the linearized ROBDD included in both training and evaluation inputs, under the same SFT configuration. The accuracy results are:
| Method | Base | M.I. | D.N. | D.M. | Mixed |
|---|---|---|---|---|---|
| SFT | 0.683 | 0.588 | 0.625 | 0.631 | 0.635 |
| SFT + Linearized ROBDD | 0.674 | 0.594 | 0.642 | 0.615 | 0.639 |
| SFT + LoGIST | 0.693 | 0.604 | 0.650 | 0.647 | 0.651 |
and the inconsistency rates are:
| Method | M.I. | D.N. | D.M. | Mixed |
|---|---|---|---|---|
| SFT | 25.7% | 18.4% | 17.9% | 19.0% |
| SFT + Linearized ROBDD | 25.3% | 19.3% | 18.3% | 21.3% |
| SFT + LoGIST | 20.1% | 14.2% | 13.1% | 15.8% |
Providing the linearized ROBDD information as prompt text yields marginal and inconsistent accuracy changes (e.g., +0.4% on Mixed, −0.9% on Base, −1.6% on D.M.) and does not reduce inconsistency at all (21.3% vs. 19.0% on Mixed), whereas LoGIST improves every setting. The gain thus comes from two design choices, (i) the contrastive encoder gives equivalent variants one canonical embedding and (ii) gated cross-attention injects it into hidden states, not from access to the ROBDD information itself. We will include this baseline in the revised manuscript.
[1] Fatemi, Bahare et al. "Talk like a Graph: Encoding Graphs for Large Language Models." ICLR 2024.
[2] Chen, Sirui et al. "CLEAR: Can Language Models Really Understand Causal Graphs?" Findings of EMNLP 2024.
Q1: How ROBDDs are obtained at test time
In our reported experiments, test-time ROBDDs are built from the gold formal annotations provided with each dataset (our synthetic pipeline generates paired formal representations by construction; ProverQA and FOLIO provide paired FOL annotations), and the construction itself is fully algorithmic, with no LLM involved. To test whether LoGIST also works without gold annotations, we included an experiment where the test-time formal representation is instead extracted from the natural-language premise using the method described in NL2Logic [1]. The extraction is performed by the vanilla Llama-3.1-8B-Ins, the same base model used for training, rather than any specialized logic model. The parsed FOL is genuinely noisy: on the Mixed data, only 15.3% exactly match the gold FOL (mostly due to predicate naming differences), while 73.6% are structurally correct. The model is trained following the pipeline in the original paper and evaluated with ROBDDs built from this parsed FOL:
| Method | Base | M.I. | D.N. | D.M. | Mixed |
|---|---|---|---|---|---|
| GRPO+LoGIST (gold FOL) | 0.730 | 0.654 | 0.661 | 0.647 | 0.668 |
| GRPO+LoGIST (constructed FOL) | 0.722 | 0.649 | 0.650 | 0.645 | 0.656 |
| Vanilla GRPO | 0.702 | 0.608 | 0.612 | 0.600 | 0.627 |
The results show that even under this practical, noisy setup, performance remains stable: when the ROBDD is imperfect, the resulting performance change is negligible, and the model stays close to its gold-FOL input performance. We will clarify the new result on the test-time pipeline in the revision.
[1] NL2Logic: AST-Guided Translation of Natural Language into First-Order Logic with Large Language Models. EACL 2026.
Q2: Experiments on additional logic laws
We thank the reviewer for pointing out this issue. We further include an evaluation on two more complex, composed transformations: (1) MI + De Morgan, where material implication is applied first and then De Morgan's law, e.g., is transformed into ; and (2) MI + Commutativity, which applies material implication followed by commutativity, e.g., is transformed into . We follow the same training and evaluation paradigm as in the paper: train on the original training set, then evaluate on the transformed sets to test generalization. The accuracy results are:
| Method | MI + De Morgan | MI + Commutativity |
|---|---|---|
| SFT | 0.550 | 0.587 |
| SFT + LoGIST | 0.577 | 0.603 |
| GRPO | 0.619 | 0.617 |
| GRPO + LoGIST | 0.645 | 0.657 |
LoGIST improves over the baseline in all settings, consistent with the trend in the paper. We will include these results in the revised manuscript.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 2/4
- Significance
- 2/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes LoGIST to guide LLM reasoning about logical problems by leveraging explicit logical structure. The framework maps each problem to a decision diagram, yielding a logical embedding via a message-passing encoder trained via contrastive learning. The logical embedding is then passed to the LLM via a cross-attention-based logic fusion module to guide its reasoning, followed by the alignment step. Empirical evaluation shows that LoGIST-aided post-training methods improve LLM’s performance on reformulated logical problems and better generalization.
Strengths and weaknesses
Strengths
- The idea of capturing invariance across different logical formulations via ROBDDs to aid LLM reasoning is useful and well–motivated.
- The logical encoder via contrastively trained topological message passing and the conditioning on the logical embedding via the aligner and cross-attention fusion module are interesting and effective.
- The representation analysis to show that the logical embedding captures compositional structure is helpful.
Weaknesses
- D_mixed are intrinsically more difficult linguistically and logically due to rules of replacement (material implication, double negation introduction, De Morgan’s laws) compared to the simpler implication rules in D_base. Therefore, the drop in performance does not seem to directly imply that LLMs fail to capture logically equivalent structures, as confounding factors are not isolated. Similar goes for logical inconsistency due to differences in difficulty. The argument may be stronger if computing logical inconsistency within D_mixed across groups that share the same logical structure, rather than comparing against the original inputs (D_base)?
- “Prompting is insufficient to induce logic-invariant reasoning” seems to be slightly overclaimed, as only one prompting strategy is tested, which mostly provides in-context knowledge on replacement rules, rather than more strategic or logic-inducing prompting methods.
- When testing reformulations, ROBDDs are also constructed, mapping them to the same structure as their logical-equivalent counterparts and therefore to the same logical embeddings. So this shifts the burden of understanding more complex reformulations (as mentioned above) to the ROBDD construction algorithm. This should be made clearer in the paper, and some claims that LoGIST helped LLMs reason about logically equivalent structures may be slightly overclaimed, since LLMs receive the same logical embeddings.
- In Table 2, when comparing SFT+LoGIST with plain SFT, the plain SFT does not see the ROBDD. A fairer comparison may involve injecting an ROBDD (such as via a linearized text description of the DAG) into the input prompts during SFT for both training and evaluation. This may better justify why a logical encoder and fusion module are needed (instead of just exposure to the shared ROBDD).
- Some brief descriptions of FOLIO and ProverQS would improve the clarity for the real-world evaluation. What makes these datasets “real-world”?
Questions
Can you provide more details on how the ROBDDs were constructed? Through an external code to generate them algorithmically?
Limitations
The authors explicitly discuss limitations in Appendix A.7.
Final justification
The additional experiments for W1 and W4 are particularly helpful in demonstrating the utility and strengths of the proposed method, which resolved my concerns and led me to vote for acceptance.
Formatting concerns
None
3 comments
Rebuttal
We sincerely thank Reviewer VB2g for their thoughtful review and acknowledgment of our motivation, methodology, and analysis. We provide detailed responses to each question below.
W1: Disentangling logical inequivalent from difficulty
We thank the reviewer for this insightful point. We agree that may be inherently harder than , so we conduct experiments to show that the drop reflects a failure to capture logical equivalence, not difficulty. First, following the reviewer's suggestion, we compute logical inconsistency within the transformed variants: for each instance, we compare its Mixed variant against the other equivalently transformed variants (M.I., D.N., D.M.). These variants share the same fact set, ground-truth label, and canonical structure, and are all complex rewrites, so the "simple base vs. complex rewrite" difficulty gap plays no role. On Qwen3-Next-80B, the logic inconsistency rates are:
| Mixed↔M.I. | Mixed↔D.N. | Mixed↔D.M. | Stochastic baseline (on ) |
|---|---|---|---|
| 19.2% | 18.3% | 17.5% | 2.6% |
Across equivalent forms, predictions flip on 17.5–19.2% of instances, versus only 2.6% on . Decoding noise is thus negligible, and the ~6× excess disagreement reflects a failure to capture logical equivalence, not difficulty.
The flip-direction analysis confirms this: if the difficulty introduced by the logic transformation drove the flips, they would be dominated by correct→incorrect transitions when difficulty increases. Instead, they are nearly symmetric (GPT-O3: 12.5% correct→incorrect vs. 10.8% incorrect→correct, with similar trends for other models), i.e., the model changes its answer in both directions as the form changes rather than simply failing on harder inputs, showing that difficulty is not the primary factor. The average per-token perplexity further supports this, as it is comparable across the two sets (Llama-3.1-8B: 4.27 on Original vs. 4.31 on Mixed; Qwen3-Next-80B: 4.15 vs. 4.32), so the transformed text is not obviously less familiar to the model as input than the original.
We will revise Sec. 3 to state the finding more clearly by isolating logical structure from difficulty as the driving factor, and add the analysis above as support for our claim.
W2: Scope of the prompting claim
We thank the reviewer for this observation. Following the suggestion, we evaluated three more logic-inducing prompting methods, SymbCoT [1], Selection-Inference (SI) [2], and Symbolic-Guided MC [3], on Qwen3-30B-A3B-Instruct-2507 under the same protocol as in the original paper:
| Method | Original | Mixed | Acc. Drop | Flip Rate |
|---|---|---|---|---|
| SymbCoT [1] | 83.4% | 69.0% | −14.4% | 26.2% |
| SI [2] | 88.0% | 73.6% | −14.5% | 24.6% |
| SG MC [3] | 81.5% | 68.1% | −13.4% | 31.5% |
All three methods still lose 13–15% in accuracy and flip 24.6–31.5% of predictions, compared with the ~3% stochastic baseline. These results show that logic-inducing strategic prompting also fails to induce logic-invariant reasoning, supporting our motivation for a training-based approach. We will revise Obs. 2 to include these results and scope the claim precisely.
[1] Xu et al. "Faithful Logical Reasoning via Symbolic Chain-of-Thought." ACL 2024.
[2] Creswell et al. "Selection-Inference: Exploiting Large Language Models for Interpretable Logical Reasoning." arXiv:2205.09712, 2022.
[3] Tan et al. "Enhancing Logical Reasoning in Language Models via Symbolically-Guided Monte Carlo Process Supervision." EMNLP 2025.
W3: Equivalent Embedding
We thank the reviewer for this insightful observation. We agree that equivalent structures are captured by the symbolic ROBDD construction. However, receiving the same embedding across reformulations does not by itself guarantee generalization to unseen structures.
(1) Receiving identical structural information across variants is not sufficient. We show this with two controls that provide exactly the same canonical information for all equivalent variants. First, we ablate our alignment step (Sec. 4.3) while keeping all other components unchanged: we remove the alignment and feed the graph embedding (Sec. 4.2) directly as the logic embedding. The LLM thus still receives the same embedding, only now unaligned with its representation space. The results on the evaluation set are:
| Method | Base | M.I. | D.N. | D.M. | Mixed |
|---|---|---|---|---|---|
| GRPO | 0.702 | 0.608 | 0.612 | 0.600 | 0.627 |
| GRPO+Unaligned LoGIST | 0.680 | 0.619 | 0.629 | 0.611 | 0.635 |
| GRPO+LoGIST | 0.730 | 0.654 | 0.661 | 0.647 | 0.668 |
Without alignment, the gains almost vanish: performance drops below the baseline on basic GRPO (0.680 vs. 0.702) and improves only marginally on the transformed sets (e.g., +0.011 on M.I., +0.008 on Mixed), far short of aligned LoGIST (+0.046 and +0.041). Receiving an equivalent embedding is therefore not enough on its own; aligning it with the LLM's space and the subsequent joint training are the keys to letting it guide the model's reasoning. Second, the linearized ROBDD baseline (W4), whose linearization text is likewise identical across variants since equivalent variants share the same ROBDD, does not reduce inconsistency (21.3% vs. 19.0% on Mixed). Both experiments show that the benefit comes from the structurally meaningful content learned by contrastive training and integrated through the fusion architecture, not from a shared instance identifier.
(2) The FOLIO/ProverQA gains cannot arise from embedding sharing. Each instance there appears in only one form, so no two instances share a logic embedding, yet LoGIST still improves accuracy (Table 3 of the original paper).
We thank the reviewer for prompting us to state this more precisely. We will revise the claim accordingly: logical equivalence is normalized by the symbolic ROBDD construction, and LoGIST shows that conditioning on this structure improves the consistency and generalization of the LLM's reasoning. We will state this explicitly in Sec. 4.1.
W4: Additional Results for a Fair Comparison
We thank the reviewer for this suggestion. Following it, we add a baseline that receives the full ROBDD as input in textual form: the diagram is linearized node-by-node and prepended to the context, so the LLM sees exactly the same structural information as LoGIST, differing only in how it is delivered (prompt text vs. logical embedding). An example data instance containing a linearized ROBDD is:
{Instruction}
{Context}
Reasoning Graph (ROBDD, linearized):
Root: N0
N0: if contribute_to_film_preservation(Aurora) then N2 else FALSE
N2: if appreciate_film_history(Aurora) then N3 else FALSE
N3: if collect_videodisks(Aurora) then FALSE else N4
N4: if study_cinema(Aurora) then TRUE else FALSE
{Question}
...
This baseline is trained and evaluated with the linearized ROBDD included in both training and evaluation inputs, under the same SFT configuration. The accuracy results are:
| Method | Base | M.I. | D.N. | D.M. | Mixed |
|---|---|---|---|---|---|
| SFT | 0.683 | 0.588 | 0.625 | 0.631 | 0.635 |
| SFT + Linearized ROBDD | 0.674 | 0.594 | 0.642 | 0.615 | 0.639 |
| SFT + LoGIST | 0.693 | 0.604 | 0.650 | 0.647 | 0.651 |
and the inconsistency rates are:
| Method | M.I. | D.N. | D.M. | Mixed |
|---|---|---|---|---|
| SFT | 25.7% | 18.4% | 17.9% | 19.0% |
| SFT + Linearized ROBDD | 25.3% | 19.3% | 18.3% | 21.3% |
| SFT + LoGIST | 20.1% | 14.2% | 13.1% | 15.8% |
Providing the linearized ROBDD information as prompt text yields marginal and inconsistent accuracy changes (e.g., +0.4% on Mixed, −0.9% on Base, −1.6% on D.M.) and does not reduce inconsistency (21.3% vs. 19.0% on Mixed), whereas LoGIST improves every setting. The gain thus comes from two design choices, (i) the logical encoder gives equivalent variants one canonical embedding and (ii) gated cross-attention injects it into hidden states, not from access to the ROBDD information itself. We also repeated this comparison under PPO and GRPO, where the performance gap is even larger: with only terminal rewards available, it is difficult for the LLM to learn how to use the verbalized ROBDD information in the prompt. We will include this baseline in the revised manuscript.
W5: Clarification of "real-world"
By "real-world" we meant external benchmarks, in contrast to our own synthetic data. For example, FOLIO was written by human experts. These benchmarks therefore test whether the logic encoder trained on synthetic data can generalize beyond our controlled setting. We thank the reviewer for pointing this out and will clarify this concept with a clearer expression in the revision.
Q1: ROBDD construction details
Yes, the ROBDDs are constructed fully algorithmically by deterministic code, with no LLM involved. The pipeline takes each instance's formal representation and proceeds in three steps: (i) grounding all rules over the instance's entities, so that each ground atom becomes a Boolean variable; (ii) determining the variable ordering by traversing backward from the query and recursively collecting the facts and rules required to evaluate it; (iii) building the decision diagram over this ordering via standard Shannon expansion and reducing it by merging isomorphic subgraphs and removing redundant nodes. The construction code is included in our released repository, and we will add these details with pseudo-code to the appendix.
I thank the authors for the detailed response and the added experiments. My concerns and questions have been resolved, and I am happy to increase the score. I think the additional experiments for W1 and W4 are particularly helpful in demonstrating the utility and strengths of the proposed method. I encourage the authors to include these experiments, clarifications, and scoping of the claims in the updated manuscript, which will further improve the paper. Thanks again for the engagement.
We sincerely appreciate your constructive feedback and thoughtful engagement during the discussion period. We are glad that our response and additional experiments have addressed your concerns. We will incorporate these experiments and clarifications into the revised manuscript to further strengthen the paper. Thank you again for your valuable suggestions.
- Rating
- 5/6
- Confidence
- 2/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper studies the logical inference abilities of LLMs. The paper first presents a study that evaluates the consistency of LLMs in handling logically equivalent structures, shows that they show weak consistency and demonstrates that this logical inference capabilities cannot effectively be boosted by simple prompting.
To address these shortcomings, the paper then proposes a new technique that leverages a binary decision diagram (ROBDD) of the input problem. Here, it is assumed that the input problem is provided as a pair of natural text and exact formal representation. A contrastive embedding for the ROBDD representation is trained. This representation is then used to improve the language model via an alignment layer or a cross-attention mechanism.
Strengths and weaknesses
Strengths:
- The proposed approach for utilizing an explicit logical representation to improve LLM logical reasoning abilities is overall novel (to the best of my knowledge) and highly interesting.
- The experimental results are mostly favoble.
Weaknesses:
- The paper assumes that the input is given as a pair of natural text and formal reprsentation. The assumption that there exists an input formal representation is rather strong, and which is even less realistic is the assumption that the formal representation is noise-free, complete and correct.
- As a continuation of the criticism above, the paper does not study "how to extract ROBDD from natural text" and "what happens if ROBDD is imperfect", as far as I could see.
- Similarly, the comparisons w.r.t. the baseline LLM in experiments does not appear to be fully fair due to the availability of extra ROBDD input, in the proposed work.
Questions
- Please respond to my criticisms above.
- Why variance is not reported for the experiments in Table 3 & 4?
Limitations
Yes
Final justification
The rebuttal has addressed my concerns, most importantly regarding stronger baselines & dependence on unrealistic inputs.
Formatting concerns
Limitataions discussion is in the appendix.
3 comments
Rebuttal
We appreciate Reviewer t1SV for the careful reading and constructive suggestions, which led to new baselines and analyses that strengthen the paper. We address each point below.
W1 & W2: Robustness of ROBDD
We thank the reviewer for raising this point. In practice, a formal representation is not always available and can be parsed from the natural-language input, so ROBDDs can be imperfect due to parsing errors such as mismatched predicate names, missing or extra literals, or incorrect connectives. We therefore directly study this realistic setting.
To examine whether LoGIST depends on gold annotations, we ran a new experiment in which the formal representation at evaluation time is instead extracted automatically from the natural-language text, following NL2Logic [1]. Notably, the extraction is performed by the vanilla Llama-3.1-8B-Ins model, the same base model used for training, rather than any specialized logic model. The parsed FOL is genuinely noisy: on the Mixed data, only 15.3% of the parsed representations exactly match the gold FOL (mostly due to predicate naming differing from the gold annotations), while 73.6% are structurally correct. The model is trained following the pipeline as in the paper and evaluated with ROBDDs built from this noisy parsed FOL. The results are:
| Method | Base | M.I. | D.N. | D.M. | Mixed |
|---|---|---|---|---|---|
| GRPO+LoGIST (gold FOL) | 0.730 | 0.654 | 0.661 | 0.647 | 0.668 |
| GRPO+LoGIST (constructed FOL) | 0.722 | 0.649 | 0.650 | 0.645 | 0.656 |
| Vanilla GRPO | 0.702 | 0.608 | 0.612 | 0.600 | 0.627 |
Our results show that even under this realistic noise level, LoGIST still yields stable improvements: when the ROBDD is imperfect, the resulting performance change is negligible and the model stays close to its gold-FOL input performance. This indicates that LoGIST remains effective with realistic, automatically parsed representations and does not rely on noise-free annotations. We will add this experiment and discussion to the revised manuscript.
[1] NL2Logic: AST-Guided Translation of Natural Language into First-Order Logic with Large Language Models. EACL 2026
W3: Comparison with linearized ROBDD
We thank the reviewer for this suggestion. Following it, we add a baseline that receives the full ROBDD as input in textual form: the diagram is linearized following [1, 2] and prepended to the context, so the LLM sees exactly the same structural information as LoGIST, differing only in how it is delivered (prompt text vs. logical embedding). An example data instance containing a linearized ROBDD is:
{Instruction}
{Context}
Reasoning Graph (ROBDD, linearized):
Root: N0
N0: if contribute_to_film_preservation(Aurora) then N2 else FALSE
N2: if appreciate_film_history(Aurora) then N3 else FALSE
N3: if collect_videodisks(Aurora) then FALSE else N4
N4: if study_cinema(Aurora) then TRUE else FALSE
{Question}
...
This baseline is trained and evaluated with the linearized ROBDD included in both training and evaluation inputs, under the same SFT configuration. The accuracy results are:
| Method | Base | M.I. | D.N. | D.M. | Mixed |
|---|---|---|---|---|---|
| SFT | 0.683 | 0.588 | 0.625 | 0.631 | 0.635 |
| SFT + Linearized ROBDD | 0.674 | 0.594 | 0.642 | 0.615 | 0.639 |
| SFT + LoGIST | 0.693 | 0.604 | 0.650 | 0.647 | 0.651 |
and the inconsistency rates are:
| Method | M.I. | D.N. | D.M. | Mixed |
|---|---|---|---|---|
| SFT | 25.7% | 18.4% | 17.9% | 19.0% |
| SFT + Linearized ROBDD | 25.3% | 19.3% | 18.3% | 21.3% |
| SFT + LoGIST | 20.1% | 14.2% | 13.1% | 15.8% |
Providing the linearized ROBDD information as prompt text yields marginal and inconsistent accuracy changes (e.g., +0.4% on Mixed, −0.9% on Base, −1.6% on D.M.) and does not reduce inconsistency at all (21.3% vs. 19.0% on Mixed), whereas LoGIST improves every setting. The gain thus comes from two design choices: (i) the contrastive encoder gives equivalent variants one canonical embedding and (ii) gated cross-attention injects it into hidden states, not from access to the ROBDD information itself. We also repeated this comparison under PPO and GRPO, where the performance gap is even larger: with only terminal rewards available, it is difficult for the LLM to learn how to use the verbalized ROBDD information in the prompt.
We will include this baseline in the revised manuscript.
[1] Fatemi, Bahare et al. "Talk like a Graph: Encoding Graphs for Large Language Models." ICLR 2024.
[2] Chen, Sirui et al. "CLEAR: Can Language Models Really Understand Causal Graphs?" Findings of EMNLP 2024.
Q1: Variance
We thank the reviewer for noting this. All results in Tables 3 and 4 are already averages over 3 runs; we omitted the standard deviations only for space and will report them for all settings in the revision. As an example (Llama-3.1-8B-Ins, GRPO, Table 3):
| Method | Base | M.I. | D.N. | D.M. | Mixed |
|---|---|---|---|---|---|
| GRPO | 0.702±0.017 | 0.608±0.004 | 0.612±0.006 | 0.600±0.005 | 0.627±0.011 |
| GRPO + LoGIST | 0.730±0.012 | 0.654±0.004 | 0.661±0.002 | 0.647±0.006 | 0.668±0.013 |
LoGIST's gains across all transformed sets exceed the run-to-run variation by a wide margin (e.g., M.I.: +0.046 with a std ≤ 0.004), confirming that the improvements are not artifacts of randomness.
Thank you for the detailed responses.
I have read the other reviews and the authors’ rebuttals. I found the responses valuable, although some of my concerns remain. In particular, the main experiments still rely on formal inputs that may be unrealistic in many practical settings. The additional baseline improves the comparison, but stronger baselines could still be considered, as also noted by Reviewer wYgY. Moreover, some of the new experiments and analyses are sufficiently central to the paper’s claims that it would have been preferable to see them in the original submission rather than only in the rebuttal.
I will finalize my score after the remaining discussion has concluded.
We sincerely thank Reviewer t1SV for the continued engagement and for the thoughtful follow-up comments. We would like to take this opportunity to clarify a few key points.
Reliance on formal inputs
We thank the reviewer for raising this point and would like to clarify that our method can operate on plain text alone without requiring pre-existing FOL annotations (external formal inputs), although it can benefit slightly more from the stricter, noiseless format used in the main paper. In the W1 and W2 experiments presented during the rebuttal, the LLM is given only natural language, from which the transformed FOL representations (formal inputs) are obtained via vanilla LLMs (with no external logic tools needed) and then provided as input to the LoGIST framework. We find that accuracy on Mixed only drops by 0.012 (0.656 vs. 0.668 with noiseless FOL). This result shows that LoGIST does not rely on high-quality FOL annotations, and that its improvement is preserved under a fully automatic pipeline that takes only natural language as input.
Stronger baselines
We appreciate this suggestion and note that our rebuttal includes the suggested strong baseline with formula canonicalization information. Following a widely used approach for encoding graph information for LLMs [1], we prepend the linearized ROBDD to the context, along with a clear description of the potential reasoning path, and then train the LLM to use it. In this setup, the baseline receives exactly the same canonical structural information as LoGIST and differs only in how that information is delivered, yet it yields only marginal and inconsistent accuracy changes (+0.4% on Mixed, −0.9% on Base, and −1.6% on D.M.) and does not reduce inconsistency (21.3% vs. 19.0% on Mixed). Based on these results, augmented training data are insufficient to improve generalization performance, demonstrating the necessity of LoGIST: it encodes the logical structure and injects it into the LLM’s hidden states to guide reasoning.
We thank the reviewer again for the careful reading throughout. These results from the discussion are important to how our claims should be read, and we will definitely include the new experiments and analyses in the final version to improve the clarity of our claims and findings.
[1] Fatemi, Bahare et al. "Talk like a Graph: Encoding Graphs for Large Language Models." ICLR 2024.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Summary of Rebuttal Outcomes and Meta-Review Points
We thank the AC for the clear summary and guidance, and the reviewers for their continued engagement. We are glad that our rebuttal has been acknowledged as effectively addressing the concerns of two reviewers (VB2g: concerns and questions have been resolved), and that the scores are now all positive (4/4/5). Below we summarize how each of the four meta-review points is addressed, with full set-ups and results in the cited threads.
W1: ROBDD-input baseline. We added a baseline that receives the same ROBDD linearized in the prompt, isolating the effect of the ROBDD information provided. As reported in our response to VB2g (W4), this baseline produces only marginal accuracy changes (+0.4% on Mixed and −0.9% on Base) and does not reduce inconsistency (21.3% vs. 19.0% for plain SFT on Mixed).LoGIST instead improves every setting and reduces inconsistency to 15.8%, showing the gain comes from its architecture rather than the ROBDD input. This conclusion is also acknowledged by reviewer VB2g.
W2: Logical invariance comes from the LoGIST encoder. We clarified that the ROBDD construction is deterministic and involves no LLM. In our response to VB2g (W3), we further show that a shared ROBDD embedding alone is insufficient: when LoGIST's alignment step is removed, equivalent variants still receive the same graph embedding, yet, without alignment to the LLM's representation space, the gain nearly vanishes (only +0.008 on Mixed). Invariance thus comes from aligning and fusing the canonical structure, not from a shared embedding.
W3: Noisy ROBDDs. We constructed ROBDDs at evaluation time via parsing from natural language using the base model, so no clean ROBDD is required. As detailed in wYgY (Q1) and t1SV (W1), despite parsing noise (15.3% exact match, 73.6% structural correctness), LoGIST reaches 0.656 accuracy versus 0.668 with gold FOL on Mixed, still above vanilla GRPO (0.627). This confirms LoGIST works with noisy ROBDDs in a real-world setting.
W4: Difficulty versus logical invariance. We illustrate that the performance drop stems from LLMs failing to capture logical invariance. In our response to VB2g (W1), we measured inconsistency only among transformed variants with matched difficulty, and we find predictions still flip on 17.5%–19.2% of instances, compared with a 2.6% stochastic baseline. The nearly symmetric flip directions (12.5% correct→incorrect and 10.8% incorrect→correct) and comparable perplexities (4.27 vs. 4.31) further indicate that logical form, not difficulty, drives the inconsistency and performance drop. This analysis is also acknowledged by reviewer VB2g.
We appreciate the efforts of the AC and all reviewers. We will incorporate all of the results and clarifications provided during the discussion stage into the revised manuscript.