Elamur Research

Forget NLI, Use a Dictionary: Zero-Shot Topic Classification for Low-Resource Languages with Application to Luxembourgish

Paper · 2024 · Fred Philippy, Shohreh Haddadan and Siwen Guo

Summary

A collection of Luxembourgish news articles may need sorting into topics even when there are no labeled articles to learn from. A standard approach to this kind of text classification asks whether an article supports a statement about each possible topic. The system learns to judge such statements from natural language inference, or NLI, which concerns whether one sentence supports, contradicts, or leaves open the meaning of another. The authors ask whether a dictionary can supply training examples closer to what topic classification actually demands. A topic label only needs to describe what a text is about. For low-resource languages such as Luxembourgish, using a dictionary also offers a way to work with an existing resource when suitable inference data are scarce.

The authors turn the Luxembourg Online Dictionary into two datasets. They pair an example sentence for a particular noun sense with a synonym in LETZ-SYN or with a translation in LETZ-WoT. They also pair sentences with randomly selected nouns to provide examples of irrelevant labels. Spelling filters reduce the opportunity to learn the task by matching near-identical words. A classifier trained on these pairs can then take an unfamiliar text, score each candidate topic separately, and select the one that receives the strongest relevance score. The task is zero-shot because the classifier receives no labeled examples for the target categories. It still learns from labeled sentence–word pairs constructed from the dictionary.

The authors test the approach on the Luxembourgish portion of SIB-200 and on a restricted set of Luxembourgish news articles they call LuxNews. With 568 training pairs, multilingual BERT trained on LETZ-SYN reaches 52.08 accuracy and 51.45 macro F1 on SIB-200, and 65.08 accuracy and 49.20 macro F1 on LuxNews. LETZ-WoT also beats the French, German, and English NLI alternatives on both metrics and both evaluations, even when those alternatives have 11,822 training examples. The monolingual Luxembourgish encoder responds differently to the amount of training data. With the larger LETZ-SYN training set it obtains the highest SIB-200 scores in the study, while multilingual BERT retains the strongest LuxNews results.

The authors release both training datasets. Their findings show that a dictionary rich in examples, synonyms, and translations can provide effective supervision for these Luxembourgish tasks. The study tests one target language and one dictionary, and the authors identify the availability and quality of comparable dictionaries as conditions for testing the approach elsewhere.

Deep dive: Forget NLI, Use a Dictionary: Zero-Shot Topic Classification for Low-Resource Languages with Application to Luxembourgish

A Luxembourgish study tests whether dictionary examples can train a zero-shot topic classifier more effectively than natural language inference data. · about 32 minutes to read

The problem and its context

Why an unlabeled category can still be usable

A conventional topic classifier learns from texts whose categories are already known. If the training labels include sports and travel, the classifier sees what those categories look like in actual texts. An application may instead have category names and a collection of texts awaiting classification. The human meaning of a name such as sports supplies a starting point, but the classifier still needs a way to decide how that meaning relates to any given piece of writing. Zero-shot topic classification asks whether it can make that decision without labeled examples for the categories it will encounter at evaluation.

A category name in this setup serves two purposes. It identifies an output the reader will recognize, and it provides the wording the classifier uses to judge a text. An article may describe a match, a team, or a result without using the general word that names the category. The classifier has to connect a specific account with a broader subject. That is the same decision procedure whether the topic inventory is the one used for short benchmark samples or the one used for articles from a news platform. The inventory can change because the category name arrives as part of the input.

The earlier entailment approach discussed in the paper makes this decision with a sentence-pair classifier. In the setup described by Benchmarking Zero-shot Text Classification, the input text serves as a premise, and a natural-language statement about a candidate topic serves as a hypothesis. To score sports, for example, the system receives the text and a statement attributing sports as its subject. It runs the same procedure with the other candidate subjects and chooses the label with the highest score for entailment.

Entailment is the relation in which the premise supports the truth of the hypothesis. An NLI dataset can also ask whether the premise conflicts with the hypothesis or leaves its status undecided. Topic relevance asks a narrower question in one sense and a looser one in another. It concerns what the text discusses, and a candidate can be relevant even when no individual statement in the text logically establishes that it is the subject. A recipe can be recognized from what the writer asks the reader to prepare. Classifying the article does not require deciding every inference that follows from the recipe.

The distinction also matters for irrelevant topics. There is generally no reason to expect a news article about cooking to contradict a statement about sports in the way that one factual statement can contradict another. The topics simply fit the text to different degrees. An NLI classifier can still be useful for ranking them. The question is how much the training task teaches it about relevance, particularly when resources for learning the broader inference task are limited.

Where the standard approach places its demands

As the authors describe it, the earlier work raises issues at the level of both data and meaning. The work by Ma and colleagues identifies mismatches between label spaces, imbalances in training data, and ambiguities in the relation between expressions and categories. A system trained to separate entailment, contradiction, and neutrality must apply what it learns to labels that serve a different purpose. Even when a label is easy for a person to understand, the wording of its hypothesis and the range of relationships represented in training affect the evidence the classifier can use.

Producing inference data entails judgments about pairs of sentences. People can disagree about whether a conclusion follows or whether it merely seems plausible, particularly when a sentence leaves part of its meaning implicit. The authors cite this disagreement as a reason both dataset size and annotation quality matter. The relevant discussion of inference datasets includes Curing the SICK and Other NLI Maladies.

