Elamur Research

Triples-to-isiXhosa (T2X): Addressing the Challenges of Low-Resource Agglutinative Data-to-Text Generation

Paper · 2024 · Francois Meyer and Jan Buys

Summary

To turn a database fact into an isiXhosa sentence, a text generator has to decide what to do with each name. In a fact about who leads South Africa, the personal name Cyril Ramaphosa can be carried over from the input, while the country name needs an isiXhosa form. The surrounding grammar can attach directly to these names. A system that works with whole words therefore has trouble reusing what it learned about a grammatical prefix when it encounters a new name. The paper studies this problem with Triples-to-isiXhosa, or T2X, a dataset pairing individual facts from WebNLG with sentences written by first-language isiXhosa speakers. It covers 15 domains and 286 relation types, giving a broad range of sentence patterns even though each input expresses a single fact.

The authors introduce the Subword Segmental Pointer Generator, or SSPG. It learns where to divide written text into smaller pieces while learning to describe the facts. For each piece it can build a string from characters, choose a familiar string from a lexicon, or copy a piece of the input. Its training procedure gives credit to the different segmentations that could produce the same sentence. At generation time, a procedure called unmixed decoding lets each of the three routes put forward its own candidates. On the T2X test set, SSPG scores 48.45 on chrF++ and 20.01 on BLEU, ahead of every other system trained from scratch. It also leads that group on Finnish Hockey, a separate benchmark for another agglutinative language.

The strongest reference-overlap results come from adapting bilingual translation systems. The English-to-isiXhosa system using byte pair encoding reaches 56.05 chrF++ and 27.56 BLEU on the T2X test set. Its English-to-Finnish counterpart also leads the Finnish Hockey test results. The tested multilingual approaches, including one adapted to African languages, all trail SSPG on T2X chrF++ and BLEU. The paper thus finds a useful source of pretraining in a task that already calls for generating fluent text in the target language.

The authors also ask whether a sentence actually conveys the fact it was given. Their T2X evaluation checks the subject and object separately and uses a trained classifier to identify the relation expressed in the sentence. This exposes differences that an overall overlap score can hide. Among systems trained from scratch, SSPG leads on subject and object F1, while a conventional pointer generator leads on relation accuracy. Among the adapted translation systems, the segmental variant leads on entity F1 and the byte pair variant leads on relation accuracy. A sentence can preserve the names and still get the relationship wrong, or express the relationship correctly while damaging a name.

Deep dive: Triples-to-isiXhosa (T2X): Addressing the Challenges of Low-Resource Agglutinative Data-to-Text Generation

Triples-to-isiXhosa tests how learned word segmentation, copying, and translation pretraining turn structured facts into isiXhosa sentences. · about 38 minutes to read

The problem and its context

A short fact can still be difficult to express

Data-to-text generation begins with a structured record and produces prose a person can read. In T2X, each record is a triple. The subject is the entity the record starts from, the relation says how that entity is connected to something else, and the object supplies the other endpoint or value. These field names describe roles in the data. A sentence may put the object first or put the subject inside a phrase later in the sentence. The order of a record therefore gives the generator a way to distinguish its fields while leaving room for several natural word orders. The triples come from a dataset built around a knowledge graph.

The leadership example makes the distinction concrete. South Africa is the subject in the data and Cyril Ramaphosa is the object. A sentence that starts with the person's name places the data object in the position readers encounter first. The relation label tells the generator that the person is the leader, but the label is a field value written for the data. The output needs an isiXhosa expression that makes the role clear. The generator also has to produce the country name in a form that fits the language and connect the names and the relation into a complete statement.

This task gives evaluation a relatively clear starting point. A reader can compare the output against the input to see which entities and relationship it conveys. A second question concerns the way it expresses them. Several sentences can communicate the same record, and one may read more naturally in a given language. Earlier data-to-document research used the distinction between content and expression to motivate evaluating them separately. The T2X authors take up that distinction in a setting where how a fact is expressed reaches into the structure of individual written words. Challenges in Data-to-Document Generation

The phrase agglutinative language refers here to the way meaningful pieces can be attached to one another. IsiXhosa is part of the Nguni group, whose written conventions can put several such pieces inside a single word. In the paper's leadership example, the name Cyril Ramaphosa carries a grammatical prefix. The expression for the leadership relation also contains attached material, as does the phrase containing the country name. A recurring sentence pattern can therefore include instructions about the insides of written words. A grammatical piece and the name it attaches to are distinct sources of information, even when the reader sees them together as a word. This is the aspect of morphology that matters for the paper.

A reusable pattern in an English benchmark may mostly consist of whole words arranged around slots for names and other values. A reusable pattern in T2X can instead require a grammatical piece immediately before a name, with the same written word continuing into that name. A generator that has seen a prefix attached to familiar names would benefit from being able to apply that experience to a name that occurs for the first time in evaluation. The paper sees this as particularly important in a small corpus, where new written forms are common in held-out data. The relevant design choice is the granularity of the units that the system can learn and reuse.

Two judgements follow from the example. First, the generator must decide whether the English entity string has an acceptable isiXhosa counterpart with the same spelling. Second, it must decide how to express that entity in context. Keeping a person's name exactly as supplied can be compatible with adding grammatical material to it. Using an isiXhosa country name requires generating different letters, which can also take grammatical material. Copying and translation are therefore decisions about parts of a sentence that still have to work together. A useful copy mechanism needs to operate where that combination happens.

How earlier approaches divided the task

The paper describes a tradition of treating data-to-text as a pipeline. Such approaches assign different parts of the work to different stages. The structured input makes that attractive because the system can plan what to express and then decide how to realise it. The authors also note that researchers have combined pipeline organisation with neural methods. Their own study follows the end-to-end line of work, which trains a system to learn the mapping from the input sequence to the output sequence as a whole.

