Elamur Research

Building a Task-oriented Dialog System for Languages with no Training Data: the Case for Basque

Paper · 2020 · Maddalen López de Lacalle, Xabier Saralegi and Iñaki San Vicente

Summary

An assistant that handles reminders must recognize what the user wants and identify the words that supply the details. A request about taking out the garbage on Thursday, for instance, calls for setting a reminder, and it gives the assistant an action and a time. Learning to make those distinctions normally requires examples marked with the purpose of each request and the location of its details. López de Lacalle and colleagues ask how to build that part of a Basque assistant when no such training collection has been prepared by hand. They study intent classification, which assigns a purpose to a whole request, and slot filling, which finds and labels the relevant spans. Both are parts of the language understanding component of task-oriented dialogue systems.

The authors turn a corrected collection of labeled Spanish requests into Basque training material. They translate each request, look for word correspondences between the Spanish sentence and its Basque translation, and use those correspondences to decide which Basque words inherit the Spanish slot labels. They prepare the Basque test material differently. A professional translator translates English requests, and a native speaker marks the arguments in the resulting Basque text. This gives the authors a way to evaluate predictors trained on automatically created labels against human annotation. They also test whether a multilingual encoder can learn the tasks from English or Spanish examples alone and then apply what it learned to Basque.

The two tasks favor different training mixtures. On the manually prepared Basque test set, multilingual BERT fine-tuned with projected Basque data alone reaches 78.56 micro F1 for intent classification. Using Basque, English and Spanish training examples together raises the result to 81.56 micro F1. For slot filling, training on projected Basque alone gives the highest micro F1, 76.77. Adding English or Spanish improves macro F1, which gives each slot type equal weight, while lowering the pooled score. The authors connect this pattern to better recognition of less common slots under multilingual training and stronger performance on common slots under Basque-only training. Direct transfer from English or Spanish alone scores much lower on both tasks.

The paper makes the Basque datasets available and identifies annotation quality and the amount of Basque in multilingual pretraining as areas for further work. The experiments establish what the projected data can support across alarm, reminder and weather requests. They also show why the usefulness of additional languages depends on what the system has to predict and how its errors are counted.

Deep dive: Building a Task-oriented Dialog System for Languages with no Training Data: the Case for Basque

The paper tests how translated training data and cross-language transfer help a Basque assistant recognize requests and extract their details. · about 32 minutes to read

The problem and its context

A request contains a purpose and its arguments

When someone asks for a reminder, the assistant has to turn a short stretch of language into information that can be acted on. In the paper’s garbage example, recognizing the reminder request answers the broad question of what to do. The phrase naming the chore tells the assistant what to remind the person about. The phrase naming Thursday tells it when. An assistant can get the broad purpose right and still misunderstand the request if it loses the time or marks the wrong words as the task.

The paper calls the broad purpose the intent and each typed detail a slot. An intent annotation attaches to an entire utterance, the unit in which the user states the request. A slot annotation attaches to words inside it. The words covered by a slot are its span, and the slot type says how to interpret the information in that span. The same utterance can contain arguments of different types. Preparing data for slot filling therefore involves choosing both the span boundaries and the label to assign within them. This is a form of linguistic annotation.

These outputs correspond to different prediction problems. Intent classification asks which member of a fixed inventory applies to the whole utterance. Slot filling asks for a sequence of labels in the order of the words or tokens. As the prediction moves through a reminder request, it may encounter words outside any argument, then the beginning of the action phrase, then its continuation, then the time expression. In classification, the position of the evidence can matter to the predictor, but the output is a single category. In sequence labeling, positions are themselves part of the answer.

The authors point out that assistant requests are frequently short and offer little context. In their account, older rule-based and conventional learning approaches were less effective when the user’s intent depended on implicit cues or when the request did not follow the expected grammatical form. Neural approaches offered ways to learn the patterns from examples, but their reliance on substantial quantities of labeled data made the same advance harder to use across languages. Supporting another language could mean commissioning another collection, then paying for both whole-utterance labels and detailed span annotation.

The datasets the paper discusses illustrate why coverage matters alongside the volume of training material. There were collections for airline travel and restaurant booking as well as collections spanning multiple domains, but English predominated. An existing set can help define which intents an assistant should understand and which details it should extract. A language team still needs a way to connect those definitions to the expressions its users will employ. For the Basque study, the authors wanted examples from everyday assistant functions and a source language for which a Spanish-to-Basque translation system was available.

The approaches the authors inherited

As the paper recounts it, earlier work treated intent detection as utterance classification with techniques including support vector machines and, subsequently, neural networks. Early slot-filling work used methods such as conditional random fields, which can score a sequence of labels with reference to how neighboring labels fit together. Other earlier approaches combined a statistical sequence method with a grammar. Later neural work explored convolutional and recurrent architectures and investigated whether an assistant could learn the intent and the slots together.