Training on inference examples in a different language offers another route. The premise is that general language abilities acquired during pretraining, followed by inference training in a better-resourced language, can carry over to Luxembourgish. Each part carries a demand. The encoder needs representations that work for the target text, and what it learns about inference needs to transfer to that text and support the eventual topic decision. The paper cites AmericasNLI for evidence that cross-language NLI transfer can perform poorly in low-resource settings. This makes the availability of source-language data only one part of the problem.

The local context provides a reason to put those demands under scrutiny. The paper describes Luxembourgish as a West Germanic language spoken by approximately 400,000 people in Luxembourg. It discusses its national role and its growing presence in writing and digital media alongside Luxembourg's multilingual setting. For the problem at hand, the authors report a limited supply of unannotated pretraining text and the absence of a large Luxembourgish NLI dataset. A language can have an established role in public life and a growing body of digital writing while still lacking the particular collections that a particular classifier needs.

What a dictionary already records

The dictionary approach starts from judgments that have already been made for another reason. An example sentence shows how a word is used in a particular sense. A synonym conveys a similar meaning, and a translation expresses the sense in another language. If the entry keeps those relationships together, the example and one of the related words form a plausible pair for training. This shifts the data requirement from sentence-pair inference judgments to a resource produced through lexicography.

The resulting supervision sits between simple word matching and explicit topic annotation. The example and related word share meaning through a dictionary entry, and someone has already distinguished the sense of the word that links them. Yet a lexicographer selecting a usage example has a different purpose from a person labeling the main subject of an article. The research question is whether that existing relationship supplies enough evidence to train a relevance classifier that can generalize to the second task.

The proposal also changes where the practical cost lies. An NLI collection needs sentences and judgments about the relations between them. The dictionary supplies sentences and lexical relations as part of the same resource. The work then consists of selecting suitable entries, constructing positive and negative pairs, and filtering some of the easy spelling cues. For a language with the right dictionary material, the authors can test this route without first commissioning an inference corpus or labeling articles by their target topics.

The method, step by step

From an entry to a training example

The authors use the Luxembourg Online Dictionary, or LOD. The resource associates example sentences and synonyms with individual meanings of a word. That organization matters for a word with several senses. An example illustrating one use belongs with words that express that use, and keeping the sense boundary intact avoids pulling in synonyms for a different meaning of the same headword. This is a direct application of information about word meaning already recorded in the dictionary. Lexical semantics

The paper uses the dictionary release dated June 5, 2023. To describe the scale of the resource, the authors give figures from a 2022 report that lists around 10,000 synonyms and 48,000 example sentences across roughly 31,000 entries. The dictionary offers translations for most entries, with German, French, English, Portuguese, and Sign Language listed among its resources. These figures describe the dictionary. The dataset sizes count sentence–label pairs after selection and filtering, so they describe a different unit. A dictionary sentence can supply supervision through more than one related term.

The construction begins by reading the part-of-speech tags, synonyms, and examples associated with each meaning. The authors retain nouns. To make LETZ-SYN, they take the synonyms of a retained sense and use them as candidate positive labels for the examples of that sense. The original headword acts as the link between the sentence and the synonym during construction. The classifier receives the sentence and the proposed label, and its target says whether the pair is relevant.

One dictionary example illustrates the difference between the word in the text and the label supplied for it. The sentence urges a reader to wait patiently until the right time. It uses Abléck, and the paired label is Moment. Another example describes making a choice from a large field of candidates. The sentence contains Auswiel, while the label is Selektioun. The training signal asks the classifier to connect the word provided as the label to what the sentence expresses. That can involve recognizing the relationship between the words or using the surrounding description as evidence.

LETZ-WoT applies the same construction with the dictionary's translations in place of synonyms. The Luxembourgish usage sentence still anchors the pair. Its proposed label now comes from the translation attached to the noun sense. A translation can express the sense accurately even when its spelling is different and it belongs to another language. Conversely, a translation can be close enough in form to make a superficial rule attractive. The authors therefore use spelling-based filters as part of both construction procedures.

From dictionary entries to a topic prediction

The steps in order.

From dictionary entries to a topic predictionStep 1: Keep noun senses and their examples1. Keep noun senses and their examplesStep 2: Pair examples with synonyms or translations2. Pair examples with synonyms or translationsStep 3: Filter pairs with close spelling matches3. Filter pairs with close spelling matchesStep 4: Sample unrelated noun labels and filter them4. Sample unrelated noun labels and filter themStep 5: Train a sentence–label relevance classifier5. Train a sentence–label relevance classifierStep 6: Score every candidate topic for the input6. Score every candidate topic for the inputStep 7: Select the topic with highest estimated relevance7. Select the topic with highest estimated relevance

Why the spelling filters appear on both sides

Using the headword itself as a positive label would make the intended meaning relationship easy to identify where the sentence contains that word. It would also let a classifier succeed by learning to spot the headword in the sentence. The authors exclude the headword from the positive label set. They further discard close spelling matches between the noun and its proposed lexical counterpart. For this they use Levenshtein distance, a count of the character edits needed to turn one string into another. A smaller distance indicates more closely matching forms.

