Investigating the (De)Composition Capabilities of Large Language Models in Natural-to-Formal Language Conversion

Ziyao Xu, Houfeng Wang
1/24/2025
cs.CL

No official code found. Best implementation: xzy-xzy/DEDC (1 star, last commit 2025-05-01).

Abstract

To achieve generalized and robust natural-to-formal language conversion (N2F), large language models (LLMs) need to have strong capabilities of decomposition and composition in N2F when faced with an unfamiliar formal language and be able to cope with compositional gaps and counter-intuitive symbolic names. To investigate whether LLMs have this set of basic capabilities in N2F, we propose the DEDC framework. This framework semi-automatically performs sample and task construction, allowing decoupled evaluation of the set of decomposition and composition capabilities of LLMs in N2F. Based on this framework, we evaluate and analyze the most advanced LLMs, and the main findings include that: (1) the LLMs are deficient in both decomposition and composition; (2) the LLMs show a wide coverage of error types that can be attributed to deficiencies in natural language understanding and the learning and use of symbolic systems; (3) compositional gaps and counter-intuitive symbolic names both affect the decomposition and composition of the LLMs. Our work provides a new perspective for investigating the basic capabilities of decomposition and composition of LLMs in N2F. The detailed analysis of deficiencies and attributions can help subsequent improvements of LLMs.

View on arXivView PDF

Code Implementations(1)

xzy-xzy/DEDCCommunity100%

[NAACL 2025] Investigating the (De)Composition Capabilities of Large Language Models in Natural-to-Formal Language Conversion

10Shell, PythonJan 24, 20251 years ago

Cite this paper

@article{xu2025investigating,
  title  = {Investigating the (De)Composition Capabilities of Large Language Models in Natural-to-Formal Language Conversion},
  author = {Ziyao Xu and Houfeng Wang},
  year   = {2025},
  eprint = {2501.14649},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.14649v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2501.14649.svg)](https://codeofpaper.com/paper/2501.14649)

Discussion