{"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/aim-attributing-interpreting-mitigating-data","title":"AIM: Attributing, Interpreting, Mitigating Data Unfairness","arxiv_id":"2406.08819","date":"2024-06-13","proceeding":null,"authors":["Zhining Liu","Ruizhong Qiu","Zhichen Zeng","Yada Zhu","Hendrik Hamann","Hanghang Tong"],"abstract":"Data collected in the real world often encapsulates historical discrimination against disadvantaged groups and individuals. Existing fair machine learning (FairML) research has predominantly focused on mitigating discriminative bias in the model prediction, with far less effort dedicated towards exploring how to trace biases present in the data, despite its importance for the transparency and interpretability of FairML. To fill this gap, we investigate a novel research problem: discovering samples that reflect biases/prejudices from the training data. Grounding on the existing fairness notions, we lay out a sample bias criterion and propose practical algorithms for measuring and countering sample bias. The derived bias score provides intuitive sample-level attribution and explanation of historical bias in data. On this basis, we further design two FairML strategies via sample-bias-informed minimal data editing. They can mitigate both group and individual unfairness at the cost of minimal or zero predictive utility loss. Extensive experiments and analyses on multiple real-world datasets demonstrate the effectiveness of our methods in explaining and mitigating unfairness. Code is available at https://github.com/ZhiningLiu1998/AIM.","url_abs":"https://arxiv.org/abs/2406.08819v2","url_pdf":"https://arxiv.org/pdf/2406.08819v2.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":"aim-attributing-interpreting-mitigating-data","repo_url":"https://github.com/zhiningliu1998/aim","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"none","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"fairness","task_name":"Fairness"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2406.08819","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2406.08819"}},"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":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/zhiningliu1998/aim","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran":8,"unverified":3},"by_repo_kind":{"official":{"samples":11,"ran":8,"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":"627de91152b2ca18","entry":"convert_df_to_tensor","repo":"zhiningliu1998/aim","repo_kind":"official","path":"src/data_infair.py","file_url":"https://github.com/zhiningliu1998/aim/blob/HEAD/src/data_infair.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"627de91152b2ca18"}},{"code_sha256_prefix":"11fdc2d246943147","entry":"dict_info","repo":"zhiningliu1998/aim","repo_kind":"official","path":"src/utils.py","file_url":"https://github.com/zhiningliu1998/aim/blob/HEAD/src/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"11fdc2d246943147"}},{"code_sha256_prefix":"22b32e9df1477f9d","entry":"get_filter_mask","repo":"zhiningliu1998/aim","repo_kind":"official","path":"src/unloc.py","file_url":"https://github.com/zhiningliu1998/aim/blob/HEAD/src/unloc.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"22b32e9df1477f9d"}},{"code_sha256_prefix":"9c37d5786d79f660","entry":"get_input_output_df","repo":"zhiningliu1998/aim","repo_kind":"official","path":"src/data_infair.py","file_url":"https://github.com/zhiningliu1998/aim/blob/HEAD/src/data_infair.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"9c37d5786d79f660"}},{"code_sha256_prefix":"2697ea014a3b6ac7","entry":"get_mixup_idx","repo":"zhiningliu1998/aim","repo_kind":"official","path":"src/unloc.py","file_url":"https://github.com/zhiningliu1998/aim/blob/HEAD/src/unloc.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"2697ea014a3b6ac7"}},{"code_sha256_prefix":"584b646b31c97aed","entry":"idx_to_mask","repo":"zhiningliu1998/aim","repo_kind":"official","path":"src/utils.py","file_url":"https://github.com/zhiningliu1998/aim/blob/HEAD/src/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"584b646b31c97aed"}},{"code_sha256_prefix":"8ec0442dca42253c","entry":"mask_to_idx","repo":"zhiningliu1998/aim","repo_kind":"official","path":"src/utils.py","file_url":"https://github.com/zhiningliu1998/aim/blob/HEAD/src/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"8ec0442dca42253c"}},{"code_sha256_prefix":"056e947498c1ab75","entry":"train_val_test_split_dataframe","repo":"zhiningliu1998/aim","repo_kind":"official","path":"src/data.py","file_url":"https://github.com/zhiningliu1998/aim/blob/HEAD/src/data.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"056e947498c1ab75"}},{"code_sha256_prefix":"c5a41c92195225bd","entry":"load_data","repo":"zhiningliu1998/aim","repo_kind":"official","path":"src/data_infair.py","file_url":"https://github.com/zhiningliu1998/aim/blob/HEAD/src/data_infair.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c5a41c92195225bd"}},{"code_sha256_prefix":"c1308e58057c278e","entry":"mixup_instance","repo":"zhiningliu1998/aim","repo_kind":"official","path":"src/unloc.py","file_url":"https://github.com/zhiningliu1998/aim/blob/HEAD/src/unloc.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c1308e58057c278e"}},{"code_sha256_prefix":"25026978ebf7b7cb","entry":"normalize_graph_adj","repo":"zhiningliu1998/aim","repo_kind":"official","path":"src/utils_unloc.py","file_url":"https://github.com/zhiningliu1998/aim/blob/HEAD/src/utils_unloc.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"25026978ebf7b7cb"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}