The paper motivates the filter with the observation that some Luxembourgish words are spelling variants of words in French or German. A close written form can still represent a legitimate synonym or translation. The authors exclude some such pairs because those examples would make it difficult to tell whether a classifier had learned to relate meanings or merely to exploit spelling similarity. The filter changes which correct relationships the dataset asks the classifier to learn from. It favors examples where success requires evidence beyond a very close match between the relevant word forms.

The negative examples come from a different process. The authors draw a candidate label at random from the noun vocabulary for an example sentence. They use Levenshtein distance again, this time to screen the proposed noun against the words in the sentence. A close match can signal that the proposed negative is actually the word used in the sentence or a form closely related to it. Screening removes those candidates from the pool used for that sentence.

In the paper's sample pairs, a sentence about a dent in a car bumper is paired with Libell, meaning dragonfly. A sentence about sending someone the address of a website is paired with Schrauwenzéier, meaning screwdriver. These examples convey the kind of distinction the negative construction makes readily available. The classifier encounters pairs with an evident connection and pairs in which the proposed noun has no apparent bearing on the sentence. The procedure obtains both kinds of supervision without asking annotators to identify news topics.

The spelling rules serve related purposes on the two sides. For positives, the authors seek to reduce a shortcut that makes correct pairs unusually easy. For negatives, they seek to avoid drawing a candidate whose form closely resembles something already in the sentence. Because the procedure compares strings, its checks tell the reader how the dataset regulates written resemblance. The reason for viewing a synonym or translation as semantically relevant still comes from the dictionary's sense information.

What is balanced and what is split

The authors balance relevant and irrelevant pairs in each dataset split. Relevant pairs carry the target value 1, and irrelevant pairs carry 0. These values identify the two outcomes of the training decision. They are distinct from the topic labels the evaluation asks the classifier to choose among. Moment can be the candidate in a positively labeled training pair, while a word for a news topic can appear at evaluation as one of several candidates competing to describe the same article.

LETZ-SYN has 11,822 training pairs, 1,478 development pairs, and 1,478 test pairs. LETZ-WoT has 39,132 training pairs, 4,892 development pairs, and 4,892 test pairs. The paper also plots the distribution of example length by word count for the LETZ-SYN training, development, and test splits. The comparison of lengths concerns the dictionary examples from which the pairs are built. The topic classification results concern the separate SIB-200 and LuxNews evaluations.

An important distinction follows from those units. The size of LETZ-WoT tells the reader how many pairs the authors generated and released in each split. The training amounts used in the topic comparison are controlled separately. The larger comparison setting uses the training and development sizes of LETZ-SYN as its reference, so a LETZ-WoT score in that setting represents the matched amount. The full size of a released resource and the amount used in a controlled comparison answer different questions.

The paper makes both datasets publicly available under CC BY 4.0 and releases the accompanying code under the LETZ project. Its two datasets preserve the same basic training format while changing the source of the positive labels. That makes it possible to compare synonyms and translations inside a common pair-classification setup.

What the classifier learns to score

The authors start with two encoders already pretrained on text that includes Luxembourgish. One is LuxemBERT, which is monolingual. The other is the cased base multilingual BERT, or mBERT, from the BERT work. The paper describes mBERT as having been pretrained on 102 languages, including Luxembourgish. The appendix reports that the encoders share a Transformer architecture with 12 attention heads, 12 blocks, and a hidden size of 768. It gives vocabulary sizes of 30,000 for mBERT and 119,547 for LuxemBERT. Their language coverage and vocabularies are properties of the pretrained encoders. The dictionary pairs enter at the later training stage.

The authors add a classification layer with a linear transformation and a tanh activation. Its two output nodes correspond to the outcomes of the relevance judgment. The authors illustrate fine-tuning by pairing a text with a short Luxembourgish statement that frames the candidate as what the text is about. The example gives the classifier a consistent way to read a single candidate. At training time, the known relationship of the pair supplies the target for this judgment.

This is where the approach keeps the useful part of the entailment setup. The classifier still receives a text and a hypothesis-like description, so a future category can be passed in as words. The target for dictionary training comes from a different source. It is based on whether a candidate is lexically related through the relevant dictionary sense or sampled to represent an unrelated pairing. The resulting training problem is designed to bring the score closer to the decision the authors will make at evaluation.

The plain-language interpretation of the output is that a high score says the candidate is a good description of the text's subject. The training examples give that interpretation a particular scope. The positive examples teach the classifier to recognize a local relationship that the dictionary records. During evaluation the score must work for broader categories, and in LuxNews it may have to draw on the content of a full article. This is the transfer the paper tests.

The authors use AdamW with a learning rate given as 2e-5, a batch size of 32, and a schedule with linear decay. The paper also gives both 10% warmup steps in its schedule description and 10 warmup steps in its account of fine-tuning. It leaves their relationship unspecified. The reported run length is 5 epochs. Validation follows each epoch, and the authors select the checkpoint with the lowest validation loss. They set the maximum training input length to 128 tokens and use distinct random seeds across runs, averaging the reported results. The paper describes using AdamW in connection with Decoupled Weight Decay Regularization.

How the scores become a topic decision

