SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2501.14649 · NAACL · 2025

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

Houfeng Wang, Ziyao Xu

arXiv · PDF · Open in the Atlas

Code that ran

2 of 2 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 1 failure of our instrument; 0 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2501.14649.json · badge: /api/ran/2501.14649.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
xzy-xzy/DEDC community
Papers with Code archive
2 ran · 0 no recorded run
FunctionStatusWhere it lives
convert Ran
ran; our contract draft was wrong, not the code
xzy-xzy/DEDC/code/filled_graph.py
pointer only (licence: NONE) · get_code("eed1fd08062fea07")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xzy-xzy/DEDC when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

filled_graph Ran
ran on a synthesized input · constructed an object; no result was computed
xzy-xzy/DEDC/code/filled_graph.py
pointer only (licence: NONE) · get_code("4c2c9457c4404829")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xzy-xzy/DEDC when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Also present in other papers' code

Of 2 samples lifted from this paper's linked repositories, 2 carry a function identity and 0 do not. Of the 2 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 2 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

To achieve generalized and robust natural-toformal 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 semiautomatically 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. The dataset and code are available at https://github.com/xzy-xzy/DEDC. f0 (view, column, value) → view: the subview of view where values under the column are greater than value f1 (view, column, k) → view: the subview of view where values under the column are in the top k f3 (view, column, k) → value: the kth-max value under the column in the view Primitives Graph and Expressions view_1 := f0 (all, attr_958, 529); view_2 := f1 (view_1, attr_468, 933); val_1 := f3 (view_1, attr_159, 776); result := f0 (view_2, attr_922, val_1); Assuming that group A contains the items that satisfy its attr_958 is greater than 529 among all items, which items satisfy its attr_922 is greater than the 776th largest attr_159 of group A among the top 933 items for attr_468 among group A? view view view value f0 f1 f3 f0 Question in Natural Language For a given question of tabular reasoning, output the reasoning expressions with minimum steps using a particular symbolic system. Here are some examples.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2501.14649")
get_code_for_paper("2501.14649")
have("2501.14649")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2501.14649.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2501.14649.svg)](https://syntology.ai/paper/2501.14649)

Connect an agent — have() is free.