Earlier dedicated architectures built useful assumptions about data-to-text into that mapping. Neural templates learn recurring forms for prose from examples and use those forms to guide generation. Another approach learns to divide the output into fragments and associate those fragments with records in the input. Recurrent encoders and decoders give both approaches a way to process sequences. Attention lets a decoder consult relevant input positions as it writes. A pointer generator turns that access into the ability to emit an input token, which is especially useful when a record contains a name the system seldom encounters. Learning Neural Templates for Text Generation, Neural Machine Translation by Jointly Learning to Align and Translate, Pointer Networks

Much of the earlier dedicated work described by the authors used sequences of whole words. The paper connects that practice to its origins in English data-to-text benchmarks, where words were adequate units for many recurring patterns. The E2E restaurant benchmark illustrates how a narrow domain can support that choice. A description frequently needs to fit a restaurant name, a type, or an area into a familiar structure. T2X varies the domains and relations and asks for grammatical combinations within words. Its examples can consequently be simple at the level of the input fact and demanding at the level of the written sentence. The E2E Dataset

The authors place this architectural history alongside work on text-to-text pretraining. In that approach, a system first learns from a broader training task. Fine-tuning then adapts its existing parameters to the target problem using data-to-text examples. The paper describes strong prior results from adapting BART or T5 to structured inputs. It also cites promising multilingual work on Russian WebNLG and Czech restaurant descriptions, while observing that few multilingual datasets were available for this kind of comparison. A system can support a language in pretraining and still leave open how well that training prepares it to verbalise structured facts in the language. That question motivates testing several pretrained starting points. BART, T5, Text-to-Text Pre-Training for Data-to-Text Tasks, Fine-tuning

Where segmentation enters the problem

A sub-word unit is a piece of written text that can be reused within larger forms. A preprocessing method such as byte pair encoding, or BPE, decides how to split strings before the generator learns from them. The paper also discusses the unigram approach to segmentation as an example of this separation between the component that proposes pieces and the component that uses them. A fixed inventory can give a small training corpus broader coverage than a word vocabulary. Choices made in preprocessing also determine which pieces the generator handles together. A fragment that is useful for its spelling frequency may be awkward for generating a particular grammatical construction. Subword tokenization, Neural Machine Translation of Rare Words with Subword Units, Subword Regularization

The prior work reviewed in the paper associates preprocessing-based segmentation with inconsistent performance and excessive splitting in some data-scarce or morphologically complex settings. The concern is that a system trained on a small collection has limited evidence with which to adapt to divisions it was given in advance. The other approach reviewed by the authors treats those divisions as latent. The training data shows the characters of each sentence, and the possible boundaries are inferred while learning to predict the sentence. Earlier studies had used this idea in translation and in language modelling under limited data. SSPG brings it to structured-input generation and adds a way to copy input pieces. Low-resource languages

The source and target differ in a way that lets the authors apply these ideas selectively. T2X keeps the English records used by its parent dataset, so the units on the input side are pieces of English labels and names. The central linguistic challenge is how to form a written isiXhosa sentence on the output side. The paper retains a conventional input segmentation for SSPG and learns the output segmentation during training. This asymmetry is also relevant to copying. The input provides useful strings for names that can carry across languages, while the output procedure decides how to surround those strings with the forms required by isiXhosa.

What the source benchmarks made possible

WebNLG pairs DBpedia triples with human-written descriptions. Its original task can ask a system to put several facts together, with up to seven triples in an example. Several descriptions can be available for the same input. The paper describes earlier efforts to bring WebNLG into other languages, including an expanded Russian version produced with translation and manual post-editing. It also mentions releases for Maltese, Irish, Breton, and Welsh, with up to 1,665 examples per language. These resources show how one collection of structured records can support generation tasks across languages. Creating Training Corpora for NLG Micro-Planners

The authors also compare T2X's purpose with that of Table-to-Text in African Languages, or TATA. TATA includes Swahili and provides less than a thousand examples per language, according to the paper. Its generation task calls for reasoning about what the data means at a higher level. T2X puts the emphasis on how to express an explicitly specified relationship. Restricting each input to a single triple enabled the authors to retain a range of topics within their annotation budget. It also made it possible to ask a fairly direct evaluation question about each sentence: how well does it express the subject, relation, and object of the fact it received?

The method, step by step

Building a reference corpus

The authors selected the single-triple portion of WebNLG version 2.1 as the starting pool. The fields in those triples stayed in English. Annotators saw both the record and its corresponding English description so that they could use the record to check the content and the description to understand how that content had been put into a sentence. The task was to write an isiXhosa version that reads naturally and expresses the fact in the record. This procedure puts linguistic judgement into the references while keeping the structured input shared with the parent benchmark.

The annotators spoke isiXhosa as a first language and had studied it at university. They discussed issues that arose during their work to make their decisions more consistent. The resulting corpus preserves some variation in how facts can be phrased. For example, the annotations about Angela Merkel and the leadership of Germany include a version that starts from Germany's leader and one that starts from Merkel. Both sentences identify the same person and position. They provide distinct ways for an output to match the reference wording while conveying the same fact. This is one purpose of including several verbalisations in linguistic annotation.

For most domains in training and validation, a triple has one isiXhosa verbalisation. Most test examples have more than one, with up to 3. The extra descriptions put some of the annotation effort where differences in wording matter most for the published comparisons. During training, a reference provides an observed sentence from which the system can learn. During testing, alternative references give a sentence more than one possible point of comparison. The variants described by the paper frequently use a different word order or a synonym, so they give concrete evidence of variation even for a highly constrained input.

