Elamur Research

Sinhala Transliteration: A Comparative Analysis Between Rule-based and Seq2Seq Approaches

Paper · 2025 · Yomal De Mel, Kasun Wickramasinghe, Nisansa de Silva et al.

Summary

A Sinhala message can be typed in Latin letters even when everyone in the conversation understands Sinhala. This way of writing, called Singlish, is convenient for informal communication. Converting it back to Sinhala script is difficult because writers may shorten words, choose different vowels for the same word, or insert words from English. De Mel and colleagues compare a converter that follows written spelling rules with one trained to recover the Sinhala sentence from examples.

The first converter works through a word from left to right, looking up letters and groups of letters in a table. It tries the longer groups first so that a spelling such as aa can be interpreted as a unit. The second uses M2M100, a multilingual translation system with Sinhala support. The authors adapt it on sentences paired across the scripts and add Romanized variants with changes such as omitted vowels. The adapted system receives the entire source sentence, so surrounding words can inform its choice when a shortened spelling leaves room for several readings.

On Test Set 01, which covers general Romanized typing, word error rate is 0.1983 for adapted M2M100 and 0.6689 for the rules. Test Set 02 emphasizes ad hoc spellings. There the corresponding word error rates are 0.2413 and 0.6809. The adapted system also has the lower character error rate and the higher BLEU score on each collection. Its scores deteriorate on the ad hoc material, even though it retains the advantage. In the paper’s sample passage, it produces fuller Sinhala spellings for several words typed with missing vowels.

Speed favors the table. The rules produce >200,000 output tokens per second in the reported comparison. M2M100 produces about 3 on a CPU at fp32 precision and about 65 on a GPU at fp16 precision. The complete sentence-based system gives more faithful conversions on the shared-task data, at a cost in computation. Its training examples and access to sentence context offer plausible explanations for the quality gain. The experiments measure those ingredients together.

Deep dive: Sinhala Transliteration: A Comparative Analysis Between Rule-based and Seq2Seq Approaches

A study of Sinhala reverse transliteration compares how spelling rules and M2M100 recover Sinhala script from informal Latin typing. · about 34 minutes to read

The problem and its context

Writing Sinhala with a different set of letters

The paper places Sinhala’s speaker population at over 16 million in Sri Lanka. Sinhala has a script of its own, yet in informal digital communication people frequently enter Sinhala words with the Latin alphabet. The authors associate the practice with convenience and with differences in familiarity with tools for typing the native script. Singlish, in their use of the term, is a way of writing Sinhala. A reader has to interpret the letters as a rendering of Sinhala words.

A reverse transliterator starts from that rendering and produces the corresponding text in Sinhala script. The word reverse indicates the direction. Romanization takes native-script text into Latin writing, while the converter studied here receives the Romanized version. The desired output preserves the message, so success involves recovering the words and spellings that fit what was typed. This gives the study a different target from translating English prose into Sinhala, even though it borrows the machinery of machine translation.

The scripts organize some of the same information differently. The authors describe Sinhala writing as an abugida and Latin writing as alphabetic. In the correspondences used by the paper, a Latin consonant and a following vowel can together represent a Sinhala consonant form with its vowel information. A group of letters can also represent a vowel in its own right. A typing convention can make these correspondences explicit. Informal writers can omit a letter, choose a different approximation, or use the same vowel letter for distinctions that the destination script makes visible.

That last case makes the conversion ambiguous even when every input letter is familiar. The paper uses mama to illustrate it. Among the readings the authors list are මම, the first-person subject pronoun, මාම, a form referring specifically to oneself, and මාමා, a word for an uncle. The Latin string leaves the relevant vowel distinctions unresolved. Where that string appears in a sentence could help a reader decide which reading is plausible. A fixed correspondence applied to the letters of mama will behave the same way at each occurrence.

Variation also arises when a writer has a particular word in mind and can type it in several ways. In the paper’s data examples, an unchanged Sinhala question is paired with Latin spellings that differ in vowel choice or leave vowels out. These are different problems for a converter. When several spellings stand for the same word, it needs to recognize their equivalence. When one spelling stands for several words, it needs evidence that favors the intended reading. A larger set of correspondences can help with the first problem while leaving the second unresolved.

The authors also draw attention to code mixing and code switching, where material from different languages appears within or across parts of a message. With Sinhala already in Latin letters, a word inserted from English can share the appearance of the surrounding text. Script alone then gives little indication of whether a span is Romanized Sinhala. The paper uses this as a reason to consider a converter that can be trained on sentences containing the relevant patterns. Handling those spans depends partly on having examples that show how they should appear in the output.

The resource problem is specific to the conversion as well as to the language. The paper situates Sinhala among low-resource languages and describes research on Singlish transliteration as limited. An existing collection of Sinhala text supplies examples of native writing. For this task, the system needs a second piece of information about each example, namely how someone might render it in Latin letters. Coverage of the native language and coverage of informal writing habits are therefore separate considerations.

What handwritten rules can represent

