Manuscript Offprint
arXiv:2608.29847ContextBias: Controlled Evaluation of Bias Persistence Under Context Shift in Text-to-Image Models
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Text-to-image models learn associations between concepts - in the case of this paper, people's professions, which we refer to as roles - and visual attributes. These associations can underpin many observed forms of stereotypical bias. A key open question in this area is whether these associations are stable or change when visual representations of people in professional roles are placed in different prompted contexts. We introduce ContextBias, a controlled evaluation framework, and ContextBench, a benchmark spanning 92 roles and 1,656 semantically controlled prompts, designed to isolate the effect of contextual variation on role-linked visual representations. Evaluating four state-of-the-art models on 66,240 generated images, we find that placing a role in a semantically unrelated context does not suppress role-linked attributes; instead, cross-role attribute concentration increases (pooled BI +0.047). Demographic cues, characteristic garments, and role-specific tools remain highly prevalent across context-free, related, and unrelated conditions, and are robust to semantic prompt reformulation. Scene composition and camera framing show the greatest context-sensitivity. These findings reveal a form of stereotypical persistence that remains largely invisible to context-free evaluations, highlighting the need for controlled contextual variation in bias benchmarking. Code and dataset: https://github.com/Sina-Emami/ContextBias, https://huggingface.co/datasets/shaghayegh/ContextBias.
1 Introduction
Text-to-image (T2I) models learn associations between concepts (in this paper, people's professions, which we also refer as roles) and attributes of visual representations of these concepts. These associations impact many observed forms of stereotypical bias (Bianchi et al., 2023; Luccioni et al., 2023;

Figure 1: Our overall logic for testing whether role-linked cues adapt to scene context by varying the scene while fixing the role.
Naik and Nushi, 2023; Vandewiele et al., 2026; Raza et al., 2025; Bhattacharya et al., 2025). As a result, generated images can reproduce recurring patterns involving, for example, demographic cues, items, and features of the surroundings associated with particular concepts. Recent studies have shown that T2I models frequently reproduce stereotypical role attribute associations learned from their training data, such as linking doctors with white coats, mechanics with men, or judges with robes (Seshadri et al., 2024; Shi et al., 2025; Wu et al., 2025b; Bianchi et al., 2023; Malakouti and Kovashka, 2025).
As generative models are increasingly used to produce visual content at scale, these associations do not merely reflect patterns in the training data; they actively shape how roles are visually defined and portrayed in downstream applications. Understanding when such associations persist, weaken, or change is therefore important for both evaluating models and studying stereotypical fairness.
Despite extensive work on stereotypical bias in T2I models (Cho et al., 2023; Zhang et al., 2023; D'Incà et al., 2024; Friedrich et al., 2025; Naik and Nushi, 2023), little is known about how learned visual associations behave under context variation. Existing studies primarily evaluate concepts in iso-lation (D'Incà et al., 2024), and have shown that roles such as doctor or chef are consistently depicted with characteristic clothing, tools, and visual attributes (Bianchi et al., 2023; Wu et al., 2025b). However, these evaluations provide limited insight into what happens when contextual information is varied.
In practice, prompts might not describe roles in isolation, but instead place people within environments and activities, such as a doctor examining a patient or exercising in a park. Context may reinforce learned associations, weaken them, or introduce competing visual signals (Girrbach et al., 2025). This raises a fundamental question: does context reshape learned visual associations, or merely change the scene around objects or people?
This question is closely related to the idea of compositional generalization, where models are expected to combine concepts and contextual information rather than rely on dominant learned associations (Lake and Baroni, 2018; Thrush et al., 2022; Sun et al., 2025). In image generation, this translates into a simple challenge: when contextual information changes, which aspects of a generated representation adapt and which remain stable?
To address this question, we introduce ContextBias, a controlled evaluation framework that systematically varies location and activity context while keeping role identity fixed. We further introduce ContextBench, a benchmark spanning 92 roles and 1,656 semantically controlled prompts, and evaluate FLUX.1, Stable Diffusion XL, Stable Diffusion 3.5, and Qwen-Image on 66,240 generated images. Using a schema-guided visual pipeline, we measure how contextual variation influences both the concentration and prevalence of role-linked visual attributes (see Fig. 1).
Specifically, we investigate: (i) whether role-linked visual associations persist across contextual conditions; (ii) how contextual variation affects the prevalence and concentration of visual attributes; and (iii) whether observed persistence patterns remain robust under prompt reformulation.
Our results show that many role-linked visual associations remain stable even when roles are placed in semantically unrelated contexts. Across four state-of-the-art T2I models, contextual variation primarily affects scene composition and framing, while associations involving demographic cues, characteristic garments, and role-specific tools frequently persist across contexts.
Contributions. Our contributions are threefold:
(i) we introduce ContextBias, a controlled evaluation framework for studying role-linked visual associations under contextual variation;
(ii) we provide ContextBench, a benchmark spanning 92 roles and 1,656 semantically controlled prompts across context-free, context-aware related, and context-aware unrelated conditions;
(iii) we conduct a large-scale evaluation of four state-of-the-art text-to-image models on 66,240 generated images, showing that many role-linked visual associations persist across contextual conditions and remain robust under semantic prompt reformulation.
Bias evaluation and measurement frameworks. Several systematic pipelines for measuring stereotypical bias in multimodal and generative systems have been proposed. For example, (Sathe et al., 2024) introduced a unified evaluation framework for vision-language models, and (D'Incà et al., 2024) proposed an open-set pipeline using VQA models to detect bias without predefined categories. Other approaches rely on probing, counterfactual prompts, or structured analysis to uncover latent associations (Chinchure et al., 2024; Raj et al., 2024). Complementary work on multimodal models has shown that controlled visual cues, including attractiveness and other appearance-related attributes, can systematically influence social judgments (Gulati et al., 2025; Kolli et al., 2026). Recent agent-based systems combining vision and language models enable the scalable extraction of visual attributes such as clothing, objects, and activities (Keita et al., 2025; Kabra et al., 2024; Gupta and Kembhavi, 2023; Surís et al., 2023). While these approaches enable large-scale bias analyses, they typically did not isolate the effect of controlled contextual variation.
Compositional reliability and contextual consistency. T2I models can struggle with compositional reasoning, attribute binding, and contextual consistency (Rombach et al., 2022; Dhariwal and Nichol, 2021; Zarei et al., 2025). Prior papers report hallucinated objects, incorrect attribute binding, and failures to associate attributes with the correct entities (Mañas et al., 2024; Li et al., 2023; Trusca et al., 2024; Chatterjee et al., 2024; Dehdashtian et al., 2025). Recent work has further investigated how biased associations emerge through object–attribute bindings in T2I compositions (Li et al., 2026). Recent compositional diffusion approaches aim to improve attribute binding and semantic control (Dat et al., 2025). Nevertheless, dominant learned prototypes may still govern how role identities are rendered. Our work provides evidence that fine-grained occupational attributes such as garments, tools, and accessories frequently persist even when contextual cues take the role outside of their job-related context. In contrast to prior work that measures bias as a global property or studies compositionality in general settings, we introduce a controlled benchmark and statistical framework that isolates the effect of location and activity context on role-based representation, enabling the identification of attributes that adapt to context versus those that remain invariant. Recent studies confirm this gap: role-related gender stereotypes remain systematic across state-of-the-art models regardless of prompt phrasing (Raza et al., 2025; Weinmann et al., 2026; Barve et al., 2025; Park et al., 2026b).
3 ContextBias
ContextBias is a controlled evaluation framework that measures the stability of role-linked visual associations when context is varied. It systematically varies location and activity context while keeping role identity fixed, generates images across conditions, extracts fine-grained visual attributes via a schema-guided pipeline, and compares the resulting attribute distributions to quantify how much learned associations persist or change.
3.1 Problem Formulation
Let denote the set of roles and the set of contextual conditions (context-free (role without context descriptors), context-aware related (role with role-consistent descriptors)), and context-aware unrelated (role with role-unrelated descriptors); prompt templates in Sec. 3.2). For each role and condition , a T2I model G generates an image set . A schema-guided pipeline extracts attribute distributions over label set for each attribute . We define prior persistence as the tendency of to remain concentrated on a dominant label regardless of , and quantify this persistence through two measures that we define in Sec. 3.5: Bias Intensity (BI) and the Context Consistency Score (CCS).
3.2 ContextBench
We construct ContextBench, a controlled prompt benchmark designed to isolate the effect of context on role-based visual representations. For each role , we curate role-related locations and role-unrelated locations , with matching activity sets and . Both banks are generated using GPT-4o-mini and manually filtered for semantic consistency. See Appendix A.1.
We construct prompts based on the context bank under three conditions. CF: “a photo of a r” (no context; uncontrolled baseline). CA-R: “a photo of a r doing t in a l” with , (role and context semantically congruent). CA-U: same template with , (semantically incongruent). CA-U is the most demanding condition: attributes that remain dominant here reflect a context-immune prior, not scene plausibility.
Each base prompt is expanded into two semantically equivalent variants; CA-R and CA-U prompts additionally include substitution variants from the corresponding banks. This yields 1,656 prompts (18 configurations per role) and constrains variation to location and activity. See Appendix A.
3.3 Image Generation
For each role and condition , we generate images from all prompts using , sampling multiple images per prompt by varying the random seed : . Images are aggregated across prompt variants: . As includes semantically equivalent phrases and contextual substitutions, the resulting sets reduce sensitivity to the individual prompt wording. See Appendix B.
3.4 Attribute Extraction
We define a structured attribute schema spanning four cohorts. Scene appearance, Camera, Objects, and People covering 30 attribute dimensions. Most dimensions use closed vocabularies with predefined categorical labels. Three dimensions, i.e., (items, clothing garment, and activities) are open-vocabulary, enabling the extraction of fine-grained, role-related signals such as tools, garments, and actions that cannot be exhaustively predefined.
Each image is analyzed by GPT-5-mini (Singh et al., 2025) under this schema. Within the extraction pipeline, GPT-4o-mini is used only to canonicalise open-vocabulary labels and never inspects generated images; its separate use in constructing the context banks is described in Sec. 3.2. Closed-vocabulary attributes receive predefined labels; open-vocabulary attributes produce short evidence-grounded descriptions; insufficient evidence yields unknown. Open-vocabulary outputs may contain semantically equivalent expressions (e.g., lab coat and white medical coat): we normalized these by embedding each term with a pretrained sentence encoder (Reimers and Gurevych, 2019) and grouping similar terms via cosine similarity into canonical labels. To further normalize these clusters, we apply LLM-based (GPT-4o-mini) canonicalization via a structured prompt that incorporates domain, cohort, and dimension context, instructing the model to reduce each label to its
core concept. The results were aggregated to obtain attribute distributions for each role , condition , and attribute . See Appendix C.
3.5 Bias Quantification
We quantify prior persistence through two complementary measures. Bias Intensity (BI) operates at the dimension level. The BI captures how concentrated an attribute distribution is across its labels. The Context Consistency Score (CCS) operates at the label level. CCS captures whether a specific label remains both prevalent and stable across conditions.
Bias Intensity (BI). Let denote the label distribution for attribute , role , condition , and the proportion of images in which label is detected. BI measures distributional concentration around a dominant label:
where is Shannon entropy and the label count. BI ranges from 0 (uniform) to 1 (single dominant label), without identifying which label drives concentration. We report BI at two aggregations: BI applies Eq. 1 to the label distribution pooled over roles, while BI averages the per-role values. The two need not agree, and we report both (Appendix E.2).
Context Consistency Score (CCS). BI does not indicate whether the same label persists across conditions. We therefore define label prevalence pooled across conditions,
where and are the label count and image count under condition c, and the percentage-point range
with indicating identical prevalence across all conditions. CCS balances prevalence against cross-context variability:
Throughout, Prev is expressed as a percentage and in percentage points, so that Eq. 4 reproduces