The coverage serves a different purpose from the reference multiplicity. The 15 categories broaden the range of subject matter, and the 286 relation types broaden the range of relationships the system has to express. Astronaut, Athlete, and WrittenWork appear in validation and test, with training drawn from the remaining categories. A held-out category can bring unfamiliar names and combinations into evaluation. The paper's main results combine the various categories into split-level scores. The authors publicly released T2X and made the SSPG implementation and trained systems available.

From a marked input to a written sentence

Consider the triple about France and its currency, the Euro, that the paper uses to illustrate SSPG. The input tells the system which country is under discussion, what relationship to express, and which currency to name. The target sentence expresses the currency relationship using isiXhosa and gives France in an isiXhosa form. The currency name can reuse material from the source. In generating such a sentence, some pieces are available in the record, others are familiar from the isiXhosa training texts, and some can be assembled character by character to fit the context.

SSPG first encodes the input as a sequence of BPE pieces. It uses special boundary markers around each field so that a country in the subject field has a different structural role from a name in the object field. Flattening means placing all those marked fields in a single sequence. A bidirectional long short-term memory network, or LSTM, reads this sequence in both directions. Its contextual representations give the decoder information about the surrounding pieces and about where they sit in the record. The decoder can then give more attention to particular positions as it produces the sentence.

On the output side, the reference initially enters training as a sequence of characters. The decoder can consider a segment beginning at each character boundary. The segment may be assembled by its character component, selected from a lexicon, or copied from the encoded input. These routes share information about the record and the text prefix. For the France example, that allows an output containing an isiXhosa grammatical piece followed by material drawn from the object field. The segmental mechanism learns to make such choices as part of fitting the reference sentences.

How SSPG learns from triples and generates sentences

The steps in order.

How SSPG learns from triples and generates sentencesStep 1: Mark subject, relation, and object fields1. Mark subject, relation, and object fieldsStep 2: Encode the input as BPE pieces2. Encode the input as BPE piecesStep 3: Represent the written prefix with a character LSTM3. Represent the written prefix with a character LSTMStep 4: Score character, lexicon, and copy candidates4. Score character, lexicon, and copy candidatesStep 5: Sum valid segmentation paths during training5. Sum valid segmentation paths during trainingStep 6: Rank separate candidate scores during generation6. Rank separate candidate scores during generationStep 7: Extend the output until the end marker7. Extend the output until the end marker

The two final uses of the scores are different. During training, the full reference string is available, so the procedure can add the probabilities of segmentations that spell that exact string. During generation, the next part of the sentence is still unknown. The procedure has to propose pieces and choose how to extend partial outputs. The training objective teaches the system how likely a string is given a record. The decoding procedure determines which options it examines and how it ranks them when writing a new sentence.

Training on characters with hidden boundaries

The paper represents a training pair with an input sequence and a reference sequence.

x = x₁, x₂, …, x_|x|

Here x is the flattened input triple. Each xᵢ is the input token at position i, including the field markers and the pieces produced by BPE. The subscripts give positions, |x| is the total number of input tokens, and … denotes the intervening tokens. The equality specifies the ordered contents of x.

y = y₁, y₂, …, y_|y|

Here y is the reference text. Each yᵢ is the character at position i, |y| is the number of characters, and … represents the characters between the displayed positions. The subscripts refer to positions in the output string here. The written sentence supplies these characters, leaving the boundaries between output segments unspecified.

The important consequence of those unspecified boundaries is that several sequences of pieces can spell the same output. During training, a sequence that places a boundary after a prefix and a sequence that includes that prefix in a longer piece can both contribute to the probability of the reference, provided the characters match. The probability assigned to the string is the sum of the probabilities of the ways to produce it.

p(y | x) = ∑_{s: π(s) = y} p(s | x)

p denotes probability, and | between arguments means “conditioned on.” x is the input triple sequence and y is the output character sequence. s is a possible sequence of sub-word segments. π joins those segments in order into a character string. The summation sign ∑ adds p(s | x) for every s whose joined string equals y. The condition under the sum specifies precisely which segment sequences count towards the probability of the reference.

A useful way to read this formula is to picture paths through the characters. Each step takes a piece beginning immediately after the preceding piece. It reaches the position after the final character of that piece. Reaching the end by any valid path yields the same sentence. The probability for a particular path comes from the successive probabilities of its pieces, using the chain rule. At any given boundary, the decoder conditions the next decision on the characters already present. Paths that reach the same position in a fixed reference therefore share the same character prefix for that decision.

This shared prefix makes dynamic programming possible. At a position in the reference, the decoder can reuse the representation of the characters up to that point. It computes the probabilities of pieces that match the subsequent characters, up to a maximum segment length. Those pieces extend the probability already accumulated at the current position to later positions. A later position can receive contributions from several earlier boundaries. The procedure pools those contributions as it works through the sentence, so it can obtain the probability of the complete string without listing every complete path.

Two kinds of context feed the next-piece probabilities. The character-level LSTM represents the text history, so the history can be computed at each character boundary even though the segmentation is unknown. Attention over the encoded triple brings in the current source context. The decoder passes a representation informed by both into the components that score the next piece. Increasing the probability of the reference gives the system an incentive to use boundaries and fragments that help it express the input. The objective judges those boundaries by the generation task.

Combining character generation, the lexicon, and copying

SSPG first combines a character component with a lexicon component. The character component is itself a character-level LSTM and can assign a probability to a string by processing its characters. The lexicon component uses a list of frequently occurring character sequences from the training corpus. The size of that list is a hyper-parameter, a setting chosen in the experiments. A learned gate controls the contribution of each component at the current boundary.

p(sᵢ | y_<j, x) = gⱼ p_char(sᵢ | y_<j, x) + (1 − gⱼ) p_lex(sᵢ | y_<j, x)

