---
title: "Introducing Syllable Tokenization for Low-resource Languages: A"
description: "A Swahili case study tests whether splitting words into syllables helps GPT-2 generate more fluent text with better structure and word order."
canonical: "https://research.elamur.ai/free/en/papers/atuhurra-2024-introducing-syllable-tokenization-low-resource/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/atuhurra-2024-introducing-syllable-tokenization-low-resource/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2024](https://md.research.elamur.ai/free/en/papers/2024/) / Introducing Syllable Tokenization for Low-resource Languages: A Case Study with Swahili

# Introducing Syllable Tokenization for Low-resource Languages: A Case Study with Swahili

Paper · 2024 · Jesse Atuhurra, Hiroyuki Shindo, Hidetaka Kamigaito et al.

**Authors:** [Jesse Atuhurra](https://md.research.elamur.ai/free/en/authors/jesse-atuhurra/), [Hiroyuki Shindo](https://md.research.elamur.ai/free/en/authors/hiroyuki-shindo/), [Hidetaka Kamigaito](https://md.research.elamur.ai/free/en/authors/hidetaka-kamigaito/) and [Taro Watanabe](https://md.research.elamur.ai/free/en/authors/taro-watanabe/) · **Year:** 2024 · **Venue:** arXiv (Cornell University) · **Licence:** [arXiv — non-exclusive license to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

[Cited by **5** papers in our library of the 163,136 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/atuhurra-2024-introducing-syllable-tokenization-low-resource/cited-by/) · arXiv (Cornell University) · [licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

- [arXiv 2406.15358](https://arxiv.org/abs/2406.15358)

## Summary

A system that generates text has to decide what pieces of a word it will learn to predict. In Swahili, those pieces can carry information about who is doing something and when it happens. The verb *anakula*, for example, contains *a*, *na*, *ku* and *la*. Changing *a* to *wa* gives *wanakula*, with a plural subject. Changing *na* to *li* gives *alikula*, shifting the action into the past. The authors ask whether [tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/) that preserves syllables gives GPT-2 a better starting point for learning these patterns than a vocabulary built from recurring strings.

The paper introduces a Swahili tokenizer with an inventory of 219 syllables. It finds words using whitespace and then uses vowels to mark boundaries inside them. GPT-2 is adapted on Swahili sentences and generates text under different ways of dividing the input. The comparison includes byte-level byte-pair encoding, the usual GPT-2 approach, and WordPiece, the approach associated with BERT. Both are forms of [subword tokenization](https://md.research.elamur.ai/free/en/concepts/subword-tokenization/) that learn which smaller units to combine from text. The syllable tokenizer starts with a linguistic inventory.

A native Swahili speaker judged the generated text for language structure, meaning, word order and fluency. The authors report that the syllable setting produced more fluent text and followed Swahili structure and word order more closely than the other settings. They give WordPiece a favorable assessment on short sentences and describe difficulties connecting ideas across longer passages. The paper also reports a perplexity of 19.5885 for standard byte-level BPE on Swahili Wikipedia. That is a measure of how well GPT-2 predicts the text under that tokenization. The comparison with syllables rests on the judgments of generated sentences.

The result is evidence that a Swahili-specific choice of units can improve some qualities of Swahili generation in this setup. The authors interpret it as support for learning [word embeddings](https://md.research.elamur.ai/free/en/concepts/word-embeddings/), or numerical representations of words, from syllable-level information. The experiment measures the sentences the system produces. Questions about what the representations encode, whether the gain persists over longer passages, and how readily the rules transfer to other [low-resource languages](https://md.research.elamur.ai/free/en/topics/low-resource-languages/) remain open.

## Deep dive: Introducing Syllable Tokenization for Low-resource Languages: A Case Study with Swahili

A Swahili case study tests whether splitting words into syllables helps GPT-2 generate more fluent text with better structure and word order. · about 35 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### The unit a system sees inside a word

Tokenization takes a stretch of written text and turns it into a sequence of units that a computational system can use. The same word can be treated as a whole, divided into characters, or split at selected points into intermediate units. That decision gives the system a vocabulary, meaning the set of units it can represent directly. It also determines the sequence over which it learns patterns. A recurring piece that appears as a token can have a representation of its own. A recurring piece that falls across token boundaries has to be learned through the pieces that represent it.

This distinction matters when a language expresses grammatical information within words. In the Swahili examples that motivate the paper, changes near the beginning of the verb affect the subject or tense. The rest of the verb can stay recognizable as those parts vary. A segmentation that regularly places the boundaries around the changing material exposes that relationship in the input sequence. A statistical procedure may discover some of the same pieces if they recur often enough. Its objective, however, is defined in terms of the text used to learn the vocabulary, so the position of a boundary is a consequence of that objective.

The authors focus on the connection between these boundaries and [morphology](https://md.research.elamur.ai/free/en/concepts/morphology/), the way words are built from meaningful parts. They describe Swahili as agglutinative, with prefixes and suffixes playing a substantial role in word formation. A prefix comes before the rest of a form and a suffix follows it. The paper's argument depends on both the shape of a piece and its position. A subject prefix and a tense prefix contribute different information because they occupy different places in the verb. An ordered sequence of syllables can make those places visible for learning.

A syllable and a morpheme describe different properties of a word. A syllable is a unit of sound structure. A morpheme is a unit of grammatical or lexical meaning. In *anakula*, the subject and tense markers illustrate places where these kinds of boundaries can coincide. The division of *kula* into *ku* and *la* illustrates a sound-based split in the same example. That split alone supplies no analysis of the meaning of each piece. The paper's proposal uses the recurring sound structure, with its connections to word formation in Swahili, as the practical starting point for the tokenizer.

The relationship between a token and its eventual representation is also important. A tokenizer identifies a piece of text and places it at a particular point in a sequence. During training, a [language model](https://md.research.elamur.ai/free/en/concepts/language-model/) learns to associate numerical representations with the units in that sequence and to use their context for prediction. Assigning a token to a subject prefix makes that prefix available as a recurring unit. How the system uses it, and whether it can generate consistent agreement elsewhere in the sentence, depends on learning from the corpus. The authors use generated text to see whether the choice of unit makes a difference once both stages have taken place.

#### Why start with Swahili?

The paper uses *low-resource* in the computational sense of having relatively few digital or computational resources for building language technology. The authors distinguish that sense from classifications that emphasize how commonly a language is taught, how widely it is represented, or whether it is endangered. A language can have many speakers and still offer researchers a comparatively small supply of usable text or tools. For Swahili, the paper cites a speaker population of about 98 million. Its choice of Swahili combines that reach with a linguistic reason. The authors see recurring syllables as a prominent feature of Swahili word formation and as a tractable basis for a tokenizer.

The paper connects this question to [multilingual and cross-lingual NLP](https://md.research.elamur.ai/free/en/topics/multilingual-nlp/). A system trained on broad collections of text can be adapted to a language that received less attention when it was built. The way its vocabulary was assembled matters for that adaptation. A broadly useful procedure may place boundaries conveniently for some languages and produce pieces that are less informative for others. The authors frame their tokenizer as a way to bring knowledge of a particular language into a stage that frequently relies on a generic procedure.

Swahili also gives the study a concrete inventory to work with. The authors describe an alphabet based on Latin letters, with five vowels and twenty-five consonants in their account. Some consonants are represented by more than one written letter. The paper describes the basic syllable shapes as a vowel alone or a consonant with a vowel. From this account and an earlier inventory, it draws up a fixed vocabulary for the experiment. Because the method works on written text, the immediately observable signal is the placement of vowel letters and the material around them.

There are two levels to the research question. The broad motivation is to improve the suitability of established language technology for languages with fewer computational resources. The concrete question is whether syllable boundaries help GPT-2 generate Swahili text after adaptation on Swahili sentences. The experiment is built to address the second question. Its connection to the first comes from the possibility that other language-specific regularities could also be made available through the choice of token units.

#### The alternatives available to the authors

The paper situates the proposal among several existing ways to split text. Whitespace and punctuation can mark useful boundaries. Character-based procedures choose finer units. Rule-based procedures put prior information about a language or its writing into the split. The authors also name unigram tokenization among the generic approaches used in pretrained systems. Their direct comparisons focus on byte-level byte-pair encoding and WordPiece, which both build units that can sit between characters and complete words.

Byte-pair encoding, or BPE, starts from small symbols and builds larger units through merges. In the GPT-2 version described by the paper, the starting symbols are bytes and the base vocabulary has size 256. The process makes units out of recurring adjacent material and can leave frequent strings intact as single tokens. When a whole word has no entry, it can still be represented through smaller pieces. This is useful for a vocabulary intended to cover a wide range of input. The criterion guiding the merges gives the procedure no direct instruction to put boundaries after Swahili vowels.

The authors describe WordPiece as another procedure that builds up its vocabulary through merges. Its criterion is the likelihood of the training text under the vocabulary that would result from adding a pair. In this account, the difference from BPE lies in how a candidate combination is chosen. The two procedures can yield different token sequences for an identical sentence even though both learn their inventories from text. Their general aim, as the paper presents it, is to retain frequent words where practical and use reusable pieces for rarer ones.

The study also draws on earlier efforts to put syllables into learned representations. The authors cite work on syllable-based representations of Korean words, syllable-level prediction for an agglutinative language, and smaller units for [machine translation](https://md.research.elamur.ai/free/en/topics/machine-translation/). For Swahili specifically, they highlight earlier research that used a convolutional neural network to build word representations from syllable representations. As the paper describes that comparison, the syllable-based word representations were more suitable for a system intended to use Swahili syllable information than the word2vec representations considered there.

That earlier Swahili work gives the authors a reason to test syllables, as well as a source for the inventory. Their intervention is at a different point in the process. They put syllables in the token sequence supplied to GPT-2. The rule for finding the units is independent of a particular neural architecture. The resulting sequences are then used in a generation experiment, so the observable consequence is the quality of new Swahili text.

The authors place the work alongside research on African languages in areas such as machine translation and [named entity recognition](https://md.research.elamur.ai/free/en/concepts/named-entity-recognition/), the task of finding and classifying names in text. Those efforts help explain why the paper treats digital resources and language-specific choices as research concerns. The present study narrows its contribution to the boundary between written Swahili and a system that predicts text. It asks whether a known regularity of the language is valuable enough to build into that interface.

### The method, step by step

#### From a written word to an ordered sequence

Start with the verb *kula*, meaning to eat. The vowels provide clues to where its pieces end. The grouping used by the paper is *ku* followed by *la*. Applied to *anakula*, the same reasoning separates *a*, *na*, *ku* and *la*. The initial *a* forms a unit by itself. The material leading up to each subsequent vowel belongs with that vowel. The spelling supplies the signal, so the tokenizer can operate directly on word forms in the corpus.

The example shows what is preserved when the word is split. The order of the pieces stays the same, and the subject and tense markers are recoverable at particular positions in that order. In *wanakula*, the first piece changes to *wa* while *na*, *ku* and *la* remain available. In *alikula*, *li* occupies the position taken by *na* in *anakula*. The tokenizer makes the changing units and the recurring ones visible. It leaves learning about which replacements are grammatical, what they signify, and how they affect the rest of the sentence to GPT-2.

The authors begin segmentation at whitespace. In a sentence, that makes each whitespace-delimited word the immediate input to the vowel rule. Putting the operations in this order keeps the search for a syllable boundary inside a word. The paper illustrates the process with *Tofauti na somo la Historia*. Its figure identifies the syllables that originate from each of the five input words. This lets the reader follow both levels of the process, from sentence to words and from words to syllables.

The procedure is easiest to understand as a rule applied over a fixed set of allowable pieces. The authors take their stock of Swahili syllables from earlier work and use those syllables as the vocabulary. As they describe it, the tokenizer therefore has size 219 independently of which written forms happen to occur in the training material. The corpus supplies occurrences of the pieces in context. It has a different role from its role in statistical vocabulary construction, where the observed text also helps determine which pieces become entries.

From Swahili training text to evaluated generated sentences The steps in order.

#### What the vowel rule captures

The proposal uses a simple correspondence between spelling and syllable endings. Where the written form matches the pattern described in the paper, the vowel belongs to the piece that ends there. In *kula*, taking the vowel as the end of its piece retains *k* with *u* and *l* with *a*. For the initial *a* in *anakula*, the vowel itself is the complete piece. This is why vowel-only entries have a role alongside entries with consonants in the authors' explanation.

The rule does not require the system to look up a word before splitting it. The authors describe the decisions as being driven by whitespace and vowels. In ordinary cases covered by that description, repeated spellings can consequently be split in the same way wherever they occur. A given form receives the same sequence before GPT-2 sees how it is used. This is especially relevant to the paper's motivation about the position of a syllable. The token is a reusable unit and the sequence preserves the position in which the unit occurs.

The rule also has a narrower job than recognizing the grammatical parts of a word. The tokenizer has no step in which it labels a piece as the subject marker or tense marker. Those roles explain why the example is interesting to the authors, but the step they implement is the division of written forms. In the illustrative verb, the position and identity of the pieces are available for GPT-2 to learn from. The inventory itself consists of syllables and supplies no grammatical labels for their uses.

The appendix places the syllable segmentation alongside WordPiece segmentation of the same longer Swahili passage. The comparison gives a sense of how the boundary rules behave beyond the short verb. The syllable sequence follows the authors' vowel-based procedure, whereas the WordPiece sequence uses the pieces available under that tokenizer. This comparison concerns the input. When the paper later examines a generated sentence, the unit of judgment is a readable phrase or sentence, regardless of the boundaries used internally to produce it.

The phonological account and the implementation description should be read with slightly different purposes in mind. The account introduces the syllable shapes that motivate the method. The operational description says how to find boundaries in the written corpus. Where the authors give examples, the two fit closely enough to explain the idea. A full specification would also have to resolve cases such as the treatment of written material left outside the inventory and the disposition of punctuation next to a vowel. Those cases matter to anyone trying to reproduce the exact token sequences.

#### The inventory and the sentence representation

The paper writes the inventory as a set of available syllables:

```
𝕐 = {y₁, y₂, …, yₙ}
```

Here 𝕐 names the Swahili syllable inventory. The equals sign identifies it with the collection inside the braces. Each `y` with a subscript denotes a syllable entry, with the subscripts indexing the entries. The ellipsis stands for the intervening entries, and `n` is the number of entries in the inventory. In this study, `n` is 219.

The relationship between an entry and that inventory can be written as follows:

```
yᵢ ∈ 𝕐
```

The symbol `yᵢ` denotes the syllable at index `i`. The sign `∈` means “is an element of,” and 𝕐 is the inventory. This is the membership relation underlying the vocabulary. A syllable identified by the tokenizer has an entry that can be used each time the same piece occurs in a sentence.

The authors also give a real-valued dimension for the vocabulary:

```
𝕐 ∈ ℝ²¹⁹
```

In this expression, 𝕐 is the same symbol the paper used to name the syllable set. The sign `∈` again denotes membership, ℝ denotes the real numbers, and the superscript 219 specifies the dimension of the real coordinate space. The preceding formula uses 𝕐 as a set of written syllables, while this expression attaches a numerical space to it. The useful reading for the method is that the inventory supplies 219 possible coordinates. The authors give a size here and leave the exact mapping from syllable strings to numerical entries implicit.

They then give the dimensions for a sentence:

```
𝕏ᵢ ∈ ℝ^(219 × m)
```

Here `𝕏ᵢ` denotes the representation of the Swahili sentence indexed by `i`. The sign `∈` places that representation in the indicated space, and ℝ means that the matrix entries are real-valued. The dimensions in parentheses are 219 by `m`, with `×` separating the vocabulary dimension and the sequence dimension. The value `m` is the number of syllable tokens in that sentence. The `i` here indexes sentences, whereas the `i` in `yᵢ` indexes inventory entries. The paper uses the letters locally for those two roles.

An intuitive way to read the matrix is to imagine a column for each place in the syllable sequence and a row for each possible syllable. The same syllable can recur across columns because a sentence may use a piece repeatedly. A longer syllable sequence has more columns, while the number of possible syllables stays fixed. This interpretation explains the shape without requiring a choice about the numerical values in the matrix. The paper gives the dimensions and does not specify the complete construction of its entries.

The vocabulary dimension also differs from the width of the learned representations used within GPT-2. The authors report 768 for the size of both embeddings and hidden states in their implementation. An embedding is the numerical vector used to represent a token at input. A hidden state is the internal vector for a position after GPT-2 has begun processing the sequence and its context. The inventory dimension answers how many syllable choices the tokenizer defines. The embedding and hidden-state dimensions answer how much numerical space a representation at a position occupies. Those are separate quantities even though both arise in the passage from written text to prediction.

The authors associate a small inventory with computational efficiency. The shapes also show a second quantity that matters to the interpretation of that claim. Splitting words into syllables produces a sequence with length `m`, and `m` depends on the sentence and on its segmentation. A vocabulary count describes the range of possible units. It gives no direct measurement of how many prediction positions a particular passage will contain. The study presents the vocabulary dimension as a property of the design and evaluates generation quality in its experiments.

#### Adapting GPT-2 to predict the new units

The authors use the Hugging Face implementation of GPT-2. Their syllable setup replaces the standard GPT-2 tokenizer with the Swahili tokenizer and then applies [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/) on Swahili sentences. Fine-tuning adapts a pretrained system through additional training. The GPT-2 arrangement described by the paper uses a [transformer](https://md.research.elamur.ai/free/en/concepts/transformer/) to predict what follows a preceding stretch of text. In the syllable setting, the preceding text and the unit being predicted are represented through the new segmentation.

The separation between segmentation and prediction matters here. The same vowel rule is used when preparing the syllable input. It makes no prediction about which syllable should come next in a given sentence. GPT-2 learns how token sequences continue by training on many such sequences. During generation, the output is ultimately read as Swahili text, so the experimental question is whether the learned continuations yield plausible sentences when their pieces are read together.

Swahili Wikipedia articles are the stated training material for the generation task. The authors also use the Helsinki Corpus of Swahili 2.0, or HCS 2.0, for additional analysis. They report 303k sentences in their Swahili data and describe a 90/10 division into training and testing data. The implementation description separately refers to Swahili validation data for choosing a checkpoint. A checkpoint is a saved state of the system partway through training. The validation role is clear, although the paper does not give a separate size for that set or explain exactly how it relates to the reported division.

Training uses the Adam optimizer, which updates learned parameters from the training objective. The stated learning rate is `5e-4`. That rate governs the size of the updates, and the paper applies a schedule that warms up linearly for `1e+2` steps and subsequently decays linearly. Warmup lets the schedule increase the rate over the initial updates. Decay reduces it as training progresses. These settings concern the adaptation of GPT-2 on the new data. The syllable boundaries are already determined before an update uses a sequence.

The authors set the batch size to 2 because of memory constraints. A batch is the amount of data processed together for a training update. They train for 5 epochs, with an epoch being a pass through the training set. They evaluate on the Swahili validation set every 100 steps to choose the best checkpoint and report a random seed of 42 for reproducibility. The described setup has 12 hidden layers, with the embedding and hidden-state width of 768. The standard GPT-2 vocabulary size discussed in the paper is 50,257.

For the comparison, the authors use the byte-level BPE approach associated with the standard GPT-2 tokenizer and the WordPiece approach supplied by the BERT tokenizer. The text generator remains GPT-2 in this account. BERT supplies the WordPiece tokenizer. The comparison therefore asks how changing the input and output units used for generation affects the Swahili that GPT-2 produces. It is an end-to-end test of a tokenization configuration, including the adaptation needed to use it.

The paper names the software implementation and gives the major training settings. Some details are especially consequential when assigning a new vocabulary. For instance, a syllable token needs a numerical entry and a way to be predicted at generation time. The authors say they replace the tokenizer and fine-tune GPT-2. They leave the details of initializing or reusing entries when the vocabulary changes implicit. That makes the broad experiment understandable while leaving open some engineering choices that can affect an independent replication.

### Experiments and results

#### The corpora and the comparison

The primary generation experiment uses written Swahili. Swahili Wikipedia supplies the articles identified for training and also supplies the text on which the paper reports its perplexity figure. The authors add HCS 2.0 to permit a more extensive analysis. They state that the Swahili data contains 303k sentences and that their data division is 90/10 for training and testing. These are figures for the data described in the experiment. The paper does not give an exact sentence total for each corpus in its narrative or identify the Wikipedia subset used for the reported perplexity.

Each comparison setting turns the written sentences into token sequences in a different way. The standard GPT-2 setup uses byte-level BPE. It can represent text through small byte units together with longer pieces obtained by merging. The WordPiece setting uses the BERT tokenizer. The Swahili-specific setting uses the inventory and vowel boundaries defined by the authors. These are the units from which the generator learns and with which it represents continuations. After generation, the native speaker reads Swahili and evaluates properties of the output at the sentence level.

The paper describes the BPE condition in terms of the granularity and usual tokenization of GPT-2 and describes adaptation on Swahili. One result is explicitly identified with GPT2TokenizerFast, the standard byte-level BPE tokenizer used for the Wikipedia perplexity calculation. The tokenizer names identify the main baseline choices. Details about vocabulary fitting, the retained pretrained weights, and the preparation of the output for rating are less explicit for each comparison condition. For the vocabulary chart, the standard size can be attributed to the standard tokenizer with confidence. It is a reference size for the representation, independent of the human ratings.

Vocabulary size for the Swahili study's syllable inventory and standard GPT-2 reference The fixed Swahili syllable inventory has fewer entries than the standard byte-level BPE vocabulary.

**The numbers**

| System or setting | vocabulary entries |
| --- | --- |
| Standard GPT-2 byte-level BPE | 50,257 |
| Swahili syllable tokenizer (this paper) | 219 |

The two counts show how the choices differ in inventory size. The 219 entries are the Swahili syllables that define the proposed tokenizer. The 50,257 entries are the vocabulary of the standard GPT-2 reference. A smaller count means fewer distinct entries are needed for that inventory. How many tokens are needed to represent a passage, what computational resources generation consumes, and what the generated text sounds like are separate empirical questions. The paper addresses the last of these through human judgment.

The chart includes the standard comparison because the two counts answer the same question about vocabulary cardinality. The paper gives no WordPiece vocabulary count for this Swahili experiment. The size of that inventory would be needed to add a comparable row. Likewise, the comparative rating findings are stated in prose and in descriptions of the rating table. The paper gives the direction of several comparisons without listing the score cells in its narrative. Those directions establish the reported ordering for particular qualities, with the magnitudes left unspecified here.

#### What perplexity measures in this setup

With GPT2TokenizerFast, the authors report perplexity of 19.5885 on Swahili Wikipedia articles. Perplexity summarizes the uncertainty of a system's predictions on observed text. A system that assigns greater probability to the continuation that actually occurs has lower perplexity under the same measurement conditions. This figure comes from predicting Wikipedia text with the standard byte-level BPE segmentation. The paper does not identify the article subset or split associated with this figure beyond naming Swahili Wikipedia.

Perplexity is tied to the units being predicted. A piece that occupies a single position for one tokenizer can occupy multiple positions for another. This changes the meaning of an average taken over token predictions. Even a set of scores for all the tokenizers would need a common basis if the aim were to compare predictability across different units. In the reported experiment, 19.5885 establishes the numerical result for the standard BPE configuration, and the comparisons of output quality come from the evaluation of generated text.

The two evaluations also answer different questions about use. A probability measure scores how strongly GPT-2 predicts an observed passage. A reader judging a new sentence can consider whether its parts are in a natural order or whether the sentence conveys a clear thought. These criteria can be examined even when a generation has no predetermined reference sentence for it to match. The human procedure is therefore the part of the study that speaks most directly to the authors' question about the readability and linguistic quality of new Swahili sentences.

#### What the Swahili reader judged

A native Swahili speaker evaluates language structure, meaning, word order and fluency. The paper uses a Likert scale from 1 to 5 for each dimension, so the evaluator places an example at one of a set of ordered rating levels. Language structure concerns how the grammatical pieces fit together. Meaning concerns what the sentence conveys. Word order concerns how those pieces are arranged. Fluency concerns how smoothly and naturally the result reads. The paper names the dimensions and the scale, with the boundaries between specific ratings left to the evaluation procedure.

These dimensions can overlap in a sentence. If an agreement form is wrong, the reader may recognize a structural error and also find the sentence less fluent. A sentence can preserve grammatical order and still be difficult to connect to the preceding sentence. Conversely, the reader may recognize the intended point of a sentence with an awkwardly chosen form. Separate dimensions allow the experiment to register different aspects of the reader's experience, even when the same error can affect more than one judgment.

The appendix describes evaluations of 100 examples of Swahili sentences. The captions identify the examples as sentences produced after syllable tokenization. For the syllable examples described there, the authors say fluency received the strongest assessment and language structure the weakest. This is a comparison among the evaluated dimensions for the examples in the appendix. It is compatible with the separate claim that the syllable tokenizer did better than the baselines on language structure. One comparison concerns relative strengths within a setting. The other concerns performance on a dimension across settings.

The count of 100 describes the examples associated with the appendix evaluation. The paper's description does not establish that each baseline was rated on an equally sized or matched set of outputs. That distinction matters because the length, topic or difficulty of the prompts could change what the evaluator encounters. The strongest use of the reported count is to understand the scale of the appendix's syllable evaluation. The main comparison across the settings is conveyed by the authors' account of their average ratings and observations.

#### What improved and what remained difficult

The authors favor the syllable setting in their overall assessment of generation. They say that outputs were more fluent and that their structure and word order fitted Swahili better than outputs made with BPE or WordPiece. They also describe an improvement in the quality of Swahili text after substituting their tokenizer for standard byte-level BPE. The strongest comparative claims in the results concern fluency, structure and order. Meaning is among the dimensions rated, but the paper's narrative gives no numerical difference for it or clear basis for ranking every setting by that dimension.

The caption for the comparative rating table describes WordPiece as having a point higher than BPE. The metric and manner of aggregation for that statement are unspecified in the caption. It supports the authors' general characterization of WordPiece as a stronger baseline in parts of the evaluation. It does not resolve which rating dimension the difference belongs to, so it cannot be used as a WordPiece score or assigned to a particular dimension. More specific strengths for WordPiece come from the qualitative observations about certain kinds of output.

The short-sentence observation limits how broadly to read the overall ranking. For sentences of less than 12 words, the authors say all the tokenizers did well and they single out WordPiece for more natural text. That is a comparison on a particular group of examples using an impression of naturalness. The overall comparison is a judgment about the broader collection and several dimensions. A configuration can be favored on short items while a different one is favored across the wider evaluation. The paper gives no numerical breakdown by length that would tell a reader how much those groups contributed to the broader result.

Longer outputs exposed a different problem. When the generator produced successive sentences, the authors frequently found that the ideas failed to connect. A sentence can have a plausible internal shape yet contribute little to a developing account. A reader who can interpret its words may still be unsure what it has to do with what came before. This is a concern about coherence across sentences. It provides a reason to keep claims about fluency and word order at the scope at which they were observed.

The authors also compare the baseline outputs on particles, the ordering of ideas, and the use of singular and plural noun forms. They find that BPE sometimes has difficulty with particles, while WordPiece typically handles them better in the outputs they examined. In their comparison of chronological ordering, they prefer WordPiece to BPE. Both baselines occasionally have difficulties choosing singular and plural forms. The paper also observes that both can produce stories across several domains. Topic breadth and grammatical control are thus visible as different qualities of the same outputs. Generating text about a range of subjects gives little information about whether a given sentence gets agreement right.

The appendix makes some of those judgments concrete. In its BPE example, the authors find that the sentence has suitable structure and preserves singular number. The WordPiece example includes *vipaji wengi*, for which they give *vipaji vingi* as the natural Swahili form. The choice in question can be seen directly in the differing form after *vipaji*. In the syllable example, the authors point to appropriate organization of the sentence, consistent singular number and correct pronoun use. The example gives an instance of the sort of output they value in the overall ratings.

An individual output is evidence that the corresponding behavior occurred. BPE can produce a well-structured sentence, and WordPiece can produce an agreement error even though the authors often prefer its handling of particles to BPE's. The syllable example gives the reader a sense of what went well for the proposed setting. The ratings are the part of the evaluation intended to summarize recurring behavior. The examples help interpret those judgments by showing what a reader can hear in the resulting sentences.

### What the ablations show

The paper has no formal ablation that removes one component at a time from the syllable tokenizer. Its nearest controlled comparison changes the tokenizer used with GPT-2 and looks at the resulting Swahili text. It also offers a side-by-side segmentation example, observations for short and longer outputs, and an appendix analysis of particular sentences. Together these show how the input changes and where those changes coincide with differences a reader can recognize.

#### What the tokenizer comparison isolates

The intervention is well defined at the level of the design question. The authors choose a common text-generation task and compare a byte-level BPE representation, a WordPiece representation and a Swahili syllable representation. The whole sequence of pieces changes when the tokenizer changes. The proposed setting also changes the vocabulary to a fixed inventory and uses a linguistic rule to select boundaries. These changes move together, so the experiment compares usable configurations. Their individual contributions remain unresolved.

This matters when asking why the syllable setting did better in the authors' assessment. A syllable-based sequence can expose recurring prefixes, as in the subject and tense markers of *anakula*. A compact vocabulary can also alter how frequently particular units are encountered during training. A different segmentation changes the number and placement of prediction positions. The experiment supplies reasons to consider these possibilities, but it does not vary boundary placement while independently holding vocabulary size, sequence length and the treatment of the embedding entries fixed. The results therefore support trying the syllable configuration as a whole.

The comparison between the statistical tokenizers provides another perspective. WordPiece has qualitative strengths over BPE in the reported outputs even though both derive units from text. The contrast shows that the choice among generic segmentation procedures can also affect the generated Swahili. It gives practical importance to the baseline choice. A learner consuming a different statistical vocabulary may receive different evidence about the same written patterns. The paper does not establish which particular WordPiece units produced the favorable judgments.

The strongest controlled conclusion is at the level of the experimental change. The tokenizer is a consequential part of the different GPT-2 configurations in this Swahili study. The native speaker observes changes in the language produced after adaptation. Smaller experiments targeting a specific property of the tokenizer would be necessary to allocate the gain among the several things that changed.

#### What the segmentation and error analyses add

The segmentation figures address an earlier stage of the proposed explanation. The Swahili tokenizer is meant to identify pieces based on the placement of vowels. Its treatment of *Tofauti na somo la Historia* illustrates this behavior, and the longer example places the result alongside WordPiece's segmentation of the same passage. Since the input text is shared in that comparison, the different groupings reflect the different tokenization procedures in use. The reader can see the consequence before GPT-2 has produced any output.

A figure of a single passage demonstrates the behavior of the rule on that passage. Measuring regular agreement with Swahili syllabification would require a set of reference boundaries and comparisons across many forms. Similarly, confirming that the units align with grammatical pieces would require evidence about those pieces. The appendix's role is narrower. It shows what the authors' segmentation is doing and makes it plausible that the adaptation receives sequences organized differently from the WordPiece baseline.

The generation examples then show where a linguistically meaningful judgment can be made after training. In the BPE example, the system keeps singular number through the sentence. In the WordPiece example, the form after *vipaji* is the disputed item. In the syllable example, the authors approve both the singular forms and the pronoun use. These observations show that usable grammatical evidence can emerge under different segmentations and that a tokenizer capable of producing natural output can still make a local mistake. They give concrete content to the broader ratings of structure and fluency.

Because the examples are individual outputs, they leave the mechanism open. The WordPiece error is visible in the text. The paper does not tie it to an identified change in a particular token boundary upstream. The syllable example establishes that the setting can handle the pronoun and sentence structure in that instance. It does not show how the same prompt would have continued under an otherwise identical sequence of generation decisions with a different tokenizer. The causal evidence comes from the broader tokenizer comparison, while the example analysis illustrates the kinds of successes and failures that motivate the comparison.

#### What sentence length reveals

The observations by length help separate two scales of performance. A short sentence has fewer relationships for the reader to track. The authors report good performance for all the settings on examples with less than 12 words and prefer the naturalness of WordPiece outputs there. This suggests that a statistical tokenizer can support convincing local generation in the conditions represented by those examples. The paper does not report the number of outputs in the length group or a rating distribution that would make the pattern a formal interaction between tokenizer and length.

Between successive sentences, the generator has to maintain a relationship among ideas. The paper's observation of unrelated sentences shows where acceptable local wording ceases to ensure a useful longer passage. Syllables offer a way to represent internal word structure. The error at the longer scale involves whether the surrounding sentences remain about connected events or ideas. The authors' results give evidence about some aspects of the first problem and examples of continued difficulty with the second.

These are complementary readings of the evaluation. The examples of short texts show the conditions under which the baselines can be strong. The longer outputs show a place where sentence-level ratings are insufficient to characterize the writing. Neither observation requires treating the overall advantage reported for the syllable setting as uniform. The paper's findings make the most sense when the property being judged and the part of the text being judged stay explicit.

### Limitations

#### Limits the authors state

The authors describe the work as an initial investigation of syllable tokenization in Swahili and leave experimentation on other languages to future work. They suggest that languages with prominent syllable structure are plausible candidates, including languages in Niger-Congo and Indic groups. The transfer would call for attention to the receiving language. Its syllable inventory, vocabulary, morphology and rules can differ from those assumed for Swahili. The paper's basic proposal is a way to use such knowledge in tokenization. The specific inventory and vowel procedure are designed for this case.

The paper illustrates the differences through Gikuyu, Kinyarwanda, Lingala, Haya and Luganda. In the authors' account, Swahili differs in the inventories of consonants and vowels, and in aspects of stress and syllabification. The presence of related or comparable patterns in the languages is therefore a reason to investigate and specify a tokenizer for each case. The Swahili experiment supplies no direct outcome for the other languages.

The authors also report practical limits within Swahili generation. Memory constraints led them to use a batch size of 2. In the output analysis, number agreement sometimes fails in the baseline settings and longer passages can contain sentences with weak connections to one another. The reported text generation is strongest as evidence about individual sentences and their linguistic form. Longer writing calls for evidence at the level of the whole passage.

#### Limits visible in the description of the tokenizer

The paper's introduction allows a syllable to be a vowel alone, which fits the initial *a* in *anakula*. Its appendix characterizes the post-split pieces as having at least one consonant as well as a vowel. A literal reading of that appendix sentence leaves the vowel-only example unexplained. The examples and the introductory account are enough to establish that a lone vowel has a role in the proposed vocabulary. A complete replication would still benefit from a single operational rule with clear cases for every type of piece the implementation emits.

Other edge cases become relevant once the tokenizer is used on running text. The sources are written articles and a corpus, where punctuation can attach to a word. The paper describes the whitespace and vowel stages and gives illustrations of their outputs. How a symbol outside the inventory is handled, what happens to trailing material in the written word, and how spaces are preserved when transforming predicted pieces back into text are less clear from its account. Those choices can affect the text that a native speaker eventually reads.

The paper's linguistic argument also reaches further than the examples used to motivate it. In the illustrative verb, a syllable boundary can coincide with the boundary of a meaningful prefix. That supports the possibility that similar pieces are exposed repeatedly in Swahili training data. Learning the same kind of alignment across a broad range of lexical forms is a separate question. The paper reports no segmentation score against a set of human-labeled syllables or morphemes. Its demonstrations are examples of how its rule operates instead of a corpus-wide measure of linguistic accuracy.

#### Limits visible in the training and evaluation setup

The change of vocabulary makes some engineering details important to interpretation. Fine-tuning a system accustomed to one vocabulary on a different inventory raises the question of how token entries and the prediction layer were configured. The paper gives the architecture and high-level training schedule. It does not specify the initialization and reuse of token representations in sufficient detail to identify every consequence of replacing the tokenizer. This matters because part of the eventual performance may depend on adaptation choices associated with the replacement.

Data accounting is another case where the paper establishes the broad setup more clearly than the details. The total of 303k sentences and the 90/10 division describe the Swahili data. The paper names Wikipedia as the source for training in the generation task and includes HCS 2.0 for wider analysis. A reader cannot reconstruct the exact corpus composition of every split from those statements. The checkpoint selection description adds a validation role, whose membership and relationship to the test data are unspecified. The data sources and the general allocation are therefore clear, while a replication still needs the exact partition.

A similar issue applies to generation. The paper gives examples and reports that the authors compared the tokenizers by generating new Swahili sentences. It does not fully specify which prompts and decoding choices were used in each setting or the distribution of output lengths. Decoding is the process that turns GPT-2's probabilities into successive choices of tokens. A choice such as selecting only highly probable continuations or allowing less probable ones can change how the text reads. To tie a rating difference to tokenization alone, a reader would need to know how those choices were controlled.

The native speaker's judgment is direct evidence of how the examples read to a Swahili speaker. A single evaluator gives no estimate of agreement among readers. The paper identifies the dimensions and the ordered rating scale, with limited detail on what distinguishes neighboring scores. It also does not describe a blinded evaluation protocol or provide uncertainty estimates over ratings or training runs. The direction reported for structure, word order and fluency remains the main result. The magnitude and stability of the advantage are less certain from the evidence the article reports.

The appendix's 100 examples indicate the scope of the syllable output evaluation discussed there. Inferences about all the settings would need comparable counts and a way to tell whether evaluations were matched in prompt, length and selection. The observations on short sentences show why this matters. If naturalness differs with length and the settings produce different kinds of continuations, the composition of the evaluated outputs can affect average ratings. The paper gives qualitative evidence for that possibility along with its broader ordering.

The training itself also sets the scope of the multilingual claim. The introduction discusses adaptation and the possibility of applying pretrained systems to languages they had not been trained to handle. The generation experiment described here fine-tunes GPT-2 on Swahili sentences. Its result is therefore about generation after target-language training. The setup leaves open what would happen if a Swahili tokenizer were substituted without such training, and it does not determine how much Swahili information was already available before adaptation.

#### Limits of claims about efficiency and representations

The authors argue that 219 available syllables make for a small vocabulary, and that smaller inventories can be attractive for computation. Vocabulary size and sequence length play different roles. The study does not report run time, memory measurements across the tokenizer settings, or a quantitative comparison of the number of tokens used to encode the same passages. The vocabulary result is exact for the stated inventory and reference. Evidence about total computational cost would require the other quantities as well.

There is a corresponding distinction in the claim about embeddings. Generating text that reads more naturally is evidence about the behavior of the adapted system as a whole. It is consistent with the view that syllable embeddings give GPT-2 better access to meaningful patterns. The paper does not directly inspect the embeddings to see how subject, tense, agreement or another property is encoded. The relationship between a particular representational feature and a particular output improvement remains an explanation proposed for the observed behavior.

The method also targets the written form of one language and is tested on one downstream task, Swahili generation with GPT-2. Its evidence is strongest where these conditions and the observed dimensions coincide. Other results would be needed to establish advantages in tasks that judge different things, such as identifying entities or translating full passages. The result on local sentence quality is sufficiently specific to follow from the ratings while leaving those broader questions open.

### What came after

Later citations place the Swahili study alongside two different ways of adapting language technology to the structure of particular languages. One concerns the units used in Danish training. The other concerns the writing systems that African language technology needs to represent. Their titles establish the focus of each work. The particulars of how they use the Swahili paper, including whether they adopt a technique or cite it as an example, remain unspecified.

The work on Danish brings the question of splitting words into a setting that emphasizes morphemes. Its title identifies training on Danish and describes the approach in terms of morphemes and sub-words. This is a related design question because a morpheme gives a tokenizer candidate boundaries motivated by the organization of words. In Swahili, the authors choose syllables and show an example in which some of the same boundaries also mark grammatical material. In the Danish work, the emphasis named in the title is the word's meaningful structure. The two studies can therefore be read in relation to a common question about how much linguistic information to put into the units used for training. The Danish citation does not on its own establish reuse of the 219-entry inventory, the vowel rule, or the Swahili generation evaluation. [From Smør-re-brød to Subwords](https://md.research.elamur.ai/free/en/papers/kildeberg-2025-sm-o-r-re-br/)

The survey on African languages takes up written representation at the level of indigenous writing systems. The Swahili paper begins with text in a Latin-based alphabet and uses its written vowels to decide how to split words. The survey's stated focus puts the way a language is written in the foreground. The connection is that the tokenizer encounters a written representation of a language, and linguistic choices made at that stage shape what a computational system can receive. The citation places the Swahili case within this wider area of inclusive [natural language processing](https://md.research.elamur.ai/free/en/concepts/natural-language-processing/), the computational treatment of human language. The survey's stated scope supplies no basis for attributing a new syllable tokenizer, a replication, or a measured generation gain to it. [Reclaiming African Voices](https://md.research.elamur.ai/free/en/papers/traore-2026-reclaiming-african-voices-surveying-indigenous/)

These later works broaden the setting in which the original question can be asked. In Danish, the related choice is whether to give meaningful parts of words a direct role in training units. In the writing-systems survey, it is how language technology accounts for the written forms available to the communities it aims to serve. The Swahili paper contributes a concrete case in which one such choice was implemented and judged through generated text. Its finding remains specific to that implementation, the Swahili data and the conditions of the GPT-2 experiment.

## Cite

Cite as Jesse Atuhurra, Hiroyuki Shindo, Hidetaka Kamigaito and Taro Watanabe. 2024. Introducing Syllable Tokenization for Low-resource Languages: A Case Study with Swahili. arXiv (Cornell University).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.48550/arxiv.2406.15358](https://doi.org/10.48550/arxiv.2406.15358) · [arXiv 2406.15358](https://arxiv.org/abs/2406.15358)

```bibtex
@misc{atuhurra2024introducing,
  title = {{Introducing Syllable Tokenization for Low-resource Languages: A Case Study with Swahili}},
  author = {Jesse Atuhurra, Hiroyuki Shindo, Hidetaka Kamigaito and Taro Watanabe},
  year = {2024},
  doi = {10.48550/arxiv.2406.15358},
  eprint = {2406.15358},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2406.15358}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
