{"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/pairwise-fairness-for-ordinal-regression","title":"Pairwise Fairness for Ordinal Regression","arxiv_id":"2105.03153","date":"2021-05-07","proceeding":null,"authors":["Matthäus Kleindessner","Samira Samadi","Muhammad Bilal Zafar","Krishnaram Kenthapadi","Chris Russell"],"abstract":"We initiate the study of fairness for ordinal regression. We adapt two fairness notions previously considered in fair ranking and propose a strategy for training a predictor that is approximately fair according to either notion. Our predictor has the form of a threshold model, composed of a scoring function and a set of thresholds, and our strategy is based on a reduction to fair binary classification for learning the scoring function and local search for choosing the thresholds. We provide generalization guarantees on the error and fairness violation of our predictor, and we illustrate the effectiveness of our approach in extensive experiments.","url_abs":"https://arxiv.org/abs/2105.03153v2","url_pdf":"https://arxiv.org/pdf/2105.03153v2.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":"pairwise-fairness-for-ordinal-regression","repo_url":"https://github.com/amazon-research/fair-ordinal-regression","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"binary-classification","task_name":"Binary Classification"},{"task_slug":"fairness","task_name":"Fairness"},{"task_slug":"regression-1","task_name":"regression"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2105.03153","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2105.03153"}},"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/amazon-research/fair-ordinal-regression","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"unverified":9},"by_repo_kind":{"official":{"samples":9,"ran":0,"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":"77331f760d7f305b","entry":"compute_cost","repo":"amazon-research/fair-ordinal-regression","repo_kind":"official","path":"learn_fair_threshold_model/evaluation.py","file_url":"https://github.com/amazon-research/fair-ordinal-regression/blob/HEAD/learn_fair_threshold_model/evaluation.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":"77331f760d7f305b"}},{"code_sha256_prefix":"84b7d112ccd1070e","entry":"evaluate_DP_exact","repo":"amazon-research/fair-ordinal-regression","repo_kind":"official","path":"learn_fair_threshold_model/evaluation.py","file_url":"https://github.com/amazon-research/fair-ordinal-regression/blob/HEAD/learn_fair_threshold_model/evaluation.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":"84b7d112ccd1070e"}},{"code_sha256_prefix":"83a63654701028c4","entry":"evaluate_EO_exact","repo":"amazon-research/fair-ordinal-regression","repo_kind":"official","path":"learn_fair_threshold_model/evaluation.py","file_url":"https://github.com/amazon-research/fair-ordinal-regression/blob/HEAD/learn_fair_threshold_model/evaluation.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":"83a63654701028c4"}},{"code_sha256_prefix":"f6a02bddcd7a19b0","entry":"find_best_left_shift","repo":"amazon-research/fair-ordinal-regression","repo_kind":"official","path":"learn_fair_threshold_model/local_search_demographic_parity.py","file_url":"https://github.com/amazon-research/fair-ordinal-regression/blob/HEAD/learn_fair_threshold_model/local_search_demographic_parity.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":"f6a02bddcd7a19b0"}},{"code_sha256_prefix":"78c7c4822d5efb84","entry":"find_best_left_shift","repo":"amazon-research/fair-ordinal-regression","repo_kind":"official","path":"learn_fair_threshold_model/local_search_equal_opportunity.py","file_url":"https://github.com/amazon-research/fair-ordinal-regression/blob/HEAD/learn_fair_threshold_model/local_search_equal_opportunity.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":"78c7c4822d5efb84"}},{"code_sha256_prefix":"527f5c42a18a3689","entry":"find_best_right_shift","repo":"amazon-research/fair-ordinal-regression","repo_kind":"official","path":"learn_fair_threshold_model/local_search_demographic_parity.py","file_url":"https://github.com/amazon-research/fair-ordinal-regression/blob/HEAD/learn_fair_threshold_model/local_search_demographic_parity.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":"527f5c42a18a3689"}},{"code_sha256_prefix":"3c276f90716a64a3","entry":"find_best_right_shift","repo":"amazon-research/fair-ordinal-regression","repo_kind":"official","path":"learn_fair_threshold_model/local_search_equal_opportunity.py","file_url":"https://github.com/amazon-research/fair-ordinal-regression/blob/HEAD/learn_fair_threshold_model/local_search_equal_opportunity.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":"3c276f90716a64a3"}},{"code_sha256_prefix":"bac89d70dd9a10fe","entry":"get_best_constant_predictor_for_MAE","repo":"amazon-research/fair-ordinal-regression","repo_kind":"official","path":"plot_utils.py","file_url":"https://github.com/amazon-research/fair-ordinal-regression/blob/HEAD/plot_utils.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":"bac89d70dd9a10fe"}},{"code_sha256_prefix":"5f8b1816e0edbfab","entry":"make_predictions_with_model","repo":"amazon-research/fair-ordinal-regression","repo_kind":"official","path":"learn_fair_threshold_model/learn_fair_model.py","file_url":"https://github.com/amazon-research/fair-ordinal-regression/blob/HEAD/learn_fair_threshold_model/learn_fair_model.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":"5f8b1816e0edbfab"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}