NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Abstract Meaning Representation-Based Logic-Driven Data Augmentation for Logical Reasoning

Qiming Bao, Alex Yuxuan Peng, Zhenyun Deng, Wanjun Zhong, Gaël Gendron, Timothy Pistotti, Neset Tan, Nathan Young, Yang Chen, Yonghua Zhu, Paul Denny, Michael Witbrock, Jiamou Liu

Introduction

Large Language Models (LLMs) have demonstrated remarkable capabilities in natural language processing, yet they remain notoriously "brittle" when faced with tasks requiring rigorous logical deduction. While these models excel at pattern matching, they often struggle with the systematic application of logical rules. A primary bottleneck is the data scarcity gap: while the internet provides vast amounts of general text, high-quality, annotated datasets for logical reasoning are scarce and expensive to produce.

Existing data augmentation techniques, such as simple paraphrasing or rigid template-based methods, often fail to alter the underlying logical structure or produce unnatural sentences that do not aid model generalization. To address this, researchers have introduced AMR-LDA (Abstract Meaning Representation-Based Logic-Driven Data Augmentation), a framework designed to automatically generate diverse, logically sound training examples by manipulating semantic graphs.

The AMR-LDA Framework

The core of the proposed method is the use of Abstract Meaning Representation (AMR) as a "logic layer." Unlike standard syntax trees, AMR captures the semantic relationships—the "who did what to whom"—and the logical connections (e.g., "if-then," "and," "not") within a sentence.

The AMR-LDA pipeline: from text parsing to logical graph modification and text generation.

The AMR-LDA process consists of three main stages:

  1. Text-to-AMR Parsing: An input sentence is converted into a rooted, directed acyclic AMR graph.
  2. Logic-Driven Graph Modification: The system applies formal logical laws to the graph to create logically equivalent or non-equivalent versions. Key transformations include:
  3. Contraposition: Transforming "If $A$, then $B$" into "If not $B$, then not $A$."
    • Implication: Converting "If $A$, then $B$" into "Not $A$ or $B$."
    • Commutative Law: Swapping arguments in "$A$ and $B$" to produce "$B$ and $A$."
    • Double Negation: Changing "$A$" to "It is not the case that not $A$."
  4. AMR-to-Text Generation: The modified graph is translated back into natural language.

By generating "negative samples"—sentences that appear similar but are logically distinct—the framework forces models to move beyond word-overlap shortcuts and focus on logical operators.

Enhancing LLM Performance

The AMR-LDA framework is architecture-agnostic and can be applied to both discriminative and generative models.

Overview of the AMR-LDA framework and its applications in discriminative and generative LLMs.

Contrastive Learning for Discriminative Models

For encoder-based models like RoBERTa and DeBERTa, the authors employ Logical-Equivalence-Identification Contrastive Learning. The model is trained to ensure that the internal representations of a sentence and its logically equivalent AMR-augmented version are similar, while logically non-equivalent versions are pushed further apart in the embedding space.

Prompt Augmentation for Generative Models

For generative models such as GPT-4, the framework is used for Prompt Augmentation. Instead of fine-tuning, AMR-LDA provides logically equivalent "hints" or rephrased options within the prompt. This helps the model "see" the underlying logic more clearly, improving its zero-shot or few-shot reasoning capabilities.

Experimental Results

The researchers evaluated AMR-LDA across several rigorous benchmarks, including ReClor (GMAT/LSAT questions) and LogiQA (National Civil Service Exam).

  • State-of-the-Art Performance: AMR-LDA achieved top results on the ReClor leaderboard. Fine-tuning DeBERTa with this method improved accuracy on the "hard" test set from 62.3% to 71.2%.
  • Generative Gains: For GPT-4, prompt augmentation increased LogiQA accuracy from 53.9% to 58.1%.
  • Robustness: On the PARARULE-Plus dataset, which uses "altered rules" to test logical consistency, AMR-LDA maintained nearly 100% accuracy. In contrast, previous baselines like LReasoner saw performance drops to 74%, indicating that AMR-LDA models are significantly more robust to logical "curveballs."

Conclusion

AMR-LDA demonstrates that leveraging semantic graphs for logic-driven data augmentation can significantly bridge the logical reasoning gap in LLMs. By treating AMR as a logic layer, the framework handles complex, real-world sentences more effectively than template-based methods. While the method is dependent on the quality of the AMR parser, it represents a significant step toward teaching models the fundamental rules of inference rather than just statistical patterns.

Summary updated

BibTeX
@inproceedings{bao2024abstract,
  author = {Qiming Bao and Alex Yuxuan Peng and Zhenyun Deng and Wanjun Zhong and Gaël Gendron and Timothy Pistotti and Neset Tan and Nathan Young and Yang Chen and Yonghua Zhu and Paul Denny and Michael Witbrock and Jiamou Liu},
  title = {{Abstract Meaning Representation-Based Logic-Driven Data Augmentation for Logical Reasoning}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-acl.353},
}
Figure