Many standard tests for social bias in word vectors ask whether a word such as "nurse" sits closer to "she" than to "he." Closeness is usually measured by cosine similarity, the angle between the two vectors. The trouble is that a word's position in the space depends heavily on how often it appears in the training text. Frequent words act as hubs: points that show up as the nearest neighbor of an unusually large number of other words, whatever those words mean. "He" is 3 to 4 times more frequent than "she" in English Wikipedia, so a bias test built on raw cosine can report strong gender bias in text that contains no meaning at all. On word-shuffled Wikipedia, the embedding gender metric for GloVe reported Cohen's $d$ above 1.0 for frequent words (Valentini et al., 2022).
This note proposes a different bias score. It asks how unusually close a target word is to an attribute word, judged against the similarities each of those two words normally has to the rest of the vocabulary. This is the Mutual Proximity idea from the hubness literature, applied to demographic association. The claim is that most frequency-driven false bias comes from attribute words differing in how strongly they pull on everything around them. If so, measuring association relative to each word's own neighborhood should remove the false bias while keeping the indirect associations that corpus counting methods miss. We test this with a null corpus, where true bias is zero, and with corpora containing planted bias of known strength and kind. That gives the metric both a false-positive rate and a detection rate, which the field currently lacks.
Core Claim
Frequency distorts bias metrics mainly through each word's baseline similarity to the whole vocabulary, its hubness, rather than through meaning. Raw frequency is only a partial stand-in for hubness. Two words of the same frequency can differ in norm and in how widely their instances spread. Zhou et al. (2022) found that frequency correlates with the spread of a word's contextual instances at only $r = 0.62$, and that frequency still predicts cosine similarity after controlling for polysemy and part of speech.
The proposed score, which we call $Bias_{MP}$, replaces cosine with Mutual Proximity. For a target $t$ and attribute word $a$ with cosine $s_{ta}$, let $F_t$ be the cumulative distribution of $t$'s cosines to a fixed reference vocabulary, and define $F_a$ the same way. Then
$$MP(t,a) = F_t(s_{ta})\,F_a(s_{ta}),$$
which is roughly the chance that $a$ is closer to $t$ than a random word is, from both words' points of view at once. The bias of a target is
$$Bias_{MP}(t) = \frac{1}{|A_1|}\sum_{a \in A_1} MP(t,a) - \frac{1}{|A_2|}\sum_{a \in A_2} MP(t,a),$$
where $A_1$ and $A_2$ are the two attribute sets, for example male and female terms.
The score only needs similarities from the handful of target and attribute words to a sampled reference vocabulary. That avoids the full vocabulary-by-vocabulary cost usually cited against Mutual Proximity.
The claim makes four testable predictions. First, $Bias_{MP}$ is near zero on frequency-preserving null text. Second, it detects planted first-order associations, where the words appear together directly, as well as raw cosine does. Third, unlike corpus-level pointwise mutual information (PMI), it detects planted second-order associations, where the target shares contexts with a gendered proxy but never appears next to a gendered word. Fourth, it is stable under the frequency manipulations that flip the sign of raw cosine bias (Valentini et al., 2023).
Relation to Prior Work
Two lines of work motivate the proposal, and neither touches the other.
The bias line shows the symptoms. Ethayarajh et al. prove that the Word Embedding Association Test (WEAT) is sensitive to frequency and propose RIPA, which projects vectors onto a gender direction without normalizing their length. Valentini et al. (2022) and Valentini et al. (2023) build shuffled null corpora and show false bias and sign reversals in static embeddings. Brunet et al. show that removing under 1% of training documents can change bias scores. None of these papers measures hubness, and none tries a hubness correction.
The hubness line supplies the method. Nielsen and Hansen combine f-norm, a rank-based rescaling of each dimension, with Mutual Proximity and cut hubness by up to 83% in Sentence-BERT spaces. They evaluate only classification error. Wannasuphoprasit et al. discount vector norms by log-frequency and evaluate only word-in-context similarity. FRAGE removes frequency information adversarially during training. We reuse Mutual Proximity but change its role: from a retrieval fix to the definition of an association score, and we validate it against known ground truth rather than downstream accuracy.
Zhou et al. (2022) constrains the design. They show that frequent words in contextual models have their similarity underestimated, while static models inflate it (see Faruqui et al.). A useful bias score must therefore handle distortion in either direction. Scoring each pair by rank against each word's own similarity distribution handles both. A fixed frequency penalty handles only one.
Research Program
We build three kinds of test corpus from April 2021 English Wikipedia.
The null corpus is the word-shuffled version from Valentini et al. It keeps exact word counts and removes all meaning.
The frequency-manipulated corpora downsample "he" relative to "she" at several ratios, reproducing the published sign reversals.
The planted corpora add bias of known strength to the null corpus. Sentences inserted at controlled rates $r$ link chosen neutral targets either directly to female terms (first-order) or to a proxy word that itself co-occurs with female terms (second-order). Inserted male-context sentences keep total pronoun counts fixed, so the planted signal cannot be confused with a frequency change.
On each corpus we train Skip-Gram with Negative Sampling (SGNS), GloVe and FastText over several random seeds. We then compute raw cosine bias, $Bias_{MP}$ and the baselines below.
We also run a diagnostic that does not depend on the new score. For every word we compute a hub score: its mean cosine to the reference vocabulary, and its $k$-occurrence count, meaning how often it appears in other words' $k$ nearest neighbors. We then regress the false bias each target shows on the null corpus on log-frequency and hub score together. If hub score explains variance beyond frequency, the mechanism claim holds. We also compute the skewness of $k$-occurrence counts for the standard WEAT attribute lists themselves, which no one has reported.
For contextual models, we cannot retrain BERT on shuffled text, so the null condition is replaced with a placebo. Two sets of non-gendered words are chosen so that their frequency ratio in BookCorpus matches the male-to-female ratio, and they stand in for gendered attributes inside the same sentence templates. Any bias measured between placebo sets is spurious by construction.
We extract template-embedded vectors from BERT-base-uncased and RoBERTa, and sentence vectors from all-mpnet-base-v2. We then test whether the sign of placebo bias flips between static and contextual models, as the underestimation results of Zhou et al. (2022) predict. Finally we check whether $Bias_{MP}$ removes the placebo bias in both regimes.
Baselines
Raw cosine. The do-nothing reference is the standard embedding gender metric and WEAT effect size computed with raw cosine. On the null corpus this is the number to beat: Cohen's $d$ above 1.0 for high-frequency GloVe words (Valentini et al., 2022).
PMI bias. The strongest existing method for static embeddings is $Bias_{PMI}$. It divides co-occurrence counts by each word's frequency and reports approximately zero bias on shuffled text (Valentini et al., 2022). We compute it from the same corpora and window sizes used to train the embeddings. It is the right bar for the null test and should fail the second-order planted test. Beating it means matching its near-zero null bias and exceeding its detection rate on second-order plants.
Frequency-matched permutation calibration. This is the strongest cheap competitor. For each test we draw 1,000 random pairs of attribute sets whose frequency distributions match the real sets, and report the real score's z-score against that null. It gets the same reference-vocabulary budget as $Bias_{MP}$.
Log-frequency residualization. A regression removes the part of each target's raw bias predicted by log-frequency.
Geometric corrections applied before the raw metric. We apply f-norm alone and f-norm plus full Mutual Proximity as in Nielsen and Hansen. For BERT we add norm discounting as in Wannasuphoprasit et al.. Its tunable parameters get the same Bayesian optimization budget, tuned only on the null or placebo condition, never on the test condition.
RIPA is included as the projection-based alternative from Ethayarajh et al.. Conceptor debiasing (Karve et al.) is included to check whether removing the bias subspace also removes the frequency artifact. That paper reports GloVe pronoun effect size falling from 1.81 to 0.13, but measured with the raw metric.
Output-probability reference. For masked language models, AULA (Kaneko and Bollegala), which achieves area under the curve (AUC) 0.71 against human bias ratings on CrowS-Pairs versus 0.57 for the older CPS score, serves as a reference point. We ask whether corrected embedding scores agree more with AULA than raw scores do.
Ablation. We compare three versions of the score. One-sided local scaling standardizes only by the target's own distribution, $F_t$. A second version uses the attribute's distribution, $F_a$, only. The third is the full two-sided Mutual Proximity. This isolates whether correcting the attribute words' hub pull is the active ingredient, as the core claim predicts.
Why not just…?
Why not just frequency-match the attribute lists? Natural gendered vocabulary cannot be matched in frequency without discarding most of it; "he" is simply 3 to 4 times more frequent than "she." Matching also ignores the evidence that geometry varies beyond frequency (Zhou et al., 2022). The permutation-calibration baseline is the practical form of this idea, and it is a real threat. If our regression shows that hub score adds nothing beyond frequency, calibration should perform as well as $Bias_{MP}$, and we will report that the cheaper fix suffices.
Why not just use PMI? PMI passes the null test. However, it counts only direct co-occurrence, and embeddings amplify gender association beyond what corpus counts show: by 0.197 to 0.291 in the measure of Ethayarajh et al.. PMI also has no counterpart for contextual or sentence vectors. The second-order planted corpus measures this gap directly. If PMI detects second-order plants as well as $Bias_{MP}$, the advantage for static embeddings disappears.
Why not just use AULA, or debias the subspace? AULA scores model output probabilities. It says nothing about the vector spaces people use for search and clustering, where Sentence-BERT hubness exceeds $k$-skewness 3 (Nielsen and Hansen). Conceptor debiasing is reported as inconsistent on BERT and can create reverse bias (Karve et al.). Its null-corpus score will show whether it removes the frequency artifact or only the gender direction.
Decisive Checks
The primary check has three parts, averaged over seeds and model families. On the null corpus, the fraction of targets flagged as significantly biased should fall to near the nominal 5%. On the frequency-manipulated corpora, sign reversals should be rare. On planted corpora, detection AUC should hold or rise across plant rates $r$. The comparison with PMI on second-order plants is the decisive one.
The mechanism check is whether hub score predicts null-corpus false bias beyond log-frequency. For contextual models, the check is whether placebo bias changes sign between static and contextual models, and whether $Bias_{MP}$ removes it in both. We have found no reported result on Lacuna for any bias metric under hubness corrections, for $k$-skewness of attribute lists, or for placebo-attribute tests in BERT. All three are new measurements rather than attempts to beat a reported number.
The idea fails in two cases. It fails if permutation calibration matches it everywhere. It also fails if $Bias_{MP}$ removes the null bias only by losing sensitivity to planted signals, which would show up as a drop in detection AUC relative to raw cosine.
References
- The Undesirable Dependence on Frequency of Gender Bias Metrics Based on Word Embeddings
- Problems with Cosine as a Measure of Embedding Similarity for High Frequency Words
- Investigating the Frequency Distortion of Word Embeddings and Its Impact on Bias Metrics
- Understanding Undesirable Word Embedding Associations
- Understanding the Origins of Bias in Word Embeddings
- Hubness Reduction Improves Sentence-BERT Semantic Spaces
- Solving Cosine Similarity Underestimation between High Frequency Words by \ell₂ Norm Discounting
- FRAGE: Frequency-Agnostic Word Representation
- Problems With Evaluation of Word Embeddings Using Word Similarity Tasks
- Conceptor Debiasing of Word Representations Evaluated on WEAT
- Unmasking the Mask - Evaluating Social Biases in Masked Language Models