The related-work discussion begins with systems whose correspondences are specified by people. A table matching source strings to destination forms is a direct instance of that approach. The paper also describes a broader family that can use lexicons and rules informed by word structure, syntax, and meaning. Such rules can make the output conditional on linguistic information. Writing and maintaining them takes expertise, especially when a system is meant to cover whole sentences and a wide variety of inputs.

The prior work by Tennage and colleagues supplied correspondences that the new baseline could reuse. In De Mel and colleagues’ account, the earlier method mapped words from different scripts into a shared phonetic representation as part of translation. The representation helped with cases such as loanwords that have similar forms across languages, and the authors of that earlier work reported benefits for the treatment of phrases. A mapping with that history offers useful correspondences for the new task. Its behavior on informal Singlish still depends on how closely the letters people type follow those correspondences.

The paper describes an earlier Singlish converter by Liwera and Ranathunga that combined rules with evidence from social media comments. Its rules handled consonant and vowel correspondences. A statistical component used trigrams, or patterns of successive units, to address variation and ambiguity that the rules alone left unresolved. De Mel and colleagues report that the combination improved conversion in that work. It is an important antecedent because it already treated informal Romanization as a problem where a handwritten map and evidence from actual usage could play different roles.

The baseline in the present comparison represents the simpler end of that range. A character table allows the authors to specify exactly how overlapping groups of letters are handled and to see which mappings account for the resulting output. The prior hybrid work also shows why the scope of this baseline matters. Adding a statistical component or grammatical conditions would give a rule-based converter access to evidence beyond the current letter sequence. That broader design is part of the paper’s account of the field, while its own baseline is built around local lookup.

Learning to generate a sequence

The authors trace learned transliteration back through work that treated the task as a kind of translation at character scale. In their account, Deselaers and colleagues proposed a method based on deep belief networks. Later studies used recurrent networks, which pass information along a sequence as they process it. This strand of work shifted the source of the correspondences. Examples of inputs and outputs supplied evidence about the conversion that could otherwise have required a person to write individual rules.

The paper also describes a Transformer approach to Azerbaijani transliteration and a study by Moran and Lignos comparing architectures on named entities. In the latter study, as De Mel and colleagues recount it, the Transformer encoder–decoder performed best among the tested architectures. Named entities are a more specific target than the informal sentences in the Sinhala study. The result provides a reason to try the architecture without establishing how it will behave on Singlish or how much it can recover from a spelling that drops vowels.

A sequence-to-sequence approach takes an ordered input and generates an ordered output. In the encoder–decoder design, the encoder produces a representation of the source and the decoder builds the destination sequence using that representation. With Transformer and attention, positions can draw on information at other positions. The authors connect this capability to the relationships within a sentence and between the two sequences. The design comes from Attention Is All You Need.

For Sinhala, the authors could start from work in multilingual natural language processing that already included the language. They discuss several existing systems for sequence generation, including M2M100, MarianNMT, and NLLB. Their related-work account identifies Sinhala translation and other Sinhala text-generation tasks as places where pretrained systems had already been used. Native-script generation was thus a capability the authors could take as a starting point while teaching the converter a new relationship between its source and destination.

The character-scale analogy and the sentence-scale architecture address different aspects of the task. The analogy explains why a translation framework is usable even though the conversion preserves the underlying language. The architecture determines how much of the source the converter can consult. A vowel distinction appears in the written form of a particular word, but clues about that distinction can appear elsewhere in the sentence. This is the opening that the paper’s learned approach tries to exploit.

The method, step by step

Building the table and applying it to a word

The table-driven approach separates linguistic decisions from the procedure that uses them. The table records which Latin sequences produce which Sinhala forms. The procedure decides where to look and which entry to apply when several entries could begin at the same place. The authors extend the mappings associated with Tennage and colleagues, adding correspondences for groups of two and three characters. Their examples cover letters, forms with vowel signs, and other marks.

The entries are sensitive to distinctions visible in the spelling. The lower-case a and upper-case A, for example, are separate keys with the outputs අ and ඇ. The table also gives aa its own value, ආ. This makes aa interpretable as a unit with a value different from what would result if each a were converted separately. The mechanism can express such distinctions when the Latin input preserves them.

At the beginning of a word, the converter has an empty output and a position from which to read. It first checks the longest span supported by the table. If no key matches, it tries the next shorter span. The candidate lengths are 3, 2, and 1, in that order. Once the converter finds a match, it emits the mapped form and resumes at the first character after the matched group. The procedure repeats until it reaches the end of the input word.

Consider kaa. The sample table gives කා for the whole group. It also gives ක for ka. Trying kaa first preserves the correspondence with කා, including the vowel encoded by the longer spelling. Trying ka first would consume its letters and leave an a to be processed separately. The priority rule prevents a shorter valid key from preempting a longer one at the same position. The conversion can therefore use entries of varying lengths in a single scan.

This strategy is called greedy because the decision made at each position is final. The procedure takes the first successful match in its order of preference, then continues with the remaining characters. It has no scoring stage for alternative divisions of the word. A longer key can win even in a case where the shorter key would have opened the way to a more fitting conversion of the rest. The priority belongs to the procedure. Whether the winning sequence reflects the intended word depends on the table and the input.

The operative steps can be expressed in the same terms as the paper’s pseudocode. The initial position is set before any lookup.

i ← 0

Here i is the index of the next source character to inspect. The assignment arrow ← stores the value on its right in the variable on its left. The value 0 denotes the beginning of the input under this indexing convention. The output string has separately been initialized to empty.

At the current position, the procedure extracts a candidate from the word.

candidate ← word[i : i + span]

candidate is the Latin string under consideration and word is the input. The brackets denote a slice. The colon separates its start, i, from its end boundary, i + span. The addition sign + moves that boundary forward by the candidate length span. The arrow ← assigns the selected string to candidate. Looking at a slice leaves the reading position in place until the converter decides whether to use it.

If a candidate occurs among the table keys, the converter extends the output.

output ← output + table[candidate]

The output on the right is the string assembled so far. The brackets in table[candidate] retrieve the Sinhala form associated with that key from table, the set of correspondences. In this expression + joins strings in the order shown. The arrow ← stores the longer string as the updated output. The table value can include a vowel sign or other writing detail along with a base character.

The reading position then advances by the matched span.

i ← i + span

On the right, i is the position where the successful match began, and span is the candidate length used for that match. The + advances the position by that length. The assignment arrow ← makes the new value of i the starting point for the following lookup. Thus the span that supplied a Sinhala form is consumed together.

The pseudocode also has a fallback for positions where no lookup succeeds. At such a position it appends the current source character itself to the output and moves past that character. This allows an unmatched character to survive while the rest of the word is processed. The surrounding method description calls for checking that the word consists of Latin characters. The scan specifies the fallback once it has a word in hand, while the full rules for preparing punctuation and mixed-script text are less explicit.

Two properties of the approach follow from these operations. It can recognize a multiletter convention without searching over possible full sentences, and it can be traced by listing the spans it consumed and the output attached to each span. The decisions come entirely from the input word and the table. An occurrence of a familiar input gives the same result across sentences, including cases in which the surrounding words would favor a different reading.

Selecting a starting point for sentence conversion

For the learned approach, the authors choose the 418M version of M2M100. It already supports Sinhala and has been trained to accept a source sequence and produce text in a specified destination language. The authors reuse that capability through fine-tuning, which updates an existing system on examples of a new task. Here the target is the Sinhala-script rendering of a Romanized Sinhala sentence. The original training supplies a starting point for processing and producing sequences, while the new pairs specify the conversion of interest.

The choice was informed by a small qualitative comparison of English-to-Sinhala translations. The paper gives sample English inputs and shows the results from Marian-MT, M2M100, and NLLB. Its judgments distinguish outputs regarded as correct from outputs regarded as somewhat or seriously wrong. The authors describe Marian’s translation quality for this pair as weaker and judge the others close enough to weigh practical considerations.

M2M100 and NLLB share an architecture according to the paper, with different data used for their original training. The authors select M2M100 because they find that NLLB’s weights carry additional restrictions. This choice combines a practical consideration with a check of how the candidates already generate Sinhala. The check used genuine English inputs for translation. The adaptation that follows changes what the system sees on the source side and what it is being asked to recover.

The paper emphasizes the benefit of beginning with a system that already has some of the required linguistic capabilities. The Sinhala target is part of M2M100’s existing coverage. The unfamiliar relationship is between the informal Latin representation and the native-script sentence. The additional training presents that relationship repeatedly. This is the authors’ rationale for reusing a checkpoint, a saved set of learned weights, as the starting state for the new task.

Putting Singlish into a translation interface

M2M100’s interface takes language identifiers. There is an existing identifier en for English and another, si, for Sinhala. The authors use en in the source position and si in the target position. A source sentence under en contains Romanized Sinhala in this task. During adaptation the paired examples teach the system how to respond to that material under the chosen identifiers.

The code choice is a way to use the existing interface without introducing a dedicated Singlish identifier. It leaves the script and language distinction visible in the training procedure. Latin letters and the en tag identify the source representation the authors supply to the system. The contents of that representation can still be Sinhala words throughout, and the expected native-script text is specified by the paired target. This is how the authors turn the reverse conversion into input that a multilingual translator can process.

They keep M2M100’s existing tokenization, the step that represents text as the units consumed and generated by the system. These units belong to the translator’s existing text-processing interface. The letter groups in the rules are picked because they have explicit entries in a correspondence table. In the learned system, the tokenizer supplies the sequence for the encoder and decoder, and the conversion itself is learned from the paired sentences. The paper gives no new inventory of processing units for Singlish.

When an input is encoded, self-attention allows representations of different positions to draw on one another. The decoder also uses cross-attention to consult the encoded source while constructing Sinhala output. The generated sequence can depend on other parts of the source and on the target material already produced. Those are possible sources of evidence for a form that is underdetermined by its own Latin spelling. The architecture makes such evidence available even when the words providing it occur outside the immediate letter group.

For a shortened input, the output may contain vowel information that the source spelling did not explicitly preserve. The learned approach handles this through sequence generation. Training associates a compressed input with an output containing the full Sinhala form, and the decoder can produce that form as part of a larger sequence. The approach does not require the authors to stipulate a position-by-position vowel restoration rule. It does require examples from which the system can learn when such restoration is appropriate.

Training and using the M2M100 Sinhala converter

The steps in order.

Training and using the M2M100 Sinhala converterStep 1: Assemble paired Singlish and Sinhala sentences1. Assemble paired Singlish and Sinhala sentencesStep 2: Vary vowel choices and omissions in Singlish2. Vary vowel choices and omissions in SinglishStep 3: Split pairs for training and validation3. Split pairs for training and validationStep 4: Assign English source and Sinhala target codes4. Assign English source and Sinhala target codesStep 5: Process the text with M2M100’s tokenizer5. Process the text with M2M100’s tokenizerStep 6: Adapt the pretrained encoder and decoder6. Adapt the pretrained encoder and decoderStep 7: Generate native script from a Singlish sentence7. Generate native script from a Singlish sentence

Giving one Sinhala sentence several Romanized forms

The authors use Dakshina and Swa-Bhasha to assemble paired material. What matters for their procedure is that a Latin-script source can be associated with a known Sinhala target. They organize the data in CSV, a tabular text format. Each row keeps the Romanized sentence and its expected Sinhala version in corresponding columns. The pairing provides the answer during training and later provides the reference against which a generated answer can be compared.

Data augmentation adds alternative inputs to this material. The authors edit the Romanized side using vowel removals and other common patterns they want the converter to encounter. The Sinhala text remains the intended destination. The relationship is therefore many-to-one for these alternatives. A converter should learn that the relevant differences in the Latin strings are compatible with the same target.

The example in the paper starts with Oya rata kawada ?. In Oya reta kewada ?, the latter words use different vowel choices. In Oy rat kawd ?, the Romanization omits vowels that the starting spelling includes. The paper also shows variants that combine those kinds of changes. Each version is paired with the same Sinhala question. The example demonstrates what is supervised directly: the system gets the desired sentence for each version, without having to identify the editing operation that produced that version.

An omission such as the one that produces Oy leaves the converter with a shorter clue. Seeing a full Sinhala target for both Oya and Oy supplies evidence that the shorter source can stand for the same word in the example. Different vowels in rata and reta give another kind of evidence. The system can learn from those competing Latin approximations even though the destination string remains fixed. The authors use these modifications to bring the training material closer to the typing patterns that motivate the study.

There is also a distinction between the example design and the problem it represents. An augmented spelling has a known intended reading because it was made by changing an existing source while keeping its target. For an authentic informal input, the desired reading can require more inference. Augmentation delivers labeled evidence about forms of abbreviation and variation that the authors considered plausible. It can show the converter how to respond to those changes while the rest of the example continues to supply a sentence context.

The assembled collection contains 10k sentence pairs. The authors devote 9k to training and 1k to validation. Training feeds the adaptation of the existing weights. Validation provides separate pairs for checking performance during development. The paper’s training configuration expresses those sizes as 9000 for training and 1000 for development evaluation. The final evaluation uses the shared-task test sets, whose sources and expected outputs are supplied for the benchmark comparison.

Updating the pretrained system

The authors run training on an NVIDIA Tesla T4 16GB GPU. The learning rate is 2e-5 and the schedule is linear. The learning rate governs the scale of changes to the weights during learning, while the schedule specifies how that rate varies over the run. The optimizer is Adam, the procedure that uses the training signal to carry out those weight updates. The parallel pairs supply the signal by specifying which Sinhala sequence should be produced for each Romanized sequence.

The training batch size is 8. A batch is the group of examples processed together for a training step. The gradient accumulation setting is 1, and the paper lists an effective batch size of 8. Accumulation would allow the update to reflect gradients from successive batches before applying them. In the reported setting the batch size and the effective batch size agree. The training run lasts 3 epochs, with an epoch representing a pass through the training collection.

Numerical precision during training is fp16. Precision describes how numbers are represented in the computations. The reported weight decay is 0.01, a setting used to restrain growth in the weights during learning. These choices belong to the run that produced the adapted converter. The paper separately measures the effect of inference settings on output speed, where inference means generating a conversion for an input after training.

At inference, the converter receives the Romanized sentence and generates a Sinhala sequence with the learned parameters. The differences between this process and the rule scan extend beyond how they deal with particular vowels. The lookup procedure chooses how many input characters to consume at each step. The encoder–decoder represents the source and then produces units of output under the target-language identifier. Its ability to complete a word depends on the examples and relationships it learned, along with the evidence present in the sentence.

The authors identify the accompanying implementation as Sinhala-Transliterator. The released implementation accompanies a comparison whose rule and learned approaches have separate sources of behavior. For the rules those sources include the inherited and added correspondences and their lookup order. For M2M100 they include the pretrained starting point, its tokenizer, the paired examples, and the settings used to adapt it.

Experiments and results

The comparison uses organizer-supplied inputs

The test data come from the IndoNLP shared task on reverse transliteration of Romanized Indo-Aryan languages, organized with COLING 2025. Test Set 01 contains 10,000 paired entries with general Romanized typing patterns. Test Set 02 contains 5000 paired entries emphasizing ad hoc patterns of the kind found in practical use. In each collection the input is accompanied by an expected Sinhala rendering. This makes it possible to compare the converters on the same texts and against the same targets within each set.

The general set gives a benchmark across ordinary Romanizations. The ad hoc set tests a collection assembled to put more weight on irregular typing. That division is relevant to the training design because the authors deliberately expose the learned converter to informal spellings. Its performance on the ad hoc collection shows how the complete trained system fares when such input receives special emphasis. Test Set 01 gives a corresponding comparison for the general material.

The baseline in both evaluations is the extended character-table system. The second output for each entry is produced by the adapted M2M100 system. The other multilingual systems discussed in connection with translation quality were considered when selecting a starting checkpoint. They supply no additional scores for these reverse-transliteration sets. The relevant comparison for each metric is therefore between the rule converter and the finished sentence converter.

The authors use metric implementations from Python’s evaluate library. They report word error rate, character error rate, and BLEU. All compare a generated sequence with the expected Sinhala, though each emphasizes a different kind of agreement. Reading them together is helpful here because a recognizably related word can still be incorrectly spelled and because reliable sequences of words require more than success on isolated characters.

Word error rate, abbreviated WER, evaluates the edits needed at word level to align the output with the target. Substituting a wrong word, supplying an omitted word, or removing an extra word affects this measure. If a spelling error leaves the output a letter away from the intended word, it can still make that word count as an edit. WER thus addresses a relatively coarse question about how much word-level repair the output requires. Lower is better.

Character error rate, or CER, applies the edit comparison at the level of characters. It can give different assessments to a small departure within a word and a much more extensive one. That distinction matters for a table-driven converter, which may recover parts of a word even if it fails to produce the full correct form. Lower CER indicates that less character-level editing is needed to reach the expected text.

BLEU evaluates overlap through matching stretches of output and reference text. A mismatch within a sequence can interrupt a longer overlap even when some of the surrounding material is correct. Higher BLEU indicates stronger agreement under this measure. The study reports the values on the decimal scale shown below. Its paper gives verbal accounts of the metrics and identifies the implementations used, with no formal scoring equations.

Word-level fidelity

The Test Set 01 WER is 0.6689 for the table and 0.1983 for adapted M2M100. On Test Set 02, the rules yield 0.6809 and the learned converter yields 0.2413. The lower scores for the learned converter establish that fewer word-level changes are needed under the reported metric on each collection. Because each comparison uses a common set of inputs and references, the ranking within a collection does not depend on whether one system was given more difficult examples.

Word error rate for Sinhala conversion on Test Sets 01 and 02

Adapted M2M100 requires fewer word-level edits on each collection.

Word error rate for Sinhala conversion on Test Sets 01 and 02Table lookup on Test Set 01: 0.6689Table lookup on Test Set 010.6689Adapted M2M100 on Test Set 01 (this paper): 0.1983Adapted M2M100 on Test Set 01 (thispaper)0.1983Table lookup on Test Set 02: 0.6809Table lookup on Test Set 020.6809Adapted M2M100 on Test Set 02: 0.2413Adapted M2M100 on Test Set 020.2413
The numbers
System or settingWER
Table lookup on Test Set 010.6689
Adapted M2M100 on Test Set 01 (this paper)0.1983
Table lookup on Test Set 020.6809
Adapted M2M100 on Test Set 020.2413

Both approaches have higher WER on the ad hoc material. For the rules, this is consistent with their dependence on whether an input segment follows a convention covered by the table. For the learned approach, it shows that preparation for variation still leaves an appreciable amount of word-level mismatch under the benchmark. A higher score on one collection describes the result for its full mix of inputs. The sets’ differing contents prevent that comparison from measuring the effect of a single spelling change in isolation.

WER is particularly useful for a reader who wants to know whether the output supplies usable words in sequence. It is less specific about what went wrong inside an erroneous word. A failed vowel choice and a more substantial failure to recover the word can both register through word-level substitutions. The paper pairs WER with a character measure to capture differences of that kind without asking readers to infer them from the word score alone.

Agreement at character level

On Test Set 01, CER is 0.2119 for the rules and 0.0579 for adapted M2M100. Test Set 02 gives CER of 0.2202 and 0.0789 for the respective systems. This supports the same ranking when the finer details of spelling determine the edit comparison. The learned system produces text closer to the targets at the character level on each set. Its CER is higher on the ad hoc collection, in the same direction as its WER.

Character error rate for Sinhala conversion on Test Sets 01 and 02

Adapted M2M100 is closer to the references at character level on both sets.

Character error rate for Sinhala conversion on Test Sets 01 and 02Table lookup on Test Set 01: 0.2119Table lookup on Test Set 010.2119Adapted M2M100 on Test Set 01 (this paper): 0.0579Adapted M2M100 on Test Set 01 (thispaper)0.0579Table lookup on Test Set 02: 0.2202Table lookup on Test Set 020.2202Adapted M2M100 on Test Set 02: 0.0789Adapted M2M100 on Test Set 020.0789
The numbers
System or settingCER
Table lookup on Test Set 010.2119
Adapted M2M100 on Test Set 01 (this paper)0.0579
Table lookup on Test Set 020.2202
Adapted M2M100 on Test Set 020.0789

The relevance of the character result follows from the task. Sinhala vowel distinctions can change a written form while leaving much of it recognizable. A table output may get some consonant material right and still put the wrong vowels around it, as the sample passage illustrates. CER captures partial character agreement when WER treats the affected word as requiring correction. In the aggregate, the learned advantage holds even when the scorer accounts for those smaller units of agreement.

The metric remains an edit measure. An edit can repair a feature that matters greatly to the intended word, and another can repair a smaller discrepancy in a reader’s interpretation. CER counts written differences under its implementation. The reported values show that the adapted system’s strings require less character repair, while the example outputs give the reader a way to inspect what some of those repairs would have been.

Overlap across the output

The table-driven converter scores 0.0177 BLEU on Test Set 01. The adapted system scores 0.5268 on that set. Test Set 02 gives BLEU of 0.0163 for the table and 0.4384 for adapted M2M100. The system with fewer word and character edits also produces more reference overlap under the paper’s BLEU evaluation. The higher agreement belongs to both test collections. As with the edit scores, performance is weaker on the set devoted to more irregular Romanizations.

BLEU for Sinhala conversion on Test Sets 01 and 02

Adapted M2M100 produces more reference overlap on both collections.

BLEU for Sinhala conversion on Test Sets 01 and 02Table lookup on Test Set 01: 0.0177Table lookup on Test Set 010.0177Adapted M2M100 on Test Set 01 (this paper): 0.5268Adapted M2M100 on Test Set 01 (thispaper)0.5268Table lookup on Test Set 02: 0.0163Table lookup on Test Set 020.0163Adapted M2M100 on Test Set 02: 0.4384Adapted M2M100 on Test Set 020.4384
The numbers
System or settingBLEU
Table lookup on Test Set 010.0177
Adapted M2M100 on Test Set 01 (this paper)0.5268
Table lookup on Test Set 020.0163
Adapted M2M100 on Test Set 020.4384

BLEU brings out a consequence of getting spellings right together. If errors occur across the sentence, individually correct words can be separated by mismatches, limiting exact overlap over longer stretches. A converter that recovers more neighboring material can preserve more of those stretches. That account is consistent with the relative scores and the sample outputs. The paper gives overall BLEU values, so the sizes of the contributions from different match lengths remain unspecified.

Agreement across the metrics gives the quality comparison a broader basis. Had the advantage appeared only in character repair, it might have reflected outputs whose spellings were individually closer while leaving a similar need for word-level edits. Had it appeared only in BLEU, the account would have rested on overlap without the direct edit measures. Here the character, word, and overlap results each favor the sentence converter under the stated benchmark conditions.

Seeing a shortened spelling in the output

The paper prints a Romanized passage and the outputs of both systems. Parts of the input, including kmk, nrkyi, and dnnwa, illustrate compressed typing. The differences are easier to interpret at the scale of individual words than in a full sequence of unfamiliar letters. They let a reader see how much material the adapted converter can generate when the Romanization offers sparse vowel information.

For kmk, the table-based result contains ක්මක්, and the learned result contains කමක්. The Latin sequence is the same for both. The adapted output includes the fuller vowel-bearing form. The example nrkyi similarly has න්රක්යි in the rule output and නරකයි in the learned output. These local comparisons illustrate why a table can leave something resembling the skeleton of a word while the learned converter produces a form more consistent with a reading of the passage.

The output differences are visible in less drastically shortened words too. The input oya appears as ඔය from the table and ඔයා from the adapted converter. The source already has a final vowel letter. A system still has to decide what Sinhala form that letter suggests in the word. In the table, that follows from the key that matches at the relevant position. In the adapted system, the result can reflect associations learned across representations of the word and across sentences.

This demonstration gives the robustness claim a concrete meaning. It is possible to point to vowel distinctions present in one output and missing from the other. The paper presents the passage as an illustration with a source and two system outputs. The benchmark scores elsewhere carry the quantitative claim. The passage itself supplies a view of particular behaviors that those scores combine across the test sets.

Output speed under the reported settings

For speed, the authors count output tokens per second, or TPS. The rule-based converter is reported at >200,000 TPS, a lower bound in the paper’s table. The learned converter gives ∼3 TPS with a CPU at fp32 precision. With a GPU the reported speed is ∼35 TPS at fp32, rising to ∼65 TPS at fp16. The approximation signs indicate how the authors report the learned system’s speeds.

In this comparison the rules have the higher throughput. The procedure consults a small set of span lengths at each position and emits output from a lookup or a copy operation. The learned converter performs encoding and generates the output sequence using the decoder. Those operations explain why the methods have different computational demands. The speeds measure the running converters under the reported configurations instead of the cost of individual operations.

The hardware matters within the learned approach itself. The authors describe its CPU performance as difficult to use for real-time conversion and judge GPU operation capable of reaching real-time performance. The GPU precision settings also differ in speed. These observations put a practical qualification on the quality results. A reader choosing between the implementations would have to consider the available execution setting as well as the importance of recovering informal spellings accurately.