sᵢ is the next candidate segment at segment index i. The index j refers to the character position where the segment starts, and y_<j is the sequence of output characters before that position. x remains the encoded input sequence. p_char is the probability assigned to the segment by the character component, and p_lex is the probability from the lexicon component, which in SSPG includes the copy route. gⱼ is the weight on the character component given by a fully connected layer, and 1 − gⱼ is its complementary weight. Each product weights a candidate probability, and + adds the contributions. As above, p denotes a probability and | introduces the conditioning context.

The lexicon stores the top |V| character n-grams by frequency in the training corpus. Here |V| is the selected lexicon size, and an n-gram is a contiguous run of characters of length n. The lexicon entries give the decoder reusable strings that it can select directly. The character component supplies a way to score a string even when it is absent from that list. Both components can contribute to the probability of the same candidate when it is available to both. The training objective can therefore make use of overlap in what the components can express. N-gram

A second gate lets the lexicon side choose between generating from the stored list and pointing to an input token. The decoder learns this choice from the data-text pairs. It can assign a large probability to copying when the source contains material useful for the next segment, or favour generating when the required text is a form it needs to supply. Copying operates over source BPE tokens. A full entity may thus require several successive decisions, some of which add grammatical material and some of which reproduce pieces from the input. Pointing the Unknown Words

p_lex(sᵢ | y_<j, x) = p(zⱼ = 0 | y_<j, x) p_gen(sᵢ | y_<j, x) + p(zⱼ = 1 | y_<j, x) p_copy(sᵢ | y_<j, x)

p_lex is the combined probability of the candidate sᵢ on the lexicon side. The context is again the character prefix y_<j and the source sequence x. The hidden binary variable zⱼ gives the route at character position j. Its value 0 denotes generation and 1 denotes copying. p_gen is the probability from a softmax over the lexicon, which distributes probability across the stored entries. p_copy uses the attention distribution over source tokens. Each of those probabilities is multiplied by the probability of the corresponding value of zⱼ, and + adds the two products. A fully connected layer with a sigmoid supplies the weight for this choice, with the other weight given by its complement.

This gives the system two questions to answer at a boundary. One concerns whether to construct the piece with characters or rely on the combined lexicon and source route. The other concerns where that combined route should obtain its piece. Both gates can respond to the same input and output context. In the leadership example, the name and the grammatical material leading into it give different opportunities to use those routes. The design lets the decoder learn that distinction without a supplied label for the origin of every segment.

Choosing an output with unmixed decoding

A conventional sub-word decoder has one inventory of next tokens that can be ranked in beam search. In SSPG, the next segment can be proposed by several components, and the components can overlap in the strings they score. The authors initially used dynamic decoding, a procedure from earlier segmental translation work that combines information from the character and lexicon components. They developed unmixed decoding after testing that approach on SSPG. The new procedure keeps scores from the character, lexicon-generation, and copy routes separate while proposing candidates.

In the greedy version, each route supplies the candidate with the highest score under that route. The score includes the probability of taking the route, so a highly ranked candidate from a route with a small gate weight can still lose to a candidate supplied by another route. The paper writes the equations with the shared context omitted for readability.

p*_char = maxₛ g p_char(s | ·)

p*_char is the best weighted character score, with * marking a maximum. maxₛ searches over segment candidates s. g is the character gate at the current position, and p_char assigns a probability to s through character generation. The dot · stands for the source and the output prefix on which the probability depends. The candidate attaining this score is the character route's proposal.

p*_gen = maxₛ (1 − g) p(z = 0 | ·) p_gen(s | ·)

p*_gen is the highest weighted score among the lexicon-generation candidates. maxₛ again maximises over s, and * marks the best score. 1 − g is the weight on the combined lexicon and copy side. p(z = 0 | ·) is the probability of taking its generation branch, with z denoting the current hidden route choice and 0 denoting generation. p_gen scores s within the lexicon. The dot represents the same shared context, and the adjacent factors are multiplied.

p*_copy = maxₛ (1 − g) p(z = 1 | ·) p_copy(s | ·)

p*_copy is the highest weighted copy score. maxₛ selects it over candidate segments s, and * indicates that selection. 1 − g gives the weight on the lexicon and copy side, and p(z = 1 | ·) is the probability of using the copy branch of the current hidden choice z. The value 1 denotes copying. p_copy supplies the candidate probability from the attention over the input. The dot again represents the source and prefix, while juxtaposition indicates multiplication of the weights and candidate probability.

The greedy procedure compares the three winning scores and emits the piece supplied by the route with the largest one. That piece extends the written prefix so the decoder can make another decision. Reaching an end-of-sequence token finishes the output. This procedure uses the gate weights as evidence about which route to consult at each step. For instance, when the context strongly favours copying and attention identifies a suitable source piece, the weighted copy candidate can win the comparison.

The paper also gives a beam-search version. Beam search keeps several partial possibilities so that an early choice can be evaluated as the sentence continues. If k is the number of candidates to retain, the procedure takes the best k from each component, giving 3k initial proposals. It ranks them by their separate scores and proceeds with the best k. Training can pool the routes by which a reference segment is produced. Unmixed decoding uses the provenance of each proposed segment directly in the search.

Selecting configurations before the test

The authors used a grid search to select hyper-parameters and chose the final test configurations by validation chrF++. They justify the choice of validation metric by its suitability for morphologically rich languages. The search covered common settings such as learning rate, dropout, batch size, and the dimensions of network representations. It also covered settings specific to the architecture. For the segmental decoders these include the segment-length cap and the lexicon size, which determine what strings the decoder can consider as candidate segments and what strings it can generate directly from its list.

The final SSPG configuration has a 1k source BPE inventory and a 1k output lexicon. Its maximum segment length is 5 characters. The segmental decoder without copying has a BPE size of 250 and a lexicon size of 250, with the same 5-character limit. For both of these architectures the BPE procedure learns from the source side of the paired data. The pointer generator and neural templates use a shared BPE vocabulary learned from the paired dataset. The pretrained systems retain the segmenters associated with their pretraining.