That joint approach reflects a relationship visible in the reminder example. Knowing that the user wants a reminder gives a reason to look for an action and a time. Identifying a task phrase and a date can in turn provide evidence about the intent. The related-work discussion describes recurrent and attention-based efforts to learn dependencies of this kind. It singles out the work on slot gating for connecting the information used to decide the intent with the information used to predict slots. The Basque experiments train the tasks separately, making it possible to compare how each responds to the same broad choices about training languages. The earlier joint approach is described in Slot-Gated Modeling for Joint Slot Filling and Intent Prediction.

A separate body of work addressed the scarcity of annotation through projection. If two sentences are translations, a researcher can try to carry a label on source-language words over to the words expressing the same information in the target language. The paper traces this approach to work that started with labeled English and used aligned texts to create training material for tasks including part-of-speech tagging, entity recognition and inflectional analysis. An important premise is that the expensive linguistic judgments already present in a source collection can be reused if corresponding material can be found on the other side. The paper attributes this approach to Inducing Multilingual Text Analysis Tools via Robust Projection across Aligned Corpora.

Later variants of that earlier research used parallel corpora for named entity recognition and dependency parsing, among other sequence and structure prediction tasks. The authors describe naturally available parallel text as the more common starting point in that literature. Some work used machine translation to produce the text needed for transfer. Once a translation was available, another established option was to align its words using a statistical system and use the resulting links to transfer annotations. The Basque study applies that separation to the particular phrases an assistant needs to recover.

The closest precedent is Schuster and colleagues’ Cross-lingual Transfer Learning for Multilingual Task Oriented Dialog, which supplied the dataset adapted in the Basque study. That earlier work compared translated data, cross-lingual pretrained embeddings and representations from a multilingual translation encoder. It used translation attention to determine where slot annotations should land. López de Lacalle and colleagues point to earlier research that found differences between attention-based correspondences and human alignments. They therefore make word alignment a separate operation after translation, using a statistical aligner trained for the language pair. They also add Basque as a target and use different encoders in their task experiments.

What had to be available in Basque

The absence of native training data defines which resource the authors are missing. They have parallel text for translation and alignment, a multilingual encoder that includes Basque in pretraining, and native Basque contextual representations for the Flair experiments. They can also obtain professional translation and human annotation for a test set. What they lack is a manually prepared Basque training collection pairing assistant requests with the intended categories and spans.

This distinction makes the study a controlled question about where to put the cross-language work. Translation and projection perform that work before task training by providing Basque input and automatically derived labels. Direct transfer puts the burden on the multilingual encoder at prediction time, after task training in English or Spanish. Mixing language datasets uses projected Basque to connect the categories to target-language phrasing and uses native source-language examples to broaden the labeled evidence. Those are different uses of the same categories, with different requirements on the available resources.

Basque makes the comparison substantive because the paper describes its morphology as rich and its syntax as different from the major languages under discussion. The linguistic differences affect more than the words that indicate an intent. They can affect where a slot appears, how much text it occupies and whether some of its meaning is expressed by part of a word. Translation has to convey the underlying request. Projection must also find where the translated request encodes the detail, and direct transfer must learn to recognize those details without labeled Basque task examples.

The method, step by step

Define the requests and keep evaluation separate

The starting collection is the Facebook Multilingual Task Oriented Dataset, abbreviated FMTOD. Its utterances were prepared and annotated in English, Spanish and Thai. The Basque study uses English and Spanish in its experiments, with Spanish supplying the text for automatic projection. The tasks cover alarms, reminders and weather. FMTOD defines 12 intent types and 11 slot types across those domains. These inventories give the authors categories to preserve when they prepare Basque data and a common set of outputs when they train on different languages.

The first preparation step is a review of the Spanish material. The authors found problems with spelling, word forms, syntax and vocabulary in the existing Spanish text. They reviewed the training and development data and part of the test data, correcting utterances and annotations where needed. They discarded utterances with many problems to reduce the amount of manual correction, and they did not review the entire test set. They call the corrected Spanish collection FMTODesv2. This work matters to projection because an error in a Spanish utterance or its labels can enter the Basque derivative before the translation or aligner has made a decision of its own.

Spanish is used to generate the Basque training and development splits. The test set takes a different route. The authors describe sampling English requests by intent, sending English utterances to a professional translator, and having a native speaker annotate the arguments in Basque. Their dataset counts list 1,086 utterances for the resulting manual Basque test split. This procedure allows the annotator to mark spans where the Basque wording actually puts them. It avoids using the word aligner to decide the labels against which that same projection pipeline is ultimately evaluated.

The difference between a development set and a test set is consequential here. The development set helps choose training settings. Its Basque text and slot labels come from the automatic Spanish projection procedure, just like the training data. Test evaluation uses Basque text and slot annotations prepared by people. The study therefore compares training choices on a human-prepared target while selecting settings with the sort of automatic data the authors can afford in greater quantity.

Translate each utterance as a whole

