When Form Changes but Logic Doesn’t: Building Logic-invariant LLMs through Structures
Xuyuan Liu, Xinshuai Dong, Elynn Chen, Yujun Yan
NeurIPS page · Open on the map
Category: LLM Reasoning, Memory & RAG › Agent Memory Compression and Retrieval · Type: new method · Keywords: logical invariance, language model reasoning, decision diagram, logical embedding, LLM consistency
Areas: LLM Reasoning › Language Model Reasoning › Knowledge Conflict and Hallucination; Evaluation & Benchmarks › Language Model and Agent Benchmarks › Compositional Reasoning
Summary
LoGIST is a framework that guides LLM reasoning with explicit logical structure, reducing inconsistency under logical equivalence and improving generalization to unseen logical forms.
Explained to a 5-year-old
Big computer programs called language models can read and answer questions about language. They are really good at many tasks, but sometimes they get confused. If you ask them two sentences that mean the same thing, they might answer differently. To fix this, researchers looked at how the meaning is built. They created a way to turn the meaning into a picture called a decision diagram.
Explained to a 5-year-old, longer
Big computer programs called language models can read and answer questions about language. They are really good at many tasks, but sometimes they get confused. If you ask them two sentences that mean the same thing, they might answer differently. This shows they might be using shortcuts instead of truly understanding the logic. To fix this, researchers looked at how the meaning is built. They created a way to turn the meaning into a picture called a decision diagram. This picture shows the logical steps of the sentence. The model is then guided by this picture when it thinks. This helps the model give the same answer for sentences that are logically the same. It also helps the model handle new sentences it has never seen before. The new method makes the models more reliable and easier to trust. It can be useful for building smarter assistants and tools that need careful reasoning.
For a technical reader
The paper observes that large language models often give different answers to sentences that are logically equivalent, indicating they rely on surface cues rather than true reasoning. To improve consistency, the authors introduce a framework that converts each input into a decision diagram capturing its logical structure and encodes this diagram into an embedding. This embedding conditions the language model’s generation process, encouraging it to base its predictions on the underlying logic rather than superficial patterns. Experiments across multiple settings show the approach reduces inconsistency and enhances generalization to unseen logical forms. The result is a more robust reasoning capability that can be integrated into existing language model pipelines for applications requiring reliable logical inference.
Problem
It is unclear whether LLMs truly understand logical structure or rely on shallow cues, and they often produce inconsistent predictions for logically equivalent inputs.
Method
The approach maps each input to a decision diagram that captures its logical structure, encodes the diagram into a logical embedding, and conditions the LLM's reasoning on this embedding.
Results
The approach reduces inconsistency under logical equivalence and improves generalization to unseen logical forms.
Contributions
It identifies the lack of logical invariance in LLMs and proposes a structure-guided framework that conditions reasoning on logical embeddings, thereby improving consistency and generalization.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction