ACM TALLIP · Accepted 2026

Optimizing Semantic Retrieval for Bengali: A Comparative Analysis of Monolingual and Multilingual Embeddings with Matryoshka Representation Learning

Koshik Debanath  ·  Azmain Yakin Srizon

Department of Computer Science and Engineering,
Rajshahi University of Engineering and Technology (RUET), Bangladesh

Abstract

Effective semantic retrieval remains the primary bottleneck for Bengali Retrieval-Augmented Generation (RAG) systems. While general-purpose multilingual models exist, they often lack the specific semantic alignment required for high-precision tasks. This paper conducts a comparative study of three embedding architectures—monolingual (shihab17), distilled multilingual (distiluse), and paraphrase-focused (mpnet)—to identify the optimal foundation for Bengali retrieval. We fine-tune these models on BanglaRQA using Multiple Negatives Ranking Loss wrapped with Matryoshka Representation Learning (MRL).

On the primary BanglaRQA test regime of 1,124 answerable queries, the fine-tuned mpnet model achieves the strongest dense-retrieval result, with NDCG@10 of 0.6139, statistically outperforming the monolingual baseline (p < 0.001). A lexical BM25 baseline is also strong on this factoid Wikipedia setting, reaching NDCG@10 of 0.9142; this clarifies that dense fine-tuning is most relevant where semantic matching, compression, and downstream RAG integration are required rather than as a universal replacement for lexical retrieval. In a separate 1,124-document deployment-efficiency regime, MPNet-FT reaches NDCG@10 of 0.8114. The MRL-trained MPNet model retains 96.1% of its 768-dimensional retrieval effectiveness at just 128 dimensions, reducing vector storage by 83.3% while preserving most retrieval quality.

Key Highlights

+127%
NDCG@10 gain for MPNet after fine-tuning (0.2695 → 0.6139)
96.1%
Retrieval quality retained at 128d vs. 768d
83.3%
Vector storage reduction (3.29 MB → 0.55 MB)
p < 0.001
MPNet-FT vs. Shihab17-FT (Wilcoxon signed-rank)

Contributions

Method

Fine-tuning architecture: BanglaRQA question-context pairs feed three base encoders, mean pooling, and a Matryoshka-wrapped Multiple Negatives Ranking Loss at 768/512/256/128/64 dimensions.
Figure 1. Comparative fine-tuning pipeline. Three base models share a Siamese bi-encoder setup with mean pooling and a Matryoshka-wrapped Multiple Negatives Ranking Loss computed at nested dimensions {768, 512, 256, 128, 64}.

Given a question–passage pair, MNRL treats the gold passage as the positive and all other in-batch passages as negatives. MRL computes this loss on every embedding prefix z1:m for m ∈ M and sums them, forcing the most salient semantics into the first dimensions so embeddings can be truncated at inference time without retraining.

Base modelTypeDim.
shihab17/bangla-sentence-transformerMonolingual (XLM-R, distilled)768
distiluse-base-multilingual-cased-v1Distilled multilingual USE512
paraphrase-multilingual-mpnet-base-v2Paraphrase multilingual MPNet768

Data. BanglaRQA (Bengali Wikipedia QA), filtered to is_answerable=1: 10,134 train+validation pairs for fine-tuning and 1,124 held-out test queries. Training. 4 epochs, effective batch 128 (32 × 4 grad. accumulation), LR 2e-5, cosine schedule, 10% warmup, AdamW, max length 512, FP32, single NVIDIA T4.

Retrieval Results

Regime A: 1,124 answerable BanglaRQA test queries against 11,258 row-level passage candidates. Scores at each model's maximum dimension.

ModelDimNDCG@10MRR@10MAP@100Acc@10P@10R@10
DistilUSE (base)5120.00370.00360.00560.00440.00140.0040
DistilUSE-FT5120.42130.39550.42480.46980.17700.4592
Shihab17 (base)7680.15990.14110.16510.19930.07150.1889
Shihab17-FT7680.56380.51790.55860.65570.24240.6323
MPNet (base)7680.26950.24130.27610.32830.12010.3120
MPNet-FT †7680.61390.57120.60940.69130.25930.6762
BM25 (lexical)–0.91420.89100.90530.95370.36310.9476

† Best dense model; significantly better than Shihab17-FT (Wilcoxon signed-rank, p = 7.81×10-6) and DistilUSE-FT (p = 1.00×10-47). BM25 is very strong on factoid Wikipedia QA due to high entity/surface-term overlap.

Fine-tuned dense retrieval performance across embedding dimensions for NDCG@10, MRR@10, MAP@100 and Accuracy@1.
Figure 2. Fine-tuned dense-retrieval performance across embedding dimensions. MPNet leads on every metric and at every truncation level.
Base vs fine-tuned NDCG@10 and Recall@10 across dimensions for all three models.
Figure 3. Base vs. fine-tuned models from 64d to 768d. Fine-tuned Shihab17 at 64d (NDCG@10 0.4783) already beats the full 768d base MPNet.

MNRL-only Ablation: What Does MRL Buy?

MNRL-only training slightly improves full-dimension scores, but MRL substantially preserves quality under truncation—the property that matters for compressed vector indexes.