The conventional pointer generator and neural templates both use a BPE size of 500 in their final T2X configurations. The authors also tried variants without sub-word preprocessing for these baselines and report better validation performance with BPE. This makes the comparison with SSPG more informative. SSPG is tested against baselines that can already exploit sub-word pieces, so its contribution concerns how the decoder learns boundaries and coordinates copying. The comparison asks what the trainable output segmentation adds after acknowledging the usefulness of sub-words across architectures.

Experiments and results

What the comparisons cover

T2X has 2,413 training triples and 3,859 training verbalisations. Validation contains 391 triples and 600 verbalisations, and the test set contains 378 triples and 888 verbalisations. The corresponding single-triple portions of WebNLG have 3,114 triples for training, 392 for validation, and 388 for test. Counts of triples describe the number of structured inputs. Counts of verbalisations describe the available sentence versions of those inputs. Keeping these quantities distinct helps explain why the test set offers substantial wording variation in spite of its relatively small number of facts.

Finnish Hockey supplies a second comparison. It pairs statistics about events in ice hockey games with text spans found in Finnish articles. An input can have up to 12 records, depending on the event type, while the aligned text is a single sentence. The experiments train on 6,159 data records aligned with single text spans. The Finnish experiment thus changes both the target language and the structure of the input. It lets the authors see whether the ranking among systems is peculiar to the single-triple setup or also occurs in another setting with agglutinative output and short descriptions.

The from-scratch group includes the conventional pointer generator, or PG, which has an LSTM encoder and decoder and can copy input material. Neural templates, or NT, learn recurring forms for the output and use those forms during generation. The sub-word segmental decoder, or SSD, learns the output segmentation and uses dynamic decoding without a copy mechanism. SSPG adds copying to the segmental design and uses unmixed decoding. Together these comparisons put SSPG alongside architectures that already exploit the structure of data-to-text and alongside a close segmental relative.

The transfer experiments cover multilingual and bilingual starting points. T2X uses mT5-base and mT5-large, plus Afri-mT5-base as identified in the results table. The paper describes the African adaptation as continued pretraining for 17 African languages including isiXhosa. It describes mT5 as covering 101 languages, including isiXhosa and Finnish. These systems are then fine-tuned on the data-to-text examples. mT5

The two translation starting points are called BPE MT and SSMT. The former is the conventional BPE-based version and the latter is a segmental translation system that learns output boundaries as part of translation. Each version starts from bilingual English-to-isiXhosa translation for T2X or from English-to-Finnish translation for Finnish Hockey. Fine-tuning adapts the source side to structured records and the target side to the kind of sentences used in the benchmark. Both tasks still require starting from English material and producing a sentence in the target language. Machine translation

Measuring agreement with the references

The automatic results include chrF, chrF++, BLEU, and NIST. The paper also reports METEOR, ROUGE, and CIDEr. These measures compare generated text with human references. The character sequences used by chrF give some credit for overlap inside words, which matters in a setting where a form can be partly correct. ChrF++ incorporates word sequences as well as character sequences. BLEU offers another perspective on overlap using sequences of tokens. The metrics can reward different aspects of a candidate's similarity to the references, so their rankings provide more information when read together. chrF, chrF++, BLEU score

Multiple references help when a fact has several natural expressions. The Merkel example shows how two acceptable sentences can share their important names and descriptive vocabulary while ordering them differently. With both versions available, a candidate that begins with the person has a reference for that structure, and a candidate that begins with the leadership role also has a point of comparison. The metrics still evaluate agreement with the available sentences. The extractive evaluation described below asks a complementary question about what can be recovered from the output.

The test results should also be read in light of how configurations were chosen. Validation chrF++ guides the grid search, while the reported test comparison applies several metrics to the resulting systems. This gives the reader a way to see whether the order observed in the selection metric also holds under alternative measures. It is particularly helpful for the authors' comparison between SSPG and the other architectures trained from scratch, where its lead extends across every listed overlap metric.

T2X favours SSPG from scratch and BPE MT overall

T2X test chrF++ for selected systems

Bilingual BPE translation leads overall, and SSPG leads the systems trained from scratch.

T2X test chrF++ for selected systemsPointer generator: 46.24Pointer generator46.24mT5-large: 46.92mT5-large46.92SSPG: 48.45SSPG48.45BPE MT (this paper): 56.05BPE MT (this paper)56.05
The numbers
System or settingchrF++
Pointer generator46.24
mT5-large46.92
SSPG48.45
BPE MT (this paper)56.05

The from-scratch T2X result is consistent across metrics. SSPG leads the group on test chrF++ at 48.45, compared with 46.24 for the pointer generator. On test BLEU, SSPG scores 20.01 and the pointer generator scores 18.90. The paper reports the respective gains as 2.21 on chrF++ and 1.11 on BLEU. SSPG also reaches 53.46 on chrF and 4.51 on NIST. The additional test scores of 21.92 on METEOR, 38.68 on ROUGE, and 1.38 on CIDEr complete its lead within that training group.

The SSD result helps establish what a decoder that learns segments can do on its own. On the T2X test set it reaches 44.77 chrF++ and 16.16 BLEU, behind the pointer generator. Neural templates reach 38.00 chrF++ and 12.02 BLEU. The authors attribute the weaker NT result to a mismatch between the units available to the architecture and the reusable structure of the sentences. BPE gives the architecture fragments that can fit smaller written units, while NT was designed to induce patterns over words. The authors report that returning NT to whole words worsened its performance on T2X.