At evaluation, every candidate gets its own pass through the pair classifier. If the candidate list includes sports and technology, the classifier sees the same input with a statement about sports and again with a statement about technology. A high score for sports in the first pair is a relevance judgment about that pair by itself. The decision rule then compares it with the scores obtained from the other candidates.

The paper gives the rule as an argmax over the positive-class probabilities.

i∗ = argmaxᵢ∈{1,…,n} Pᵢ,₁

Here i∗ is the index of the selected category. The index i ranges over the set {1,…,n}, where 1 denotes the first category index, … denotes the intervening indices, and n is the number of available categories. The operator argmax returns the index that gives the largest value, and = assigns that index to i∗. The symbol Pᵢ,₁ is the estimated probability of outcome 1, relevance, for the pair formed from the input text x and candidate topic Tᵢ. The symbol T denotes the collection of available topics. The subscript i on P selects the candidate, while the subscript 1 selects the positive output for that candidate.

The distinction between a score and a decision is important. Each pair yields its own estimate of relevance. The evaluation rule needs those estimates to rank the candidate topics for the input, with the correct topic ideally arriving first. It produces a single selected category even if several topics seem plausible. The categories themselves need not occupy fixed positions in the classification layer. Their descriptions can change while the two relevance outcomes remain the same.

This is also the point where the zero-shot condition becomes concrete. The candidate wording is available at evaluation. The classifier has learned how to score text–label pairs from separate training data, and the natural-language descriptions convey what the evaluation categories mean. SIB-200 and LuxNews provide known answers for checking the resulting selections. Those answers supply evaluation evidence rather than examples for learning the target categories.

Experiments and results

Two different evaluation settings

The Luxembourgish portion of SIB-200 supplies the first test. Its categories are science and technology, travel, politics, sports, health, entertainment, and geography. The paper gives the Luxembourgish label used for each category. The combined science and technology category, for instance, is represented by Technologie, and travel by Rees. These words enter the topic statements and thus form part of the evaluated setup. Choosing a label is an exercise in recognizing its meaning in relation to the text, as well as comparing it with the meanings of the remaining choices.

LuxNews provides a test on articles from a Luxembourg-based news platform. The source dataset has 8 categories, of which the authors use 5 for these experiments. They retain sports, culture, gaming, technology, and cooking recipes. They exclude the national, international, and European news categories because those labels could overlap with the subjects retained for evaluation. An article about technology can also be national news, for instance, because those labels classify the same article along different dimensions. Limiting the inventory makes the forced choice easier to interpret.

The Luxembourgish labels for the retained news categories include Konscht for culture, Videospiller for gaming, and Rezept for cooking recipes. A label such as Rezept is a compact cue for a category whose source name describes a kind of article. That cue is sufficient to run the zero-shot decision rule, but the scores apply to the particular descriptions the authors use. The paper also specifies different maximum input lengths at evaluation. It uses 128 tokens for SIB-200 and 512 for LuxNews, giving the news articles a larger input allowance.

The two evaluations consequently test different versions of the same decision. The SIB-200 selection comes from a multilingual topic benchmark with a Luxembourgish portion. LuxNews uses articles from a local platform and a subset of its editorial categories. Some broad topics have recognizable counterparts in both inventories, such as sports, while others are specific to one. The authors identify these as the suitable labeled Luxembourgish resources they could find for this experiment.

Comparisons at matched training sizes

The baselines use inference rather than dictionary relevance as the source of training labels. NLI-lb supplies an in-language comparison, with 568 training examples and 63 validation examples. Its available labels distinguish entailment from contradiction. This matters when interpreting the experiment. The paper motivates the broader mismatch between a standard inference task and relevance, and this specific Luxembourgish baseline already has a binary label inventory. Its test is whether learning the difference between the two inference outcomes transfers to choosing among topics.

The cross-language comparisons use German, English, and French training data from XNLI. The text being classified at evaluation is still Luxembourgish. A German inference condition, for instance, measures whether training on the German data produces a pair scorer that ranks the Luxembourgish topic candidates well. The paper evaluates these cross-language conditions with mBERT. For LuxemBERT, the reported comparisons use NLI-lb and LETZ-SYN, with results for the larger setting available for LETZ-SYN.

The authors define a smaller and a larger training regime to see what each source can deliver under different data budgets. The smaller one has 568 training examples and 63 validation examples, matching NLI-lb. The larger one has 11,822 training examples and 1,478 validation examples, matching the LETZ-SYN training and development splits. NLI-lb has results only in the smaller regime. The paper reports no larger NLI-lb condition, so the difference between the two amounts can be assessed for cross-language NLI and dictionary data but cannot be followed for in-language inference.

Using the same amount of data across sources gives the comparison a specific meaning. At a matched size, the scores compare the utility of the labels and texts available from each construction under the study's shared topic evaluation procedure. When the paper compares a smaller dictionary condition with a larger inference condition, the question instead concerns how much training evidence each source needs to yield a given ranking performance. Both comparisons keep the final task the same.

How to read the reported scores

The paper reports accuracy and macro-averaged F1. Accuracy measures how frequently the selected topic agrees with the recorded one across the evaluated items. Macro F1 treats each category equally when averaging its F1. For an individual category, F1 combines precision, which asks how frequently a prediction of that category is correct, with recall, which asks how many of its actual instances were found. The macro score can therefore favor a setting that performs more evenly across categories, even when a different setting gets more individual items right overall.

