---
title: "Character Level Convolutional Neural Network for German"
description: "A character-level neural network identifies Swiss German dialects from speech transcripts and tests whether adding a recurrent layer…"
canonical: "https://research.elamur.ai/free/en/papers/ali-2018-character-level-convolutional-neural-network-w18-3919/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/ali-2018-character-level-convolutional-neural-network-w18-3919/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2018](https://md.research.elamur.ai/free/en/papers/2018/) / Character Level Convolutional Neural Network for German Dialect Identification

# Character Level Convolutional Neural Network for German Dialect Identification

Paper · 2018 · Mohamed Ali

**Authors:** Ali, Mohamed · **Year:** 2018 · **Venue:** Proceedings of the Fifth Workshop on NLP for Similar Languages, Varieties and Dialects (VarDial 2018) · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

[Proceedings of the Fifth Workshop on NLP for Similar Languages, Varieties and Dialects (VarDial 2018)](https://aclanthology.org/volumes/W18-39/) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/W18-3919/)
- [PDF](https://aclanthology.org/W18-3919.pdf)

## Summary

A transcript preserves some clues to where a person’s way of speaking belongs. It also strips away clues that a listener could hear, such as the rise and fall of the voice. This paper asks how well a classifier can identify a Swiss German dialect using the characters in a transcript. It studies the German Dialect Identification shared task at VarDial 2018. The safina team entered the track that asked participants to assign each utterance to Basel, Bern, Lucerne or Zurich. The campaign also offered a track with a surprise dialect for which training examples were unavailable.

The authors use a character-level convolutional neural network, which learns to recognize useful patterns in short stretches of text. They compare ways of preparing the characters before that search. One version gives the network the identity of each character directly. Another learns an embedding, a set of numerical coordinates for each character. The third uses a gated recurrent unit, or GRU, which can represent a character in light of the sequence it has processed. All the versions then scan for patterns, keep the strongest response to each learned pattern, and use those responses to score the dialect labels.

The GRU version achieved the highest accuracy in cross-validation on the pooled training and development data, at 0.7964. It also led the submitted runs in the test table, with a score of 0.6449 in the column labeled macro F1. The paper separately reports a weighted F1 of 64.49% for the team’s second-place finish among eight teams. The recurrence came at a training cost of about 5 times the duration reported for a network without the recurrent layer. The error analysis highlights a difficulty that survives the improvement. The authors identify Lucerne as the dialect that caused the most confusion in the best run, with Lucerne utterances frequently assigned to Bern. The experiment shows that the way the convolution receives character information can affect the quality of dialect identification, even when the same stages follow it.

## Deep dive: Character Level Convolutional Neural Network for German Dialect Identification

A character-level neural network identifies Swiss German dialects from speech transcripts and tests whether adding a recurrent layer improves its predictions. · about 32 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### Identifying a dialect from a transcript

German has national standard varieties and regional dialects. The paper situates the latter in everyday communication, then asks a narrower question about Swiss German. Given a transcript of an utterance, can a system assign it to the region associated with its dialect? The possible labels in the team’s track are Basel, Bern, Lucerne and Zurich. Each prediction concerns a particular written record of speech and is judged against the label attached to that record.

There are different ways to give a classifier evidence about how somebody speaks. A system working from a recording can use properties of the sound. A system working from a transcript sees the written choices used to represent the utterance. The paper reviews earlier German dialect identification in both forms. Schaeffler and Summers examined spoken German using prosodic cues, which concern properties of speech such as its intonation and rhythm. Those cues help explain why the choice of input is consequential. The classifier in this study can examine how the transcript is written, while the recording itself is outside its input.

The task belongs to [text classification](https://md.research.elamur.ai/free/en/concepts/text-classification/), where a system receives a piece of text and assigns a label from a specified set. Here the text is an utterance transcript and the labels are dialect categories. The category comes from evidence distributed across the utterance. A transcript may contain a distinctive spelling or an informative word form. It may also contain stretches shared by several dialects. The system has to turn such mixed evidence into a single decision. The benchmark supplies the categories and examples, so the paper tests how well a classifier learns to make those decisions from the data.

The regional names have a specific role in this evaluation. They identify the choices available to the classifier. A prediction of Bern means that the Bern label received the strongest support among the options the system was trained to score. The experiment judges that choice against the dataset label. The paper’s design therefore puts the emphasis on learning the distinctions represented in the transcripts. It leaves broader questions about the geographic distribution or linguistic definition of the dialects outside the classification problem.

#### Earlier ways to represent written dialect

The paper describes word-based and character-based precedents. Scherrer and Rambow worked on written German dialect identification using a bag of words. A bag-of-words representation describes a text through the words it contains, with the word inventory carrying the evidence. That gives a classifier access to regional vocabulary as represented in writing. The arrangement of the words is left out of the representation. Their study considered regional varieties in a different set of categories from those used by the safina team.

Hollenstein and Aepli developed a German dialect identification baseline using a character [n-gram](https://md.research.elamur.ai/free/en/concepts/n-gram/). An n-gram is a sequence of neighboring items of a given length. With characters as the items, a feature can represent part of a word, a whole short word, or a stretch that includes a space if spaces are retained in the character sequence. This changes what counts as shared evidence. Different written words can still contain the same character sequence, and a feature can be activated by that sequence wherever it occurs.

The paper calls the earlier baseline a character n-gram [language model](https://md.research.elamur.ai/free/en/concepts/language-model/). Its reliance on short character sequences establishes that character-level evidence was already part of dialect identification before the convolutional approach studied here. A useful point of comparison is the structure of the representation. An n-gram feature refers to a particular sequence. In a convolutional network, a learned filter gives a graded response to the contents of a window. The network can learn which aspects of a window matter for its prediction, with the training examples supplying the supervision.

Character n-grams were also prominent in the earlier shared task. The [VarDial 2017 campaign findings](https://md.research.elamur.ai/free/en/papers/zampieri-2017-findings-vardial-evaluation-campaign/) put the German dialect task in the setting of a common evaluation. The paper says that 10 teams took part and that most used features based on character n-grams. The strongest approach described for that task combined several support vector machine classifiers through a meta-classifier. A support vector machine is a supervised classifier, and a meta-classifier uses the outputs of other classifiers in forming its decision. The features in that approach covered character n-gram lengths from 1-8 and also included individual words.

That earlier combination illustrates a reason to examine words and their parts at different scales. A short character sequence can recur across many words. A longer sequence can preserve more of a particular written form. A whole-word feature provides another way of specifying the evidence. The paper carries the question of scale into its network through convolutional filters of several widths. It replaces a list of explicit character features with detectors whose weights are learned for dialect classification. The comparison with earlier methods is about how the methods obtain and combine evidence. The paper’s earlier-work discussion supplies the precedent for using the characters in the first place.

#### From image filters to text filters

The proposed architecture also draws on a different line of work. Convolutional neural networks had been used in computer vision, with [ImageNet classification with deep convolutional networks](https://md.research.elamur.ai/free/en/papers/krizhevsky-2012-imagenet-classification-deep-convolutional/) and [OverFeat](https://md.research.elamur.ai/free/en/papers/sermanet-2013-overfeat-integrated-recognition-localization-detection/) among the examples cited. A convolution applies the same learned operation to different parts of an input. The idea carries over to a transcript because the same kind of local character pattern can be useful near the beginning of an utterance or near the end. A detector can apply the same weights at each position it examines.

The paper cites prior work on convolution in [natural language processing](https://md.research.elamur.ai/free/en/concepts/natural-language-processing/) and points specifically to [character-level convolutional networks for text classification](https://md.research.elamur.ai/free/en/papers/zhang-2015-character-level-convolutional-networks-text/). As described in the paper, that work showed that character convolution could compete with established text representations such as bags of words and n-gram features, including variants that use term weighting. The German dialect experiment takes the general architecture into a task where earlier entrants had already found character sequences worth representing.

Character identity, character context and the width of a filter are distinct parts of the design. Character identity says which symbol occupies a position. A filter’s width says how many adjacent positions contribute directly to a response. A contextual representation can carry information from beyond the positions included in that window. This last distinction motivates the paper’s comparison. A convolution can already see neighboring positions, so the question is whether changing what each position contains makes the classifier more effective.

#### What changed in the shared task

The earlier VarDial German dialect task used transcripts to distinguish the same named Swiss German dialects that appear in the team’s submission. In 2018, the organizers added the surprise-dialect option. The evaluation at the event had two tracks: one used the four familiar labels, and the other added the surprise dialect as a fifth option. The challenge of the additional category was that the task supplied no training data for it.

The paper reports on participation in the four-way track. This choice determines what the learning problem can assume. Each dialect the system is asked to recognize is part of the supervised task. The architecture consequently produces scores over those familiar labels. The five-way track would have introduced a different question about the evidence available for one of the output categories. It is useful to keep that distinction in view when reading the architecture, because the number of outputs comes from the format of the evaluation.

The shared task also gives the comparison a concrete purpose. The authors wanted to build submissions for a common test and examine the effect of the representation passed to their convolutional stage. A transcript can be scanned as a sequence of character identities, as a sequence of learned character embeddings, or as a sequence of states that carry context. Those possibilities use the same underlying written material. The experiment changes the representation through which the rest of the network can use it.

### The method, step by step

#### From an utterance to a character sequence

The classifier starts with a transcript and ends with a distribution of probability scores over the dialect labels. During training, a transcript is paired with its reference label. The authors express that setup with an example index. Written as a prediction task, their notation is as follows.

```
t⁽ⁱ⁾ → l⁽ⁱ⁾
```

The symbol `t` stands for a transcript and `l` for its dialect label. The superscript `⁽ⁱ⁾` identifies the example, so both items belong to the same utterance. The arrow indicates the prediction direction. The network receives the transcript and aims to recover the label associated with it. Its immediate output is a set of scores expressed as probabilities, from which a dialect can be selected.

The transcript is processed as an ordered sequence of characters. The order matters because later operations examine adjacent positions, and the recurrent configuration passes information along the sequence. Character-level input also determines the unit at which the network begins to learn. It can build up evidence from stretches inside written words without requiring word entries as its primary input. The supplied dialect labels supervise the utterance as a whole.

The network uses a fixed maximum input length of 256 characters. For a transcript shorter than that limit, padding fills positions at the end. For a longer transcript, truncation removes characters from the end. These operations prepare sequences of the same length for the network. They have different consequences for the input. Padding provides positions needed to reach the specified shape. Truncation leaves the network with the opening portion of the original transcript, so the evidence it can use is limited to the characters that fit. The paper gives the length rule as part of the architecture.

Each character is mapped to a one-hot vector. A vector is an ordered collection of numerical entries. In the one-hot scheme, the entry corresponding to a character’s identity is active, and the other entries are inactive. The same character receives the same code wherever it appears. The code distinguishes identities, while the surrounding sequence and the learned operations determine how those identities contribute to a label.

The one-hot representation has a straightforward interpretation when it reaches a filter directly. A part of the filter’s weight array corresponds to each possible character at each position in the window. The active entry at a position determines which of those weights contributes there. Different relative positions in a window can therefore give a character different effects. A filter can use the ordering of characters even though an individual character code has no information about its neighbors.

From transcript characters to dialect probabilities The steps in order.

#### The choice before convolution

In the direct configuration, the one-hot sequence goes straight to the convolutional stage. Each position represents the identity of the symbol found there. Local context enters when a filter processes several of those positions together. That distinction makes the direct version a substantive comparison. It can already use character order and neighboring characters. Any extra context supplied by recurrence has to improve on a system with its own means of finding local patterns.

The embedding configuration adds a learned transformation before convolution. It represents each character through a vector with an embedding length of 32. The coordinates of that vector are learned during training. Where one-hot encoding allocates a separate identity entry to each character, the embedding lets the same numerical coordinate contribute to the representations of different characters. This gives the network a way of sharing aspects of its representation across identities when that helps the dialect prediction.

An ordinary character embedding supplies the same vector whenever a given character is looked up. Its training can reflect the many contexts in which that character appeared, but the resulting lookup does not vary with the neighbors of a particular occurrence. The convolution combines several such vectors into a response to their local arrangement. In this case the paper’s representation change concerns the coordinates through which the character is presented. The convolution still supplies the first operation that combines neighboring positions at prediction time.

The recurrent configuration uses a gated recurrent unit before convolution. A GRU carries a state along a sequence. The state is a vector that is updated as the unit processes a character. Learned gates control how information from the preceding state and the current input contributes to the updated state. The paper’s GRU layer has 128 units. Its role in the architecture is to produce the sequence of representations that the convolution will scan.

This recurrent operation changes the meaning of a position in the convolution’s input. In the direct configuration, the vector at that position gives the character identity. In the embedding configuration, it gives the learned coordinates of that identity. A recurrent state can additionally reflect other characters processed by the unit. Two occurrences of the same symbol can consequently have different representations. Even if a convolutional window covers the same character identities in two parts of an utterance, it can respond differently if the recurrent states entering the window differ.

The distinction is easiest to see by thinking about a window that begins within a written word. A direct convolution uses the characters visible in the window. An embedding-based convolution uses their learned vectors. A recurrent representation at the start of the window can carry information from characters processed before it, so the window’s inputs may reflect some of the preceding written sequence as well. This describes what the architecture makes possible. The experiment does not trace any particular state back to a word or identify how much earlier information was preserved in a given prediction.

The authors characterize the GRU as serving an embedding-like role in their best submission. In this sense, both optional layers supply a numerical representation for the characters before the convolution. Their ways of doing so have different implications for information flow. An embedding retrieves learned coordinates for the current character. A recurrent layer computes a state using the sequence operation. The paper’s comparison keeps the stages following that choice in common, so the experiment concerns how these different inputs work with the same kind of feature extractor.

#### How a filter creates a feature map

The convolutional stage moves learned filters along the prepared sequence. A filter takes a window of neighboring positions, uses the same weights for windows at different locations, and produces a response at each location where it is applied. A filter can learn to give stronger responses to arrangements that help with the training decisions. Its sequence of responses across the transcript is called a feature map.

The paper uses convolution filter sizes from 2 to 8, with 256 feature maps for each filter size. Width specifies the span of the convolutional operation in positions. The widths give the network access to different amounts of adjacent evidence at once. Each set of feature maps supplies multiple learned responses at the same scale. That gives different filters of the same width the opportunity to represent different regularities.

A filter is related to an n-gram feature in the sense that it looks at an ordered stretch. A feature tied to a specific n-gram registers an occurrence of that sequence. A learned filter compares its weights with the representation of a window and returns a numerical response. This allows the training process to give strong responses to more than one written sequence when the relevant coordinates match the filter’s learned preferences. With recurrent input, the filter also receives information carried by the states at those positions.

The same weights are used as a filter moves from one window to the next. A pattern learned from examples in one location can therefore be detected in another location. The computation also retains order inside the window because the filter associates its weights with positions relative to the window’s beginning. Changing that internal order can change the response. These properties explain how the network can look for patterns wherever they occur while still distinguishing different arrangements of characters in a short stretch.

After convolution, the network applies a rectified linear unit, or ReLU. This operation replaces a negative input with zero and leaves a positive input at its existing value. It allows a response to register when it is positive and changes how the following layers receive the convolution’s output. The architecture also applies batch normalization. This uses statistics from groups of training examples to normalize activations and helps govern their scale during learning. The paper describes these as stages shared by the submitted configurations.

Where the GRU is used, a convolution of a given width still combines the specified span of consecutive positions. What changes is the information available at those positions. The width limits the direct reach of the filter in the sequence of vectors. A vector from the GRU can already incorporate context from the sequence processed by the recurrent layer. This is why adding recurrence and increasing a filter’s width describe different changes to the network, even though both can affect how much surrounding information contributes to a feature.

#### From a map of responses to a dialect decision

A feature map contains responses at different locations. The architecture reduces each map to its largest value using max-over-time pooling. Here “time” means the sequence positions along the text. One map contributes the strength of its strongest response to the pooled representation. The paper connects this operation to [Natural Language Processing (almost) from Scratch](https://md.research.elamur.ai/free/en/papers/collobert-2011-natural-language-processing-almost-scratch/).

The pooling rule suits a decision in which evidence may occur anywhere in the utterance. A detector can respond strongly to a useful feature near either end of the input, and the strongest response can reach the classifier in either case. Pooling also makes the amount of evidence passed forward predictable. Each feature map gives a single value to the next stage, even though it was computed from a series of window responses.

The reduction has a specific effect on the information available to the output layer. It retains the strength of the best match for a detector. The position that produced that match, the count of other matches, and the relative ordering of responses across different maps disappear from the pooled values. Some ordering can already be represented in the activations themselves because convolution operates over ordered positions and the GRU can encode sequence context. The final stage receives the result of those earlier computations in a form that emphasizes the strongest evidence found by each detector.

The authors apply dropout after pooling, at a rate of 0.2. Dropout temporarily suppresses randomly selected activations during training. Here it changes which pooled features are available on a particular training pass. The intention is to reduce overfitting, where a classifier adapts too closely to the examples on which it learns and performs less well on new ones. The paper cites [Dropout as a method for reducing overfitting](https://md.research.elamur.ai/free/en/papers/srivastava-2014-dropout-simple-way-prevent/) in describing this stage.

A softmax output converts the class scores into a probability distribution. Softmax gives greater probability to higher scores and normalizes the scores across the available classes. The output therefore allocates probability among Basel, Bern, Lucerne and Zurich for the utterance being classified. A class can receive the highest probability even when the evidence leaves room for alternatives. The paper evaluates the class decisions with measures based on correct predictions, and the output probabilities serve as the means by which the system arrives at those decisions.

#### Fitting the network for the task

The training examples come with dialect labels. Those labels supply the target for learning the convolutional filters and the parameters used to map pooled features to dialect scores. They also supervise the optional learned transformation before the convolution. The design makes that transformation task-specific. A character embedding or recurrent state can acquire characteristics that help the dialect decision, regardless of whether those characteristics correspond to a linguistic distinction a reader would name.

The authors say they chose the stated settings on the basis of cross-validation. Their evaluation pools the organizer-supplied training and development examples for that procedure. The paper reports the final length, representation sizes, filter settings and dropout rate as the configuration used for the network. The submitted runs share the convolution, pooling and output stages, with the input to convolution changed for the comparison.

Keras was used to implement the network, with TensorFlow providing the backend. The paper makes the safina submissions’ implementation available as the `gdi` code repository. In the written account, the architecture and input rule give the main path from characters to dialect scores. The measured comparison then concerns the complete systems built from that path, including the effect of putting the embedding or GRU in front of the same subsequent stages.

### Experiments and results

#### Data and the two evaluations

The German Dialect Identification dataset contains transcribed utterances from videos that the ArchiMob association collected between 1999 and 2001. The paper describes the 2018 training set as an expansion and update of the set used in 2017. An utterance transcript is the example counted in the reported dataset sizes. The official training set contains 14,646 utterance transcripts and the development set contains 4658. The paper uses BE for Bern, BS for Basel, LU for Lucerne and ZH for Zurich.

The authors use these data in two evaluations that answer different questions. First, they combine the training and development sets for 10-fold cross-validation. In cross-validation the data are divided into folds. A fold is held out for evaluation while the other folds supply the training examples, and the held-out role rotates through the folds. This gives an evaluation on parts of the pooled data that were held out in each run. The measure reported for these comparisons is accuracy, the share of evaluated utterances that receive the correct dialect label.

The second evaluation is the shared-task test. Here the team submitted its direct, embedding and recurrent configurations for scoring. The test table labels its measure macro F1. The paper’s account of the official ranking separately refers to weighted F1. These results sit within a common [evaluation and benchmark](https://md.research.elamur.ai/free/en/topics/evaluation-benchmarks/) setting for the participating teams. The distinction between the internal and shared-task evaluations matters when interpreting both the numerical comparisons and the choice of baselines.

#### Cross-validation accuracy

For the pooled training and development data, the authors compare their convolutional systems with logistic regression using [TF-IDF](https://md.research.elamur.ai/free/en/concepts/tf-idf/) features. TF-IDF weights terms using how often they occur in a document and how widely they occur across documents. In an utterance classification task, this kind of representation provides a numerical summary of the text against which a learned classifier can make a decision. Logistic regression uses those feature values to score the available classes. The implementation used for the baseline comes from scikit-learn.

This baseline is a supervised competitor. It learns a connection between its text features and the dialect labels in the training folds. It provides a reference for how well a classifier can do with a preselected way of weighting terms, compared with a network that learns the local detectors feeding its prediction. The paper identifies the baseline by its feature weighting and classifier, which is the level at which its result can be described.

Accuracy in GDI cross-validation on pooled training and development data The recurrent configuration leads the comparison, with direct character input ahead of the embedding configuration.

**The numbers**

| System or setting | Accuracy |
| --- | --- |
| Logistic regression with TF-IDF | 0.7714 |
| CNN with direct one-hot input | 0.7821 |
| CNN with character embeddings | 0.7802 |
| CNN with a GRU (this paper) | 0.7964 |

The cross-validation accuracy of logistic regression is 0.7714. The accuracy rises to 0.7821 for the convolutional system receiving one-hot input. The version with a character embedding records 0.7802, and the recurrent version records 0.7964. Thus the neural configurations all score above the logistic regression baseline in this particular comparison, while differing in how well they use the same basic sequence of input characters.

The order among the convolutional configurations is instructive. Learning a separate embedding for characters gave a lower cross-validation accuracy than sending the one-hot representation straight to convolution. The recurrent version led both. Separating those observations is important because the embedding and recurrent layer both add a learned representation, but only the recurrent layer supplies a state that depends on the sequence at prediction time. The reported accuracies show what happened with these chosen configurations.

The cross-validation scores come from pooled training and development data, and the paper uses cross-validation in choosing the settings for the network. They describe performance in that internal experiment. The official test results show how the submitted configurations compare in a separate evaluation. Each set gives an ordering among systems under its own scoring measure. Their numerical magnitudes refer to different combinations of data and metric.

#### The shared-task test

F1 combines precision and recall. For a dialect label, precision asks how often an assignment to that label is correct. Recall asks how frequently utterances belonging to that dialect are assigned to it. The F1 score combines the two with a harmonic mean, so a label needs both kinds of success to receive a high score. Macro F1 averages the class-level F1 scores with equal weight for each dialect. Weighted F1 averages the class-level scores according to the number of reference examples belonging to each class. Those two ways of aggregating can give different influence to the same class errors.

The test table uses a random baseline. This serves a different purpose from the trained logistic regression used for cross-validation. The random baseline supplies a point of reference for assigning labels by chance under the task setup. The authors report a macro F1 of 0.2521 for it. They give the comparison with the learned logistic regression on the pooled data in the earlier accuracy table.

Macro F1 on the GDI four-way shared-task test The GRU run has the highest score, and all submitted runs exceed the random baseline.

**The numbers**

| System or setting | Macro F1 |
| --- | --- |
| Random baseline | 0.2521 |
| CNN with direct one-hot input | 0.6223 |
| CNN with character embeddings | 0.6171 |
| CNN with a GRU (this paper) | 0.6449 |

The direct one-hot run records 0.6223 in the test table’s macro F1 column. The embedding run records 0.6171, and the GRU run records 0.6449. The direction of the differences among the submitted configurations is the same as in the cross-validation accuracy comparison. The recurrent configuration leads, and the direct one-hot configuration is ahead of the embedding configuration. This agreement in ordering is visible even though the held-out data and metric are different.

The official placement is stated separately. The team finished second among eight teams, and the paper attributes that placement to a weighted F1 of 64.49%. Its test table labels the corresponding best run’s 0.6449 as macro F1, while the ranking narrative uses the weighted label. The paper gives no class-level score breakdown that would settle how those two metric labels relate in its reporting. The comparison chart follows the test table’s label, and the description of placement follows the stated ranking criterion.

The test table compares the team’s own submitted runs and the random baseline. The ranking describes where the team finished among participants. These are distinct pieces of evidence. The run comparison shows which way of preparing characters worked best with the team’s convolutional classifier. The placement shows how its best submission fared in the campaign’s ordering, without requiring the reader to infer the other teams’ scores or systems from the run table.

#### Training time and the error analysis

The authors report that training the recurrent network took about 5 times as long as training a network without the recurrent layer. That statement concerns the duration of training in their experiment. A recurrent state depends on the state computed earlier in the sequence, so the layer introduces a chain of work before the convolution can use its representations. The paper records the empirical time comparison for the complete networks, giving the improvement in scores a practical cost in the reported setup.

The test error analysis uses a confusion matrix for the GRU run. A confusion matrix puts reference labels and predicted labels against each other. The cells for matching labels account for correct assignments. The other cells show which label received an example when the predicted label departed from the reference. That view adds information beyond the aggregate score because it retains the direction of an error.

The authors single out Lucerne as the most confusing dialect in this run and say that Lucerne utterances were frequently assigned to Bern. This identifies a specific difficulty within the test results. It concerns examples with Lucerne reference labels that the system assigned to Bern. The observation can coexist with the GRU run’s lead on the overall measure because an aggregate score can improve while a particular class distinction remains hard. The matrix discussion identifies where to look for that difficulty, and the paper’s interpretation stops at the pattern of assignments.

### What the ablations show

#### What the shared architecture isolates

The paper’s main controlled comparison changes the stage used to prepare features before convolution. In the simplest version, no learned transformation intervenes between one-hot encoding and the filters. The embedding version adds a learned lookup, and the GRU version adds a sequence operation. Each version uses the subsequent convolutional and classification stages. The comparison therefore addresses the contribution of the front-end configuration as a whole.

The direct version establishes that the convolution can do substantial work from raw character identities. Each filter can combine several identities and react to a local arrangement. Max pooling can preserve useful evidence wherever it appears. This route gives the classifier both order within each window and flexibility about the location of a match. Its performance provides a reference for judging each additional transformation.

The embedding comparison asks whether a learned, shared numerical representation of characters improves the features extracted downstream. In the configurations tested, it scores below the direct version on both cross-validation accuracy and test macro F1. The direct and embedding results accordingly warn against treating an extra learned stage as an improvement by itself. The transformations expose different information to the convolution and give it different ways to share weights across characters. The evaluations show that the chosen embedding was less successful in this architecture under the reported conditions.

The recurrent comparison goes further by changing what the representation can depend on. In a standard embedding, each occurrence of a character uses the same vector. In the GRU, an occurrence is represented through a state updated along the character sequence. Local convolution then operates over those states. The leading results on both evaluations show that this combination worked better than the other tested combinations. This is evidence for the practical value of the recurrent front end on this task.

There are several effects bundled into that intervention. The GRU adds recurrence and also changes the structure and capacity of the representation supplied to the filters. The direct and embedding configurations differ in how their inputs are built, and the paper specifies different dimensions for the embedding and the recurrent layer. A comparison of these whole configurations permits a conclusion about which one performed best. Isolating the contribution of context alone would require controls that align those other properties. The paper’s comparison leaves those effects together.

#### What the result says about local and contextual evidence

The success of direct input matters to the interpretation of the recurrent result. Character context was available through the convolution from the start. With a one-hot input, a filter can consider the order and co-occurrence of several characters directly. The recurrent front end changes the form and possible reach of that context before the filtering step. The strongest experimental contrast is therefore between different ways of getting context into the learned features.

The recurrent configuration can carry information beyond the window that the convolution immediately sees. A state near the beginning of a window can reflect material processed before that window. The subsequent filter can then learn a response that is sensitive to that context. This mechanism is consistent with why the additional layer could help a dialect task, where the same short character sequence may carry different weight in different written surroundings. The paper evaluates the effect through class predictions. It does not identify which contexts were responsible for the observed ordering.

The embedding result provides a second check on the interpretation. A static embedding can make it easier for a filter to respond in related ways to different symbols by placing their representations in a shared space. That is a possible advantage of its parameterization. The paper’s measurements show that, with the chosen embedding and network, the added lookup did not yield higher scores than one-hot input. There is no investigation of the learned embedding coordinates that would reveal whether character similarities emerged or whether particular ones changed the decisions.

Agreement in rank across the two evaluations gives the comparison more substance than a single result would. The pooled-data experiment measures accuracy. The test table measures macro F1 according to its label. Each selects the GRU configuration, and each puts the direct run ahead of the embedding run. The agreement says that the observed ordering survives these particular changes of evaluation. It provides no estimate of the variability of the differences because the paper supplies neither fold-level scores nor results across repeated fits.

#### What the other analyses add

The training-time comparison reveals a cost associated with the highest-scoring design. The relevant result is the pairing of that cost with performance in the same study. The simpler direct configuration performs better than the embedding configuration on the reported measures, and the recurrent configuration improves on both while requiring a longer training run. A reader comparing those results can see what the architecture choice trades off in this experiment. The paper does not report a common hardware or timing protocol detailed enough to turn its ratio into a general expectation for other implementations.

The confusion matrix addresses a different aspect of the experiment. Its highlighted Lucerne-to-Bern error is an analysis of the best recurrent run, not a separate intervention. The figure explains where a class distinction still failed after the network had made its predictions. To tell whether recurrence helped Lucerne relative to the other configurations, a reader would need the corresponding class errors for those configurations. The paper gives the matrix discussion for the strongest run, so it locates a difficulty without explaining how that difficulty changed across the architecture comparison.

The authors’ cross-validation procedure also guided their choice of settings. The reported comparisons tell us how the final setups performed, but the paper gives no separate runs for individual convolution widths, pooling choices, normalization or dropout. Each of those stages is part of the shared feature extractor. Their participation in a successful configuration gives context for the architecture, while the controlled replacement of the input stage is the basis for attributing an improvement to a particular tested design choice. The clearest empirical result is the advantage of the GRU configuration among the ways the authors tried to supply character information to convolution.

### Limitations

#### Limits stated by the authors

The authors explicitly confine their entry to the four-way track. Their classifier was designed to choose among the dialects for which the task supplied training data. The campaign’s surprise dialect had no such examples, and the paper evaluates no submission for the track that included it. The findings therefore concern recognition among the familiar task labels. The architecture’s softmax assigns probability across those labels, which is precisely the decision the four-way evaluation required.

The authors also emphasize the extra training time of the GRU configuration. The highest-scoring run came with a longer training period than its nonrecurrent counterpart. The paper discusses the cost again in its conclusion by comparing a network with recurrence to one using a regular embedding. This limits what can be inferred from the best score alone. The study measures an improvement associated with a particular choice of front end, and the time comparison shows that the choice changes the work required to train the system.

The paper highlights Lucerne as an unresolved source of error in the best submission. The result concerns observable assignments, especially the tendency for Lucerne items to receive the Bern label. Its practical significance is that overall placement and aggregate F1 leave individual categories with different patterns of success. The network’s advantage at the level of the test table coexists with this specific problem at the level of the confusion matrix.

#### Limits of the data and measurement

The data come from transcripts in the ArchiMob collection used by the shared task. This grounds the evaluation in a defined source of written records of speech. Different transcription conventions could change the spellings or sequences available to the classifier. Different utterance sources could also change the distribution of the forms on which it learns to rely. The paper supplies no comparison across such conditions. Its results apply directly to the task data, with wider transfer left untested.

An improved transcript score also establishes a narrower kind of success than identifying a dialect directly from a recording. The system’s features come from the supplied character sequence. That sequence represents some properties of the spoken utterance through writing, and any available signal about the dialect reaches the classifier in that form. The earlier prosody-based work illustrates another channel of evidence that the experiment sets aside by its choice of input. The paper gives no evaluation of the classifier on audio.

Truncation introduces a further limit within the transcript data. At most 256 characters are passed in under the stated input rule. Information beyond the cutoff is unavailable to the network, including the GRU. The paper does not report how often this happens or whether classification changes with utterance length. The architecture makes the handling of long input clear, while the evaluation leaves the empirical effect of the cutoff unresolved.

The unit counted in the dataset is the utterance. The paper describes the cross-validation as operating on the pooled training and development data, without detailing whether folds keep utterances from the same speaker or recording together. The fold scores therefore cannot by themselves establish performance on entirely new speakers or recording contexts. Grouping examples by speaker would test a particular form of generalization, and the paper gives insufficient detail to tell whether its cross-validation made that separation. This concerns the scope of the evidence rather than a finding that any particular overlap occurred.

The two performance measures also place limits on comparison. Cross-validation accuracy counts correct utterance assignments. Test F1 reflects precision and recall by dialect under the reported aggregation. A reader cannot attribute the difference in the numerical values between those evaluations to a change in data alone, because the scoring measure also changes. Within each evaluation, the architecture comparison uses the same reported measure across the listed configurations. That is the basis for comparing their relative performance.

Within the account of the test, the paper’s macro and weighted labels leave a reporting ambiguity. The former is used in the table, while the latter appears in the discussion of the team’s placement. The aggregation matters because the two approaches can weight dialects differently. In the absence of class-level precision, recall and counts sufficient to resolve the labels, the strongest supported reading retains both descriptions as reported. The second-place result and the ordering of the submitted runs can be stated without deciding that one label corrects the other.

#### Limits of the architectural explanation

The paper reports a comparison of complete front ends. It gives no parameter-matched recurrent and nonrecurrent runs that would separate the effect of sequential context from the effect of a differently sized representation. It also gives no sweep of the embedding length or the GRU unit count. The observed advantage belongs to the evaluated GRU configuration. A claim that recurrence alone explains the entire advantage would require further controls.

The paper likewise gives no uncertainty estimates for the reported comparisons. Cross-validation offers measurements on successive held-out portions, but the table reports a single accuracy per system. The test table presents a single score per run. Those results establish the observed ordering. They leave open how much the scores would vary with a different division of the pooled data or a different training run. This is especially relevant to reading the direct and embedding comparison, where the reported scores are close.

The confusion matrix also leaves the cause of the Lucerne errors open. A predicted label shows where an utterance ended up. It does not tell us whether the response arose from a spelling pattern, a choice of words, or some other regularity available in the transcript. The paper offers no inspection of the learned filters, the recurrent states, or the character spans producing the strongest pooled activations. That restricts the linguistic explanation to what can be inferred from the reported assignments.

Finally, the training comparison concerns the experiment as carried out. The paper supplies the framework and the approximate ratio, with no absolute duration or detailed computation budget in its account. It also gives no timing for assigning labels to new examples. Training time is consequently a documented cost for the tested systems, while the cost of using a trained system and the timing in another setup remain outside the reported evidence.

### What came after

The [overview of the second VarDial evaluation campaign](https://md.research.elamur.ai/free/en/papers/zampieri-2018-language-identification-morphosyntactic-tagging-second/) is the citing work associated with this study. It covers the same VarDial 2018 event. The submission paper refers to the overview for the organization of the shared task, and the overview in turn cites the submission. The relationship is between a team report and a campaign account. The team report describes the design choice inside a single entry, while the campaign account places the entry in the shared evaluation.

What carries into that broader account is an evaluated approach to dialect identification. The submission shows how a team turned character sequences into decisions for the familiar-dialect track and compared several ways of preparing those sequences for convolution. The campaign context supplies the common classification problem and the basis of the team placement. The best run is thus part of the event’s evidence about systems evaluated on the same task. Its internal comparison also remains available as the place to look for the distinction between direct character input, learned character embeddings and recurrent states.

The campaign account concerns the same evaluation instead of a new experiment that isolates the contribution of the recurrent layer. The citation establishes that the submission entered the campaign record. The evidence for how the GRU compared with the embedding and direct configurations comes from the team’s own experiments. The documented follow-through is the inclusion of that submission in the account of the campaign, within the scope of the four-way dialect track it entered.

## 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).

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

```bibtex
@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/}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
