Benchmarking Transformers-based models on French Spoken Language Understanding tasks
Paper · 2022 · Oralie Cattan, Sahar Ghannay, Christophe Servan et al.
Summary
A hotel reservation request can contain a city, a hotel name, a date and a number of rooms. A dialogue system must work out which parts of the request supply each piece of information. The authors study this task, called concept detection, on two benchmarks in French. MEDIA contains transcripts of hotel reservation and information dialogues. ATIS-FR contains flight-information queries translated into French. The paper compares thirteen pretrained systems built with the Transformer architecture, using the same approach to train them to identify concepts in text. It evaluates their predictions alongside the time, energy and carbon dioxide associated with fine-tuning and inference.
The best results depend on the benchmark and the scoring rule. On the MEDIA test set, CamemBERT base pretrained on 135 Gb of CCNet text achieves the lowest Concept Error Rate, or CER, at 7.5, with an F1 of 89.9. CER counts the edits needed to bring a predicted sequence of concepts into agreement with the reference. F1 balances the accuracy of positive predictions against the coverage of reference items. A CamemBERT base variant pretrained on 4 Gb of Wikipedia reaches the highest MEDIA test F1, at 90.0, with a CER of 8.4. On the ATIS-FR test set, the large CamemBERT variant pretrained on 135 Gb of CCNet text leads on both measures, with a CER of 3.3 and an F1 of 94.1.
The cost measurements make the compact French FrALBERT system an important point of comparison. Its concept-detection scores are close to those of the Wikipedia-trained CamemBERT base variant on both tasks, and it uses the least energy of the systems the authors measure during both fine-tuning and inference. The distilled version of multilingual BERT presents a different tradeoff. Its resource requirements remain fairly close to those of its parent system, while its prediction scores fall. The results therefore distinguish the practical outcomes of different ways to build a compact system. The label analysis adds another qualification. Similar overall F1 scores can conceal differences on particular categories, including hotel and city names, and the authors observe that systems pretrained on larger corpora tend to handle infrequent labels better in these experiments.
Deep dive: Benchmarking Transformers-based models on French Spoken Language Understanding tasks
A benchmark compares how well French and multilingual Transformers extract concepts from speech transcripts and how much energy they use. · about 32 minutes to read
The problem and its context
From a request to a sequence of concepts
A request in a dialogue system contains words that the system can use to carry out a task. The city mentioned in a hotel enquiry provides one kind of information, and a phrase specifying the number of rooms provides another. The system needs to assign those pieces of text their roles. Concept detection, also known in this setting as slot filling, treats those roles as categories supplied by the application. The immediate job is to find where each category is expressed in a sentence and identify the category associated with that span.
Spoken language understanding covers a broader set of decisions. A system may need to identify the domain of a dialogue, determine the user's intent and represent the concepts present in the request. The benchmark concentrates on the last of those tasks. Someone reading an airline query might easily distinguish the name of the city a flight leaves from and the name of the city it goes to. To reproduce that distinction, the system needs to recognize a city name and use its surrounding words to decide which of the relevant categories applies. ATIS-FR includes separate labels for those two roles.
The distinction between recorded speech and its written representation matters to the experiment. The prediction component receives sentences and assigns labels to their tokens, the units into which the input is divided. MEDIA supplies transcribed dialogue material. ATIS-FR supplies manually translated queries. What the benchmarks have in common is a French text input and a reference against which to compare predicted semantic labels. The systems can therefore be evaluated on the same kind of prediction while the two corpora retain different domains and origins.
This framing also explains why concept detection warrants an evaluation of its own. A fluent transcript or a plausible interpretation of the general topic gives little assurance that the application has captured a particular detail. In MEDIA, for instance, nom-hotel and localisation-ville distinguish the name of a hotel from its city. A useful prediction has to place the label on the relevant words and choose the right category. In a sequence with several concepts, the resulting order also matters to the scoring rule the MEDIA campaign uses.
What earlier studies had established
One line of earlier work compared word embeddings, numerical representations of words that serve as input to a prediction system. The question was how much the representation altered the downstream result. A fixed representation gives a word the same vector across occurrences. A contextual representation can vary with the surrounding text. That distinction is pertinent when a phrase has to be understood through its role in a particular request. The earlier MEDIA study reviewed by the authors compared contextual ELMo with fixed representations from Word2Vec, GloVe and FastText, and found Word2Vec and ELMo competitive on MEDIA. ELMo, Word2Vec, GloVe, FastText
Another study examined how BERT-style encoders pretrained for French could be incorporated into systems for MEDIA. It placed the French representations in architectures using bidirectional recurrent networks, with and without a convolutional component, and reported a state-of-the-art MEDIA result with CamemBERT. That work addressed the transfer of pretrained representations into a particular task architecture. A broader benchmark could use the same kind of task classifier across a wider selection of existing encoders and examine how the choice of checkpoint affected the outcome.
The paper also describes work on multilingual and cross-lingual language understanding using MultiATIS++. That study considered different transfer approaches, including a multilingual version of BERT. The authors cite improvements from multilingual training and cross-language transfer, with up to 1.4% relative improvement on the French portion. This gave multilingual pretraining a reason to be included alongside French-only encoders. A system trained across languages could be a competitive source of representations for a French task, and the common evaluation would show where it stood against checkpoints devoted to French. MultiATIS++ and cross-lingual slot recognition
The common thread is the transfer of information learned before the task annotations are used. A language model is pretrained on text with an objective that teaches it to represent linguistic context. A slot-filling system then uses those representations to help predict annotation categories. Prior studies had varied the representations, how they were incorporated into the classifier, or the languages involved in training. The authors saw a need for one comparison that brought together multiple sizes and both French and multilingual systems under a shared protocol. The wider move towards attention-based architectures made more pretrained checkpoints available, while the French selection remained limited in the authors' account. Attention Is All You Need
Why include the cost of using the system?
A transfer benchmark normally asks how good a prediction system can become with a particular pretrained starting point and a supply of labelled examples. The authors add a second question about the resources required to adapt and run that system. The distinction matters because the published availability of a checkpoint gives a team access to its parameters, while computing the representations and training the task still incur a cost. A system may therefore be easy to obtain and expensive to operate.
The paper motivates compact architectures in part through applications that process speech online. It identifies latency, difficulties transmitting data and privacy as practical concerns for such applications. These concerns explain the interest in systems with lower computing requirements. The experiments address the narrower, measurable part of that motivation through processing time, energy and associated carbon dioxide for the task stages the authors run.
Size alone leaves an open question about how a compact system will behave. Reducing the vocabulary of an existing multilingual checkpoint changes what it has to store. Distillation uses one system to train a smaller successor. A compact French architecture can instead be built and pretrained as its own system. Each route has a different relationship to the original parameters, the pretraining text and the work needed to process an input. The paper brings examples of those routes into the same benchmark so that their downstream prediction scores and operating costs can be examined together.
The method, step by step
Make concepts visible in the target sequence
The task begins with a sentence and its linguistic annotation. For MEDIA, the underlying annotation associates a semantic category with a value. The sequence classifier in this study learns to identify the categories expressed by the sentence. The training targets indicate the category and mark its position in the sequence, giving the classifier a decision to make at each token. During evaluation, those decisions can be read back as a sequence of concepts.
The authors use BIO tagging to express where spans start and continue. A B tag identifies the beginning of a concept and carries its category. An I tag carries the category for subsequent tokens in the same span. An O tag marks material outside the annotated concepts. In a conceptual example using MEDIA's inventory, the first token expressing a hotel name would carry the beginning tag for nom-hotel. If the name continued across tokens, the subsequent tokens would carry the corresponding continuation tag. A token outside any annotated span would carry O.
The category and the boundary information serve different purposes. The category tells a downstream component what sort of information has been located. The boundary marks which tokens express it. A fresh beginning tag can also mark a new concept after an earlier one, even when the text offers no intervening O tag. A span consisting of a single token can be identified by its beginning tag alone. The scheme gives the authors a common form in which to train the classifier across corpora with separate inventories of semantic labels.
The workflow starts from an existing checkpoint. Pretraining has already given the encoder representations of text. The authors attach a task classifier, adapt the system with labelled sentences and use development data to select training settings. Final testing compares concept predictions with the held-out reference. A parallel set of measurements records the cost of running specified fine-tuning and inference steps.
From annotated French sentences to predictions and cost measurements
The steps in order.
Choose pretrained systems with different histories
The French systems in the benchmark include variants from the CamemBERT family and FlauBERT, as well as the compact FrALBERT. The multilingual comparison includes mBERT and XLM-R and considers compact systems derived from mBERT. The distinction between a family and a specific checkpoint is important. A family name can cover systems with different architecture sizes or pretraining corpora. In the results, the base CamemBERT checkpoint trained on 4 Gb of Wikipedia and the base checkpoint trained on 135 Gb of CCNet text are distinct entries.
The systems start with different pretraining objectives. Masked language modelling hides selected input tokens and asks the encoder to recover them using the surrounding sequence. The training target comes from the text itself. The encoder can thus learn a representation before encountering any label such as nom-hotel or airline_name. For concept detection, the task classifier subsequently learns how to use that representation to make distinctions defined by the benchmark's annotation.
The BERT-style recipe described in the paper also has a next sentence prediction objective. The training decision is whether two supplied segments are neighbours in the original material. The authors describe XLM-R, CamemBERT and FlauBERT as using the masked-token objective without that additional task. FrALBERT combines masking with sentence order prediction. Its sentence-pair objective concerns whether the order of the pair has been reversed. The contrast between the objectives is whether the training question concerns original adjacency or order within a supplied pair. None of these questions requires a human to assign a hotel or flight category at pretraining time.
The source and amount of pretraining material also vary. The paper describes Wikipedia, text drawn from web crawls and mixtures of corpora. A Wikipedia checkpoint and a checkpoint derived from a larger collection of web text have encountered different material before the supervised task begins. Multilingual and French-only systems also allocate their vocabularies differently. Vocabulary here means the set of units from which the system represents input text. It is a property of the pretrained system, separate from the inventory of output categories the task classifier is asked to predict.
One compact checkpoint, small-mBERT for French, starts from multilingual BERT and trims its vocabulary to the material retained for French. The distilled mBERT variant derives from the same parent family through distillation. The French FrALBERT provides another compact alternative, with its own pretraining setup. These distinctions matter when interpreting a comparison of compact and larger systems. A vocabulary change, a distilled checkpoint and a separately pretrained architecture alter different parts of the starting system. Smaller multilingual BERT vocabularies, DistilBERT, French Transformer usability and FrALBERT
The selection also reflects practical constraints. The authors report that compact CamemBERT versions they considered were unavailable and that their attempts with the large FlauBERT variant failed to converge. They set aside T5 and GPT-3 because of their resource requirements and usability concerns. They also draw attention to the English predominance of the pretraining material for these systems and to the access restrictions they describe for GPT-3. The result is a comparison among systems the authors could bring into their French token-labelling protocol, with the largest systems discussed in the selection rationale outside the benchmark. T5, GPT-3
Attach the same kind of classifier to each encoder
The shared prediction architecture follows the transfer approach used in BERT. For an input sequence, the Transformer produces a representation at each position. The classifier uses the final hidden state, the representation at the end of the encoder's processing. This gives the classifier a vector associated with the token whose tag it must predict, with information contributed by the surrounding input.
ReLU activations and dropout accompany the classifier’s two linear hidden layers. A linear layer combines the incoming numerical features. ReLU changes the result so the successive layers can represent a more flexible decision than a stack of linear operations alone. Dropout withholds some activations during training, so the prediction can learn to draw on more than a fixed set of active features. The output gives probabilities over the tagging choices for the positions of the sentence.
Putting this classifier on the final states does two jobs for the comparison. It defines a common way to turn encoder representations into task predictions, and it leaves the pretrained encoder as the principal component being exchanged between runs. A high-performing input representation is still evaluated through the classifier and the training procedure used to adapt it. For instance, the representation must support a decision about whether a city name is a departure or destination, and the supervised component must learn which patterns in that representation correspond to the two annotated categories.
The procedure is fine-tuning in the sense that the task training begins from parameters already learned from text. The annotation supplies the new learning signal. The categories for a flight query can be learned with the flight training data, and the categories for a hotel dialogue can be learned with MEDIA. The pretraining objectives explain how the encoders came to represent the input, while the supervised tags define the decisions the benchmark actually tests.
Tune on development data before evaluating on the test set
The authors use Adam to optimize the systems. They also automate the choice of hyper-parameters, settings that govern how training proceeds. An epoch counts a pass through the training data, the batch size controls how many examples are grouped for an update, and the learning rate governs the scale of parameter changes. These choices can affect the quality achieved after adaptation, even when the pretrained checkpoint and the category inventory are fixed.
The hyper-parameter search uses population-based training. The authors describe a population whose learning and hyper-parameter settings are optimized together. In terms of the comparison, this allows the fit to the downstream task and the choices governing that fit to be explored during the same search. The development set supplies the feedback used to judge the candidates. The test set is reserved for assessing the resulting predictions.
The paper gives a search range from 5 to 100 training epochs and a batch-size range from 8 to 32. It reports learning-rate endpoints of 1 and 5, with the scale left unspecified. These are search settings. The paper does not identify them as the final choices for the checkpoints reported in the test results. A shared search procedure permits different systems to settle on different training settings within the protocol.
The split between training, development and test data gives each part of a corpus a different role. The training sentences supply reference tags for learning. The development sentences let the search judge how a candidate configuration is performing on other annotated material. At the last stage, the test sentences provide an assessment of the selected system on held-out examples. This distinction is especially pertinent when a benchmark compares substantially different encoder sizes, since a setting suitable for one checkpoint may work poorly for another.
Score retrieval quality and concept-sequence errors
The paper reports F1 and Concept Error Rate. F1 balances precision, the share of predicted positives that match the reference, and recall, the share of reference positives that the system retrieves. An approach that predicts many concepts could recover more of the reference and also propose more incorrect concepts. Another might predict only the easiest cases and leave more reference concepts uncovered. F1 brings those two aspects into one higher-is-better score. The paper also uses F1 for selected individual labels in its analysis.
CER is the official MEDIA metric. The paper defines it by analogy with word error rate, moving the same edit accounting from words to semantic concepts. An extra predicted concept contributes an insertion, a missing reference concept contributes a deletion, and replacing a reference concept with an incorrect one contributes a substitution. The following expression spells out that rate before any percentage scaling.
CER = (S + D + I) ÷ N
CER is Concept Error Rate. S is the number of concept substitutions, D the number of concept deletions and I the number of concept insertions in the alignment with the reference sequence. N is the number of reference concepts. The plus signs add the edit counts, the parentheses group that total, the division sign normalizes it by the reference count, and the equals sign states the resulting rate. Lower values correspond to fewer edits relative to the reference.
F1 and CER give the reader two views of the same underlying task. The balance of precision and recall is useful for seeing how successfully the system detects reference items while controlling incorrect predictions. An edit rate asks how much correction the resulting sequence requires. The MEDIA results show that benchmark leaders can change with the view chosen. A reader looking for the checkpoint that performs best under the official MEDIA scoring rule should therefore consult the CER comparison directly.
The authors report statistical significance markings based on a 95% confidence interval. The stars in the charts below mark the best setting in the displayed comparison. The statistical markings in the paper belong to its own results presentation.
Measure bounded stages of adaptation and use
The cost study times one fine-tuning epoch and one inference step on each task. It associates each measurement with energy consumption and carbon dioxide emissions. Fine-tuning here is an adaptation workload that uses annotated sentences to update the parameters. Inference is the distinct workload of running the adapted system to obtain predictions. The reported measurements average five runs for each step. Systematic reporting of energy and carbon footprints
These units give the resource comparison a specific scope. Measuring an epoch makes it possible to compare the work involved in a defined pass of adaptation. Measuring an inference step gives a separate view of what it costs to use the resulting system for prediction. Since hyper-parameter search can vary the number of epochs, a measurement for one epoch describes a different quantity from the total cost of reaching a selected configuration. The authors' cost comparison concerns the measured steps after an existing pretrained checkpoint enters the benchmark.
Experiments and results
The two evaluation corpora
MEDIA comes from the French Evalda-Media evaluation campaign. Its 1258 transcribed dialogues concern hotel reservations and information. The material has manual concept annotations with labels and values, and the authors report 76 semantic labels. The training split contains 13k sentences, the development split contains 1.3k sentences and the test split contains 3.5k sentences. The paper cites earlier benchmark work that characterizes MEDIA as a particularly difficult slot-filling task. The hotel categories examined in detail include city and hotel names, dates and room counts. Evalda-Media evaluation campaign
ATIS-FR is the French subset of the MultiATIS++ extension of the Air Travel Information System corpus. Its sentences are French translations made by people from original English queries about flight information. It has 84 semantic labels, with 4.5k sentences for training, 490 for development and 893 for testing. Some categories distinguish the roles of similar expressions. The city in fromloc.city_name, for instance, has a different function in a flight query from the city in toloc.city_name. Other labels identify information such as an airline or a portion of the day associated with departure.
These datasets give the experiment two applications of the same sequence-labelling protocol. One involves hotel dialogue transcripts and the other translated flight queries. Each supplies its own categories, examples and test conditions. A comparison between checkpoints on MEDIA therefore keeps the annotated task fixed, as does a comparison within ATIS-FR. A comparison of raw scores across the two tasks is harder to interpret because the data origin, splits and meanings of the categories change together.
The main reference points are other pretrained encoders adapted through the same procedure. Base mBERT lets the reader evaluate how its distilled and French-vocabulary derivatives behave relative to their parent family. The Wikipedia-trained CamemBERT base checkpoint provides a useful comparison for FrALBERT because those two were pretrained on the same kind and amount of text, according to the authors. Base and large XLM-R add comparison points from a multilingual family. Together, the comparisons cover several routes to a usable French system and reveal where a checkpoint's ranking changes with the task or metric.
MEDIA has a different leader for each metric
On the MEDIA test set, the paper reports that the French-only systems range from 89 to 90 in F1 and from 7.5 to 8.6 in CER. CamemBERT base pretrained on 135 Gb of CCNet text records the lowest CER, at 7.5. Its F1 is 89.9. The CamemBERT base checkpoint trained on 4 Gb of Wikipedia reaches the highest F1, at 90.0, alongside a CER of 8.4. The family name and base architecture designation alone are thus insufficient to identify the leader. The checkpoint and the scoring rule both matter.
Selected checkpoints on the MEDIA test set by Concept Error Rate
The CCNet-trained CamemBERT base checkpoint has the lowest concept error rate in the comparison.
The numbers
| System or setting | CER |
|---|---|
| Distilled mBERT base | 10.1 |
| CamemBERT base, Wiki 4 Gb | 8.4 |
| XLM-R large | 8.0 |
| CamemBERT base, CCNet 135 Gb (this paper) | 7.5 |
The two CamemBERT entries show how similar F1 values can coexist with a clearer separation in CER. The Wikipedia variant has the higher F1 and the CCNet variant has the lower editing burden by the concept error measure. Because both scores come from the same test set, the ranking change concerns how the two metrics summarize the predictions. The aggregate values alone do not reveal how many of the errors were substitutions, insertions or deletions, or which labels account for the change in ranking.
The XLM-R variants are the closest multilingual competitors to the French leaders in F1. XLM-R base scores 89.5 on the MEDIA test set, and XLM-R large scores 89.9. XLM-R large also has the best CER among the multilingual group, at 8.0. Distilled mBERT base is at the other end of that group's CER range, at 10.1. For mBERT and its distilled and vocabulary-reduced variants, the best F1 the paper cites is 88.9. FlauBERT base scores 89.0 in F1, the lowest value among the French-only checkpoints discussed for this split.
Selected checkpoints on the MEDIA test set by F1
The Wikipedia-trained CamemBERT base checkpoint narrowly leads the comparison on F1.
The numbers
| System or setting | F1 |
|---|---|
| FlauBERT base | 89.0 |
| XLM-R base | 89.5 |
| CamemBERT base, CCNet 135 Gb | 89.9 |
| CamemBERT base, Wiki 4 Gb (this paper) | 90.0 |
FrALBERT's place in the MEDIA findings is clearest in the authors' comparison with Wikipedia-trained CamemBERT base and with XLM-R base. The authors describe the overall scores as comparable. This result concerns the level of task performance reached by the compact checkpoint, which is the premise for comparing its resource use with those systems. The label analysis gives examples of where the Wikipedia CamemBERT retains an advantage, even when their headline performance is close.
ATIS-FR puts large CamemBERT first on both measures
Among the French-only systems on the ATIS-FR test set, F1 runs from 92.5 to 94.1 and CER from 3.3 to 5.3. The CamemBERT large checkpoint pretrained on 135 Gb of CCNet text reaches the favourable end of both ranges, with F1 of 94.1 and CER of 3.3. FlauBERT is last among the French-only entries on both measures, at F1 of 92.5 and CER of 5.3. The authors draw particular attention to FlauBERT's weaker CER against the CamemBERT systems on this task, given its more competitive position in MEDIA.
Selected checkpoints on the ATIS-FR test set by Concept Error Rate
Large CamemBERT has the lowest concept error rate among the displayed flight-query systems.
The numbers
| System or setting | CER |
|---|---|
| Distilled mBERT base | 6.0 |
| FlauBERT base | 5.3 |
| mBERT base | 5.0 |
| CamemBERT large, CCNet 135 Gb (this paper) | 3.3 |
The parent and distilled mBERT checkpoints give a direct illustration of the performance tradeoff in that family. On the ATIS-FR test set, mBERT base achieves an F1 of 93.6 and a CER of 5.0. Its distilled counterpart achieves an F1 of 88.1 and a CER of 6.0. The parent has the better score under either measure. These figures also show why it is worth reporting the two measures together. The comparison consistently favours the parent, while the two scores characterize the gap on different scales.
For FrALBERT and CamemBERT base trained on 4 Gb of Wikipedia, the authors report a difference of 0.3 points in ATIS-FR test F1 and 0.1 point in test CER. They also describe the base and large XLM-R variants as producing scores comparable to those of the two French Wikipedia checkpoints on this task. That leaves room for different choices within a band of similar quality, even though the large CCNet CamemBERT leads the full ATIS-FR comparison. The results support a distinction between selecting the top test scorer and identifying a compact system that reaches a competitive level.
Across the tasks, the best CER comes from a base variant on MEDIA and a large variant on ATIS-FR. Both are CCNet-pretrained CamemBERT checkpoints. Within this benchmark, the best result obtained by using a large encoder is therefore specific to the flight-query evaluation and its comparison set. Within the multilingual group, the prominence of XLM-R large on MEDIA and the competitive F1 of mBERT base on ATIS-FR also show the value of reading the results by dataset. The identities of strong checkpoints depend on what the system is asked to extract and how those predictions are scored.
Fine-tuning and inference costs
The authors report the highest cost outcomes for the large CCNet CamemBERT and large XLM-R across the task stages they measure. The base versions of FlauBERT, CCNet CamemBERT and mBERT have similar carbon dioxide estimates on both corpora during fine-tuning and inference. The authors relate that pattern to their parameter counts. The comparison describes an association among the systems tested, with each checkpoint also bringing its own architecture and input processing.
FrALBERT, pretrained on 4 Gb of Wikipedia, has the lowest measured energy consumption and carbon dioxide emissions of all the systems in both stages. In inference, the authors say its energy use is almost half that of the distilled mBERT base and French-vocabulary small mBERT base variants. They describe FrALBERT's inference impact as more than 5 times lower than that of the large XLM-R and large CamemBERT checkpoints on both tasks. For the fine-tuning step, they report a more than 3 times lower impact for FrALBERT in comparison with large XLM-R. These are comparisons of the specified stages, with the inference and fine-tuning claims kept separate.
The distilled and vocabulary-reduced mBERT variants illustrate why the paper compares actual workloads in addition to identifying approaches as compact. The distilled variant has somewhat lower resource requirements than the vocabulary-reduced variant in the authors' discussion, yet its resource use is still fairly close to that of full mBERT base. Its downstream scores are weaker than the parent's. FrALBERT shows a different pattern, pairing the lowest measured energy and carbon dioxide with results near those of the Wikipedia CamemBERT base checkpoint. Under this protocol, the measured payoff from compactness depends on the particular system chosen.
The combination of quality and cost gives the benchmark two kinds of result. The best tested CER for each task identifies a quality leader at the consumption associated with that checkpoint. The cost study identifies an alternative that operates with less energy at a broadly comparable level to some of the larger systems. A reader interested in the official MEDIA score, for example, can identify the CCNet leader and also see why a team seeking a low-cost starting point would examine the FrALBERT comparison with the Wikipedia variant. The benchmark keeps those decisions tied to measured properties of each checkpoint and task.
What the ablations show
What can be learned from the side-by-side comparisons
The paper reports no strict ablation that changes one component of a system while holding the others fixed. Its analyses instead compare available checkpoints, look at F1 for individual concept categories and measure the resource costs of alternative systems. These comparisons can identify patterns that a more controlled experiment could then investigate. They already answer practical questions about how the particular combinations of architecture, vocabulary and pretraining behave under the same downstream protocol.
FrALBERT and CamemBERT base pretrained on 4 Gb of Wikipedia provide one of the closer comparisons. The pretraining source and amount match as described by the authors, and the checkpoints achieve similar aggregate scores on both tasks. The authors suggest that common exposure to the same kind and quantity of material may help explain the resemblance. The systems differ in their pretraining setup and architecture, so the match in corpus characteristics creates a more focused comparison without turning those other differences into controlled variables. The observed result is that the compact checkpoint reaches a similar level of performance in these two applications.
FrALBERT's comparison with XLM-R base adds a separate observation. These systems have different structures and training data, yet the authors find broadly comparable scores on both datasets. That result shows that more than one combination of pretraining and architecture can reach this level of concept detection. It also gives context to the Wikipedia comparison. Similar overall performance occurs both where pretraining data are alike and where the systems' training histories differ substantially.
Comparing mBERT base with its distilled and vocabulary-reduced variants fixes the parent family more closely. These comparisons address the practical consequences of using those specific derivatives. The distilled checkpoint underperforms other BERT variants in the authors' analysis, and its relatively modest resource savings make the lower scores consequential. The vocabulary-reduced checkpoint changes a different property of the parent. The study can compare the available outcomes of those approaches, while the loss or gain attributable to changing only the vocabulary or only the training objective would require a separate controlled experiment.
The CamemBERT results offer a related caution about reading a size effect into the checkpoint ranking. The base CCNet version has the lowest MEDIA test CER, while the large CCNet version has the lowest ATIS-FR test CER. The family resemblance makes those results informative for someone choosing between real checkpoints. Their different positions on the two tasks leave open which properties of the encoder or adaptation matter most for the individual concept predictions. The authors investigate some of the remaining errors through the label-level results.
Frequent categories vary in difficulty
The label analysis first focuses on representative categories. MEDIA includes hotel names, city names, dates and room counts in that inspection. The authors also examine command-tache and objet. On these selected MEDIA categories, the F1 values span 70.15 to 95.76. The flight categories include city_name, airline_name, depart_time.period_of_day and depart_date.day_name, along with the origin and destination city labels. On the selected ATIS-FR categories, F1 spans 59.41 to 100. The ranges refer to the inspected label results, alongside a separate set of aggregate test scores for each corpus.
Inspection by category shows what the overall scores can conceal. A benchmark with city locations, hotel names and quantities gives the system several distinct kinds of information to detect. An aggregate score can remain close across two checkpoints even when one has a clearer advantage on the category an application needs. Conversely, a gap on a single category can coexist with similar outcomes elsewhere. The authors therefore look both for repeated patterns across categories and for individual cases where a family-level comparison is too broad to be informative.
Distilled mBERT base shows one of the more consistent weaknesses. The authors observe weaker results on named entities in both domains. They cite state and city names in ATIS-FR and nom-hotel and localisation-ville in MEDIA, with losses of up to 2 F1 points against other systems for such tags. The affected tags include some of the frequent ones in their respective tasks. That makes this example particularly informative about the distilled checkpoint. Its weaker results extend to categories that are well represented in the benchmarks, and the label comparison identifies recurring types of errors for closer examination.
Across larger versus compact systems as a whole, or French-only versus multilingual systems as a whole, the authors find fewer consistent differences. Their French Wikipedia pair illustrates how specific the gaps can be. For the MEDIA nombre-chambre label, CamemBERT base scores 93,14 F1 and FrALBERT scores 91,85. For nom-hotel, the respective MEDIA F1 scores are 82,76 and 79,60. Both examples favour the same checkpoint, with the scores belonging to distinct semantic categories. The broader finding of comparable aggregate performance can accommodate those category-level differences.
Some labels challenge the systems more broadly. The authors identify objet as a frequent MEDIA category that the systems still have difficulty recognizing. They also identify nom as difficult, including for the CCNet CamemBERT base checkpoint that leads the benchmark on MEDIA CER. The two observations give the label analysis a use beyond choosing between checkpoints. They identify categories where changing to the strongest aggregate scorer still leaves substantial difficulty and where category frequency alone is an incomplete predictor of success.
Pretraining corpus size and the infrequent labels
The authors consider the handling of infrequent concepts to be one of the more consequential differences among the systems. They see better performance on the least frequent labels from systems pretrained on the biggest corpora. They trace a similar pattern in the flight data, despite the generally higher overall quality on ATIS-FR. This is a statement about the relationship visible across the checkpoint comparisons. It distinguishes success on uncommon categories from the recurring weakness on some frequent entity types observed in the distilled system.
There are two kinds of data exposure in this interpretation. The pretraining corpus supplies text from which to learn representations before the downstream labels are introduced. The task training set supplies examples showing how expressions map to those labels. A sparsely labelled category may draw particular benefit from representations that already capture useful similarities between expressions. The comparison is compatible with that explanation. The systems with different pretraining corpus sizes also differ in other ways, leaving the separate contribution of data amount unresolved.
The authors also raise the possibility of improving how the training examples are sampled. They connect this possibility to earlier few-shot learning research, which they describe as achieving strong slot-filling performance with heavily sub-sampled examples. Their idea concerns how much usable signal the supervised training examples provide for different categories. It is a direction motivated by the observed label differences. The benchmark's reported comparisons use the defined dataset splits, and the paper gives no new result for a redesigned sample.
Taken together, the category analyses give two reasons for systems with similar headline scores to behave differently in use. They can have different performance on recurring categories such as a hotel or city name, and they can handle the least frequent labels with different success. The first pattern is visible most clearly in the distilled checkpoint and in selected comparisons between the French Wikipedia systems. The second is the association the authors draw with the amount of pretraining material. Neither pattern follows uniformly from the size or language coverage of the encoder.
The resource comparisons also distinguish approaches to compactness
The resource measurements are paired with the accuracy analysis so that a prediction difference can be considered alongside the cost of obtaining it. FrALBERT is especially informative because there are plausible comparisons at similar task quality. Its low operating cost is meaningful alongside its similarity to Wikipedia-trained CamemBERT base on both benchmarks. The comparison with XLM-R base shows that the competitive scores also extend to a multilingual counterpart with a different pretraining history.
The mBERT derivatives illustrate a different outcome. The resource advantage of the distilled version is relatively modest in this experiment, and its task results deteriorate against the parent. The authors therefore qualify their broad claim about compact systems by stressing the approach used to achieve compactness. The study supports that qualification through the different behaviour of the tested systems. It gives less purchase on which design decision caused a particular part of the savings, since the reported energy belongs to a running implementation of each whole checkpoint and classifier.
The association between parameter size and measured resource impact is most evident at the broad ends of the comparison. Large checkpoints are the most costly in the reported task stages, while FrALBERT is the least costly. Among the compact approaches derived from mBERT, the variation in resource use and prediction quality complicates a ranking based on the word “compact” alone. The paper's ecological comparison is strongest when read as a measurement of the specific systems and workloads that were run.
Limitations
Limits the authors state
The authors describe French resource availability as a constraint on the benchmark. The selection includes established French and multilingual checkpoints, and practical access affects what can be tested. Smaller CamemBERT variants were unavailable to them. The large FlauBERT version failed to converge in their experiments. The paper therefore gives a FlauBERT result for the base system and has no downstream estimate for the large one. The training difficulty pertains to the authors' attempts under their setup.
They also set boundaries on the systems worth including for their evaluation. They regard T5 and GPT-3 as large relative to the encoders they run, with greater resource and usability concerns. They describe English as dominant in the pretraining material considered in that part of the discussion and note restrictions on access to GPT-3. The comparison consequently covers the selected existing encoders within its chosen operating scope. Claims about the relative positions of other architectures would require results from bringing those alternatives into the evaluation.
The authors qualify their claim about the ecological advantages of compact systems. FrALBERT achieves a large measured saving with task scores close to a larger Wikipedia-trained counterpart. The mBERT derivatives produce different outcomes, including a relatively small reduction in requirements for the distilled checkpoint at the cost of weaker scores. The authors' conclusion depends on the approach and the workload. They also present release of the code and benchmarks as a plan for future work.
Limits of the task and the data
The task formulation sets a boundary on the meaning of “spoken language understanding.” The experiment measures concept extraction from text. With MEDIA, the input is available as dialogue transcripts. With ATIS-FR, it is available as translated sentences. The study leaves open how recognition errors in live speech would alter the relative checkpoint results. It also leaves open how the classifiers would behave on other dialogue decisions, such as determining intent or using context across an exchange.
The two corpora are informative precisely because the tasks differ, and those differences limit what can be inferred from the raw score change between them. The hotel and flight tasks have different label inventories, different quantities of training material and different origins for their sentences. A lower test CER on ATIS-FR describes the reference-aligned predictions on that corpus. The comparison does not isolate how much of the separation between the task scores comes from the domain, annotation choices, translated phrasing or the examples available for training.
MEDIA's source annotation contains labels and their values, while the reported task uses BIO tags for concept detection. This distinction is important in applying the results. Detecting the words that express a date, for instance, supplies a category and a span. A separate score would be needed to establish whether a system can reliably turn the expression into the precise value required by a downstream reservation operation. The benchmark supports conclusions about the predictions it scores.
Limits of explanation and replication
A common downstream classifier and selection procedure strengthen the comparison of checkpoints as usable systems. They leave the encoders' training histories intertwined. A checkpoint trained on more text can also have different pretraining objectives, different architectural properties and a different vocabulary. Likewise, a comparison of compact and larger systems can change several of those properties at once. The label-level association with corpus size is therefore descriptive evidence. A controlled study of corpus volume would require holding the other relevant choices fixed across the pretraining comparisons.
The description gives the broad training procedure and search ranges. Some implementation details remain open, including the scale of the reported learning-rate range. The paper briefs the reader on BIO tagging without specifying in detail how annotation boundaries are reconciled with different tokenization schemes or how conflicting tag sequences are resolved. These decisions matter when reproducing token-level experiments across encoders with different vocabularies. They are especially relevant to categories whose names or other expressions may occupy several input tokens.
The confidence interval statement gives a threshold for the paper's significance markings, while leaving the construction of the intervals and individual comparisons less fully described. The point estimates make it possible to report the test scores and rankings. Small separations such as the leading MEDIA F1 values should be read with that precision in mind. The differences quoted for individual labels are also score comparisons for selected cases. They help locate the observed patterns, while certainty about the size and stability of every label-level gap would require further analysis.
Limits of the environmental comparison
The cost estimates concern one fine-tuning epoch and one inference step. The lifetime cost of adopting a checkpoint involves different quantities. Adaptation may use multiple epochs, and population-based search trains multiple candidates. Production inference can be repeated at scales beyond those represented by a step in a benchmark. Estimating total energy would require the corresponding training and usage information. The paper's measured units give the reader a clear basis for comparing the bounded workloads.
The ecological comparison also starts from pretrained systems. The compute used to produce a checkpoint is outside the fine-tuning and inference units the authors measure. A system that is inexpensive to operate can still have a significant upstream training cost, and the lower operating measurements do not determine that quantity. Similarly, the discussion of emissions pertains to the conditions of the measurements. Applying a reported relative cost to a different operating environment would require knowing how the new conditions relate to those of the experiment.
Finally, the paper's practical motivation includes online latency, data transmission and privacy. The time and energy measurements address the computing work of the evaluated stages. A complete assessment of a live application would also have to account for other components of the speech pipeline and the environment where the work runs. The authors' comparison gives concrete evidence about the concept-detection component within that larger setting.
What came after
New Semantic Task for the French Spoken Language Understanding MEDIA Benchmark cites the study and returns to MEDIA in 2024 with a new semantic task. Its point of continuity is the benchmark. The earlier work holds MEDIA's concept-detection task in place and compares pretrained encoders and their operating costs on it. The later title identifies a change on the evaluation side, introducing a semantic task for that same French benchmark.
That connection matters because the scores in the earlier study depend on the decisions it asks a system to make. MEDIA is a corpus of annotated hotel dialogues, and the task definition determines which aspects of the annotations count as successful predictions. A new semantic task can use the same benchmark as a setting for a different evaluation question. The documented relationship establishes the shared benchmark and that shift in task definition. It leaves the exact relationship between the two evaluations, including any reuse of the earlier checkpoints, scores or cost protocol, unspecified.
Cite
Cite as Oralie Cattan, Sahar Ghannay, Christophe Servan and Sophie Rosset. 2022. Benchmarking Transformers-based models on French Spoken Language Understanding tasks. arXiv:2207.09152.
@misc{cattan2022benchmarking,
title = {{Benchmarking Transformers-based models on French Spoken Language Understanding tasks}},
author = {Oralie Cattan, Sahar Ghannay, Christophe Servan and Sophie Rosset},
year = {2022},
doi = {10.48550/arxiv.2207.09152},
eprint = {2207.09152},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.2207.09152}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/cattan-2022-benchmarking-transformers-based-models-french/
References
- A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, L. Kaiser, and I. Polosukhin, “Attention is all you need,” in NIPS, 2017. our card
- J. Devlin, M. W. Chang, K. Lee, and K. Toutanova, “BERT: Pre-training of deep bidirectional transformers for language understanding,” in NACL, 2019. our card
- O. Cattan, C. Servan, and S. Rosset, “On the Usability of Transformers-based models for a French Question-Answering task,” in RANLP. our card
- J. Guo, Q. Liu, J. G. Lou, Z. Li, X. Liu, T. Xie, and T. Liu, “Benchmarking meaning representations in neural semantic parsing,” in EMNLP, 2020. OpenAlex ↗ · Scholar ↗
- H. Le, L. Vial, J. Frej, V. Segonne, M. Coavoux, B. Lecouteux, B. C. A. Allauzen, L. Besacier, and D. Schwab, “FlauBERT: Unsupervised language model pre-training for French,” in LREC, 2020. our card
- I. A. Farha and W. Magdy, “Benchmarking transformer-based language models for Arabic sentiment and sarcasm detection,” in WANLP, 2021. our card
- S. Ghannay, A. Neuraz, and S. Rosset, “What is best for spoken language understanding: small but task-dependant embeddings or huge but out-of-domain embeddings?” in ICASSP, 2020. OpenAlex ↗ · Scholar ↗
- M. Peters, M. Neumann, M. Iyyer, M. Gardner, C. Clark, K. Lee, and L. Zettlemoyer, “Deep contextualized word representations,” in NAACL, 2018. our card
- T. Mikolov, K. Chen, G. Corrado, and J. Dean, “Efficient estimation of word representations in vector space,” in ICLR, 2013. our card
- J. Pennington, R. Socher, and C. Manning, “GloVe: Global vectors for word representation,” in EMNLP, 2014. our card
- P. Bojanowski, E. Grave, A. Joulin, and T. Mikolov, “Enriching word vectors with subword information,” TACL, 2017. our card
- S. Ghannay, C. Servan, and S. Rosset, “Neural networks approaches focused on French spoken language understanding: application to the MEDIA evaluation task",” in COLING, 2020. OpenAlex ↗ · Scholar ↗
- L. Martin, B. Muller, P. J. Suárez, Y. Dupont, L. Romary, E. V. de la Clergerie, D. Seddah, and B. Sagot, “CamemBERT: a tasty french language model,” in ACL, 2020. our card
- W. Xu, B. Haider, and S. Mansour, “End-to-end slot alignment and recognition for cross-lingual NLU,” in EMNLP, 2020. our card
- H. Bonneau-Maynard, C. Ayache, F. Bechet, A. Denis, A. Kuhn, F. Lefevre, D. Mostefa, M. Quignard, S. Rosset, C. Servan, and J. Villaneau, “Results of the French Evalda-Media evaluation campaign for literal understanding,” in LREC, 2006. our card
- A. Conneau, K. Khandelwal, N. Goyal, V. Chaudhary, G. Wenzek, F. Guzmán, E. Grave, M. Ott, L. Zettlemoyer, and V. Stoyanov, “Unsupervised cross-lingual representation learning at scale,” in ACL, 2020. our card
- V. Micheli, M. d'Hoffschmidt, and F. Fleuret, “On the importance of pre-training data volume for compact language models,” in EMNLP, 2020. OpenAlex ↗ · Scholar ↗
- V. Sanh, L. Debut, J. Chaumond, and T. Wolf, “DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter,” in NIPS, 2019. our card
- A. Abdaoui, C. Pradel, and G.Sigel, “Load what you need: Smaller versions of mutililingual BERT,” in SustaiNLP, 2020. our card
- J. Kaplan, S. McCandlish, T. Henighan, T. B. Brown, B. Chess, R. Child, S. Gray, A. Radford, J. Wu, and D. Amodei, “Scaling laws for neural language models,” CoRR, 2020. our card
- M. Joshi, D. Chen, Y. Liu, D. S. Weld, L. Zettlemoyer, and O. Levy, “SpanBERT: Improving Pre-training by Representing and Predicting Spans,” TACL, 2020. our card
- C. Raffel, N. Shazeer, A. Roberts, K. Lee, S. Narang, M. Matena, Y. Zhou, W. Li, and P. J. Liu, “Exploring the limits of transfer learning with a unified text-to-text transformer,” Journal of Machine Learning Research, vol. 21, no. 140, pp. 1–67, 2020. [Online]. Available: http://jmlr.org/papers/v21/20-074.html our card
- T. B. Brown, B. Mann, N. Ryder, M. Subbiah, J. Kaplan, P. Dhariwal, A. Neelakantan, P. Shyam, G. Sastry, A. Askell, S. Agarwal, A. Herbert-Voss, G. Krueger, T. Henighan, R. Child, A. Ramesh, D. M. Ziegler, J. Wu, C. Winter, C. Hesse, M. Chen, E. Sigler, M. Litwin, S. Gray, B. Chess, J. Clark, C. Berner, S. McCandlish, A. Radford, I. Sutskever, and D. Amodei, “Language models are few-shot learners,” 2020. our card
- F. Béchet and C. Raymond, “Benchmarking benchmarks: introducing new automatic indicators for benchmarking spoken language understanding corpora,” in InterSpeech, 2019. OpenAlex ↗ · Scholar ↗
- P. J. Price, “Evaluation of spoken language systems: The atis domain,” in HLT, 1990. OpenAlex ↗ · Scholar ↗
- M. Jaderberg, V. Dalibard, S. Osindero, W. M. Czarnecki, J. Donahue, A. Razavi, O. Vinyals, T. Green, I. Dunning, K. Simonyan, C. Fernando, and K. Kavukcuoglu, “Population based training of neural networks,” arXiv, 2017. OpenAlex ↗ · Scholar ↗
- O. Cattan, S. Rosset, and C. Servan, “On the cross-lingual transferability of multilingual prototypical models across NLU tasks,” in META-NLP, 2021. OpenAlex ↗ · Scholar ↗
- P. Henderson, J. Hu, J. Romoff, E. Brunskill, D. Jurafsky, and J. Pineau, “Towards the systematic reporting of the energy and carbon footprints of machine learning,” Journal of Machine Learning Research, vol. 21, no. 248, pp. 1–43, 2020. our card