Skip to main content
QUICK REVIEW

[Paper Review] Can a Transformer Pass the Wug Test? Tuning Copying Bias in Neural Morphological Inflection Models

Ling Liu, Mans Hulden|arXiv (Cornell University)|Apr 13, 2021
Natural Language Processing TechniquesComputer Science5 citations
TL;DR

This paper proposes substring-based data hallucination to improve Transformer generalization in morphological inflection under 'wug test' conditions—where unseen lemmata are inflected—by generating synthetic training examples using syllable-like substrings (bigrams, trigrams, four-grams) instead of random characters. The method significantly outperforms prior character-level and stem-based hallucination techniques, especially in zero-shot generalization scenarios with no lemma overlap between train and test sets.

ABSTRACT

Deep learning sequence models have been successfully applied to the task of morphological inflection. The results of the SIGMORPHON shared tasks in the past several years indicate that such models can perform well, but only if the training data cover a good amount of different lemmata, or if the lemmata that are inflected at test time have also been seen in training, as has indeed been largely the case in these tasks. Surprisingly, standard models such as the Transformer almost completely fail at generalizing inflection patterns when asked to inflect previously unseen lemmata -- i.e. under "wug test"-like circumstances. While established data augmentation techniques can be employed to alleviate this shortcoming by introducing a copying bias through hallucinating synthetic new word forms using the alphabet in the language at hand, we show that, to be more effective, the hallucination process needs to pay attention to substrings of syllable-like length rather than individual characters or stems. We report a significant performance improvement with our substring-based hallucination model over previous data hallucination methods when training and test data do not overlap in their lemmata.

Motivation & Objective

  • To investigate why Transformers fail at zero-shot morphological inflection when lemmata are unseen at test time, despite strong performance in standard settings with overlapping training and test lemmata.
  • To address the lack of copying bias in Transformers under 'wug test' conditions, where models fail to generalize inflection patterns for previously unseen lemmata.
  • To improve generalization by introducing data augmentation via synthetic data hallucination that better captures morphological structure than random character generation.
  • To evaluate whether hallucinating with substrings of syllable-like length (e.g., bigrams, trigrams) improves generalization over character-level or stem-level hallucination.

Proposed method

  • The method generates synthetic (lemma, tag, form) triples by replacing the stem in real training examples with a dummy stem sampled from a set of bigrams, trigrams, and four-grams derived from the training data.
  • Stem alignment is performed using the SIGMORPHON 2016 baseline alignment method to identify common substrings between lemma and target form.
  • The dummy stem is constrained to fall within a length range observed in the training data, ensuring structural plausibility.
  • For discontinuous stems, only the first segment is replaced to maintain simplicity and avoid overcomplication.
  • The hallucinated data is added to the original training set to create a new augmented dataset for training the Transformer model.
  • The approach is compared against character-level hallucination (random strings from the alphabet) and prior state-of-the-art stem-based hallucination (Anastasopoulos & Neubig, 2019).

Experimental results

Research questions

  • RQ1Why do Transformers fail to generalize morphological inflection patterns when inflecting previously unseen lemmata, even with abundant training data?
  • RQ2To what extent does data augmentation via hallucination improve zero-shot generalization in morphological inflection?
  • RQ3Does the choice of hallucination unit—individual characters, stems, or syllable-like substrings—affect model performance in 'wug test' scenarios?
  • RQ4Can substring-based hallucination outperform character-level or stem-level hallucination in improving copying bias and generalization?

Key findings

  • The vanilla Transformer model fails completely on 'wug test' scenarios with no lemma overlap, achieving significantly lower accuracy than in standard training settings.
  • Substitution of stems with randomly generated character strings (e.g., from the alphabet) improves performance but remains suboptimal due to lack of morphological structure.
  • Using substrings of syllable-like length (bigrams, trigrams, four-grams) for hallucination yields a significant performance boost over character-level and prior stem-based methods.
  • The proposed substring-based hallucination method (+hall-2k-substr) achieves the highest accuracy across most languages in the 'wug test' setting, outperforming both Anastasopoulos & Neubig (2019) and character-level hallucination.
  • For Turkish and Nyanja, the improvement is not statistically significant, but the method still performs competitively.
  • Even with data augmentation, performance remains below standard practice settings, indicating that full generalization remains a challenge, but the proposed method represents a major step forward in zero-shot generalization.

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.