Elamur Research

Dialect Identification under Domain Shift: Experiments with Discriminating Romanian and Moldavian

Paper · 2020 · Çağrı Çöltekin

Summary

A system that distinguishes Romanian from Moldavian in newspaper articles might be recognizing the writing habits of particular newspapers. Would it still work on tweets? Çağrı Çöltekin investigates that question in the Romanian Dialect Identification task at VarDial 2020. The evaluation moves from the MOROCO collection of online news to a Twitter collection. The change creates a domain shift, meaning that the conditions under which the texts were produced differ between the material available for training and the material on which the system is tested. The experiment asks how much of the evidence for identifying the two varieties survives that change.

The paper treats dialect identification as text classification, the task of assigning a category to a text. Its classifiers use overlapping sequences of characters and words as evidence. A linear support vector machine learns how those features favor one label or the other, and several classifiers can vote on each decision. The study also tries two ways to make the training material more relevant to tweets. One adds confidently predicted tweets from the unlabeled test collection and retrains the classifiers. The other uses a classifier trained on labeled tweets to select newspaper articles that it can already classify confidently and correctly.

The best submission learned from the 215 labeled tweets in the target development set and adapted to the unlabeled test collection. It placed first among 19 submissions with a macro-averaged F1 of 0.788, a score that gives each dialect equal influence. The submission trained on all the available source news, split into sentences and followed by test-set adaptation, placed second with 0.784. The system trained on selected news placed fifth with 0.756. In comparisons with the same systems before adaptation, adding the confidently labeled tweets helped the full-source system more than it helped the system that already had labeled tweets for training.

The strong news-to-Twitter result shows that evidence useful for discrimination carries across these collections. It gives weight to a dialect-based explanation of the classifiers’ success while leaving open which features actually drive individual decisions. The paper also finds that whole news articles are easier to classify within the news collection than isolated news sentences. Tweets, despite their brevity, score better than those sentences in their respective within-domain evaluations. How much evidence a text contains depends on the unit being classified and how it was written, as well as its length.

Deep dive: Dialect Identification under Domain Shift: Experiments with Discriminating Romanian and Moldavian

A study of how well classifiers distinguish Romanian from Moldavian when training on newspaper articles and testing on tweets. · about 31 minutes to read

The problem and its context

When a correct label leaves a question open

Language identification can be highly reliable from a short passage in many settings. The problem changes when the choices are closely related varieties. Romanian and Moldavian, as written in the collections at issue, share enough material that the differences are difficult for people to pick out. The paper cites work reporting that human judgments are barely above chance in this setting. It also describes automated systems from the preceding VarDial campaign as more successful. That combination makes the source of the automatic systems’ evidence a question in its own right. Automatic Language Identification in Texts · The unreasonable effectiveness of machine learning in Moldavian versus Romanian dialect identification

A newspaper corpus can support classification for several reasons at once. The varieties may differ in how often writers use certain forms. The outlets sampled from the two countries may also differ in editorial style. Both kinds of regularity can appear in the spelling, wording, and recurring phrases available to a classifier. A split that holds out articles from the same collection tests whether the system can generalize to unseen articles under those collection conditions. It allows a source-specific convention to help with both training and testing if that convention is present on both sides of the split.

The paper makes this issue concrete through the MOROCO corpus, the source of the preceding campaign’s Romanian dialect data. Its articles come from online news. Topic coverage is fairly balanced, and preparation of the corpus removed some obvious cues, including named entities. A place name could otherwise be informative about where a story was published even if the surrounding writing offered little dialect evidence. Editorial conventions are harder to remove. A recurring formulation may reflect publication style, ordinary usage in a variety, or both. Fairly balancing broad topics also leaves room for differences in how outlets cover those topics.

This matters for practical identification. A classifier trained where labeled material is plentiful may be asked to handle a kind of writing that was scarce or absent during training. In this study, the plentiful material consists of news articles and the new application consists of tweets. The scientific question is related but distinct. If a system works after the change of genre, its performance becomes harder to explain completely through quirks of the original news collection. Establishing that some signal transfers is an intermediate step toward understanding what that signal represents.

Why move from news to tweets?

The 2020 task gives participants a large labeled source collection and a small labeled target development set. The source collection supplies newspaper text, and the target development set supplies examples of the kind of writing on which the final evaluation will take place. The labels distinguish Romanian from Moldavian in both settings. What changes is the distribution of text carrying those labels. Tweets tend to be shorter than the news articles, and the change puts distance between the editorial conditions of the source and the writing conditions of the target.