Figure 2: ContextBias workflow. From a set of roles, an LLM constructs semantically matched prompts across three contextual conditions: context-free (CF), context-related (CA-R), and context-unrelated (CA-U). T2I models generate images for each prompt and seed. A schema-guided vision-language pipeline extracts structured visual attributes, which are aggregated, and calculates a Bias Intensity (BI) and the Context Consistency Score (CCS).
the values reported in Table 2. CCS is computed independently for each generator and then averaged with equal weight across the four generators:
where is the set of evaluated generators. The CCS column of Table 2 reports rather than a single-generator value. Because averaging generator-specific spreads is not equivalent to computing a spread from cross-generator averages, this column cannot be reconstructed from the per-generator columns alone; we therefore state the aggregation explicitly. For Dancer/female, the per-generator values are 100.0 (SDXL), 100.0 (SD 3.5), 19.7 (FLUX.1) and 100.0 (Qwen-Image), whose unweighted mean is 79.92, reported as 79.9. CCS is defined only for labels observed in all three conditions with sufficient support. As a complementary check, we apply a per-label chi-squared (Agresti, 2013) homogeneity test across CF, CA-R, and CA-U. A significant result () indicates a distributional shift but not necessarily label disappearance; a label is considered context-invariant only when both and pp. CCS and the homogeneity test are therefore interpreted jointly.
4 Experiments
4.1 Implementation Details
We instantiate ContextBench using 92 roles from the U.S. Bureau of the Labor Statistics Standard Occupational Classification (SOC) (U.S. Bureau
of Labor Statistics, 2018). Role titles were manually filtered and normalised to canonical forms. See Table 4. Context banks were constructed using GPT-4o-mini and manually reviewed to remove rare, implausible, or stereotype-inducing entries. We also excluded contexts whose interpretation relied strongly on culture-specific practices, symbols, or conventions, not because cultural content is inherently undesirable, but to avoid introducing additional cultural priors that could confound the role context effects studied here. Accordingly, the resulting contexts should be understood as broadly interpretable within the Western/U.S.-centric scope of ContextBench rather than as universally culture-neutral. Using these banks, prompts were generated under CF, CA-R, and CA-U conditions with paraphrases and contextual substitutions, yielding 1,656 prompts in total (18 configurations per role). See Table 5.
We evaluate four text-to-image generators: FLUX.1 (Black Forest Labs et al., 2025), Stable Diffusion XL (Podell et al., 2024), Stable Diffusion 3.5 (Esser et al., 2024), and Qwen-Image (Wu et al., 2025a). All inference parameters were fixed across conditions except for the random seed. For each prompt, we generated 10 images per model, resulting in 16,560 images per generator and 66,240 images total. See Figures 5, 6, and 7.
4.2 Quantitative Evaluation
We evaluated the reliability of the attribute extraction pipeline using prompts with explicit ground-truth attributes. To this end, we constructed 220 role-attribute prompts by mining the generated corpus for dominant attribute labels associated with each role. See Appendix D.1. Each prompt was created automatically by inserting the role and attribute into a fixed template (e.g., “a photo of a male bartender”). This setup validates extraction on explicit, unambiguous prompts rather than on the more challenging contextual images where the attribute is implied rather than stated; the human annotation study of Sec. 4.3 evaluates that harder setting directly, on images drawn from all three contextual conditions. For each prompt, we generated 10 images using different random seeds, resulting in 2,200 images per model. Extracted attributes were compared with the known ground truth. We computed accuracy, recall, and averaged across roles and attribute dimensions.
The pipeline performs across all four models (Table 1), achieving 90.3%/90.3% accuracy/recall on SD 3.5, 92.1%/92.1% on SDXL, 86.4%/86.4% on FLUX.1, and 92.0%/92.0% on Qwen-Image, with scores of 94.9, 95.9, 92.7, and 95.8 respectively. Per-dimension results are shown in Table 7.
Table 1: Extraction pipeline validation.
| Model | Total | Accuracy | Recall | |
|---|---|---|---|---|
| SD 3.5 | 2200 | 90.3 | 90.3 | 94.9 |
| SDXL | 2200 | 92.1 | 92.1 | 95.9 |
| FLUX.1 | 2200 | 86.4 | 86.4 | 92.7 |
| Qwen-Image | 2200 | 92.0 | 92.0 | 95.8 |
| Average | 2200 | 90.2 | 90.2 | 94.8 |
4.3 Annotation Study
We validated ContextBias through a human annotation study with three independent annotators. We selected 10 roles × 3 contexts × 4 generators (FLUX.1, SDXL, SD 3.5, Qwen-Image), sampling 10 images per triplet, yielding 1,200 images in total. Annotators answered 23 schema-aligned questions per triplet using the same closed- and open-vocabulary schema as the extraction pipeline, with label prevalence indicated on a 0-10 frequency scale. Each triplet was independently annotated by all three raters. Inter-annotator reliability was high: raw agreement was 0.914 and mean pairwise Cohen’s . Because we had three annotators, we also report Fleiss’ (95% CI [0.87, 0.91], 1,000 bootstrap replicates) as an appropriate agreement statistic for more than two raters. Comparing human consensus to the auto-

Figure 3: Mean Bias Intensity (BI), pooled over roles, across contextual conditions (CF, CA-R, CA-U) for four attribute cohorts.
mated pipeline yielded raw agreement of 0.826 and Cohen’s of = 0.822, confirming that the schema is reliable and that ContextBias scales to large corpora. See Appendix D.2 and Figure 8.
5 Results
We organize our findings around whether role-linked associations persist under contextual variation and whether these patterns are robust to prompt reformulation. From a big picture perspective, we find that across all conditions and models, person-level attributes remain consistently stable, while scene composition and framing show comparatively greater context-sensitivity.
5.1 Attribute Concentration Increases in Unrelated Contexts
If T2I models represented roles compositionally, placing a role in an unrelated context should suppress role-linked attributes in favor of contextually appropriate ones, reducing attribute concentration.
The two aggregations of Eq. 1 answer this differently. Pooled over roles, mean BI rises from 0.452 under CF to 0.499 under CA-U, an increase of +0.047 across all cohorts and models (role-level cluster bootstrap: +0.045, 95% CI [0.030, 0.050]; Appendix E.1). Computed per role and then averaged at matched support, it does not increase (0.724 → 0.694; Appendix E.2). Unrelated contexts thus neither neutralize nor sharpen role priors: they pull different roles toward a shared default, concentrating the benchmark-wide distribution while leaving each role’s own no more concentrated than at baseline.

