LAG: Logic-Augmented Generation from a Cartesian Perspective

Yilin Xiao, Chuang Zhou, Qinggang Zhang, Su Dong, Shengyuan Chen, Xiao HuangarXiv 2025 · OpenReview

Abstract

Large language models (LLMs) have demonstrated remarkable capabilities across a wide range of tasks, yet exhibit critical limitations in knowledge-intensive tasks, often generating hallucinations when faced with questions requiring specialized expertise. While retrieval-augmented generation (RAG) mitigates this by integrating external knowledge, it struggles with complex reasoning scenarios due to its reliance on direct semantic retrieval and lack of structured logical organization. Inspired by Cartesian principles from Discours de la méthode, this paper introduces Logic-Augmented Generation (LAG), a novel paradigm that reframes knowledge augmentation through systematic question decomposition, atomic memory bank and logic-aware reasoning. Specifically, LAG first decomposes complex questions into atomic sub-questions ordered by logical dependencies. It then resolves these sequentially, using prior answers to guide context retrieval for subsequent sub-questions, ensuring stepwise grounding in the logical chain. Experiments on four benchmarks demonstrate that LAG significantly improves accuracy and reduces hallucination over existing methods.

Addressing the Limitations of RAG

Standard Retrieval-Augmented Generation (RAG) systems face a fundamental "thinking" problem. While effective at fetching isolated facts to ground LLM outputs, they frequently falter when confronted with multi-step, complex queries. The authors identify three core failures in current RAG architectures:

  1. Semantic Mismatch: Direct retrieval often fails to capture the underlying logical structure of a query. For instance, a system might search for a "famous bridge" before identifying the necessary prerequisites, such as the specific "composer" or "city" referenced in the prompt.
  2. Lack of Dependency: Even when the correct context is retrieved, LLMs struggle to organize that information according to strict logical dependencies.
  3. Uncontrolled Reasoning: Methods like Chain-of-Thought (CoT) are often unstable; a single error early in the reasoning chain can cascade, leading to a completely hallucinated final answer.
Comparison of RAG, GraphRAG, and LAG on a complex query, highlighting LAG's success in multi-step reasoning.

The LAG Framework: A Cartesian Approach

Inspired by René Descartes’ Discours de la méthode, the LAG framework prioritizes logic over brute-force retrieval. The system follows a four-stage pipeline designed to treat complex queries like scientific problems:

  • Adaptive Question Decomposition: LAG utilizes a Cognitive Load metric—measuring semantic scope, reasoning steps, and ambiguity—to recursively break complex questions into "atomic" sub-questions.
  • Logical Reordering: The system analyzes sub-questions to identify dependencies, ensuring it solves foundational factual questions before moving to complex analytical ones.
  • Logic-Guided Retrieval: For each step, the system concatenates the previous answer with the current sub-question ($q^{(i+1)} = \phi(concat(a_i, q_{i+1}))$). This ensures the retriever is "aware" of the progress made so far, providing precise context for the next step.
  • The Logical Terminator: This safety mechanism monitors retriever confidence and semantic saturation. If the system detects insufficient information or repetitive reasoning, it halts to prevent the "hallucination spiral."
  • Atomic Memory Bank: To optimize efficiency, LAG maintains a cache of verified, high-confidence solutions to common sub-questions, reducing redundant LLM calls.
The Cartesian-inspired LAG architecture featuring adaptive question decomposition and logical chain reasoning.

Experimental Evaluation

The authors evaluated LAG on four major benchmarks: HotpotQA, MuSiQue, and 2WikiMultiHopQA (standard multi-hop QA benchmarks), as well as GraphRAG-Bench, which evaluates the rationality and consistency of reasoning in RAG systems.

LAG demonstrated a significant performance leap over both vanilla RAG and state-of-the-art GraphRAG methods:

  • Accuracy Gains: On HotpotQA and 2Wiki, LAG achieved absolute improvements of approximately 40 points in "Contain-Match" accuracy compared to base LLMs (GPT-4o-mini).
  • Outperforming GraphRAG: LAG consistently outperformed high-performing graph-based methods like HippoRAG and GFM-RAG, particularly on the MuSiQue dataset, which is notoriously difficult for multi-hop reasoning.
  • Reasoning Quality: On GraphRAG-Bench, LAG achieved the highest "R Score" (65.2), indicating that its generated rationales are more consistent with gold logical paths than any other baseline.

Key Insights and Future Work

LAG shifts the paradigm from "retrieval-first" to "reasoning-first." By applying 17th-century philosophical principles—dividing difficulties into parts and starting with the simplest objects—the authors have created a more interpretable and reliable AI system. A key feature is the "Logical Terminator," which acknowledges that an LLM should know when it lacks information, thereby avoiding the common pitfall of guessing.

Currently, LAG is strictly text-based. The authors suggest that extending this "logic-first" framework to handle multimodal inputs—incorporating images, charts, and videos—is the next step toward a more comprehensive model of human-like information processing.

Summary updated

BibTeX
@misc{xiao2025lag,
  author = {Yilin Xiao and Chuang Zhou and Qinggang Zhang and Su Dong and Shengyuan Chen and Xiao Huang},
  title = {{LAG: Logic-Augmented Generation from a Cartesian Perspective}},
  year = {2025},
  eprint = {2508.05509},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.05509},
}
Figure