Keeping the label choices fixed makes the test intelligible. A correct prediction still means choosing the recorded variety for a text. A system trained on news must make that decision using patterns that are recognizable in a collection gathered from a different medium. A system trained on the target development set faces the same prediction problem with far fewer labeled examples, but those examples show what the target writing looks like. The shared task therefore brings two advantages into competition. One source of evidence offers volume, while the other offers a closer match to the text of interest.

The shift also helps frame the human comparison. The paper uses judgments reported elsewhere to motivate the difficulty of the distinction and the surprising strength of automated performance. The experiment here follows a different line of evidence. It asks whether automatic discrimination remains possible under changed collection conditions. Success on that test can support an explanation based on recurring differences in usage even when the classifier’s features have yet to be interpreted individually.

Earlier approaches to the distinction

Earlier VarDial campaigns had already made the discrimination of closely related varieties a shared evaluation problem. The paper places the Romanian task in that sequence. The campaigns give different systems a common prediction task and a common basis for comparison. The 2020 design adds the question of whether the evidence learned from one kind of text carries into another. Findings of VarDial 2017 · The Second VarDial Evaluation Campaign

The author also draws on earlier work with linear support vector machines and character and word sequences. Earlier versions of this approach had achieved leading or near-leading positions in VarDial evaluations. A sparse representation suits the task because the classifier can draw on many possible fragments even though each individual text contains only a small portion of them. Short character patterns and longer sequences of tokens give it different ways of detecting repeated usage. The same pattern may carry information about a dialect in one collection and about a publication in another, so the usefulness of the representation and the interpretation of its features are separate questions.

Test-time adaptation also had a precedent in earlier VarDial systems. Its starting observation is that some new texts are easier for a trained classifier to label than others. If a confident choice is typically reliable, those texts can supply additional examples from the target collection. The risk follows directly from the same procedure. The initial classifier decides which new examples to trust, and a confident mistake can become training evidence. That tradeoff is particularly important when confidence comes from a classifier trained on a different genre.

A related question is whether a few labeled tweets can help find the most relevant parts of a large source collection. This time the predictions travel in the opposite direction. A classifier learns on the target development set and then predicts the labels of news items whose correct labels are already available. Agreement with those labels gives the selection procedure a check that test-time adaptation lacks. The underlying assumption is that a news item recognizable through patterns learned on tweets is a good candidate for training a system that will ultimately classify tweets.

These possibilities give the paper its main comparisons. A small target collection can be used directly. A large source collection can be transferred wholesale, or filtered through a target-trained classifier before transfer. Each of those starting points can then be tested with or without access to confident predictions on the unlabeled target batch. The distinctions matter because a strong final score alone cannot tell how much came from the initial training material and how much came from adapting to the texts being evaluated.

The method, step by step

From a text to a dialect decision

The basic procedure turns each input into a collection of measurable text patterns, weights those patterns, and learns which combinations favor each dialect label. A single classifier produces a label and a margin that indicates how far its decision lies from the point where the prediction would change. In an ensemble, that margin determines how much influence a classifier has on the joint decision. In adaptation, the margin is also used to decide which predictions are sufficiently confident to enter the next training round.

Training and adapting the dialect classifier

The steps in order.

Training and adapting the dialect classifierStep 1: Choose labeled news or target tweets1. Choose labeled news or target tweetsStep 2: Segment news into sentences where required2. Segment news into sentences where requiredStep 3: Extract and weight overlapping text features3. Extract and weight overlapping text featuresStep 4: Tune and train linear SVM classifiers4. Tune and train linear SVM classifiersStep 5: Combine classifier votes using their margins5. Combine classifier votes using their marginsStep 6: Add confidently labeled target tweets for adaptation6. Add confidently labeled target tweets for adaptationStep 7: Retrain and classify the target collection7. Retrain and classify the target collection

Preparing and representing the text

The news articles arrive with document labels. For the sentence-based experiments, the author segments each article and attaches its document label to each resulting sentence. In most of those experiments, the official source training and development portions are pooled. Sentence segmentation uses version 1.4 of the Python sentence-splitter library with its default settings. All official runs that draw on news use sentence-level training examples. The paper also keeps whole articles for experiments that examine what happens when the classifier can use a longer span of text.

Splitting the news serves a specific purpose. Compared with an article, a single sentence is closer to a tweet in how much text the classifier sees at once. A long article may repeat a piece of evidence or contain several useful expressions. A short input gives the classifier fewer chances to encounter such features. Sentence segmentation changes how the source examples present that evidence. It also changes which items count as separate observations, because articles contribute as many labeled examples as they have sentences.

The next step is tokenization, which identifies the units used to make word-sequence features. The implementation uses a simple regular-expression tokenizer that recognizes runs of alphabetic material and other non-space material. Case normalization is optional and determined during tuning. Reducing case distinctions can bring differently capitalized occurrences together, while retaining case can preserve a distinction that helps the classifier. Low-frequency filtering is also tuned. In this context, document frequency is the number of input examples containing a feature, so a pattern can occur repeatedly in one text and still be rare across the collection.