The first operation in generating the Basque training material is to translate the Spanish utterance. The paper uses a neural translation system based on the Transformer. It processes the utterance as a whole, which lets the translation express the request in Basque word order and with Basque word forms. To train this translation system, the authors used a parallel corpus containing 10 million segments. A parallel corpus supplies corresponding pieces of text in the two languages. The paper records a translation score of 23.02 on a translation test of 5,000 segments. That measurement concerns the translator, whose performance the authors report using BLEU.

A whole-utterance intent travels with the translated example. The category comes from the annotated Spanish request, so its position in the string is irrelevant. The assumption is that the translation preserves the request well enough for the original category to remain correct. Spanish and Basque can put the strongest cue in different places and the intended label can still apply. A translation that changes the purpose of a request can undermine that assumption even if the result reads fluently.

Slots add an operation that intent classification can avoid. The source annotation identifies a range of words in Spanish. The translation can move the content of that range, express it with a different number of words, or combine it with grammatical information inside a word. Even a translation that preserves the meaning can place a correct slot at a different offset. This is why the full translated utterance and its source intent give the researchers an intent example, while supervision for span prediction also requires correspondences within the translated pair.

Find corresponding words in both directions

The second operation is word alignment. In this setting an alignment links a position in the Spanish utterance with a position in its Basque translation where corresponding material appears. The links give the projection process something finer than the knowledge that the sentences express the same request. In the reminder example, the aim is to identify where the Basque utterance expresses the chore and where it expresses the day, so that the action and time labels travel to their respective phrases.

The authors train directional aligners using the IBM Model 2 variant associated with Dyer and colleagues. They fit one for Spanish as source and Basque as target, and another with the languages reversed. The alignment training corpus contains 6 million parallel segments. These counts describe the data used to learn word correspondences. The utterances being labeled at this stage are the much smaller set of assistant requests and their translations.

A Spanish-to-Basque alignment and a Basque-to-Spanish alignment can suggest different links for the same sentence pair. The authors reconcile those directional outputs with the heuristic named grow-diag-final-and. It serves as the symmetrization step, turning the two directional views into the alignment used for label transfer. The important distinction for following the experiment is that translation produces the Basque sentence, and the separately trained alignment procedure supplies the links. The authors do not extract the links from the translator’s attention weights.

That design separates the goal of producing a usable Basque utterance from the goal of locating its labeled details. A translator can render an action in an idiomatic way without leaving a simple correspondence between each source word and each word in the result. The aligner must nevertheless find links usable for projection. Likewise, a link plausible in isolation can be insufficient for slot filling if it reaches only part of the translated argument. The training example eventually needs a span, so the usefulness of a set of links depends on how well they identify the full phrase.

Transfer the labels and repair the tag sequence

The third operation uses the links to move the slot annotations. Where Spanish words belong to a slot, their aligned Basque words receive the corresponding label information. The paper represents slots using BIO tags. A beginning tag starts a span of a particular type, an inside tag continues a span of that type, and an outside tag marks material outside a slot. This representation lets an ordered list of tags encode both the kind of argument and its boundaries.

Directly carrying tags across word links can produce a sequence with an inconsistency. For example, the source word tagged as the beginning of a slot may align differently from the words tagged as its continuation. An inside tag can then appear in an unexpected place in the target sequence. The authors apply an automatic BIO repair after projection. The repair addresses how the tags fit together as a sequence. An argument that was translated incorrectly or inadequately aligned can still have a formally valid tag sequence, so these two kinds of quality have to be kept distinct.

The paper’s projection diagram illustrates the progression from a source example to its target annotation. The description names translation, word alignment, label projection and automatic BIO repair as the operations that produce the data. It does not give a detailed rule for each possible conflict among links or tags. Its account identifies the point at which Spanish annotation is converted into Basque training supervision, while the held-out task results show the performance of the complete procedure.

From labeled Spanish requests to Basque training data

The steps in order.

From labeled Spanish requests to Basque training dataStep 1: Review Spanish utterances and annotations1. Review Spanish utterances and annotationsStep 2: Translate training and development requests into Basque2. Translate training and development requests into BasqueStep 3: Align Spanish and Basque words in both directions3. Align Spanish and Basque words in both directionsStep 4: Combine the directional word alignments4. Combine the directional word alignmentsStep 5: Carry intent categories over to translated requests5. Carry intent categories over to translated requestsStep 6: Project slot labels along the word links6. Project slot labels along the word linksStep 7: Repair inconsistent Basque BIO sequences7. Repair inconsistent Basque BIO sequences

Choose the training languages

The authors compare three ways of using labeled task data. In projected Basque training, they learn from Basque utterances produced from the corrected Spanish splits. This condition is described as monolingual because of the language of the task examples. Multilingual BERT can still provide the underlying representations, and the data preparation still draws on Spanish. For both tasks, this condition gives the system Basque wording paired with automatically assigned task labels.