ModelObjectiveFull NDCG@10128d NDCG@10128d Ret.64d Ret.
MPNetMNRL + MRL0.61390.578394.2%86.0%
MPNetMNRL only0.63400.568489.7%77.7%
Shihab17MNRL + MRL0.56380.526893.4%84.8%
Shihab17MNRL only0.57840.535692.6%79.5%
DistilUSEMNRL + MRL0.42130.400495.0%86.9%
DistilUSEMNRL only0.45260.407290.0%71.6%
Retention curves comparing MNRL-only and MNRL+MRL objectives across dimensions.
Figure 4. Retention relative to full-dimensional NDCG@10 for MNRL-only vs. MNRL+MRL.
Saturation curves of retrieval metrics versus embedding dimension.
Figure 5. Performance saturation across dimensions. Returns diminish beyond 256d; MPNet reaches near-peak performance earliest.

Deployment Efficiency

Regime B: storage vs. accuracy on a 1,124-document index (float32 vectors).

ConfigDimIndex sizeNDCG@10Retention
MPNet-Base7683.29 MB0.4715–
MPNet-FT7683.29 MB0.8114100.0%
MPNet-FT5122.20 MB0.807299.5%
MPNet-FT2561.10 MB0.791897.6%
MPNet-FT1280.55 MB0.779696.1%
MPNet-FT640.27 MB0.743891.7%
Storage footprint versus NDCG@10 showing 128d as the sweet spot.
Figure 6. Efficiency–accuracy trade-off. 128d is the operational sweet spot; even 64d MPNet-FT beats the 768d base model. Negation-sensitive queries degrade at 64d, so 128d is the recommended minimum.
MTEB Bengali task scores per model.
Figure 7. Transfer to MTEB Bengali tasks (BengaliDocumentClassification, BengaliHateSpeechClassification, Tatoeba). MPNet-FT is strongest across tasks.

Downstream RAG Evaluation

Regime C: FAISS index (500-char chunks, 50 overlap, top-k=3), gpt-3.5-turbo generator at temperature 0, Bengali answer-only-from-context prompt, RAGAS 0.1.21 metrics on 10 Bengali factual queries. This is a sanity check; confidence intervals are wide.

RetrieverContext PrecisionContext RecallFaithfulnessAnswer Relevancy
MPNet-FT0.750 ± 0.2630.900 ± 0.1960.700 ± 0.2990.421 ± 0.276
Shihab17-FT0.650 ± 0.2940.800 ± 0.2610.600 ± 0.3200.249 ± 0.250
DistilUSE-FT0.450 ± 0.3080.600 ± 0.3200.500 ± 0.3270.264 ± 0.264
Heatmap of RAGAS scores by retriever model.
Figure 8. Aggregate RAGAS scores by retriever.

Example

QueryRetrieverGenerated answer
বিশ্বের প্রথম কম্পিউটার কে তৈরি করেন?
Who created the first computer?
MPNet-FTবিশ্বের প্রথম কম্পিউটার চার্লস ব্যাবেজ তৈরি করেন।
Charles Babbage created the first computer. ✓
বিশ্বের প্রথম কম্পিউটার কে তৈরি করেন?
Who created the first computer?
DistilUSE-FTআমি জানি না।
I do not know. ✗ (answer entity not retrieved)

Released Models

MPNet-FT (recommended)

Fine-tuned paraphrase-multilingual-mpnet-base-v2 · 768d, Matryoshka

Kowshik24/bangla-sentence-transformer-ft-matryoshka-paraphrase-multilingual-mpnet-base-v2

Shihab17-FT

Fine-tuned shihab17/bangla-sentence-transformer · 768d, Matryoshka

Kowshik24/bangla-sentence-transformer-ft-matryoshka

DistilUSE-FT

Fine-tuned distiluse-base-multilingual-cased-v1 · 512d, Matryoshka

Kowshik24/bangla-sentence-transformer-ft-matryoshka-distiluse-base-multilingual-cased-v1

Quick start

from sentence_transformers import SentenceTransformer

model = SentenceTransformer(
    "Kowshik24/bangla-sentence-transformer-ft-matryoshka-paraphrase-multilingual-mpnet-base-v2",
    truncate_dim=128,  # Matryoshka: 128d keeps ~96% of 768d quality
)

query = "বিশ্বের প্রথম কম্পিউটার কে তৈরি করেন?"
passages = [
    "চার্লস ব্যাবেজ ১৮৩৭ সালে অ্যানালিটিক্যাল ইঞ্জিনের নকশা করেন।",
    "রায়পুর ছত্তীসগঢ় রাজ্যের রাজধানী।",
]
q = model.encode(query, normalize_embeddings=True)
p = model.encode(passages, normalize_embeddings=True)
print(model.similarity(q, p))

Citation

@article{debanath2026optimizing,
  title   = {Optimizing Semantic Retrieval for Bengali: A Comparative Analysis of
             Monolingual and Multilingual Embeddings with Matryoshka
             Representation Learning},
  author  = {Debanath, Koshik and Srizon, Azmain Yakin},
  journal = {ACM Transactions on Asian and Low-Resource Language Information Processing},
  year    = {2026},
  note    = {Accepted}
}