The representation combines character and token n-grams. An n-gram is a run of neighboring units, with the order indicating how many units it contains. Character sequences can describe pieces smaller than a word and can register recurring spelling patterns. Token sequences can preserve a choice of whole words and the order in which neighboring words occur. Overlapping grams share units as the extraction window moves along the input. The classifier can therefore use a shorter recurring pattern even when a longer expression varies.

For each family, the feature set includes orders beginning at 1 and continuing up to the maximum selected during tuning. The search allows a maximum of 0, which excludes the corresponding family. The resulting features occupy a shared sparse representation. A possible pattern has a place in that representation, and a given example only activates the small portion present in its text. This enables the system to keep many kinds of patterns available during training without treating a short input as though it contains a value of interest for every pattern in the vocabulary.

The paper uses BM25 to weight these features. Its role here is to turn occurrences into values that reflect how frequently a feature appears, how broadly it is distributed across the collection, and the length of the input. Common and rare patterns are consequently treated differently, and repetition in a long document is moderated. The BM25 parameters remain at the defaults cited in the paper. Length weighting and sentence segmentation operate at different stages. Weighting changes how the feature counts for a supplied input are interpreted. Segmentation changes the input itself, including which patterns co-occur in a single training example.

Training and selecting the classifiers

The linear support vector machine, or SVM, learns a weighted decision rule over the input features. Patterns can contribute in opposite directions, depending on the evidence they provide for each dialect. The decision boundary is where the rule switches from one label to the other. An input well to one side of that boundary has a larger margin than an input close to it. The study treats that distance as a practical confidence signal. It is a ranking of decisiveness under the classifier’s rule, and the procedure uses it directly for voting and selection.

The training procedure uses random search to choose hyper-parameters, which are settings fixed before fitting the feature weights. The SVM constant C controls the tradeoff between regularization and fitting the training examples. The search range for C is [0.01, 4.0]. The maximum character order ranges over [0, 7], the maximum token order over [0, 4], and the document-frequency cutoff over [1, 5]. Case normalization is an additional choice. These settings jointly determine both the evidence that reaches the classifier and how strongly it can fit that evidence.

For each tuning search, the author draws 1000 combinations and evaluates them by 10-fold cross-validation. The procedure repeatedly trains on some of the available examples and evaluates on a held-out fold, with each fold serving as the held-out portion in turn. The outcome used to rank configurations is the average macro-averaged F1 across the folds. This makes it possible to compare settings internally when the only labeled material available for the target domain is its development set. For the full-source shared-task system, the search uses a random 1/20th sample of the pooled source data. The official system then trains its ensemble on the full pool in separate parts.

Combining the decisions

The large-data ensemble uses 20 classifiers trained on non-overlapping, equal portions of the training set. Each classifier sees a different sample of the source material. The small-data ensemble uses 5 classifiers trained on the same complete development set with the best-performing hyper-parameter settings. It gets variation from different feature or fitting settings while allowing every member to learn from all the labeled tweets. In both cases, the implementation is based on Python’s scikit-learn library.

The paper specifies the voting and selection rules in words. The notation below states the voting rule directly.

V(ℓ, x) = ∑ᵢ dᵢ(x) · 𝟙[ŷᵢ(x) = ℓ]

Here x is the text being classified and ℓ is the candidate dialect label. The index i identifies a classifier in the ensemble, and the sum runs over those classifiers. The symbol dᵢ(x) is the distance of x from classifier i’s decision boundary. The symbol ŷᵢ(x) is that classifier’s predicted label. The indicator 𝟙 contributes the classifier’s distance if its prediction equals ℓ and contributes nothing otherwise. The ensemble assigns the label with the larger total V(ℓ, x). Thus the rule uses the strength of each vote as well as the direction in which it was cast.

A weighted vote makes two distinctions that a plain count would lose. Classifiers that agree on a label can reinforce one another even when their individual margins differ. A strongly expressed decision can also outweigh several weak decisions in the other direction. For the news ensemble, the differences among votes arise from fitting the same approach to different portions of the source material. For the tweet ensemble, those differences arise from fitting alternative configurations to the same labeled texts. The paper uses the same aggregation rule for both arrangements.

Adapting with unlabeled target tweets

Test-set adaptation starts with the classifier or ensemble obtained from the original labeled training data. It makes predictions for the target collection and identifies tweets whose decisions are far enough from the boundary. Each selected tweet is added to the training material with the predicted label. These added labels are often called pseudo-labels because they are supplied by the system itself. Retraining on the combined material gives the system a chance to assign weights using patterns that occur in target tweets. The augmented system then supplies the predictions for evaluation.