The multilingual experiments give a mixed comparison with SSPG. On the T2X test set, mT5-base reaches 41.45 chrF++ and 14.32 BLEU. Afri-mT5-base scores 42.42 chrF++ and 16.11 BLEU. The larger mT5 reaches 46.92 chrF++ and 19.87 BLEU. SSPG has the higher value on both metrics in each comparison. Other columns complicate the ranking. For instance, mT5-large reaches 4.63 on NIST and 23.13 on METEOR, both above the corresponding SSPG scores. The broader claim about the multilingual baselines is therefore clearest when tied to the specific metrics the authors emphasise.

The strongest test overlap on T2X belongs to BPE MT. It records 56.05 chrF++, 61.53 chrF, and 27.56 BLEU. Its NIST score is 5.62. It also leads with 27.24 on METEOR, 47.49 on ROUGE, and 1.88 on CIDEr. The segmental translation variant follows with 54.01 chrF++ and 24.19 BLEU. The result shows that the benefits of starting from bilingual translation are available to both tested translation variants on these metrics. The conventional BPE variant gives the strongest overlap among the systems the paper investigates on T2X.

The authors suggest that multilingual pretraining gives isiXhosa relatively little exposure and that general text-to-text pretraining targets a different range of tasks. The observed comparison supports the practical choice of trying a bilingual system when it is available for the target language. It also leaves room for a distinction between the amount of target-language experience and how that experience was acquired. The results measure the available starting points after fine-tuning. Their training histories differ in ways that the study's performance comparisons do not isolate.

Finnish Hockey repeats the main overlap ranking

Finnish Hockey test BLEU for selected systems

BPE translation adaptation leads the comparison, with SSPG ahead of the ordinary pointer generator.

Finnish Hockey test BLEU for selected systemsPointer generator: 19.24Pointer generator19.24SSPG: 20.87SSPG20.87SSMT: 15.54SSMT15.54BPE MT (this paper): 22.36BPE MT (this paper)22.36
The numbers
System or settingBLEU
Pointer generator19.24
SSPG20.87
SSMT15.54
BPE MT (this paper)22.36

SSPG leads the Finnish systems trained from scratch across the reference-overlap metrics. Its test scores include 40.12 chrF++, 41.00 chrF, and 20.87 BLEU. The ordinary pointer generator has 37.57 chrF++ and 19.24 BLEU on that split. SSD reaches 33.68 chrF++ and 17.03 BLEU, while neural templates reach 32.13 chrF++ and 11.95 BLEU. A copy-equipped segmental decoder thus has the strongest overlap within this training group even when the input contains event statistics instead of the single triples used in T2X.

The best overall Finnish scores again come from bilingual BPE MT. On the Finnish Hockey test set it reaches 42.37 chrF++, 41.59 chrF, and 22.36 BLEU. The authors report that its BLEU score is 2.69 higher than the published pointer-generator benchmark for this dataset. The T2X and Finnish findings support the same ordering at the top of the from-scratch and the overall overlap comparisons. The two settings differ enough for this repetition to be informative about the architectures under more than one kind of input.

Some of the lower rankings change. On the Finnish Hockey test set, SSMT records 36.59 chrF++ and 15.54 BLEU, below SSPG on both and below the ordinary pointer generator on BLEU. That differs from its T2X result, where it exceeds the from-scratch systems for these overlap metrics. The Finnish multilingual results are also weaker than the strongest from-scratch system. On the Finnish test set, mT5-base scores 28.18 chrF++ and 8.39 BLEU, while mT5-large scores 32.70 chrF++ and 13.40 BLEU.

The Finnish evaluation reports sentence overlap. The content analysis described for T2X depends on its particular triple structure and references, so the evidence for agreement between the two experiments concerns the automatic text metrics. Within that scope, the findings show that learning segments jointly with copying can be useful when the data and target language change, and that the bilingual BPE starting point is the strongest of the tested transfer approaches on each benchmark.

Measuring what a T2X sentence says

The T2X content evaluation breaks the fact into its subject, object, and relation. For the entities, the first step checks whether the source string appears in the reference. If the string occurs there, the evaluation treats this as a case where copying is appropriate. If the string is absent, the evaluation treats the entity as one that should be translated. These decisions are made separately for the subject and the object. A single sentence can therefore involve a source name that should be preserved and a geographical name that should be rendered in isiXhosa.

This is an extraction task because the evaluator tries to recover the relevant entity information from the generated text. The paper reports precision, recall, and F1 for the subject, then does the same for the object. Precision concerns the correctness of what the procedure identifies. Recall concerns how much of the expected material is recovered. F1 brings the two aspects together. A system that regularly tries to preserve source strings may recover many expected forms while also carrying over English strings in cases where the reference indicates an isiXhosa form. The separate precision and recall columns reveal patterns that the combined score can compress. Information extraction

The relation evaluation works differently because the system generally has to express a relation in descriptive prose. The authors fine-tuned AfroXLMR-large to identify the relation from a reference sentence. It achieves 85% held-out accuracy on the relation prediction task. They then apply this classifier to each system's T2X test outputs and compare its predictions with the relations in the corresponding input triples. The resulting accuracy estimates how often the appropriate relation can be recovered. It reflects the performance of a learned evaluator as well as what the generated sentences contain.

SSPG has the strongest entity F1 within the from-scratch group on the T2X test set. It scores 80.91 for subjects and 80.36 for objects. The pointer generator has 67.10 and 75.86, respectively. The segmental decoder without copying has 80.16 on subject F1 and 65.09 on object F1. This last comparison shows why the paper reports the two fields separately. In these results the changes between the segmental systems are especially visible for objects. The source fields can place different demands on copying or translation, and a single entity score would make it harder to see where the systems diverge.

For SSPG, T2X test subject precision is 74.83 and subject recall is 88.07. Object precision is 75.42 and object recall is 85.99. The authors read the lower precision alongside the higher recall as a sign of some overcopying. Copying gives the decoder direct access to enough of the source that it can recover many names. The same facility can lead it to use English material when the reference calls for an isiXhosa form. The F1 results show that SSPG balances these considerations better than the other systems trained from scratch under the paper's entity check.

