Research map / Large language models / Language, safety and interpretability
Few-Shot Natural Language to First-Order Logic Translation via Code Generation
Junnan Liu
Monash University
Read the paperPlace an idea next to itCheck your own paper ↗
13measured effects
12improved
1hurt
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use code prompt instead of text prompt | GPT-3.5 · FOLIO | LE: 83.53 -> 92.67 | Improved |
| use code prompt instead of text prompt | CodeGeeX2 · FOLIO | LE: 56.71 -> 84.77 | Improved |
| training-free Code4Logic (GPT-3.5) instead of fine-tuned LogicLLaMA | Code4Logic · FOLIO | LE: 84.90 -> 92.67 | Improved |
| Code4Logic (GPT-3.5) vs best Symbol-LLM | Code4Logic · MALLS | LE: 89.50 -> 90.92 | Improved |
| add comment-style instruction (ablation) | Code4Logic (GPT-3.5) · FOLIO | LE: 29.33 -> 92.67 | Improved |
| add basis function definition (ablation) | Code4Logic (GPT-3.5) · FOLIO | LE: 22.82 -> 92.67 | Improved |
| add demonstration examples (ablation) | Code4Logic (GPT-3.5) · FOLIO | LE: 24.91 -> 92.67 | Improved |
| use Python-comment instruction instead of text-based instruction (ablation) | Code4Logic (CodeGeeX2) · FOLIO | LE: 82.68 -> 84.77 | Improved |
| use code-style basis functions instead of text-based (ablation) | Code4Logic (CodeGeeX2) · FOLIO | LE: 20.58 -> 84.77 | Improved |
| increase number of demonstration examples (ablation) | Code4Logic · FOLIO and MALLS | LE | Improved |
| use GPT-3.5 instead of CodeGeeX2 as base LLM | Code4Logic · FOLIO | LE: 84.77 -> 92.67 | Improved |
| use Code4Logic instead of GPT-3.5 few-shot | GPT-3.5 · LogicNLI | accuracy: 82.44 -> 91.34 | Improved |
Open problems in controlled text generation
How can generation be controlled and checked reliably across languages, domains and model sizes without extra cost?
- Each study covers one domain, source or task, so transfer is unknown. · 13 papers state it
- Only a few languages are tested, mostly English or high-resource ones. · 12 papers state it
- Extra stages, calls or tokens make generation slower and costlier. · 10 papers state it
Closest papers by meaning
- Do LLMs Really Struggle at NL-FOL Translation? Revealing Their Strengths via a Novel Benchmarking Strategy (AAAI 2026 · similarity 0.89)
- Harnessing the Power of Large Language Models for Natural Language to First-Order Logic Translation (ACL 2024 · similarity 0.89)
- Multi-MALLS: A Multilingual Benchmark for Natural Language to First-Order Logic Translation (EMNLP 2026 · similarity 0.86)
- NL2Lean: Translating Natural Language into Lean 4 through Multi-Aspect Reinforcement Learning (EMNLP 2025 · similarity 0.85)
- Divide and Translate: Compositional First-Order Logic Translation and Verification for Complex Logical Reasoning (ICLR 2025 · similarity 0.85)
- Grammar-Forced Translation of Natural Language to Temporal Logic using LLMs (ICML 2025 · similarity 0.84)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.