What the ablations show

The study reports no component-removal ablation, and its analyses instead compare complete converters, inspect their outputs, compare candidate translators qualitatively, and measure the effects of execution settings on throughput.

What is controlled in the main benchmark

Within each test set, the source texts and the expected outputs are held fixed for the two approaches. This design supports a comparison of complete systems. A difference in word errors, for instance, reflects the way they convert the same input collection under that scoring procedure. The agreement of the rankings across both sets shows that the learned converter’s advantage extends to the data chosen to emphasize ad hoc typing.

Between the sets, the inputs and references change along with the collection’s emphasis. The study therefore offers a comparison across test conditions rather than a matched intervention on spelling. Suppose the question is whether deleting a vowel accounts for a particular loss in performance. The relevant comparison would hold the intended sentence fixed and measure the effect of that deletion. The shared-task evaluation measures the performance of the converters on the two full collections, including all the properties that differ between them.

The training augmentation has a related interpretive limit. The paper shows exactly how some variants are paired with the same Sinhala question, and the complete converter does well relative to the rules on the ad hoc set. An experiment on the effect of augmentation itself would hold the checkpoint, architecture, and evaluation fixed while varying the inclusion of augmented material. The published scores give the result for the augmented approach as a whole, leaving the individual contribution of those examples unresolved.

How far the sample explains the gain

The output passage provides direct evidence that the adapted method can recover written vowel information in some heavily compressed words. Both systems see the same shortened source, and their completions differ in the way the paper describes. That is an analysis of observable behavior. It links the general notion of ad hoc robustness to the actual Sinhala strings produced.

The explanation in terms of surrounding words is plausible because the architecture has access to them and the training examples are sentences. A second plausible source of the behavior is the recurring association between a short string and a frequent intended form in the paired examples. The system can use such an association even when the surrounding words contribute little. The passage can be read consistently with either process or a combination of them. It contains no matched case in which the shortened word stays fixed and the surrounding sentence changes.

A comparable issue arises on the rule side. The additional table entries can change which groups of letters are recognized and which part of the word remains for the next lookup. The scores are for the table after the extensions. The study does not apply the same scan to the inherited table alone, so there is no numerical estimate of the effect of the new entries. Their mechanism is clear from the lookup procedure. Their contribution to the final test results is part of the complete baseline.

What the translation and speed comparisons resolve

The checkpoint comparison concerns the quality of English-to-Sinhala translation before the reverse-transliteration adaptation. The sample sentences test whether a translator preserves an intended meaning while producing Sinhala. For example, one input distinguishes the manner of someone’s play from the time spent playing, a contrast that can be lost in the output. The authors use their qualitative judgments of the candidates alongside the terms on their weights. This explains the selection of M2M100 without providing a transliteration ranking for the alternative starting points.

The throughput table offers a more focused comparison within the learned converter. The CPU and GPU entries at fp32 retain the named precision while changing the hardware. The GPU entries show results at fp32 and fp16. Each of those comparisons concerns the reported execution conditions. They show that a substantial part of the practical speed question depends on where and at what precision the trained converter runs.

The authors suggest that lower-precision operation could improve speed further, possibly with an accuracy cost. They mention INT8 and INT4 as possibilities. The observed precision comparison is between the reported GPU settings, and its outcome is throughput. A quality comparison across precisions would require transliteration scores for those settings. The accuracy table evaluates the approaches at system level and supplies no such breakdown.

Limitations

Limits identified by the authors

Ambiguity is the authors’ main concern for the table. A lookup key can represent a different Sinhala form in a different context. The rule procedure resolves overlaps between keys by span length and takes the attached value, so ambiguity about the reading of a familiar sequence persists. The mama case illustrates this after the letters have already been recognized. Each possible reading is a legitimate Sinhala form. Choosing the form appropriate to the sentence requires information beyond the text of the key.

The authors also identify morphology, the structure and variation of words, as a source of difficulty. Inflected and compound forms can require attention to grammatical context and to the pronunciation of neighboring syllables. A table of short spans can include common pieces of these forms. The scan still determines the piece at each location through the local spelling. This creates a coverage problem for unfamiliar combinations and a contextual problem when the same pieces participate in different readings.

The authors connect the learned converter’s quality to that of its training data. Its fine-tuning uses 9k parallel entries, and they suggest that broader coverage of practical cases could help. This is especially pertinent for informal typing, where a training set can cover some ways of reducing or changing spellings while leaving others rare. A difficult input may resemble a pattern the system learned or may combine changes it has little paired evidence for. The paper identifies further training coverage and experiments with other text generators as future work.

The authors also identify the efficiency cost of the learned approach as a practical limit. Their CPU measurement illustrates one setting in which producing the output is slow. Their GPU measurements show that a different setting can make substantially more generation possible per unit time. The practical scope of the result therefore depends on the computational setting as well as on the writing patterns the system handles.

Limits that follow from the comparisons