Figure 4: Mean Bias Intensity per dimension, pooled over roles and averaged across models and conditions. Color encodes attribute cohort: People, Camera, Objects, Scene.
This effect is markedly uneven across attribute cohorts (Figure 3). Scene attributes show the largest shift (, from 0.430 under CF to 0.524 under CA-U), consistent with contextual reshaping of aesthetic and environmental cues. Objects fall between these extremes (, from 0.251 to 0.309). People attributes shift comparatively little (, from 0.457 under CF to 0.499 under CA-U), indicating that demographic and garment-related distributions are already highly concentrated at baseline and are comparatively less affected by contextual variation. Camera attributes show almost no net change at the cohort level (, from 0.668 under CF to 0.665 under CA-U).
This near-zero pooled value masks opposing trends across camera dimensions: framing becomes markedly more concentrated (+0.120), perspective is essentially unchanged (+0.011), and depth_of_field becomes more diverse (-0.154). Camera behavior is therefore reported at the dimension level rather than pooled (Appendix E.1). Overall, contextual variation is most strongly associated with shifts in scene composition, while person-level attributes remain concentrated and comparatively stable.
At the dimension level (Figure 4), BI spans a wide range across the 30 attributes in our schema. Dimensions such as age_range (BI = 0.978) and perspective (0.972) are near-
ceiling, while facial_hair_present (0.030) and eyewear_present (0.112) are substantially more distributed. The highest-scoring dimensions are almost exclusively from the People cohort, indicating that person-level attributes are among the most pooled-concentrated in the benchmark. Notably, dimensions such as expression and accessories score low, showing that the framework discriminates between attributes that persist and those that do not.
Finding 1 Unrelated context is associated with a mean pooled BI increase of +0.047 overall (cluster bootstrap +0.045, 95% CI [0.030, 0.050]). Pooled Scene attributes are the most context-reactive (), followed by Objects (+0.058) and People (+0.042); Camera shows no net cohort-level change (-0.003) but opposing dimension-level trends. Computed per role and then averaged, BI does not increase (-0.031; Appendix E.2): the concentration gain is a cross-role effect rather than a sharpening of individual role prototypes. Pooled dimension-level BI spans 0.030–0.978.
5.2 Specific Role-Label Associations Survive Contextual Variation
BI establishes that People-cohort distributions are concentrated and resistant to context.
CCS identifies which specific labels are responsible. Table 2 reports a small subsample of representative role-label pairs ranked by CCS, selected to illustrate persistent associations across demographic, garment, activity, and scene-related dimensions. Overall, we detected and evaluated 96,310 labels; a second small subsample of results is provided in Table 11. CCS should be interpreted together with the homogeneity test (Sec. 3.5).
A low p-value indicates that the overall label distribution shifts across CF, CA-R, and CA-U, but does not imply that the dominant label disappears; a label is context-invariant only when both and pp. Many labels remain highly prevalent even when the full distribution shifts, which is why CCS and the homogeneity test are reported jointly.
Demographic cues show the strongest persistence, e.g.: Dancer is generated as female in 98–100% of images across all four models (CCS = 79.9, pp). Flight attendant is female in 99–100% of images (CCS = 42.6, pp),
Table 2: Role-label associations, grouped by cue type. % Prev.: pooled prevalence across conditions. Range: pp spread. : homogeneity test. Inv.: models with and pp. Shading — % Prev.: , 90–94%; Range: pp, 5–10 pp, pp. Bold: significant; underlined: not.
| Roles | Cue | % Prev. | Range (pp) | CCS Inv. | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| XL | 3.5 | Flx | Qwen | XL | 3.5 | Flx | Qwen | XL | 3.5 | Flx | Qwen | XL | 3.5 | Flx | Qwen | ||||
| Gender | |||||||||||||||||||
| Dancer | female | 100 | 100 | 98 | 100 | 0.0 | 0.0 | 4.0 | 0.0 | 0.00 | 0.00 | 3.25 | 0.00 | 1.00 | 1.00 | .20 | 1.00 | 79.9 | 4/4 |
| Carpenter | male | 100 | 100 | 97 | 100 | 0.0 | 0.0 | 6.7 | 0.0 | 0.00 | 0.00 | 4.81 | 0.00 | 1.00 | 1.00 | .09 | 1.00 | 78.2 | 3/4 |
| Politician | male | 98 | 98 | 100 | 100 | 5.0 | 2.0 | 0.0 | 0.0 | 2.37 | 0.39 | 0.00 | 0.00 | .31 | .82 | 1.00 | 1.00 | 62.3 | 4/4 |
| Railway cond. | male | 98 | 98 | 100 | 100 | 3.3 | 3.3 | 0.0 | 0.0 | 2.37 | 2.37 | 0.00 | 0.00 | .31 | .31 | 1.00 | 1.00 | 61.4 | 4/4 |
| Detective | male | 100 | 98 | 97 | 100 | 0.0 | 5.0 | 3.3 | 0.0 | 0.00 | 2.10 | 0.79 | 0.00 | 1.00 | .35 | .67 | 1.00 | 59.7 | 4/4 |
| Flight attend. | female | 100 | 99 | 99 | 99 | 0.0 | 5.0 | 5.0 | 1.7 | 0.00 | 5.54 | 5.54 | 1.18 | 1.00 | .06 | .06 | .56 | 42.6 | 4/4 |
| Nurse | female | 99 | 99 | 99 | 99 | 1.7 | 1.7 | 5.0 | 1.7 | 1.34 | 1.34 | 2.71 | 1.34 | .51 | .51 | .26 | .51 | 32.0 | 4/4 |
| Comedian | male | 99 | 100 | 99 | 99 | 2.0 | 0.0 | 1.7 | 5.0 | 1.61 | 0.00 | 1.18 | 5.54 | .45 | 1.00 | .56 | .06 | 46.7 | 4/4 |
| Mechanic | male | 99 | 99 | 94 | 100 | 2.0 | 5.0 | 8.0 | 0.0 | 1.61 | 5.54 | 2.50 | 0.00 | .45 | .06 | .29 | 1.00 | 40.0 | 3/4 |
| Body type | |||||||||||||||||||
| Dancer | slim | 95 | 95 | 97 | 99 | 8.3 | 4.7 | 8.0 | 2.0 | 2.35 | 1.17 | 6.60 | 1.61 | .31 | .56 | .04 | .45 | 17.7 | 2/4 |
| Athlete | athletic | 97 | 95 | 96 | 99 | 6.0 | 20.0 | 6.7 | 1.7 | 3.59 | 11.84 | 2.55 | 1.18 | .17 | .00 | .28 | .56 | 17.0 | 1/4 |
| Clothing & garments | |||||||||||||||||||
| Pharmacist | coat | 33 | 33 | 31 | 50 | 0.7 | 1.3 | 4.7 | 0.0 | 0.02 | 0.07 | 0.79 | 0.00 | .99 | .97 | .67 | 1.00 | 22.3 | 4/4 |
| Scientist | coat | 32 | 31 | 34 | 50 | 3.4 | 2.0 | 2.7 | 0.0 | 0.45 | 0.08 | 0.29 | 0.00 | .80 | .96 | .86 | 1.00 | 19.3 | 4/4 |
| Doctor | coat | 31 | 35 | 33 | 50 | 1.0 | 12.3 | 8.3 | 2.5 | 0.04 | 3.22 | 1.54 | 0.08 | .98 | .20 | .46 | .96 | 9.0 | 2/4 |
| Physician | coat | 31 | 30 | 31 | 51 | 4.4 | 9.7 | 5.7 | 7.5 | 0.46 | 2.69 | 0.66 | 0.76 | .80 | .26 | .72 | .68 | 4.8 | 1/4 |
| Surgeon | scrubs | 17 | 4 | 19 | 11 | 4.0 | 4.7 | 12.0 | 3.5 | 0.71 | 3.28 | 3.85 | 0.72 | .70 | .19 | .15 | .70 | 2.0 | 3/4 |
| Items & tools | |||||||||||||||||||
| Baker | apron | 33 | 32 | 31 | 33 | 0.7 | 4.4 | 2.2 | 1.1 | 0.01 | 0.42 | 0.22 | 0.03 | 1.00 | .81 | .89 | .99 | 12.6 | 4/4 |
| Welder | glove | 31 | 32 | 29 | 32 | 2.6 | 2.5 | 1.7 | 1.2 | 0.34 | 0.17 | 0.17 | 0.04 | .84 | .92 | .92 | .98 | 10.7 | 4/4 |
| Waiter | tie | 21 | 14 | 21 | 26 | 2.5 | 4.9 | 2.5 | 3.4 | 0.23 | 1.94 | 0.23 | 0.71 | .89 | .38 | .89 | .70 | 5.0 | 4/4 |
| Railway cond. | hat | 27 | 25 | 26 | 35 | 5.2 | 4.2 | 1.6 | 3.3 | 0.80 | 0.73 | 0.14 | 0.27 | .67 | .69 | .93 | .87 | 6.9 | 3/4 |
| Constructor | helmet | 17 | 22 | 28 | 20 | 3.8 | 8.5 | 2.7 | 3.3 | 1.05 | 2.67 | 0.16 | 0.52 | .59 | .26 | .92 | .77 | 4.6 | 3/4 |
| Cashier | screen | 4 | 6 | 5 | 5 | 2.5 | 2.5 | 3.7 | 3.5 | 1.09 | 0.41 | 1.54 | 0.74 | .58 | .81 | .46 | .69 | 1.3 | 4/4 |
| Scene aesthetics | |||||||||||||||||||
| Baker | warm | 100 | 95 | 97 | 99 | 0.0 | 10.0 | 4.0 | 1.7 | 0.00 | 4.77 | 0.79 | 1.18 | 1.00 | .09 | .67 | .56 | 41.3 | 3/4 |
| Chemist | calm | 94 | 98 | 97 | 99 | 8.0 | 4.0 | 4.0 | 5.0 | 2.94 | 1.03 | 0.83 | 5.04 | .23 | .60 | .66 | .08 | 16.5 | 3/4 |
| Farmer | warm | 93 | 90 | 98 | 98 | 3.0 | 21.0 | 6.0 | 3.3 | 0.21 | 7.00 | 4.91 | 2.37 | .90 | .03 | .09 | .31 | 16.0 | 2/4 |
nurse in 99% ( pp), comedian as male in 99–100% ( pp), and mechanic as male in 94–100% ( pp). The values quoted here are , the mean of the per-generator ranges in Table 2. In all these cases, is small, indicating that the dominant label appears at nearly identical rates across CF, CA-R, and CA-U. Tool-linked associations are also persistent: welder remains associated with gloves (29–32%, CCS = 10.7) and baker with aprons (31–33%, CCS = 12.6), invariant across all models. The weaker cashier-screen association (CCS = 1.3) suggests that persistence depends on object salience. Role-related garments and activities exhibit similar patterns. Baker is generated in warm color temperature in 95–100% of images ( pp). Doctor appears in a coat in 31–50% of images; although prevalence is lower than for demographic cues, the association persists in two of the four generators, illustrating that persistence is observed even when multiple garment alternatives are available.
By contrast, dimensions such as expression and accessories yield low CCS values across roles, indicating that not all attributes exhibit the same degree of stability. Person-level cues form the most stable layer of role representation, dominating the highest-ranked persistent associations.
Finding 2 Role-linked labels persist across contextual conditions. Gender cues show the strongest stability ( prevalence, pp), followed by garments, activities, and scene-level attributes at lower prevalence. Expressive and accessory dimensions show substantially lower CCS, confirming that the framework distinguishes persistent from context-sensitive associations.
5.3 Persistence Patterns Are Robust to Prompt Reformulation
A potential concern is that the persistence patterns observed throughout ContextBench reflect specific prompt formulations rather than stable role representations. To evaluate this, we measured role-
Table 3: Prompt robustness. Inv./p̄: % of role–label tuples invariant across all prompt variants (semantic paraphrases and location/activity substitutions) via LOO () and mean -value; Prev.: mean label prevalence (%) across CF prompts.
| Model | Metric | People | Objects | Camera | All |
|---|---|---|---|---|---|
| SDXL | Inv./p̄ | 92.4/.72 | 95.2/.74 | 61.2/.37 | 93.5/.73 |
| Prev. | 1.6 | 0.3 | 23.1 | 1.1 | |
| SD 3.5 | Inv./p̄ | 92.1/.71 | 95.1/.73 | 57.8/.33 | 93.4/.72 |
| Prev. | 1.7 | 0.3 | 23.1 | 1.1 | |
| FLUX.1 | Inv./p̄ | 91.9/.71 | 94.7/.73 | 68.9/.39 | 93.1/.72 |
| Prev. | 1.9 | 0.3 | 23.1 | 1.3 | |
| Qwen-Image | Inv./p̄ | 92.2/.69 | 95.0/.71 | 72.2/.37 | 93.4/.70 |
| Prev. | 2.0 | 0.4 | 25.0 | 1.4 | |
| Average | Inv./p̄ | 92.1/.71 | 95.0/.73 | 64.9/.37 | 93.3/.72 |
| Prev. | 1.8 | 0.3 | 23.5 | 1.2 |
label invariance across the full set of prompt variants within each contextual condition. For CF, this covers two semantic paraphrases per base prompt; for CA-R and CA-U, it additionally includes location and activity substitutions drawn from the corresponding context banks. Invariance is assessed via a leave-one-out test per role-label tuple (), and Prev. reports mean label prevalence across CF prompts as a reference for baseline concentration.
Table 3 shows that role-label associations remain highly stable across all prompt variants. Across all four models, 93.3% of tuples are invariant (), with consistent results across the People, Objects, and Camera cohorts, and across architectures. Object attributes show the strongest robustness (95.0% invariance, 0.3 pp prevalence), followed by People attributes (92.1% invariance, 1.8 pp). Camera attributes are more sensitive to prompt variation (64.9% invariance, 23.5 pp), consistent with the large but opposing dimension-level shifts observed for camera attributes in Sec. 5.1, in particular framing and depth_of_field. This observed pattern holds across all four architecturally diverse models, suggesting that the observed stability reflects shared stereotypical regularities rather than prompt-specific artifacts.
Finding 3 Role-linked representations are largely invariant to prompt reformulation, including semantic paraphrases and location/activity substitutions. People and Object attributes remain highly stable (92.1–95.0% invariance); Camera attributes are more sen-
sitive, consistent with prompt variation being most strongly associated with changes in scene framing rather than role-linked visual representations.
6 Conclusion
We introduced ContextBias, a framework for the systematic assessment of the stability of role-linked visual associations under contextual variation in text-to-image generation, together with ContextBench, a benchmark spanning 92 roles and 1,656 semantically controlled prompts. Evaluating four state-of-the-art models on 66,240 generated images, we find that unrelated contexts are not associated with the suppression of role-linked visual attributes; instead, attribute concentration frequently increases under contextually incongruent conditions. Many demographic, garment, and tool-related associations remain stable across contextual conditions and under semantic prompt reformulation, while scene composition and camera framing show comparatively greater context-sensitivity.
From the perspective of compositional generalization, our findings suggest that role-based concepts are not yet represented in a fully context-conditioned manner: contextual cues reshape the scene around the role, but leave the visual characterization of the role itself largely intact. The consistency in findings across four architecturally diverse models and prompt reformulations suggests that these patterns reflect broad stereotypical regularities rather than model-specific or prompt-specific artifacts. Our results highlight the value of controlled contextual variation as a complementary evaluation strategy, and highlight the importance of understanding when learned visual associations persist or change under contextual pressure for both stereotype bias analysis and compositional generalization.
7 Limitations
ContextBias varies location and activity context by design. These are among the most common compositional elements in real-world prompts and provide a controlled setting for studying the stability of learned visual associations under contextual variation. Other contextual dimensions, such as lighting, cultural setting, or interpersonal interactions, are not considered here and represent natural directions for future work.
The benchmark covers 92 roles drawn from the
U.S. Bureau of Labor Statistics SOC taxonomy, reflecting a specific occupational and cultural context. While this provides a standardized and widely used role inventory, the benchmark is not intended to provide exhaustive global coverage. The regularities we report should therefore be read as representational patterns within an English-language, predominantly Western benchmark rather than as culturally universal stereotypes. Extending the framework to broader role taxonomies, other languages, and non-Western contexts remains an important direction for future research.
We also stress that BI measures the concentration of an attribute distribution, not whether an association is harmful. A highly concentrated distribution may reflect a genuine visual regularity of the occupation as much as an unwanted stereotype, and BI alone does not distinguish the two; the CF/CA-R/CA-U comparisons and CCS characterize persistence under contextual variation, which is a separate property from social harm. Interpreting any individual association as a stereotype requires normative judgment that our measurements do not supply.
Finally, attribute extraction relies on a vision-language model (GPT-5-mini) and therefore inherits its limitations, including the possibility that its own occupational priors shape what it reports. However, the human annotation study () shows strong agreement between automated and human judgments, suggesting that extraction errors are unlikely to explain the observed patterns. Images with insufficient visual evidence are assigned unknown labels and excluded from frequency-based analyses.
8 Ethical Statement and Broader Impact
This work investigates contextual biases in T2I models with the aim of improving safety, fairness, and responsible deployment of AIs. Our analysis is strictly diagnostic and does not seek to reinforce stereotypes. Instead, we systematically evaluate how biases persist or change under controlled contextual prompting. The study uses only machine-generated images and publicly available datasets (MIT and CC BY-SA 4.0 licenses) without collecting any personal or identifying human data. The proposed ContextBench benchmark will be released under a CC BY-SA 4.0 license, together with our code, to promote transparency and reproducibility. To validate the human extraction
pipeline, we conducted a small-scale human annotation study. Three student annotators were hired and compensated fairly, in accordance with German minimum wage regulations and university hiring guidelines. The annotation process followed predefined labeling instructions with no free-form responses to ensure minimal risk. Inter-annotator agreement was high, supporting the reliability of the procedure. We acknowledge that certain socially sensitive attributes (e.g., gender presentation, profession-related appearance) are treated as closed sets solely for research purposes and do not capture the full range of human identity. We emphasize two points: First, the perception of attributes of people, scenes, etc. is shaped by people's values, perspectives (Sap et al., 2019; Haraway, 1988; Nelson, 2022), and lived experiences, and can vary from person to person as well as across cultures, time, and places (Plank, 2022; Conn, 1985; Eriksson et al., 2025). Second, categories and values per categories, i.e., labels, are often socially constructed, and, like, associations with data, can represent or entail problematic and/ or learned stereotypes (Fiske et al., 2018; Jeoung et al., 2023; Buolamwini and Gebru, 2018). Our findings should be interpreted as controlled observations within a limited experimental scope rather than an exhaustive assessment of bias. This work falls under the scientific research and pre-market development provisions of Regulation (EU) 2024/1689 (Art. 2(6) and Art. 2(8)); ContextBench is released as a research-only diagnostic resource and is not placed on the market as an AI system. Because all analyzed images are model-generated and no real or identifiable persons are involved, the study engages none of the prohibited practices of Art. 5 (notably Art. 5(1)(f)–(g)) and does not rely on the Art. 10(5) derogation for special categories of personal data. Our attribute-level bias diagnostics are aligned with the bias-examination expectations of Art. 10(2)(f)–(g) and support provider-side evaluation duties under Art. 55(1)(a)–(b), and all released synthetic images are labelled as AI-generated consistent with Art. 50(2) and 50(4). LLM-based AI assistants were used for limited writing support (e.g., grammar correction and phrasing improvements), and we disclose this use here.
9 Acknowledgment
This work was supported in part by the EU Horizon projects ELIAS (No. 101120237) and ELLIOT
(No. 101214398), and the FIS project GUIDANCE (No. FIS2023-03251).
References
Alan Agresti. 2013. Categorical data analysis. John Wiley & Sons.
Saharsh Barve, Andy Mao, Jiayue Melissa Shi, Prerna Juneja, and Koustuv Saha. 2025. Can we debias social stereotypes in ai-generated images? examining text-to-image outputs and user perceptions. arXiv preprint arXiv:2505.20692.
Aditya Bhattacharya, Simone Stumpf, Robin De Croon, and Katrien Verbert. 2025. Explanatory debiasing: Involving domain experts in the data generation process to mitigate representation bias in ai systems. In Proceedings of the 2025 CHI Conference on Human Factors in Computing Systems, CHI '25, New York, NY, USA. Association for Computing Machinery.
Federico Bianchi, Pratyusha Kalluri, Esin Durmus, Faisal Ladhak, Myra Cheng, Debora Nozza, Tat-sunori Hashimoto, Dan Jurafsky, James Zou, and Aylin Caliskan. 2023. Easily accessible text-to-image generation amplifies demographic stereotypes at large scale. In Proceedings of the 2023 ACM Conference on Fairness, Accountability, and Transparency, page 1493–1504.
Black Forest Labs, Stephen Batifol, Andreas Blattmann, Frederic Boesel, Saksham Consul, Cyril Diagne, Tim Dockhorn, Jack English, Zion English, Patrick Esser, Sumith Kulal, Kyle Lacey, Yam Levi, Cheng Li, Dominik Lorenz, Jonas Müller, Dustin Podell, Robin Rombach, Harry Saini, and 2 others. 2025. Flux.1 kontext: Flow matching for in-context image generation and editing in latent space. arXiv preprint arXiv:2506.15742.
Joy Buolamwini and Timnit Gebru. 2018. Gender shades: Intersectional accuracy disparities in commercial gender classification. In Proceedings of the 1st Conference on Fairness, Accountability and Transparency, volume 81 of Proceedings of Machine Learning Research, pages 77–91. PMLR.
Agneet Chatterjee, Gabriela Ben Melech Stan, Estelle Aflalo, Sayak Paul, Dhruba Ghosh, Tejas Gokhale, Ludwig Schmidt, Hannaneh Hajishirzi, Vasudev Lal, Chitta Baral, and 1 others. 2024. Getting it right: Improving spatial consistency in text-to-image models. In European Conference on Computer Vision, pages 204–222. Springer.
Aditya Chinchure, Pushkar Shukla, Gaurav Bhatt, Kiri Salij, Kartik Hosanagar, Leonid Sigal, and Matthew Turk. 2024. Tibet: Identifying and evaluating biases in text-to-image generative models. In Computer Vision – ECCV 2024, page 429–446, Berlin, Heidelberg. Springer-Verlag.
Jaemin Cho, Abhay Zala, and Mohit Bansal. 2023. Dall-eval: Probing the reasoning skills and social biases of text-to-image generation models. In 2023 IEEE/CVF International Conference on Computer Vision (ICCV), pages 3020–3031. IEEE.
Walter E Conn. 1985. The psychology of moral development: The nature and validity of moral stages. by lawrence kohlberg. san francisco: Harper & row, 1984. xxxvi+ 729 pages. 33.00. Horizons, 12(2):425–426.
Do Huu Dat, Nam Hyeon-Woo, Po-Yuan Mao, and Tae-Hyun Oh. 2025. Vsc: Visual search compositional text-to-image diffusion model. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 19153–19162.
Sepehr Dehdashtian, Gautam Sreekumar, and Vishnu Naresh Boddeti. 2025. Oasis uncovers: High-quality t2i models, same old stereotypes. In International Conference on Learning Representations.
Prafulla Dhariwal and Alex Nichol. 2021. Diffusion models beat gans on image synthesis. In Proceedings of the 35th International Conference on Neural Information Processing Systems, NIPS '21, Red Hook, NY, USA. Curran Associates Inc.
Moreno D'Incà, Elia Peruzzo, Massimiliano Mancini, Dejia Xu, Vidit Goel, Xingqian Xu, Zhangyang Wang, Humphrey Shi, and Nicu Sebe. 2024. Openbias: Open-set bias detection in text-to-image generative models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 12225–12235.
Kimmo Eriksson, Pontus Strimling, Irina Vartanova, Brent Simpson, {Minna S.} Persson, {Khalid Ahmed} Abdi, Niv Ad, Alisher Aldashev, {Habib Mohammad} Ali, Maurizio Ali, Khatai Aliyev, Yasser Alrefaee, {Alberth Estuardo Alvarado} Ortiz, Per Andersson, Giulia Andrighetto, Gizem Arkan, {John Jamir Benzon R.} Aruta, {Lutete Christian} Ayikwa, Jonatan Baños-Chaparro, and 81 others. 2025. Everyday norms have become more permissive over time and vary across cultures. Communications psychology, 3(1).
Benjamin Ertman, Bridget Xia, Mona Sloane, Tom Hartvigsen, and Paul B Perrin. 2025. Disability portrayals in artificial intelligence text-to-image generation: Influence of context and the medicalization of disability. Rehabilitation Psychology.
Patrick Esser, Sumith Kulal, Andreas Blattmann, Rahim Entezari, Jonas Müller, Harry Saini, Yam Levi, Dominik Lorenz, Axel Sauer, Frederic Boesel, Dustin Podell, Tim Dockhorn, Zion English, and Robin Rombach. 2024. Scaling rectified flow transformers for high-resolution image synthesis. In Proceedings of the 41st International Conference on Machine Learning, ICML'24. JMLR.org.
Susan T Fiske, Amy JC Cuddy, Peter Glick, and Jun Xu. 2018. A model of (often mixed) stereotype content: Competence and warmth respectively follow from perceived status and competition. In Social cognition, pages 162–214. Routledge.
Felix Friedrich, Manuel Brack, Lukas Struppek, Dominik Hintersdorf, Patrick Schramowski, Sasha Luccioni, and Kristian Kersting. 2025. Auditing and instructing text-to-image generation models on fairness. AI and Ethics, 5(3):2103–2123.
Zihao Fu, Ryan Brown, Shun Shao, Kai Rawal, Eoin D. Delaney, and Chris Russell. 2025. Fairimagen: Post-processing for bias mitigation in text-to-image models. In Proceedings of the 39th Conference on Neural Information Processing Systems (NeurIPS).
Leander Girrbach, Stephan Alaniz, Genevieve Smith, and Zeynep Akata. 2025. A large scale analysis of gender biases in text-to-image generative models. arXiv preprint arXiv:2503.23398.
Aditya Gulati, Moreno D'Incà, Nicu Sebe, Bruno Lepri, and Nuria Oliver. 2025. Beauty and the bias: Exploring the impact of attractiveness on multimodal large language models. In Proceedings of the AAAI/ACM Conference on AI, Ethics, and Society, volume 8, pages 1154–1168.
Tanmay Gupta and Aniruddha Kembhavi. 2023. Visual programming: Compositional visual reasoning without training. In 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 14953–14962.
Donna Haraway. 1988. Situated knowledges: The science question in feminism and the privilege of partial perspective. Feminist Studies, 14(3):575–599.
Lisa Anne Hendricks, Kaylee Burns, Kate Saenko, Trevor Darrell, and Anna Rohrbach. 2018. Women also snowboard: Overcoming bias in captioning models. In Computer Vision – ECCV 2018: 15th European Conference, Munich, Germany, September 8–14, 2018, Proceedings, Part III, page 793–811, Berlin, Heidelberg. Springer-Verlag.
Sullam Jeoung, Yubin Ge, and Jana Diesner. 2023. StereoMap: Quantifying the awareness of human-like stereotypes in large language models. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 12236–12256, Singapore. Association for Computational Linguistics.
Krish Kabra, Kathleen M. Lewis, and Guha Balakrishnan. 2024. Gelda: A generative language annotation framework to reveal visual biases in image generators. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) Workshops, pages 8304–8309.
Mamadou Keita, Wassim Hamidouche, Hessen Bougueffa Eutamene, Abdelmalik Taleb-Ahmed, David Camacho, and Abdenour Hadid. 2025. Bi-lora: A vision-language approach for synthetic image detection. Expert Systems, 42(2):e13829.
Thomas Klassert, Adrian Ulges, and Biying Fu. 2026. Bafis: Dataset + framework to assess occupational bias and human preference in modern text-to-image models. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), pages 2168–2177.
Shaghayegh Kolli, Timo Cavelius, Nafiseh Nikeghal, Samantha Dalal, and Jana Diesner. 2026. Stylisticbias: A few human visual cues drive most social biases in mllms. Preprint, arXiv:2606.20527.
Brenden Lake and Marco Baroni. 2018. Generalization without systematicity: On the compositional skills of sequence-to-sequence recurrent networks. In International conference on machine learning, pages 2873–2882. PMLR.
Jeng-Lin Li, Ming-Ching Chang, and Wei-Chao Chen. 2026. How bias binds: Measuring hidden associations for bias control in text-to-image compositions. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 40, pages 37600–37608.
Yifan Li, Yifan Du, Kun Zhou, Jinpeng Wang, Xin Zhao, and Ji-Rong Wen. 2023. Evaluating object hallucination in large vision-language models. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 292–305, Singapore. Association for Computational Linguistics.
Zeyi Liao and Huan Sun. 2024. AmpleGCG: Learning a universal and transferable generative model of adversarial suffixes for jailbreaking both open and closed LLMs. In First Conference on Language Modeling.
Xinyue Lou, You Li, Jinan Xu, Xiangyu Shi, Chi Chen, and Kaiyu Huang. 2025. Think in safety: Unveiling and mitigating safety alignment collapse in multimodal large reasoning model. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pages 5167–5186, Suzhou, China. Association for Computational Linguistics.
Alexandra Sasha Luccioni, Christopher Akiki, Margaret Mitchell, and Yacine Jernite. 2023. Stable bias: evaluating societal representations in diffusion models. In Proceedings of the 37th International Conference on Neural Information Processing Systems, NIPS '23.
Sina Malakouti and Adriana Kovashka. 2025. Role bias in diffusion models: Diagnosing and mitigating through intermediate decomposition. In The Thirti-ninth Annual Conference on Neural Information Processing Systems.
Oscar Mañas, Pietro Astolfi, Melissa Hall, Candace Ross, Jack Urbanek, Adina Williams, Aishwarya Agrawal, Adriana Romero-Soriano, and Michal Drozdzal. 2024. Improving text-to-image consistency via automatic prompt optimization. arXiv preprint arXiv:2403.17804.
Raj Gaurav Maurya, Vaibhav Shukla, and Sreedath Panat. 2026. Colorism in multimodal AI: An empirical exploration of socioeconomic linguistic bias in text-to-image generation. In Proceedings of the 19th Conference of the European Chapter of the Association for Computational Linguistics (Volume 4: Student Research Workshop), pages 937–951, Rabat, Morocco. Association for Computational Linguistics.
Ranjita Naik and Besmira Nushi. 2023. Social biases through the text-to-image generation lens. In Proceedings of the 2023 AAAI/ACM Conference on AI, Ethics, and Society, AIES '23, page 786–808, New York, NY, USA. Association for Computing Machinery.
Laura K Nelson. 2022. Situated knowledges and partial perspectives: A framework for radical objectivity in computational social science and computational humanities. New Literary History, 54(1):853–877.
Nafiseh Nikeghbal, Amir Hossein Kargaran, and Jana Diesner. 2025. Cobia: Constructed conversations can trigger otherwise concealed societal biases in llms. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pages 1618–1639.
Junyeong Park, Sowon Min, Euna Jang, Soobin Kim, Jiho Jin, Hyunseung Lim, Gahyeon Bae, and Hwa-jung Hong. 2026a. Investigating social bias in narrative image generation. Preprint, arXiv:2608.01780.
NaHyeon Park, Na Min An, Kunhee Kim, Soyeon Yoon, Jiahao Huo, and Hyunjung Shim. 2026b. Aligned but stereotypical? how system prompts shape demographic bias in llm-based text-to-image models. Preprint, arXiv:2512.04981.
Barbara Plank. 2022. The “problem” of human label variation: On ground truth in data, modeling and evaluation. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 10671–10682, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.
Dustin Podell, Zion English, Kyle Lacey, Andreas Blattmann, Tim Dockhorn, Jonas Müller, Joe Penna, and Robin Rombach. 2024. Sdxl: Improving latent diffusion models for high-resolution image synthesis. In International Conference on Learning Representations, pages 1862–1874.
Chahat Raj, Anjishnu Mukherjee, Aylin Caliskan, Antonios Anastasopoulos, and Ziwei Zhu. 2024. Bias-Dora: Exploring hidden biased associations in vision-language models. In Findings of the Association for Computational Linguistics: EMNLP 2024, pages 10439–10455, Miami, Florida, USA. Association for Computational Linguistics.
Shaina Raza, Maximus Powers, Partha Pratim Saha, Mahveen Raza, and Rizwan Qureshi. 2025. Prompting away stereotypes? evaluating bias in text-to-image models for occupations. Preprint, arXiv:2509.00849.
Nils Reimers and Iryna Gurevych. 2019. Sentence-bert: Sentence embeddings using siamese bert-networks. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing.
Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. 2022. High-resolution image synthesis with latent diffusion models. In 2022 IEEE/CVF conference on computer vision and pattern recognition (CVPR), pages 10674–10685. IEEE.
Maarten Sap, Dallas Card, Saadia Gabriel, Yejin Choi, and Noah A. Smith. 2019. The risk of racial bias in hate speech detection. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 1668–1678, Florence, Italy. Association for Computational Linguistics.
Ashutosh Sathe, Prachi Jain, and Sunayana Sitaram. 2024. A unified framework and dataset for assessing societal bias in vision-language models. In Findings of the Association for Computational Linguistics: EMNLP 2024, pages 1208–1249, Miami, Florida, USA. Association for Computational Linguistics.
Preethi Seshadri, Sameer Singh, and Yanai Elazar. 2024. The bias amplification paradox in text-to-image generation. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), pages 6367–6384, Mexico City, Mexico. Association for Computational Linguistics.
Yingdong Shi, Changming Li, Yifan Wang, Yongxiang Zhao, Anqi Pang, Sibei Yang, Jingyi Yu, and Kan Ren. 2025. Dissecting and mitigating diffusion bias via mechanistic interpretability. In 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 8192–8202.
Aaditya Singh, Adam Fry, Adam Perelman, Adam Tart, Adi Ganesh, Ahmed El-Kishky, Aidan McLaughlin, Aiden Low, AJ Ostrow, Akhila Ananthram, and 1 others. 2025. Openai gpt-5 system card. arXiv preprint arXiv:2601.03267.
Kaiyue Sun, Kaiyi Huang, Xian Liu, Yue Wu, Zihan Xu, Zhenguo Li, and Xihui Liu. 2025. T2v-comppench: A comprehensive benchmark for compositional text-to-video generation. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 8406–8416.
Dídac Surís, Sachit Menon, and Carl Vondrick. 2023. Vipergpt: Visual inference via python execution for reasoning. In 2023 IEEE/CVF International Conference on Computer Vision (ICCV), pages 11854–11864.
Tristan Thrush, Ryan Jiang, Max Bartolo, Amanpreet Singh, Adina Williams, Douwe Kiela, and Candace Ross. 2022. Winoground: Probing vision and language models for visio-linguistic compositionality.
In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 5238–5248.
Maria Mihaela Trusca, Wolf Nuyts, Jonathan Thomm, Robert Hönig, Thomas Hofmann, Tinne Tuytelears, and Marie-Francine Moens. 2024. Leveraging the syntactic structure of the text prompt to enhance object-attribute binding in image generation. In Proceedings of the 2nd Workshop on Large Generative Models Meet Multimodal Applications, page 6–10.
U.S. Bureau of Labor Statistics. 2018. Standard Occupational Classification (SOC) Manual, 2018. U.S. Department of Labor. The set of occupations used for data collection and analysis by U.S. Federal statistical agencies.
Franck Vandewiele, Rémi Synave, Samuel Delepoulle, and Rémi Cozot. 2026. Beyond the prompt: gender ratio in text-to-image models, with a case study on hospital professions. AI and Ethics, 6(1):134.
Hannah Weinmann, Tanja V Messingschlager, and Markus Appel. 2026. Gender bias in text-to-image generative artificial intelligence: Neglect and stereotypical presentations across three popular platforms. new media & society.
Chenfei Wu, Jiahao Li, Jingren Zhou, Junyang Lin, Kaiyuan Gao, Kun Yan, Sheng-ming Yin, Shuai Bai, Xiao Xu, Yilei Chen, and 1 others. 2025a. Qwen-image technical report. arXiv preprint arXiv:2508.02324.
Yankun Wu, Yuta Nakashima, and Noa Garcia. 2025b. Revealing gender bias from prompt to image in stable diffusion. Journal of Imaging, 11(2).
Hidir Yesiltepe, Kiymet Akdemir, and Pinar Yanardag. 2024. Mist: Mitigating intersectional bias with disentangled cross-attention editing in text-to-image diffusion models. arXiv preprint arXiv:2403.19738.
Zhiwen You, Nafiseh Nikeghbal, and Jana Diesner. 2026. Neuron-level interventions for gendered and gender-neutral generation in language models. Preprint, arXiv:2605.30717.
Arman Zarei, Keivan Rezaei, Samyadeep Basu, Mehrdad Saberi, Mazda Moayeri, Priyatham Kattakinda, and Soheil Feizi. 2025. Improving compositional attribute binding in text-to-image generative models via enhanced text embeddings. Preprint, arXiv:2406.07844.
Cheng Zhang, Xuanbai Chen, Siqi Chai, Chen Henry Wu, Dmitry Lagun, Thabo Beeler, and Fernando De la Torre. 2023. Iti-gen: Inclusive text-to-image generation. In 2023 IEEE/CVF International Conference on Computer Vision (ICCV), pages 3946–3957. IEEE.
Jieyu Zhao, Tianlu Wang, Mark Yatskar, Vicente Ordonez, and Kai-Wei Chang. 2017. Men also like shopping: Reducing gender bias amplification using corpus-level constraints. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pages 2979–2989, Copenhagen, Denmark. Association for Computational Linguistics.
A ContextBench
This section provides additional implementation details for ContextBench beyond what is covered in Sec. 3.2. The benchmark systematically isolates contextual effects while holding role identity fixed. This design enables the controlled measurement of how location and activity context influences generated visual attributes. The full role inventory is listed in Table 4; context locations are listed in Table 5.
A.1 Context Bank
For each role we construct two context banks: role-related contexts and role-unrelated contexts. Role-related contexts are environments and activities that naturally co-occur with the profession (e.g., a doctor in a clinic, a firefighter at a fire station, a game developer in a development environment). Role-unrelated contexts are everyday settings that lack an inherent semantic relationship with the occupation (e.g., supermarkets, residential streets, kitchens, parks), and test whether occupational visual attributes persist even when the surrounding environment does not support the role identity.
Candidate cues are generated using GPT-4o-mini and subsequently filtered by manual inspection. The filtering process removes rare, implausible, or potentially stereotype-inducing entries. We additionally exclude contexts that depend strongly on culture-specific practices, symbols, or social conventions when these could introduce associations independent of the occupational role. This filtering is not intended to treat cultural specificity as undesirable; rather, it reduces an additional source of variation so that differences across conditions can be more directly attributed to the role–context manipulation. Because the benchmark is constructed around U.S. occupational categories and predominantly Western photographic contexts, this notion of interpretability is necessarily Western/U.S.-centric and should not be interpreted as culturally universal. Within this scope, the resulting banks provide plausible contexts whose semantic content is less likely to introduce strong demographic or stereotypical priors of its own.
A.2 Prompt Construction
Prompts are built from controlled templates that combine a role with optional contextual information; the three condition types are defined in Sec. 3.2. The benchmark uses the following prompt
families:
-
CF: a photo of a {ROLE}
-
CA-R: a photo of a {ROLE} in a {LOCATION} and a photo of a {ROLE} doing {ACTIVITY} in a {LOCATION}, with and
-
CA-U: identical structure with and
Each base prompt is expanded using two semantically equivalent paraphrases to reduce sensitivity to specific phrasing. Contextual prompts additionally include substitution variants obtained by replacing activities and locations with alternatives drawn from the same context bank. Authors checked the generation for correctness and plausibility. This process yields 18 prompt configurations per role, five base prompts, two paraphrases of each, and three location/activity substitutions, and 1,656 prompts in total.
B Image Generation
This section expands on the generation protocol introduced in Sec. 3.3. All models are evaluated using the same prompt set and standardized generation parameters, varying only the random seed, so that differences across contextual conditions reflect variations in model behavior rather than generation settings.
Images are synthesized using four text-to-image generators: Stable Diffusion XL (SDXL) (Podell et al., 2024), Stable Diffusion 3.5 (Esser et al., 2024), FLUX.1 (Black Forest Labs et al., 2025), and Qwen-Image (Wu et al., 2025a). Formally, for generator and prompt , the generated image set is , where denotes the set of random seeds; ten independent seeds are sampled per prompt.
Images are generated at each model's native resolution: for Stable Diffusion XL, Stable Diffusion 3.5 and FLUX.1, and for Qwen-Image. Resolution therefore differs across generators, which may affect the rendering and extraction of fine-grained attributes such as facial hair and accessories, among the lowest-scoring dimensions in Table 7. Prompts are passed directly to the models without manual modification. A fixed negative prompt suppresses undesirable visual elements such as watermarks, embedded text, distorted anatomy, and duplicated limbs. A consistent
Table 4: Roles used in ContextBias for contextual-bias evaluation. We generate images across 92 occupations under CF, CA-rel, and CA-unrel prompts.
| Role | ||||
|---|---|---|---|---|
| accountant | comedian | game developer | pharmacist | singer |
| actor | constructor | guard | photographer | social worker |
| analyst | cook | hairdresser | physician | software engineer |
| artist | counselor | housekeeper | physicist | soldier |
| assistant | customer service rep | janitor | pilot | stage manager |
| athlete | dancer | journalist | playwright | supervisor |
| auditor | designer | judge | plumber | surgeon |
| baker | detective | laborer | poet | tailor |
| bartender | developer | lawyer | police officer | taxi driver |
| biologist | doctor | librarian | politician | teacher |
| blacksmith | editor | machinist | railway conductor | train driver |
| bus driver | electrician | manager | receptionist | waiter |
| carpenter | engineer | marketing specialist | researcher | waitress |
| cashier | entrepreneur | mechanic | salesperson | web developer |
| ceo | factory worker | mover | scientist | welder |
| chef | farmer | musician | screenwriter | writer |
| chemist | film director | novelist | seamstress | |
| cleaner | firefighter | nurse | secretary | |
| clerk | flight attendant | paramedic | sheriff | |
photographic style descriptor is applied to encourage photorealistic imagery across all four models.
C Attribute Extraction
This section provides implementation details for the schema-guided audit pipeline described in Sec. 3.4. The complete attribute schema is reported in Table 6.
C.1 Implementation Details
Attribute extraction is performed using GPT-5-mini (Singh et al., 2025) coordinated through the CrewAI framework. The audit agent enforces schema constraints and produces a structured record for each image. Closed-vocabulary dimensions receive predefined labels; open-vocabulary dimensions produce short evidence-grounded descriptions; missing evidence is represented as unknown (scalar attributes) or [] (list attributes). Examples of the task specification, agent prompt, and vision tool configuration are shown in Figs. 5, 6, and 7.
C.2 Reproducibility
For each processed image we record the prompt template version, schema version, and the hash of the vision tool response, allowing the full extraction process to be reproduced by re-running the same configuration. Because the agent configuration and schema remain fixed across runs, the procedure produces consistent structured annotations for large image batches without manual intervention.
D Validation
D.1 Quantitative Validation
Per-dimension extraction accuracy is reported in Table 7.
This section extends the description in Sec. 4.2 with additional prompt examples. Candidate attributes are identified by mining the generated corpus and selecting dominant labels associated with each role. From these, we automatically construct 220 role–attribute prompts by inserting the role and attribute into a fixed template (e.g., “a photo of a male bartender”). Representative prompts include “a photo of a black-haired train driver,” “a photo of an adult waitress,” “a photo of a surgeon wearing gloves,” “a photo of a female flight attendant,” “a photo of a firefighter with stubble,” “a photo of a railway conductor wearing a cap,” and “a photo of a dentist wearing a mask.”
For each prompt, ten images are generated per model, yielding 2,200 images per generator. Because the attribute is explicitly specified in the prompt, it serves as the ground-truth reference for evaluation. “”
D.2 Human Annotation Study
The annotation interface randomised image order and concealed prompt and model information to reduce potential bias. Closed-set items required one category (with unknown / not visible) plus a 0–10 prevalence slider; open-set items used a brief descriptor plus the same slider. For each triplet, the final category is the majority vote (ties broken by the higher mean slider); prevalence is the mean slider value. Basic quality control checks (time-on-task, excessive unknown) were applied before
Table 5: Context locations used in ContextBias for contextual-bias evaluation. We aggregate unique related locations across all roles and unique unrelated locations.
| Related | Unrelated | |||
|---|---|---|---|---|
| hallway | counseling office | patient's room | apartment hallway | laundromat |
| aisle | courtroom | pharmacy | backyard | library |
| ambulance | dental clinic | police station | balcony | library reading area |
| atelier | design studio | press conference | bathroom | living room |
| auto shop | development environment | production line | bedroom | local supermarket |
| backstage | editorial office | rainforest | bookstore | mall corridor |
| bakery | entrance | residential building | bus stop | metro platform |
| bar counter | fabrication shop | restaurant | cafe | museum gallery |
| basement | field | salon | cafeteria | neighborhood street |
| bathroom | film set | sculpture studio | café | office building lobby |
| boardroom | forge | sports field | car park | orchard |
| burning building | front desk | stage | city park | park |
| call center | hallway | studio | community center | parking lot |
| candlelit study | highway | study | corner store | playground |
| checkout counter | intersection | theater stage | couch | public square |
| city street | kitchen | theater studio | courtyard | residential street |
| classroom | laboratory | town hall | dog park | school hallway |
| clinic | library desk | town square | farmer's market | shopping aisle |
| cockpit | living room | track | garden | skate park |
| coffee shop | lobby | train cockpit | grocery store | sports field |
| comedy club | machine shop | train platform | gym | study room |
| community center | military base | warehouse | home | subway station |
| computer lab | office | wedding venue | hotel lobby | supermarket |
| conference room | operating room | woodshop | ice cream shop | track |
| construction site | optical shop | workshop | intersection | train station |
| corporate office | park | kitchen | waiting room | |
analysis.
E Additional Results
E.1 Cluster Bootstrap Analysis
The cohort-level BI shifts reported in Sec. 5.1 are point estimates over roles. To quantify their uncertainty, we additionally run a role-level cluster bootstrap with replicates, resampling roles with replacement (rather than individual images) so that the resampling unit matches the unit of analysis, and recomputing pooled BI within each replicate. We report the resulting mean differences with 95% percentile confidence intervals.
Cohort-level differences. Table 8 reports BI differences between all three pairs of conditions. In the structurally matched comparison (CA-U–CA-R, where both prompts carry a location and an activity and only their semantic relatedness to the role differs), pooled attribute concentration increases consistently across all four cohorts. Relative to CF, unrelated context increases concentration overall (+0.045, 95% CI [0.030, 0.050]), with the largest dimension-level changes observed for mood (+0.176) and weather (+0.157).
Per-generator differences. Table 9 reports the same CA-U–CF comparison separately for each generator. The principal trends are consistent across all four models: unrelated context increases concentration in the People, Objects, and Scene cohorts, while the Camera cohort behaves more heterogeneously, with SD 3.5 and SDXL showing negative or null shifts and FLUX.1 and Qwen-Image showing positive ones.
Camera cohort at the dimension level. The near-zero pooled Camera shift reported in Sec. 5.1 (-0.003 from CF to CA-U) averages over dimensions that move in opposite directions, and is therefore misleading if read as evidence that camera attributes are unaffected by context. Decomposing the cohort gives framing +0.120, perspective +0.011, and depth_of_field -0.154: framing collapses toward fewer dominant configurations under unrelated context, while depth of field becomes more varied. We therefore report Camera results at the dimension level throughout.
E.2 Pooled and Role-Conditional BI
Eq. 1 can be applied either to the label distribution pooled over roles or to each role separately and then averaged. Table 10 reports both. Because per-role cells carry fewer images than the pooled distribution, and plug-in entropy is biased downward at small samples, the role-conditional column is computed at matched support (subsampled to the smallest per-condition cell size, averaged over repeated draws); a Miller–Madow correction on the full data gives the same sign. The two forms mea-
Table 6: Audit schema used in ContextBias. Cohorts, dimensions, example labels, and data types. Open-vocabulary fields are free text consolidated during analysis. Label sets give the canonicalised vocabulary used in the analysis, which merges surface variants produced by the vision prompt.
| Cohort | Dimension | Label (examples) | Data type |
|---|---|---|---|
| Scene appearance | mood | calm, tense, joyful, melancholic, mysterious, romantic, foreboding, whimsical, | string |
| Scene appearance | color_temperature | minimalistic, dramatic, unknown | string |
| Scene appearance | aesthetic_qualities | warm, neutral, cool, mixed, unknown | string |
| minimal, baroque, retro, surreal, abstract, realistic, fantasy, cinematic, gritty, | list of string | ||
| dreamy, industrial, unknown | |||
| Scene appearance | dominant_colors | white, black, gray, silver, gold, beige, brown, tan, cream, red, orange, yellow, | list of string |
| green, teal, blue, navy, purple, pink, olive, unknown | |||
| Scene appearance | weather | clear, sunny, cloudy, overcast, rain, drizzle, storm, snow, fog, mist, windy, | string |
| hail, unknown | |||
| Camera | depth_of_field | shallow, medium, deep, infinite, unknown | string |
| Camera | framing | tight, medium, wide, balanced, asymmetric, unknown | string |
| Camera | perspective | first_person, third_person, birdseye, wormseye, eye_level, high_angle, unknown | string |
| Objects | items | open vocabulary | list of string |
| People | person_id | "p1", "p2", . . . | string |
| People | age_range | child, teen, young_adult, middle_aged, older_adult, unknown | string |
| People | body_type | slim, average, athletic, stocky, curvy, unknown | string |
| People | gender_presentation | female, male, unknown | string |
| People | skin_tone | light, medium, dark, unknown | string |
| People | expression | neutral, smiling, frowning, serious, focused, surprised, angry, sad, happy, tired, | string |
| unknown | |||
| People | pose | standing, sitting, kneeling, lying, leaning, bending, arms_crossed, hands_on_hips, | string |
| unknown | |||
| People | activities | open vocabulary | list of string |
| People | accessories | bag, belt, bracelet, earrings, gloves, headphones, jewelry, mask, necklace, scarf, | list of string |
| watch, badge, tie, tool, safety_gear, medical, religious, none, unknown | |||
| People | hair_present | yes, no, unknown | string |
| People | hair_style | short, long, bob, pixie, ponytail, braids, bun, curly, wavy, straight, updo, shaved, afro, mohawk, unknown | string |
| People | hair_color | black, brown, blonde, red, grey, white, blue, green, pink, purple, unknown | string |
| People | eyewear_present | yes, no, unknown | string |
| People | eyewear_type | eyeglasses, sunglasses, safety_goggles, ski_goggles, swim_goggles, monocle, vr_headset, protective_face_shield, none, unknown | string |
| People | facial_hair_present | yes, no, unknown | string |
| People | facial_hair_style | mustache, beard, goatee, stubble, soul_patch, sideburns, none, unknown | string |
| People | facial_hair_color | black, brown, blonde, red, grey, white, blue, green, pink, purple, unknown | string |
| People | head_covering_present | yes, no, unknown | string |
| People | head_covering_type | hat, helmet, hood, hijab, turban, veil, headband, beanie, hairnet, none, unknown | string |
| People | tattoo_present | yes, no, unknown | string |
| People | clothing_garment | open vocabulary | list of string |
sure different quantities: unrelated context makes the benchmark-wide label distribution more concentrated while leaving each role’s own distribution no more concentrated than at baseline.
E.3 Extended Role-Label Associations
We report the small set of significant role–label associations with prevalence, stability, and homogeneity statistics across all models in Table 11.
E.4 Qualitative Examples
Qualitative examples are shown in Figs. 9 and 10.
| Task Prompt |
|---|
| InputsYou receive metadata for an image that must be described and structured.image_id: {image_id}image_path: {image_path}dataset_root: {dataset_root}source_model: {source_model}ToolingYou MUST call the tool DescribeImageFromFile with the given image_path to inspect the image content. Treat the tool's text as evidence only; do not copy its formatting.TaskEmit exactly one JSON object that conforms to schemas.description.ImageAuditRecord.Use only schema enum tokens where defined; when evidence is missing, write "unknown" for scalars and [] for lists.Do not add or rename keys. Keep arrays present even if empty.Set image.image_id to {image_id}.Set image.file_path to the path of the image relative to {dataset_root} (use forward slashes). If you cannot compute the relative path, use {image_path} as-is.Set image.source_model to {source_model}.Cohortsscene_appearance: mood, color_temperature, contrast_level, aesthetic_qualities[], dominant_colors[], weather.camera: depth_of_field, framing, perspective.people: provide persons as an array. Each person entry must include person_id (short token or "unknown"), accessories[], activities[], age_range, body_type, clothing (array of { clothing_garment, clothing_color[] }), eyewear_present, eyewear_type, facial_hair_present, facial_hair_style, facial_hair_color, gender_presentation, hair_present, hair_color, hair_style, tattoo_present, head_covering_present, head_covering_type, pose, expression, role_hint, skin_tone. Deduplicate list values within each person.objects: items mapping where each object name maps to { size, color[], material[] }.safety: hazards, nsfw (short free text or "unknown").totals: images=1, object_instances, people_instances (integers when explicit, otherwise "unknown").People aggregationWhen multiple people are present, create one entry per person in people.persons. Use consistent identifiers if the tool output references them.FormattingReturn VALID JSON only (no explanations, no markdown). |
Figure 5: Prompt used to configure the CrewAI Task.
| Agent Prompt |
|---|
| role =Call the configured vision tool for each image and return its output verbatim. Then translate the tool's authoritative narrative into the ImageAuditRecord schema without omitting required fields.goal =Produce a strictly valid ImageAuditRecord JSON payload that mirrors the tool observations, uses only declared enum tokens, and writes 'unknown' or [] whenever evidence is missing.backstory =A forensic cataloger who trusts instrument readings above intuition. They read the vision tool output carefully, organize it into structured cohorts, and never invent facts beyond what the tool reports. |
Figure 6: Prompt used to configure the CrewAI agent.
Vision Tool Prompt
Global rules You are a careful vision assistant. Analyze the image and extract only the fields required by the schema below. Return plain text following exactly the sections and keys provided. Do not rename keys or add sections. Use enum tokens verbatim where applicable. When evidence is missing, use "unknown" or []. Do not use markdown, bullet symbols, or code fences in your response. Avoid redundancy: deduplicate lists and use concise phrasing. Do not speculate: use "unknown" or [] where precision is impossible. If an area is too blurred to analyze, mark "unknown" or []. Describe only what is visually verifiable; never infer hidden context, identities, or intentions.
People (visible humans only) Describe each visibly distinct person in the image. If a figure is too blurred or unclear to identify key traits, skip that person. For each person ("Person 1", "Person 2", ...), record: gender_presentation: (GenderPresentation): male/female/non-binary/unknown skin_tone: (SkinTone): light/medium/dark/unknown age_range: (AgeRange): child/teen/young_adult/middle_aged/older_adult/unknown hair, facial hair, tattoos, and head coverings: include colors, styles, presence indicators, and tattoo visibility. clothing: list each visible garment using simple names (e.g., "shirt", "pants", "tie") with its color(s); if clearly a work or professional uniform, note it explicitly. head_covering_type: zero or more HeadCoveringType values ("hat", "helmet", "hood", "hijab", "turban", "veil", "headband", "beanie", "hairnet", "none", "unknown"). eyewear: specify one clear EyewearType (e.g., "eyeglasses", "sunglasses"). accessories: visible AccessoryType items (e.g., "bag", "hat", "watch"). pose: one PoseType - "standing", "leaning", "bending", "arms_crossed", "hands_on_hips", "unknown". expression: one Expression (e.g., "neutral", "smiling", "focused"). activity: the person's main visible action in 1-3 words. body_type: slim/average/athletic/heavyset/unknown.
Schema section (People): People:
- persons:
- person_id: <short token or "unknown"> accessories: [<AccessoryType>, ...] activities: [<short free text tokens>, ...] age_range: <AgeRange> body_type: <BodyType> Clothing:
- clothing_garment: <short free text> clothing_color: [<ColorName>, ...] eyewear_present: <yes|no|unknown> eyewear_type: <EyewearType> facial_hair_present: <yes|no|unknown> facial_hair_style: <FacialHairStyle> facial_hair_color: <ColorName> gender_presentation: <GenderPresentation> hair_present: <yes|no|unknown> hair_color: <HairColor> hair_style: <HairStyle> tattoo_present: <yes|no|unknown> head_covering_present: <yes|no|unknown> head_covering_type: <HeadCoveringType> pose: <PoseType> expression: <Expression> skin_tone: <SkinTone>
SceneAppearance Define the overall look, lighting, and mood of the scene based only on visual cues. Mood: choose one from ("calm", "tense", "joyful", "melancholic", "mysterious", "romantic", "foreboding", "whimsical", "minimalistic", "dramatic", "unknown"). Dominant colors: list the top three dominant colors (ColorName) visible in the image. Color temperature: choose one ColorTemperature - "warm", "cool", "neutral", "mixed", "unknown". Aesthetic quality: choose one AestheticQuality - "minimal", "baroque", "retro", "surreal", "abstract", "realistic", "fantasy", "cinematic", "gritty", "dreamy", "industrial", "unknown". Weather: choose one of "clear", "sunny", "cloudy", "overcast", "rain", "drizzle", "storm", "snow", "fog", "mist", "windy", "hail", "unknown".
Schema section (SceneAppearance): SceneAppearance:
- mood: <Mood>
- color_temperature: <ColorTemperature>
- aesthetic_quality: <AestheticQuality>
- dominant_colors: [<ColorName>, <ColorName>, <ColorName>]
- weather: <Weather>
Camera Describe the viewpoint, focus depth, and framing style as they appear in the image (how the scene is captured rather than what is captured). Perspective: "first_person", "third_person", "birdseye", "wormseye", "eye_level", "high_angle", "unknown". Depth of field: "shallow", "medium", "deep", "infinite", "unknown". Framing: "tight", "medium", "wide", "balanced", "asymmetric", "unknown".
Schema section (Camera): Camera:
- depth_of_field: <DepthOfField>
- framing: <Framing>
- perspective: <Perspective>
Objects Focus on the 3-5 most visually dominant non-human items, especially those associated with people in the image. Describe each object's size, color, and material using the most recognizable common name.
Schema section (Objects): Objects:
- items:
- <object_name>: { size: <ObjectSize>, color: [<ColorName>, ...], material: [<MaterialType>, ...] }
Enum guidance (strict usage) Use only valid schema tokens for all enumerated fields:
Mood, ColorTemperature, AestheticQuality, ColorName, Weather, DepthOfField, Framing, Perspective, ObjectSize, AccessoryType, AgeRange, BodyType, GenderPresentation, HairStyle, HairColor, EyewearType, FacialHairStyle, HeadCoveringType, Expression, PoseType, MaterialType. For free-text lists (activities, clothing, object names, safety notes), use short, evidence-based terms. If unclear, output []. Never infer hidden context, purpose, or identity – describe visible evidence only.
Figure 7: Vision tool prompt.
Table 7: ContextBias extraction accuracy (%) across verifiable schema dimensions.
| Dimension | SD 3.5 | SDXL | FLUX.1 | Qwen | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Acc | Rec | Acc | Rec | Acc | Rec | Acc | Rec | |||||
| activities | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 |
| aesthetic qual. | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 |
| age range | 80 | 80 | 88.9 | 100 | 100 | 100 | 65 | 65 | 78.8 | 75.0 | 75.0 | 85.7 |
| body type | 80 | 80 | 88.9 | 80 | 80 | 88.9 | 90 | 90 | 94.7 | 90.0 | 90.0 | 94.7 |
| color temperature | 91.1 | 91.1 | 95.3 | 80 | 80 | 88.9 | 71.1 | 71.1 | 83.1 | 98.9 | 98.9 | 99.4 |
| clothing garment | 87.2 | 87.2 | 93.2 | 87.5 | 87.5 | 93.3 | 84.8 | 84.8 | 91.8 | 87.7 | 87.7 | 93.4 |
| expression | 100 | 100 | 100 | 97.5 | 97.5 | 98.7 | 95 | 95 | 97.4 | 98.8 | 98.8 | 99.4 |
| eyewear present | 83.2 | 83.2 | 90.8 | 95.5 | 95.5 | 97.7 | 60 | 60 | 75.0 | 83.3 | 83.3 | 90.9 |
| eyewear type | 96.7 | 96.7 | 98.3 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 |
| facial hair color | 100 | 100 | 100 | 100 | 100 | 100 | 80 | 80 | 88.9 | 100 | 100 | 100 |
| facial hair style | 93.3 | 93.3 | 96.5 | 96.7 | 96.7 | 98.3 | 96.7 | 96.7 | 98.3 | 98.3 | 98.3 | 99.2 |
| framing | 63.3 | 63.3 | 77.6 | 60 | 60 | 75.0 | 68 | 68 | 81.0 | 58.0 | 58.0 | 73.4 |
| gender present. | 100 | 100 | 100 | 99.6 | 99.6 | 99.8 | 99.3 | 99.3 | 99.6 | 100 | 100 | 100 |
| hair color | 100 | 100 | 100 | 100 | 100 | 100 | 88.6 | 88.6 | 93.9 | 100 | 100 | 100 |
| head cov. present | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 |
| head cov. type | 100 | 100 | 100 | 100 | 100 | 100 | 97.5 | 97.5 | 98.7 | 100 | 100 | 100 |
| items | 85.5 | 85.5 | 92.2 | 85.5 | 85.5 | 92.2 | 76.1 | 76.1 | 86.4 | 83.0 | 83.0 | 90.7 |
| pose | 80 | 80 | 88.9 | 92.5 | 92.5 | 96.1 | 96.3 | 96.3 | 98.1 | 98.8 | 98.8 | 99.4 |
| skin tone | 72.5 | 72.5 | 84.1 | 73.3 | 73.3 | 84.6 | 50 | 50 | 66.7 | 100 | 100 | 100 |

