Abstract
Labeled sequence transduction is a task of transforming one sequence into another sequence that satisfies desiderata specified by a set of labels. In this paper we propose multi-space variational encoder-decoders, a new model for labeled sequence transduction with semi-supervised learning. The generative model can use neural networks to handle both discrete and continuous latent variables to exploit various features of data. Experiments show that our model provides not only a powerful supervised framework but also can effectively take advantage of the unlabeled data. On the SIGMORPHON morphological inflection benchmark, our model outperforms single-model state-of-art results by a large margin for the majority of languages.
Introduction: The Challenge of Labeled Sequence Transduction
Many natural language processing (NLP) tasks can be framed as labeled sequence transduction: the process of transforming an input sequence into a target sequence that adheres to specific labels. A quintessential example is morphological reinflection, where a base word (e.g., "playing") is transformed into a specific form (e.g., "played") based on grammatical labels like POS=Verb, Tense=Past.
While standard neural encoder-decoder architectures have achieved success in these tasks, they face two significant hurdles. First, they are data-hungry, requiring vast amounts of human-annotated pairs that are unavailable for many low-resource languages. Second, they often exhibit a "copying bias," struggling with non-concatenative languages (such as Arabic or Navajo) where inflection involves internal changes rather than simple suffixing.
Methodology: Multi-space Variational Encoder-Decoders (MSVED)
To address these limitations, we introduce the Multi-space Variational Encoder-Decoder (MSVED). This framework leverages Variational Autoencoders (VAEs) to model the underlying latent structure of language, treating words as being generated from distinct hidden factors.
Latent Variable Spaces
The core innovation of MSVED is the use of two separate latent spaces:
- Continuous Space ($z$): Represents the "lemma" or the core semantic meaning of the word.
- Discrete Space ($y$): Represents morphological features such as tense, number, or gender.
By disentangling these factors, the model learns a more robust representation of how language is structured. To make the discrete latent variables trainable via standard backpropagation, we employ the Gumbel-Softmax trick, providing a differentiable approximation to categorical sampling.
Semi-supervised Learning and Training
Because MSVED is a generative model, it can utilize unlabeled data. When presented with a random word from a dictionary, the model "guesses" its latent lemma and tags to attempt a reconstruction. This allows the model to learn linguistic structures from raw text, effectively acting as a force multiplier for small labeled datasets.
To prevent "posterior collapse"—a common VAE issue where the decoder ignores latent variables—we implemented KL-Divergence Annealing and Input Dropout in the decoder. These techniques force the model to rely on the learned lemma representations during the generation process.
Experiments and Datasets
We evaluated the MSVED on the SIGMORPHON 2016 benchmark, which includes 10 linguistically diverse languages: Turkish, Hungarian, Spanish, Russian, Navajo, Maltese, Arabic, Georgian, German, and Finnish. To test the semi-supervised capabilities, we supplemented the training data with over 150,000 unlabeled words extracted from a 2017 German Wikipedia dump.
Key Results and Insights
The MSVED established a new state-of-the-art for single-model performance, outperforming the previous leading model (MED) in 9 out of 10 languages.
- Complex Language Mastery: The model showed dramatic improvements in languages with complex internal morphological changes. In Navajo, accuracy rose from 63.62% to 98.25%. In Arabic, it increased from 72.58% to 93.37%.
- The Lemma Bottleneck: Visualization of the continuous space ($z$) using t-SNE revealed that different inflections of the same word naturally clustered together. This suggests the model successfully learned a "canonical" form of words without explicit supervision.
- Semi-supervised Advantage: The inclusion of unlabeled data consistently improved accuracy across the board, confirming that exposure to raw text helps the model internalize grammatical rules.
Conclusion
MSVED provides a powerful framework for sequence transduction by explicitly modeling the latent factors of language. By combining continuous and discrete latent spaces, the model handles complex inflections more effectively than standard encoder-decoders and thrives in semi-supervised settings. Future work will explore the scalability of this multi-space approach to broader tasks like machine translation and abstractive summarization.
Summary updated