When researchers ask whether a biomedical language model links "anorexia" or "hysteria" more closely to women than to men, they score each disorder name as one indivisible word. A clinical trait, though, is usually two things joined together: a body part or physiological system (the entity, such as heart, adipose tissue, or mood) and something said about it (the quality, such as enlarged, decreased, absent, or abnormal). Phenotype ontologies already record this split for tens of thousands of terms. We propose to use those recorded splits to build crossed test sets, where the same entity appears with many qualities and the same quality appears on many entities. We then fit a simple additive model to embedding bias scores. That lets us state, with uncertainty, how much of a term's gender association comes from its anatomy, how much from its modifier, and how much from neither.
This matters for two reasons. First, the fix depends on the answer. A model that ties reproductive anatomy to women is not doing the same thing as one that ties "excessive" or "behavioral" qualities to women regardless of organ. Second, bias measurement in embeddings is currently unstable. Different scoring formulas rank the same words with agreement of only about 0.2 to 0.4 (Assessing the Reliability of Word Embedding Gender Bias Measures). Estimating entity and quality effects by pooling across many crossed terms should average out word-specific noise, such as frequency and polysemy. If it does, the resulting scores should be more stable, and more consistent across formulas, than scores for single words.
Core Claim
Our claim is that a term's gender association in biomedical embeddings is largely additive in its ontology-defined entity and quality. We further claim that these effects transfer to opaque single-word terms, which carry no surface cue about their parts. The test is to fit entity and quality effects only on transparent phrasal labels such as "enlarged heart". If those effects then predict the bias of opaque synonyms such as "cardiomegaly" from their logical definition alone, the model has picked up something about the concepts, not about the adjective "enlarged". The second claim is that entity and quality effect estimates agree across scoring formulas substantially more than raw word scores do.
The closest existing work tracked gender bias in decade-specific PubMed word embeddings from 1960 to 2020 (Quantifying 60 Years of Gender Bias in Biomedical Research with Word Embeddings). It used three association tests. WEAT compares how close two sets of target words sit to two sets of attribute words. ECT correlates similarity profiles. RIPA projects each word onto a male-minus-female direction. It found that bias for psychiatric conditions stayed high while occupational stereotypes faded. That paper motivates this proposal, but it scores flat DSM-5 strings and cannot say whether "dysmorphic" is female-associated because of the body or because of the evaluative quality. A clinical decision-making audit found specialty-specific skews, masculine in cardiology and feminine in ophthalmology and dermatology (How Can We Diagnose and Treat Bias in Large Language Models for Clinical Decision-Making?). It also scores whole explanations with sentence embeddings, which again leaves the entity–quality question open. We supply the decomposition that both lack.
Research Program
The method comes from the phenotype-ontology literature. The Unified Phenotype Ontology (uPheno) generates tens of thousands of phenotype terms from 262 design templates. These templates are short blueprints that say "quality Q inheres in entity E" and are filled with ontology identifiers from tables (The Unified Phenotype Ontology (uPheno): A framework for cross-species integrative phenomics). We take human phenotype terms whose logical definitions come from these templates. From them we extract a sparse entity-by-quality grid, keeping entities and qualities that each appear in several cells so that effects can be estimated.
The Ontology of Biological Attributes (OBA) adds a contrast we exploit directly. It defines 7,807 neutral traits, such as "heart size" or "blood glucose amount", with no judgment of normal or abnormal (The Ontology of Biological Attributes (OBA)—computational traits for the life sciences). For each entity we can therefore score the neutral attribute alongside its abnormal states. That separates "the organ is gendered" from "pathologizing the organ is gendered."
For each term $t$ we compute a gender association score $s(t)$ under each of three rules: RIPA projection, the direct-bias style score, and a neighborhood-based score. These are the formulas compared in the reliability study. We use the male and female word lists from the PubMed study so results are comparable to it. We then fit a crossed mixed-effects model:
$$ s(t) = \mu + a_{E(t)} + b_{Q(t)} + \gamma \log f(t) + \varepsilon_t , $$
Here $a_{E(t)}$ is the random effect of term $t$'s entity, and $b_{Q(t)}$ is the random effect of its quality. The term $\gamma \log f(t)$ controls for log corpus frequency $f(t)$, since rare words are known outliers in these tests. The residual $\varepsilon_t$ is left over for each term. The quantities we report are the variance components: the share of bias variance attributable to entity, to quality, and to residual. We also report estimates for individual entities and qualities, with intervals from bootstrapping over terms and over embedding training seeds.
Where the grid is dense enough, we add an entity-by-quality interaction and test whether it improves held-out fit. Ontology hierarchies let us pool entities up to organ systems, using part-of relations, and qualities up to PATO categories. For example, "increased size" rolls up to size, and size rolls up to morphology. This gives effects at a coarser level with more support.
The embeddings are of two kinds. The first is decade-specific Skip-Gram models retrained on PubMed titles and abstracts following the PubMed study, with several random seeds per decade. The second is a contextual sentence encoder of the SBERT type used in the clinical audit, applied to term labels. For the static models, multiword labels are averaged. Averaging is a known weakness, and the opaque-synonym test below is designed to expose it if it distorts results.
Cosine similarity can be arbitrary under rescalings of the embedding dimensions (Is Cosine-Similarity of Embeddings Really About Similarity?). For that reason we compute every score with both cosine and raw dot product and report whether the variance decomposition survives the switch.
Baselines
The naive reference point is the current practice: score each term as a flat word or label and report the per-term ranking. This is what the PubMed study does. The Lacuna file reports no numeric per-term bias values from that study, only qualitative findings, such as addiction terms being male-associated and appearance disorders female-associated. Our first comparison is therefore internal. We compute flat scores on the same terms, embeddings, and seeds, and measure seed-to-seed reliability and agreement across scoring formulas.
The strongest reported figure bearing on our second claim is from Assessing the Reliability of Word Embedding Gender Bias Measures. It reports that agreement between scoring formulas on word-level rankings is "typically between 0.2 and 0.4" Spearman. That figure comes from general-domain corpora, WikiText-103 and Reddit, not biomedical text. We first reproduce the flat agreement level on our biomedical terms and then compare against it. Beating it means that the Spearman agreement between formulas on entity and quality effect estimates clearly exceeds the flat-term agreement on the same data. The margin must exceed the bootstrap interval.
The strongest competing explanation is category grouping without the crossed design. Here we average flat scores within coarse semantic groups, either organ system for entities or quality category for qualities, as an auditor could do from UMLS semantic types without any logical definitions. This baseline is strong because it captures most of what an "entity effect" might mean. It is fair because it uses exactly the same terms, embeddings, frequency covariate, and bootstrap.
The ablation that isolates our key ingredient fits an entity-only model and a quality-only model separately. It then compares their held-out prediction of term bias with the additive model. The crossing is what lets quality effects be separated from which qualities happen to co-occur with which organs. If the additive model does not improve on the better single-factor model under ten-fold cross-validation over terms, the decomposition adds nothing.
A frequency-only regression of bias on log frequency serves as a nuisance floor that every model must beat.
Why not just…?
Why not just average flat scores by organ system? For some entities this may work as well as our model, and the experiments will say so. The concern is confounding. If reproductive-system terms are disproportionately phrased with "abnormal" and endocrine terms with "increased level", grouping by organ attributes quality effects to anatomy. The additive model and the organ-grouping baseline make different predictions for held-out cells that pair a familiar entity with an unfamiliar quality. We compare held-out error on exactly those cells. If organ grouping matches the additive model there, we will report that quality effects are negligible, and that is a substantive finding in its own right.
Why not just project out nuisance directions with a linear classifier? For grammatical gender this works. Removing a learned gender hyperplane from inanimate nouns raised social-bias effect sizes by 0.24 on average (Measuring Gender Bias in Word Embeddings of Gendered Languages Requires Disentangling Grammatical Gender Signals). Projection removes a known binary nuisance, but it does not tell you which of two meaningful parts carries the bias. It also yields no named, reusable effects for organs or qualities that can be checked against clinical knowledge. As a check, we train linear probes for entity category and for quality category and remove each in turn. We then test whether the bias that remains matches the change our variance components predict.
Why not just embed full clinical sentences with a contextual encoder and skip the ontology? The clinical audit shows that holistic sentence-level scores detect bias but cannot localize it. Its debiasing efforts also traded gender improvement (SkewSize from −0.25 to −0.02) for worse ethnic disparities (How Can We Diagnose and Treat Bias in Large Language Models for Clinical Decision-Making?). We include the contextual encoder as one of our embedding models rather than as a rival. The question is whether the entity–quality decomposition holds for it too, not whether it replaces the decomposition.
Proposed Experiments
The first decisive check is the opaque-synonym transfer test. We fit entity and quality effects only on phrasal labels whose words literally contain the quality, such as "enlarged heart" or "decreased body weight". We then predict the bias of single-word synonyms that share the same logical definition, such as "cardiomegaly" or "cachexia", using $\hat a_E + \hat b_Q + \hat\gamma \log f$. The measure is the Spearman correlation between predicted and observed scores on opaque synonyms. It is compared against the organ-grouping baseline and the frequency-only floor.
A positive result means the decomposition reflects concept meaning. A null result, with phrasal fit still high, means the phrasal effects were lexical artifacts of words like "enlarged". That outcome would be a useful negative finding about compositional bias.
The second check is agreement across scoring formulas and across seeds. We compute agreement between RIPA, direct bias, and the neighborhood score at three levels: flat terms, entity effects, and quality effects. Each is computed for each PubMed decade and for both cosine and dot-product geometry. We expect higher agreement at the effect level, because each effect pools many terms. If agreement stays in the 0.2 to 0.4 range, pooling does not rescue metric instability, and the diagnosis in the reliability study holds at the concept level too.
The third check is the neutral-versus-abnormal contrast. For entities covered by both OBA attributes and abnormal phenotype terms, we test whether the female or male lean grows when the neutral trait becomes a pathological state. We ask whether that growth depends on the entity, for instance whether pathologizing reproductive or psychiatric-behavioral entities shifts more than pathologizing cardiovascular ones. We track this across decades to see whether the persistence of psychiatric bias reported in the PubMed study sits in entity effects or quality effects.
The fourth check is a qualitative consistency test against downstream behavior. The clinical audit reports masculine skew in cardiology and feminine skew in dermatology and ophthalmology. We check whether our entity effects for cardiovascular, skin, and eye anatomy point the same way. We treat this only as a direction check, because that paper reports no per-entity numbers we could correlate against.
All analyses use the male and female word lists of the PubMed study, so they inherit its binary framing. We state this limitation plainly rather than extend the attribute sets without validated lists.
References
- Assessing the Reliability of Word Embedding Gender Bias Measures
- Quantifying 60 Years of Gender Bias in Biomedical Research with Word Embeddings
- How Can We Diagnose and Treat Bias in Large Language Models for Clinical Decision-Making?
- The Unified Phenotype Ontology : a framework for cross-species integrative phenomics
- The Ontology of Biological Attributes (OBA)—computational traits for the life sciences
- Is Cosine-Similarity of Embeddings Really About Similarity?
- Measuring Gender Bias in Word Embeddings of Gendered Languages Requires Disentangling Grammatical Gender Signals