{"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/openbias-open-set-bias-detection-in-text-to","title":"OpenBias: Open-set Bias Detection in Text-to-Image Generative Models","arxiv_id":"2404.07990","date":"2024-04-11","proceeding":"CVPR 2024 1","authors":["Moreno D'Incà","Elia Peruzzo","Massimiliano Mancini","Dejia Xu","Vidit Goel","Xingqian Xu","Zhangyang Wang","Humphrey Shi","Nicu Sebe"],"abstract":"Text-to-image generative models are becoming increasingly popular and accessible to the general public. As these models see large-scale deployments, it is necessary to deeply investigate their safety and fairness to not disseminate and perpetuate any kind of biases. However, existing works focus on detecting closed sets of biases defined a priori, limiting the studies to well-known concepts. In this paper, we tackle the challenge of open-set bias detection in text-to-image generative models presenting OpenBias, a new pipeline that identifies and quantifies the severity of biases agnostically, without access to any precompiled set. OpenBias has three stages. In the first phase, we leverage a Large Language Model (LLM) to propose biases given a set of captions. Secondly, the target generative model produces images using the same set of captions. Lastly, a Vision Question Answering model recognizes the presence and extent of the previously proposed biases. We study the behavior of Stable Diffusion 1.5, 2, and XL emphasizing new biases, never investigated before. Via quantitative experiments, we demonstrate that OpenBias agrees with current closed-set bias detection methods and human judgement.","url_abs":"https://arxiv.org/abs/2404.07990v2","url_pdf":"https://arxiv.org/pdf/2404.07990v2.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":[{"paper_slug":"openbias-open-set-bias-detection-in-text-to","repo_url":"https://github.com/picsart-ai-research/openbias","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"bias-detection","task_name":"Bias Detection"},{"task_slug":"fairness","task_name":"Fairness"},{"task_slug":"language-modeling","task_name":"Language Modeling"},{"task_slug":"language-modelling","task_name":"Language Modelling"},{"task_slug":"large-language-model","task_name":"Large Language Model"},{"task_slug":"question-answering","task_name":"Question Answering"}],"methods":[{"method_slug":"diffusion","method_name":"Diffusion"},{"method_slug":"focus","method_name":"Focus"},{"method_slug":"set","method_name":"SET"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2404.07990","atlas_url":"https://app.syntology.ai/?focus=2404.07990","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2404.07990"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/picsart-ai-research/openbias","reach":{"status":"ok"}}],"summary":{"ran_fixture":2,"ran":7,"ran_violates":1},"by_repo_kind":{"official":{"samples":10,"ran":10,"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":10,"samples":[{"code_sha256_prefix":"d7b6dcfe63bfe59b","entry":"apply_rotary_emb","repo":"picsart-ai-research/openbias","repo_kind":"official","path":"llama/model.py","file_url":"https://github.com/picsart-ai-research/openbias/blob/HEAD/llama/model.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d7b6dcfe63bfe59b"}},{"code_sha256_prefix":"6e17a18279070062","entry":"deserialize_answers","repo":"picsart-ai-research/openbias","repo_kind":"official","path":"run_VQA.py","file_url":"https://github.com/picsart-ai-research/openbias/blob/HEAD/run_VQA.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"6e17a18279070062"}},{"code_sha256_prefix":"33155c88389a2ec0","entry":"dummy_checker","repo":"picsart-ai-research/openbias","repo_kind":"official","path":"utils/generative_models.py","file_url":"https://github.com/picsart-ai-research/openbias/blob/HEAD/utils/generative_models.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"33155c88389a2ec0"}},{"code_sha256_prefix":"bf7a4ec207a5dd04","entry":"entropy","repo":"picsart-ai-research/openbias","repo_kind":"official","path":"make_plots.py","file_url":"https://github.com/picsart-ai-research/openbias/blob/HEAD/make_plots.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"bf7a4ec207a5dd04"}},{"code_sha256_prefix":"5eb62dbad22fe1ed","entry":"init_answers","repo":"picsart-ai-research/openbias","repo_kind":"official","path":"run_VQA.py","file_url":"https://github.com/picsart-ai-research/openbias/blob/HEAD/run_VQA.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5eb62dbad22fe1ed"}},{"code_sha256_prefix":"e0f214706d4e17a9","entry":"init_bias_counts","repo":"picsart-ai-research/openbias","repo_kind":"official","path":"run_VQA.py","file_url":"https://github.com/picsart-ai-research/openbias/blob/HEAD/run_VQA.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e0f214706d4e17a9"}},{"code_sha256_prefix":"04a1fa63d6d4b8e4","entry":"precompute_freqs_cis","repo":"picsart-ai-research/openbias","repo_kind":"official","path":"llama/model.py","file_url":"https://github.com/picsart-ai-research/openbias/blob/HEAD/llama/model.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"04a1fa63d6d4b8e4"}},{"code_sha256_prefix":"5a639d78ada17fee","entry":"reshape_for_broadcast","repo":"picsart-ai-research/openbias","repo_kind":"official","path":"llama/model.py","file_url":"https://github.com/picsart-ai-research/openbias/blob/HEAD/llama/model.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5a639d78ada17fee"}},{"code_sha256_prefix":"e28848558038eee4","entry":"sample_top_p","repo":"picsart-ai-research/openbias","repo_kind":"official","path":"llama/generation.py","file_url":"https://github.com/picsart-ai-research/openbias/blob/HEAD/llama/generation.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e28848558038eee4"}},{"code_sha256_prefix":"bdb9b92b20cd985b","entry":"uniform","repo":"picsart-ai-research/openbias","repo_kind":"official","path":"make_plots.py","file_url":"https://github.com/picsart-ai-research/openbias/blob/HEAD/make_plots.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"bdb9b92b20cd985b"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}