In direct transfer, the authors fine-tune the multilingual encoder using English alone or Spanish alone and then evaluate the resulting predictor on Basque. Fine-tuning means adapting a pretrained encoder to a specific task using labeled examples. Here the labeled examples teach the categories and the prediction objective, while pretraining supplies representations shared across the languages covered by the encoder. Basque appears in the multilingual pretraining, but no Basque task examples are included in either direct-transfer training condition. This is the specific role of fine-tuning in the comparison.

In mixed-language training, projected Basque examples are available alongside English examples, Spanish examples, or both where tested. The projected examples give the predictor Basque expressions for the task. The additional examples give it more labeled utterances, in other languages, for the same categories. For intent classification the paper reports both bilingual combinations and a combination of English, Spanish and Basque. The slot-filling transfer table reports each of the bilingual mixtures. The comparison therefore asks whether source-language data helps once the predictor has access to labeled Basque wording at task-training time.

The choice of languages changes more than the vocabulary in the training set. English and corrected Spanish contribute different numbers of examples. Spanish is also the source of the projected Basque data, a relationship that can affect what kinds of coverage the combined data supplies. The experiment measures the usefulness of the actual collections as combined. The mixtures give practical comparisons for this benchmark, while questions about the relative contributions of language, training volume and example diversity require additional controls.

Turn an utterance into an intent prediction

For intent classification, the multilingual BERT setup follows the original classification procedure in BERT. The authors use the representation at the special [CLS] position as the input to the classification layer. That position provides a representation for a decision about the utterance as a whole. The output layer uses it to predict the intent category. The word positions inside the utterance contribute to the representation, while the decision remains one label for the request.

The paper describes multilingual BERT as pretrained on corpora for 104 languages, among them Basque. The same pretrained encoder can therefore be used in the Basque projection, direct-transfer and mixed-data comparisons. A Basque-only fine-tuning condition and an English-only fine-tuning condition start with a multilingual representation but learn the task from different sentences. The authors also report an English monolingual BERT comparison where that option is available. The Basque comparisons use multilingual BERT because the authors report having no monolingual Basque BERT counterpart.

The alternative intent classifier uses Flair and a bidirectional long short-term memory network, abbreviated BiLSTM. Flair provides contextual representations learned from character sequences. Contextual means that the representation for a word can depend on where it occurs and what surrounds it. The authors combine forward and backward Flair representations, giving the classifier context from the directions on either side of each position. Flair’s availability in Basque makes this a comparison with native contextual representations. The earlier approach is described in Contextual String Embeddings for Sequence Labeling.

For the Flair intent system, the BiLSTM reads those representations and produces a representation of the full utterance. A linear output layer uses it to make the class prediction. The paper specifies a single recurrent layer of size 128, with word reprojection and dropout of 0.3068. Word reprojection transforms the word representations before they are processed by the recurrent layer. Dropout is a training setting for limiting how heavily the network can rely on particular activations. The authors use the forward and backward Flair representations in all of these settings and leave additional combinations with static word embeddings unexplored.

Retain the sequence for slot prediction

The slot system needs a contextual representation at each relevant position because its output describes a span. In the Flair setup, the authors again feed stacked forward and backward representations into a BiLSTM. Here the recurrent output goes to a conditional random field, or CRF, for sequence decoding. A decoder produces the final labels from the scores passed to it. The CRF can use the compatibility of neighboring tags as it chooses a sequence, which is useful when a continuation tag is expected to follow the beginning or continuation of a span of the same type.

The paper places this architecture in the tradition of combining bidirectional recurrent encoders and CRF decoding for sequence tagging. The recurrent layer provides context-dependent evidence about the current position, and the decoding layer evaluates tag choices in sequence. Earlier examples the authors cite are work on bidirectional LSTM–CRF sequence tagging and end-to-end sequence labeling with recurrent and convolutional components.

For the BERT slot experiments, the authors retain the token-level representations and feed them to a CRF. The same decision about the appropriate output unit applies across the two architectures. An intent classifier needs a representation from which to choose the request’s category. A slot tagger needs a sequence with enough positional information to identify the words that express a time, an action or another detail. Multilingual BERT provides the representations used for the direct-transfer and mixed-language comparisons on this task as well.

Automatic repair during projection and CRF decoding during tagging occur at different points. Repair acts on the labels provided as supervision for Basque training. The CRF acts when the tagger predicts a sequence from an utterance. A decoder that favors coherent spans can learn from imperfect examples, but its ability to produce a well-formed sequence does not independently establish whether the projected labels describe the correct details. The human annotations in the Basque test set provide the basis for scoring those predictions.

Set training duration from development results

In the experiments for both tasks, BERT is fine-tuned with a batch size of 16 and a learning rate of 2e-5. The learning rate controls the size of the parameter updates, while the batch size gives the number of examples grouped for an update. The paper chooses training duration using development results, seeking a standard deviation in micro F1 below 1 across the runs. An epoch is a pass through the training data. Since the training collections differ in size, the number of epochs describes passes through a collection and does not by itself tell how many updates were made across conditions.