The authors average the outcomes from four runs with different random seeds. This is particularly relevant for training on sampled collections of pairs or running a training procedure whose outcome can vary with the seed. The reported means show where each condition landed across those runs. They do not describe the run-to-run spread, so the scale and direction of the numerical patterns matter more for interpretation than treating every ordering in the table as established by a significance test.

What the smaller training regime delivers

With 568 training examples, dictionary supervision has the largest advantage in the mBERT experiments. On SIB-200, LETZ-SYN yields 52.08 accuracy and 51.45 macro F1, while LETZ-WoT yields 49.39 accuracy and 49.50 macro F1. German NLI is the strongest cross-language inference setting at that size on this dataset, at 25.61 accuracy and 24.69 macro F1. In-language NLI reaches 17.52 accuracy and 16.56 macro F1. The English and French inference conditions fall between the German and Luxembourgish ones on both metrics.

mBERT accuracy on SIB-200 with 568 training examples

The synonym and translation datasets both lead the inference training alternatives.

mBERT accuracy on SIB-200 with 568 training examplesLuxembourgish NLI: 17.52Luxembourgish NLI17.52French NLI: 22.30French NLI22.30English NLI: 22.67English NLI22.67German NLI: 25.61German NLI25.61LETZ-WoT: 49.39LETZ-WoT49.39LETZ-SYN (this paper): 52.08LETZ-SYN (this paper)52.08
The numbers
System or settingaccuracy
Luxembourgish NLI17.52
French NLI22.30
English NLI22.67
German NLI25.61
LETZ-WoT49.39
LETZ-SYN (this paper)52.08

The corresponding mBERT comparison on LuxNews favors dictionary supervision again. LETZ-SYN reaches 65.08 accuracy and 49.20 macro F1, and LETZ-WoT reaches 59.81 accuracy and 43.18 macro F1. The strongest small cross-language inference condition is again German, at 30.22 accuracy and 25.88 macro F1. NLI-lb yields 15.87 accuracy and 12.51 macro F1. The dataset changes the task from classifying the benchmark's inventory to sorting local articles into the retained subjects, yet the main ordering of the training sources at this size carries across.

LuxemBERT shows a weaker small-data result. On SIB-200, its LETZ-SYN scores are 18.50 accuracy and 15.86 macro F1, compared with 14.58 accuracy and 12.91 macro F1 for NLI-lb. On LuxNews, LETZ-SYN reaches 30.63 accuracy and 19.48 macro F1, while NLI-lb reaches 24.69 accuracy and 16.53 macro F1. The dictionary pairs improve the reported monolingual results over the available in-language inference baseline. The much stronger multilingual results at the same training size show how dependent the small-data outcome is on the starting encoder.

The authors describe the in-language inference results as comparable to a random baseline. The practical comparison they emphasize is that Luxembourgish inference supervision alone performs poorly here even though it matches the evaluation language. German, English, and French inference supervision transfers better to both tasks in the mBERT experiments at this size. The dictionary result goes further by keeping the example text tied to Luxembourgish and changing what the labels teach the classifier to recognize.

What changes with more training pairs

At 11,822 training examples, the cross-language inference conditions improve considerably for mBERT. On SIB-200, French NLI reaches 49.75 accuracy and 45.77 macro F1, the best reported inference result on that dataset. On LuxNews, English NLI gives the best inference result, with 50.73 accuracy and 38.18 macro F1. The stronger source language thus depends on which Luxembourgish evaluation the system faces. More examples help the NLI approach, and the study finds no single cross-language source that leads on both datasets at this size.

Both of the mBERT dictionary settings trained on 568 examples already exceed those best inference results on each evaluation and each metric. For example, the smaller LETZ-WoT condition reaches 49.50 macro F1 on SIB-200 and 43.18 macro F1 on LuxNews. The comparison is between the available training sets as they are used here. It shows that more inference examples did not erase the advantage of the dictionary-derived signal for this encoder and these target tasks.

At the larger size, mBERT with LETZ-SYN yields 53.80 accuracy and 54.13 macro F1 on SIB-200. LETZ-WoT produces 53.55 accuracy and 52.46 macro F1. The strongest larger-size NLI scores remain 49.75 accuracy and 45.77 macro F1 in the French condition. The two dictionary setups are close in accuracy at this size, with the synonym setting ahead on the class-averaged metric as well.

LuxemBERT benefits more markedly from the move to the larger LETZ-SYN training set. On SIB-200 it reaches 65.07 accuracy and 64.07 macro F1, the highest reported results on that benchmark. Its LuxNews scores with the same training condition are 51.81 accuracy and 38.27 macro F1. On that dataset the corresponding mBERT scores are higher. The pattern gives each encoder a different strongest result in the study and makes the choice of evaluation dataset important to the headline comparison.

Macro F1 on SIB-200 with 11,822 training examples

LuxemBERT trained on synonym pairs leads the reported settings.