The official runs used the following condition for including a test item.

d(x) ≥ 0.50

The symbol x stands for a test tweet, and d(x) is the distance from the initial decision boundary used to assess confidence. The symbol ≥ includes the threshold itself as well as larger distances. The value 0.50 is the cutoff reported for the official test-set augmentation. The criterion governs admission to training. A tweet below the cutoff can still receive a final prediction after the classifier has been retrained.

The experimental arrangement gives the system access to the collection it will eventually label, with the labels withheld. This form of adaptation is useful to distinguish from ordinary training on a separate source followed by immediate prediction. It can learn from regularities that recur across the target batch, including regularities that are hard to observe in a small development sample. The price is dependence on the quality of the initial decisions. The same margin that lets the system pick seemingly reliable examples can bring a confidently mistaken label into training.

Selecting source articles through reverse prediction

Reverse prediction uses a different classifier and a different direction of travel. The author first tunes and fits a classifier on the labeled target development tweets. That classifier then predicts labels for the large labeled news collection. To retain a candidate, the prediction must agree with the article’s recorded label and be sufficiently far from the boundary. Correctness is verifiable at this stage because the source labels are known. The goal is to find source examples whose labels can already be recognized using evidence learned from tweets.

The paper describes a general confidence condition as a distance greater than 1.0. In the account of the official submission, it gives the selection boundary as 1.00 or larger. The latter cutoff and the agreement check can be written together as follows.

dₜ(x) ≥ 1.00 and ŷₜ(x) = y(x)

Here x is a source item. The subscript t denotes the classifier trained on the target development set. The symbol dₜ(x) gives the distance from that classifier’s boundary, and ŷₜ(x) gives its prediction. The symbol y(x) is the source item’s recorded label. Both the margin condition and the label agreement are required. The general description and the run description differ in whether equality at the cutoff is expressly included.

The data description says the selection is carried out on whole news articles and that the retained articles are subsequently split into sentences for the experiments. The shared-task account describes the third run in terms of its selected source sentences. The order given in the data description means the sentences inherit both their dialect labels and their inclusion from their parent articles. A retained sentence can therefore be useful, neutral, or ambiguous when considered by itself. The selection decision is based on the evidence accumulated across the article.

After selection, the retained sentences supply the training pool for the source ensemble. As in the full-source run, tuning and ensemble construction are followed by test-set adaptation. There are consequently two distinct gates in the selected-source pipeline. The first admits source material based on a target-trained classifier and agreement with known labels. The second admits target tweets based on the source-trained system’s margins and labels that remain unverified at training time.

Experiments and results

What the data contain

The MOROCO source collection provides 33,564 training articles and 5923 development articles. Pooling and segmenting those portions produces 424,383 labeled sentences. The Twitter collection provides 215 labeled development tweets and a test set of 5022 tweets. Participants could use the development labels during the competition. The organizers released the test labels afterward, which made it possible for the paper to compare the official adapted runs with otherwise corresponding runs that made predictions without test-set adaptation.

The input lengths illustrate how much changes across the collections. The source training articles average 1714.99 characters and 390.11 tokens. The pooled source sentences average 158.81 characters and 36.34 tokens. The target test tweets average 92.09 characters and 23.66 tokens. Sentence splitting places the training inputs closer to tweets in length while leaving a substantial difference between the typical news sentence and the typical test input. Lengths also vary less in the target test set. Its standard deviation is 18.86 characters, compared with 141.72 for the pooled source sentences.

The paper reports the Romanian-to-Moldavian instance ratio as a measure of class balance. It is 1.18 for the source training articles and 1.45 after the source training and development portions are pooled and split into sentences. Romanian articles tend to be longer, so sentence splitting gives that class more training examples relative to Moldavian. The development tweets have a ratio of 0.90, and the test tweets have a ratio of 1.01. The change of domain therefore also brings a change in how the labels are distributed across examples.

Reverse prediction retains 21,376 source articles, which yield 243,904 sentences after segmentation. The selected articles average 1853.36 characters and 420.26 tokens. Their sentences average 161.40 characters and 36.83 tokens. The article-level means are higher than those for either original source portion. The sentence-level means are closer to those of the unfiltered pool. This is consistent with the observation that the selection acts first on articles, where there is more room for differences in how much evidence is available to the target-trained classifier.

Scores and comparators

The paper reports macro-averaged precision, recall, and F1. For a given dialect, precision asks what share of the texts assigned that dialect actually have the corresponding label. Recall asks what share of the texts with that label are recovered. F1 combines those two quantities through their harmonic mean, so good performance on just one side is insufficient for a strong score. Macro-averaging gives Romanian and Moldavian equal weight. The class ratios matter for what the classifiers see during training even though the evaluation gives the two labels the same influence.