For intent classification, the authors choose 15 epochs for systems that include Basque training data, 3 for training solely on English, and 10 for training solely on Spanish. They base those choices on the monolingual development experiments. They suggest that representing Basque less extensively in multilingual BERT may help explain why more fine-tuning is needed in settings that include Basque. The training schedules are reported settings, while the explanation is the authors’ interpretation. For slot filling, the systems they report attain their selected development performance after 5 epochs.

The Flair experiments use a maximum of 50 epochs, a learning rate of 0.1, a minibatch size of 64 and patience of 3. Patience concerns how long the training procedure waits for development performance to improve before stopping. The paper uses the same Flair hyper-parameter settings across its intent comparisons and describes the slot experiments as using those settings as well. The scores it tabulates for both tasks are averages across 5 runs with random initialization.

Experiments and results

The dataset splits and the scoring

The English collection, FMTODen, contains 30,521 training utterances, 4,181 development utterances and 8,621 test utterances. The corrected Spanish FMTODesv2 contains 3,418 training utterances, 1,900 development utterances and 1,348 test utterances. The Basque collection, FMTODeu, contains 3,418 projected training utterances, 1,900 projected development utterances and 1,086 manually prepared test utterances. The matching Spanish and Basque training and development sizes reflect the use of corresponding Spanish utterances as the source for the automatic Basque examples.

The paper uses the monolingual comparisons to establish how the architectures perform when their training and test utterances are in the same language. English offers both English monolingual BERT and multilingual BERT, as well as Flair. The Spanish and Basque rows show multilingual BERT and Flair. The authors also give results from Schuster and colleagues as historical reference points for English and Spanish. The different training-language conditions for evaluation on Basque all use multilingual BERT. Within those tables, the projected Basque condition is the reference for judging direct transfer and mixed-language training.

F1 combines precision and recall. Precision asks how frequently a predicted label or span is correct. Recall asks how frequently the system finds the labels or spans that the annotations require. Micro F1 pools decisions before computing the score, giving classes with many examples greater influence. Macro F1 gives each class equal weight by averaging class-level scores. The distinction matters whenever a predictor improves for some classes and declines for others. For slot filling the paper uses the official CoNLL evaluation script, which evaluates recovery of the labeled spans. Predicting the right slot type with a boundary that leaves out part of the annotated span can therefore hurt the score.

The paper sometimes uses accuracy loosely when describing its conclusions. The detailed intent and slot tables identify the scores as F1 and distinguish micro from macro averaging. The comparisons below use those table metrics. Scores on English and Spanish concern their respective test sets, while the direct-transfer and mixed-language scores concern the manual Basque test set. The language used for training and the language used for evaluation are both essential to understanding the transfer results.

Intent classification within each language

On the English test set, English monolingual BERT and multilingual BERT each score 99.23 micro F1. Flair scores 99.05, and the paper lists 99.11 for Schuster and colleagues’ earlier English result. For this combination of dataset and task, the multilingual encoder matches its English-only counterpart. The numbers also establish strong source-language performance for intent classification before the study asks how effectively source-language supervision transfers to Basque.

On the corrected Spanish test set, multilingual BERT scores 98.03 micro F1 and Flair scores 96.95. The table gives 97.61 as the earlier Spanish result. The current Spanish data have undergone review and correction, including the removal of some utterances. The comparison to the earlier number gives context for the level of performance, while the current BERT and Flair scores are the direct comparison on the same corrected collection.

In Basque, the monolingual task-training condition uses projected utterances and evaluates on the manual Basque test. Multilingual BERT gives 78.56 micro F1, and Flair gives 76.21. The Basque Flair representation can be trained natively and still face the same dependence on automatically labeled task examples. Multilingual BERT comes out ahead for this comparison even though, as the authors emphasize, Basque has a small presence within its pretraining.

Intent classification with direct transfer and mixed data

Fine-tuning multilingual BERT on English alone gives 31.48 micro F1 and 18.84 macro F1 on the Basque intent test. Spanish-only fine-tuning gives 29.44 micro F1 and 18.95 macro F1. Both results are well below the projected Basque condition, which scores 78.56 micro F1 and 68.31 macro F1. Spanish has a privileged role in producing the projected examples, but that advantage belongs to the data-generation pipeline. It does not appear as strong performance when the predictor encounters Basque after learning the task on Spanish utterances alone.

Projected Basque plus Spanish gives 79.52 micro F1 and 71.48 macro F1 on the Basque intent test. Projected Basque plus English gives 81.01 micro F1 and 75.05 macro F1. Training with projected Basque, English and Spanish gives the highest reported scores, 81.56 micro F1 and 75.62 macro F1. Both measures favor the same ordering among the reported settings that include projected Basque. The improvements therefore appear in both the pooled assessment and the assessment that gives each intent category the same weight.

