Who the Model Says vs. What the Model Does: Functional Profiling of Gender in LLM Generation

Most audits of gender bias in language models measure bias the way early microbiome studies measured gut bacteria. They count labels. A typical audit asks how many generated characters are "he" versus "she," or whether a model picks the stereotyped answer in a short quiz. Microbiology learned that a census of which species are present says little about what the community is actually doing. Different species perform the same chemistry, and the same species behaves differently in different conditions, so researchers moved from DNA catalogs to measuring the molecules that were actually produced. This note proposes the same move for gender bias. Instead of counting gender labels in model output, we measure the functional profile each character receives: the actions they take, the traits and competence they are given, their occupation, and their role in the story. We then ask whether that profile shifts with the gender cue the character was introduced with. The cue is treated as a continuous quantity (how often a name was historically given to boys) and as an open set of pronouns ("he," "she," "they," "xe"), not as a binary switch.

The opportunity exists because label-level evaluation has visibly broken down. Bias in Language Models: Beyond Trick Tests and Towards RUTEd Evaluation found that short "trick test" benchmarks have an average Spearman rank correlation of only 0.12 with bias measured in realistic long-form generation. The same paper found near-zero correlation between its three realistic tasks, and it explicitly restricts itself to binary gender. We hypothesize that part of this incoherence comes from measuring the wrong layer. Pronoun counts are the "taxonomy" of generated text, and a model can be perfectly balanced in counts while writing "they" characters as helpers and "he" characters as heroes.

Core Claim

The claim is that gender bias in generation is better described by how character function depends on the gender cue than by how often each gender label appears. We expect the two to come apart in the same two ways taxonomy and function come apart in microbial ecology. The first is redundancy: different cues receive the same treatment, so label skew exists without any functional difference. The second is plasticity: the same cue receives different treatment depending on context, so functional differences exist without label skew. Concretely, we predict three things. Function-level bias will be more consistent across tasks and contexts than the label-level skew RUTEd measured. A binary comparison of only the male and female endpoints will miss systematic, non-monotonic treatment of gender-neutral names and non-binary pronouns. And a tiered audit, running from internal representations to long-form behavior, will show where in the stack static benchmarks stop predicting behavior.

The headline quantity is functional leakage. Take a character's profile $f$, with all names and pronouns removed. Let $g$ be the gender cue that introduced the character, either a pronoun set or the fraction of babies with that name recorded as male in Social Security Administration (SSA) data. Leakage is how well a held-out predictor $h$ recovers $g$ from $f$:

$$L = \mathrm{score}\big(h(f),\, g\big),$$

where the score is cross-validated AUC for pronoun-set cues and $R^2$ for the continuous name cue. If $L$ is at chance, the model treats characters the same regardless of cue, whatever their label counts. Alongside $L$ we plot dose-response curves: each profile dimension, such as an agency score, against the continuous name-gender fraction. These curves expose behavior at the neutral middle of the scale, which binary audits never inspect.

Relation to Prior Work

The microbiome papers serve as the methodological lens, not as data. Analysis of the structure and metabolic function of microbial community in cigar tobacco leaves shows that functional predictions inferred from DNA miss what is actually expressed. Ammonia-oxidizing archaea adapted better to the dark, alkaline oligotrophic karst cave shows that a single marker gene misrepresents community activity. In Gut microbiota may be involved in Alzheimer's disease pathology by dysregulating pyrimidine metabolism in APP/PS1 mice, the disease signal surfaced only once metabolites were measured directly (pyrimidine metabolism, P = 0.044). The 16S taxonomy offered only a phylum-ratio correlation. From these papers we borrow two design principles. The first is to measure realized output rather than potential. The second is to measure the layers in between, so you can see where prediction fails. We do not claim that gender and microbes are the same kind of object.

On the fairness side, three papers motivate the gap. RUTEd (Beyond Trick Tests and Toward RUTEd Evaluation) supplies our tasks and metrics, and we extend it in two ways: from binary to continuous and non-binary cues, and from label metrics (neutrality, skew, stereotype) to per-character functional profiles. Beyond Binary Gender Labels shows models exceed 80% accuracy on binary names but fall below 40% on neutral ones, with Llama 3 reaching as low as 7.17% on France data. It studies only whether models can classify neutral names. We study what models do to characters bearing those names. That paper's arbitrary 10% neutrality threshold is also what motivates using the raw SSA proportion as a continuous axis. Gender, Race, and Intersectional Bias in Resume Screening shows that removing identity tokens fails because models rely on latent proxies. Our leakage measure turns that observation into an evaluation: whatever demographic information survives scrubbing is the functional bias.

Two papers constrain the design. Sustainable Modular Debiasing of Language Models notes that counterfactual swapping, where "he" and "she" are exchanged in training text, cannot cleanly handle non-binary forms. This is why we vary cues at generation time rather than rewriting outputs. GECOBench builds male, female and non-binary sentence variants and concedes that discrete pronoun triples oversimplify gender. We keep its pronoun variants as one cue type but add the continuous name axis, and we evaluate behavior instead of explanation attributions.

Research Program

The work has four parts.

First, we build a cue set. It has five pronoun conditions: he, she, singular they, and two neopronoun sets. It also has roughly 300 first names drawn from the US SSA data and stratified across 20 bins of historical male fraction, from almost always female to almost always male. Names are matched on popularity and era within bins.

Second, we generate text. We re-run the three RUTEd tasks (bedtime stories, user personas, ESL exercises) with the protagonist introduced by each cue. We use the same occupations from the WinoBias list that RUTEd uses and at least eight open and API models, including Llama 3 and Mixtral since they have documented neutral-name behavior.

