Large language models excel generating sentences but struggle parsing semantics

Scoring Both Directions: LLMs realize the MRS they cannot reliably parse

Computation and Language

Summary

The paper looks at how well large language models (LLMs) can turn formal meaning representations into English sentences and vice versa. The authors compare LLMs to a specialized system called ACE that parses sentences into meaning graphs and generates sentences from these graphs. They find that LLMs can generate English sentences from meaning representations surprisingly well, even better than some trained systems. However, LLMs have a much harder time parsing English sentences back into these formal meaning graphs, with much lower accuracy. This means that while LLMs can produce fluent sentences from semantic info, they do not necessarily understand the deeper semantic structure fully.

What this means in practice

  • For natural language processing engineers: Improve sentence generation tools by using large language models that convert formal semantic graphs into fluent English with high quality.
  • For computational linguists: Benchmark semantic parsing systems by comparing them to large language models’ difficulty in converting sentences into formal meaning structures.

Authors

Soham Dan

Abstract

The English Resource Grammar (ERG) is a hand-written computational grammar of English. Given a sentence, its processor, ACE, produces a formal meaning representation called Minimal Recursion Semantics (MRS): a graph of the sentence's predicates and their arguments. The grammar is bidirectional and can also turn an MRS back into an English sentence. \citet{hajdik2019} used the ERG's treebank to build a benchmark for that generation task, MRS to text, and trained sequence-to-sequence models to solve it. The parsing task, text to MRS, can be tested on the same sentences. We reconstruct their 10K-sentence test split, and score two large language models, Claude Sonnet~4.5 and Claude Opus~5, in both directions against their trained systems and against ACE, with no task-specific training. Given an MRS and three examples, Opus writes the sentence at 76.3 BLEU, ten points above their system trained on 72k pairs (66.1 BLEU), and comparable to their system trained on a million extra pairs (77.2 BLEU). Sonnet scores 65.7 BLEU, and letting it choose among ACE's own candidate sentences lifts it to 69.6, while a pooled judge that keeps Opus's own sentence among the candidates adds 0.6 points (77.0 BLEU). In the parsing direction, however, the models fall far behind ACE: asked for the MRS of the same sentences, they reach 57.2 (Sonnet) and 65.5 (Opus) F$_1$ on the graph's predicates and arguments against 91.0 for ACE, and exact-match the gold on about 1\% of sentences. We characterize the failure modes for the parsing tasks, and conclude that a generation score alone does not show that models understand formal semantic representations.