Several comparisons serve as baselines for different questions. The unadapted form of each official run measures how the same training choice performs before adding test tweets. The full-source run is the natural comparator for the selected-source run because it retains all source material. The target-development run shows what can be achieved with a small supply of directly relevant labels. The within-domain experiments supply separate reference points for settings in which training and evaluation come from the same collection. Their scores address a different question from the official leaderboard.

The paper expresses the shared-task scores as fractions in the ranking discussion and uses percentages for the detailed experimental comparisons. In the cross-validation results, a score is the average across held-out folds within the named collection. In the official results, it describes predictions for the shared target test set. A higher score on cross-validation can coexist with a lower shared-task score because the evaluation populations, training arrangements, and use of adaptation differ.

The shared-task runs

The first submission trained its ensemble on the target development set. Each member used a high-ranking hyper-parameter setting and the complete labeled development collection. After weighted voting and test-set adaptation, this run placed first among 19 submissions with macro-averaged F1 of 0.788. Its starting point was small, but its labeled material already came from the target medium. The official score also reflects the opportunity to learn from confidently predicted examples in the test batch.

The full-source submission trained on the pooled MOROCO articles after sentence segmentation. It tuned on the random source sample and then built its ensemble from disjoint portions of the complete sentence pool. With test-set adaptation, it placed second with macro-averaged F1 of 0.784. The closeness of the leading runs is informative because their labels initially came from very different collections. Abundant news material, followed by adaptation, produced a result close to the one obtained using scarce but directly relevant tweet labels.

The selected-source run kept the source material that satisfied reverse prediction and then used the same general tuning, ensembling, and adaptation procedure as the full-source run. It placed fifth with macro-averaged F1 of 0.756. Restricting the source pool to material a tweet-trained classifier recognized confidently therefore yielded a weaker official submission than keeping the full pool. Since the filter changes both the quantity and composition of the source data, the ranking leaves open which of those changes accounts for the weaker result.

How much adaptation changed the target results

The comparison below uses the paper’s percentage scores on the same Twitter test set. The training labels and data source identify each pair of runs. The adapted variants correspond to the official submissions.

Macro-averaged F1 on the Twitter test set with and without adaptation

Adding confidently predicted tweets helps the full-news system most, while training on labeled tweets yields the highest adapted score.

Macro-averaged F1 on the Twitter test set with and without adaptationTarget development without adaptation: 78.20Target development without adaptation78.20Target development with adaptation (this paper): 78.76Target development with adaptation (thispaper)78.76Full source sentences without adaptation: 76.57Full source sentences without adaptation76.57Full source sentences with adaptation: 78.43Full source sentences with adaptation78.43Selected source sentences without adaptation: 74.53Selected source sentences withoutadaptation74.53Selected source sentences with adaptation: 75.65Selected source sentences withadaptation75.65
The numbers
System or settingMacro F1 %
Target development without adaptation78.20
Target development with adaptation (this paper)78.76
Full source sentences without adaptation76.57
Full source sentences with adaptation78.43
Selected source sentences without adaptation74.53
Selected source sentences with adaptation75.65

The full-source result improves in both component measures. Its macro precision on the target test goes from 76.63 without adaptation to 78.44 with adaptation, and macro recall goes from 76.57 to 78.43. For training on the target development set, macro precision moves from 78.20 to 78.83, while macro recall moves from 78.20 to 78.76. The selected-source run also improves on both measures. Its adapted macro precision is 75.66 and its adapted macro recall is 75.65. The F1 pattern reflects movement in both types of error instead of an improvement confined to precision or recall.

The unadapted source comparison is especially relevant to transfer. The full-source system reaches 76.57 macro F1 on the Twitter test set without augmentation from that collection. That score is direct evidence that the newspaper features support successful prediction on tweets under this setup. The adapted result answers a different question. It shows how far the same starting point can go when the system is also allowed to retrain using its confident predictions on the target batch.

Performance when training and evaluation share a domain

The paper also runs cross-validation without test-set adaptation. The news comparisons train and evaluate on articles or on sentences, depending on the setting. The Twitter comparisons use the development collection alone or pool it with the labeled test collection after the competition. For each setting, the reported configuration comes from a random search over the same hyper-parameter space. The numbers therefore describe selected configurations within each data setting.

Within-domain macro-averaged F1 in cross-validation on news and tweets

Whole articles give the highest score, and pooled tweets are easier to classify than isolated news sentences in these evaluations.

