When Vocabulary Bridges Carry Old Stereotypes: Auditing Query Expansion in Historical Archive Search

Search engines for historical archives face a vocabulary problem. A modern historian types "women's factory labour," and the relevant 1840s pamphlet says "operatives of the weaker sex." The most effective recent fix borrows words from somewhere else. A model of how 19th-century novelists used language adds related period terms to the query before searching. That bridge works: it raises mean average precision by about 7.5 points over plain keyword search. But the bridge is built from the period's own fiction, and fiction is where an era's gender norms are most concentrated. This proposal asks whether the words that close the vocabulary gap also carry the era's stereotypes into the ranking. Concretely, does the expanded query systematically bring up documents about one gender and bury documents about the other, beyond what the archive's relevant material justifies?

The claim we will test has two parts. First, the gender association of the expansion terms, measured in word embeddings trained on the bridge corpus, predicts how far the retrieved results drift from the gender balance of the truly relevant documents. If so, bias in a specialized embedding space becomes a measurable distortion in what a researcher actually sees. Second, an edit applied only at query time and only to gender-neutral queries can remove most of that distortion while keeping most of the recall gain. This edit drops or counterbalances gender-coded expansion terms, and it requires no retraining. If both hold, temporal bias in a specialized embedding space becomes a measurable retrieval harm with a cheap fix. If the first fails, we will have shown that representational bias of the kind measured in embedding studies does not reach the ranking in this setting, which is also worth knowing.

What prior work establishes and leaves open

The application comes from Cultural Analytics for Good. That paper built the BL19 benchmark: 35 historian-curated queries over British Library works from 1700 to 1899. It trained a relevance-based language model, a statistical model that picks expansion terms by their co-occurrence with the query in a reference collection. The reference collection was 10,210 novels, used to search 15,780 non-fiction books. This "Fiction_RLM" beat BM25 (keyword ranking) and non-fiction expansion, but it added noise on strictly factual queries such as "Workhouse children." The paper treats this as a precision problem. We ask whether part of that noise has a direction.

Three findings give a reason to expect that it does. Are Fairy Tales Fair? shows that gender stereotypes in narrative event chains cluster at the start of female characters' arcs. DiFair shows that masked language models produce more gender-biased predictions when a sentence mentions 1800s dates. Gender and Racial Stereotype Detection in Legal Opinion Word Embeddings trains skip-gram embeddings on 12 million legal opinions and finds career-versus-family gender bias stable across 370 years, measured with a domain-adapted association test. That last paper explicitly measures representational bias only and leaves downstream retrieval harm unexamined. We take its measurement method, a domain-adapted version of the Word Embedding Association Test (WEAT), and apply it to the expansion vocabulary.

Two findings limit what we can try. First, DiFair reports that counterfactual data augmentation raises BERT-base's gender-neutrality score from 63.91 to 86.44 but cuts its gender-specific factual score from 58.02 to 34.05. Retraining the bridge on gender-swapped text is therefore likely to destroy legitimate period knowledge, so our intervention is applied at query time instead. Second, From n-gram to Attention finds that 2020 and 2024 Wikipedia yields more occupational stereotyping than 2018 data. Gender and Racial Stereotype Detection in Legal Opinion Word Embeddings likewise finds that keeping only modern opinions does not remove bias. So we do not assume that a modern bridge, such as a large language model generating expansions, is cleaner. We measure it.

The two closest retrieval-plus-time papers do not cover this question. Temporal-aware Matryoshka Adaptation teaches dense retrievers to respect dates. Still Fresh? measures how documentation drifts between corpus snapshots. Neither looks at who is represented in the documents that get retrieved.

Core Claim and Measurement

Our harm measure is fidelity to the archive, not demographic parity. For a gender-neutral query $q$, let $p^{*}(q)$ be the share of judged-relevant documents whose primary subjects are women. Let $p_k(q)$ be the same share among the top $k$ retrieved documents, weighting each by its graded relevance. The skew is

$$ S_k(q) = p_k(q) - p^{*}(q), $$

so a value of zero means the ranking reflects the archive's own relevant material. A negative value means women-centred relevant documents are under-shown relative to their presence in the relevant set. Using $p^{*}$ as the reference avoids penalizing a search system for the archive's historical composition.

The bridge-side measure is $A(q)$. It is the relevance-weighted mean WEAT-style association of $q$'s expansion terms with male versus female attribute sets. Embeddings are fastText models trained separately on the BL19 fiction and non-fiction collections. Attribute lists are adapted to period usage in the manner of the legal-opinion study.

The first hypothesis is that, across queries and expansion sources, $A(q)$ predicts the change in $S_k$ relative to BM25.

Research Program

We will extend BL19 from 35 to roughly 150 queries using the original hybrid protocol: an LLM gives graded relevance and historians verify a sample. Queries will be split, as DiFair splits its items, into gender-specific queries (for example, "Spiritualism and séances" if historians judge its subject matter gendered) and gender-neutral ones. Each pooled document gets an LLM-assigned "primary subject gender" label (women, men, mixed, or none). Historians verify a stratified sample, and we report their agreement with the LLM. The labels are binary-plus-mixed, which inherits the binary-gender limitation noted in this literature; we state that limitation openly.

