When machine learning models process text, images, or audio, they map these inputs into high-dimensional vector spaces known as embeddings. In these spaces, semantic similarity is represented as geometric proximity: words or concepts that share meanings are clustered close together. However, because these models are trained on massive, uncurated datasets scraped from the web, they do not just learn dictionary definitions; they also absorb human prejudices. If a model places the vector for "doctor" closer to "man" than to "woman," that geometric asymmetry is an implicit bias.
Embedding association testing is a methodology designed to audit these latent spaces. It transforms psychological frameworks into precise geometric measurements to uncover biases before they manifest in downstream applications.
Translating Psychology to Geometry
In social psychology, the Implicit Association Test (IAT) measures human bias by tracking reaction times when pairing target concepts (such as racial groups) with evaluative attributes (such as pleasant or unpleasant words). As highlighted by Wenbin Zhang et al. in Fairness in Large Language Models: A Taxonomic Survey, embedding-space association metrics adapt this concept by replacing human reaction times with mathematical distances.
The foundational tool for this is the Word Embedding Association Test (WEAT), discussed in an educational context by Todd W. Neller et al. in Model AI Assignments 2020. To understand why it works, imagine two sets of target words, $X$ (e.g., male terms like brother, father) and $Y$ (e.g., female terms like sister, mother), and two sets of attribute words, $A$ (e.g., career terms) and $B$ (e.g., family terms). WEAT computes the relative cosine similarity of the target words across both attribute sets. If the vectors in $X$ consistently exhibit a smaller angle (higher cosine similarity) to $A$ than to $B$ compared to the vectors in $Y$, the model possesses a systematic implicit stereotype.
Alternative formulations offer different geometric perspectives on this space:
- Embedding Coherence Test (ECT): Utilized by Anthony Rios et al. in Quantifying 60 Years of Gender Bias in Biomedical Research with Word Embeddings and by Tobias Walter et al. in Diachronic Analysis of German Parliamentary Proceedings: Ideological Shifts through the Lens of Political Biases, ECT measures the Spearman's rank correlation of attribute words with a single set of target words. This is particularly useful for analyzing how a specific category, like occupations or medical conditions, carries a skewed alignment.
- Relational Inner Product Association (RIPA): Also leveraged by the authors of Quantifying 60 Years of Gender Bias in Biomedical Research with Word Embeddings, RIPA isolates a single "bias vector" (e.g., a gender axis) by subtracting the average female vector from the average male vector. Taking the scalar projection (dot product) of individual words against this axis directly quantifies their alignment with that specific concept.
Expanding Across Modalities
The intuition behind embedding association testing is not restricted to text. Any model that projects data into a continuous vector space can be audited using the same geometric principles.
Computer Vision and Vision-Language Models
In unsupervised computer vision, Ryan Steed introduced the Image Embedding Association Test (iEAT) in Image Representations Learned With Unsupervised Pre-Training Contain Human-like Biases. The author demonstrated that visual models cluster images of specific demographic groups closer to negative or positive visual descriptors in their latent space, mirroring human prejudices regarding race, gender, and disability.
For vision-language models like CLIP, which map images and text into a shared latent space, embedding association testing operates across modalities. Aylin Caliskan et al. demonstrated in American == White in Multimodal Language-and-Image AI that visual representations of White individuals align more strongly with the textual concept of "American" than those of non-White individuals. Similarly, Robert Wolfe et al. in Contrastive Language-Vision AI Models Pretrained on Web-Scraped Multimodal Data Exhibit Sexual Objectification Bias quantified sexual objectification bias by measuring the cosine similarity between image embeddings of women and text descriptors of humanizing versus objectifying concepts.
To isolate these effects precisely, Carina I. Hausladen et al. in Social Perception of Faces in a Vision-Language Model calculated a "delta cosine similarity," subtracting the similarity of a neutral prompt from a valenced prompt to account for baseline structural biases in neutral descriptions.
Generative Models
In text-to-image generation, Jialu Wang et al. developed T2IAT in T2IAT: Measuring Valence and Stereotypical Biases in Text-to-Image Generation. This framework measures the proximity of generated image embeddings to attribute-specific image sets, revealing that generative models often amplify stereotypes present in text.
This vulnerability was highlighted by Lukas Struppek et al. in The Biased Artist: Exploiting Cultural Biases via Homoglyphs in Text-Guided Image Generation Models, where the authors used visually identical homoglyphs to shift text prompts, measuring the resulting semantic drift via cosine similarity against cultural concept vectors.
Audio and Speech
In the audio domain, Isaac Slaughter et al. created the Speech Embedding Association Test (SpEAT) in Pre-trained Speech Processing Models Contain Human-Like Biases that Propagate to Speech Emotion Recognition. Concurrently, Yi-Cheng Lin et al. in On the social bias of speech self-supervised models applied embedding association testing to speech self-supervised models, proving that acoustic representations inherently link demographic target embeddings (like age or nationality) to specific valence attributes.
Refining and Disentangling the Latent Space
As the field matured, researchers realized that raw cosine similarity can be a noisy metric. Yupei Du et al. evaluated the reliability of these measures in Assessing the Reliability of Word Embedding Gender Bias Measures, noting that while stable across random seeds, different mathematical formulations can yield divergent results depending on the embedding algorithm.
A major challenge in non-English languages is grammatical gender. As Shiva Omrani Sabbaghi argues in Measuring Gender Bias in Word Embeddings of Gendered Languages Requires Disentangling Grammatical Gender Signals, inanimate nouns carrying grammatical gender signals can pollute semantic measurements. By iteratively stripping away these grammatical signals, the author revealed that underlying social biases are often stronger than initially measured.
Similarly, Anne Lauscher et al. introduced AraWEAT in AraWEAT: Multidimensional Analysis of Biases in Arabic Word Embeddings, using unsupervised clustering to show that if an algorithm can cleanly separate target word clusters without labels, the space contains implicit stereotypical information. To capture even subtler dynamics, Ranwa Aly et al. proposed the Relative Difference in Cosine Similarity (RDCS) metric in ArGAN: Arabic Gender, Ability, and Nationality Dataset for Evaluating Biases in Large Language Models to measure the disparity between descriptor-adjective pairs and counterfactual non-responses.
Why It Matters: Propagation to Downstream Harms
Why do we care about the geometry of an embedding space? Because these internal representations serve as the foundation for downstream tasks. Kshitish Ghate et al. demonstrated a powerful correlation ($\rho = 0.83$) between intrinsic embedding bias and extrinsic performance in zero-shot retrieval tasks in Biases Propagate in Encoder-based Vision-Language Models: A Systematic Analysis From Intrinsic Measures to Zero-shot Retrieval Outcomes, proving that latent prejudices systematically propagate into real-world outcomes.
When embeddings are biased, downstream applications inherit those flaws. For example, Clara Rus et al. showed in Closing the Gender Wage Gap: Adversarial Fairness in Job Recommendation how vector-based proxy matching in job recommendation systems can lead to economic disparities, such as a gender wage gap in recommended roles.
Understanding this geometric root cause allows for targeted interventions. Ewoenam Kwaku Tokpo et al. designed classifiers to probe for residual bias after mitigation in How Far Can It Go? On Intrinsic Gender Bias Mitigation for Text Classification, while Daiki Shirafuji et al. demonstrated in Bias Vector: Mitigating Biases in Language Models with Task Arithmetic Approach that bias can be treated as a vector in parameter space and subtracted directly using task arithmetic. By treating bias as a measurable geometric property, embedding association testing provides the diagnostic tools necessary to build fairer, more equitable AI systems.