{"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/invertible-residual-networks","title":"Invertible Residual Networks","arxiv_id":"1811.00995","date":"2018-11-02","proceeding":null,"authors":["Jens Behrmann","Will Grathwohl","Ricky T. Q. Chen","David Duvenaud","Jörn-Henrik Jacobsen"],"abstract":"We show that standard ResNet architectures can be made invertible, allowing the same model to be used for classification, density estimation, and generation. Typically, enforcing invertibility requires partitioning dimensions or restricting network architectures. In contrast, our approach only requires adding a simple normalization step during training, already available in standard frameworks. Invertible ResNets define a generative model which can be trained by maximum likelihood on unlabeled data. To compute likelihoods, we introduce a tractable approximation to the Jacobian log-determinant of a residual block. Our empirical evaluation shows that invertible ResNets perform competitively with both state-of-the-art image classifiers and flow-based generative models, something that has not been previously achieved with a single architecture.","url_abs":"https://arxiv.org/abs/1811.00995v3","url_pdf":"https://arxiv.org/pdf/1811.00995v3.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":"invertible-residual-networks","repo_url":"https://github.com/jhjacobsen/invertible-resnet","is_official":0,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":null},{"paper_slug":"invertible-residual-networks","repo_url":"https://github.com/RuqiBai/mixture_flow","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}},{"paper_slug":"invertible-residual-networks","repo_url":"https://github.com/eyalbetzalel/residual-flows","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"invertible-residual-networks","repo_url":"https://github.com/rtqichen/residual-flows","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"invertible-residual-networks","repo_url":"https://github.com/yperugachidiaz/invertible_densenets","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"density-estimation","task_name":"Density Estimation"},{"task_slug":"classification","task_name":"General Classification"},{"task_slug":"image-generation","task_name":"Image Generation"}],"methods":[{"method_slug":"1x1-convolution","method_name":"1x1 Convolution"},{"method_slug":"average-pooling","method_name":"Average Pooling"},{"method_slug":"batch-normalization","method_name":"Batch Normalization"},{"method_slug":"bottleneck-residual-block","method_name":"Bottleneck Residual Block"},{"method_slug":"convolution","method_name":"Convolution"},{"method_slug":"global-average-pooling","method_name":"Global Average Pooling"},{"method_slug":"kaiming-initialization","method_name":"Kaiming Initialization"},{"method_slug":"max-pooling","method_name":"Max Pooling"},{"method_slug":"relu","method_name":"ReLU"},{"method_slug":"residual-block","method_name":"Residual Block"},{"method_slug":"residual-connection","method_name":"Residual Connection"}],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/image-generation-on-mnist","task":"Image Generation","dataset":"MNIST","model":"i-ResNet","rank_in_archive_order":5,"of":15,"metrics":{"bits/dimension":"1.06"},"uses_additional_data":false}],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=1811.00995","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1811.00995"}},"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/rtqichen/residual-flows","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/eyalbetzalel/residual-flows","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/yperugachidiaz/invertible_densenets","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/RuqiBai/mixture_flow","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/jhjacobsen/invertible-resnet","reach":null}],"summary":{"ran_draft_wrong":6,"ran_fixture":1,"ran_violates":1,"ran_honours":1},"by_repo_kind":{"named_in_paper":{"samples":3,"ran":3,"repositories":1},"listed":{"samples":3,"ran":3,"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":3,"samples":[{"code_sha256_prefix":"3e0a8dc623475d8e","entry":"geometric_logprob","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"ran_draft_wrong","verification_level":2,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"3e0a8dc623475d8e"}},{"code_sha256_prefix":"9b16691c6712e596","entry":"basic_logdet_estimator","repo":"yperugachidiaz/invertible_densenets","repo_kind":"listed","path":"lib/layers/iresblock.py","file_url":"https://github.com/yperugachidiaz/invertible_densenets/blob/HEAD/lib/layers/iresblock.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9b16691c6712e596"}},{"code_sha256_prefix":"85a4b5aac95f359d","entry":"batch_jacobian","repo":"yperugachidiaz/invertible_densenets","repo_kind":"listed","path":"lib/layers/iresblock.py","file_url":"https://github.com/yperugachidiaz/invertible_densenets/blob/HEAD/lib/layers/iresblock.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"85a4b5aac95f359d"}},{"code_sha256_prefix":"70b3429a213d3584","entry":"batch_trace","repo":"yperugachidiaz/invertible_densenets","repo_kind":"listed","path":"lib/layers/iresblock.py","file_url":"https://github.com/yperugachidiaz/invertible_densenets/blob/HEAD/lib/layers/iresblock.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"70b3429a213d3584"}},{"code_sha256_prefix":"229980ee5a77de9b","entry":"downsample_shape","repo":"jhjacobsen/invertible-resnet","repo_kind":"named_in_paper","path":"models/conv_iResNet.py","file_url":"https://github.com/jhjacobsen/invertible-resnet/blob/HEAD/models/conv_iResNet.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"229980ee5a77de9b"}},{"code_sha256_prefix":"ec74162145241ad3","entry":"get_init_batch","repo":"jhjacobsen/invertible-resnet","repo_kind":"named_in_paper","path":"CIFAR_main.py","file_url":"https://github.com/jhjacobsen/invertible-resnet/blob/HEAD/CIFAR_main.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ec74162145241ad3"}},{"code_sha256_prefix":"1f87158833d6c6ac","entry":"logistic_distribution","repo":"jhjacobsen/invertible-resnet","repo_kind":"named_in_paper","path":"models/conv_iResNet.py","file_url":"https://github.com/jhjacobsen/invertible-resnet/blob/HEAD/models/conv_iResNet.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1f87158833d6c6ac"}},{"code_sha256_prefix":"2dc23e3f121c6a38","entry":"standard_normal_logprob","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"2dc23e3f121c6a38"}},{"code_sha256_prefix":"2168d015a2e457cb","entry":"standard_normal_sample","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"2168d015a2e457cb"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}