Macro F1 on SIB-200 with 11,822 training examplesmBERT with German NLI: 43.76mBERT with German NLI43.76mBERT with English NLI: 44.34mBERT with English NLI44.34mBERT with French NLI: 45.77mBERT with French NLI45.77mBERT with LETZ-WoT: 52.46mBERT with LETZ-WoT52.46mBERT with LETZ-SYN: 54.13mBERT with LETZ-SYN54.13LuxemBERT with LETZ-SYN (this paper): 64.07LuxemBERT with LETZ-SYN (this paper)64.07
The numbers
System or settingmacro F1
mBERT with German NLI43.76
mBERT with English NLI44.34
mBERT with French NLI45.77
mBERT with LETZ-WoT52.46
mBERT with LETZ-SYN54.13
LuxemBERT with LETZ-SYN (this paper)64.07

Why LuxNews has two best settings

The best LuxNews accuracy, 66.07, comes from mBERT with the larger LETZ-SYN training set. The best LuxNews macro F1, 52.13, comes from mBERT with the larger LETZ-WoT set. In that setting LETZ-WoT reaches 59.96 accuracy, while LETZ-SYN has 47.73 macro F1. The difference matters when describing which dataset performs better. The synonym setting yields the strongest overall count of correct article classifications. The translation setting yields the strongest average F1 across the retained categories.

Macro F1 on LuxNews with 11,822 training examples

Translation pairs give mBERT the strongest class-averaged result.

Macro F1 on LuxNews with 11,822 training examplesmBERT with German NLI: 35.18mBERT with German NLI35.18mBERT with English NLI: 38.18mBERT with English NLI38.18mBERT with French NLI: 37.65mBERT with French NLI37.65mBERT with LETZ-SYN: 47.73mBERT with LETZ-SYN47.73LuxemBERT with LETZ-SYN: 38.27LuxemBERT with LETZ-SYN38.27mBERT with LETZ-WoT (this paper): 52.13mBERT with LETZ-WoT (this paper)52.13
The numbers
System or settingmacro F1
mBERT with German NLI35.18
mBERT with English NLI38.18
mBERT with French NLI37.65
mBERT with LETZ-SYN47.73
LuxemBERT with LETZ-SYN38.27
mBERT with LETZ-WoT (this paper)52.13

This divergence also affects the interpretation of training size. On LuxNews, bigger LETZ-SYN training gives mBERT higher accuracy than the smaller LETZ-SYN run, while its macro F1 goes from 49.20 in the smaller regime to 47.73 in the larger one. For LETZ-WoT, the larger regime raises macro F1 from 43.18 to 52.13 while its accuracy changes from 59.81 to 59.96. The headline result that dictionary training works well holds on either metric. Claims about the best dictionary source or the effect of adding more pairs need to specify which metric they describe.

What the ablations show

Changing the source of supervision

The paper varies the source and amount of supervision and compares two pretrained encoders. It does not report a component ablation that removes the spelling filters, changes the negative sampling rule, or restores the headword as a candidate. The controlled comparisons show which training arrangements succeed together with the rest of the method. They cannot separately establish how much each construction decision contributes to the scores.

The most direct comparison keeps the encoder, training budget, and topic evaluation fixed while changing where the training examples come from. At 568 examples, the mBERT conditions trained on dictionary pairs are ahead on both evaluations whether the labels come from synonyms or translations. The shared advantage matters because the lexical source changes while the basic sentence–label construction survives. The result supports the usefulness of dictionary supervision in both forms. It leaves open how much of the advantage comes from the relevance target itself, the prose in the dictionary examples, the lexical relations selected, or interactions among these features.

The in-language comparison adds a separate piece of evidence. LETZ-SYN and NLI-lb both supply Luxembourgish sentences, and the matched-size results favor LETZ-SYN with either encoder on both tasks. Language identity by itself therefore supplies an incomplete account of the effect. The available Luxembourgish inference examples and the lexical relevance pairs differ in their content and labeling procedure. The comparison measures that whole change instead of isolating a single reason for the advantage.

Among the cross-language inference conditions, the authors see improvement over NLI-lb with mBERT. That is a useful qualification to the argument for relying less on inference training. The cross-language route carries usable evidence for the topic task. Its gains with more training examples are also substantial. What makes the dictionary result distinctive is that it obtains stronger Luxembourgish topic scores in the tested setup at the smaller budget, where the supply of appropriately labeled training data is the most pressing issue.

Changing the amount of data

The training-size comparisons show an interaction between amount and source. Inference training benefits from the larger budget in the cross-language mBERT runs. Dictionary training begins from a stronger small-budget result for that encoder. On SIB-200, more LETZ data improves the reported mBERT averages for both dictionary sources and both metrics. On LuxNews, the change depends on whether one reads accuracy or macro F1 and whether the extra training pairs use synonyms or translations. This matters for the paper's claim about economy. Good performance at a small budget is compatible with several different responses to giving the classifier more data.

LuxemBERT supplies the clearest evidence that the amount of training can change which encoder is preferable. With 568 LETZ-SYN pairs it is behind mBERT on SIB-200, at 18.50 accuracy against 52.08. With 11,822 pairs it reaches 65.07 accuracy, above mBERT's 53.80 in the same condition. On LuxNews it improves at the larger size while still trailing the corresponding multilingual run. Thus the amount of task training can reverse the relative outcome on SIB-200 even as LuxNews continues to favor mBERT.