The from-scratch ranking reverses on relation accuracy. The pointer generator records 75.38 on the T2X test set and SSPG records 70.57. The authors connect this to the kind of text that conveys a relation, such as the isiXhosa expression indicating that a person is a leader. Their analysis suggests that BPE units are adequate for many such descriptive phrases. SSPG's advantages are clearer where it must preserve the letters of an entity while adapting the surrounding form. A higher score on the entities and higher reference overlap can therefore accompany a lower estimate of relation accuracy.

The fine-tuned translation systems exhibit a similar division. SSMT leads the T2X test entity results with 81.87 subject F1 and 83.37 object F1. The BPE variant records 78.75 and 80.65 on those measures, while leading relation accuracy at 87.69. SSMT records 83.78 for relation accuracy. This gives the segmental translation system the strongest combined entity precision and recall even though BPE MT leads every overlap column. The paper interprets that pattern as consistent with segmental processing being useful for the changes needed in entity forms. The tasks measured by the entity and relation evaluations each capture a different part of faithful generation.

What the ablations show

Copying depends on how the decoder uses it

The main ablation uses T2X validation scores to compare segmental systems with and without copying under each of the two decoding procedures. The ordinary BPE pointer generator provides a further reference point. It has copying and ordinary beam search, with BPE fixing the generation units. Comparing the paired segmental rows makes it possible to examine the association between copying and the way the search ranks candidates. Comparing all of them with the pointer generator establishes whether the extra machinery improves on a simpler system in this setting.

T2X validation chrF++ for segmental copy and decoding settings

The copy-equipped segmental decoder performs best when each route proposes candidates separately.

T2X validation chrF++ for segmental copy and decoding settingsCopy with dynamic decoding: 43.21Copy with dynamic decoding43.21No copy with dynamic decoding: 46.84No copy with dynamic decoding46.84No copy with unmixed decoding: 47.11No copy with unmixed decoding47.11Copy with unmixed decoding (SSPG) (this paper): 49.41Copy with unmixed decoding (SSPG) (thispaper)49.41
The numbers
System or settingchrF++
Copy with dynamic decoding43.21
No copy with dynamic decoding46.84
No copy with unmixed decoding47.11
Copy with unmixed decoding (SSPG) (this paper)49.41

The highest T2X validation scores in the ablation belong to SSPG with copying and unmixed decoding. It reaches 49.41 chrF++ and 20.35 BLEU. With copying and dynamic decoding, the segmental system scores 43.21 chrF++ and 14.16 BLEU. The copy route gives the system a representation of what it can reproduce from the source, while the decoding procedure governs how a candidate from that route competes with other ways of extending the sentence. The paired scores show how strongly the benefit of copying depends on that competition in the tested configurations.

Without copying, the T2X validation comparison is less clear-cut. Unmixed decoding scores 47.11 chrF++ and 16.87 BLEU. Dynamic decoding scores 46.84 chrF++ and 17.54 BLEU. ChrF++ gives the small lead to unmixed decoding within that pair, while BLEU favours dynamic decoding. This pattern helps locate the main effect. The decisive validation advantage appears when unmixed decoding is paired with the copy mechanism. The results for the two non-copying variants provide weaker evidence of a general preference between the decoding procedures.

The conventional pointer generator reaches 48.25 chrF++ and 18.81 BLEU on the same validation split. Both of the segmental variants without copying trail it on both measures. This fits the paper's interpretation that access to the input strings is an important part of the task. A better way to divide an output into segments gives the system flexibility, but the pointer generator already benefits from being able to reproduce a rare name directly. SSPG's strongest configuration brings the two capabilities together and uses search to give the copy route an effective role.

The comparisons also qualify the automatic results for the translation variants. BPE MT has higher reference overlap than SSMT on both datasets, even though the latter learns its output segmentation. The authors take the T2X ablation as supporting a case for learned segmentation in combination with copying. The validation experiment demonstrates that interaction within the tested segmental architecture, while the translation results compare systems with distinct pretrained setups. Both observations matter when assessing what can be attributed to the segmentation choice itself.

The errors show what the scores are sensitive to

The paper's examples identify several ways an entity can go wrong. When the record describes Cape Town as the capital of South Africa, the reference uses isiXhosa forms for both places. SSPG writes the English names into an isiXhosa sentence. This preserves recognisable places and a plausible relation statement, but the generated entity strings differ from the forms the evaluation expects. The example illustrates why copying is sometimes an error even when it reproduces the input characters accurately.

A different failure occurs in the football example about Christian Panucci and Inter Milan. The pointer generator produces altered spellings of both names. In this case, the desired forms preserve the names, and SSPG and BPE MT produce those forms in the example. The changes in the pointer generator output arise inside the entities. A sentence can consequently be well enough formed for a reader to recognise that it describes a player and club while carrying unreliable identifiers for both. That distinction matters when the value of generating from structured data is to keep the identities in the record intact.

Other examples probe how a name fits into a written word. The paper shows pointer-generator outputs that alter part of Norbert Lammert's name or part of Dublin. It also shows an example involving the form attached to William M.O. Dawson and the spacing in the initials. These cases focus attention on the boundary between output grammar and source material. A decoder has to carry a string across accurately while deciding what goes immediately before it and how the resulting surface form is written. The authors observe that SSPG appears to handle this kind of combination better in their qualitative examples.

The Canada example shows how references and entity decisions can also interact. The references use an isiXhosa form of the country name and express the language relation with two different sentence structures. The showcased outputs use the English country string with grammatical material around it. They still communicate that English is spoken there. The example brings together two findings from the quantitative results: systems can recover the meaning of the relation while making a different decision about a name, and accessible grammatical pieces can attach even when the choice of name form is unsuitable.