Within-domain macro-averaged F1 in cross-validation on news and tweetsTarget development tweets: 84.01Target development tweets84.01Pooled target development and test tweets: 89.29Pooled target development and testtweets89.29Source sentences: 86.01Source sentences86.01Source documents (this paper): 96.26Source documents (this paper)96.26
The numbers
System or settingMacro F1 %
Target development tweets84.01
Pooled target development and test tweets89.29
Source sentences86.01
Source documents (this paper)96.26

On the source documents, macro precision is 96.37 and macro recall is 96.51. The source sentences yield 86.36 macro precision and 85.73 macro recall. The paper places the whole-document findings alongside the preceding campaign’s results. The whole-document score is close to the post-competition result reported by Wu and colleagues, whose result was 6.70 percentage points above that campaign’s official winner. This is context for performance on news. The Twitter test results come from the later, cross-domain evaluation.

The small target development set yields a macro F1 average of 84.01 across its held-out folds, with a standard deviation of 8.52. Pooling the target development and test tweets yields an average of 89.29 with a standard deviation of 0.92. Both the average and the variation across folds change when more labeled tweets become available. The pooled result uses labels that were unavailable during the competition and is a within-domain experiment. The lower official test result for the target-trained run addresses a setting in which only the development tweets are labeled for initial training.

The paper adds a comparison between text units that changes the direction of the length mismatch. The classifier is tuned and trained on sentences from the official source training portion, and it is then evaluated on whole articles from the official source development portion. The macro-averaged F1 is 95.04. Thus sentences can supply much of the evidence required to classify articles, even though a system that must classify each sentence on its own gets a lower score in the corresponding within-domain evaluation.

A further comparison uses 5000 source instances. The paper reports F1 of 93.80 for the experiment with source documents and 73.96 for the one with source sentences. The pooled tweet evaluation, conducted with about 5000 instances, produces a score between those results. These comparisons show why the paper’s discussion distinguishes whole articles from news sentences. At a similar number of examples, which genre appears easier depends on the amount and kind of text presented as one example.

What the ablations show

Removing test-set adaptation

The paper’s most direct ablation takes away test-set adaptation while keeping each starting training collection fixed. For the target-development system, the comparison asks how much can be gained from additional target texts when the initial labeled data already come from Twitter. For the source systems, it asks how much can be gained when the initial labels come from news. All variants are compared on the same target test set, so the measured changes concern the addition of confidently predicted test tweets and the associated retraining.

All three point estimates rise with adaptation. The largest rise occurs with the full source pool. There is a straightforward interpretation consistent with that pattern. The original classifier can recognize some target tweets confidently using evidence learned from news. Those tweets then provide examples of how label-associated patterns appear in the new writing conditions. Retraining draws on those examples when classifying the rest of the batch. The resulting improvement is an observed effect of the entire adaptation procedure. The paper does not measure the correctness of the pseudo-labels or isolate which target features become more influential.

The small benefit for target-development training answers a narrower question than whether more in-domain data help. The pooled-tweet cross-validation experiment shows a clear improvement when more tweets with recorded labels enter the available collection. Self-labeling has a different information source. The classifier’s current rule determines which tweets it admits and what their labels will be. The new texts may add examples of those patterns, but the labels cannot independently correct the rule. This helps explain why a small labeled set can benefit from more supervision while gaining little when the extra examples are labeled by the classifier itself.

The author treats the advantage of adaptation under same-domain training as doubtful despite the higher numerical score. That reading is consistent with the scale of the change relative to the gains in the news-to-tweet transition. The comparison is based on a single target evaluation collection and on this particular confidence rule. It establishes how these runs responded to adaptation. It gives no general estimate of what would happen with another target sample or another amount of labeled development data.

Filtering the news before transfer

The full-source and selected-source experiments compare keeping all the news with choosing articles recognized by a classifier trained on tweets. Both source systems are evaluated with and without the later test adaptation. Selection underperforms in both comparisons. The check against recorded source labels makes the filter selective about which examples it admits, but confident agreement by the filtering classifier is an imperfect proxy for what will help a new classifier learn.

One explanation in the paper is data loss. A large source collection can contain valuable patterns that appear infrequently, occur in harder examples, or are absent altogether from the small set that drives the filter. Requiring confident agreement can remove those cases with the irrelevant ones. The comparison combines that possible loss of coverage with an intended gain in relevance. A result that favors the full pool means the net effect of the implemented filter is unfavorable. It leaves the relative contributions of coverage and relevance unresolved.

Another explanation is that reverse prediction fits the source pool too closely to the details of the target development sample. The source training articles have a Romanian-to-Moldavian ratio of 1.18. The selected articles have a ratio of 0.95, closer to the target development ratio of 0.90. That movement is consistent with the filter making the selected pool resemble the development data in one measurable way. Sentence splitting subsequently changes the selected pool’s ratio to 1.30. Similarity to the target sample at the article level therefore does not translate directly into the label balance presented to the final sentence-trained classifier.

