NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Byte-Level Machine Reading Across Morphologically Varied Languages

Tom Kenter, Llion Jones, Daniel HewlettAAAI 2018

Abstract

The machine reading task, where a computer reads a document and answers questions about it, is important in artificial intelligence research. Recently, many models have been proposed to address it. Word-level models, which have words as units of input and output, have proven to yield state-of-the-art results when evaluated on English datasets. However, in morphologically richer languages, many more unique words exist than in English due to highly productive prefix and suffix mechanisms. This may set back word-level models, since vocabulary sizes too big to allow for efficient computing may have to be employed. Multiple alternative input granularities have been proposed to avoid large input vocabularies, such as morphemes, character n-grams, and bytes. Bytes are advantageous as they provide a universal encoding format across languages, and allow for a small vocabulary size, which, moreover, is identical for every input language. In this work, we investigate whether bytes are suitable as input units across morphologically varied languages. To test this, we introduce two large-scale machine reading datasets in morphologically rich languages, Turkish and Russian. We implement 4 byte-level models, representing the major types of machine reading models and introduce a new seq2seq variant, called encoder-transformer-decoder. We show that, for all languages considered, there are models reading bytes outperforming the current state-of-the-art word-level baseline. Moreover, the newly introduced encoder-transformer-decoder performs best on the morphologically most involved dataset, Turkish. The large-scale Turkish and Russian machine reading datasets are released to public.

Introduction

Most state-of-the-art Natural Language Processing (NLP) models treat words as the primary units of input. While effective for English, this approach struggles with morphologically rich languages like Turkish or Russian. In these languages, complex chains of prefixes and suffixes create a vast number of unique word forms. For instance, the Turkish word kolaylaştırabiliriz ("we can make it easier") stems from kolay ("easy").

Word-level models face two primary challenges in such environments:

  1. Vocabulary Explosion: Covering the full range of word variations requires massive, computationally expensive vocabularies.
  2. Out-of-Vocabulary (OOV) Errors: Models often fail when encountering unseen conjugated forms, even if the root word is known.

This research explores shifting input granularity to bytes—the raw digital representation of characters. This approach uses a tiny, universal vocabulary of 256 tokens, allowing models to learn sub-word patterns and generalize across languages without language-specific preprocessing.

Methods and Architectures

The study evaluates four major byte-level architectures alongside a novel variant. These models represent the primary paradigms in machine reading, including standard RNNs, convolutional-recurrent hybrids, and memory-based systems.

Overview of the evaluated byte-level machine reading architectures, ranging from standard RNNs to hybrid and convolutional variants.

The Encoder-Transformer-Decoder

A key contribution of this work is the encoder-transformer-decoder architecture. Unlike standard Memory Networks where the decoder directly attends to memory states, this model introduces an intermediate RNN. This "transformer" layer optimizes the document's representation specifically for the decoder, conditioned on the question. This allows the model to dynamically reshape the input information into a more useful state before generating an answer.

Detail of the proposed encoder-transformer-decoder architecture, highlighting the intermediate transformation layer.

Experimental Setup

The models were tested using the WikiReading benchmark, which requires predicting a value (e.g., birth date) given a Wikipedia document and a property (the question). To test morphological robustness, the authors introduced two new large-scale datasets:

  • English WikiReading: The standard baseline (OOV rate ~3.7%).
  • Turkish WikiReading: A highly complex dataset (OOV rate ~7.5%).
  • Russian WikiReading: A challenging dataset (OOV rate ~9.8%).

Results and Discussion

The results demonstrate that byte-level modeling is highly effective, particularly as morphological complexity increases.

  • Performance Gains: In Turkish, byte-level models significantly outperformed word-level baselines, achieving an F1 score of 0.6956 compared to 0.6365.
  • Architecture Success: The proposed encoder-transformer-decoder was the top performer for Turkish and highly competitive for Russian.
  • Efficiency and Universality: By using a fixed 256-byte vocabulary, these models eliminate the need for massive embedding tables and language-specific stemmers, maintaining a small memory footprint while achieving state-of-the-art results.
  • Sub-word Logic: Byte-level models successfully learned to generalize sub-word patterns. For example, they could learn comparative suffixes and apply them to previously unseen roots.

Conclusion

This work proves that bytes are a viable and often superior input unit for machine reading across diverse languages. While sequence length remains a challenge—since bytes are more numerous than words—the benefits in handling morphology and reducing vocabulary size are substantial. Future research will focus on more efficient architectures, such as Transformers, to better handle long byte sequences and further improve performance in complex linguistic environments.

Summary updated

BibTeX
@inproceedings{kenter2018byte,
  author = {Tom Kenter and Llion Jones and Daniel Hewlett},
  title = {{Byte-Level Machine Reading Across Morphologically Varied Languages}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  url = {https://openreview.net/forum?id=S1bHYxZO-S},
}
Figure