---
title: "Using Optimal Transport as Alignment Objective for fine-tuning"
description: "How optimal transport aligns multilingual contextual embeddings, improves cross-language transfer, and reveals limits of soft word matching."
canonical: "https://research.elamur.ai/free/en/papers/alqahtani-2021-optimal-transport-as-alignment-objective/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/alqahtani-2021-optimal-transport-as-alignment-objective/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2021](https://md.research.elamur.ai/free/en/papers/2021/) / Using Optimal Transport as Alignment Objective for fine-tuning Multilingual Contextualized Embeddings

# Using Optimal Transport as Alignment Objective for fine-tuning Multilingual Contextualized Embeddings

Paper · 2021 · Sawsan Alqahtani, Garima Lalwani, Yi Zhang et al.

**Authors:** [Sawsan Alqahtani](https://md.research.elamur.ai/free/en/authors/sawsan-alqahtani/), [Garima Lalwani](https://md.research.elamur.ai/free/en/authors/garima-lalwani/), [Yi Zhang](https://md.research.elamur.ai/free/en/authors/yi-zhang/), [Salvatore Romeo](https://md.research.elamur.ai/free/en/authors/salvatore-romeo/) and [Saab Mansour](https://md.research.elamur.ai/free/en/authors/saab-mansour/) · **Year:** 2021 · **Venue:** Findings of the Association for Computational Linguistics: EMNLP 2021 · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

Findings of the Association for Computational Linguistics: EMNLP 2021 · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2021.findings-emnlp.329/)
- [PDF](https://aclanthology.org/2021.findings-emnlp.329.pdf)
- [DOI 10.18653/v1/2021.findings-emnlp.329](https://doi.org/10.18653/v1/2021.findings-emnlp.329)

## What it is about

How optimal transport aligns multilingual contextual embeddings, improves cross-language transfer, and reveals limits of soft word matching. · about 34 minutes to read

**In this deep dive**

1. [Summary](#dd-summary)
2. [Ideas worth borrowing](#dd-ideas-worth-borrowing)
3. [How Mova uses it](#dd-how-mova-uses-it)
4. [The problem and its context](#dd-the-problem-and-its-context)
5. [The method, step by step](#dd-the-method-step-by-step)
6. [Experiments and results](#dd-experiments-and-results)
7. [What the ablations show](#dd-what-the-ablations-show)
8. [Limitations](#dd-limitations)
9. [What came after](#dd-what-came-after)

### Summary

A multilingual language system can represent several languages without treating equivalent expressions consistently. A word in an English sentence and its translation elsewhere may occupy different positions in the system’s internal representation, making knowledge learned from English examples harder to reuse. Alqahtani and colleagues investigate whether optimal transport can improve this relationship. Their central proposal is to learn contextual word correspondences during alignment training, rather than supply a fixed collection of word pairs beforehand.

The problem belongs to [multilingual and cross-lingual NLP](https://md.research.elamur.ai/free/en/topics/multilingual-nlp/), where systems must carry useful behavior across language boundaries. Earlier alignment methods often obtained word correspondences from an external aligner, retained selected matches, and then adjusted representations to bring those matches together. Such filtering can discard relationships involving several words, including a compound translated by a phrase. Optimal transport instead distributes matching weight across possible correspondences. The paper uses the resulting alignment cost as a training signal, allowing representations and their soft correspondences to change together.

The method starts from multilingual BERT, typically abbreviated mBERT, and parallel sentences: sentence pairs intended to express equivalent content in different languages. English serves as the common reference language. For each language pair, the authors calculate a regularized transport discrepancy between contextual representations of the paired sentences. They combine these discrepancies and adjust the shared multilingual encoder. An additional penalty discourages English representations from moving too far from their original positions. This alignment stage requires parallel text but no previously established word matches.

The main experiments evaluate transfer to textual entailment and extractive [question answering](https://md.research.elamur.ai/free/en/topics/question-answering/). After alignment training, each task is learned from English labels and evaluated across languages. On the reported seen-language averages, WordOT reaches XNLI F1 of 75.4, compared with 73.5 for the internally evaluated mBERT baseline. For XQuAD, its F1 is 74.7 and exact match is 59.0, against 73.4 and 57.8 for the corresponding baseline. The method also outperforms the paper’s L2 alignment comparison on these averages. However, it does not lead every comparison: AMBER has the stronger reported XNLI result, and applying the same transport approach to XLMR base does not produce consistent gains.

The broader finding is conditional. Learning soft alignments can improve a multilingual representation system, particularly when fixed word pairs would impose an unnecessarily narrow correspondence structure. Yet more languages, more parallel text, or finer textual units do not automatically help every task. The authors also identify incorrect alignments caused by faulty sentence pairs and by a transport objective that does not explicitly enforce sentence structure. The paper therefore supports optimal transport as a useful alignment objective, while showing why alignment quality, computational cost, and downstream evaluation must remain separate questions.

### Ideas worth borrowing

Let correspondences change during learning. A preprocessing stage can turn uncertain matches into fixed assumptions that later training cannot revise. Here, matching is recalculated from the current representations, so the correspondence problem remains connected to the learning problem. This idea applies wherever an evolving representation changes what should count as a plausible match, including record comparison, multilingual retrieval, and the reconciliation of independently produced analyses.

Keep fractional relationships when hard choices discard meaning. Translation does not always connect a single word with another single word. A compound may correspond to a phrase, and an inflected form may express information distributed across several target words. Soft matching preserves these possibilities during optimization. The reusable principle is to delay exclusive decisions when the task naturally permits overlapping or distributed relationships.

Separate local comparisons from shared updates. The authors calculate transport independently for each language pair but use the accumulated training signal to adjust a common encoder. This arrangement preserves the boundaries of each comparison while still allowing learning to be shared. Their mixed-language experiment shows why the distinction matters: placing unrelated language examples inside the same matching problem can make the optimization substantially worse.

Protect a trusted reference during adaptation. Moving representations toward cross-language agreement can also disturb useful information already present in the reference language. The paper adds a penalty for changes to English representations. More generally, adaptation can benefit from an explicit preservation objective, especially when improving a new capability risks weakening an established one. The preservation target must still be evaluated rather than assumed to guarantee stability.

Evaluate representation granularity against the final task. Words and sub-words expose different correspondence possibilities. Smaller pieces can reveal morphology and compound structure, but the paper finds that their downstream value depends on the task. This is a useful warning for any system that can compare characters, tokens, phrases, or larger structures: a more detailed representation is not automatically a better decision instrument.

Treat data volume and data quality as different variables. Reduced parallel-data experiments show that the amount of text does not have a uniform relationship with task performance. Qualitative inspection also finds supposed translation pairs that do not express the same content. A reusable evaluation design therefore varies quantity while separately examining whether the examples satisfy the assumptions of the learning objective.

Inspect intermediate artifacts without confusing them with the goal. The transport plans reveal compound correspondences, contextual dependencies, and structural mistakes. These observations help explain behavior, but the system is trained to improve transfer rather than to publish authoritative word alignments. The general lesson is to use intermediate structures diagnostically while measuring success on the actual application.

### How Mova uses it

Mova is a small, transparent language system written in Rust. Its native path reads dependency trees into frames and text worlds, while its dictionary and corpus tools retain source evidence and review boundaries. The connections below are proposals assessed against those mechanisms. The status marks describe a plausible relationship to the documented implementation; they do not establish that this paper has been applied or that a proposed transfer has improved Mova. In particular, the available evidence does not establish an implemented optimal-transport alignment objective.

Idea: Reconsider correspondences when representations change. Where: Introduction and Method, especially Input Representation and Fine-tuning with OT. Area: alignment and learning. Mova: нове. Mova could explore a bounded matcher that recomputes candidate correspondences after a reviewed change to lexical or structural features, instead of treating an early matching file as permanent truth. This would transfer the paper’s separation between provisional correspondence and final learning without requiring a neural implementation. Why Mova: revisable matches could prevent an early dictionary or parsing mistake from becoming an unquestioned premise throughout later processing.

Idea: Preserve relationships involving several words. Where: Introduction, Figure 2, and Qualitative Analysis for OT. Area: lexical semantics. Mova: частково є (expression handling in `prag`; sentence-level counterpart candidates in `tools/dictindex`). Mova already handles expressions and can expose counterpart lemmas from parallel sentences, but these capabilities do not establish word alignment. A proposed extension could retain several candidate words or phrases for a single source expression, with explicit evidence and ambiguity. Why Mova: the free dictionary needs room for compounds and distributed meanings that cannot be represented honestly by a forced single-word equivalent.

Idea: Solve each comparison within a declared boundary. Where: Method and Appendix E. Area: mathematical modeling and task composition. Mova: частково є (source-bound groupants and explicit worker interfaces in `docs/hybrid-system.md`). The paper’s language-pair separation suggests making the participants in every alignment problem explicit: which documents, languages, representations, and admissible correspondences belong together. Shared processing could then combine completed observations rather than silently enlarge the matching domain. Why Mova: declared boundaries make failures diagnosable and prevent unrelated evidence from competing inside an apparently coherent optimization.

Idea: Preserve a reference while adapting. Where: Fine-tuning with OT, Equation (2). Area: learning and regression control. Mova: частково є (regression-gated seed changes and retained-learning checks described in `docs/architecture.md`). Mova already checks whether changes damage existing behavior. A further hypothesis is to express selected preservation obligations directly in candidate scoring, alongside tests after a change. These could concern trusted lexical distinctions or previously supported structural observations. Why Mova: adaptation should carry a visible account of what it is allowed to change and what it must preserve.

Idea: Compare textual units through the final reader. Where: Input Representation and the word-versus-subword analysis. Area: morphology and evaluation. Mova: частково є (`en` morphology and derivation; French tokenization rules in `en/src/tok.rs`). Mova could compare word, morphological-component, and phrase correspondences on the same downstream questions, keeping the task fixed. The paper supports making this a task-specific comparison; it does not establish which unit would work best for Mova. Why Mova: richer segmentation is useful only when it helps the parser, dictionary, or reader make better supported decisions.

Idea: Vary corpus quantity independently of corpus admission. Where: the parallel-data analysis, Table 4, and Appendix D. Area: data and evaluation. Mova: частково є (bounded corpus processing in `tools/dictindex` and `tools/enrich`). Mova could evaluate fixed admitted prefixes of the same source collection, rather than interpreting a larger import as an improvement by itself. The source versions and assessment questions should remain comparable. Why Mova: controlled data budgets could reveal when additional evidence helps, saturates, or introduces conflicting patterns.

Idea: Inspect intermediate matches as diagnostic evidence. Where: Qualitative Analysis for OT and Appendix F. Area: interpretability and evaluation. Mova: вже є (reason-bearing frames, `treeagree` edit evidence, and source-rich dictionary examples). Mova already retains intermediate evidence rather than presenting only a final answer. The paper reinforces the value of examining both successful and erroneous correspondences. A transport-based prototype would need equally inspectable candidate edges, weights, and failure reasons; no such prototype is established by the available evidence.

Idea: Use paired sentences without pretending they provide word labels. Where: Introduction and Method. Area: corpus supervision. Mova: вже є (the counterpart distinction in `tools/dictindex/README.md`). Mova’s dictionary index explicitly treats parallel counterparts as sentence co-occurrence, rather than established translation or alignment. The paper offers a possible way to derive additional candidates from that weaker relationship, but those candidates would still need review. This existing distinction is essential because sentence equivalence does not identify the precise contribution of every word.

Idea: Keep a candidate matrix separate from admitted lexical knowledge. Where: Optimal Transport Optimization and Qualitative Analysis for OT. Area: lexicography and provenance. Mova: частково є (`tools/dictindex` statistical proposals and append-only reviewed labels; Nautilus admission gates). Mova could store soft correspondence proposals as a separate artifact, retaining the source sentences and representation version. A dictionary definition or translation would require its own admission decision. Why Mova: a numerical match should remain inspectable evidence rather than acquire the authority of a reviewed dictionary entry.

Idea: Give context a role in lexical comparison. Where: Introduction and Input Representation. Area: word-sense disambiguation. Mova: частково є (`global::sense_of` cue-based selection and dictionary head/dependent features). The paper’s contextual matching suggests comparing a word occurrence together with its local roles and dependents, instead of comparing its lemma alone. A Mova experiment could use explicit structural features rather than contextual neural vectors. Why Mova: the same word can participate in different meanings, and the dictionary should retain the evidence that distinguishes those uses.

Idea: Expose the ground cost as an inspectable assumption. Where: Optimal Transport Optimization, Equation (1). Area: mathematics and interpretability. Mova: нове. A possible non-neural transport experiment could define pair costs from declared features such as grammatical compatibility, reviewed lexical links, or frame roles. Each contribution would need a documented interpretation and a tested domain. The authors use Euclidean representation distance; the value of a structural replacement remains unknown. Why Mova: explicit costs would make it possible to explain why one correspondence was cheaper than another.

Idea: Make mass assumptions visible. Where: Optimal Transport Optimization and the qualitative error discussion. Area: mathematical modeling. Mova: нове. A Mova implementation should record how much weight each textual unit receives and whether every unit must participate. Uniform weights are a modeling choice, not evidence that every token has a valid counterpart. Any alternative would need separate evaluation. Why Mova: visible mass assumptions would help distinguish a genuine lexical relationship from a match produced only because the optimization required participation.

Idea: Test explicit abstention for unmatched content. Where: Qualitative Analysis for OT and Table 11. Area: uncertainty and alignment. Mova: частково є (gap reporting, unknown-evidence abstention in French rules, and unsupported-task failures). Mova already preserves several kinds of missing support. A proposed alignment component should likewise be allowed to leave content unmatched when sentence pairs are incomplete or inconsistent. The paper diagnoses forced participation as a problem but does not test this Mova-style remedy. Why Mova: an explicit gap is more useful than an apparently precise correspondence unsupported by the source.

Idea: Check the sentence-pair premise before optimizing word matches. Where: Data Pre-processing and Qualitative Analysis for OT. Area: data validation. Mova: частково є (`tools/sources` provenance and verification; dictionary-index source checks). Existing checks establish important source and artifact properties, but they do not automatically establish semantic equivalence between sentences. A new review stage could flag conspicuous omissions or contradictory content before alignment. Why Mova: optimization should not spend effort explaining relationships that the underlying texts do not contain.

Idea: Preserve linguistic structure when diagnosing repeated words. Where: Qualitative Analysis for OT. Area: syntax and semantic roles. Mova: частково є (`en` dependency trees and `prag` event frames). The paper reports a word matching repeated target occurrences without respecting their clauses. Mova could test clause and role information as constraints or review evidence around such candidates. This would be a new alignment use of existing structural representations. Why Mova: occurrence identity matters when identical forms describe different events or participants.

Idea: Distinguish translation equivalence from contextual association. Where: Qualitative Analysis for OT and the Arabic examples. Area: lexical semantics and knowledge representation. Mova: частково є (typed frames and the distinction between counterpart candidates and dictionary admission). A proposed matcher should label whether an edge suggests translation, dependency, shared context, or unresolved association. The paper’s useful contextual matches need not be direct lexical equivalents. Why Mova: a free dictionary must avoid turning a dependent word or associated phrase into an incorrect definition.

Idea: Keep reference-language direction explicit. Where: Method and Data Pre-processing. Area: multilingual processing. Mova: частково є (English assessed core and separately scoped language tools in `README.md`). The authors choose English as the anchor because of available resources. Mova could similarly record which language supplies trusted representations or supervision in any cross-language experiment. That choice should not imply equal competence in both directions. Why Mova: explicit direction prevents an English-supported experiment from being reported as general multilingual understanding.

Idea: Balance contribution across participating sources. Where: Model Optimization. Area: statistics and training design. Mova: нове. The authors sample equally from the language pairs before combining losses. Mova could test comparable balancing when learning from sources of very different sizes, while preserving each source’s provenance and license. A balancing rule should be evaluated against the intended task rather than treated as inherently fair. Why Mova: a large corpus should not silently determine every lexical or structural preference simply because it supplies more occurrences.

Idea: Audit repetition when scarce data are upsampled. Where: Data Pre-processing. Area: data accounting. Mova: частково є (source/version identities and stable occurrence identifiers in `tools/dictindex`). When repeated exposure is used to balance a small source, Mova could retain the distinction between exposure count and distinct evidence. The paper uses upsampling but does not establish that repeated examples create new information. Why Mova: dictionary confidence should not rise as though duplicated sentences were independent witnesses.

Idea: Use bounded batches with declared scope. Where: Optimal Transport Optimization and Notes on OT Efficiency. Area: computation and reproducibility. Mova: частково є (bounded imports, processing cursors, and worker budgets). A transport prototype could process admitted batches and record their membership, costs, and representation versions. The paper shows that batching is part of the learning setup, so a batch boundary should be visible in the experiment record. Why Mova: bounded computation supports reproducibility and makes interrupted or partial work easier to interpret.

Idea: Treat batch settings as part of the method. Where: Model Optimization and the WordOT comparison with WordOT*. Area: experimental control. Mova: частково є (configuration-bound worker observations and deterministic evaluation principles). Mova could require candidate-comparison reports to preserve resource-driven setting changes alongside the algorithm name. The paper’s comparison changes both batch size and accumulation, so it does not isolate either factor. Why Mova: apparent algorithmic gains can otherwise conceal changes in how evidence is grouped or updates are applied.

Idea: Measure cost at the stage where it occurs. Where: Notes on OT Efficiency. Area: systems evaluation. Mova: частково є (`tools/jobs` estimate/actual logging and `tools/twin` measured runs). Mova could separately report preparation, proposal generation, review, and runtime lookup costs for alignment-derived knowledge. The paper distinguishes alignment training overhead from subsequent task use. Why Mova: a slower offline procedure may still be acceptable, but only a stage-specific measurement can establish that tradeoff.

Idea: Preserve the original system as a controlled baseline. Where: Models Comparison and Results and Discussion. Area: evaluation. Mova: вже є (regression gates, paired comparisons, and deterministic reruns described in `README.md`). The authors compare adapted representations against their unadapted starting point. Mova’s existing before-and-after discipline serves the same methodological purpose. A future alignment experiment should retain that baseline rather than compare only different proposed improvements.

Idea: Report both partial correctness and exact correctness. Where: Evaluation and the XQuAD results. Area: evaluation. Mova: частково є (answer-and-reason outputs and detailed assessment traces). For applicable tasks, Mova could distinguish partially recovered content from an exactly supported answer. This is particularly relevant when a response identifies the right entity but misses a required relation or condition. Why Mova: a single aggregate score can conceal whether an improvement fixes complete reasoning chains or only fragments.

Idea: Separate languages observed during adaptation from others. Where: Table 2 and Results and Discussion. Area: transfer evaluation. Mova: нове. Any cross-language knowledge-transfer experiment could publish results separately for languages represented in the adaptation sources and languages outside them. The distinction would also need to account for what was already built into the starting system. Why Mova: this would prevent adaptation coverage from being mistaken for transfer beyond the evidence used.

Idea: Check effects by task before accepting a shared change. Where: the expanded-language and sub-word analyses. Area: regression evaluation. Mova: вже є (separate readers and school assessments with regression-gated extensions). The paper shows that a change can help textual entailment while failing to help extractive answering. Mova’s multiple readers provide an existing place to test such uneven effects. A useful aggregate should therefore accompany, rather than replace, task-specific results.

Idea: Recheck an idea on a stronger starting point. Where: State-of-the-art Comparison and Table 5. Area: evaluation and model comparison. Mova: частково є (versioned parser and rule evaluations). Mova could test whether a proposed repair still helps after the dictionary, parser, or structural reader has improved. The paper’s XLMR comparison demonstrates why an intervention’s value can depend on the initial system. Why Mova: an old workaround should not remain authoritative after its original weakness has disappeared.

Idea: Distinguish a proposed explanation from an isolated cause. Where: Results and Discussion and the word-versus-subword analysis. Area: scientific reporting. Mova: вже є (source-bound application records and distinctions between measured behavior and direction). The authors offer explanations involving linguistic differences, morphology, and pretraining scale, but their comparisons do not isolate every explanation. Mova’s records should preserve the same distinction when an observed change has several plausible causes.

Idea: Evaluate the matching artifact separately when it becomes a product. Where: Qualitative Analysis for OT. Area: alignment evaluation. Mova: нове. If Mova were to expose alignments to dictionary users or other components, downstream reader gains would not on their own establish alignment accuracy. A separately reviewed alignment set would be needed. Why Mova: evidence sufficient for an internal training signal may be insufficient for an externally trusted lexical claim.

### The problem and its context

#### Multilingual representations do not guarantee transferable behavior

A contextual representation describes a word occurrence in relation to its surrounding sentence. Unlike a fixed dictionary vector, it can distinguish different uses of the same written form. The paper places this development within the progress associated with [contextual word representations](https://md.research.elamur.ai/free/en/papers/peters-2018-deep-contextualized-word-representations/) and [BERT](https://md.research.elamur.ai/free/en/papers/devlin-2019-bert-pre-training-deep-bidirectional/). Such representations improved many language-processing tasks, while multilingual pretraining extended the approach beyond English.

The remaining problem is coordination across languages. If an English task teaches the system to recognize a particular semantic relationship, successful transfer requires relevant expressions in another language to activate compatible representations. Joint multilingual training can provide some of this compatibility, but the paper treats further alignment as an opportunity for improvement.

This matters especially where labeled examples and computational resources are limited. A system that can reuse English task supervision may avoid requiring a separately labeled collection for every language. The paper investigates this reuse through a zero-shot task protocol: the task labels come from English, while evaluation includes other languages. That protocol still permits parallel sentences during the earlier alignment stage.

#### Why contextual alignment is harder

For ordinary [word embeddings](https://md.research.elamur.ai/free/en/concepts/word-embeddings/), alignment can work with a relatively stable representation for each lexical item. Earlier methods described in the paper use bilingual lexicons or learned correspondences to relate embedding spaces. The cited work on [cross-language similarities](https://md.research.elamur.ai/free/en/papers/mikolov-2013-similarities-languages/) and [orthogonal transformations](https://md.research.elamur.ai/free/en/papers/smith-2017-offline-bilingual-word-vectors-orthogonal/) belongs to this background.

Context changes the object being aligned. A form can have different meanings in different sentences, and a translation must be appropriate to the occurrence rather than merely to the spelling. The authors illustrate this with “match”: compatibility between clothing calls for a different relationship than a sporting event. A useful alignment method must therefore account for how the word is being used.

The difficulty also extends beyond ambiguity. Languages distribute meaning differently across words and morphology. A source compound may require a target phrase, and part of an inflected word may correspond to a separate target pronoun. A correspondence scheme restricted to individual word pairs can lose precisely the information that makes the languages comparable.

#### Rotation and objective-based adaptation

The paper distinguishes transformation-based approaches from methods that directly fine-tune the multilingual encoder. A transformation method learns a mapping between representation spaces, often through a Procrustes objective. The authors describe work such as [contextual embedding alignment](https://md.research.elamur.ai/free/en/papers/schuster-2019-cross-lingual-alignment-contextual-word/) and [cross-lingual BERT transformation](https://md.research.elamur.ai/free/en/papers/wang-2019-cross-lingual-bert-transformation-zero/) in this setting.

The practical objection is that separate transformations can be needed for different language pairs. Direct alignment training instead changes the underlying shared representation system. This creates a route for several languages to contribute to the same encoder without adding a separate transformation at application time.

However, direct training frequently begins with externally generated word matches. The paper discusses L2-based matching and contrastive objectives that use such pairs as weak supervision. Their limitation, in the authors’ account, is not simply that the aligner may make mistakes. Filtering its output into selected one-to-one relationships can also remove valid relationships involving more than one word.

#### Sentence alignment and word alignment answer different needs

Another strand of earlier work aligns whole sentences. The paper describes [LASER](https://md.research.elamur.ai/free/en/papers/artetxe-2018-massively-multilingual-sentence-embeddings-zero/) and [language-agnostic BERT sentence embeddings](https://md.research.elamur.ai/free/en/papers/feng-2020-language-agnostic-bert-sentence-embedding/) as examples that use parallel information to improve sentence-level representations.

Sentence comparison is valuable for identifying translated passages, but it does not directly specify which source words correspond to which target expressions. The present paper therefore retains sentence pairs as the external supervision while placing its alignment objective at the word or sub-word level.

Optimal transport offers a way to make that distinction operational. It can use sentence pairing to define the comparison while distributing correspondence weight among the sentence’s constituent representations. The training signal comes from the optimized comparison itself.

The closest related work discussed by the authors also uses transport-derived information, but converts alignments into self-labels used with other learning objectives. Alqahtani and colleagues instead use the transport cost directly. They do not claim that this is the only useful role for transport; their contribution is a particular way of connecting it to representation adaptation.

### The method, step by step

#### Start from paired text and a shared encoder

The inputs are a pretrained multilingual encoder and sentence pairs linking English to another language. The main configuration uses mBERT, which the paper describes as covering 104 languages with a shared vocabulary. English is the target or reference language, while the other language supplies the source side.

“Source” and “target” describe the alignment arrangement rather than an instruction to generate a translation. The procedure does not decode an English sentence from a foreign-language sentence. It compares the internal representations already obtained for both members of a parallel pair.

From parallel text to cross-language task evaluation The steps in order.

The final task-training stage is distinct from alignment training. Parallel text first adjusts representation compatibility. English task examples then teach entailment classification or answer-span selection. Evaluation asks whether that task behavior transfers to the other languages.

#### Choose the units to compare

Each sentence is encoded separately, and the method takes representations from the encoder’s final layer. The authors report having considered other layers and finding the last layer preferable in their experiments. They do not provide a complete layer-by-layer result table.

For the word-level method, a word may consist of several sub-word pieces. The authors represent the word using its final sub-word embedding, following the comparison setup adopted from Cao and colleagues. This makes the WordOT comparison more consistent with the earlier L2 approach.

The choice is empirical rather than linguistically universal. The paper notes that suffixes and the position of compound heads can affect which piece carries useful information. It also evaluates an alternative, SubOT, where sub-words themselves become the units being aligned.

This alternative can expose correspondences hidden inside a word. The authors use an Arabic example in which a component of an inflected form corresponds to an English pronoun. Such an example explains the motivation for finer units, but it does not establish that sub-word matching will improve every downstream task.

#### Represent each side as weighted points

The transport problem treats the source and target representations as weighted collections of points. The source weights are denoted by α and the target weights by β. The reported default initialization gives equal weight to the units on each side.

```
Σᵢ αᵢ = 1;  Σⱼ βⱼ = 1
```

Here αᵢ is the weight of source unit i, and βⱼ is the weight of target unit j. The summations say that the weights on each side form a normalized distribution. The indices identify word or sub-word occurrences, depending on the configuration.

The authors also mention trying TF-IDF-based initialization and finding benefits for some languages. Their main setup uses uniform weights, in part because corpus-level statistics may be difficult to estimate adequately when resources are limited. No detailed result table establishes a general advantage for the alternative.

The normalized weights matter because transport allocates participation. A sentence with different numbers of units on its two sides can still be compared, but the resulting assignments must satisfy the chosen mass constraints. Equal initialization therefore does not mean that matching must be one-to-one.

#### Construct the cost and alignment matrices

The ground-cost matrix C contains the cost of matching each source point to each target point. The paper uses Euclidean distance between contextual representations. If the source has n units and the target has m units, C has dimensions n × m.

A second matrix, π, has the same dimensions. Its entries describe how much weight is assigned to each potential source–target correspondence. A source occurrence can distribute weight across several target occurrences, and a target occurrence can receive contributions from several source occurrences.

This is the mechanism behind soft matching. The system does not need to select an exclusive target word before calculating the learning signal. Instead, it finds a distribution of assignments whose overall cost is favorable under the transport constraints.

The difference from a lexical lookup is important. Low representation distance can reflect translation equivalence, contextual association, or other similarities encoded by the pretrained system. The qualitative analysis later shows that these possibilities are not always cleanly separated.

#### Regularize the transport optimization

The paper uses an entropically regularized transport quantity. Its mathematical definition can be written as follows, with the ordinary non-negative transport domain made explicit:

```
OTε(α, β) = minπ∈Π(α,β) [⟨π, C⟩ + ε KL(π, α ⊗ β)]
```

OTε is the regularized transport value. The minimization chooses π from Π(α,β), the set of admissible non-negative transport matrices whose row and column totals match α and β. The inner product ⟨π, C⟩ combines assignment weights with their ground costs. KL denotes Kullback–Leibler divergence, and α ⊗ β is the independent joint distribution formed from the two sets of weights. The parameter ε controls the regularization strength.

The constraint line in the paper’s available mathematical rendering is malformed. A literal reading that requires each transport entry to be at least 1 conflicts with the normalized marginal distributions. The meaningful constraint is non-negative transport with the declared marginals; the damaged line should not be treated as an additional algorithmic requirement.

The regularization changes how sharply the optimizer concentrates correspondence weight. The authors describe their chosen formulation as combining transport geometry with useful computational behavior associated with Maximum Mean Discrepancy. They use ε = 0.05 and report that this setting performed best among the values they considered.

The paper does not provide a full parameter sweep, so the evidence supports that choice within the authors’ investigation instead of a universal recommendation. The reported implementation uses Geomloss with its default settings for the divergence calculation.

#### Remove self-comparison bias

The actual alignment discrepancy is the Sinkhorn divergence. It combines the cross-distribution transport value with self-comparison terms:

```
Sε(α, β) = OTε(α, β) − ½ OTε(α, α) − ½ OTε(β, β)
```

Sε denotes the Sinkhorn divergence between the source and target distributions. The first term compares the two sides. The remaining terms compare each side with itself and subtract their contributions. The same ε controls the regularized transport quantities throughout.

The authors choose this formulation for smoother optimization and more stable, less biased gradients. Their algorithm uses iterative Sinkhorn matching, updating dual quantities until the optimization converges.

The resulting transport plan π is available as an intermediate alignment artifact. However, the quantity passed into representation learning is the optimized divergence. This distinction explains why the method can be useful even though the authors do not establish that every edge in the transport plan is a correct translation.

#### Preserve the English reference

The authors add a penalty for moving English contextual representations away from their initial values:

```
R(c; Pᵏ) = Σt∈Pᵏ Σj∈t ‖c(j,t) − c⁰(j,t)‖₂²
```

R is the reference-preservation penalty. Pᵏ denotes the parallel corpus for language k, and t is an English sentence on its target side. The index j ranges over its represented units. The current contextual representation is c(j,t), while c⁰(j,t) is the corresponding representation from the encoder before alignment training. The squared Euclidean norm measures their displacement.

The paper sets the penalty coefficient λ to 1. Conceptually, transport encourages better cross-language agreement while the preservation term discourages unrestricted movement of the English reference.

The typeset training equation places a negative sign before the Sinkhorn term, although the surrounding explanation repeatedly describes reducing alignment cost. The paper does not reconcile that sign with an explicit minimization or maximization convention. Its intended learning behavior is clear, but the displayed sign should be checked before treating the equation as an unambiguous implementation specification.

#### Combine languages without combining their matching pools

Each language pair receives its own transport calculation. The learning signals then contribute to a shared update:

```
L(c) = Σᵏ₌₁ᴷ l(c; Pᵏ)
```

L is the combined training objective, c is the encoder being adapted, K is the number of participating language pairs, and l is the pair-specific objective incorporating transport and reference preservation. This expression says that learning is shared across languages even though correspondence optimization remains separate.

This architecture is more specific than merely using multilingual batches. The authors later test pooling languages inside a single transport optimization and observe worse XNLI performance. Independent matching is therefore a consequential part of the method.

#### Train within a bounded computational setup

The alignment corpora contain approximately 32M sentence pairs in total, but the main training setup uses 250K sentences for each participating language pair. Smaller collections are upsampled, and sentence ordering is shuffled.

The main non-English training languages are Bulgarian, German, Greek, Spanish, and French. The expanded setup adds languages including Russian, Arabic, Mandarin, and Hindi, together with the remaining languages specified for LargeWordOT. The source collections span parliamentary material, institutional documents, subtitles, and other parallel resources.

Optimization uses [Adam](https://md.research.elamur.ai/free/en/papers/kingma-2014-adam-method-stochastic-optimization/), with the alignment learning rate written as 5e − 5, over one epoch. The main configuration has batch size 24 and gradient accumulation of 2. The authors selected these settings to balance memory, runtime, and task performance.

Contextual representations depend on individual occurrences, making a transport calculation over the entire training collection impractical in this setup. The method therefore uses batches. The paper treats batching as both a computational necessity and a choice that can affect learning behavior.

### Experiments and results

#### What the evaluations measure

The first evaluation is XNLI, where the system decides whether a sentence pair expresses entailment, contradiction, or a neutral relationship. The paper reports F1 for this task. The second is XQuAD, where the system selects an answer span from a passage. Its reported metrics are F1 and exact match, abbreviated EM.

For question answering, F1 gives credit for overlap between a prediction and the expected answer, while EM requires an exact answer match under the evaluation procedure. Keeping both metrics helps distinguish partial recovery from complete span recovery.

Both evaluations use English task supervision before testing other languages. The experiments therefore measure cross-language transfer after representation alignment, rather than direct multilingual task training from labeled examples in every evaluated language.

Internally run experiments are averaged over three seeds. The authors also include published comparison results, marking internal evaluations separately. This distinction matters because the internally evaluated mBERT baseline differs from its externally reported counterpart.

#### Parallel data and comparison systems

The parallel resources include [MultiUN](https://md.research.elamur.ai/free/en/papers/eisele-2010-multiun-multilingual-corpus-united-nation/), [the IIT Bombay English–Hindi corpus](https://md.research.elamur.ai/free/en/papers/kunchukuttan-2018-iit-bombay-english-hindi-parallel/), and [OpenSubtitles](https://md.research.elamur.ai/free/en/papers/lison-2016-opensubtitles2016-extracting-large-parallel-corpora/). Other collections provide additional language and domain coverage.

The source inventory is uneven. For instance, the appendix reports 157K Greek–English pairs and 128K Swahili–English pairs, while German–English has 1M. The fixed training amount therefore involves upsampling for some pairs instead of an equal quantity of distinct source sentences everywhere.

The comparisons include the unadapted multilingual encoder and the L2 alignment method. AMBER supplies a more elaborate alignment-related comparison for XNLI. For question answering, [MAD-X](https://md.research.elamur.ai/free/en/papers/pfeiffer-2020-mad-x-adapter-based-framework/) offers a contrasting adaptation strategy based on language and task adapters.

The authors also evaluate [XLMR](https://md.research.elamur.ai/free/en/papers/conneau-2020-unsupervised-cross-lingual-representation-learning/), a stronger starting point trained with substantially more data. This comparison tests whether the benefit of the transport objective persists when the underlying multilingual representation is already stronger.

#### Main textual-entailment result

The central XNLI comparison favors WordOT over the internally evaluated mBERT and L2 systems. AMBER remains stronger on the reported average. The chart uses the paper’s reported seen-language averages; those averages follow its evaluation coverage and include the English reference result.

XNLI reported seen-language average F1 WordOT improves over the internal baseline and L2, while AMBER remains stronger.

**The numbers**

| System or setting | F1 |
| --- | --- |
| mBERT, internal evaluation | 73.5 |
| L2, internal evaluation | 74.6 |
| WordOT (this paper) | 75.4 |
| AMBER, published comparison | 76.4 |

The authors associate AMBER’s advantage with its additional cross-language learning signals, particularly translation language modeling. That is a proposed explanation instead of an isolated causal result, because the paper does not reconstruct the competing system while varying only that objective.

The per-language results show why the average should not be read as universal improvement. For Greek, WordOT records XNLI F1 of 70.6, while L2 records 70.9. English also does not achieve its strongest reported score after WordOT adaptation. The method’s overall advantage coexists with language-specific tradeoffs.

#### Main question-answering result

For XQuAD, WordOT has the strongest reported F1 among the mBERT-based systems highlighted in the main comparison. The gap against L2 is particularly notable because L2 performs below the unadapted baseline in this evaluation.

XQuAD reported seen-language average F1 WordOT leads these mBERT-based comparisons on answer-overlap performance.

**The numbers**

| System or setting | F1 |
| --- | --- |
| mBERT, internal evaluation | 73.4 |
| L2, internal evaluation | 68.0 |
| MAD-X with mBERT, internal evaluation | 70.2 |
| WordOT (this paper) | 74.7 |

WordOT’s exact-match result is 59.0. The corresponding internal mBERT result is 57.8, L2 records 51.6, and MAD-X with mBERT records 53.8. Thus the reported gain is visible in exact answers as well as partial overlap.

The appendix also reports MAD-X variants with a different base encoder. Those should not be collapsed into the mBERT comparison: their starting representations differ. The authors additionally note implementation differences between the benchmark and adapter software setups, which qualify how tightly controlled the cross-framework comparison can be considered.

#### Expanding language coverage

LargeWordOT broadens alignment training to the paper’s expanded language set. This requires smaller batches because of memory demands. To make the comparison more informative, the authors retrain the smaller language configuration with the same revised settings and call it WordOT*.

On XNLI, LargeWordOT reaches the reported all-language average of 69.7, compared with 67.1 for mBERT. The paper reports improvements for languages including Hindi, Swahili, and Turkish. These results support the value of adding alignment evidence for some languages whose performance is weaker in the starting system.

The same expansion does not improve XQuAD on average. The authors suggest that the harder span-selection task may be more affected by differences among participating languages. The experiment establishes task-dependent behavior, while the explanation involving language properties remains a hypothesis.

#### Computational cost

In the primary alignment configuration, completing one epoch across the language pairs requires approximately eight hours using one NVIDIA V100 GPU. The L2 comparison takes roughly 6 hours under the same stated settings. The paper describes the transport overhead as relatively 30%.

Transport examines combinations of source and target units rather than only a preselected list of word pairs. The authors therefore identify at least O(n ∗ m) work for a comparison involving n source units and m target units.

This cost belongs to alignment training. The adapted encoder is subsequently used for task learning and evaluation without repeating that alignment procedure for every prediction. The distinction makes the tradeoff more favorable than an equivalent overhead added to every application-time query, but it does not remove the memory and scaling constraints on training.

### What the ablations show

#### Word and subword matching have different task effects

SubOT changes the comparison units while retaining the central transport approach. On XNLI, the reported seen-language F1 is 75.7 for SubOT and 75.4 for WordOT. Across all evaluated languages, the corresponding figures are 67.9 and 67.8.

Question answering moves in the other direction. The seen-language XQuAD result is 74.0/58.3 for SubOT and 74.7/59.0 for WordOT, where the pair gives F1 and EM. The all-language results are 63.5/48.5 and 63.8/48.8.

These comparisons support a narrow conclusion: finer alignment units produce different outcomes across the evaluated tasks. They do not show that sub-word matching is generally better for morphologically complex languages or generally worse for span selection.

The authors point to Greek and German improvements on XNLI and connect them to compound structure. They also suggest that answer-span identification may explain the weaker XQuAD average. These are plausible interpretations, but there is no controlled manipulation of compounding or answer-boundary behavior that would isolate either explanation.

#### Less parallel data can preserve much of the benefit

The data-volume experiment uses LargeWordOT with different amounts of parallel text. The reported XNLI averages show that the largest amount is not required to obtain an improvement over the baseline, although the smallest tested amount underperforms it.

XNLI reported average F1 under different parallel-data budgets Intermediate data budgets retain much of the strongest reported result.

**The numbers**

| System or setting | F1 |
| --- | --- |
| mBERT without alignment data | 73.5 |
| LargeWordOT, 1k | 72.7 |
| LargeWordOT, 10k | 74.1 |
| LargeWordOT, 50k | 74.4 |
| LargeWordOT, 250k (this paper) | 74.8 |

The authors characterize 50k as sufficient for performance comparable to the larger training amount in this setting. This is useful evidence about the marginal value of parallel data for their procedure, but it concerns languages already represented by the starting encoder.

The XQuAD data-volume analysis is less orderly. Its strongest reported average occurs with 1k sentence pairs, giving 74.1/58.3. At 250k, the result is 73.1/57.6. The authors do not find a clear pattern of worsening performance as data are reduced.

Consequently, the paper does not support a universal rule that alignment quality or task performance rises with corpus size. The interaction between language coverage, task requirements, and adaptation remains important.

#### Independent language-pair optimization matters

Appendix E compares the standard independent transport calculations with an alternative that pools languages inside a single optimization. The batches still draw evenly from the participating languages, and the authors keep the stated computational arrangement comparable.

The mixed transport setting substantially weakens XNLI. The reported drops include roughly 5.1% for German, 3.8% for Spanish, 5.1% for French, and 9.1% for Bulgarian.

This is one of the clearest controlled comparisons in the paper. Sharing the encoder does not imply that every correspondence search should share a candidate pool. Independent local matching and shared parameter learning perform different functions.

The authors attribute the degradation to the added difficulty of aligning examples with different linguistic properties inside the same optimization. The result establishes the degradation under their setup; it does not identify a single linguistic feature as its cause.

#### Batch comparisons are informative but not fully isolated

WordOT uses batch size 24 with gradient accumulation of 2. WordOT* uses batch size 8 with accumulation of 3. WordOT generally performs better in the reported comparison.

The authors suggest that a memory-efficient implementation supporting larger batches could improve results. However, both batch size and accumulation change, so the experiment cannot assign the observed difference exclusively to either one.

The broader language-expansion experiment has the same practical complication: memory requirements force training changes. Retraining the smaller language configuration with the new settings improves the comparison, but the expanded system still needs to be interpreted within those resource constraints.

#### The stronger starting encoder resists the intervention

With XLMR base, the transport-adapted system records XNLI F1 of 77.6, against 77.5 before adaptation. For XQuAD, the adapted result is 76.4 F1 and 60.8 EM, compared with 77.0 and 61.4 for XLMR base.

These results do not show a consistent downstream benefit. The authors propose that the much larger pretraining collection may already supply cross-language compatibility that the alignment objective adds to mBERT.

The paper states that XLMR base was pretrained on 2.5TB. Yet pretraining volume is not independently varied here. Differences in vocabulary and initial representations also accompany the change of encoder, so the explanation remains broader than a clean data-size ablation.

#### Qualitative inspection reveals both capability and failure

The alignment examples show German compounds corresponding to English phrases. “Rahmengesetzgebung,” for instance, is associated with “framework legislation.” Such cases illustrate why soft correspondence can preserve relationships excluded by a strict single-word scheme.

Arabic examples reveal another effect: a source word can connect not only with its literal translation but also with dependent material in the target context. This can be useful for representation learning while remaining unsuitable as a direct dictionary equivalence.

The errors are equally instructive. Repeated target words can attract the same source occurrence without respecting clause boundaries, and morphological variants can share inappropriate links. These examples explain possible failure mechanisms, but they do not constitute a quantitative alignment-accuracy evaluation.

### Limitations

#### Limits the authors identify

The authors explicitly report that some sentence pairs are not genuine translations. Their examples include a short German address paired with a much longer English statement, along with another pair whose content is mismatched. Such cases violate the premise that the two sides provide corresponding information.

Uniform mass allocation makes this problem consequential. When each source unit must participate in transport, missing or unrelated target content does not automatically produce abstention. The optimizer may distribute weight among poor alternatives because it still needs to satisfy the matching constraints.

The chosen objective also lacks explicit word-order and syntactic-structure constraints. Though contextual embeddings can contain structural information, the transport calculation compares points without enforcing clause identity or dependency correspondence. The repeated-word examples show that implicit structural information does not guarantee structurally correct matching.

The authors also recognize scaling constraints. Adding languages increases the work, and memory pressure changes feasible batch settings. The larger XLMR configuration would require further parameter adjustment to manage memory. These are practical boundaries on applying the approach exactly as evaluated.

Their proposed future directions include other transport variants, additional cross-language objectives, and broader task and language evaluation. Those proposals are not completed results. In particular, the paper does not test whether adding structural transport would fix the specific alignment mistakes it identifies.

#### Limits visible in the experimental design

The word “unsupervised” needs a precise scope. The method does not require previously labeled word correspondences, but it does require parallel sentences. It is therefore not an experiment in deriving cross-language relationships from unrelated monolingual collections alone.

Likewise, zero-shot evaluation describes task-label transfer. It does not mean that the target languages were absent from representation learning or alignment adaptation. The main comparison deliberately uses parallel text involving several evaluated languages.

The paper’s low-resource setting has a similar boundary. The authors explicitly discuss languages covered by mBERT’s vocabulary that have limited parallel material for this procedure. The results do not establish performance for a language missing from the starting representation system.

Task coverage is limited to entailment classification and extractive question answering. These are valuable tests of cross-language transfer, but they do not directly establish gains in translation generation, dependency parsing, dictionary induction, or word alignment. Those applications would require their own evaluations.

#### Intermediate matching is not independently validated at scale

The transport plans are inspected through examples instead of a reported alignment benchmark with quantitative error rates. The paper therefore demonstrates that some useful compound and contextual correspondences occur, while leaving their overall frequency and reliability unknown.

Downstream improvement cannot settle that question on its own. A noisy intermediate structure can still supply a useful aggregate learning signal. Conversely, an alignment that looks convincing in a small example collection may not improve an application.

This distinction is particularly important for reuse. A method acceptable as an internal adaptation objective may need substantially stronger validation before its correspondence edges are exposed as translations, dictionary evidence, or linguistic annotation.

#### Several causal explanations remain provisional

The paper offers explanations involving compound structure, differences among languages, and the amount of pretraining data. The comparisons are consistent with those explanations, but do not isolate each proposed cause.

For instance, the XLMR comparison changes the starting encoder rather than varying only pretraining volume. The batch comparison changes accumulation as well as batch size. The language-expansion analysis introduces additional linguistic evidence while operating under revised resource settings.

These are useful engineering experiments, but they support conclusions about tested configurations more securely than conclusions about a single underlying mechanism. A careful reading preserves that distinction instead of converting the authors’ interpretation into an established law.

#### Reporting leaves some uncertainty unresolved

The internally run results are averaged across three seeds, but the principal tables do not report run-to-run dispersion or confidence intervals. Small numerical differences therefore cannot be assessed for stability from those averages alone.

The comparison pool also mixes internal reproductions with previously published results. The authors identify this distinction and discuss software differences for the adapter experiments. Still, the evidence is strongest for comparisons whose starting encoder and evaluation procedure are closely matched.

Finally, the mathematical presentation contains the malformed transport constraint and the unresolved sign convention in the training objective. These issues do not erase the empirical results or the conceptual method, but they limit how confidently the printed equations alone can guide an exact reconstruction.

### What came after

[Improving Cross-lingual Information Retrieval on Low-Resource Languages via Optimal Transport Distillation](https://md.research.elamur.ai/free/en/papers/huang-2023-improving-cross-lingual-information-retrieval/) is a later citing work from 2023. Its title places optimal transport in cross-language retrieval and distillation, extending the surrounding research question from transfer on entailment and answer extraction toward finding relevant information across languages.

The available later-work record does not specify its objective, experimental setup, or results. It therefore supports identifying a subsequent connection to optimal-transport distillation for retrieval, but not a claim that the later authors reused WordOT’s exact divergence, preservation penalty, or language-pair training arrangement.

The transferable research question is nonetheless clear. Alqahtani and colleagues ask whether a soft correspondence cost can improve the representations used by another task. The later citing title places transport in a different application and learning relationship. Whether the precise mechanisms coincide, and whether the later study resolves the original paper’s data-quality, structure, or scaling problems, remains unknown from the documented connection.

## Cite

Cite as Sawsan Alqahtani, Garima Lalwani, Yi Zhang, Salvatore Romeo and Saab Mansour. 2021. Using Optimal Transport as Alignment Objective for fine-tuning Multilingual Contextualized Embeddings. Findings of the Association for Computational Linguistics: EMNLP 2021.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.18653/v1/2021.findings-emnlp.329](https://doi.org/10.18653/v1/2021.findings-emnlp.329)

```bibtex
@inproceedings{alqahtani2021using,
  title = {{Using Optimal Transport as Alignment Objective for fine-tuning Multilingual Contextualized Embeddings}},
  author = {Sawsan Alqahtani, Garima Lalwani, Yi Zhang, Salvatore Romeo and Saab Mansour},
  booktitle = {Findings of the Association for Computational Linguistics: EMNLP 2021},
  year = {2021},
  doi = {10.18653/v1/2021.findings-emnlp.329},
  url = {https://doi.org/10.18653/v1/2021.findings-emnlp.329}
}
```

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