[Paper Review] Improving Symbolic Translation of Language Models for Logical Reasoning
The paper improves symbolic NL-to-FOL translation for logical reasoning with smaller LMs by categorizing errors, fine-tuning on LLM-synthesized data, and introducing incremental inference and verification to boost accuracy and predicate coverage.
The use of formal language for deductive logical reasoning aligns well with language models (LMs), where translating natural language (NL) into first-order logic (FOL) and employing an external solver results in a verifiable and therefore reliable reasoning system. However, smaller LMs often struggle with this translation task, frequently producing incorrect symbolic outputs due to formatting and translation errors. Existing approaches typically rely on self-iteration to correct these errors, but such methods depend heavily on the capabilities of the underlying model. To address this, we first categorize common errors and fine-tune smaller LMs using data synthesized by large language models. The evaluation is performed using the defined error categories. We introduce incremental inference, which divides inference into two stages, predicate generation and FOL translation, providing greater control over model behavior and enhancing generation quality as measured by predicate metrics. This decomposition framework also enables the use of a verification module that targets predicate-arity errors to further improve performance. Our study evaluates three families of models across four logical-reasoning datasets. The comprehensive fine-tuning, incremental inference, and verification modules reduce error rates, increase predicate coverage, and improve reasoning performance for smaller LMs, moving us closer to developing reliable and accessible symbolic-reasoning systems.
Motivation & Objective
- Motivate reliable deductive reasoning by translating natural language into first-order logic and using an external solver.
- Address small-LM translation errors due to formatting and mis-translations in symbolic outputs.
- Develop a data-augmentation and methodological framework to improve translation accuracy and reasoning reliability.
- Enable finer control over inference and error handling to reduce symbolic translation errors.
Proposed method
- Categorize common NL-to-FOL translation errors.
- Fine-tune smaller LMs using data synthesized by larger language models.
- Introduce incremental inference by splitting inference into predicate generation and FOL translation.
- Incorporate a verification module that targets predicate-arity errors to improve generation quality.
- Evaluate three model families across four logical-reasoning datasets.
Experimental results
Research questions
- RQ1How can small language models reliably translate natural language into first-order logic?
- RQ2What effects do error categorization and LLM-synthesized fine-tuning have on symbolic translation accuracy?
- RQ3Does incremental inference improve predicate generation and FOL translation quality compared to end-to-end approaches?
- RQ4Can a verification module reduce predicate-arity and other structural errors to enhance reasoning performance?
- RQ5How do different model families perform across multiple logical-reasoning datasets when using the proposed framework?
Key findings
- Fine-tuning with LLM-synthesized data reduces translation errors in smaller LMs.
- Incremental inference improves control over predicate generation and FOL translation, enhancing generation quality.
- A verification module targeting predicate-arity errors further boosts performance.
- The framework improves predicate coverage and reasoning performance across multiple datasets.
- Three families of models show reduced error rates with the proposed methods.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.