{"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/tilted-empirical-risk-minimization","title":"Tilted Empirical Risk Minimization","arxiv_id":"2007.01162","date":"2020-07-02","proceeding":"ICLR 2021 1","authors":["Tian Li","Ahmad Beirami","Maziar Sanjabi","Virginia Smith"],"abstract":"Empirical risk minimization (ERM) is typically designed to perform well on the average loss, which can result in estimators that are sensitive to outliers, generalize poorly, or treat subgroups unfairly. While many methods aim to address these problems individually, in this work, we explore them through a unified framework -- tilted empirical risk minimization (TERM). In particular, we show that it is possible to flexibly tune the impact of individual losses through a straightforward extension to ERM using a hyperparameter called the tilt. We provide several interpretations of the resulting framework: We show that TERM can increase or decrease the influence of outliers, respectively, to enable fairness or robustness; has variance-reduction properties that can benefit generalization; and can be viewed as a smooth approximation to a superquantile method. We develop batch and stochastic first-order optimization methods for solving TERM, and show that the problem can be efficiently solved relative to common alternatives. Finally, we demonstrate that TERM can be used for a multitude of applications, such as enforcing fairness between subgroups, mitigating the effect of outliers, and handling class imbalance. TERM is not only competitive with existing solutions tailored to these individual problems, but can also enable entirely new applications, such as simultaneously addressing outliers and promoting fairness.","url_abs":"https://arxiv.org/abs/2007.01162v2","url_pdf":"https://arxiv.org/pdf/2007.01162v2.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":"tilted-empirical-risk-minimization","repo_url":"https://github.com/litian96/TERM","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"tf","reach":null},{"paper_slug":"tilted-empirical-risk-minimization","repo_url":"https://github.com/istaustria-cvml/flea","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"jax","reach":null}],"tasks":[{"task_slug":"fairness","task_name":"Fairness"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2007.01162","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2007.01162"}},"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/litian96/TERM","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/istaustria-cvml/flea","reach":null}],"summary":{"ran_fixture":1,"ran_draft_wrong":3,"ran_honours":1,"ran_violates":3,"ran":1,"unverified":1},"by_repo_kind":{"official":{"samples":4,"ran":4,"repositories":1},"listed":{"samples":6,"ran":5,"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":"fffbaed4c52dab4b","entry":"compute_gradients_tilting","repo":"litian96/TERM","repo_kind":"official","path":"hierarchical/mixed_level1.py","file_url":"https://github.com/litian96/TERM/blob/HEAD/hierarchical/mixed_level1.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fffbaed4c52dab4b"}},{"code_sha256_prefix":"b4a4c16131bfec48","entry":"cost_TERM","repo":"istaustria-cvml/flea","repo_kind":"listed","path":"src/FLEA.py","file_url":"https://github.com/istaustria-cvml/flea/blob/HEAD/src/FLEA.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b4a4c16131bfec48"}},{"code_sha256_prefix":"d3a4bb0de17305ec","entry":"crossent","repo":"istaustria-cvml/flea","repo_kind":"listed","path":"src/FLEA.py","file_url":"https://github.com/istaustria-cvml/flea/blob/HEAD/src/FLEA.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d3a4bb0de17305ec"}},{"code_sha256_prefix":"3592d26743a212ca","entry":"logistic","repo":"istaustria-cvml/flea","repo_kind":"listed","path":"src/FLEA.py","file_url":"https://github.com/istaustria-cvml/flea/blob/HEAD/src/FLEA.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3592d26743a212ca"}},{"code_sha256_prefix":"cc0284ce34bec031","entry":"loss","repo":"litian96/TERM","repo_kind":"official","path":"hierarchical/mixed_level1.py","file_url":"https://github.com/litian96/TERM/blob/HEAD/hierarchical/mixed_level1.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"cc0284ce34bec031"}},{"code_sha256_prefix":"9062ac5b0aad4509","entry":"predict_prob","repo":"litian96/TERM","repo_kind":"official","path":"hierarchical/mixed_level1.py","file_url":"https://github.com/litian96/TERM/blob/HEAD/hierarchical/mixed_level1.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9062ac5b0aad4509"}},{"code_sha256_prefix":"6ed0279d608e9580","entry":"predict_proba","repo":"istaustria-cvml/flea","repo_kind":"listed","path":"src/FLEA.py","file_url":"https://github.com/istaustria-cvml/flea/blob/HEAD/src/FLEA.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6ed0279d608e9580"}},{"code_sha256_prefix":"ea4aa57fb84c5048","entry":"sigmoid","repo":"litian96/TERM","repo_kind":"official","path":"hierarchical/mixed_level1.py","file_url":"https://github.com/litian96/TERM/blob/HEAD/hierarchical/mixed_level1.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ea4aa57fb84c5048"}},{"code_sha256_prefix":"b9aeb8b5d99c37d3","entry":"theta_to_cw","repo":"istaustria-cvml/flea","repo_kind":"listed","path":"src/FLEA.py","file_url":"https://github.com/istaustria-cvml/flea/blob/HEAD/src/FLEA.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b9aeb8b5d99c37d3"}},{"code_sha256_prefix":"e7b75a8a5cbac25e","entry":"predict_decision_function","repo":"istaustria-cvml/flea","repo_kind":"listed","path":"src/FLEA.py","file_url":"https://github.com/istaustria-cvml/flea/blob/HEAD/src/FLEA.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":"e7b75a8a5cbac25e"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}