Skip to main content
QUICK REVIEW

[Paper Review] Uncontrolled Lexical Exposure Leads to Overestimation of Compositional Generalization in Pretrained Models

Najoung Kim, Tal Linzen|arXiv (Cornell University)|Dec 21, 2022
Natural Language Processing TechniquesComputer Science11 citations
TL;DR

This paper demonstrates that pretrained language models overestimate compositional generalization due to uncontrolled lexical exposure during pretraining. By replacing context-controlled lexical items in the COGS benchmark with novel character sequences or unique embeddings, the authors show significant performance drops—up to 51 percentage points—revealing that prior results were inflated by exposure to rare words in pretraining data.

ABSTRACT

Human linguistic capacity is often characterized by compositionality and the generalization it enables -- human learners can produce and comprehend novel complex expressions by composing known parts. Several benchmarks exploit distributional control across training and test to gauge compositional generalization, where certain lexical items only occur in limited contexts during training. While recent work using these benchmarks suggests that pretrained models achieve impressive generalization performance, we argue that exposure to pretraining data may break the aforementioned distributional control. Using the COGS benchmark of Kim and Linzen (2020), we test two modified evaluation setups that control for this issue: (1) substituting context-controlled lexical items with novel character sequences, and (2) substituting them with special tokens represented by novel embeddings. We find that both of these setups lead to lower generalization performance in T5 (Raffel et al., 2020), suggesting that previously reported results have been overestimated due to uncontrolled lexical exposure during pretraining. The performance degradation is more extreme with novel embeddings, and the degradation increases with the amount of pretraining data, highlighting an interesting case of inverse scaling.

Motivation & Objective

  • To investigate whether uncontrolled lexical exposure during pretraining invalidates the distributional control assumed in compositional generalization benchmarks.
  • To evaluate whether the high generalization performance reported for pretrained models on benchmarks like COGS is artificially inflated due to exposure to rare lexical items in pretraining data.
  • To propose and test two modified evaluation setups that enforce stricter lexical control to yield more reliable generalization scores.
  • To examine how the choice of lexical substitution strategy (character sequences vs. novel embeddings) affects model performance and generalization robustness.
  • To challenge the assumption that pretraining uniformly improves compositional generalization, especially in zero-shot or few-shot settings with rare lexical items.

Proposed method

  • Replace context-controlled lexical items (e.g., 'hedgehog') in the COGS benchmark with novel character sequences not present in the pretraining corpus.
  • Replace the same lexical items with special tokens initialized with novel, randomly assigned embeddings not shared with any pretraining data.
  • Fine-tune the T5 model on the modified COGS datasets under both substitution strategies, using the same training and evaluation protocols as the original benchmark.
  • Compare the generalization accuracy of the T5 model on the modified datasets to its performance on the original COGS benchmark.
  • Measure performance degradation as an indicator of overestimation due to uncontrolled lexical exposure.
  • Analyze the impact of pretraining data scale by comparing performance degradation across models fine-tuned on increasing amounts of pretraining data.

Experimental results

Research questions

  • RQ1To what extent does uncontrolled lexical exposure during pretraining lead to overestimation of compositional generalization in pretrained models?
  • RQ2How does replacing context-controlled lexical items with novel character sequences affect generalization performance compared to the original benchmark?
  • RQ3What is the impact of using novel, randomly initialized embeddings for lexical items on generalization performance, and how does it compare to character sequence substitution?
  • RQ4Does the degree of performance degradation vary with the scale of pretraining data, and if so, what does this imply about the role of pretraining in compositional generalization?
  • RQ5Under what conditions does pretraining fail to improve compositional generalization, and when might it even harm it?

Key findings

  • Replacing context-controlled lexical items with novel character sequences reduced T5’s generalization accuracy on COGS from 83% to between 64% and 69%, indicating a 14–19 percentage point overestimation.
  • Using novel embeddings for lexical items caused a performance drop of up to 51 percentage points, reducing accuracy from 83% to as low as 32%, revealing a severe overestimation due to uncontrolled exposure.
  • In the novel embedding setup, randomly initialized models outperformed pretrained models, suggesting that pretraining can be detrimental to generalization when lexical items are not properly controlled.
  • The performance degradation was more severe with novel embeddings than with character sequences, indicating that embedding similarity to pretraining data plays a key role in overestimation.
  • The magnitude of performance drop increased with the amount of pretraining data, revealing an inverse scaling effect where larger pretraining data exacerbates overestimation.
  • These results demonstrate that prior reports of strong compositional generalization in pretrained models are likely inflated due to exposure to rare lexical items in pretraining corpora such as C4.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.