{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/a-multidimensional-analysis-of-social-biases","title":"A Multidimensional Analysis of Social Biases in Vision Transformers","arxiv_id":"2308.01948","date":"2023-08-03","proceeding":"ICCV 2023 1","authors":["Jannik Brinkmann","Paul Swoboda","Christian Bartelt"],"abstract":"The embedding spaces of image models have been shown to encode a range of social biases such as racism and sexism. Here, we investigate specific factors that contribute to the emergence of these biases in Vision Transformers (ViT). Therefore, we measure the impact of training data, model architecture, and training objectives on social biases in the learned representations of ViTs. Our findings indicate that counterfactual augmentation training using diffusion-based image editing can mitigate biases, but does not eliminate them. Moreover, we find that larger models are less biased than smaller models, and that models trained using discriminative objectives are less biased than those trained using generative objectives. In addition, we observe inconsistencies in the learned social biases. To our surprise, ViTs can exhibit opposite biases when trained on the same data set using different self-supervised objectives. Our findings give insights into the factors that contribute to the emergence of social biases and suggests that we could achieve substantial fairness improvements based on model design choices.","url_abs":"https://arxiv.org/abs/2308.01948v1","url_pdf":"https://arxiv.org/pdf/2308.01948v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[],"tasks":[{"task_slug":"fairness","task_name":"Fairness"},{"task_slug":null,"task_name":"counterfactual"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2308.01948","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2308.01948"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"deterministic:regex_extraction","url":"https://github.com/jannik-brinkmann/social-biases-in-vision-transformers","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":2,"ran_honours":1,"ran_fixture":1,"unverified":2},"by_repo_kind":{"found_in_text":{"samples":6,"ran":4,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"c19231378e41dc5a","entry":"bool_flag","repo":"jannik-brinkmann/social-biases-in-vision-transformers","repo_kind":"found_in_text","path":"src/embedding_extractors/models/dino/utils.py","file_url":"https://github.com/jannik-brinkmann/social-biases-in-vision-transformers/blob/HEAD/src/embedding_extractors/models/dino/utils.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c19231378e41dc5a"}},{"code_sha256_prefix":"2b5489053b222e00","entry":"clip_gradients","repo":"jannik-brinkmann/social-biases-in-vision-transformers","repo_kind":"found_in_text","path":"src/embedding_extractors/models/dino/utils.py","file_url":"https://github.com/jannik-brinkmann/social-biases-in-vision-transformers/blob/HEAD/src/embedding_extractors/models/dino/utils.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2b5489053b222e00"}},{"code_sha256_prefix":"361a6b24f11fc50a","entry":"cosine_scheduler","repo":"jannik-brinkmann/social-biases-in-vision-transformers","repo_kind":"found_in_text","path":"src/embedding_extractors/models/dino/utils.py","file_url":"https://github.com/jannik-brinkmann/social-biases-in-vision-transformers/blob/HEAD/src/embedding_extractors/models/dino/utils.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"361a6b24f11fc50a"}},{"code_sha256_prefix":"55120f2026b56aa2","entry":"drop_path","repo":"jannik-brinkmann/social-biases-in-vision-transformers","repo_kind":"found_in_text","path":"src/embedding_extractors/models/dino/vision_transformer.py","file_url":"https://github.com/jannik-brinkmann/social-biases-in-vision-transformers/blob/HEAD/src/embedding_extractors/models/dino/vision_transformer.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"55120f2026b56aa2"}},{"code_sha256_prefix":"a81bfdf3c0c9a6ea","entry":"vit_small","repo":"jannik-brinkmann/social-biases-in-vision-transformers","repo_kind":"found_in_text","path":"src/embedding_extractors/models/dino/vision_transformer.py","file_url":"https://github.com/jannik-brinkmann/social-biases-in-vision-transformers/blob/HEAD/src/embedding_extractors/models/dino/vision_transformer.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a81bfdf3c0c9a6ea"}},{"code_sha256_prefix":"879e349ae38851dc","entry":"vit_tiny","repo":"jannik-brinkmann/social-biases-in-vision-transformers","repo_kind":"found_in_text","path":"src/embedding_extractors/models/dino/vision_transformer.py","file_url":"https://github.com/jannik-brinkmann/social-biases-in-vision-transformers/blob/HEAD/src/embedding_extractors/models/dino/vision_transformer.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"879e349ae38851dc"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}