Intent classification by training language on the manual Basque test set

The highest micro F1 comes from combining projected Basque with English and Spanish.

Intent classification by training language on the manual Basque test setEnglish only: 31.48English only31.48Spanish only: 29.44Spanish only29.44Projected Basque only: 78.56Projected Basque only78.56Projected Basque and Spanish: 79.52Projected Basque and Spanish79.52Projected Basque and English: 81.01Projected Basque and English81.01Projected Basque, English and Spanish (this paper): 81.56Projected Basque, English and Spanish(this paper)81.56
The numbers
System or settingmicro F1
English only31.48
Spanish only29.44
Projected Basque only78.56
Projected Basque and Spanish79.52
Projected Basque and English81.01
Projected Basque, English and Spanish (this paper)81.56

The intent result gives the two sources of supervision different roles. Target-language task data are associated with the largest change in performance across these conditions. Once projected Basque is available, adding English or Spanish gives a further improvement under either averaging convention. This is evidence for using existing labeled collections alongside automatically translated requests under the paper’s setup. The comparison holds the evaluation language fixed, so the result concerns the usefulness of training choices for Basque rather than the relative difficulty of the English and Spanish test sets.

Slot filling within each language

On the English slot test, English monolingual BERT achieves 96.24 micro F1, multilingual BERT achieves 96.37, and Flair achieves 96.45. The earlier English result listed in the paper is 94.81. Here the English architecture comparisons are close, and their ordering differs from the intent results. Reading the task separately matters because its output includes boundaries and types throughout a sentence, even when an utterance-level decision would be straightforward.

On the corrected Spanish slot test, Flair gives 90.59 micro F1 and multilingual BERT gives 88.84. The earlier Spanish score reproduced in the paper is 82.96. In the comparison between the current Spanish systems, Flair is stronger on span recovery, while multilingual BERT was stronger on intent classification. Neither architecture leads across every language and output type in the monolingual task-training comparisons.

On the manually prepared Basque slot test, multilingual BERT fine-tuned on projected Basque gives 76.77 micro F1, compared with 70.89 for Flair. This is another comparison in which the underlying Basque labels are produced by translation and projection. Both systems have access to the same kind of task supervision, but the predictors use different representations and sequence architectures. The comparison measures their performance as complete configurations.

Slot filling with direct transfer and mixed data

On the manual Basque slot test, English-only fine-tuning yields 22.62 micro F1 and 25.05 macro F1. Spanish-only fine-tuning yields 22.84 micro F1 and 12.65 macro F1. The micro scores are close, whereas macro F1 gives a different picture of their relative performance across slot types. The Basque-only projected condition yields 76.77 micro F1 and 57.41 macro F1. As with intent classification, source-only task training performs much worse than training with projected Basque.

The bilingual mixtures produce a different pattern from the intent results. Projected Basque with Spanish gives 71.06 micro F1 and 62.69 macro F1. Projected Basque with English gives 74.04 micro F1 and 65.77 macro F1. The Basque-only condition has the best pooled score. The mixture with English has the highest macro score among the reported slot settings, and the mixture with Spanish also improves on the Basque-only macro result. The slot comparison contains no reported English, Spanish and Basque training row, so the strongest intent mixture has no matching slot result to compare.

Slot filling by training language on the manual Basque test set

Projected Basque alone gives the strongest pooled span score.

Slot filling by training language on the manual Basque test setEnglish only: 22.62English only22.62Spanish only: 22.84Spanish only22.84Projected Basque only (this paper): 76.77Projected Basque only (this paper)76.77Projected Basque and Spanish: 71.06Projected Basque and Spanish71.06Projected Basque and English: 74.04Projected Basque and English74.04
The numbers
System or settingmicro F1
English only22.62
Spanish only22.84
Projected Basque only (this paper)76.77
Projected Basque and Spanish71.06
Projected Basque and English74.04

Slot filling by training language with equal weight per Basque slot type

Adding English to projected Basque gives the highest average across slot types.

Slot filling by training language with equal weight per Basque slot typeEnglish only: 25.05English only25.05Spanish only: 12.65Spanish only12.65Projected Basque only: 57.41Projected Basque only57.41Projected Basque and Spanish: 62.69Projected Basque and Spanish62.69Projected Basque and English (this paper): 65.77Projected Basque and English (thispaper)65.77
The numbers
System or settingmacro F1
English only25.05
Spanish only12.65
Projected Basque only57.41
Projected Basque and Spanish62.69
Projected Basque and English (this paper)65.77

The choice of metric changes which slot system looks strongest because the two scores represent different distributions of errors. An evaluation dominated by the types that occur frequently favors the Basque-only training condition. An evaluation that asks how well the system does for a typical slot type, with each type weighted equally, favors the mixture with English. For intent classification, the same change of metric leaves the best training mixture in place. The paper’s results thus give separate answers for recognizing requests and extracting their details, even though the same assistant would rely on both.

What the ablations show