The authors suggest that the broad cross-language knowledge acquired by mBERT may help when few training pairs are available. They also suggest that multilingual excerpts or quotations in the news articles could explain part of mBERT's continuing lead there. Each interpretation concerns a plausible difference between the encoders and the demands of the two evaluation sets. No comparison divides the articles by quotation language, and the study does not vary pretraining coverage while holding the rest of an encoder's training history fixed. The observed ranking and its dependence on the dataset are established by the comparison. The cause remains a hypothesis.

The study tests two training amounts. It establishes that 568 pairs suffice for the reported small-budget results with mBERT, and it shows what happens under the selected larger budget. Those conditions leave the course of learning between the two amounts and below the smaller one open. They also leave open whether sampling from a substantially smaller dictionary would provide the same quality or diversity of supervision.

Changing synonyms to translations

LETZ-SYN supplies the strongest mBERT results on both metrics for both evaluations at the smaller size. LETZ-WoT nonetheless performs well ahead of the inference alternatives. This is evidence that the approach can draw useful supervision from translations as well as from same-language synonyms. A dictionary with translation material can provide a meaningful sentence–word signal even when that signal bridges languages.

The larger comparison gives a less uniform ordering. On SIB-200 with mBERT, the synonym pairs lead on both metrics. On LuxNews the synonym pairs lead on accuracy and the translation pairs on macro F1. Those outcomes establish that the type of lexical relationship can matter for what the classifier ultimately does. The macro score alone does not tell which categories account for the difference. To attribute it to gaming, culture, recipes, or some other class would require a breakdown of successes and errors that the paper does not give.

The source comparison is most informative as a test of alternatives that a dictionary already offers. It shows that synonym and translation supervision can both transfer from noun usage examples to the evaluation's topics. The full releases differ in size, but the performance comparison uses matched budgets. The larger total of available translation pairs is therefore a property of the released dataset. It cannot on its own explain the ranking of the matched translation and synonym conditions.

What remains untested inside the method

The sample pairs help a reader understand why the recipe might work. A positive example can require recognizing that the text's word for a choice relates to a candidate meaning selection. A randomly drawn negative can be much easier to reject, as when a passage about a website address is paired with a term for a screwdriver. The paper's topic results show that the distinction learned from such pairs can carry over to a more demanding ranking problem. They do not establish how the classifier would respond if its negatives were deliberately chosen to be close in meaning.

The spelling filter illustrates a similar boundary between motivation and evidence. Its design addresses a shortcut by excluding some very close matches. The experiments evaluate the pipeline with that protection in place. They do not compare it with an otherwise identical construction that permits those matches. A careful reading can credit the paper with recognizing and addressing a plausible confound without reading the final scores as a measurement of the filter's specific effect.

Limitations

Limits the authors identify

The authors test their approach with Luxembourgish as the target language. They propose that it could work for other languages with a suitable dictionary and identify both better-resourced and low-resource languages as future evaluation settings. The motivating case for availability is that dictionaries frequently serve literacy, education, and language preservation, giving communities a reason to develop them independently of an NLP project. That explains why a dictionary may be available when inference data are scarce. Actual transfer depends on having the right dictionary content and has yet to be established by the paper's evaluations.

The authors also identify reliance on a single dictionary as a limitation. A dictionary has editorial goals and selects particular senses, forms, and examples for inclusion. It can therefore represent some kinds of usage better than others. LOD's sense-level distinctions and examples make the proposed construction possible, while its coverage shapes which positive pairs the classifier encounters. The authors caution that dictionaries can also preserve outdated, inaccurate, or offensive material. Since the construction converts selected dictionary relationships into training labels, their suitability as training evidence depends partly on the quality of the resource from which they came.

The study's findings about a few hundred training pairs apply to pairs drawn from the authors' larger resource. The paper suggests that a useful dictionary need not be enormous. The experiment gives evidence about the amount of training material consumed by the classifier, while the authors' collection and filtering procedures still benefit from the lexical inventory available in LOD. The minimum dictionary size needed to obtain similarly usable pairs remains an open empirical question.

Limits that follow from the setup

Dictionary relevance is a form of indirect supervision for document topics. A synonym or translation bears a relationship to a noun sense illustrated locally in an example. A news topic can summarize subject matter developed over an entire article. An example about a choice can establish a genuine relationship with Selektioun even if selection would be an awkward topic for a longer document in which that sentence appeared. The evaluation shows that the local training signal transfers to the tested inventories. The scope of the evidence is that transfer, rather than equivalence between the two notions of relevance.

The source of negative labels introduces another uncertainty. Random selection often provides terms with little relationship to the sentence, and the spelling filter can flag some candidates that resemble words in context. A string comparison cannot determine whether a differently spelled term is nonetheless related in meaning. This means some generated negatives could be plausible descriptions, while many others could be obvious mismatches. The authors do not estimate the rate of either kind. The results therefore characterize the construction as used, with the mix of negatives it yields.

The available inference data limit what can be concluded about the alternatives. NLI-lb has only the smaller condition, so no reported run shows what a larger Luxembourgish inference dataset would achieve. The cross-language datasets allow a larger comparison and supply evidence that NLI improves with more data in this setting. Because the training sources differ in language, label construction, and what their examples ask the classifier to learn, the results concern these practical sources of supervision. They cannot establish that every possible NLI dataset would be less useful than dictionary pairs for zero-shot topic classification.