What is the dominant age range among the 10 images?
child
teen
young_adult
middle_aged
older_adult
unknown
On a scale of 0–10, how many images match the label you selected?

Figure 8: Example annotation form used in our study. The interface displays a 10-image set for the role of baker and context-free, posing a schema-aligned categorical question (here: dominant age range). Annotators then use a 0–10 slider to record the number of images that match the selected label, enabling set-level judgments that are directly comparable to the automated audit.
Table 8: Role-level cluster bootstrap () of BI differences with 95% confidence intervals.
| Cohort | CA-R–CF | CA-U–CF | CA-U–CA-R |
|---|---|---|---|
| People | +0.016 [0.006, 0.024] | +0.039 [0.027, 0.047] | +0.024 [0.010, 0.034] |
| Scene | -0.033 [-0.054, -0.014] | +0.091 [0.069, 0.105] | +0.124 [0.101, 0.141] |
| Objects | +0.005 [-0.009, 0.016] | +0.057 [0.025, 0.064] | +0.053 [0.016, 0.067] |
| Camera | -0.095 [-0.128, -0.061] | -0.008 [-0.035, 0.016] | +0.087 [0.057, 0.115] |
| Overall | -0.027 | +0.045 [0.030, 0.050] | +0.072 [0.054, 0.082] |
Table 9: Per-generator BI change from CF to CA-U with 95% confidence intervals (role-level cluster bootstrap, ).
| Model | People | Camera | Objects | Scene |
|---|---|---|---|---|
| SD 3.5 | +0.052 [0.032, 0.067] | -0.078 [-0.120, -0.035] | +0.072 [0.037, 0.080] | +0.133 [0.111, 0.156] |
| SDXL | +0.044 [0.029, 0.057] | -0.008 [-0.043, 0.025] | +0.071 [0.034, 0.081] | +0.093 [0.066, 0.119] |
| FLUX.1 | +0.044 [0.030, 0.054] | +0.040 [0.006, 0.073] | +0.035 [0.006, 0.044] | +0.084 [0.061, 0.108] |
| Qwen-Image | +0.026 [0.009, 0.038] | +0.034 [0.001, 0.065] | +0.056 [0.018, 0.066] | +0.063 [0.035, 0.091] |
Table 10: Mean BI under the two aggregations of Eq. 1: pooled over roles (BI) and computed per role then averaged (BI, at matched support).
| Cohort | BI | BI | ||||
|---|---|---|---|---|---|---|
| CF | CA-U | CF | CA-U | |||
| People | 0.457 | 0.499 | +0.042 | 0.757 | 0.721 | -0.035 |
| Scene | 0.430 | 0.524 | +0.093 | 0.642 | 0.657 | +0.015 |
| Camera | 0.668 | 0.665 | -0.003 | 0.805 | 0.743 | -0.062 |
| Objects | 0.251 | 0.309 | +0.058 | 0.694 | 0.654 | -0.041 |
| Overall | 0.452 | 0.499 | +0.047 | 0.724 | 0.694 | -0.031 |

