CWoMP: Morpheme Representation Learning for Interlinear Glossing

Morris Alper, Enora Rice, Bhargav Shandilya, Alexis Palmer, Lori LevinarXiv 2026

TL;DR

CWoMP (Contrastive Word-Morpheme Pretraining) introduces a novel retrieval-based approach to automated interlinear glossing by treating morphemes as atomic form-meaning units in a shared embedding space. By decoding via retrieval from a mutable lexicon rather than unconstrained character generation, it eliminates morphemic hallucinations, guarantees perfect segment-gloss alignment, and allows users to dynamically add new vocabulary at inference time without retraining.

What Problem Does This Paper Address?

Field linguists documenting endangered languages rely heavily on Interlinear Glossed Text (IGT)—a structured format that maps words to their morphological segments and grammatical meanings. However, producing IGT manually is incredibly labor-intensive.

Recent state-of-the-art automated glossing systems treat this as a standard sequence-to-sequence (seq2seq) string translation task. While powerful, these character- or byte-level models suffer from three critical flaws that alienate actual linguists:

  1. Hallucination: They frequently invent completely fabricated, linguistically impossible morphemes.
  2. Misalignment: The predicted number of morphological segments often fails to match the number of predicted glosses.
  3. Inflexibility: If a linguist encounters a new out-of-vocabulary (OOV) word in the field, the entire model must be retrained to learn it.

Methods

CWoMP addresses these issues by reframing glossing as a sequence retrieval problem over a discrete codebook of morphemes. The architecture consists of two main stages:

  1. Bag-of-Morphemes (BoM) Encoder: A dual-encoder framework (built on LaBSE) that maps words-in-context and morphemes (defined as paired segment-gloss units) into a shared latent space. It uses a multi-positive variant of the InfoNCE loss to maximize the cosine similarity between a word and all of its constituent morphemes simultaneously.
  2. IGT Decoder: A lightweight autoregressive transformer decoder. Instead of generating text characters, it outputs a continuous vector at each step. This vector is matched against a precomputed codebook of morpheme embeddings via nearest-neighbor search to retrieve the final segment-gloss pair.
Figure 1: CWoMP predicts key components of IGT by retrieving morpheme entries from a mutable lexicon of learned representations (green morpheme embeddings are selected). Compared to approaches that generate un- constrained text, our method’s outputs are interpretable and can be refined at inference time by adding lexicon entries without retraining. In the example shown above, a Tsez word meaning Don’t be afraid is split by CWoMP into constituent morphemes.

Crucially, this lexicon is mutable. Users can expand the codebook with new morphemes at inference time, allowing the model to instantly handle out-of-vocabulary words without changing its underlying weights.

Datasets

The authors evaluated CWoMP using data from the SIGMORPHON 2023 Shared Task on IGT Interlinear Glossing. The dataset spans seven typologically diverse, low-resource languages:

  • Gitksan (extremely low-resource: only 31 training sentences)
  • Lezgi
  • Natugu
  • Nyangbo
  • Tsez
  • Uspanteko
  • Arapaho

Key Insights and Ideas

  • Morphemes as Atomic Units: By forcing the decoder to select from a predefined lexicon of valid form-meaning pairs, the model is structurally incapable of hallucinating illegal morphemes or generating mismatched segment/gloss counts.
  • Geometric Interpretability: The contrastive embedding space naturally organizes itself according to linguistic rules. The encoder learns word2vec-style morphological analogies; for instance, the vector difference between case markings (like moving from POSS.ABL to POSS.LAT) remains highly consistent across entirely different word stems.
Visualization of linear morphological analogies in the Tsez embedding space
  • Human-in-the-Loop Synergy: The mutable lexicon mirrors the actual workflow of a field linguist. As a linguist corrects errors or adds dictionary entries, the model's performance improves dynamically in real-time.

Key Results

  • Superior Low-Resource Performance: CWoMP consistently outperformed or matched the leading baseline (GlossLM). Gains were massive in ultra-low-resource settings; on Gitksan (31 training samples), expanding the lexicon at inference time dropped the Morpheme Error Rate (MER) from 0.68 to 0.54.
  • Massive Efficiency Gains: Because CWoMP avoids the byte-level decoding bottleneck of models like ByT5, it requires ~8.5x fewer floating-point operations (FLOPs) per sentence during inference (24.8B FLOPs vs. 211.7B for GlossLM).
Figure 4: Improvement over baseline. We report Morpheme Error Rate (↓) for glossing for CWoMP (ours) and the leading prior method GlossLM. CWoMP performs competitively or outperforms GlossLM for most languages, with a substantial boost in the extended lexicon setting. We analyze factors impacting Uspanteko performance in Section 4.3.

Limitations and Future Work

  • Sensitivity to Spelling Variations: Because CWoMP treats morphemes as fixed atomic units, it struggles with inconsistent orthography or surface spelling variations (a major issue in the Uspanteko dataset), as it cannot generalize to an unobserved spelling variant unless it is explicitly added to the lexicon.
  • Strict Structural Requirements: The model assumes IGT data is formatted cleanly into two corresponding tiers with an equal number of hyphen-separated units, making it currently incompatible with non-concatenative morphology or alternative annotation styles (like clitics separated by =).

Future work includes integrating broader linguistic resources like formal grammars and dictionaries, as well as deploying CWoMP into active human-in-the-loop annotation interfaces.

Summary updated

BibTeX
@misc{alper2026cwomp,
  author = {Morris Alper and Enora Rice and Bhargav Shandilya and Alexis Palmer and Lori Levin},
  title = {{CWoMP: Morpheme Representation Learning for Interlinear Glossing}},
  year = {2026},
  eprint = {2603.18184},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.18184},
}
Figure