When a Mexican user asks a search-backed chatbot about elote, the system has two ways to fail. It can miss the relevant documents because they are indexed under mazorca or choclo. Or it can find them only by quietly translating the question into the dominant variety of Spanish, and then answer with what people in Spain do. Retrieval-augmented generation (RAG) has a language model answer from passages it first retrieves from a document collection. Most work on the "vocabulary mismatch" problem in RAG, where the user and the document author use different words for the same thing, treats the first failure as the whole problem. The fixes are to rewrite, normalize, or expand the query until it matches the index. Under the monolithic language assumption, the habit of treating one language as one lexicon and one culture, those fixes can turn a local question into a tourist question.
This note proposes to measure that trade-off and then remove it. We will train a small query rewriter whose reward counts two things. The first is whether the retrieved passages are relevant. The second is whether they come from the user's own language variety, as judged by a variety classifier. Its expansion vocabulary will be mined from variety-specific corpora rather than invented from the language model's memory. The claim is falsifiable. Standard lexical-gap methods raise recall but lower "locale fidelity," the share of retrieved evidence that comes from the user's region. A rewriter trained on both signals should recover the recall without that loss, and this should translate into better downstream answers on locale-sensitive questions.
Core Claim and Why It Is Not Already Done
The closest existing method is RaFe. It trains compact query rewriters with preference optimization, using an off-the-shelf reranker as the automatic judge of which rewrites retrieve better documents, and reports 2–3% downstream QA gains on standard English and Chinese benchmarks. We reuse its training recipe. We differ in two places.
First, RaFe's reward is only "does the reranker like what came back." A reranker trained on standard language has no reason to prefer a Bavarian or Rioplatense passage over an equally on-topic standard one, and RaFe's own limitations note that it inherits the reranker's blind spots. Second, RaFe never evaluates on regional varieties.
Two prompting-based expansion methods share the same gaps. Query Expansion by Prompting Large Language Models expands BM25 queries with chain-of-thought rationales, and InteR alternates between LLM-generated knowledge and search for two rounds. Both draw their synonyms from the model's parametric memory. Not All Countries Celebrate Thanksgiving shows that this memory projects data-dominant cultures onto underrepresented ones. Neither method measures where its retrieved evidence comes from.
On the other side, two lines of work document the gap without building retrieval. Elote, Choclo and Mazorca shows that Spanish lexical associations measurably differ by variety, builds the variety-labeled CEREALex corpus, and trains a variety classifier. BavGround shows that open models drop from 63.1% on general Bavarian cultural facts to 46.7% on source-grounded regional knowledge, and to 45.9% when prompted in Bavarian. Both papers stop at classification or closed-book evaluation. They motivate our work; they do not test retrieval.
XLQA is the nearest benchmark. It shows that 73.9% of its questions have locale-dependent answers, and Gemma3 12B falls to 20.13% exact match on those questions. However, XLQA equates locale with language, uses RAG only to construct the benchmark, and never studies the retriever. KG-MT does retrieve culture-specific material. It pulls target-language entity names from Wikidata and reaches 41.1% entity translation accuracy versus 25.3% for GPT-4. It is limited to named entities that already have knowledge-graph nodes, which everyday regional words like choclo or Bavarian food terms mostly lack.
Research Program
The system has three parts, and only the second is new in kind.
The first part is a variety lexicon. Following Elote, Choclo and Mazorca, we train variety-specific word embeddings on each CEREALex subcorpus and on a Bavarian-versus-standard-German corpus. We then align the embedding spaces and extract cross-variety correspondences: for each term, its nearest neighbours in the other varieties. This gives the rewriter candidate expansions that come from real regional text, not from the language model's guesses.
The second part is a rewriter trained with a locale-aware reward. A 1–3B instruction model is first fine-tuned on seed rewrites, then optimized offline with preference optimization exactly as in RaFe. The difference is the reward. For original query $q$ from a user of variety $v$ and candidate rewrite $q'$, let $D_k(q')$ be the top $k$ retrieved passages. The reward is
$$r(q') = \bar{s}(q, D_k(q')) + \lambda \cdot \frac{1}{k}\sum_{d \in D_k(q')} \mathbb{1}[c(d) = v],$$
where $\bar{s}$ is the mean reranker relevance of the retrieved passages to the original query, $c(d)$ is the variety classifier's label for passage $d$, and $\lambda$ trades relevance against locale fidelity. Scoring relevance against the original query rather than the rewrite keeps the rewriter from drifting off topic.
The classifier's reported 88–89% out-of-domain accuracy in Elote, Choclo and Mazorca tells us the locale term is noisy but informative. We will separately measure classifier accuracy on passage-length text, since the reported figure is at document level.
The obvious failure mode is reward hacking: the rewriter could stuff regional marker words into the query to pull in any regional passage regardless of topic. Scoring relevance against $q$ is the first guard, and we also report relevance and fidelity separately so hacking would be visible.
The third part is the evaluation. We run it in two settings: with the user's variety given, as when it comes from app settings, and with the variety inferred from the query by the same classifier. The inferred setting is harder because dialectal queries are short.
Testbeds
We build two retrieval testbeds from resources in the file, because no existing benchmark scores retrieval over regional varieties.
The first is Spanish. The corpus is a CEREALex slice spanning Mexican, Rioplatense, Andean, Colombian, and Peninsular Spanish. Queries are XLQA-style locale-sensitive questions written by native speakers of each variety, each paired with a gold passage from that variety's subcorpus. The questions deliberately use variety-specific vocabulary drawn from the lexicon, so that both failures are possible.
The second is Bavarian. We convert BavGround's grounded (GRD) items into open-book retrieval. The regional source documents behind each item become the gold passages, and they are indexed together with standard German Wikipedia as a large distractor set. Questions are posed in Bavarian, German, and English. This directly tests whether retrieval can close BavGround's "tourist versus local" gap, and whether it removes the penalty for asking in dialect.
Baselines
The naive reference points are closed-book answering and RAG with the raw query, using both BM25 and a multilingual dense retriever. For Bavarian, the closed-book number to compare against is BavGround's reported 45.9% average accuracy with Bavarian prompts and 46.7% on GRD items BavGround. Any retrieval system that does not clearly exceed these is not helping.
The dialect-to-standard normalization baseline prompts the same instruction model to rewrite the query into standard Peninsular Spanish or standard German before retrieval. It is the most natural engineering fix and the most direct test of our central hypothesis about fidelity loss.
The prompting expansion baselines are chain-of-thought expansion concatenated with the query Query Expansion by Prompting Large Language Models and two-round InteR InteR. On standard English, these report MS-MARCO Recall@1K of 90.61 versus 87.82 for BM25, and TREC DL'19 MAP of 50.0 versus 30.1 for BM25, respectively. These are the strongest untrained lexical-gap methods.
The strongest trained competitor is RaFe RaFe. We will run it with the same base rewriter, the same reranker, the same seed rewrites, the same number of preference pairs, and the same tuning budget as our method, so the only differences are our reward and our lexicon. RaFe reports 2–3% QA gains on standard benchmarks. There is no reported result found on Lacuna for RaFe, InteR, or any query rewriting method on dialectal or pluricentric retrieval, so all baseline numbers on our testbeds will be produced by us.
We also include a metadata-filter baseline: restrict retrieval to the user's country domain (the country-code top-level domains CEREALex is built from), with and without normalization. This is an oracle-flavoured upper reference for locale fidelity, because real deployments often lack clean provenance.
Two ablations isolate the key ingredients. One sets $\lambda = 0$, which is RaFe plus our lexicon. The other keeps the locale reward but replaces the corpus-mined lexicon with LLM-generated synonyms.
Beating RaFe means two things at once. Our method must be statistically better on locale fidelity@10 and on downstream accuracy for locale-sensitive questions. It must also be no worse than RaFe by more than one point on Recall@20.
Why not just…?
Why not just normalize the dialect query into the standard language? This is the real threat, and the experiment is built around it. Our hypothesis is that normalization raises recall but shifts retrieved evidence toward the dominant variety. The cultural-dominance findings of Not All Countries Celebrate Thanksgiving and the lower grounded-knowledge scores in BavGround point in that direction, but nobody has measured it for retrieval. If normalization matches our method on locale fidelity and on downstream accuracy for locale-sensitive questions, we will report that the learned rewriter is unnecessary.
Why not just use a strong multilingual dense retriever, which should already treat elote and mazorca as neighbours? Semantic closeness is exactly the problem. A dense retriever that merges the two words will also merge Mexican and Peninsular documents about them, which gives recall without fidelity. It is also unclear how well such retrievers represent under-resourced varieties like Bavarian, given that dialectal reasoning was the hardest category for every model in BavGround. The raw-query dense baseline measures this directly.
Why not just filter by country domain? Where provenance is clean, this may win on fidelity, which is why we include it. It fails in three situations: when documents lack locale metadata, when a variety spans countries (Andean Spanish, or Bavarian inside Germany), and when the user's variety is not known in advance. The inferred-variety setting and the Bavarian testbed, which has no country-level split, test those conditions.
Decisive Checks
The first check is diagnostic and comes before any training. On both testbeds, we plot Recall@20 against locale fidelity@10 for raw, normalized, chain-of-thought, InteR, and RaFe retrieval. If the lexical-gap methods do not lower fidelity relative to raw queries, the premise fails and the project reduces to a benchmark contribution.
The second check is whether our rewriter moves toward the high-recall, high-fidelity corner of that plot relative to RaFe under matched budgets.
The third check is whether retrieval gains become answer gains. On XLQA-style locale-sensitive Spanish questions, we score exact match. On Bavarian GRD items, we score accuracy using both letter-likelihood and option-text scoring, because BavGround shows that model rankings change with the scoring method. The key test is whether Bavarian-prompted accuracy reaches German-prompted accuracy.
The two ablations then tell us whether the locale reward, the corpus-mined lexicon, or both carry the effect.
References
- RaFe: Ranking Feedback Improves Query Rewriting for RAG
- Query Expansion by Prompting Large Language Models
- Synergistic Interplay between Search and Large Language Models for Information Retrieval
- Not All Countries Celebrate Thanksgiving: On the Cultural Dominance in Large Language Models
- Elote, Choclo and Mazorca: on the Varieties of Spanish
- BavGround: A Benchmark for Regional Cultural Grounding and Dialect Competence in Bavarian
- XLQA: A Benchmark for Locale-Aware Multilingual Open-Domain Question Answering
- Towards Cross-Cultural Machine Translation with Retrieval-Augmented Generation from Multilingual Knowledge Graphs