Training data are the main controlled comparison

The paper has no component-by-component ablation of its projection pipeline. Its main controlled comparisons vary the language of task training while using multilingual BERT and testing on the same Basque set. The strongest contrast is between source-only training and training with projected Basque. The direct-transfer conditions show what the encoder and the source-language labels can achieve without Basque task pairs. The projected condition shows what becomes possible when translated Basque requests are paired with task supervision, even though the examples have not been manually annotated for training.

There is also a comparison in the opposite direction. Starting with projected Basque, the authors add labeled data from a source language and examine what changes. In the intent results, both English and Spanish additions help under both averaging conventions. The combination of the two source languages attains the strongest scores. That establishes the usefulness of the particular combined collections. It cannot by itself identify whether the effect comes from training on another language, having more instances of the intents, encountering more ways of expressing them, or some combination of these.

Comparing English with Spanish gives a reason to keep that qualification in view. English contributes a much larger training collection than corrected Spanish. Spanish, in turn, is the origin of the Basque examples used in the projection condition, so its contribution overlaps with theirs at the level of source requests. The paper does not match the corpora for size or show how the effect changes when the content of the added utterances is held constant. Its results can rank the dataset choices it tests without establishing a general ranking of English and Spanish as languages for transfer.

The variant with projected Basque also changes how the language-specific task evidence is presented. It places Basque forms immediately next to the labels the predictor must learn. In a source-only condition, the encoder must supply transferable representations that make the learned decision useful on target-language forms. The low source-only results indicate that shared pretraining plus task supervision in these source languages is insufficient for strong Basque performance in this setup. The comparison cannot resolve how much of the remaining difficulty is due to syntax, morphology, pretraining coverage, or other differences between the examples.

Slot frequencies explain the metric split

The paper’s principal analysis of slot errors concerns the difference between common and less common types. It reports that projected Basque alone performs better for frequent slots including datetime, reminder/todo and reminder/noun. It identifies Reminder/recurring-period and Reminder/reference as examples of less common slots that do better with multilingual training. This gives a concrete explanation for why a decline in micro F1 can accompany an improvement in macro F1.

A common type contributes many opportunities to get a span right or wrong. If performance declines on several such types, the pooled score can fall even while a mixture becomes more effective on categories that contribute relatively few spans. In macro F1 each of those smaller categories has the same influence as a larger category. A gain for recurring periods can therefore matter as much to that average as a result for a much more frequent kind of time expression. The paper’s account of class behavior connects the change in aggregate scores with the types of arguments the assistant is being asked to find.

The analysis supports a difference in emphasis between the training regimes, but the paper does not establish that the mixture helps every infrequent class or hurts every frequent one. It names representative categories and presents aggregate scores, without giving a full class-by-class breakdown of precision, recall, and boundary errors for every condition. Consequently the evidence locates the main pattern at the level of frequency groups and examples. It leaves open whether the improvements for particular types come from recovering more spans, assigning more correct types, or making fewer spurious predictions.

Architecture comparisons give another view

The monolingual runs add a check on the suitability of the two architecture choices. In Basque, multilingual BERT leads Flair for both tasks. On English intent classification it matches the English monolingual BERT score, while the English slot scores are close across the configurations. In Spanish, which architecture leads depends on whether the output is an intent category or a span sequence. The Basque results therefore support the authors’ selection of multilingual BERT for transfer comparisons, while the source-language results show the importance of evaluating the relevant task.

The Flair and BERT comparisons do not isolate a single architectural ingredient. They differ in their pretrained representations, in how they encode the input and in how the prediction layers receive the representation. For slots they share the broad idea of sequence decoding with a CRF, but use different encoders to provide its inputs. The comparison establishes which full configuration does better on the given dataset and task. It cannot assign the score ordering to contextual character representations, an attention mechanism or exposure to other languages independently.

The paper also discusses alternative alignment methods in earlier work. Its choice to train a word aligner separately from the translator follows an argument about how to locate corresponding spans. No Basque experiment replaces the aligner with translation attention while holding the rest of the procedure fixed. Nor does a reported run remove BIO repair or compare the two directional aligners with the combined alignment. The classification and slot results show that the full projection pipeline supplies usable supervision. The contribution of each alignment and repair decision remains unmeasured.

Limitations

Limits the authors identify

The authors emphasize that Basque results still trail the English and Spanish results. Projected supervision makes training possible and can be improved by adding source data under some metrics, yet the strongest Basque test scores leave a substantial gap to the corresponding source-language scores. This is central to interpreting what they call competitive performance. The work shows a practical approach to a language without native training annotation for the benchmark, with meaningful room to improve prediction quality.

One source of difficulty they identify is morphological alignment. They propose separating Basque inflections to improve the correspondence used in annotation projection. A word-level link may enclose more material than the slot needs if a single Basque word expresses a labeled concept along with grammatical information that Spanish realizes separately. Changing the units available to the aligner could make such cases easier to represent. The paper leaves that proposal for future research, so its slot scores measure the current word-level procedure.