The retained documents are longer on average. The author suggests that a classifier may be more confident when it has a longer passage in which to find evidence. In that case, confidence-based selection would favor some articles in part because they supply more cumulative evidence, whether or not their individual sentences resemble tweets. This offers a specific reason to distinguish a filter’s operational criterion from its purpose. The criterion finds articles that receive a confident and correct prediction. The purpose is to find training material that transfers well after segmentation.

Adaptation also helps the selected-source system less than it helps the full-source one. The author suggests that the two procedures might partly overlap in what they accomplish, because filtering already steers the source pool towards patterns recognized from tweets. The weaker selected-source result leaves room for a different possibility. Removing part of the source pool can weaken the initial classifier that assigns the target pseudo-labels. The experiments establish the weaker outcome of the combined pipeline while leaving these explanations open.

Changing the unit of prediction

The whole-article and sentence experiments address a different part of the system. In both settings, the label concerns the same dialect distinction, but the evidence per decision changes. A news article can accumulate several individually weak clues. A single sentence may contain only common words or a pattern that is compatible with either variety. This is the author’s main explanation for the decline when both training and evaluation operate on sentences.

The sentence-to-article result helps narrow that explanation. A classifier trained on news sentences reaches 95.04 macro F1 when evaluated on whole development articles. Useful features can thus be learned from shorter source examples and applied to longer evaluation texts. This is compatible with the view that information is missing from individual test sentences, rather than from the training procedure simply because it used sentences. The sentence-to-article experiment uses the official source training and development portions, while the main within-domain results average held-out folds. Their numerical proximity is informative, with the two evaluation procedures kept in view.

Splitting also raises the number of labeled source instances and changes class balance. Those changes complicate any purely causal account of the effect of length. A sentence-level task gives the system more training units but gives each prediction a smaller window onto the original article. Furthermore, sentences from the same article inherit the same label, even when some contain little that would allow a reader or classifier to infer it. The comparison addresses the consequences of switching prediction units as a whole.

Comparing short texts across the two genres

The tweet-versus-sentence comparison places two relatively short forms of writing side by side. The pooled tweets achieve better within-domain discrimination than the source sentences, even though those tweets are shorter on average and the sentence pool contains many more examples. The source experiments using 5000 instances reinforce the distinction between article-level and sentence-level news. At that scale, source sentences perform markedly below the pooled tweets, while source documents perform above them.

The author proposes that less formal writing may provide more dialect cues because writers have more freedom from shared literary and editorial conventions. Under that interpretation, a tweet can be short and still provide a distinctive form that an edited sentence would be less likely to contain. The result is suggestive because the length comparison points in the opposite direction from the score comparison. It remains a comparison of collections, with differences in gathering, labeling, class balance, and text units. The paper offers the informality explanation as an interpretation of the result.

The study does not report a controlled removal of character features, token features, BM25, or ensemble voting. Tuning can favor one feature configuration over another, but it serves preparation of the classifier rather than isolating a contribution on the final test set. The analyses with clear comparators concern the supply of labeled data, the use of target pseudo-labels, the filtering of news, and the length and genre of the inputs being classified.

Limitations

Qualifications raised by the author

The author’s account distinguishes the success of transferring from news to tweets from the usefulness of the particular steps intended to improve transfer. Test-set augmentation is most helpful for the full-source classifier in this evaluation. When initial training uses the small target development set, the benefit is much smaller and is treated as uncertain. Confidence-based augmentation can therefore help address this domain shift without establishing that it is a dependable way to extend any small set of labeled tweets.

The paper also qualifies the negative result for source selection. Reverse prediction reduces the supply of training examples and may favor material that resembles the small development sample too closely. The author suggests that selected articles can contain patterns already represented in those tweets and thus contribute little additional information. That possibility matters because the strength of a large source corpus may lie partly in coverage beyond the target examples already labeled. A selection approach that balances relevance with diversity could behave differently. The reported experiment concerns the filter based on confidence and agreement.

For the difference between tweets and news sentences, the author presents informality as an explanation. More formal writing may suppress distinctive usage through shared conventions. Similarly, the explanation for the whole-article advantage invokes the extra clues available in a longer input. Both interpretations fit the observations. The paper gives performance summaries and data statistics, leaving the individual linguistic cues and their distributions outside the analysis.

The author reads the cross-domain performance as support for earlier evidence that the systems are detecting dialect differences. The strength of that argument comes from changing the genre while retaining the classification task. A signal restricted to the editorial habits of the sampled newspapers would be a poor explanation for success on tweets. The inference is about the plausibility of rival explanations. Character and token patterns can encode a mixture of traits, and the result itself gives no inventory of which traits survived the change.

