{"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/invariant-representations-without-adversarial","title":"Invariant Representations without Adversarial Training","arxiv_id":"1805.09458","date":"2018-05-24","proceeding":"NeurIPS 2018 12","authors":["Daniel Moyer","Shuyang Gao","Rob Brekelmans","Greg Ver Steeg","Aram Galstyan"],"abstract":"Representations of data that are invariant to changes in specified factors are useful for a wide range of problems: removing potential biases in prediction problems, controlling the effects of covariates, and disentangling meaningful factors of variation. Unfortunately, learning representations that exhibit invariance to arbitrary nuisance factors yet remain useful for other tasks is challenging. Existing approaches cast the trade-off between task performance and invariance in an adversarial way, using an iterative minimax optimization. We show that adversarial training is unnecessary and sometimes counter-productive; we instead cast invariant representation learning as a single information-theoretic objective that can be directly optimized. We demonstrate that this approach matches or exceeds performance of state-of-the-art adversarial approaches for learning fair representations and for generative modeling with controllable transformations.","url_abs":"https://arxiv.org/abs/1805.09458v4","url_pdf":"https://arxiv.org/pdf/1805.09458v4.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":"invariant-representations-without-adversarial","repo_url":"https://github.com/dcmoyer/inv-rep","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"representation-learning","task_name":"Representation Learning"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1805.09458","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1805.09458"}},"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/dcmoyer/inv-rep","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":10},"by_repo_kind":{"listed":{"samples":10,"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":"f45a869d12b5eed2","entry":"all_pairs_gaussian_kl","repo":"dcmoyer/inv-rep","repo_kind":"listed","path":"src/kl_tools.py","file_url":"https://github.com/dcmoyer/inv-rep/blob/HEAD/src/kl_tools.py","link_basis":"harvester_set","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":"f45a869d12b5eed2"}},{"code_sha256_prefix":"59018abfb0f04c99","entry":"check_args","repo":"dcmoyer/inv-rep","repo_kind":"listed","path":"src/adv.py","file_url":"https://github.com/dcmoyer/inv-rep/blob/HEAD/src/adv.py","link_basis":"harvester_set","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":"59018abfb0f04c99"}},{"code_sha256_prefix":"f01f20d39b2db43c","entry":"check_args","repo":"dcmoyer/inv-rep","repo_kind":"listed","path":"src/run_navib.py","file_url":"https://github.com/dcmoyer/inv-rep/blob/HEAD/src/run_navib.py","link_basis":"harvester_set","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":"f01f20d39b2db43c"}},{"code_sha256_prefix":"be19c83df71a65aa","entry":"feed_forward_discriminator_logit","repo":"dcmoyer/inv-rep","repo_kind":"listed","path":"src/ffd.py","file_url":"https://github.com/dcmoyer/inv-rep/blob/HEAD/src/ffd.py","link_basis":"harvester_set","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":"be19c83df71a65aa"}},{"code_sha256_prefix":"ff789371daf7a231","entry":"kl_conditional_and_marg","repo":"dcmoyer/inv-rep","repo_kind":"listed","path":"src/kl_tools.py","file_url":"https://github.com/dcmoyer/inv-rep/blob/HEAD/src/kl_tools.py","link_basis":"harvester_set","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":"ff789371daf7a231"}},{"code_sha256_prefix":"3fec486caf59026e","entry":"log_loss","repo":"dcmoyer/inv-rep","repo_kind":"listed","path":"src/error_utils.py","file_url":"https://github.com/dcmoyer/inv-rep/blob/HEAD/src/error_utils.py","link_basis":"harvester_set","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":"3fec486caf59026e"}},{"code_sha256_prefix":"3d9d8f91ab38b9e0","entry":"maybe_download_adult","repo":"dcmoyer/inv-rep","repo_kind":"listed","path":"src/uci_data.py","file_url":"https://github.com/dcmoyer/inv-rep/blob/HEAD/src/uci_data.py","link_basis":"harvester_set","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":"3d9d8f91ab38b9e0"}},{"code_sha256_prefix":"d0491147dc7c71a8","entry":"maybe_download_german","repo":"dcmoyer/inv-rep","repo_kind":"listed","path":"src/uci_data.py","file_url":"https://github.com/dcmoyer/inv-rep/blob/HEAD/src/uci_data.py","link_basis":"harvester_set","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":"d0491147dc7c71a8"}},{"code_sha256_prefix":"54f5546aa78a4241","entry":"zero_one_abs","repo":"dcmoyer/inv-rep","repo_kind":"listed","path":"src/error_utils.py","file_url":"https://github.com/dcmoyer/inv-rep/blob/HEAD/src/error_utils.py","link_basis":"harvester_set","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":"54f5546aa78a4241"}},{"code_sha256_prefix":"3d9dcc2e0abd24a0","entry":"zero_one_thold","repo":"dcmoyer/inv-rep","repo_kind":"listed","path":"src/error_utils.py","file_url":"https://github.com/dcmoyer/inv-rep/blob/HEAD/src/error_utils.py","link_basis":"harvester_set","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":"3d9dcc2e0abd24a0"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}