Manuscript Offprint

arXiv:2610.02875

Query-aware routing for Cross-lingual performance gains in Encoders

Akshay Jain, Edward Kim

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Multilingual encoders can exhibit reduced retrieval effectiveness when queries and relevant documents differ in language, despite strong same-language performance. We investigate whether Finnish and Swedish cross-lingual retrieval can improve while preserving an encoder's existing same-language performance and document index. We combine a query-only low-rank adapter, trained against frozen document embeddings, with deterministic routing based on query and index languages. Cross-language queries use the adapter, while same-language queries use the original encoder. SampoTron 1^{1}, our fine-tuned low-rank (LoRA) adapter alongwith the Nemotron-3-Embed-1B model, improves average retrieval quality across six English, Finnish, and Swedish directions from 0.241 to 0.291 in normalized discounted cumulative gain (nDCG) at rank ten, a 20.9% relative gain on a sampled financial benchmark. All six cross-lingual directions improve, and routing preserves the original same-language performance, including two full-corpus Finnish evaluations. The approach enables selective cross-language specialization with reusable document embedding vectors.

1 Introduction

Multilingual organizations and public information services require access to relevant documents independently of the language used to formulate a query. For example, Finnish or Swedish queries may target English technical documentation, while English queries may target local-language public information. Cross-lingual retrieval addresses this query–document language mismatch by ranking documents according to relevance across language boundaries. In contrast, multi-monolingual retrieval uses a shared model across languages while restricting each query to documents in the same language.

Dense retrievers encode queries and passages as vector representations, or embeddings, and rank passages by their similarity to the query embedding [6]. In retrieval-augmented generation, the retrieved passages provide evidence for response generation. Reranking is restricted to the retrieved candidate set, making initial retrieval quality a constraint on the evidence available downstream. Improved cross-lingual retrieval can support access to organizational and public-service documents without requiring users to reformulate queries in a second language.

Multilingual pretraining and retrieval fine-tuning have substantially expanded language coverage [15,19][15, 19]. However, this does not ensure equally effective retrieval across language boundaries. Recent work documents cross-lingual misalignment and develops training objectives that improve it while limiting monolingual regressions [3,7][3, 7]. An additional constraint that arises in deployed systems is that changing the document encoder requires computing the stored corpus vectors again. The practical problem is thus to improve cross-language retrieval while retaining both a useful same-language retriever and its existing document index.

1^{1}https://huggingface.co/ConfidentialMind/SampoTron

Preprint.

We address this problem through query-only adaptation and language-routed selection at inference. A low-rank adapter introduces trainable parameter updates into the frozen encoder and learns query representations against document embeddings produced by the original model. The proposed query-aware routing policy uses explicit query and index language metadata to activate the adapter when the languages differ. Consequently, a single cross-language adapter is able to serve all evaluated language pairs.

Our principal implementation to achieve this, SampoTron, adapts Nemotron-3-Embed-1B [11]. We evaluate its performance over English, Finnish, and Swedish financial question-answer retrieval and full-corpus Finnish benchmarks. Our contributions can be outlined as follows:

  1. A language-routed retrieval architecture that combines a query-only adapter with the original encoder and reuses the original document index. Its same-language score preservation follows directly from retaining the original embedding path.

  2. A mathematical analysis of how contrastive learning directs adapted queries toward relevant, fixed document embeddings relative to distractors, together with the conditions under which routing preserves original rankings.

  3. A performance evaluation of SampoTron demonstrating 20.9% mean cross-language gain on the sampled FIQA corpus, with all six language pairs improving and same-language scores preserved. Additionally, SampoHarrier applies the same architecture to microsoft/harrier-oss-v1-0.6b with a separately trained query adapter and also improves cross-language retrieval. These results support the architecture's generalizability across encoder models through model-specific query-adapter training.

Notation. We write qq for a query, dd for a document, and ℓq\ell_q, ℓD\ell_D for query and index languages. Bold letters denote vectors. All retrieval vectors have unit Euclidean norm, so their inner product equals cosine similarity. The upright subscripts base and adapt label quantities associated with the original and adapted encoders, respectively. The subscript R denotes the routed system. Parameter sets are denoted separately by θ\theta for frozen base parameters and ϕ\phi for trainable adapter parameters.

Section 2 positions the proposed approach against the state-of-the-art. Section 3 presents the architecture and geometry. Sections 4 and 5 describe the experiments and results. Section 6 concludes the paper.

References (17)