These examples give the aggregate results a linguistic interpretation. The pointer generator's stronger relation accuracy among from-scratch systems is compatible with its visible difficulty reproducing parts of names. SSPG's higher entity F1 is compatible with examples of overcopying. The analysis connects those observations to concrete differences in how a decoder can build a word, draw on an existing name, or generate an isiXhosa equivalent. The examples illustrate the kinds of errors behind the measurements, while the split-level results describe how the tested systems compare across the corpus.

Limitations

Limits the authors identify

The authors restrict their generalisation claim to the linguistic and experimental setting they tested. T2X and Finnish Hockey cover two languages and different structured inputs, but both produce relatively short descriptions. The recurrence of the main overlap ranking supports a result across those settings. It leaves the performance of SSPG on other languages and differently structured problems open. Generating several sentences from interacting records, for instance, would place additional demands on content choice and organisation beyond identifying how to express one relation or describe an event in one sentence.

The computational cost of training SSPG is another stated limit. Its dynamic program sums over possible segmentations, so increasing the maximum segment length changes the amount of computation. Training the final SSPG configuration on one NVIDIA A100 takes about four hours, with segments capped at five characters. The final pointer generator takes 20 minutes. Those timings refer to the particular T2X configurations the paper reports. They make the cost concrete for the comparison from scratch and show why the length cap is a practical training setting as well as a choice about the pieces the decoder can consider.

The authors also identify a constraint inherited from the source material. The triples come from English WebNLG and predominantly concern Western people, places, and events. Some of their claims may be biased, outdated, or factually wrong. Generating fluent isiXhosa from a record carries that record's content into the output, and uneven coverage can leave the generator with less evidence about names or events outside the dominant material. The paper highlights the possibility of weaker performance on non-Western subjects and sees the source composition as relevant to how the released dataset is used.

Copying can support unfamiliar named entities, but the paper also reports that generated text sometimes contains incorrect entities even with a copy mechanism. The decoder remains responsible for which token it copies and when it uses a generated alternative. The mistake can therefore be a changed string, a wrong name, or the use of English where the appropriate form is in isiXhosa. The authors acknowledge this as a limitation on the reliability of the outputs. Their content evaluation makes it possible to observe aspects of that problem alongside the gains in reference overlap.

Limits visible in the evaluation design

The corpus design gives T2X breadth across relations at the cost of leaving out the multi-triple examples of its parent dataset. The breadth supports questions about expressing different kinds of facts and handling names across domains. The experimental evidence is correspondingly about verbalisation at the single-fact level. Tasks that require deciding how many facts to mention, combining several relations into a coherent paragraph, or resolving references to an entity across sentences would require separate tests. Finnish Hockey adds more structured fields in the input, while still providing one aligned sentence as output.

The held-out categories also warrant a precise reading. Their inclusion makes the validation and test splits broader than the categories represented in training. The aggregate test numbers combine those examples with examples from elsewhere in the dataset. They establish performance on the combined split. A category-specific comparison would be needed to determine how much of a system's advantage carries over to the category types that were withheld. In the same way, the paper's entity examples illustrate what happens with particular names and forms, while the aggregate scores give a benchmark-wide view.

The reference-based decision about whether to copy an entity is a practical approximation. It assigns a copy target whenever the corresponding source string occurs in the reference, and treats the absence of that string as a signal to translate. The evidence available for that decision depends on the reference forms. Where multiple expressions are acceptable, a reference can support some of them explicitly and leave others unevaluated. The method is useful for distinguishing recurring copying and translation behaviours across systems. Its judgements should be read in relation to the actual reference strings and the linguistic variation represented there.

Relation accuracy is also indirect. The classifier's 85% held-out accuracy concerns identifying relations in reference text. Outputs from the tested systems can contain spelling problems, unusual expressions, or malformed grammatical constructions. Any system may be penalised when the classifier fails to recognise a relation that a fluent reader could recover, and it may receive credit when a cue makes the intended class easy to predict despite a problem elsewhere in the sentence. The T2X content scores estimate the recoverability of particular parts of the input fact under the proposed evaluation. Human judgement of fluency or factual adequacy would address additional questions.

Finally, the transfer results compare the available pretrained systems as complete starting points. Bilingual translation and multilingual pretraining differ in their languages, objectives, and exposure to isiXhosa. The BPE and segmental translation variants also have their own tokenisation and fine-tuning settings. The strongest results show what happened when the authors adapted these systems on the chosen benchmarks. A study matching their training evidence and varying one factor at a time would be needed to distinguish the effects of language exposure from the effects of training objective or architecture. The present comparison establishes which starting points performed best under the paper's conditions.

What came after

The 2026 work MzansiText and MzansiLM cites T2X and introduces an open corpus and a decoder-only system for South African languages. It shares T2X's concern with the availability of resources for those languages. T2X addresses that concern with a supervised collection in which isiXhosa sentences are tied to structured facts. The later work approaches it through a corpus for South African languages and a different kind of language technology. The citation connects the projects at that level. The title and citation alone leave open whether the later work reused the T2X triples, its entity and relation evaluation, or SSPG's segmental decoder. MzansiText and MzansiLM

Cite

Cite as Francois Meyer and Jan Buys. 2024. Triples-to-isiXhosa (T2X): Addressing the Challenges of Low-Resource Agglutinative Data-to-Text Generation. Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024).

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

@inproceedings{meyer2024triples,
  title = {{Triples-to-isiXhosa (T2X): Addressing the Challenges of Low-Resource Agglutinative Data-to-Text Generation}},
  author = {Francois Meyer and Jan Buys},
  booktitle = {Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024)},
  year = {2024},
  url = {https://aclanthology.org/2024.lrec-main.1464/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/meyer-2024-triples-isixhosa-t2x-addressing-challenges/