LinguAlchemy: Fusing Typological and Geographical Elements for Unseen Language Generalization
Paper · 2024 · Muhammad Farid Adilazuarda, Samuel Cahyawijaya, Genta Indra Winata et al.
Summary
What should a multilingual text system do when a request arrives in a language that was missing from its task training? Requiring fresh examples for every language makes coverage expensive, while choosing a language-specific component introduces another dependency: someone must correctly identify the incoming language. LinguAlchemy investigates a different route. It uses descriptions of languages to guide training, then performs the task without requiring a language label from the user. Its central question is whether knowledge about relationships among languages can improve transfer, especially for low-resource languages that ordinary multilingual training handles poorly.
The additional knowledge comes from URIEL and lang2vec, which express language properties numerically. LinguAlchemy selects syntax descriptions and geographical features. During task training, a learned projection must recover the relevant language description from the text representation. A separate task objective still teaches the required prediction. The linguistic objective acts as regularization: pressure intended to organize the representation in a way that remains useful outside the training languages. Though the paper introduces its approach using typological, geographical, and phylogenetic terminology, its selected inputs omit explicit family attributes and phonological properties. Family relationships can nonetheless enter indirectly through estimated syntax values.
The experiments examine intent recognition with MASSIVE, news categorization with MasakhaNews, and meaning-relatedness judgments with SemRel2024. Both mBERT and XLM-R receive the additional objective. Several weak starting conditions improve substantially. In MASSIVE’s low-resource category, mBERT classification accuracy moves from 48.43 to 66.93. For XLM-R on MasakhaNews’s low-resource category, accuracy moves from 47.86 to 79.31. On the low-resource portion of SemRel, XLM-R’s Pearson correlation goes from 0.08 to 0.40. Some language-level tests concern languages absent during pretraining as well as task adaptation, giving the paper evidence beyond transfer to a language whose text was already familiar.
The benefit comes with an uneven redistribution of performance. MASSIVE’s high-resource category falls from 79.66 to 66.81 for mBERT and from 86.82 to 80.86 for XLM-R. Other categories and individual languages also show exceptions to the favorable trend. The authors observe that XLM-R’s language-level results become more similar, lifting some weak cases while lowering stronger ones. LinguAlchemy therefore demonstrates a potentially useful tradeoff between coverage and established accuracy. It does not establish that a linguistic auxiliary objective improves every language, task, or starting encoder.
The supporting analyses investigate feature selection, objective weights, expanding training families, unknown tokens, and language identification. Combining the selected syntax and geography features produces the highest reported feature-ablation scores, although nearby alternatives perform similarly. The automatic weighting variants, AlchemyScale and AlchemyTune, offer no consistent advantage over a fixed setting. Broader family exposure generally helps, but those experiments also change scripts and available training material. Interpretation is further constrained by discrepancies in the reporting: the mBERT scaling discussion conflicts with its comparison table, the language inventory is unclear, and parts of the limitations section do not match the experiments. These issues leave the main empirical pattern visible while making its exact reproduction less straightforward.
Interesting ideas
Teach with information unavailable during use. A training target can describe the environment surrounding an example without becoming a required input for future predictions. LinguAlchemy uses language properties in this way. The broader design applies when development data carries reliable domain, source, or structural information that an operating system cannot expect users to supply. What matters is whether that supervision improves the representation used by the actual task.
Audit dependencies across the whole pipeline. A language-specific predictor may perform well when its language identity is correct and fail when an earlier detector makes a mistake. Removing or testing that dependency changes what robustness means. The same reasoning applies to document routing, retrieval selection, and other systems whose final accuracy depends on an upstream categorization decision.
Describe unfamiliarity by training stage. Withholding task examples does not establish that the language itself was absent from earlier learning. The paper’s pretraining markers make this distinction concrete. Researchers evaluating new domains, entities, or document sources can similarly record exposure at each stage instead of assigning a single undifferentiated “unseen” label.
Keep gains and regressions visible together. The resource-category results show that broader usefulness may accompany damage to previously strong cases. Reporting only a favorable aggregate would obscure the decision a deployment actually faces. Grouped results are useful wherever a shared change affects populations, constructions, or difficulty levels differently.
Test the ingredients of structured supervision. A linguistic description can combine observations, estimates, and contextual signals. Their apparent coherence does not establish their individual contribution. Comparing feature bundles helps determine whether a complicated target earns its complexity, and preserving the origin of estimated values prevents an input audit from overstating independence between information sources.
Make automatic balancing earn its place. Adaptive weights add machinery, but the paper’s fixed setting remains competitive. This encourages a disciplined comparison between automatic adjustment and a well-chosen simple configuration. The lesson applies whenever optimization combines a primary task with reconstruction, consistency, structural, or other auxiliary objectives.
Separate representational resemblance from useful behavior. A projection can recover language properties, and a visualization can arrange related languages plausibly, without establishing better task predictions. LinguAlchemy follows its alignment analysis with downstream experiments. Keeping these observations distinct is valuable in interpretability, where an appealing internal pattern should be tested against the behavior it is supposed to explain.
Deep dive: LinguAlchemy: Fusing Typological and Geographical Elements for Unseen Language Generalization
How LinguAlchemy trains with syntax and geography, improves transfer to unfamiliar languages, and trades some established accuracy for wider coverage. · about 33 minutes to read
How Mova uses it
Mova’s documented core combines rules, statistical decisions, dependency structures, and explicit evidence. Its current direction favors logical and statistical mechanisms instead of replacing the native core with neural encoders. LinguAlchemy consequently offers both possible experiments and lessons for evaluating existing machinery. The status labels below are judgments against Mova’s documented scope; they do not record an implemented LinguAlchemy integration or a measured transfer of its results.
Idea: Supervise a learner with a structural description. Where: Section 3.3, Equation 1. Area: statistical learning. Mova: нове. A bounded experiment could ask a native statistical component to predict reviewed structural properties alongside its ordinary decision. The transferable principle is additional supervision, rather than the particular neural projection used by LinguAlchemy. Why Mova: it could test whether explicit linguistic knowledge improves learned choices while leaving the knowledge itself inspectable. A suitable native objective and any benefit remain unknown.
Idea: Distinguish teaching inputs from operating inputs. Where: Introduction and Section 3.3. Area: interface design. Mova: частково є (offline teaching and native assessment in docs/architecture.md). Mova already keeps teacher assistance outside its assessed answering path. A multilingual extension could apply the same clarity to language metadata, documenting whether a property merely shaped training or must accompany every request. This would prevent an experimental convenience from becoming an unnoticed requirement.
Idea: Audit every prerequisite to a final answer. Where: Introduction and Appendix C. Area: pipeline evaluation. Mova: частково є (bounded capability resolution and preserved failures in docs/hybrid-system.md). A future language-routing stage could retain its uncertainty and contribution to failure separately from parsing and reasoning. LinguAlchemy motivates checking whether a prerequisite helps the complete workflow, rather than evaluating only the component that follows it.
Idea: Maintain an exposure record across learning stages. Where: Section 5.1 and the pretraining annotations in Tables 5 and 6. Area: evaluation provenance. Mova: частково є (source fingerprints and separate teaching admission in tools/enrich/README.md). Mova could record whether an assessed construction appeared in parser training, rule development, dictionary evidence, or lessons. Those forms of familiarity are different. A language absent from the current course might still be represented elsewhere in the system.
Idea: Preserve subgroup outcomes when judging a shared change. Where: Table 2 and Section 5.4. Area: regression analysis. Mova: вже є (student regression gates and controlled assessment in docs/architecture.md). The paper reinforces the reason for those gates: a useful change can damage a previously reliable area. More detailed reports could retain outcomes by language and construction without treating an overall improvement as permission to discard losses.
Idea: Evaluate the contribution of each evidence bundle. Where: Table 1. Area: feature engineering. Mova: частково є (feature learners, rule comparisons, and the tagging diagnostics described in the application ledger). Native experiments could compare lexical constraints, grammatical observations, and contextual evidence before combining them. LinguAlchemy’s feature comparison supplies a methodological example, while the appropriate Mova bundles would depend on the particular parser or reader being studied.
Idea: Preserve how a linguistic property was obtained. Where: Section 3.1 and its feature footnote. Area: data provenance. Mova: частково є (versioned corpus evidence in tools/dictindex/README.md). If language descriptions enter Mova, each property could retain whether it was documented directly, aggregated, or predicted. Existing occurrence provenance is relevant infrastructure, but it does not establish a completed import mechanism for typological information.
Idea: Audit indirect information as well as named fields. Where: Section 3.1. Area: experimental controls. Mova: нове. An experiment excluding a family identifier could still use estimates constructed from family-related neighbors. Its record should distinguish those cases. Why Mova: an explicit information audit would stop a nominal feature exclusion from becoming an unsupported claim about independence. This is a proposed extension of source tracking, with no demonstrated effect yet.
Idea: Use geography to suggest investigations. Where: Section 3.1 and Table 1. Area: multilingual comparison. Mova: нове. Geographical descriptions could prioritize comparisons between constructions or dictionary evidence, while each resulting rule would still require linguistic support. Why Mova: this would turn a broad statistical association into a research aid without allowing location to count as a grammatical proof. The paper does not establish a native Mova use.
Idea: Store typological descriptions as attributed claims. Where: Section 3.1. Area: knowledge representation. Mova: нове. A language-property module could retain scope, source, and uncertainty rather than immediately compiling every description into an unconditional rule. Why Mova: this fits the intended role of Mova as a logical module, where a descriptive analogy should remain distinguishable from an admitted inference. Whether such a module is worthwhile requires a separate evaluation.
Idea: Compare internal correspondence with external usefulness. Where: Section 3.2 and Figure 2. Area: interpretation and measurement. Mova: частково є (typed observations and compatibility checks in docs/hybrid-system.md). A graph or parameter representation might agree with a linguistic description without improving the reader. Mova could keep those as separate recorded outcomes, requiring task evidence before interpreting a successful correspondence as behavioral progress.
Idea: Retain the fitting conditions of an observation. Where: Algorithm 1. Area: mathematical modeling. Mova: частково є (source-bound groupants and declared conformance domains in docs/hybrid-system.md). If a fitted transformation compares representations, its training material, target, and error could accompany the result. That would make exploratory correspondences reviewable without promoting a fitted relationship into equivalence between systems.
Idea: Identify the object represented by every vector. Where: Algorithm 1 and Section 3.3. Area: reproducibility. Mova: частково є (explicit observations and interface identities in recursive self-use). LinguAlchemy discusses token averaging in its alignment algorithm and CLS output in task training. Mova comparisons could state whether their object is a token, sentence, frame, or document graph. An interface name alone would then be insufficient to conceal a change of representational scope.
Idea: Compare adaptive settings with a competent fixed configuration. Where: Section 5.2 and Table 4. Area: optimization. Mova: частково є (bounded parameter exploration and journals in the documented self-play process). Before admitting a rule that changes weights automatically, Mova could measure it against a fixed development-selected setting. This would reveal whether adaptation improves final decisions or mainly removes configuration work.
Idea: Track the relative influence of competing objectives. Where: Equation 2 and Section 5.2. Area: statistics and optimization. Mova: частково є (tested parameter changes in docs/architecture.md). A future multi-objective learner could report both component scores and their applied weights. The purpose would be to detect when a convenient structural measure begins dominating the actual task. LinguAlchemy’s numerical weights do not establish appropriate settings for Mova.
Idea: Require task evidence before admitting structural improvement. Where: Sections 3.3 and 5.2. Area: validation. Mova: вже є (staging versus admission in tools/enrich/README.md, and regression-gated global extensions). A larger graph or better auxiliary score should remain an intermediate observation. LinguAlchemy’s weighting behavior supplies another reason to keep the intended task decisive when a seemingly sensible objective competes with it.
Idea: Test operation without supplied language identity. Where: Introduction and Appendix C. Area: robustness. Mova: нове. A future multilingual workflow could compare its behavior when the language is declared and when it must proceed without that declaration. Why Mova: this would measure a real interface dependency before claiming general multilingual operation. The present English core and configured deputy do not establish such coverage.
Idea: Separate routing errors from analysis errors. Where: Appendix C, Tables 12 and 13. Area: error attribution. Mova: частково є (failure classification in world/src/knowledge/retention/fastread.rs). The fast reader already distinguishes several causes of missed answers. A language-routing category could complement that framework if multilingual routing is added, so that an incorrect component selection is not blamed on a grammatical rule.
Idea: Hold out linguistic groups. Where: Section 5.3 and Table 7. Area: evaluation design. Mova: нове. A future multilingual experiment could reserve a related group of languages or constructions from development rather than withholding only individual examples. Why Mova: this would probe whether a proposed shared mechanism survives beyond closely represented cases. The holdout would need an explicit account of information still available through dictionaries and compiled knowledge.
Idea: Vary diversity independently of available material. Where: Section 5.3 and Appendix B. Area: causal analysis. Mova: частково є (negative controls and held-out gates in README.md). When investigating language diversity, Mova could compare training compositions while controlling the amount of material where feasible. The family experiment motivates this refinement because its cumulative groups alter several conditions together.
Idea: Record script familiarity separately from language familiarity. Where: Sections 5.1 and 5.3. Area: text representation. Mova: нове. Assessment records could identify whether relevant scripts and character patterns were present during development, independently of language labels. Why Mova: this would help locate failures before they are interpreted as shortcomings in syntax or inference. No script-based transfer benefit for Mova is established by LinguAlchemy.
Idea: Inspect representation coverage before explaining task failure. Where: Table 3 and Section 5.1. Area: tokenization diagnostics. Mova: частково є (native tokenization and fast-reader representation analysis). Mova could retain evidence about unsupported or misrepresented input next to task outcomes. The paper’s unknown-token figures belong to its own encoders; their reusable contribution is the diagnostic question, instead of a transferable estimate of Mova coverage.
Idea: Preserve a strong configuration when improvements are uneven. Where: Table 2 and Section 5.4. Area: deployment policy. Mova: частково є (domain coverage thresholds and regression checks in docs/architecture.md). A proposed multilingual change that benefits difficult cases could be compared with the established configuration on strong cases. Any policy selecting between them would need its own transparent criteria and evaluation; the paper supplies no validated selector.
Idea: State the conditions that make baselines comparable. Where: Section 5.1. Area: evaluation methodology. Mova: частково є (declared observation scope and CPU/GPU conformance distinctions). A comparison record could include prior task exposure, required metadata, and adaptation resources. This would make clear whether a competing system answers the same operational question, instead of allowing superficially similar scores to imply identical conditions.
Idea: Retain conflicting reports as unresolved evidence. Where: Section 5.2, Table 4, and Appendix A. Area: scientific data handling. Mova: частково є (source/version tracking in tools/sources/README.md and explicit gaps in the knowledge pipeline). A research record could preserve each conflicting value with its location instead of silently selecting a preferred reading. This is particularly useful when the disputed value concerns a recommended configuration.
Idea: Keep sentence co-occurrence weaker than semantic equivalence. Where: the shared-representation hypothesis in the Introduction. Area: dictionary research. Mova: вже є (counterpart observations in tools/dictindex/README.md are not word alignments or certified translations). Language similarity could organize evidence retrieval, but a dictionary meaning would still require its own witnesses and review. A useful shared representation cannot authorize a lexical equivalence on its own.
Idea: Evaluate primary-task distinctions within each language. Where: Section 3.3 and Equation 2. Area: representation analysis. Mova: нове. If a learner is encouraged toward a language-level description, an evaluation could check that it still distinguishes different constructions or meanings within that language. Why Mova: this would directly test whether structural supervision preserves the distinctions needed by a logical reader. The paper’s task regressions motivate this question but do not answer it for Mova.
Idea: Separate convenience, cost, and predictive quality. Where: Section 5.2. Area: experimental economy. Mova: частково є (bounded workflows, explicit budgets, and logged parameter experiments). Automatic tuning could reduce operator work even when its accuracy does not improve. Reports could state those outcomes separately, allowing a decision about whether extra machinery is justified without describing convenience as a measured gain in understanding.
The problem and its context
A multilingual task system has to generalize along more than one dimension. It must learn the task itself, such as recognizing an intention, and it must recognize how that task is expressed across languages. Having examples of a request in familiar languages does not ensure reliable handling of its expression elsewhere. The problem becomes harder when the new language has little text available for adaptation or was not represented during pretraining.
LinguAlchemy addresses this problem within multilingual NLP. The authors’ motivating setting does not assume that a request arrives with an accurate language label. This matters because some adaptation approaches organize processing around language-specific components. Their task performance can then depend on a preliminary decision about which component should be used.
The paper situates its proposal after advances associated with BERT, RoBERTa, and related pretrained approaches. In its account, broad pretraining creates substantial linguistic capabilities but leaves serious gaps in low-resource coverage. Structural variation, limited data, and representational constraints remain obstacles even when an encoder supports many languages.
The distinction between language coverage and task coverage is central. A language can have contributed text to pretraining without contributing labeled examples to the later task. Successful transfer in that case uses some prior familiarity with the language. A language absent from both stages presents a stronger test. The paper highlights selected results of the latter kind, instead of treating every withheld task language as equally unfamiliar.
Earlier adaptation methods provide the immediate comparison. The authors describe MAD-X as using language adapters to introduce a language while limiting damage to previously learned knowledge. That design makes adaptation modular. However, adding languages still involves training work, and using a suitable module presupposes a way to choose it.
The paper also discusses approaches that generate language-dependent parameters from linguistic descriptions. MAD-G and UDapter represent this direction in its account. ZGUL uses multiple language adapters and linguistic vectors to construct representations for an unfamiliar language. These methods show that language properties can inform transfer, but LinguAlchemy’s authors argue that explicit language categorization remains embedded in their operation.
A wrong categorization can affect everything that follows. If language identity determines parameters or representations, language detection becomes part of the task pipeline even when it is evaluated separately. LinguAlchemy seeks a shared prediction path whose training benefits from language descriptions without requiring that selection step for each future input.
This aim explains why typology is attractive. Typological information describes properties that can recur across languages, making it potentially more informative than an arbitrary language identifier. The authors connect their proposal with Ponti and colleagues’ survey, which they cite for the underuse of linguistic variation in computational approaches. They also discuss earlier work using language vectors for transfer decisions, including Lin and colleagues’ transfer-language study.
The proposed novelty is specific: use language vectors as alignment targets while adapting an encoder to a downstream task. The vectors are not merely a tool for selecting training languages, and they do not choose a separate prediction module. They become part of the learning objective that shapes a shared representation.
Geography adds a different kind of description. It represents where a language is located rather than directly specifying its grammar. The authors’ hypothesis is that geographical and structural relationships can jointly support transfer. That is an empirical hypothesis about training usefulness, not a linguistic law saying that neighboring languages must behave alike.
There is also an inherent tension in the design. A language description is shared across many sentences, whereas the downstream task must distinguish those sentences. Requests in the same language may express different intentions; news articles may discuss different subjects. The auxiliary target cannot replace those distinctions. Its role must remain balanced with the task objective, making the loss-weight experiments part of the central argument.
The method, step by step
LinguAlchemy modifies task training by adding a prediction problem about the language of each training example. The encoder must still support the required task answer. Alongside that demand, a projection of its representation is encouraged to match a structured language description. The intended benefit is a representation organized around properties that can support transfer.
From training examples to language-independent task prediction
The steps in order.
Selecting language descriptions
The selected URIEL feature groups are syntax_knn, syntax_average, and geo. Syntax features summarize properties represented in typological resources. The paper names WALS, SSWL, and descriptive material from Ethnologue as sources behind these representations.
A syntax vector turns a collection of language properties into numerical coordinates. This makes descriptions usable as learning targets and allows different languages to be compared in a common space. The purpose is to expose recurring structure, rather than force the system to treat each language as an unrelated categorical name.
The selected syntax variants do not consist solely of direct observations. The authors describe aggregated information and values estimated using nearest neighbors. Their footnote indicates that geographical or phylogenetic relationships can inform those estimates. As a consequence, excluding an explicit family feature does not eliminate every possible contribution from family-related information.
The geography vector uses great-circle distances to fixed reference locations. Each coordinate expresses one such distance. The paper does not specify the dimensionality in its method description, so the mechanism should be understood without inventing a particular number of reference points.
These geographical coordinates supply a spatial description in a form compatible with numerical learning. Their interpretation remains different from a syntax feature: location is contextual evidence, whereas a grammatical property describes language structure. Combining them asks whether both can usefully constrain the representation.
Phonological features are omitted from the experiments. The authors motivate that decision through the textual nature of the tasks. Explicit family attributes are omitted as well, with the authors questioning their granularity for the distinctions they want to capture. The experimentally selected bundle is therefore narrower than some of the paper’s broad introductory descriptions.
Checking whether alignment is feasible
The preliminary analysis asks whether mBERT representations can predict URIEL descriptions through a learned linear transformation. This is a feasibility study for the alignment idea. If language properties could not be recovered in that way, using them as a task-training target would require a different justification.
Algorithm 1 begins by extracting the selected linguistic features. It then passes each sentence through an encoder, obtains the final hidden states, and constructs a sentence representation using a token count associated with the attention mask.
Rₓ = SUM(Hₓ) / Nₓ
Rₓ denotes the representation built for sentence x. Hₓ contains that sentence’s final hidden states, while SUM aggregates those states. Nₓ is the token count taken from the attention mask. The division yields the averaged representation used in the algorithm.
The attention mask identifies which positions should count as actual sentence material in this representation procedure. The paper names the count but does not fully elaborate every implementation detail of masking and summation. The important point is that this algorithm constructs a sentence-level object from token-level states.
The resulting sentence representations are collected as S. The method initializes a matrix W and bias b, then learns a mapping from S toward the extracted URIEL features.
Pᵁ = W × S + b
Pᵁ represents the predicted linguistic features. S is the collected sentence representation input, W supplies the trainable linear mapping, and b supplies its bias. The multiplication and addition produce coordinates that can be compared with the linguistic targets.
During the alignment loop, the transformation parameters are updated to reduce the disagreement between predicted features and URIEL features. After fitting, the same transformation generates the aligned representations collected in A. Algorithm 1 names the update operation but does not provide a detailed optimization constraint for it.
Figure 2 displays these relationships using UMAP. The authors report R² = 0.816 and interpret the arrangement as evidence that the representation captures linguistic and geographical relationships. They discuss the proximity of German and Dutch as a plausible example of related languages occupying nearby regions.
The visualization is useful as a diagnostic, but its evidential scope is limited. It shows the outcome of a fitted representation comparison and dimensionality reduction. It does not establish that every displayed separation corresponds to a particular grammatical property, nor does it substitute for a downstream task evaluation.
Adding a linguistic objective to task training
For the main training procedure, the prose describes taking the CLS-token output and passing it through a new trainable projection. CLS refers to the designated encoder output used here as a summary for prediction. The projection makes its dimensionality compatible with the target language vector.
This description differs from the token averaging in Algorithm 1. The algorithm accompanies the preliminary alignment analysis, while the CLS account explains task training. These may be separate representation choices for separate purposes, but the paper does not fully spell out the relationship. A reader should preserve the distinction rather than assume that both passages describe an identical implementation.
The auxiliary loss compares the projected representation with its associated URIEL target.
Lᵤᵣᵢₑₗ(Z, U) = (1 / N) Σᵢ₌₁ᴺ ‖Zᵢ − Uᵢ‖²
Lᵤᵣᵢₑₗ is the alignment loss. Z denotes the projected text representations and U the corresponding linguistic targets. The subscript i selects one data point; N is the number of points contributing to the expression. The summation combines their errors, and the squared norm penalizes coordinate-level disagreement.
The notation averages over data points. It does not specify a separate normalization by the number of feature coordinates. That matters because changing the construction or scale of the target can change the magnitude of the auxiliary objective.
Every training sentence receives the description associated with its language. The target therefore says something about the language, not the sentence’s particular intent or subject. Successful linguistic prediction alone would be insufficient for any of the downstream tasks.
The task loss supplies the complementary demand. It encourages distinctions needed for the labeled prediction, while the auxiliary loss encourages recoverability of the language description. The total objective combines them.
L = λ꜀ₗₛ × L꜀ₗₛ + λᵤᵣᵢₑₗ × Lᵤᵣᵢₑₗ(Z, U)
L is the total loss used for optimization. L꜀ₗₛ denotes the ordinary task objective, expressed as classification loss in the paper. λ꜀ₗₛ weights that objective. λᵤᵣᵢₑₗ weights the linguistic term, whose arguments retain the meanings defined above.
The equation presents the general balancing mechanism clearly. The treatment of every downstream prediction head is less detailed. In particular, semantic relatedness is evaluated with correlation, but the paper does not give an equally explicit derivation of its task-specific training objective.
Balancing the objectives
The authors observe that early task-loss values are approximately ten times the linguistic-loss values. Directly adding objectives with different magnitudes can give one much greater influence. A scaling coefficient is therefore a substantive part of the method.
The fixed-weight study varies the contribution of the linguistic objective. It includes settings labeled 10×, 25×, 50×, and 100×. Greater weight increases pressure to recover the language description, but it can also reduce the relative importance of the actual task.
The discussion additionally refers to 0× as “without scaling.” That terminology is ambiguous. A zero multiplier removes the auxiliary contribution, whereas an unmodified auxiliary term would remain present. The numerical setting and the verbal description should not be treated as interchangeable.
AlchemyScale adjusts weights from observed loss magnitudes. It initializes them relative to the mean starting losses and updates them using an exponential moving average. Such an average retains information from earlier observations while incorporating newer ones, avoiding a rule based exclusively on the current batch.
AlchemyTune instead places the weights among trainable parameters. It also introduces an additional mini_loss associated with deviation in the weights’ sum. The paper does not provide a complete expression for that penalty, leaving important details of its implementation unspecified.
These variants aim to reduce manual weight selection. Their purpose is practical, but predictive improvement remains a separate question. The experiments compare them with a fixed setting rather than assuming that adaptation must find the best compromise.
Training settings and inference requirements
The experiments use mBERT Base and XLM-R Base. The learning rate is 5×10⁻⁵, training lasts 30 epochs, and the authors report at most 5 hours for a run on an A100 GPU. These are stated conditions of the experiments, not guarantees about costs in other environments.
At inference, the user does not have to supply the language identity required to obtain a training target. This is the operational distinction LinguAlchemy emphasizes. Language information remains necessary while building the supervised training examples, but it is not a declared input to the final task prediction path.
The paper also claims compatibility without architectural modification. That claim needs a narrow reading because training plainly adds a projection layer. The practical point is that the approach does not require a different language-selected component for each request; it should not be read as saying that the training graph and objective are untouched.
Experiments and results
The evaluation covers categorical prediction and graded meaning judgments. MASSIVE supplies intent labels, MasakhaNews supplies news categories, and SemRel2024 supplies relatedness judgments. Accuracy is used for the classification tasks. Pearson correlation is used for relatedness, measuring how predictions and reference judgments vary together.
The distinction between metrics is essential. A negative correlation does not mean a negative proportion of correct classifications; it describes an unfavorable relationship between numerical predictions and reference values. Likewise, decimal entries in language-level accuracy tables should not be silently rewritten as percentages.
Evaluation data and language exposure
The MASSIVE experiment uses the intent task from FitzGerald and colleagues’ dataset. Its appendix describes 51 languages, 60 intentions, and 18 domains. LinguAlchemy states that 25 languages participate in adaptation and 27 are reserved as unfamiliar task languages. Adapter availability determines this partition because the authors want an adapter-based comparison.
The inventory is not fully reconciled across the paper. Its stated language counts do not form an unambiguous account of the dataset and split, and the appendix lists do not completely settle the matter. The evaluation principle is understandable, but reproducing the precise membership requires clarification.
For MasakhaNews, training includes amh, eng, fra, and hau. The remaining stated training languages are swa, orm, and som. Evaluation includes ibo, lin, lug, and pcm, followed by run, sna, tir, xho, and yor. This setup tests news categorization beyond the languages contributing task examples.
SemRel2024 uses a different configuration. Its training set includes amh, arq, ary, and eng; it additionally includes esp, hau, kin, mar, and tel. Evaluation contains both languages represented during training and languages withheld from it. The language-level unseen results therefore answer a narrower question than performance over the complete evaluation collection.
What the baselines measure
The principal comparison adapts the same encoder using only the ordinary task objective. It is then evaluated on languages without downstream training examples. This establishes the value of adding the linguistic objective within the reported transfer setup.
MASSIVE also includes AdapterFusion for mBERT. The authors explain that the necessary XLM-R language adapters were unavailable, so this comparison is not mirrored for that encoder. Adapter availability consequently shapes both experimental design and baseline coverage.
MAD-X is omitted from MasakhaNews because the authors distinguish its parameter-efficient regime from their full adaptation. They also exclude a direct comparison with LaBSE for SemRel, explaining that prior similarity-oriented training would change the zero-shot conditions. These decisions identify meaningful differences, but they also limit the range of demonstrated superiority.
Resource-category results
The low-resource MASSIVE results show a particularly large benefit for mBERT. XLM-R starts higher and improves more modestly.
MASSIVE low-resource languages, intent classification accuracy
Linguistic regularization helps both encoders, with a stronger change for mBERT.
The numbers
| System or setting | accuracy % |
|---|---|
| mBERT ordinary adaptation | 48.43 |
| mBERT LinguAlchemy (this paper) | 66.93 |
| XLM-R ordinary adaptation | 78.15 |
| XLM-R LinguAlchemy | 80.90 |
The other MASSIVE categories qualify that success. For the medium-resource group, mBERT reports 55.96 without the auxiliary objective and 64.42 with it. XLM-R reports 80.31 and 80.15 under the corresponding conditions. The extra training signal therefore does not produce a consistent positive change even within the same benchmark.
For MASSIVE’s high-resource group, the mBERT result changes from 79.66 to 66.81. XLM-R changes from 86.82 to 80.86. These are meaningful regressions in the reported conditions, and they contradict an unqualified reading of the introduction’s suggestion that established high-resource strength is retained.
MasakhaNews produces a more broadly favorable pattern. Its low-resource category improves for both encoders.
MasakhaNews low-resource languages, news categorization accuracy
The auxiliary linguistic target accompanies substantial improvements for both encoders.
The numbers
| System or setting | accuracy % |
|---|---|
| mBERT ordinary adaptation | 46.25 |
| mBERT LinguAlchemy (this paper) | 72.70 |
| XLM-R ordinary adaptation | 47.86 |
| XLM-R LinguAlchemy | 79.31 |
In the MasakhaNews medium-resource group, mBERT changes from 42.94 to 64.38, while XLM-R changes from 55.87 to 75.79. The high-resource group is mixed: mBERT records 77.89 and 73.74, whereas XLM-R records 68.14 and 73.79. The overall favorable news-transfer picture therefore still contains a regression.
SemRel shows why relative improvement and absolute quality need separate interpretation. In its low-resource category, mBERT’s correlation moves from -0.26 to -0.14. That is a better reported value, but it remains negative. XLM-R moves from 0.08 to 0.40, providing stronger evidence of useful relatedness prediction under that condition.
The medium-resource SemRel category gives mBERT correlations of 0.16 and 0.21. XLM-R instead changes from 0.49 to 0.37. In the high-resource category, mBERT changes from 0.02 to -0.03, while XLM-R changes from 0.26 to 0.41. Resource category alone consequently does not determine the sign of the outcome.
Concrete language-level comparisons
The MASSIVE language table makes some difficult transfer cases especially clear. For mBERT on Amharic, identified as am-ET, ordinary transfer has accuracy 0.05, while LinguAlchemy has 0.58. The corresponding Khmer entries, km-KH, are 0.08 and 0.60. Both languages carry the paper’s marker for absence from mBERT pretraining.
For Mongolian, mn-MN, the ordinary mBERT result is 0.27 and LinguAlchemy reports 0.57. The same pretraining-absence marker applies. These examples support the paper’s claim that its usefulness can extend beyond languages merely withheld from task adaptation.
Swahili, sw-KE, gives mBERT values of 0.20 and 0.55. XLM-R’s corresponding values are 0.58 and 0.75. Here the direction is favorable for both encoders, although their starting conditions differ.
The table also contains counterexamples. For Afrikaans, af-ZA, mBERT changes from 0.53 to 0.50. XLM-R on Khmer changes from 0.85 to 0.79. A language that benefits with one encoder can therefore regress with another, showing why the result cannot be described as an intrinsic language-level property of the method.
MasakhaNews has favorable unseen-language comparisons across its listed results. For Igbo, ibo, mBERT reports 0.47 under ordinary transfer and 0.74 with LinguAlchemy. XLM-R reports 0.48 and 0.81. For Luganda, lug, the mBERT entries are 0.21 and 0.71, while XLM-R has 0.24 and 0.78.
SemRel again shows encoder dependence. XLM-R on Afrikaans changes from -0.04 to 0.59 in Pearson correlation. Its Hindi result changes from -0.08 to 0.68. By contrast, mBERT on Hindi changes from -0.03 to -0.14. The favorable XLM-R comparison cannot be generalized to the other encoder.
Interpreting the overall pattern
The most defensible finding is that linguistic supervision can improve downstream transfer under several difficult conditions. The evidence goes beyond recovering language metadata: the primary task measurements themselves improve. The broad MasakhaNews gains and selected pretraining-unseen results make that contribution substantive.
The experiments also show that the auxiliary objective can redirect capability rather than improve it uniformly. MASSIVE’s stronger groups lose accuracy, some relatedness conditions regress, and results depend on the starting encoder. A decision to adopt the method therefore requires a view of which languages and tasks matter, together with checks on established performance.
What the ablations show
The paper examines the method through several complementary comparisons. Feature ablations test the linguistic target. Scaling experiments test its influence. Family experiments change the training population. Token and language-identification diagnostics investigate conditions around transfer. These analyses should not be treated as interchangeable explanations of the gains.
Syntax and geography contribute unevenly
For mBERT, geography alone produces accuracy 66.14 in Table 1. The syntax-average and nearest-neighbor syntax settings both produce 66.41. Combining those syntax variants without geography also produces 66.41. The complete selected bundle reaches 66.47.
The geography combinations are not uniformly better. Syntax averages with geography give 65.62, and nearest-neighbor syntax with geography gives 66.08. These results warn against interpreting “more linguistic information” as a guarantee of improvement. The effect depends on the bundle rather than merely its breadth.
For XLM-R, geography alone gives 80.16, while syntax averages give 80.76. Nearest-neighbor syntax gives 80.32. Combining the syntax variants yields 80.78, and including geography as well yields 80.80. The complete bundle is the highest reported setting, but some simpler alternatives are close.
The authors choose that complete bundle for subsequent experiments. The comparison supports this selection within the tested alternatives. It does not show that geography supplies a large independent benefit, and the table’s immediate presentation does not clearly identify its dataset and split. That limits how specifically its scores can be attributed.
Fixed weights and automatic adjustment
The fixed-weight analysis finds that increasing the linguistic contribution helps until the pressure becomes excessive. The discussion of Figure 3 reports the strongest mBERT value at 10×, giving 68.68%. Larger multipliers are described as worse. XLM-R is reported as less sensitive, with 80.32% at 10×.
Table 4 introduces an unresolved conflict. Its mBERT constant 10× entry is 64.68, rather than the 68.68% in the figure discussion. The paper does not explain a condition that would reconcile them. These should remain distinct reports instead of being merged into an invented corrected result.
The table’s own comparison is as follows.
Table 4 weighting comparison, reported classification accuracy
Automatic weighting has no consistent advantage over the constant setting.
The numbers
| System or setting | accuracy % |
|---|---|
| mBERT constant 10× (this paper) | 64.68 |
| mBERT AlchemyScale | 62.97 |
| mBERT AlchemyTune | 63.24 |
| XLM-R constant 10× | 80.32 |
| XLM-R AlchemyScale | 80.43 |
| XLM-R AlchemyTune | 79.10 |
Within this table, the constant setting is strongest for mBERT. AlchemyScale is strongest for XLM-R, while AlchemyTune is below the constant setting. The comparison therefore supports adaptive weighting as an option to investigate, instead of an established improvement.
The authors recommend 10× when computational resources are limited. Their recommendation reflects a practical tradeoff: a fixed setting avoids the complexity of further exploration while remaining competitive. It does not establish that the same weight is optimal for another task, target-vector construction, or encoder.
Expanding the training families
The family experiment uses cumulative groups. It begins with Indo-European languages, adds Dravidian languages, then adds Afro-Asiatic languages, and finally adds Sino-Tibetan languages. Families outside these groups provide continuing transfer tests.
Appendix B reports mBERT family-average accuracies of 65.54%, 67.07%, 71.04%, and 71.43% across the successive groups. XLM-R’s corresponding averages are 79.45%, 80.48%, 83.44%, and 83.62%. The general trend supports the usefulness of broader training exposure.
Individual families show a less uniform picture. For mBERT, Japonic has 72.11% initially and 71.98% in the next group. It later reaches 75.80% before recording 75.67% in the final group. XLM-R’s Atlantic-Congo result reaches 83.24% and then records 82.73%. Broader exposure does not produce monotonic improvement everywhere.
The authors emphasize the stage introducing Afro-Asiatic languages and their scripts. They interpret its improvement as evidence relevant to script generalization. However, this stage changes both linguistic composition and available task material. It does not separately manipulate script familiarity while holding the other conditions fixed.
The family-average rows also include families whose training status changes across stages. They therefore summarize the cumulative experiment, instead of providing a pure average over an unchanged collection of unseen conditions. The permanently withheld families are particularly important when assessing transfer beyond the expanding training set.
Unknown tokens
Table 3 records unknown-token rates rather than task outcomes. On MASSIVE, the reported percentages are 6.79 for am-ET, 3.81 for km-KH, and 0.35 for vi-VN. Other languages are reported below 0.1. These observations identify representational conditions accompanying the transfer results.
For SemRel, amh has 3.43, hau has 0.60, and ary has 0.44. In MasakhaNews, pcm has 0.43 and eng has 0.16. The table does not identify every implementation condition needed to assign each rate to a particular encoder with complete confidence.
The authors hypothesize that familiar scripts help and argue that unknown tokens have limited impact across much of their evaluation. Still, a token-frequency diagnostic does not establish that the linguistic objective reconstructs information lost by tokenization. They acknowledge that cases with high unknown-token rates may need changes elsewhere in the system.
Language identification
Appendix C examines the dependency motivating language-independent inference. Its MASSIVE language-identification comparison reports averages of 93.89 for LID-Fasttext, 89.57 for CLD3, 83.17 for CLD2, and 86.31 for langid. LangDetect’s reported average is 66.20.
Individual results reveal uneven coverage. For jv-ID, LID-Fasttext records 24.75, while CLD3 records 68.10. These figures make the practical concern concrete: a language detector can be much weaker for a particular language than its overall average suggests.
Table 13 reports 81.27 for MAD-X, 74.90 with FastText, and 73.47 with CLD3. However, the surrounding appendix discusses language identification while the table caption describes accuracy on MASSIVE. The relationship between detection accuracy and downstream task accuracy is insufficiently clear. The comparison motivates concern about routing, but it is not a fully specified causal decomposition of detection errors.
Limitations
What the authors acknowledge
The authors explicitly identify deterioration on familiar languages as a problem. They suggest that better transfer may come at the expense of established accuracy and mention weight freezing as a possible remedy. No experiment in the paper demonstrates that this remedy resolves the tradeoff.
They also call for further investigation of linguistic features. The selected descriptions have a theoretical motivation, but that does not establish their suitability for every task. The ablation explores combinations within the chosen feature set, rather than all potentially relevant kinds of linguistic information.
Unknown tokens are acknowledged as a separate obstacle. If text encoding loses a distinction, an auxiliary target does not automatically restore it. The authors suggest improvements to the underlying encoder or tokenizer as complementary directions where representation coverage is poor.
The limitations section also contains statements that do not align with the rest of the paper. It characterizes the research as restricted to intent classification, in spite of the reported news and relatedness evaluations. It mentions family features in discussing the choice of inputs, while Section 3.1 explicitly excludes family attributes. These inconsistencies should qualify how that section is read.
What the design leaves unresolved
The experiments do not supply a reliable decision rule for predicting who will benefit. Weak starting performance often accompanies gains, but individual languages and encoder comparisons contain exceptions. A deployment cannot infer the correct training strategy solely from a broad resource label.
The resource categories themselves are insufficiently explained for a complete independent reconstruction. Their results are informative as reported groups, but the paper does not clearly establish every grouping boundary or the reasons a language receives a category. This limits causal claims about resource level.
The main result tables do not provide repeated-seed distributions, confidence intervals, or explicit significance tests. Though the paper uses significance language and Figure 4 displays shaded variation, that does not quantify uncertainty for every central comparison. The numerical results should be read as reported outcomes, with repeatability across training runs left incompletely characterized.
The family experiment changes several factors together. Additional families introduce different scripts, more languages, and additional task examples. As a result, it cannot identify diversity as the sole cause of improvement. Nor does it establish that increasing training material within any arbitrary family would reproduce the pattern.
There is no direct demonstration of the mechanism responsible for the regressions. A language-level target may compete with sentence-level distinctions, and the weighting results make that concern plausible. However, the paper does not isolate that explanation through a dedicated analysis of which semantic or grammatical distinctions disappear.
The alignment study is also weaker than a behavioral proof. A learned projection and UMAP display can make relationships visible, but the paper does not clearly specify a held-out evaluation protocol for the reported alignment statistic. The visualization cannot independently establish generalization of the projection or explain the task gains.
Geographical usefulness has a limited interpretation. If location features improve training, that establishes their value under those conditions. It does not show that location causes a grammatical similarity or that geographical distance is the right linguistic distance for another task. The small feature differences further discourage a sweeping geographical explanation.
Reproduction and comparison constraints
The conflicting mBERT scaling values concern a recommended setting, making them consequential. Selecting either 68.68% or 64.68 without additional evidence would conceal the ambiguity. A reproduction would need to identify the precise experiment associated with each report.
The language inventory raises a parallel problem. A transfer claim depends on exactly which languages contributed training examples. Unclear counts and varying language-code presentation make that inventory less secure than the high-level description suggests.
Pooling is another unresolved implementation detail. The preliminary algorithm averages hidden states, while the main method names CLS output. These descriptions could legitimately concern different stages, but the boundary is not explicit enough to infer one universal representation procedure.
The automatic weighting variants are less completely specified than the main objective. AlchemyTune’s extra penalty is not fully formalized, and AlchemyScale’s update schedule is not exhaustively described. Their performance can depend on those details, making the short conceptual accounts insufficient for an exact implementation.
Finally, the baseline coverage is constrained. Missing adapters prevent one XLM-R comparison, and other systems are excluded because their adaptation or pretraining regimes differ. Those distinctions matter, but they narrow the empirical conclusion. The strongest supported claim concerns improvement over ordinary task adaptation in the reported transfer settings, together with a more limited adapter comparison.
What came after
The citation record connects LinguAlchemy with subsequent discussion of low-resource learning and language-description resources. It identifies citing works but supplies no account of their experiments or their particular use of LinguAlchemy. Their titles establish subject matter; they do not establish adoption, replication, or a solution to the accuracy tradeoff.
LLMs Are Few-Shot In-Context Low-Resource Language Learners is dated 2024. Its subject concerns low-resource learning through examples supplied in context, placing it near LinguAlchemy’s broader concern with extending language coverage. The record does not explain whether it evaluates linguistic regularization, uses URIEL descriptions, or treats LinguAlchemy only as related research. Sharing a publication year does not establish which investigation followed the other.
URIEL+: Enhancing Linguistic Inclusion and Usability in a Typological and Multilingual Knowledge Base is dated 2025. Its title directs attention to the resource layer beneath methods such as LinguAlchemy. That connection matters because an alignment target inherits the coverage and descriptive choices of its source. No specific resource changes or LinguAlchemy-based evaluations are established by the citation entry.
Modality Matching Matters: Calibrating Language Distances for Cross-Lingual Transfer in URIEL+ is dated 2026. Its stated subject concerns calibration of language distances for transfer, a question closely related to choosing useful language descriptions. The record does not define its calibration procedure or report its findings, so it cannot support claims about how it revises LinguAlchemy’s objective.
These connections identify continuing interest in the same broad questions: how to extend performance to poorly represented languages, how to describe relationships among languages, and how those descriptions should inform transfer. LinguAlchemy’s own evidence remains specific. A linguistic target can help difficult multilingual tasks, but its value depends on the task, encoder, weighting, and language group, and improved coverage can accompany reduced accuracy elsewhere.
Cite
Cite as Muhammad Farid Adilazuarda, Samuel Cahyawijaya, Genta Indra Winata, Ayu Purwarianti and Alham Fikri Aji. 2024. LinguAlchemy: Fusing Typological and Geographical Elements for Unseen Language Generalization. Findings of the Association for Computational Linguistics: EMNLP 2024.
@inproceedings{adilazuarda2024lingualchemy,
title = {{LinguAlchemy: Fusing Typological and Geographical Elements for Unseen Language Generalization}},
author = {Muhammad Farid Adilazuarda, Samuel Cahyawijaya, Genta Indra Winata, Ayu Purwarianti and Alham Fikri Aji},
booktitle = {Findings of the Association for Computational Linguistics: EMNLP 2024},
year = {2024},
doi = {10.18653/v1/2024.findings-emnlp.225},
url = {https://doi.org/10.18653/v1/2024.findings-emnlp.225}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/adilazuarda-2024-lingualchemy-fusing-typological-geographical-elements/