Third, we extract profiles. For every character in every output, a schema-constrained extractor records occupation and seniority, a coarse set of action verbs coded as agentive or passive, trait adjectives mapped to warmth and competence axes, emotional states, and narrative role (protagonist, helper, antagonist, background). All identity tokens are stripped before extraction. The extractor is validated against two human annotators on 1,000 characters, and we report agreement per dimension. Dimensions with Cohen's kappa below 0.6 are dropped, not rescued.

Fourth, we build a tiered audit. Tier 1 is a linear probe of the name-gender fraction from hidden states, available for open models only. Tier 2 is next-token association in occupation templates, in the style of BIG-bench Gender Sensitivity. Tier 3 is the BBQ gender-identity category from BBQ: A hand-built bias benchmark for question answering. Tier 4 is functional leakage in long-form generation. Across models we compute rank correlations between adjacent tiers, which tells us where the chain of prediction breaks.

Baselines

The naive reference point is label-level skew alone: the RUTEd pronoun-count metrics, extended with "they" as a third count. It is computed on exactly the same generations as our profiles. If leakage ranks models identically to skew, the proposal adds nothing.

The strongest existing method is the full RUTEd evaluation (neutrality, skew and stereotype), together with its reported relationship to standard benchmarks: an average Spearman correlation of 0.12, ranging from −0.39 to 0.57, and near-zero agreement between tasks (RUTEd). It is the strongest competitor because it already moves evaluation into realistic generation. We run it with the authors' metric definitions on the same prompts, models, sampling temperature and number of samples per condition as our method. We beat it if functional leakage shows clearly higher cross-task rank consistency, with a bootstrap confidence interval excluding RUTEd's level. We also beat it if leakage detects cue-dependent treatment in conditions where all three RUTEd metrics report parity.

For the static tier, the comparison is BBQ. Its authors report that in ambiguous contexts top models such as UnifiedQA chose the biased answer in roughly 77% of incorrect responses, and that models were 3.4 points less accurate when the correct answer ran against a stereotype. We report the BBQ gender-identity scores for our models only as a tier, not as a competitor to beat.

Two ablations isolate the key ingredients. The first replaces the multi-dimensional profile with a single sentiment-or-regard score per character, which tests whether dimensionality matters. The second collapses the continuous name axis to its two endpoint bins, which tests whether the continuous cue reveals anything binary comparison misses. There is no reported result on Lacuna for functional-profile leakage in any setting, so the baselines above supply our only external numbers.

Why not just…?

Why not just add "they" as a third category to existing skew metrics? This is the most direct cheap alternative, and it is our naive baseline. Evidence from Beyond Binary Gender Labels suggests discrete third categories behave badly: some aligned models use "neutral" as a fallback whenever they are uncertain, so counts of a third label conflate uncertainty with treatment. Counting still says nothing about whether "they" characters are written differently. The decisive check is whether leakage and three-way skew disagree in model rankings. If they agree, we will report that the cheaper metric suffices.

Why not just score outputs with an off-the-shelf sentiment or regard classifier per gender group? This is a real threat. If one scalar captures the cue dependence, the profile machinery is unnecessary. The scalar-regard ablation tests this directly. Our expectation is that bias in narrative generation shows up as role assignment (helper vs. protagonist) and agency more than as sentiment, but this is a hypothesis, and we will drop the extra dimensions if the scalar matches leakage in both cross-task consistency and detection.

Why not just use static benchmarks with non-binary variants, like GECOBench or BBQ's gender-identity category? These benchmarks have well-understood properties, but RUTEd shows that static tests barely predict long-form behavior. Sustainable Modular Debiasing also evaluates only on static suites such as BEC-Pro, where ADELE reduced BERT's bias from 1.33 to 0.39, without checking generation. Our tiered audit measures exactly how much a static non-binary tier predicts the generation tier. If Tier 3 predicts Tier 4 well, then static non-binary benchmarks are adequate, and that is itself a useful finding.

Why not just ask an LLM judge whether each story is biased? Holistic judgments inherit the judge's own gender priors and are hard to compare across cue conditions. Our extractor is also a model, but it reads text with identity tokens stripped and fills a fixed schema checked against human annotators. The scrubbing is what makes leakage interpretable.

Proposed Experiments and Decisive Checks

The first decisive check targets consistency. Across the three RUTEd tasks, compute pairwise Spearman correlations of model rankings by leakage and by RUTEd skew, with a bootstrap over prompts. The core claim fails if leakage is no more consistent than skew, which RUTEd reports as near-zero across tasks.

The second check targets decoupling. Identify model-task cells where three-way skew sits within a parity band but leakage is significantly above chance under a permutation test, and the reverse. Microbial redundancy predicts the first pattern and plasticity predicts the second. Finding neither would mean labels already capture function.

The third check targets the continuous axis. Fit monotone and non-monotone regressions of each profile dimension on the SSA male fraction. If curves are non-monotone, for example if neutral-name characters lose agency relative to both endpoints, the endpoint-only ablation would by construction miss it. A flat or linear result would argue for simpler binary or linear designs.

The fourth check maps where the tiers break. Rank correlations between Tiers 1→2→3→4 show whether the drop to RUTEd's 0.12 happens between static probes and constrained tasks, or only when free-form generation begins. That tells benchmark builders which tier they must not skip.

As a tangible-effect check, we generate user personas for the resume-screening occupations from Gender, Race, and Intersectional Bias in Resume Screening and test whether leakage measured on personas tracks the cosine-ranking disparities that the same names produce in embedding retrieval. That study reports male-associated names preferred in 51.9% of tests versus 11.1% for female names. Leakage that predicts this kind of downstream outcome better than skew would be the strongest evidence that function, not label, is the right layer to measure.