Into The Limits of Logic: Alignment Methods for Formal Logical Reasoning

Francisco Fernando Lopez-Ponce, Gemma Bel-Enguix


Abstract
We implement Large Language Model Alignment algorithms to formal logic reasoning tasks involving natural-language (NL) to first-order logic (FOL) translation, formal logic inference, and premise retranslation. These methodologies were implemented using task-specific preference datasets created based on the FOLIO datasets and LLM generations. Alignment was based on DPO, this algorithm was implemented and tested on off-the-shelf and pre-aligned models, showing promising results for higher quality NL-FOL parsing, as well as general alignment strategies. In addition, we introduce a new similarity metric (LogicSim) between LLM-generated responses and gold standard values, that measures logic-relevant information such as premise count and overlap between answers and expands evaluation of NL-FOL translation pipelines. Our results show that LLMs still struggle with logical inference, however alignment benefits semantic parsing and retranslation of results from formal logic to natural language.
Anthology ID:
2025.mathnlp-main.8
Volume:
Proceedings of The 3rd Workshop on Mathematical Natural Language Processing (MathNLP 2025)
Month:
November
Year:
2025
Address:
Suzhou, China
Editors:
Marco Valentino, Deborah Ferreira, Mokanarangan Thayaparan, Leonardo Ranaldi, Andre Freitas
Venues:
MathNLP | WS
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
112–123
Language:
URL:
https://preview.aclanthology.org/ingest-emnlp/2025.mathnlp-main.8/
DOI:
Bibkey:
Cite (ACL):
Francisco Fernando Lopez-Ponce and Gemma Bel-Enguix. 2025. Into The Limits of Logic: Alignment Methods for Formal Logical Reasoning. In Proceedings of The 3rd Workshop on Mathematical Natural Language Processing (MathNLP 2025), pages 112–123, Suzhou, China. Association for Computational Linguistics.
Cite (Informal):
Into The Limits of Logic: Alignment Methods for Formal Logical Reasoning (Fernando Lopez-Ponce & Bel-Enguix, MathNLP 2025)
Copy Citation:
PDF:
https://preview.aclanthology.org/ingest-emnlp/2025.mathnlp-main.8.pdf