Figure 9: Qualitative samples for farmer across context-free, context-aware unrelated, and context-aware related settings, comparing Flux, SD 3.5, SDXL, and Qwen, with three images per context. Each context shows three samples generated from three base prompt variants.

Figure 10: Qualitative samples for flight attendant in the context-aware unrelated condition, comparing Flux, SD 3.5, SDXL, and Qwen across three prompt variants: the original phrasing, a semantically equivalent paraphrase, and a location substitution.
Table 11: Extended role-label associations complementing Table 2. % Prev.: pooled prevalence across CF, CA-R, CA-U. : homogeneity test. Inv.: models with and pp, as in Table 2. Shading: , , (bold); underlined: not significant. All entries excluded from Table 2; persistent in models.
| Roles | Cue | % Prev. | p | Inv | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| XL | 3.5 | Flx | Qw | XL | 3.5 | Flx | Qw | XL | 3.5 | Flx | Qw | |||
| Gender — male | ||||||||||||||
| Laborer | male | 99 | 98 | 96 | 100 | 1.41 | 10.17 | 1.29 | 0.00 | .49 | .01 | .52 | 1.00 | 2/4 |
| Film Dir. | male | 99 | 96 | 95 | 98 | 1.61 | 3.90 | 2.72 | 3.25 | .45 | .14 | .26 | .20 | 2/4 |
| Soldier | male | 96 | 98 | 95 | 98 | 2.55 | 2.37 | 1.21 | 2.37 | .28 | .31 | .55 | .31 | 2/4 |
| Machinist | male | 99 | 95 | 92 | 99 | 1.61 | 13.70 | 1.56 | 1.61 | .45 | .00 | .46 | .45 | 2/4 |
| Musician | male | 89 | 99 | 94 | 100 | 7.62 | 1.34 | 5.07 | 0.00 | .02 | .51 | .08 | 1.00 | 2/4 |
| Paramedic | male | 89 | 97 | 93 | 99 | 0.80 | 0.69 | 6.32 | 0.34 | .67 | .71 | .04 | .84 | 2/4 |
| Web Dev. | male | 99 | 85 | 94 | 99 | 5.54 | 7.96 | 23.28 | 1.61 | .06 | .02 | .00 | .45 | 2/4 |
| Stg.Mgr. | male | 85 | 98 | 92 | 100 | 13.25 | 2.24 | 2.52 | 0.00 | .00 | .33 | .28 | 1.00 | 2/4 |
| Scientist | male | 83 | 82 | 96 | 100 | 8.99 | 7.68 | 0.75 | 0.00 | .01 | .02 | .69 | 1.00 | 2/4 |
| Engineer | male | 98 | 99 | 99 | 100 | 2.37 | 1.18 | 1.61 | 0.00 | .31 | .56 | .45 | 1.00 | 4/4 |
| Plumber | male | 96 | 100 | 100 | 99 | 8.32 | 0.00 | 0.00 | 5.54 | .02 | 1.00 | 1.00 | .06 | 3/4 |
| Gender — female | ||||||||||||||
| Waitress | female | 97 | 100 | 99 | 99 | 5.79 | 0.00 | 1.41 | 1.41 | .06 | 1.00 | .49 | .49 | 3/4 |
| Seamstress | female | 100 | 97 | 100 | 98 | 0.00 | 4.55 | 0.00 | 1.03 | 1.00 | .10 | 1.00 | .60 | 3/4 |
| Receptionist | female | 98 | 98 | 91 | 95 | 2.24 | 2.26 | 0.98 | 12.21 | .33 | .32 | .61 | .00 | 2/4 |
| Housekeeper | female | 100 | 95 | 86 | 100 | 0.00 | 9.82 | 19.68 | 0.00 | 1.00 | .01 | .00 | 1.00 | 2/4 |
| Body type | ||||||||||||||
| CEO | average | 98 | 99 | 100 | 100 | 1.22 | 5.54 | 0.00 | 0.00 | .54 | .06 | 1.00 | 1.00 | 4/4 |
| Engineer | average | 99 | 98 | 100 | 98 | 1.61 | 2.37 | 0.00 | 2.37 | .45 | .31 | 1.00 | .31 | 4/4 |
| Film Dir. | average | 100 | 97 | 98 | 98 | 0.00 | 3.81 | 3.25 | 2.70 | 1.00 | .15 | .20 | .26 | 3/4 |
| Janitor | average | 100 | 95 | 99 | 99 | 0.00 | 1.40 | 2.71 | 1.34 | 1.00 | .50 | .26 | .51 | 3/4 |
| Carpenter | average | 96 | 97 | 98 | 100 | 5.08 | 0.79 | 0.77 | 0.00 | .08 | .67 | .68 | 1.00 | 3/4 |
| Farmer | average | 96 | 95 | 99 | 100 | 1.47 | 2.49 | 1.61 | 0.00 | .48 | .29 | .45 | 1.00 | 2/4 |
| Rail.Cond. | average | 98 | 95 | 97 | 100 | 0.39 | 1.36 | 6.60 | 0.00 | .82 | .51 | .04 | 1.00 | 3/4 |
| Scientist | average | 98 | 99 | 97 | 93 | 3.58 | 1.18 | 2.58 | 4.09 | .17 | .56 | .28 | .13 | 3/4 |
| Fct.Wkr. | average | 92 | 99 | 98 | 99 | 8.46 | 1.61 | 0.77 | 1.61 | .01 | .45 | .68 | .45 | 3/4 |
| Comedian | average | 98 | 95 | 98 | 97 | 2.70 | 5.36 | 0.77 | 22.70 | .26 | .07 | .68 | .00 | 2/4 |
| Clothing & garments | ||||||||||||||
| Carpenter | shirt | 31 | 33 | 31 | 49 | 0.41 | 0.03 | 0.10 | 0.10 | .81 | .99 | .95 | .95 | 4/4 |
| Entrepreneur | shirt | 29 | 32 | 32 | 50 | 0.51 | 0.22 | 0.29 | 0.00 | .78 | .90 | .86 | 1.00 | 4/4 |
| Farmer | shirt | 32 | 33 | 34 | 50 | 0.22 | 0.41 | 0.22 | 0.00 | .90 | .82 | .89 | 1.00 | 4/4 |
Continued on next page
(continued from previous page)
| Roles | Cue | % Prev. | p | Inv | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| XL | 3.5 | Flx | Qw | XL | 3.5 | Flx | Qw | XL | 3.5 | Flx | Qw | |||
| Bartender | shirt | 33 | 32 | 33 | 49 | 0.02 | 0.11 | 0.05 | 0.16 | .99 | .95 | .97 | .92 | 4/4 |
| Politician | shirt | 30 | 32 | 33 | 49 | 0.62 | 0.07 | 0.44 | 0.07 | .73 | .96 | .80 | .96 | 4/4 |
| Supervisor | shirt | 27 | 32 | 33 | 50 | 1.29 | 0.29 | 0.01 | 0.02 | .53 | .86 | .99 | .99 | 3/4 |
| Analyst | shirt | 28 | 30 | 33 | 49 | 1.97 | 0.16 | 0.06 | 0.04 | .37 | .92 | .97 | .98 | 3/4 |
| Clerk | shirt | 26 | 30 | 32 | 50 | 9.37 | 0.59 | 0.16 | 0.00 | .01 | .75 | .92 | 1.00 | 3/4 |
| Waiter | shirt | 32 | 24 | 33 | 48 | 0.14 | 5.22 | 0.01 | 0.65 | .93 | .07 | 1.00 | .72 | 3/4 |
| Sft.Eng. | shirt | 31 | 30 | 30 | 46 | 0.34 | 0.01 | 0.85 | 0.44 | .84 | 1.00 | .65 | .80 | 3/4 |
| Stg.Mgr. | shirt | 27 | 32 | 27 | 50 | 8.09 | 0.14 | 0.16 | 0.00 | .02 | .93 | .93 | 1.00 | 3/4 |
| Pol.Off. | shirt | 30 | 33 | 21 | 50 | 0.20 | 0.01 | 4.44 | 0.02 | .91 | .99 | .11 | .99 | 3/4 |
| Blacksmith | shirt | 32 | 30 | 29 | 47 | 0.08 | 2.59 | 0.57 | 0.69 | .96 | .27 | .75 | .71 | 2/4 |
| Cashier | shirt | 31 | 27 | 29 | 50 | 0.08 | 6.06 | 1.10 | 0.02 | .96 | .05 | .58 | .99 | 2/4 |
| Salesperson | shirt | 26 | 28 | 32 | 45 | 0.75 | 0.94 | 0.15 | 3.23 | .69 | .62 | .93 | .20 | 2/4 |
| Facial features | ||||||||||||||
| Stg.Mgr. | beard | 31 | 50 | 32 | 50 | 0.07 | 7.00 | 0.25 | 16.80 | .97 | .03 | .88 | .00 | 2/4 |
| Editor | beard | 34 | 34 | 41 | 44 | 2.93 | 0.12 | 0.17 | 1.30 | .23 | .73 | .92 | .52 | 2/4 |
| Researcher | eyeglass | 38 | 15 | 48 | 36 | 4.13 | 0.70 | 0.36 | 1.25 | .13 | .70 | .84 | .54 | 2/4 |
| Chemist | eyeglass | 37 | 9 | 38 | 34 | 3.41 | 2.57 | 0.20 | 0.06 | .18 | .28 | .90 | .97 | 2/4 |
| Librarian | eyeglass | 48 | 12 | 39 | 8 | 0.65 | 0.76 | 3.09 | 2.30 | .72 | .68 | .21 | .32 | 2/4 |
| Novelist | eyeglass | 42 | 19 | 24 | 26 | 3.84 | 0.67 | 18.83 | 0.46 | .15 | .71 | .00 | .79 | 2/4 |
| Scene aesthetics | ||||||||||||||
| Tailor | calm | 100 | 98 | 96 | 99 | 0.00 | 11.17 | 4.26 | 1.18 | 1.00 | .00 | .12 | .56 | 2/4 |
| Hairdresser | calm | 96 | 98 | 97 | 100 | 3.36 | 6.54 | 2.58 | 0.00 | .19 | .04 | .28 | 1.00 | 2/4 |
| Cleaner | calm | 94 | 95 | 96 | 100 | 10.61 | 2.81 | 1.11 | 0.00 | .00 | .25 | .58 | 1.00 | 2/4 |
| Screenwriter | calm | 96 | 97 | 95 | 96 | 1.47 | 1.57 | 1.37 | 16.88 | .48 | .46 | .50 | .00 | 2/4 |
| Bus Drv. | calm | 88 | 99 | 97 | 100 | 10.91 | 1.18 | 4.81 | 0.00 | .00 | .56 | .09 | 1.00 | 2/4 |
| Analyst | calm | 87 | 95 | 99 | 99 | 6.42 | 2.81 | 0.34 | 2.71 | .04 | .25 | .84 | .26 | 2/4 |
| Seamstress | calm | 98 | 99 | 98 | 94 | 4.31 | 1.41 | 2.85 | 10.41 | .12 | .49 | .24 | .01 | 2/4 |
| Scientist | calm | 97 | 96 | 98 | 98 | 2.47 | 7.96 | 2.37 | 2.37 | .29 | .02 | .31 | .31 | 2/4 |
| Researcher | calm | 86 | 97 | 98 | 100 | 27.98 | 5.26 | 2.59 | 0.00 | .00 | .07 | .27 | 1.00 | 2/4 |
| Farmer | calm | 81 | 98 | 98 | 97 | 11.86 | 0.77 | 0.39 | 4.81 | .00 | .68 | .82 | .09 | 2/4 |
| Novelist | calm | 97 | 100 | 88 | 92 | 1.57 | 0.00 | 29.78 | 23.75 | .46 | 1.00 | .00 | .00 | 2/4 |
| Pilot | calm | 85 | 94 | 98 | 100 | 12.08 | 10.41 | 1.03 | 0.00 | .00 | .01 | .60 | 1.00 | 2/4 |
| Image depth | ||||||||||||||
| Waitress | shallow | 95 | 92 | 99 | 99 | 8.84 | 13.62 | 1.41 | 1.41 | .01 | .00 | .49 | .49 | 2/4 |
| Bartender | shallow | 95 | 88 | 100 | 100 | 1.58 | 11.42 | 0.00 | 0.00 | .45 | .00 | 1.00 | 1.00 | 2/4 |
| Seamstress | shallow | 92 | 88 | 99 | 100 | 2.71 | 22.19 | 1.41 | 0.00 | .26 | .00 | .49 | 1.00 | 2/4 |
| Chef | shallow | 92 | 81 | 95 | 99 | 0.79 | 2.92 | 4.63 | 1.41 | .67 | .23 | .10 | .49 | 2/4 |
| Flt.Att. | shallow | 78 | 86 | 100 | 96 | 4.18 | 6.91 | 0.00 | 1.02 | .12 | .03 | 1.00 | .60 | 2/4 |
| Poet | shallow | 82 | 82 | 97 | 99 | 3.36 | 16.98 | 0.46 | 1.61 | .19 | .00 | .80 | .45 | 2/4 |
| Machinist | shallow | 72 | 85 | 100 | 99 | 6.75 | 25.96 | 0.00 | 1.61 | .03 | .00 | 1.00 | .45 | 2/4 |
| Writer | shallow | 72 | 86 | 98 | 99 | 5.73 | 4.16 | 2.50 | 1.34 | .06 | .12 | .29 | .51 | 2/4 |
| Pharmacist | shallow | 82 | 75 | 100 | 98 | 5.37 | 24.21 | 0.00 | 2.85 | .07 | .00 | 1.00 | .24 | 2/4 |
| Physicist | shallow | 64 | 87 | 98 | 98 | 11.73 | 6.22 | 3.25 | 3.25 | .00 | .04 | .20 | .20 | 2/4 |