Limits visible in the experimental design

The experiment covers Romanian and Moldavian in a particular source collection and a particular target collection. The transfer demonstrated is principally from news towards tweets. The reverse-prediction step does send a tweet-trained classifier in the other direction, but its purpose is to filter source training material. The paper does not set it up as a parallel held-out evaluation of training on tweets and transferring to news. The scores therefore support a directional account for these data, with other directions and media left untested.

Changing from news to tweets helps weaken an explanation based solely on newspaper conventions. Other cues can remain correlated with the recorded labels across the two collections. A lexical or geographic association could appear in both genres, even if the two media present it differently. Because the features are learned from text and are not inspected as linguistic evidence, the experiment cannot assign a measured portion of successful decisions to spelling, vocabulary, style, or any other specific feature class. It establishes cross-collection discrimination more directly than it establishes its linguistic mechanism.

The human comparison has a related boundary. The paper cites earlier evidence that people find written Romanian and Moldavian difficult to distinguish. The official scores in this study are results for automatic systems, and there is no matched human evaluation alongside each training condition or adaptation variant. The human result motivates the problem. It cannot show what cues people would use on the same target batch or whether the machine and human mistakes would occur on the same texts.

Test-set adaptation assumes a batch of unlabeled evaluation tweets is available to the system. Some texts in that batch receive pseudo-labels and participate in retraining before final predictions are scored. The recorded test labels are reserved for scoring. The official result therefore measures classification when the unlabeled batch can be used in advance. If tweets instead arrive separately and must be labeled immediately, the system would have different access to target evidence. The unadapted comparison is the paper’s closest measurement of the system without that batch access.

The reported confidence thresholds also have a specific scope. A margin is a decision quantity within a fitted classifier, and the paper uses it to choose or weight examples. It provides no estimate of the actual error rate among tweets admitted at 0.50, and it does not show how broader or narrower admission would change performance. Confidence in a classifier trained on news can reflect strong evidence according to that classifier while conveying less assurance about its correctness on tweets. This dependence limits how precisely the gains can be attributed to successful pseudo-labeling.

The source-selection comparison does not hold training volume fixed. It also changes document length, class balance, and the range of patterns present. A random source subset of comparable size would address the value added by the specific selection rule at that size, while the full-source comparison answers whether the entire filtering pipeline helps. The paper reports the latter. Following the change in the class ratios and lengths helps explain which properties of the training material shifted, but it cannot measure their effects independently.

The paper reports variation across folds for the within-domain experiments. Those standard deviations describe variation in the reported cross-validation setup. They give neither a formal uncertainty interval for the shared-task ranks nor a significance test for the close leading results. The search also uses cross-validation performance to choose among configurations. The best reported within-domain values therefore describe the outcome of that search on those collections. The official target test serves a different evaluation role, with rankings determined by the submissions on that test batch.

Finally, the sentence-level experiments inherit both the strengths and the limits of their data preparation. Labels belong originally to articles and are propagated to their component sentences. Performance on those sentences measures how well the system can recover the parent label from that shorter input. Some sentences may offer little evidence of the variety by themselves. The paper gives enough evidence to see how much the unit of prediction matters here. Establishing that tweets intrinsically express more dialect variation would require separating the writing conditions from the other differences between the short-text collections.

What came after

Naive Bayes-based Experiments in Romanian Dialect Identification (2021) cites Çöltekin’s study and examines the same identification problem with a Naive Bayes approach. That is a change in classifier family. Çöltekin’s paper formulates the decision in terms of a learned boundary and uses distance from that boundary for voting and adaptation. The later title identifies Romanian dialect discrimination as the continuing task and Naive Bayes as the focus of the new experiments.

The citation connects the two studies at the level of the classification problem. It leaves the role of Çöltekin’s specific procedures in the later experiments unspecified. In particular, the later work’s title establishes a change of classification approach, while a direct comparison of test-time augmentation or reverse prediction would require knowing which data splits and adaptation procedures those experiments used.

Cite

Cite as Çağrı Çöltekin. 2020. Dialect Identification under Domain Shift: Experiments with Discriminating Romanian and Moldavian. Proceedings of the 7th Workshop on NLP for Similar Languages, Varieties and Dialects.

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

@inproceedings{cagri2020dialect,
  title = {{Dialect Identification under Domain Shift: Experiments with Discriminating Romanian and Moldavian}},
  author = {Çağrı Çöltekin},
  booktitle = {Proceedings of the 7th Workshop on NLP for Similar Languages, Varieties and Dialects},
  year = {2020},
  url = {https://aclanthology.org/2020.vardial-1.17/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/coltekin-2020-dialect-identification-under-domain-shift/