ZeroHour
arXiv cs.AI / cs.LG / cs.CLpublished ()ingested Anssi Moisio

Type Diversity Enables Transformers to Generalise Compositionally

infoAI researchimportance 20
AI summary · glm-5.3

Researchers show lexical-versus-structural compositional generalization gaps in Transformers stem from type diversity imbalance in datasets, not architectural limits.

The paper argues that Transformers' difficulty with structural compositional generalization is an artifact of low structural type diversity in prior benchmark datasets rather than an architectural limitation. Using Grammatical Framework, the authors create linguistically diverse variants of COGS and SLOG. They find type diversity correlates with compositional generalization equally in lexical and structural test cases, contradicting previous claims that compound divergence explains task difficulty.

  • Type diversity, not architecture, explains lexical vs structural generalization gap
  • Linguistically diverse COGS and SLOG variants built with Grammatical Framework
  • Type diversity correlates equally with lexical and structural generalization
  • Contradicts prior compound-divergence explanation for compositional task difficulty
Full article186 words · extracted from arxiv.org · click to collapse

Compositional generalisation has been divided into lexical and structural generalisation. Previous work has found that structural generalisation is harder than lexical for Transformers. We propose that this difference is not inherent to Transformers, but due to the high diversity of lexical types and low diversity of structural types in the specific datasets of these previous works. By type diversity we mean the number of different constructors of that type, instead of, for example, the specific word combinations that might populate the structure. To test this, we vary the amounts of type diversity of lexical and structural types in previously published datasets. We create linguistically diverse variants of the COGS and SLOG datasets using Grammatical Framework. We find that type diversity correlates with compositional generalisation equally in lexical and structural test cases, supporting our hypothesis. We note a contradiction with the proposition in previous work that compound divergence explains the difficulty in compositional generalisation tasks. We further investigate the effects of other dataset properties on compositional generalisation, such as the diversity of types other than the novel test structure, and surface properties of the logical semantics format.

Text extracted automatically; images, tables and formatting may be missing. Original: https://arxiv.org/abs/2609.13144