Combating the Curse of Multilinguality in Cross-Lingual WSD by Aligning Sparse Contextualized Word Representations
Paper · 2022 · Gábor Berend
Summary
A word can have several meanings, and its sentence often tells us which one applies. The difficulty for word sense disambiguation is acquiring enough examples in which someone has already marked the intended meaning. Gábor Berend’s paper asks how far English examples can go towards solving this problem in other languages. A single multilingual encoder offers a convenient way to transfer information because it represents English and the target language in the same system. But an encoder built for a particular language may represent words in that language more effectively. Berend tests whether separately trained encoders can be made to work together and whether the resulting transfer improves when each word occurrence is represented by a small set of active features.
The method learns the connection between encoders from translated sentences. A bilingual lexicon identifies words that appear together in those sentences and are listed as possible translations in both directions. The paper treats the resulting word occurrences as examples of how corresponding meanings are represented in context, then learns a linear transformation that places target-language vectors in the English representation space. For the sparse version, that space is described by a learned collection of reusable vector components. Both English occurrences and mapped target-language occurrences are expressed using that same collection. Annotated English examples then show which components tend to be active for each sense. At test time, the active components of a target word provide evidence for choosing its sense.
On the XL-WSD test sets for 17 target languages, the reported aggregate F-score rises from 61.98 for the paper’s dense, unmapped XLM-R comparison to 66.96 when language-specific encoders are aligned and the representations remain dense. With the same kind of encoder arrangement and sparse sense representations, the score reaches 68.47. These are the detailed results behind the abstract’s comparison of 62.0 and 68.5. The benchmark’s previously published XLMR-Large result is 65.66, a separate reference point. The highest aggregate belongs to the sparse language-specific system, while other configurations lead in some individual languages.
The comparisons also show where language specialization matters most. Across the target languages, using a language-specific encoder to read the test text helped more than using one solely to represent the English training examples. Sparsity contributed an additional improvement when both sides used language-specific encoders, and its advantage persisted across the range of settings the paper tested. The experiment still relies on bilingual resources for alignment and on target-language development results for choosing configurations. Its zero-shot claim concerns the transfer of sense supervision from English to the target-language test tasks. The paper releases replication code under the name sparsity_makes_sense.
Deep dive: Combating the Curse of Multilinguality in Cross-Lingual WSD by Aligning Sparse Contextualized Word Representations
Berend tests whether aligning language-specific word representations and making them sparse improves word sense disambiguation across languages. · about 33 minutes to read
The problem and its context
Moving sense supervision between languages
Word sense disambiguation begins with a word in a particular passage and an inventory of meanings that the system can assign to it. The inventory distinguishes senses that a surface form alone leaves open. A representation of the word occurrence can take the surrounding sentence into account, and a representation of a sense can summarize what previous examples of that meaning have in common. The practical task is to connect the two. If the labeled examples are in English and the word to be disambiguated is in another language, the representations also have to bridge that language boundary.
The paper frames the shortage of labeled examples as a knowledge acquisition bottleneck. To learn from examples of a particular meaning, a system needs text in which that meaning has been identified. Coverage matters as much as the existence of a corpus. The training examples must collectively represent the range of senses the system will encounter. In the cross-lingual setting, the same problem arises for every target language in which someone wants to use the system. Reusing a substantial English resource is attractive because the annotated examples already exist, and a cross-lingual inventory gives them labels that can be used in other languages.
A shared label inventory solves one part of the transfer problem. It tells the system that a sense identified in English can also be the answer to a target-language test item. The remaining problem is evidential. The system has to recognize when the context of a target word supports that sense. The paper’s approach uses word embeddings for this purpose. An embedding represents an occurrence as a vector, a list of numerical coordinates. In a contextualized representation, those coordinates depend on the sentence, so different occurrences of the same written word can carry different evidence about meaning.
Pretraining provides a way to obtain those vectors before collecting examples with sense labels. The paper credits earlier work with showing how contextualized representations could support disambiguation, and traces their initial use to work such as Deep Contextualized Word Representations. Later work used contextual word vectors to build sense representations from annotated examples. That supplied a natural transfer strategy. If the vectors for occurrences in one language can be compared with the vectors used to construct sense representations in another, the English annotations can serve the target-language task. Deep Contextualized Word Representations
A shared encoder or separate encoders
A multilingual encoder makes the comparison possible in a straightforward way. English and target-language sentences pass through the same pretrained system, and their internal vectors can be taken from the same layer. Researchers had already investigated cross-language transfer in systems such as multilingual BERT, including the work discussed in How Multilingual Is Multilingual BERT? and Beto, Bentz, Becas. The paper places these investigations in the broader effort to understand what multilingual encoders can transfer to languages for which task-specific supervision is scarce. How Multilingual Is Multilingual BERT? · Beto, Bentz, Becas
Cross-language reuse comes with a tradeoff that the paper calls the curse of multilinguality. A shared encoder trained across many languages can represent some languages more effectively than others. A language-specific encoder is built around the text of a particular language, or in the paper’s broad use of the term, a small group of related languages. Such encoders were already available for the languages in the evaluation. Their existence raised a question about multilingual and cross-lingual NLP. Could a system use a language-specific encoder to read each language well and still transfer a task learned from English?
The obstacle is that independently trained encoders organize their vectors separately. Two coordinates with the same index need not carry the same information, even when both encoders represent a pair of translated words. Comparing the vectors directly would assume a correspondence between their coordinate systems. The paper tests whether a learned transformation can supply that correspondence after pretraining. This makes the language-specific encoders interchangeable on the target side in a practical sense: each target language can have its own encoder and mapping while the English side supplies the sense representations.
The paper describes another approach to compatibility in which researchers started with a source-language encoder, fixed most of its parameters, and trained a replacement input embedding layer for a target language. In that setup, the target language is incorporated into an encoder that started from the source. Berend instead learns a matrix connecting internal representations from encoders that already exist. The distinction matters for the resources the method needs. The replacement-embedding approach performs masked language training on the target-language input layer. Berend’s alignment fits the mapping from paired word occurrences and can start with encoders that were trained separately. On the Cross-lingual Transferability of Monolingual Representations
Earlier mapping work provided a reason to try this. Linear alignment had already been used with static word vectors, which associate a representation with a word independently of its current sentence. Other researchers had shown that independently trained contextual encoders could be aligned for tasks such as named entity recognition and syntactic parsing. The paper also discusses work on linear transformations for cross-language dependency parsing. Those precedents established a way to connect representations. The open question here was how that connection would serve a task in which two occurrences of the same word can require different semantic labels. Exploiting Similarities among Languages for Machine Translation · Emerging Cross-lingual Structure in Pretrained Language Models
The closest multilingual disambiguation work discussed in the paper transferred contextual sense representations with XLM. Its target languages were German, Spanish, French, and Italian. Berend broadens the test to 17 target languages and varies which encoder handles English and which one handles the target text. This design lets the paper examine transfer across a wider range of languages and ask whether the two sides benefit equally from replacing the shared encoder.
Why introduce sparse representations
A dense word vector can be used to construct a sense prototype by averaging the vectors of annotated occurrences. At test time, the system compares the new occurrence with these prototypes. This uses the geometry of the dense space directly. The paper also investigates a different way to turn English annotations into evidence about a sense. It first describes an occurrence through the small subset of learned vector components that are active for it. It then measures how strongly particular components are associated with particular senses.
The motivation comes from earlier work connecting sparse representations with semantic distinctions. Berend had already used dictionary learning to investigate this idea for English disambiguation. In that work, the activity of a coordinate could be compared with the labels attached to occurrences in the annotated English corpus. The cross-lingual question is whether a target-language occurrence can be assigned coordinates with the same meaning for the classifier. If English and the target language were each described by a separate learned dictionary, a feature in one dictionary would have no established counterpart in the other. The present method maps the target vector into English space and uses the English dictionary for both.
The paper thus joins two lines of work with different purposes. Alignment makes a target occurrence comparable with English evidence. Sparse coding changes how that evidence is organized before the system makes a sense decision. The experimental design varies the encoder arrangement and the use of sparsity separately. That separation lets the paper ask whether representation alignment is already sufficient to improve the task and whether a sparse decision procedure adds anything in the aligned space.
The method, step by step
From bilingual sentences to a shared representation
The source language is English. Its annotated examples give the system a way to learn what the senses in the training inventory look like in context. A target language supplies the sentences to be disambiguated. The transformation always runs from target to source, even though the supervision is being transferred in the other direction. An English sense representation stays where it was built. At inference, the target word is moved into the space in which that representation can be used.
The alignment starts from translated sentences in the Tatoeba corpus, accessed through the Datasets library. A sentence and its translation provide a context on each side. A second resource, word2word, supplies lists of possible word translations. The paper checks whether a word in one sentence appears in the translation list of a word in the other and whether the reverse lookup also succeeds. If both checks pass, the corresponding occurrences become an anchor pair. The sentence pair establishes the setting in which the words appear. The lexicon supplies a candidate connection between those particular words. Parallel Data, Tools and Interfaces in OPUS · Datasets
In the paper’s German–English illustration, a glass is on a table. The two sentences can supply corresponding mentions of the glass and the table. The vectors used for alignment represent those mentions in their respective sentences. This makes the training evidence more specific than a bare dictionary entry for either noun. It also illustrates the role of the reciprocal check. The procedure considers the words found in the two sentences and consults both translation lists before treating an occurrence pair as an example for the mapping.
The selection rule can be written as follows.
wₜ ∈ TranslationOf(wₛ) and wₛ ∈ TranslationOf(wₜ)
Here wₜ is a word occurrence in the target sentence, and wₛ is a word occurrence in the corresponding English sentence. TranslationOf denotes lookup in the bilingual word lists for the appropriate direction. The symbol ∈ means membership in the returned list, and and means that both memberships are required. The two occurrences already come from the same translated sentence pair before this rule is applied.
This procedure uses sentence alignment and a translation lexicon. A sentence pair can yield several word pairs because several words may be listed as mutual translations. Conversely, a word can go unused if the lexicon fails to provide a reciprocal match among the words present. The paper treats the extracted pairs as semantically equivalent for fitting purposes. That is an operational decision about how to obtain training anchors. The corpus supplies the correspondence between whole sentences, while the lexicon supplies the clues for selecting words inside them.
Each sentence then passes through its designated encoder. The encoders are Transformers, and the alignment uses internal vectors from a chosen layer. Before encoding, subword tokenization can divide a word into smaller units. The encoder returns a vector for each unit at the chosen layer. When an anchor word spans several units, the paper averages their vectors to obtain a single representation of that occurrence. The calculation puts words split into several pieces and words kept intact into the same word-level alignment procedure. The same kind of representation can be constructed for the words given sense labels in the English training material.
From translated sentences to a target-language sense
The steps in order.
What the mapping learns
The basic alignment problem has an input vector and a desired vector for each anchor. The target encoder supplies the input. The English encoder supplies the desired location in the source space. Multiplying the input by a matrix yields a predicted English-space vector. The training objective asks for a matrix that puts the predicted vectors close to their English counterparts across the anchor collection.
min_W ∑ᵢ₌₁ⁿ ‖W xᵢ − yᵢ‖₂²
Here i indexes the anchor pairs, and n is the total number of pairs used to fit the mapping. The vector xᵢ represents the target occurrence, and yᵢ represents its English counterpart. W is the matrix being learned, so W xᵢ is the transformed target vector. The minus sign forms the vector of coordinate errors against yᵢ. The notation ‖ · ‖₂² gives the squared Euclidean length of that error, and ∑ adds the squared errors across the pairs. The expression min_W asks for the W that minimizes the total.
For contextualized encoders, the choice of layer defines which vectors enter this problem. The same word in the same sentence can be represented at several stages of processing. The paper lets the target and English representations come from independently chosen layers. This permits, for example, a target occurrence near the end of a smaller encoder to be aligned with an occurrence near the end of a deeper English encoder. The mapping is fitted to the actual pair of layers it will connect.
The paper evaluates an isometric version of the mapping. This version imposes a constraint that keeps the transformation from stretching distances in the input representation. The role of the constraint is to adapt the coordinate system while retaining the geometry of the target vectors under the transformation. This is particularly relevant to the dense branch, where inference later involves a comparison with sense prototypes, and it also determines the vectors handed to the sparse branch.
min_{W : WᵀW = I} ∑ᵢ₌₁ⁿ ‖W xᵢ⁽ˡᵗ⁾ − yᵢ⁽ˡˢ⁾‖₂²
Here W, i, n, and the squared Euclidean error retain their earlier meanings. The superscript ⁽ˡᵗ⁾ selects the target layer lₜ for xᵢ, and ⁽ˡˢ⁾ selects the English source layer lₛ for yᵢ. The superscript ᵀ transposes the matrix, and I is the identity matrix. The condition WᵀW = I makes the columns of W orthonormal. The minimization, shown by min, is confined to matrices meeting that condition. The sum ∑ is taken over the training anchors for this particular layer pairing.
The resulting problem is an instance of orthogonal Procrustes. It can be solved through a singular value decomposition of the cross-product of the stacked English and target representations. The cross-product summarizes how coordinates on one side vary with coordinates on the other across paired occurrences. The decomposition identifies directions that can be matched under the orthogonality constraint. With anchors stacked as columns in X and Y, consistent with applying W to a column vector, the solution can be written as follows.
Y Xᵀ = U Σ Vᵀ
Here X is the matrix whose columns are the target anchor vectors, and Y has the paired English anchor vectors as columns in the same order. The superscript ᵀ transposes the matrix to which it is attached. The factors U and V contain the left and right singular vectors of the cross-product, and Σ contains its singular values. The same cross-product is written with a different placement of the transpose when anchor vectors are stacked as rows.
W⊥ = U Vᵀ
Here W⊥ denotes the orthogonal solution in the column-vector convention, U and V are the factors just obtained, and ᵀ transposes V. When the paper writes the solution as the product of its two orthogonal factors, the second factor is understood in the orientation supplied by the decomposition. The fitted matrix is applied to future target vectors from the same layer used to construct the anchors.
The other mapping criterion tested is RCSLS. It comes from work on bilingual word retrieval and gives the study an alternative to fitting the orthogonally constrained squared-error objective. The distinction matters because the paper evaluates whether the transformed target vector retrieves its paired English occurrence. An alignment intended for retrieval can be compared directly with an alignment chosen by how well it reduces geometric error under a constraint. The experiments consider both alternatives when selecting the downstream disambiguation configurations. Loss in Translation
There is also a case in which the transformation can simply leave its input as it is. When XLM-R encodes both languages and the representations are taken from the same layer, the paper treats the identity matrix as a valid comparison. English and the target language then use the same numerical coordinates produced by the same encoder layer. Comparing this route with a fitted transformation tests whether a language-pair-specific adjustment is useful even when the encoder is already shared.
Learning the dictionary and encoding a target occurrence
The sparse branch adds a separate learning problem on the English side. The aim is to build a collection of vector components that can reconstruct many contextualized word vectors. This collection is called a dictionary. It is a matrix of learned directions in the English space. The bilingual word lists used to find training anchors play a different role. Those lists provide possible translations. The learned dictionary gives the system a set of components with which to describe contextual vectors.
For each English occurrence used in dictionary learning, the method tries to reconstruct its dense vector from a weighted combination of dictionary columns. The weights are the occurrence’s sparse code. The optimization balances faithful reconstruction against the cost of using those weights. A coordinate that contributes little to the reconstruction can be set to zero. Different occurrences can therefore use different subsets of the same collection of components, which makes it possible to count how frequently a component is active for a given sense.
The training objective for the dictionary and English codes is as follows.
min_{D ∈ C, αᵢ ∈ ℝᵏ, αᵢ ≥ 0} ∑ᵢ₌₁ᴺ [½‖yᵢ − Dαᵢ‖₂² + λ‖αᵢ‖₁]
Here N is the number of English word vectors used in dictionary learning, and i indexes those vectors. Each yᵢ is a d-dimensional English contextual vector. D is the dictionary matrix, with d rows to match the vector dimension and k columns to supply the components. C is the convex constraint set for D, with each column’s norm at most 1. The vector αᵢ contains k real coefficients, as denoted by ℝᵏ. The inequality αᵢ ≥ 0 applies to every coefficient, and ∈ indicates membership in the specified set. The product Dαᵢ is the reconstruction of yᵢ. The first term inside the brackets is half the squared Euclidean reconstruction error. The notation ‖αᵢ‖₁ means the sum of the absolute coefficient values, and λ sets the cost of that term. The symbol ∑ adds these costs over the English occurrences. The minimization chooses both D and the codes.
The constraints are part of what makes the optimization have the intended interpretation. The dictionary columns have bounded size, so the coefficient penalty cannot be made arbitrarily cheap merely by rescaling the columns upward and the coefficients downward. Non-negative coefficients mean that an active component contributes with a positive weight. The penalty encourages small or zero weights, while the reconstruction term rewards retaining components that help explain the occurrence. The dictionary is learned from contextual vectors, and sense labels enter later when the method measures associations between active coordinates and meanings.
Berend uses SPAMS to learn the dictionary and sparse coefficients. The dictionary has k = 3000 components, and the regularization coefficient is λ = 0.05. Both settings carry over from the preceding English disambiguation work. The mapping and the dictionary therefore learn different things from different material. The bilingual anchors supply the relation between encoders. The English contextual vectors supply the collection of components used to express occurrences in the source space.
For a target occurrence, the encoder first produces xᵢ. The fitted alignment maps it into English space. After that, the dictionary is fixed and the only variables are the coefficients of the new occurrence. The procedure asks which English-space components can reconstruct the mapped vector at an acceptable cost.
min_{αᵢ ∈ ℝᵏ, αᵢ ≥ 0} ½‖W xᵢ − Dαᵢ‖₂² + λ‖αᵢ‖₁
Here i indexes the target occurrence being encoded, and xᵢ is its contextual representation in the target encoder’s space. W is the fixed target-to-English mapping, so W xᵢ is its image in the English space. D is the dictionary learned on the English side. The vector αᵢ has k real coefficients that must be non-negative. The first term gives half the squared Euclidean distance from the mapped vector to its reconstruction. The second charges λ times the sum of the absolute coefficients. The minimization chooses αᵢ for this occurrence. The dictionary, the mapping, and the regularization setting are already supplied.
An active coordinate in the target code now refers to the same dictionary column as that coordinate in an English code. Sharing the dictionary is what makes the associations learned from annotated English usable at inference. The target sentence can produce a new combination of components, and the resulting coordinates have a fixed relationship to the ones on which the sense-scoring procedure was trained. A new target encoder requires a mapping to the chosen English space, while the dictionary can remain on the source side of that mapping.
Turning the English annotations into sense scores
The sparse code describes an occurrence. The next stage associates that description with the sense labels. In the annotated English corpus, each labeled occurrence contributes to weighted co-occurrence statistics connecting its sense with the coordinates active in its code. Aggregating these statistics asks which coordinates tend to be active for which senses throughout the labeled material. A component can occur for many senses, so its presence alone may carry little evidence for any particular label.
The method turns the co-occurrence statistics into pointwise mutual information scores, abbreviated PMI. The idea is to measure how strongly the activity of a coordinate and a sense label go together relative to their individual frequencies. The resulting matrix, Φ, gives each sense a row of associations with the dictionary coordinates. The paper also tests a normalized form of PMI. For the main sparse results, it uses development performance to decide for each target language whether to use normalization.
At prediction time, the system combines the English association scores with the active coefficients of the target occurrence. Each sense receives a score from its row of Φ. A coordinate with zero weight makes no contribution to the score, and the weights of the active coordinates determine how much of their associated evidence enters the decision.
arg maxₛ (Φ αᵀ)ₛ
Here s indexes a sense in the inventory represented in Φ, the matrix of PMI associations between senses and sparse coordinates. The code α is written as a row vector in this expression, and ᵀ turns it into a column for multiplication. The product Φ αᵀ gives a score for each sense, and the subscript s selects one entry of that score vector. The operator arg max returns the sense index at which the score is highest. English annotations supply Φ, while the target sentence supplies α after mapping and sparse coding.
The dense branch dispenses with the learned dictionary and the PMI matrix. It groups the English training occurrences by their sense labels and averages the contextual vectors in each group. Each average is a centroid that serves as the sense representation. At inference, the dense vector of the target word, transformed where the configuration calls for a mapping, is compared with those centroids by nearest-neighbor search. The two branches share the aim of reusing English evidence but implement different rules for deciding how an occurrence supports a sense. The dense version uses resemblance to an average contextual vector. The sparse version combines associations with active dictionary coordinates.
Experiments and results
Encoders, data, and evaluation
XL-WSD supplies the English sense-annotated material and the target-language disambiguation tasks. The English corpus combines SemCor with WordNet definitions and example sentences. The benchmark uses BabelNet to supply a common sense inventory across languages. The target evaluation covers 17 languages, including Basque, Japanese, Estonian, and Bulgarian. The authors of XL-WSD also released machine-translated training corpora with automatically obtained annotations. Berend describes the benchmark’s earlier comparison of that route with multilingual zero-shot transfer as motivation for keeping the new study focused on English sense supervision.
The shared encoder is the 24-layer XLM-R. The English-specific encoder is cased BERT-large, also with 24 layers. The selected language-specific encoders for the other languages have 12 layers and 768-dimensional hidden representations. They include BERTje on the Dutch side and CamemBERT on the French side. Some entries in the selection cover a small group of related languages, consistent with the paper’s use of “language-specific.” The encoders were obtained from the Transformers library. Unsupervised Cross-lingual Representation Learning at Scale · BERT · BERTje · CamemBERT · Transformers
The alignment data and the disambiguation data have different jobs. Tatoeba sentence pairs and the bilingual word lists supply anchors for the mapping. The English XL-WSD annotation supplies senses for constructing dense centroids or sparse association scores. Held-out Tatoeba anchors test the mapping as a retrieval procedure. The XL-WSD target-language tests measure the performance of the complete sense decision. Hyper-parameters for the reported disambiguation configurations were chosen using the development set of each language.
The anchor counts differ considerably across language pairs. For German and English, the corpus includes 299,769 sentence pairs, and the paper reports 20,000 extracted occurrence pairs for mapping training and 5,000 for retrieval testing. For Croatian and English, it reports 2,420 sentence pairs, with 1,946 extracted occurrence pairs for training and 487 for testing. French has 262,078 sentence pairs, while Japanese has 204,893. Both use 20,000 occurrence pairs for mapping training and 5,000 for retrieval testing. Sentence totals measure the available parallel sentences, while the split counts concern extracted pairs of word occurrences. A single sentence pair can supply several anchors.
Retrieval is evaluated using accuracy@1 on the held-out anchor pairs. The question for each item is whether the expected English occurrence is ranked first for the target-language occurrence. The test therefore checks the correspondence of contextual vectors before the system has to predict any sense label. Across the encoder combinations the paper compares in its retrieval figure, using language-specific encoders on both sides gives the strongest overall result. In disambiguation, the metric is F-score, and the aggregate across target languages is described in the paper as micro-averaged. The retrieval and disambiguation results concern distinct decisions. The former asks whether a translated contextual occurrence can be found. The latter asks whether the transferred English sense evidence yields the correct inventory label.
What the encoder comparisons mean
The paper writes each fitted configuration with the target encoder on the left and the English encoder on the right. In mono→mono, language-specific encoders handle both sides. In mono→multi, a language-specific encoder handles the target, and XLM-R supplies the English space. In multi→mono, XLM-R reads the target text, and English BERT provides the source space. In multi→multi, XLM-R provides both sets of representations, with a fitted mapping between them. The shorter label multi identifies the same-layer XLM-R comparison using the identity mapping.
This arrangement distinguishes the value of the encoder that supplies the English sense evidence from the value of the encoder that represents the word to be classified. With language-specific encoding on the target side, the system can use a representation tailored to the language of the test sentence. With language-specific encoding solely on the English side, the sense representations are constructed in an English-specific space, but the test word still begins as an XLM-R vector. A source space and its trained sense representations can remain fixed while the paper varies how it obtains the vector to map into that space.
Development selection considers the final four layers of each encoder. The paper follows earlier work that gave it reason to focus on late layers for semantic tasks. In the identity comparison, the same layer must be used for English and the target language. In the fitted comparisons, the source and target layers can be chosen independently. The alignment criterion can also vary, and the sparse branch has the additional PMI-normalization choice. Each reported configuration thus refers to a class of runs under the encoder arrangement, with the final settings selected for the corresponding language. BERT Rediscovers the Classical NLP Pipeline
English disambiguation as a reference point
Before transferring to other languages, the paper evaluates dense and sparse disambiguation within English. It trains the sense representations on English material and evaluates on English XL-WSD. Both cased BERT-large and XLM-R supply representations from layers 21 through 24. This comparison addresses a simpler question than cross-lingual transfer. It shows how the choice of encoder and sense representation behaves when training and test sentences are both English and no target-to-English alignment is required.
With dense representations, the best English F-score for BERT is 74.87 at layer 22. XLM-R’s highest English dense result is 69.29 at layer 21. With sparse representations, BERT reaches 77.86 at layer 23, and XLM-R reaches 74.51 at layer 21. The English-specific encoder leads in the comparison, and both encoders produce higher results with the sparse procedure at the late layers studied. At layer 24, the sparse scores are 76.21 for BERT and 70.06 for XLM-R. The last layer is therefore a consequential choice even in a setting without cross-lingual alignment.
English XL-WSD test F-score at layer 23
The sparse procedure improves the result for both encoders, and English BERT with sparsity gives the highest score.
The numbers
| System or setting | F-score |
|---|---|
| XLM-R dense | 67.48 |
| XLM-R sparse | 74.26 |
| English BERT dense | 74.45 |
| English BERT sparse (this paper) | 77.86 |
The English results also help explain why the paper treats source encoder quality and transfer quality separately. English BERT provides stronger English disambiguation results, but moving to that encoder on the source side of a cross-lingual system also changes the space into which target vectors must be mapped. The English-only result gives a reason to try the substitution. The target-language test measures whether the benefit survives that extra step.
The target-language benchmark
The published XL-WSD baselines include a most-common-sense rule, which has an aggregate target-language test F-score of 49.13. Babelfy scores 52.85, and SyntagRank scores 57.68. EWISER reaches 62.16. Among the published multilingual encoder baselines, MBERT scores 62.84, XLMR-Base scores 64.82, and XLMR-Large scores 65.66. These figures establish a benchmark comparison independent of the configurations Berend runs within the paper.
The paper’s own dense, unmapped XLM-R system scores 61.98 on the aggregate target-language test. Its dense multi→multi configuration scores 63.71, showing that a fitted map can improve this shared-encoder route. With dense vectors, using English BERT alone gives 63.30 in multi→mono. Using language-specific encoders on the target side alone gives 65.57 in mono→multi. The dense mono→mono configuration reaches 66.96. Taken together, these comparisons indicate that the target-side choice accounts for much of the value of specializing the representation, while the best dense aggregate uses specialization on both sides.
The sparse multi configuration scores 66.04 on the target-language test aggregate. With a fitted map connecting XLM-R representations, the score is 66.15. Sparse multi→mono scores 65.82, and sparse mono→multi reaches 66.79. The strongest aggregate, 68.47, comes from the sparse mono→mono system. The paper’s abstract expresses the change from its dense identity comparison to this final configuration as a rise from 62.0 to 68.5. The comparison with the earlier published XLMR-Large baseline starts from its own reported score of 65.66. Keeping those starting points distinct is necessary to understand the size and meaning of the result.
Encoder specialization and sparsity on the XL-WSD target-language test aggregate
The highest aggregate comes from combining aligned language-specific encoders with sparse sense representations.
The numbers
| System or setting | F-score |
|---|---|
| Shared XLM-R, dense, identity | 61.98 |
| Shared XLM-R, sparse, identity | 66.04 |
| Language-specific encoders, aligned dense | 66.96 |
| Language-specific encoders, aligned sparse (this paper) | 68.47 |
Individual languages show how the aggregate is assembled. In Catalan, the paper’s dense identity F-score is 47.46, the dense language-specific result is 53.31, and the sparse language-specific result is 57.47. The published XLMR-Large baseline for Catalan is 49.97. In Basque, the corresponding scores for the paper’s configurations are 42.53, 51.08, and 51.71, with 47.15 for the published XLMR-Large baseline. In Japanese, the sparse language-specific configuration reaches 67.47, compared with 65.26 for the dense version of that arrangement and 61.87 for the published XLMR-Large result. These languages show how encoder specialization and sparsity can each contribute, with a different balance in each case.
Other languages qualify the same pattern. In French, sparse mono→mono scores 83.10, sparse multi→multi scores 83.79, and the published XLMR-Large baseline scores 83.88. For Italian, the sparse language-specific system scores 76.12, while sparse multi→mono reaches 77.48 and the published XLMR-Large baseline reaches 77.66. In Galician, sparse mono→mono scores 63.92, and sparse identity XLM-R gets 64.47. The published MBERT result for Galician is 68.07. The best aggregate is thus compatible with a range of different local rankings. Which arrangement leads can depend on the language, the available encoder, and the way the sense evidence is represented.
The encoder choice also changes what must run on the target side. The target-specific encoders have 12 layers, while the XLM-R system used by the paper has 24. Berend points to this difference as an inference efficiency advantage of the target-specific arrangements. Their prediction path still includes alignment and, for the sparse version, sparse coding. The paper characterizes the advantage through encoder depth, while its reported task comparison is based on F-score.
What the ablations show
Where a fitted mapping helps
The identity comparison is especially informative because it can be used with the same multilingual encoder that supplies both sides of a fitted mapping. In the dense experiments, the aggregate rises from 61.98 for multi to 63.71 for multi→multi. In the sparse experiments, the corresponding scores are 66.04 and 66.15. This is consistent with the dense procedure benefiting more from an explicit language-pair adjustment when the encoder is already shared. The sparse procedure with a common encoder is already strong under the identity arrangement, and the additional improvement from the fitted configuration is small in the aggregate.
This comparison also involves the freedom to select layers. The identity route uses vectors from a common layer. The fitted route can use a different layer for each side and can choose between fitting criteria. The result is best read as the value of the fitted configuration as a whole. It suggests that a mapping can be worthwhile even when the encoder is multilingual, especially for dense sense vectors. The design gives the fitted route more than one way to find a better correspondence.
Switching only one side at a time addresses a different question. The dense aggregate of 65.57 for mono→multi is higher than 63.30 for multi→mono. The same ordering holds for the sparse versions, at 66.79 and 65.82 respectively. In both comparisons, the system that uses a target-specific encoder has the stronger aggregate. That is evidence that improving the representation of the sentence undergoing disambiguation can be more valuable than changing where the English sense representations are built. Moving both sides to language-specific encoders gives the strongest aggregate within each representation family.
Berend also uses multi→mono to simulate a situation where English BERT is available but a suitable language-specific target encoder is unavailable. The dense implementation improves over the dense identity route. In the sparse implementation, the English-specific source gives a slightly lower aggregate than shared XLM-R with identity alignment, a difference the paper describes as statistically insignificant. A fitted multi→multi arrangement produces similar or slightly better aggregates than multi→mono. In this simulation, specializing English offers some benefit for dense vectors, while the larger advantage of the full approach depends on having an encoder adapted to the language of the target sentence.
How much depends on normalization
Normalized PMI changes the association scores used to represent senses. Because the sparse method builds each sense out of associations with active dictionary components, this choice can alter which components contribute most strongly to a decision. The paper makes the choice optional by language in its main configuration. It then repeats the comparison with normalization required across languages and with normalization excluded across languages. This checks whether the sparse result depends on having an extra setting available during development selection.
For sparse mono→mono, always normalizing gives an aggregate test F-score of 67.69. Running with unnormalized PMI gives 67.96. Allowing development-set selection yields 68.47. The sparse arrangement with language-specific encoders retains the highest aggregate among the encoder arrangements under each of these policies. It also stays above the corresponding dense aggregate of 66.96 with either fixed policy. The choice can improve the selected system, while the advantage in this benchmark extends beyond that choice.
PMI normalization in sparse language-specific encoders on the XL-WSD test aggregate
Development-set selection gives the highest aggregate, and both fixed policies preserve the sparse configuration’s lead over its dense counterpart.
The numbers
| System or setting | F-score |
|---|---|
| Always normalize PMI | 67.69 |
| Use unnormalized PMI | 67.96 |
| Choose by language on development data (this paper) | 68.47 |
The mean pattern hides changes in direction between languages. For sparse mono→mono in Catalan, always normalizing gives 54.90, and using unnormalized PMI gives 57.47. For that same configuration in Spanish, always normalizing gives 76.12, while unnormalized PMI gives 72.29. In French, the corresponding values are 83.10 and 81.38. The paper’s development procedure gives a way to account for this variation. The fixed-policy results show that the stronger aggregate for language-specific sparse transfer is visible under either global decision.
The normalization diagnostic also addresses the difference in the size of the search. A dense fitted arrangement has 32 runs for a language, from 16 layer combinations and the two mapping criteria. The corresponding sparse arrangement has 64, because it also varies normalization. For the identity comparison, the paper describes runs based on the 4 eligible shared layers. If the sparse gain came mainly from the larger search, fixing the normalization policy would be expected to undermine the advantage more strongly. The paper’s fixed-policy comparison keeps the main ordering intact.
Whether the improvement survives other settings
The paper examines the distribution of results across the search instead of relying solely on the development-selected entries. The sparse mono→mono arrangement has the strongest average performance across configurations. An unpaired t-test reports p < 0.005 for its average-performance comparison with the other arrangements. The paper uses the unpaired comparison because the arrangements have different numbers of runs. This analysis concerns variation across the layers, fitting criteria, and representation settings under study.
A complementary figure compares dense and sparse mono→mono runs under matching settings where the two configurations can be matched. The horizontal coordinate is the dense result, and the vertical coordinate is the sparse result. A point above the equal-score diagonal corresponds to a setting in which the sparse system does better. This comparison connects the sparse advantage to equivalent choices of encoder layers and mapping criterion. It gives a view of how often the change in the representation and scoring procedure helps while those choices are held fixed.
The paper also uses McNemar’s test to compare the predictions produced by configurations that use non-identity mappings. This is a comparison of output disagreements. The paper reports that among 82 comparisons, the significance criterion of p < 0.0007 was met with four exceptions. Two exceptions are comparisons of multi→multi with multi→mono, one in the dense branch and one in the sparse branch. The other exceptions compare sparse mono→multi with dense mono→mono, and sparse multi→mono with dense mono→multi. The test adds evidence about distinguishable prediction behavior. The direction and practical size of a change still come from the corresponding F-scores.
What tokenization and masked prediction add to the explanation
The appendix looks at two properties of the encoders to investigate why some representations may be easier to use. The first is how the tokenizer handles words. Fertility measures the average number of subtokens produced per token. The multi-token ratio measures the fraction of tokens split into several pieces. In the paper’s comparison, the language-specific encoders are generally better adapted by these measures. A possible connection to disambiguation is that averaging vectors from fewer pieces changes how a word-level representation is assembled. The encoder comparison varies other properties at the same time, so the appendix treats tokenization as a possible contributor. How Good Is Your Tokenizer?
The second diagnostic is masked language modeling loss on XL-WSD. This objective checks how well an encoder predicts text that has been masked. Some language-specific encoders, including those used for Bulgarian and Basque, have problematic losses in this comparison and can still be used for mapping-based disambiguation. For English, XLM-R outperforms cased BERT-large on the masked prediction diagnostic, while BERT gives better English disambiguation results. The appendix therefore gives examples in which the encoder ordering depends on the task used to assess it. The representation can contain useful evidence for distinguishing senses even when the masked prediction diagnostic gives a different ranking.
Limitations
Limits identified in the paper
The authors identify the availability of language-specific encoders as a constraint. The languages in XL-WSD allow the full comparison because a suitable encoder can be selected for each. For languages with no dedicated encoder, the paper investigates a fallback by running the same benchmark using XLM-R on the target side. This establishes what happens when the language-specific option is withheld for the languages studied. Evidence for languages that lack an encoder in practice would depend on the quality of the multilingual representations and bilingual resources available for those languages.
The paper also acknowledges that the method for extracting contextual anchor pairs can be changed. Its procedure uses sentence translations and a reciprocal bilingual lexicon check, sidestepping the need for explicit word alignments. The authors regard other ways of aligning words in context as a possible extension. This matters because the fitted transformation can only learn from the correspondences it receives. The results support the use of the paper’s anchor rule in the tested setting. They leave open how changing the rule would affect retrieval and disambiguation, especially for pairs with less parallel material or incomplete translation lists.
The paper uses “monolingual” for encoders trained for one language or a handful of related languages. This is a useful description of the specialization contrast the experiments investigate, and it sets the scope of the conclusion. The evidence concerns the encoders chosen for particular languages against the shared XLM-R comparison. A claim about strict single-language pretraining would require an encoder selection and comparison designed specifically around that distinction.
Limits of the experimental design
Zero-shot transfer here is about the origin of the sense supervision used to construct the classifier. English annotations create the sense representations. The mapping still uses bilingual sentence pairs and word translation lists, and target-language development performance guides the choice of layers, fitting criterion, and normalization policy. The reported test scores therefore measure transfer under access to those resources and that selection procedure. A deployment with neither target-language sense annotations for development nor usable alignment resources would pose a different experimental question.
The findings also depend on the available direction of transfer. English supplies the sense evidence throughout the cross-lingual evaluation, and the target tasks share the BabelNet inventory with it. This yields a controlled benchmark for reading several target languages with a common source of supervision. The comparison leaves the behavior of the method with other source languages open. Its sense-scoring procedure also relies on associations or centroids built from the source inventory represented in the training data. The experiment measures prediction within that setup, where the required cross-language label correspondence is already supplied.
Encoder specialization bundles several changes. The target-specific and multilingual encoders differ in their tokenizers and in the depth used in the paper, and they come from different pretraining arrangements. The appendix’s tokenization and masked prediction diagnostics document some of those differences. They provide plausible explanations and counterexamples to simple rankings, while the downstream comparisons measure the joint effect of choosing the encoder. A causal estimate for tokenization alone, or a general claim about the importance of encoder depth, would require comparisons that vary those factors separately. Likewise, the depth difference supports the paper’s resource argument at the encoder level, while end-to-end computation also includes a fitted mapping and the selected sense-scoring procedure.
The sparse branch changes both the representation and the decision rule. Its scores come from a dictionary code and PMI-based sense associations. The dense branch uses centroids and nearest-neighbor search. The controlled comparisons show that the sparse procedure as implemented improves the aggregate, including under matched alignment settings and fixed normalization choices. They leave open how much of that improvement comes from sparse features themselves and how much comes from the way the system constructs and scores sense representations using those features.
Finally, the range of observed language results matters when interpreting the headline. The full sparse language-specific arrangement leads in the aggregate, and the analysis across runs shows that its advantage is visible across different settings. The benchmark also contains languages where a multilingual configuration or a previously published baseline scores higher. The evidence supports the method as an effective approach to English-based transfer across this collection of languages. The results for any particular language are best understood through its own encoder, alignment resources, and test scores.
What came after
There is no documented follow-up to trace here. The paper identifies its own open extension in the construction of contextual anchor pairs. Its reciprocal dictionary rule is one way to select corresponding occurrences from translated sentences. Trying another selection procedure would test whether the quality of those correspondences can improve the mapping and, in turn, the sense decisions made from transferred English supervision.
Cite
Cite as Gábor Berend. 2022. Combating the Curse of Multilinguality in Cross-Lingual WSD by Aligning Sparse Contextualized Word Representations. Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies.
@inproceedings{gabor2022combating,
title = {{Combating the Curse of Multilinguality in Cross-Lingual WSD by Aligning Sparse Contextualized Word Representations}},
author = {Gábor Berend},
booktitle = {Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies},
year = {2022},
doi = {10.18653/v1/2022.naacl-main.176},
url = {https://doi.org/10.18653/v1/2022.naacl-main.176}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/berend-2022-combating-curse-multilinguality-cross-lingual/