Investigating the (De)Composition Capabilities of Large Language Models in Natural-to-Formal Language Conversion
Ziyao Xu, Houfeng Wang
TL;DR
This paper investigates whether large language models possess basic decomposition and composition capabilities for natural-to-formal language conversion ($N2F$). It introduces the DEDC framework, which semi-automatically constructs samples and tasks to decouple decomposition from composition and tests robustness to compositional gaps and counter-intuitive symbolic names. Base evaluations reveal pronounced decomposition deficiencies across models, with composition being relatively stronger, and show that compositional gaps and naming inversions further degrade performance. The framework enables systematic error analysis and provides a path toward targeted improvements in LLMs’ N2F capabilities, with potential for broad generalization to other N2F tasks.
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.