The scope of LuxNews is also intentionally restricted. Excluding national, international, and European news lets a single-topic comparison focus on the retained subjects. The full news inventory would ask the classifier to handle overlaps between subject and geographic or political scope. The paper's scores address the restricted choice, and the argmax rule itself provides only one label. A use case that accepts several relevant topics, or that needs to recognize when none of the choices applies, would require evidence beyond these experiments.

Both evaluations depend on the Luxembourgish descriptions chosen for the labels and on the input limits used for the datasets. The paper does not compare alternative phrasings or alternative lengths. The results cannot show how much either choice affects the ranking of the encoders and data sources. They answer the end-to-end question for the label wording and evaluation settings the authors defined, which is enough for the comparison they make.

Finally, the table reports means across seeds, with no corresponding spread or confidence intervals. That leaves questions about the stability of small differences, such as the close accuracy scores for the larger mBERT dictionary conditions on SIB-200. The appendix describes the optimization setup but gives two forms of the warmup specification without explaining how they fit together. These reporting limits affect different kinds of follow-up. Run-level variation would help assess how reliably one condition leads another. A clarified warmup schedule would help reproduce the training procedure.

What came after

Other ways to use Luxembourgish lexical evidence

The later citing work includes research on variation in how Luxembourgish is written. Neural Text Normalization for Luxembourgish addresses text normalization using real-life variation data. The connection is that both studies ask how useful supervision can come from an existing feature of the language's resources. In the topic paper, the feature is a dictionary's record of relationships among examples, senses, and words. In the later study, the title identifies observed variation as the resource for a task aimed at handling different written forms. The citation establishes a connection to the earlier work. It does not establish reuse of either LETZ dataset.

A Subword Embedding Approach for Variation Detection also concerns Luxembourgish written variation, this time in user comments. Its title identifies a method using representations of units smaller than whole words. The relation to the topic paper is especially clear at the level of what counts as evidence. The LETZ construction screens close spellings to reduce the value of surface resemblance as a classification shortcut. Variation detection makes related written forms the object of study. That is a connection between their research questions. It gives no basis for claiming that the later method adopted LETZ's string filter or trained on its pairs.

Constructing supervision and evaluating its meaning

JudgeWEL concerns the construction of a dataset for asking whether automatically proposed named entity labels can be judged well. Named entity recognition concerns mentions of entities such as people or places. The point of contact is the use of indirect supervision. The topic paper derives binary relevance labels from the dictionary and tests their utility on a separate task with known answers. JudgeWEL puts the quality of distantly supervised entity labels at the center of its stated question. The title supports that relationship between research problems, while the citation alone leaves any shared data or construction procedure unspecified.

Why Low-Resource NLP Needs More Than Cross-Lingual Transfer takes up the broader question of how to develop NLP for Luxembourgish. Its title directly echoes the issue that motivates the dictionary experiment. In the earlier study, cross-language inference training gives a measurable route into the target task, while supervision built from a local dictionary yields better topic results under the tested conditions. The later work frames the balance between cross-language transfer and language-specific resources as a question for Luxembourgish NLP more generally. Its title identifies the argument and scope, with the details of its treatment of the topic experiments left unspecified.

Expanding what can be evaluated

ltzGLUE concerns general language understanding evaluation for Luxembourgish. Its relation to the topic study lies in the role of evaluation resources. The topic paper identifies suitable datasets as a practical constraint and uses separate evaluations to reveal that the best encoder depends on the task. A general evaluation effort addresses a wider range of language understanding questions. The citation does not establish that ltzGLUE incorporates LETZ, SIB-200, or the restricted LuxNews evaluation.

LëtzCross introduces a cross-language benchmark for information retrieval over Luxembourgish document pages. Its stated scope is multimodal and its decision concerns identifying relevant pages. The topic paper uses relevance to rank a fixed set of category descriptions for one text. The later benchmark's title places relevance in a different unit of evaluation, where the candidates are document pages and retrieval crosses languages. This continues the work of building ways to measure performance on Luxembourgish material. Direct reuse of the topic classifier or its training data is unspecified.

These citing studies carry forward questions about language-specific data, indirect supervision, cross-language transfer, and evaluation. Their stated topics establish those connections. The empirical contribution specific to LETZ remains the Luxembourgish comparison between dictionary-derived relevance labels and inference supervision, with the effects measured separately across training budgets, encoders, and topic evaluations.

Cite

Cite as Fred Philippy, Shohreh Haddadan and Siwen Guo. 2024. Forget NLI, Use a Dictionary: Zero-Shot Topic Classification for Low-Resource Languages with Application to Luxembourgish. Proceedings of the 3rd Annual Meeting of the Special Interest Group on Under-resourced Languages @ LREC-COLING 2024.

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

@inproceedings{philippy2024forget,
  title = {{Forget NLI, Use a Dictionary: Zero-Shot Topic Classification for Low-Resource Languages with Application to Luxembourgish}},
  author = {Fred Philippy, Shohreh Haddadan and Siwen Guo},
  booktitle = {Proceedings of the 3rd Annual Meeting of the Special Interest Group on Under-resourced Languages @ LREC-COLING 2024},
  year = {2024},
  doi = {10.63317/5dq5ktg5bnrh},
  url = {https://doi.org/10.63317/5dq5ktg5bnrh}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/philippy-2024-forget-nli-use-dictionary-zero/