Character Level Convolutional Neural Network for German Dialect Identification
Paper · 2018 · Mohamed Ali
Summary
A transcript gives a dialect classifier written evidence about an utterance. The classifier can examine vocabulary and spelling as they appear in the transcription, while properties of the original sound, such as intonation, are outside its input. At VarDial 2018, the German Dialect Identification shared task asked how well systems could make this kind of judgment. In the track that safina entered, every transcript was assigned a city from the same set of four: Zurich, Lucerne, Bern, and Basel. The campaign also offered a track that included a surprise dialect for which participants received no training examples. The paper reports results for the familiar dialects.
The team built a character-level convolutional neural network and compared ways of giving its filters access to the text. One version supplied a code that identifies each character. A second supplied learned numerical coordinates for each character, called an embedding. A third used a gated recurrent unit, or GRU, to construct a representation that could vary with the sequence in which the character appeared. From that point, the designs followed the same procedure. Filters scanned short windows, the strongest response from each filter was kept, and the resulting values were used to assign probabilities to the dialects.
The GRU configuration led the comparison on the combined training and development data, with a cross-validation accuracy of 0.7964. It also led the submitted runs on the shared-task test, where the table gives it 0.6449 under macro F1. The paper reports a weighted F1 of 64.49% in its account of the team’s second-place finish among eight teams. In both evaluations, direct character codes scored above the static embedding. The recurrent system’s advantage came with a substantial training cost. It took about 5 times as long to train as a network without the recurrent layer in the reported experiment.
The best run still had difficulty distinguishing some of the dialects. The paper highlights Lucerne, whose utterances were frequently assigned to Bern. The experiment establishes that changing the representation before convolution can improve decisions on this task. It also shows why the choice has practical consequences. A recurrent layer gives the filters a different kind of evidence, requires more training time in this setup, and still leaves a prominent error between particular labels.
Deep dive: Character Level Convolutional Neural Network for German Dialect Identification
This study compares how a character-level convolutional network identifies Swiss German dialects from transcripts with and without a recurrent layer. · about 33 minutes to read
The problem and its context
A regional label from written evidence
The task starts with an utterance someone has already transcribed. The system receives that stretch of writing and chooses a regional dialect label. This is a particular use of text classification, in which the label describes a variety of language represented by the input. An individual assignment can be checked against the reference label supplied with the utterance. The research question is whether a system can learn to make those assignments from the written examples. Text classification
The paper places the task in a setting where national standard varieties of German coexist with dialects used in everyday communication. Its experiment takes a small, defined part of that setting. The choices correspond to Basel, Bern, Lucerne and Zurich, and all the input comes in the form of transcripts. A geographic name serves as a class label here. Scoring a prediction consists of checking whether that label matches the one attached to the example.
That setup gives a concrete meaning to evidence. A distinctive written form can contribute to a decision. A form that occurs across the dialects may offer little help by itself. The classifier needs to bring together whatever evidence an utterance contains, including potentially weak clues. Since the reference label belongs to the whole utterance, the training problem gives the system a reason to find useful parts of the text without requiring a separate label for each part.
A recording offers a different set of clues. The authors cite work by Schaeffler and Summers that distinguished German dialects using prosody, the patterns of pitch, rhythm and related properties in speech. The present task gives the system no recording to inspect. Any information about the original utterance available for classification has to reach it through the transcription. That distinction explains why the choice of representation sits at the center of the paper. Speech & spoken language
How earlier systems found dialect clues
For written dialect identification, the paper describes a study by Scherrer and Rambow that used a bag of words. A bag-of-words representation summarizes a text through its word inventory and treats the ordinary order of those words as outside the representation. The approach gives a classifier direct access to vocabulary differences. The regional categories in that study covered a broader set of German dialects than the set used for the safina entry.
A word-based representation can distinguish different spellings by giving the resulting forms different entries. It has no built-in way to express that two entries share a particular sequence of letters. That observation helps explain the attraction of working at a smaller scale. A classifier that uses parts of words can register a recurring written pattern even when the complete words containing it are different. An example need never contain a particular whole word for the system to encounter a sequence found inside that word.
Hollenstein and Aepli, in the earlier work discussed by the paper, built a baseline for German dialect identification around character sequences. An n-gram is a contiguous sequence of items whose length is given by n. With characters as the items, the same sequence can occur inside several words, and a short word can also occur as a sequence in its own right. Their baseline used those sequences in a language model, which represents regularities in how units of language occur. N-gram · Language model
The 2017 edition of the German Dialect Identification task gave this approach a common evaluation setting. According to the paper, 10 teams participated and most built systems using character n-grams. The strongest entry described in its account used support vector machines, supervised classifiers that learn how to separate examples by their features. A further classifier combined the individual systems. The inputs included character n-grams of lengths 1-8 as well as word unigrams, features for individual words. VarDial Evaluation Campaign 2017 findings
The use of several lengths matters to the design question the paper takes up. A short sequence specifies a pattern that can recur in many surroundings. A longer sequence specifies more of the form in which it appeared. Individual words provide evidence at another scale. Earlier work could make these scales available by supplying explicit features. The safina system likewise looks at several spans of text, while learning how to respond to the contents of each span.
Why convolution fits the task
The paper traces convolutional neural networks to applications in vision. Its examples include work on image classification and object detection. For the dialect task, the transferable operation is a filter that uses the same parameters wherever it is applied. In a transcript, a useful arrangement of characters could occur at many positions. Learning a detector once and using it throughout the input lets examples at different positions inform the same detector. ImageNet Classification with Deep Convolutional Neural Networks · OverFeat
By the time of this study, convolution was also used in natural language processing, the computational analysis of language. The paper points to earlier text classification work in which character convolution outperformed traditional representations such as bags of words and n-grams, including versions that used term weighting. The earlier dialect work gave a task-specific reason to examine groups of characters. The text classification work supplied a method for learning the features used to examine them. Natural language processing · Character-level Convolutional Networks for Text Classification
In the safina architecture, a filter receives a short, ordered window of vectors, with a vector at each character position. The operation can respond to the arrangement inside that window. The paper asks what the vectors themselves should contain. An identity code tells the filter which character was present. An embedding presents that identity in a learned coordinate system. A recurrent layer can give each position a representation that depends on what its state has already processed.
These possibilities alter the information available to a learned feature in different ways. Direct input lets a filter learn from the arrangement of character identities inside its window. A static embedding changes how those identities are represented to the filter. A recurrent layer can carry information from beyond the immediate window into the vectors that the filter receives. Since the rest of the design can stay in place, the paper can investigate that choice within a common architecture.
The two tracks at VarDial
The four familiar dialects had been the categories in the preceding edition of the shared task. For 2018, organizers retained that classification problem and introduced a track with an additional dialect. Participants in the expanded track faced a category for which the organizers supplied no training data. This was a different setup from fitting a supervised system with labeled examples for each of its possible answers.
The safina entry used the familiar-label track. Its output categories were defined by that track, so every prediction involved a choice within the same set of dialects used for training. The experiment addresses how to represent transcripts for that kind of supervised classification. The surprise-dialect track provides context for the boundaries of the experiment and helps explain why the network is designed to distribute its scores over the familiar labels.
The method, step by step
The input, the target and the character codes
For a reader following an utterance through the system, the basic path is short. The network turns the transcript into an array of character representations. It examines neighboring positions with a collection of filters and saves each filter’s peak response. Those responses support a decision about the utterance as a whole. The point where the submitted designs differ is between the initial character codes and the filters.
The paper denotes a supervised example with a transcript and its associated label. Its indexed pair can be written as follows.
(t⁽ⁱ⁾, l⁽ⁱ⁾)
Here t denotes the text transcript and l denotes the dialect label. The superscript ⁽ⁱ⁾ is an index, with i identifying the utterance. The parentheses enclosing the whole expression and the comma group the transcript and label as a pair. The label is the target supplied for learning. At prediction time, the system uses the transcript to estimate which label belongs with it.
The implementation prepares an input of a fixed length. The limit is 256 characters per transcript. If the text is shorter, padding is added after the last character. If the text is longer, material is removed from the end until the input fits. Both operations preserve the order of the retained text. Padding fills unused positions, while truncation restricts the evidence reaching every later stage to the portion that fits within the limit.
Next, the characters are converted into one-hot codes. A one-hot vector has a designated entry for each character identity. The entry corresponding to the observed character is active and the other entries are inactive. The vector’s coordinates serve as names for the available symbols, so a code carries the same identity whenever it is used. The location of a vector in the array supplies the location of the character in the prepared sequence.
This is the first numerical representation in all the configurations. One-hot encoding makes an identity accessible to a calculation without assigning it an arbitrary numerical rank. Two symbols may have neighboring entries in the character inventory, but that adjacency does not by itself make their codes similar in a way that a filter must respect. Useful relationships can arise from learned weights at the next stage. The recurrence and embedding variants introduce different opportunities for those relationships to be expressed before the convolution.
How a prepared utterance receives dialect scores
The steps in order.
Sending identity codes straight to the filters
The direct configuration uses the sequence of one-hot vectors as the input to convolution. Consider a filter applied to a stretch of text. It has weights associated with positions relative to the start of that stretch and with the entries that can be active at those positions. The character present at each position determines which weights act on that part of the window. Moving the filter onward applies the same set of weights to a different stretch.
This means that the individual character encoding can be simple and the feature computed from a window can still depend on order. The same character at the beginning and end of a window can make different contributions because the filter has different relative positions for it. Likewise, the same characters arranged in a different sequence can produce a different response. A classifier based on direct input thus has local context from the moment the filter examines several positions together.
The importance of that point becomes clear when the direct version is used as an experimental comparison. It is the shortest path between the character code and a learned feature, but it already has a mechanism for using more than isolated letters. Any improvement from an intervening stage is an improvement over a representation that the convolution can combine into ordered patterns.
Learning a static representation for each character
The embedding configuration inserts a learned lookup before convolution. Each character is represented in a vector of length 32. Its entries are trainable values, unlike the fixed identity indicators of the one-hot input. The embedding coordinates may be shared in the sense that the same coordinate can be active to different degrees for many symbols. The convolution learns how to combine the values it encounters at each position in a window.
The lookup is static for a fitted system. If a character appears in different surroundings, its embedding is still retrieved from the same entry. Its coordinates can reflect what the training procedure learned from the character’s occurrences as a whole. At prediction time, context affects the filter’s calculation through the neighboring vectors that appear together in the window.
A comparison with direct input can therefore ask what the new coordinate system buys the classifier. In the direct case, character identities have separate, fixed indicator entries. In the embedding case, the same learned dimensions are used to represent all characters. A filter that relies on a particular dimension may then respond to more than one symbol in related ways. Whether such sharing helps is an empirical question because training may also learn a representation that makes useful distinctions harder for the subsequent filters to exploit.
The embedding used here belongs to the dialect classifier. The paper describes no external character representation being imported into the experiment. The learning signal comes from the dialect prediction task. A coordinate can be useful because of the role it plays in the final classification, even if readers would find it difficult to attach a linguistic description to that coordinate by itself.
Carrying sequence information with a GRU
The recurrent configuration inserts a gated recurrent unit layer with 128 units. A recurrent layer maintains a state as it processes an ordered sequence. It uses the preceding state and the present input to construct the next state. In a GRU, learned gates regulate the update. These controls let the layer vary the influence of what it has already processed and of the character it is processing now.
The important output for this architecture is a sequence of states. Convolution needs a representation at the positions it examines. Rather than receiving a fixed code or a looked-up vector, it receives values computed by the recurrent operation. The same character can generate different states at different occurrences because the state entering its update can differ.
Suppose a filter’s window starts partway through a word. With direct input, the positions outside that window make no direct contribution to the filter response there. With static embeddings, the filter still operates on the identities in the window, expressed in learned coordinates. With recurrent input, the state at a position can carry context from earlier in the order of processing. As a result, a window can provide the filter with evidence about characters outside its immediate span.
There is also a distinction between available context and retained context. The architecture lets earlier information affect a later state. It offers no guarantee that a particular earlier character survives in a useful form, or that a filter responds to it. The learned updates determine what is carried forward, and the learned filters determine which aspects of the states affect their outputs. The paper tests the resulting classifier through its predictions.
The authors describe their GRU as serving a role analogous to the embedding layer. Both supply character representations to a separate feature extraction stage. They achieve that in different ways. The embedding supplies a value associated with an identity. The GRU computes a value associated with an occurrence in a sequence. In either case, the character remains the point of entry for the input, and the rest of the architecture is built to process the resulting array.
Scanning at several widths
The convolutional stage operates on adjacent positions. A filter’s width specifies how many positions go into a calculation at a time. The paper uses widths from 2 to 8. It describes 256 feature maps for each filter setting, giving the architecture multiple learned detectors at a given width. A feature map is the sequence of output values a filter produces as it is applied along the input.
The widths let the system search on several local scales. A narrower filter works with a smaller arrangement of positions. A wider filter can test a pattern that depends directly on a longer stretch of the prepared sequence. Multiple filters at the same width let different sets of weights examine that stretch. Those sets of weights can specialize in different features even though they operate over the same span.
This approach is related to counting explicit character sequences in that both use contiguous stretches of text. The calculation is different. A feature for an explicit sequence can register that particular sequence’s occurrence. A convolutional response is graded. A filter can respond strongly to several arrangements when they give rise to values that fit its weights. Where the input is recurrent, the filter can also respond differently to the same sequence of character identities in different contexts.
To see how a filter can help with dialect classification, follow a single response along the sequence. At each location, the filter combines the available values using its learned weights. If the arrangement there is compatible with those weights, the response may be strong. At another location, some of the same characters might appear with their positions exchanged or their context altered, resulting in a different response. Each map records those differences before the architecture compresses the map.
The stated widths describe the span of the convolution, irrespective of the chosen input representation. In the direct and embedding variants, that span also specifies the identities available directly for a given local calculation. In the GRU variant, context can already be present in the input vectors. Width and recurrence therefore control different aspects of what a filter can use. Width controls how many representations it combines, and recurrence changes what can be encoded in each representation.
The convolution is followed by rectification and batch normalization. The rectified linear unit, abbreviated ReLU, clips negative values at zero and allows positive values through. Batch normalization uses statistics of grouped examples during training to regulate the scale of activations. These operations apply to the feature computation in all the variants. The paper presents them as part of the common architecture.
Compressing the maps and scoring the labels
A full feature map gives a detector’s responses across the input. The dialect decision requires an utterance-level representation, so the architecture takes the maximum value from each map. This is max-over-time pooling. “Time” here refers to positions in the character sequence. A high response can influence the output regardless of where along the map it was found. The paper draws on an earlier use of this operation in language processing. Natural Language Processing (almost) from Scratch
Pooling answers a specific question for each filter. It records how strongly the best match activated the detector. From the resulting value alone, the classification stage cannot recover the location of that match or how many other locations responded strongly. If the same peak appears at different positions, those cases can supply the same pooled value. The architecture therefore emphasizes the presence of a strong feature and compresses the arrangement of responses that led to it.
Some information about order has already influenced the feature maps by this point. Each filter used an ordered window, and the recurrent version supplied states computed from a sequence. Pooling retains the resulting maximum response. It can transmit the effect of an ordered pattern while discarding the location at which the pattern produced that effect. This is how the network can use internal character order and still summarize the utterance with values organized by filter.
The authors put dropout after pooling and use a dropout rate of 0.2. During training, dropout suppresses randomly selected activations. Applied here, it sometimes removes pooled features that would otherwise feed into the class decision. This aims to reduce overfitting, the tendency to adapt so closely to training examples that performance on new examples suffers. Dropout: A Simple Way to Prevent Neural Networks from Overfitting
Finally, softmax expresses the output scores as a distribution over the dialects. It transforms the scores into probabilities that are normalized across the available labels. A higher score corresponds to greater probability, and the label with the highest probability is the straightforward choice for a class decision. The distribution is over Basel, Bern, Lucerne and Zurich because those are the choices for this entry.
This last step combines evidence from the pooled features at the level at which the system is evaluated. A single feature need not identify a dialect on its own. The output can use several detectors together, with their pooled values contributing to the relative scores for the labels. The classification target supervises that joint use. There is no independent dialect decision for each character window in the method described by the paper.
How the settings were chosen
The comparative procedure starts from labeled utterance transcripts. The training signal is the reference dialect of each utterance. In the direct variant, the trainable filter weights can adapt to the coded character windows. The optional embedding and GRU also introduce weights that determine which representations reach those filters. The rest of the network learns to use the pooled responses for classification.
The authors say the architecture settings were chosen on the basis of cross-validation. They joined the official training and development examples for that stage and evaluated configurations on held-out folds. The paper specifies the resulting maximum length, embedding size, recurrent size, filter settings and dropout rate. It describes the submitted runs as differing in what precedes the convolution, so the feature extraction and scoring stages have a common design across those runs.
The implementation used Keras with TensorFlow as its backend. The paper also makes the code for the safina submissions available through a repository named gdi. The architecture specifies the path through a trained classifier, while the cross-validation describes how the authors assessed configurations during development. Details such as the optimizer and the stopping rule are left unspecified in the paper’s account of fitting.
Experiments and results
The corpus and the evaluation splits
The shared-task data come from ArchiMob video recordings collected in the period 1999-2001. The inputs used in this study are transcriptions of utterances from those recordings. The authors describe the official training material for 2018 as an updated and expanded version of the preceding campaign’s training set. This places the experiment in a single corpus setting, with an evaluation designed around particular dialect categories.
The paper gives the class abbreviations as BS for Basel, BE for Bern, LU for Lucerne and ZH for Zurich. These codes stand for the dialect labels associated with transcripts. Counts in the paper refer to utterances. The training set has 14,646 transcribed utterances, and the development set has 4658. Keeping those counts attached to their original splits matters because the authors subsequently pool those splits for a particular experiment.
The first evaluation uses 10-fold cross-validation on that pool. In cross-validation, examples are divided into folds. A held-out fold supplies evaluation examples while the other folds supply training examples. The procedure rotates the held-out role. The reported accuracy summarizes the predictions made in this setup, where the relevant distinction is whether an utterance receives its reference label.
The second evaluation uses the shared-task test. It measures the submitted configurations on the campaign’s test material and reports F1 in place of the cross-validation accuracy measure. The test also provides the setting for the team’s official placement. The cross-validation and test results consequently belong to different experiments with different scoring procedures, even though they concern the same dialect task. Evaluation & benchmarks
A trained baseline for cross-validation
For the pooled data, the baseline is logistic regression implemented in scikit-learn. Logistic regression uses input features to score the classes and learns its weights from labeled examples. The features in this case use TF-IDF, a method of weighting terms according to their occurrence within an input and their prevalence across a collection. Terms that occur across many inputs can receive less emphasis than terms that help distinguish particular inputs. TF-IDF
This baseline learns to classify the dialects from a supplied representation of the text. The convolutional systems learn the local features on which their output depends. The comparison therefore puts two ways of obtaining useful predictors into the same pooled-data evaluation. The paper identifies the baseline by its classifier and weighting method. Details such as the term inventory and its selection are outside the reported description.
All the cross-validation values are accuracies. This means each evaluated utterance contributes a correct or incorrect assignment to the score. A success on an utterance from one dialect has the same influence on accuracy as a success on an utterance from another dialect. The total influence of a dialect depends on how many examples with that label are evaluated.
GDI accuracy in cross-validation on pooled training and development transcripts
The GRU configuration ranks highest, with direct character codes ahead of the static embedding.
The numbers
| System or setting | Accuracy |
|---|---|
| TF-IDF logistic regression | 0.7714 |
| Convolution on character identity codes | 0.7821 |
| Convolution on static character embeddings | 0.7802 |
| Convolution on GRU states (this paper) | 0.7964 |
The GRU’s 0.7964 is the highest accuracy in this cross-validation comparison. Direct input achieves 0.7821, followed by the static embedding at 0.7802. Each convolutional configuration exceeds the logistic regression baseline’s accuracy of 0.7714 in this experiment. The chart compares the specified pipelines under the same reported measure. It cannot attribute the full advantage over the logistic regression baseline to an individual layer because the pipelines also differ in their features and classifiers.
Among the convolutional runs, the order separates the effects of the two optional layers as tested. The static embedding is behind the configuration that sends the identity codes straight to the filters. The GRU is ahead of both. Those are comparisons of the reported configurations on the pooled data. The official test then gives another opportunity to compare the choices using a different set of examples and a different measure.
What the test’s F1 scores measure
F1 combines precision and recall. For a particular dialect, precision concerns the utterances the system assigned to that dialect. It asks what share of those assignments were correct. Recall concerns the utterances with that dialect as their reference label. It asks what share the system successfully found. F1 uses the harmonic mean of the two measures, so strong performance on just one of them gives a limited class score.
This distinction is visible in the direction of an error. If an utterance labeled Lucerne is assigned to Bern, it becomes a missed Lucerne example. It also becomes an incorrect assignment within the predictions of Bern. An evaluation based on precision and recall can reflect both effects. Accuracy counts the utterance once as incorrectly classified and gives no separate account of the two labels involved.
An overall F1 number needs a rule for combining the dialect-level scores. Macro F1 gives the dialects equal weight in that combination. Weighted F1 gives each dialect weight according to its number of reference examples. A dialect with fewer test examples can therefore account for a smaller share of the weighted result than of the macro result. The distinctions matter because the paper’s test table and its ranking narrative use different labels for the metric.
The reference point in the test table is a random baseline. Its reported macro F1 is 0.2521. This baseline provides a chance reference for the submitted runs. The supervised logistic regression appears in the cross-validation comparison. Accordingly, the test table gives no test F1 result for that classifier, and its baseline comparison should be read on its own terms.
Macro F1 reported for the GDI four-way shared-task test
The recurrent submission leads the test comparison, and every submission scores above the random baseline.
The numbers
| System or setting | Macro F1 |
|---|---|
| Random label baseline | 0.2521 |
| Convolution on character identity codes | 0.6223 |
| Convolution on static character embeddings | 0.6171 |
| Convolution on GRU states (this paper) | 0.6449 |
The test table records 0.6223 for direct input, 0.6171 for the static embedding and 0.6449 for the GRU, all under its macro F1 label. The relative order of the submissions is the same as in the pooled-data accuracy experiment. This is a comparison of positions in each ranking. The actual score values come from different measures on different evaluation examples, so the change in magnitude across experiments does not estimate how much harder the test examples were.
The campaign placement is reported in terms of weighted F1. The paper gives 64.49% as the safina team’s weighted score and places the team second among eight teams. The test table’s 0.6449 and the ranking account’s 64.49% are each best read with the metric label attached to them in the paper. The paper gives no breakdown of per-class F1 and class counts that would resolve how the two descriptions relate.
The placement and the test table also concern different comparisons. The placement concerns the team among the participating teams. The table compares the team’s submissions with one another and with the random baseline. The table therefore supports a statement about which safina configuration did best. The event ranking supplies a separate statement about how the strongest result was situated among entrants.
Time spent training and errors on the test
The paper accompanies the GRU’s result with an approximate training-time comparison. A network with recurrence took about 5 times as long to train as a network without recurrence. The relevant quantity is elapsed training time in the reported experiment. The comparison does not give absolute durations, and it is distinct from how long a trained classifier takes to assign a label.
The architecture helps explain why adding recurrence changes the amount and organization of work. A state has to be computed from the preceding state and the current input before it can contribute to a later update. The convolution then operates on the resulting representations. Direct input and static character lookup supply their vectors without that chain of learned state updates. The paper gives a measured comparison for the complete training runs, with the recurrence as the major architectural change under study.
The authors also examine a confusion matrix for the best test submission. A confusion matrix cross-tabulates the reference and predicted categories. Cells where the categories agree account for correct classifications. The other cells separate mistakes by where they went. This second property is especially useful when the goal is to understand which distinctions remain difficult after observing an aggregate score.
The authors identify Lucerne as the most confusing class and call attention to its assignment to Bern. The direction has a specific meaning. The reference category in the highlighted errors is Lucerne, and the category selected by the classifier is Bern. A similar claim about Bern utterances being assigned to Lucerne would concern a different cell. The highlighted pattern narrows the error description to a particular failure within the best-performing run.
This analysis also gives the aggregate scores a more concrete interpretation. A run can lead in overall F1 while repeatedly mistaking some utterances from a particular dialect for another. The rank tells how the submitted runs compare under the aggregate measure. The matrix identifies the category distinction on which the paper concentrates its discussion of errors.
What the ablations show
Changing what the convolution receives
The paper’s main controlled comparison is the replacement of the component between the character codes and the convolution. Direct input omits a learned transformation at that point. The other runs put a static embedding or a GRU in that position. Because the later stages follow the same design, the comparison tests alternative ways of preparing the character sequence for a common mechanism that finds and pools features.
The direct version provides evidence about what can be learned from character identity alone at the input to convolution. Its filters can use an ordered local arrangement and pass the strongest resulting activation forward. It exceeds the reported baseline in each of the evaluations, where the cross-validation baseline is trained logistic regression and the test baseline is random. The measurements show that the shared feature extractor can perform the task with this comparatively simple preparation of the input.
Inserting the static embedding gives the filters a trainable representation of each character, and that change scores below direct input in both evaluations. The result concerns the chosen embedding and its use within this architecture. The embedding gives filters a different way to share information across identities, but it has to learn its coordinates from the labeled task data. The reported outcome shows that adding this flexibility was insufficient to produce a higher score than the direct variant.
Inserting the GRU produces the leading configuration in both comparisons. It supplies a representation that can reflect the history of the sequence processed by the recurrent layer. The mechanism gives a plausible reason this configuration can find features that the others miss. For example, a detector can react differently when the same local character arrangement occurs with different preceding material. The performance results establish the advantage of the complete configuration. They do not identify individual instances in which that mechanism changed the decision.
The distinction between the two optional layers is central to the comparison. Both introduce trainable representations, yet they change different properties of the input. The static layer can learn coordinates shared across occurrences of an identity. The recurrent layer can vary its output from occurrence to occurrence. Since the static version trails direct input, a general claim that the additional learned representation explains the improvement would miss the experimental pattern. The improvement is specific to the tested recurrent design.
Which explanation the controls can support
Keeping the downstream design common makes the experiment easier to interpret, but the comparison changes more than the availability of context. The representations use different dimensions and are produced by different operations. The specification of 32 for embedding length and 128 for GRU units shows that the comparison is not between otherwise identical representations with a single connection removed. The change can affect the capacity of the front end and the numerical inputs with which the filters learn to work.
Local context is available through convolution in every run. Recurrence changes the potential reach of that context and the stage at which it enters the computation. A filter in the direct architecture can already detect a particular ordering of neighboring characters. A filter in the recurrent architecture can detect an arrangement of states carrying additional information. The advantage of the latter shows that these two complete routes to feature computation behaved differently. Attributing the entire advantage to longer context requires a comparison designed to isolate that factor.
The consistent ordering across the evaluations is useful for interpreting the observed advantage. A GRU lead in cross-validation accuracy could have been peculiar to that evaluation. The test table also places the GRU first among the submissions, and both comparisons put direct input ahead of the static embedding. The paper reports aggregate values for each run. Their agreement establishes that the ordering was observed under both protocols, while offering no estimate of how often it would recur under changes to sampling or fitting.
There is no separate reported comparison of individual convolution widths, max pooling and other ways of summarizing features, or the inclusion and removal of dropout and normalization. Those choices form part of the architecture the front ends share. The cross-validation procedure informed the stated settings, but the reported comparison leaves the contributions of those settings bundled within the common design. The most direct evidence is therefore for the replacement at the input to convolution.
What the timing and confusion analyses contribute
The training-time observation compares a practical consequence of using the recurrent front end. The better-performing setup also takes longer to fit. That combination of findings matters because an architecture can look preferable on a scoring table while using more time to obtain the score. The recorded timing is evidence about the tested networks and accompanies the quality comparison at that level.
The confusion matrix serves a different purpose. It describes one result after the recurrent configuration was selected as the best run. The highlighted Lucerne-to-Bern pattern shows a distinction the recurrent architecture still handles imperfectly. Because the paper discusses the matrix for the GRU run, the figure offers no controlled comparison of that specific error across front ends. The aggregate advantage could involve changes to several dialects or several directions of error.
Taken together, the analyses support a narrow architectural conclusion. In this shared convolutional design, the recurrent option improved the reported aggregate comparisons and increased training time, while the static character embedding failed to improve on direct input. The remaining Lucerne errors illustrate why identifying a better configuration and explaining its decisions are separate research questions. The paper measures the former in detail and addresses the latter through the distribution of predicted labels.
Limitations
Boundaries explicit in the paper
The team explicitly limits its participation to the four-way evaluation. All the classes its classifier can select are familiar dialects in the supervised task. The paper gives no evaluation of the method on the track containing the surprise dialect. Its probability distribution consequently provides evidence about decisions within the set of familiar labels. It offers no measurement of how the same approach would handle an utterance belonging to an unseen category.
The paper explicitly treats training time as a disadvantage of the recurrent design. Its conclusion returns to the longer fitting time when comparing recurrence with a regular embedding. This qualification belongs alongside the quality result because the added layer changes the resources required to obtain the trained classifier. The paper reports the cost for its own comparison, where the other settings follow the common design described in the method.
The authors also draw attention to a class-specific problem in the strongest submission. Lucerne utterances often end up with the Bern label in their reading of the confusion matrix. This is an observed weakness of the tested system. The paper treats it as a pattern of misclassification. A linguistic account of the similarity responsible for those assignments would require other evidence about the examples and the responses computed for them.
Limits a reader can infer from the data and protocol
The evidence comes from a corpus with a particular source of recordings and transcription. A system trained on written forms can use whatever regularities in those forms help predict labels. That may include differences in spelling or vocabulary as the transcriptions represent them. If a different corpus puts the same utterances into writing differently, the feature patterns seen by the filters could change. The paper offers no comparison of transcription conventions or external transcript collections from which to estimate that effect.
The transcript is also the boundary of the signal. Prosodic cues were relevant to some of the earlier work the authors cite, while the input here contains written character sequences. The experiments establish performance for identifying labels from those sequences. Accuracy on recordings, or the improvement possible from using the recordings together with the text, remains outside the experimental evidence.
Within the transcript, the input cap creates a further boundary. If a transcript exceeds 256 characters, the later portion is unavailable to every architecture, including the GRU. This can matter whenever useful evidence comes after the cutoff. The paper gives neither the frequency of truncation nor a breakdown of results by transcript length, so the cost of this constraint cannot be estimated from the scores. The effect of padding on the learned features is likewise left unevaluated.
The description of the folds says which datasets were pooled and how many folds were used. It leaves the grouping procedure unspecified. For instance, a split that keeps utterances from each speaker or each recording together would address generalization to speakers or recordings withheld as groups. The paper does not establish whether it used such grouping. This is a limit on what the reported fold experiment can demonstrate about generalization, without implying that any particular overlap occurred.
The same cross-validation is described both as a source of reported performance and as a basis for choosing the architecture settings. Without details of which decisions were made at which stage, the effect of this selection on the internal accuracy values is difficult to assess. The separate shared-task test adds evidence about the submitted configurations. Its role remains distinct from a detailed accounting of how tuning affected the internal experiment.
Limits a reader can infer from the reported scores
Accuracy and F1 summarize different aspects of performance. An accuracy value counts whether utterances were assigned correctly. F1 depends on precision and recall, and its overall value depends on how the dialect scores are aggregated. Since the paper changes both the evaluation examples and the measure between its tables, the scores cannot identify how much the test material itself changed the difficulty of the task. Comparisons within each table have the cleaner interpretation.
The paper labels the test comparison macro F1 and explains the team ranking through weighted F1. Equal and frequency-based class weights have different consequences for how errors enter an overall score. The reporting would be easier to interpret with per-class results and enough information to reconstruct the aggregations. As it stands, the test table establishes its reported order among runs, and the ranking account gives the reported placement and metric. The relationship between the two metric labels remains unresolved.
The tables contain point results. The paper gives no fold-level distribution of accuracies, uncertainty intervals or variation across repeated fits. This particularly matters when reading the direct-input and static-embedding results, which have similar scores. One can say which configuration came ahead in the reported runs. The numbers do not establish the stability of that ordering across new partitions, random initializations or other samples.
The baselines also define the reach of the result. Logistic regression with TF-IDF is the trained comparison reported in the pooled-data experiment. A random baseline appears on the test. The authors do not give a test comparison against the earlier ensemble of support vector machines described in the related work. The campaign placement gives relative standing in the event, while the comparisons in the paper support more specific claims about the listed systems.
Limits a reader can infer about mechanism and cost
The recurrent front end changes the form of the input to each filter and adds a trainable state update. The static embedding changes the representation in another way. Since those interventions also differ in size and structure, the paper cannot establish how much of the GRU advantage comes specifically from carrying earlier context through the sequence. A comparison that matched representation size and controlled access to earlier context would address a more isolated question than the one these runs answer.
The paper also leaves open which written regularities the features exploit. Pooling can preserve the response to an informative window, but the error analysis uses predicted labels instead of an inspection of the windows that produced strong activations. A Lucerne-to-Bern error could be investigated by examining its transcript or tracing responses in the network. The reported confusion pattern alone cannot tell whether the cause concerns a shared written form, a misleading cue, or a lack of evidence in the example.
The training description is sufficient to identify the major stages and their reported settings. It leaves details such as optimization and stopping unspecified. Those decisions can affect both the performance and the amount of time spent fitting a network. The paper’s release of the submission code gives the implementation a separate record. The architectural account and results in the paper support comparisons at the level of the configurations it describes.
Finally, the approximate timing describes training. The paper gives no absolute timing, detailed timing protocol or inference benchmark. The sequential dependence of a GRU helps explain why its computational requirements differ, but it does not determine the timing of a new implementation or the latency of a trained classifier. The supported practical observation is that the recurrent setup was slower to fit under the conditions of the paper’s experiment.
What came after
The relevant citing work is the overview of the second VarDial evaluation campaign, published in 2018. It concerns the same event as the safina submission and is also the work the submission cites when describing the organization of the shared task. The two accounts operate at different scales. The campaign overview describes the common evaluation, while the submission paper explains the particular architecture and comparisons that produced the team’s entry. Language Identification and Morphosyntactic Tagging at the Second VarDial Evaluation Campaign
The connection to the later account is thus the entry’s place in the campaign. The method contributed an evaluated system that learned features from characters and compared a recurrent preparation of those characters with simpler alternatives. The common task gave those decisions an external test setting with a ranking criterion. Within the submission, the comparison among the front ends explains which of the team’s runs gave its strongest result. Within the event, the placement situates that result among the participating teams.
The documented follow-through is a citation in a campaign account. The evidence for the internal effect of adding the GRU still comes from the submission’s own cross-validation and shared-task runs. The campaign relationship provides no separate replication of the front-end comparison or evidence that other teams adopted the architecture. It records the contribution in the setting in which it was evaluated, including the distinction between the familiar-dialect track the team entered and the campaign’s wider task design.
Cite
Cite as Mohamed Ali. 2018. Character Level Convolutional Neural Network for German Dialect Identification. Proceedings of the Fifth Workshop on NLP for Similar Languages, Varieties and Dialects (VarDial 2018).
@inproceedings{mohamed2018character,
title = {{Character Level Convolutional Neural Network for German Dialect Identification}},
author = {Mohamed Ali},
booktitle = {Proceedings of the Fifth Workshop on NLP for Similar Languages, Varieties and Dialects (VarDial 2018)},
year = {2018},
url = {https://aclanthology.org/W18-3919/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/ali-2018-character-level-convolutional-neural-network-w18-3919/