The rule baseline is a particular design. It augments an inherited mapping and applies it through a deterministic longest-match procedure. The earlier hybrid described in the related work used statistical evidence from social media, and the paper’s wider account of rules includes systems with lexicons and linguistic conditions. Those approaches could behave differently on ambiguous spellings. The benchmark supports a ranking against the local lookup implementation, with the performance of more context-sensitive rule or hybrid designs left open.

The learned system likewise combines several design decisions. It begins from a multilingual translation checkpoint, keeps the tokenizer, uses full sentences, and adapts on paired material with added spelling variation. The experiments evaluate them jointly. This makes the result informative about what the authors actually built. It leaves separate questions about how much the starting weights contribute, how much of the gain depends on sentence context, and how much would persist with unaugmented pairs. The same evidence cannot settle all of those causal questions.

The description of data preparation specifies the collections, the development split, and example edits. It gives less information about the distribution of those edits and the share of pairs drawn from each collection. In particular, the treatment of related variants when forming the training and validation split is unspecified. If different Romanizations of an underlying sentence occur on both sides of a split, validation can probe generalization to a new spelling of familiar content. If the variants stay together, validation can probe generalization to different underlying sentences. The paper’s final benchmark uses the organizer-supplied sets, while the finer interpretation of development validation depends on that unreported construction detail.

The ad hoc test designation tells the reader what the organizers sought to emphasize. It leaves room for differences between the collections in the sentences included, their makeup, or the distribution of individual spelling patterns. The scores accordingly support the observation that both systems had weaker measured performance on Test Set 02. They establish a more limited basis for explaining how much of that change comes from vowel deletion, unusual substitutions, or other properties of the data. The qualitative example isolates some visible output differences but does not count their prevalence across the collections.

The paper motivates sentence-based conversion in part through mixed-language use. A converter trained on examples can in principle learn how the targets handle English material and transitions between languages. The reported metrics are grouped by general and ad hoc typing conditions. They leave the result for specifically mixed or switched inputs unknown. This gap matters because restoring omitted vowels within a Sinhala word and deciding which language a span belongs to can require different evidence.

There is also a distinction between agreement with a reference and acceptability to a reader. The chosen reference records the intended output for a paired input, and the metrics give a basis for comparing outputs against it. In some ambiguous cases, a different reading can be plausible before the reference is seen. The paper’s example of an underspecified spelling gives a reason to distinguish these outcomes. The study does not report reader judgments of competing interpretations, so its results describe reference fidelity more directly than judgments about whether all disagreements would be unacceptable in practice.

The aggregate results give a clear ordering but leave variation at a finer scale unknown. The paper reports no uncertainty intervals or repeated-run results for the adapted approach. It supplies no benchmark breakdown for specific error categories such as missing vowels or inflected forms. As a result, the numbers describe the observed comparison and the example identifies some recoverable forms. They leave unresolved how consistently the training would produce the same scores on another run and which error types contribute most to the advantage.

The timing evidence also has a limited scope. Throughput counts output produced per unit time. Latency is the delay experienced for an individual input, which would matter to someone typing and waiting for a converted message. The study provides throughput figures and an assessment of practical speed, with no per-message latency measurements. It gives limited detail about the speed protocol and how output tokens were counted across such different approaches. This supports the reported throughput ranking while leaving the response time for a particular message and setup unspecified.

What came after

The NepaliXlit study cites the Sinhala comparison and considers script recovery for Romanized Nepali. It places conversion to Devanagari in the setting of sentiment analysis, where the text is used to identify expressed sentiment. This changes the role of the conversion. In the Sinhala study, the recovered writing is the output being evaluated. In the Nepali work, native-script text is an input to a further task.

The relationship between the papers is at the level of the problem they address. Informal Latin spelling can stand between a speaker’s words and the native-script text a system is meant to process. De Mel and colleagues measure the quality of that intermediate recovery through agreement with expected Sinhala sentences. NepaliXlit puts the same kind of recovery in a pipeline where the final question concerns sentiment. That setting gives a reason to ask how well a conversion preserves the material needed for the subsequent analysis, in addition to how closely the conversion matches a native-script reference.

The citation connects the Sinhala results to that downstream setting. The later work’s stated subject identifies the direction of conversion and its purpose. Its specific relation to the Sinhala rule table, choice of checkpoint, and augmentation procedure remains unspecified, as does any measured change in sentiment-analysis performance.

Cite

Cite as Yomal De Mel, Kasun Wickramasinghe, Nisansa de Silva and Surangika Ranathunga. 2025. Sinhala Transliteration: A Comparative Analysis Between Rule-based and Seq2Seq Approaches. Proceedings of the First Workshop on Natural Language Processing for Indo-Aryan and Dravidian Languages.

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{mel2025sinhala,
  title = {{Sinhala Transliteration: A Comparative Analysis Between Rule-based and Seq2Seq Approaches}},
  author = {Yomal {De Mel}, Kasun Wickramasinghe, Nisansa {de Silva} and Surangika Ranathunga},
  booktitle = {Proceedings of the First Workshop on Natural Language Processing for Indo-Aryan and Dravidian Languages},
  year = {2025},
  url = {https://aclanthology.org/2025.indonlp-1.19/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/mel-2025-sinhala-transliteration-comparative-analysis-between/