The authors also want to increase the amount of annotated data available for projection. They propose using neural translation to project English data into Spanish, enlarging the intermediate material from which they can work. The English collection is the largest in the study, while the Basque training collection is tied to the size of the corrected Spanish source. The proposal addresses that bottleneck. The experiments do not establish what the extra translation stage would do to the usefulness of the resulting labels.

A further limitation they name is the small presence of Basque in multilingual BERT. Their proposed response is to investigate multilingual pretraining with a better balance of Basque data. They also suggest that underrepresentation could be connected to the longer fine-tuning schedule used for intent settings with Basque. The present experiments use a fixed pretrained encoder across the relevant transfer comparisons. They show that the included Basque representation is useful, while the consequences of changing the pretraining distribution remain a question.

Limits that follow from the evaluation

The strongest evidence is about request interpretation in the tested domains. The inputs are utterances from alarm, reminder and weather categories, and the measured outputs are an intent label and slot spans. No experiment scores a completed dialogue, tracks whether the assistant correctly remembers information from earlier turns, or checks whether it carries out the requested action. A reminder utterance can receive the right broad classification and still fail at the level of execution. Conversely, a score on slot recovery cannot tell how a full assistant would handle an incomplete request through clarification. The paper evaluates components that would supply information to such behavior.

The manually prepared test is an important check on automatic annotation, but its requests come from translation. A professional translator can produce Basque wording and a native annotator can mark the spans independently of the alignment heuristic. The test still starts with English source requests and inherits the benchmark’s domains and inventory. A collection of requests initially produced in Basque could contain other styles of phrasing or a different distribution of intents and details. The reported numbers apply directly to the test as constructed.

The test preparation description leaves an accounting question. The paper describes randomly selecting 100 English utterances for each intent type, reports 1,348 English statements at the translation stage, and lists 1,086 manual Basque test items in its final dataset counts. It does not explain the transition between those reported quantities. The final test count is available for interpreting the experiments. The description gives less certainty about the precise relationship between the original sample and the final distribution of translated and annotated test items.

The training supervision likewise has several potential sources of error that the reported scores do not distinguish. A source utterance can carry an imperfect annotation, translation can change or omit a detail, alignment can link the wrong words, and the projected tag sequence can cover the wrong span while satisfying BIO conventions. The reported translation score measures the translation system on its own test. It supplies no direct estimate of how often a Spanish slot is correctly recovered in projected Basque training examples. The manual Basque test measures the final predictor after that training material has been used.

Direct transfer also has a specific scope. It is tested with multilingual BERT fine-tuned on the selected English or Spanish collection. Its poor performance is evidence about that procedure for this target, these categories and these source datasets. The setup does not vary the amount of Basque pretraining or compare multiple encoders trained for the same transfer objective. It cannot establish that every way of transferring a classifier across those languages would perform similarly. The authors’ suggestion about syntactic differences provides one explanation worth investigating, while the experiments do not independently test the effect of syntax.

Training with multiple languages simultaneously changes the amount and composition of the available data. The slot experiments illuminate the consequences for common and rare labels, and the intent experiments show consistent improvement from the tested additions. Neither experiment holds the number of examples and their class balance fixed across mixtures. A causal account of why an addition helped would need to distinguish more supervision from multilingual variation and from changes in the relative representation of particular classes.

Finally, the results average 5 random runs, and the development criterion uses variability in micro F1 to help choose training duration. The test tables give averages without showing a spread around each score. That is enough to report the observed ordering, but it provides limited evidence for how reliably close settings would retain the same ordering under repeated training. The large separation between direct transfer and projected Basque appears in both tasks and under both averaging conventions. Small differences among the better mixtures merit a more restrained reading.

What came after

There is no documented later study to trace from this work. The authors’ proposed follow-up concerns the quality of span projection, the supply of annotated requests and the representation of Basque in multilingual pretraining. They released the Basque datasets for future benchmarking, giving subsequent experiments a way to test new training procedures on the same two language understanding tasks. The paper establishes a comparison point for such work, with manual Basque test annotations and separate measurements of pooled performance and performance across categories.

Cite

Cite as Maddalen López de Lacalle, Xabier Saralegi and Iñaki San Vicente. 2020. Building a Task-oriented Dialog System for Languages with no Training Data: the Case for Basque. Proceedings of the Twelfth Language Resources and Evaluation Conference.

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

@inproceedings{lacalle2020building,
  title = {{Building a Task-oriented Dialog System for Languages with no Training Data: the Case for Basque}},
  author = {Maddalen López {de Lacalle}, Xabier Saralegi and Iñaki San Vicente},
  booktitle = {Proceedings of the Twelfth Language Resources and Evaluation Conference},
  year = {2020},
  url = {https://aclanthology.org/2020.lrec-1.340/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/lacalle-2020-building-task-oriented-dialog-system/