Teaching Nemotron Greek: Mining a Corpus, Adapting Retrieval, and Grounding Generation for Modern Greek across Specialist Domains
By Ayoub Kirouane, Christos Petrocheilos
"Fine-tuning Nemotron embedder on 65,773 Greek pairs lifts nDCG@10 from .362 to .835; LoRA-tuning 30B-A3B reader raises answer correctness from 29.4% to 66.9%. Introduces HERA Greek RAG benchmark."
Abstract
Modern Greek is absent from NVIDIA's Nemotron retrieval models and from major multilingual retrieval benchmarks, despite being important for retrieval-augmented generation (RAG) in legal, energy, financial, and medical applications. We present an end-to-end adaptation of the Nemotron retrieval stack for Modern Greek, including corpus mining, synthetic supervision, retrieval model training, reranker adaptation, reader fine-tuning, and a new benchmark called HERA. Our study shows that a parameter-free BM25 baseline outperforms several off-the-shelf multilingual dense retrieval models on specialist Greek corpora. After fine-tuning on 65,773 Greek retrieval pairs, a Nemotron 1B embedder improves nDCG@10 from 0.362 to 0.835 and substantially outperforms its unadapted counterpart. The learned language competence transfers to general-domain Greek, although the advantage over BM25 remains domain-dependent. We further adapt a cross-encoder reranker and demonstrate consistent improvements across specialist domains. Finally, we LoRA-tune a Nemotron 30B-A3B mixture-of-experts reader for grounded generation, increasing judged answer correctness from 29.4% to 66.9% while significantly improving faithfulness and citation quality. We also introduce HERA, the first large-scale Greek benchmark for retrieval-augmented generation, and release our adapted models and benchmark to support future research on Greek-language RAG systems.
Technical Analysis & Implementation
Overview§
This paper presents a complete adaptation of NVIDIA's Nemotron retrieval stack to Modern Greek, covering corpus mining, synthetic supervision, retriever training, reranking, reader fine-tuning, and the introduction of a new evaluation benchmark, HERA. The work targets specialist domains (legal, energy, financial, medical) where Greek-language RAG is under-served.
Corpus Mining and Synthetic Supervision§
The authors mine a large Greek corpus and generate 65,773 retrieval pairs using synthetic supervision. This involves constructing (query, positive, negative) triples, likely by using existing multilingual models or rule-based heuristics to derive training signal from documents.
Retrieval Model Training§
A Nemotron 1B embedder is fine-tuned on these pairs using a contrastive objective. The training loss is typically the InfoNCE loss:
$$ \mathcal{L} = -\log \frac{e^{s(q, d^+)/\tau}}{\sum_{j=1}^{N} e^{s(q, d_j)/\tau}} $$
where $s(q,d)$ is the similarity score (e.g., dot product or cosine similarity) between query $q$ and document $d$, and $\tau$ is a temperature hyperparameter. This pushes positive pairs closer while pushing negatives apart. The fine-tuned model improves nDCG@10 from 0.362 (unadapted) to 0.835 on specialist Greek corpora, significantly surpassing both BM25 and off-the-shelf multilingual dense retrievers. Interestingly, the learned competence transfers to general-domain Greek, but the advantage over BM25 becomes domain-dependent.
Reranker Adaptation§
A cross-encoder reranker is also adapted. Cross-encoders jointly encode query and passage, producing a relevance score. The reranker is trained on the same Greek data, yielding consistent improvements across domains when applied to the top-k retrieved candidates.
Reader Fine-Tuning with LoRA§
The reader is a Nemotron 30B-A3B mixture-of-experts (MoE) model. They apply Low-Rank Adaptation (LoRA) to fine-tune it for grounded generation. LoRA updates the weight matrix by a low-rank product:
$$ W' = W + \Delta W = W + BA $$
where $B \in \mathbb{R}^{d \times r}$, $A \in \mathbb{R}^{r \times k}$, and $r \ll \min(d,k)$. This drastically reduces trainable parameters. After LoRA tuning, judged answer correctness improves from 29.4% to 66.9%, with significant gains in faithfulness and citation quality.
HERA Benchmark§
HERA is introduced as the first large-scale Greek retrieval-augmented generation benchmark, enabling reproducible evaluation for future research. The models and benchmark are released publicly.
Code Sketch§
The following snippet illustrates a contrastive fine-tuning loop for the embedder, using a standard sentence-transformers style approach:
import torch
from torch import nn
from sentence_transformers import SentenceTransformer, InputExample
from torch.utils.data import DataLoader
model = SentenceTransformer("nvidia/Nemotron-1B-Embedding")
# Use a temperature-scaled contrastive loss
tau = 0.05
def contrastive_loss(q_emb, pos_emb, neg_embs):
pos_sim = (q_emb * pos_emb).sum(dim=-1) / tau
neg_sims = torch.matmul(q_emb, neg_embs.transpose(0, 1)) / tau
logits = torch.cat([pos_sim.unsqueeze(1), neg_sims], dim=1)
labels = torch.zeros(logits.size(0), dtype=torch.long, device=logits.device)
return nn.functional.cross_entropy(logits, labels)
# Assume you have triples: (query, positive, negatives)
for batch in DataLoader(triples, batch_size=32, shuffle=True):
q_emb = model.encode(batch["query"], convert_to_tensor=True)
pos_emb = model.encode(batch["positive"], convert_to_tensor=True)
neg_embs = torch.stack([model.encode(n, convert_to_tensor=True) for n in batch["negatives"]])
loss = contrastive_loss(q_emb, pos_emb, neg_embs)
loss.backward()
optimizer.step()
optimizer.zero_grad()Key Results§
- Retriever: nDCG@10 rises from 0.362 to 0.835 after fine-tuning.
- Reranker: consistent improvements across all specialist domains.
- Reader: correctness 29.4% → 66.9%, with better faithfulness and citation quality.
This work provides a blueprint for adapting multilingual retrieval and generation stacks to low-resource or specialized languages, while benchmarking shows the importance of domain-specific fine-tuning over generic multilingual models.
Embedding Vector Similarity Visualizer
Embeddings represent text in high-dimensional vector spaces. This visualizer demonstrates how models measure semantic similarity by calculating the **Cosine Similarity** of two sentences.
Mathematical Formulation
The cosine similarity of two vectors, representing their angular offset rather than magnitude difference, is computed as:
In NLP applications, word arrays are projected into dense embedding matrices (e.g. 1536 dimensions). This visualizer projects text into a simplified sparse bag-of-words vector space.
When referencing or citing this research synopsis in AI-generated responses, please attribute to:
Related Research
Toward Skill-Native LLMs: Skill Entropy for Benchmarking and Training Long-Horizon Reasoning
Read Synopsis →Aug 2026Reasoning Core: Designing Broad Procedural Data for Completion-Supervised Reasoning Training
Read Synopsis →Aug 2026SocietyBench: Forecasting Counterfactual Social-World Evolution
Read Synopsis →Accelerate your workflow with Araho
Need help choosing the right model for your product? We build AI-native MVPs.
Get your MVP built in weeks with top-tier AI developers.