ReCOGS: How Incidental Details of a Logical Form Overshadow an Evaluation of Semantic Interpretation
Zhengxuan Wu, Christopher D. Manning, Christopher Potts
TL;DR
COGS benchmarks assess compositional generalization by mapping English sentences to logical forms, but results are confounded by incidental LF details. The authors demonstrate that meaning-preserving LF alterations—token removal, length artifacts, and variable-name bindings—dramatically influence performance, suggesting prior failures reflect representation choices rather than semantic incapacity. They propose ReCOGS, a revised benchmark with SEM-based evaluation, index randomization, and targeted data augmentations (e.g., preposing, filler words, participial verb phrases) to better isolate semantic generalization. Across LSTM and Transformer baselines, ReCOGS remains challenging but yields tangible traction, underscoring the need for robust benchmark design and careful interpretation of compositionality in semantic parsing.
Abstract
Compositional generalization benchmarks for semantic parsing seek to assess whether models can accurately compute meanings for novel sentences, but operationalize this in terms of logical form (LF) prediction. This raises the concern that semantically irrelevant details of the chosen LFs could shape model performance. We argue that this concern is realized for the COGS benchmark. COGS poses generalization splits that appear impossible for present-day models, which could be taken as an indictment of those models. However, we show that the negative results trace to incidental features of COGS LFs. Converting these LFs to semantically equivalent ones and factoring out capabilities unrelated to semantic interpretation, we find that even baseline models get traction. A recent variable-free translation of COGS LFs suggests similar conclusions, but we observe this format is not semantically equivalent; it is incapable of accurately representing some COGS meanings. These findings inform our proposal for ReCOGS, a modified version of COGS that comes closer to assessing the target semantic capabilities while remaining very challenging. Overall, our results reaffirm the importance of compositional generalization and careful benchmark task design.