We then build several bridges and score each on retrieval quality and on $S_k$:

  • fiction relevance model, the original Fiction_RLM;
  • non-fiction relevance model;
  • decade-sliced fiction models (1800–1849 versus 1850–1899), to test whether era changes the skew;
  • nearest-neighbour expansion from the period fastText spaces;
  • expansions generated by a modern LLM, in the style of InteR.

The decade comparison is the temporal test. If later-century fiction yields different $A(q)$ and $S_k$ under a fixed query set, the bias carried by the bridge depends on the period the bridge comes from, not only on the genre.

The intervention is "gender-neutral-gated expansion." It runs only when a lightweight classifier flags the query as gender-neutral, and it is checked against historian labels. The gate leaves gender-specific queries untouched, which protects legitimate factual retrieval in the same way DiFair separates neutrality from knowledge. When the gate fires, expansion terms whose association magnitude exceeds a threshold are handled in one of two ways: dropped, or paired with their counterpart term at equal weight (for example, "matron" with "master"). The threshold is tuned on a held-out query split.

Baselines

The naive reference point is BM25 with no expansion. On the original 35 BL19 queries, Cultural Analytics for Good reports MAP 0.4993, recall 0.5942 and nDCG 0.5653. We will rerun it on the extended query set, together with its $S_k$.

The strongest existing method is Fiction_RLM, with reported MAP 0.5743, recall 0.6944 and nDCG 0.6183 on BL19 in the same paper. It is the strongest competitor because it is the only method in this literature shown to close the historical genre gap. It is also the bridge we suspect of carrying bias. We will rerun it with the original expansion depth and term count on the identical index. Every variant gets the same hyperparameter search budget on the same development split.

The non-fiction relevance model is a second reference; the file describes it as weaker than Fiction_RLM, but no reported result was found on Lacuna for its scores. A linear interpolation of fiction and non-fiction expansion is the natural "just mix them" competitor, with the mixing weight tuned for MAP.

A zero-shot dense retriever (BGE and Contriever, the encoders used in Temporal-aware Matryoshka Adaptation) tests whether expansion is needed at all. No reported result was found on Lacuna for dense retrievers on BL19.

A post-hoc fairness reranker reorders the Fiction_RLM top-100 to drive $S_k$ toward zero using the document labels. It can see document labels at search time, which our method cannot, so we treat it as an upper bound on skew reduction.

The key ablation removes the same number of expansion terms at random, or by lowest relevance weight, rather than by gender association. It tells us whether any skew reduction comes from targeting gender-coded terms or simply from a shorter, less noisy expansion.

The intervention counts as beating Fiction_RLM if three conditions hold on gender-neutral queries:

  • it reduces mean $|S_{10}|$ by a margin outside the bootstrap confidence interval;
  • it retains at least most of Fiction_RLM's MAP gain over BM25;
  • it causes no significant MAP loss on gender-specific queries.

It also has to beat the matched random-removal ablation on skew.

Why not just…?

Why not just use non-fiction expansion, or interpolate the two? Non-fiction expansion is reported to retrieve less well, and interpolation simply trades the fiction model's recall for less of its noise. The question is whether the gated edit sits on a better trade-off curve between MAP and skew than every interpolation weight. We will plot that full curve. If interpolation matches the intervention, we will report the result as an audit finding and drop the method claim.

Why not just switch to a dense retriever? This is a real threat. A modern dense encoder might close the vocabulary gap without any period expansion. However, the occupational-stereotyping results for 2020–2024 Wikipedia in From n-gram to Attention suggest that modern encoders bring their own skew. We measure both MAP and $S_k$ for dense retrievers. If they win on both, expansion is moot, and the contribution becomes the skew measure and the finding that representational bias predicts the retrieval harm.

Why not just rerank results for exposure fairness? A fairness reranker needs a demographic label for every document at search time, which is costly across 35,000 works. Rebalancing toward parity would also misrepresent the archive. With $p^{*}$ as the target, the reranker becomes a fair upper bound. If it costs far less MAP than our query-side edit, practitioners should prefer it wherever labels exist, and we will say so.

Why not just debias the fiction corpus before training the bridge? DiFair shows that counterfactual augmentation cuts factual gender knowledge from 58.02 to 34.05 in BERT-base. Rewriting the source corpus would likewise erase period-accurate associations that historians need. We include an augmented Fiction_RLM to check whether the same collapse appears on gender-specific queries.

Decisive Checks

The first check is the per-query correlation between $A(q)$ and the change in $S_{10}$ relative to BM25, pooled over bridges. A slope indistinguishable from zero falsifies the claim that bias in the bridge reaches the ranking.

The second is the decade comparison. A significant difference in skew between 1800–1849 and 1850–1899 fiction bridges, under fixed queries, would establish that the period of the bridge matters and not only its genre.

The third is the trade-off between MAP and skew against interpolation, the random-removal ablation and the fairness reranker. Unless the gated edit is on or near the best curve, the proposal reduces to its diagnostic contribution.

Finally, historian verification of the document labels must reach acceptable agreement before any skew number is reported.