{"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/a-partially-reversible-u-net-for-memory","title":"A Partially Reversible U-Net for Memory-Efficient Volumetric Image Segmentation","arxiv_id":"1906.06148","date":"2019-06-14","proceeding":null,"authors":["Robin Brügger","Christian F. Baumgartner","Ender Konukoglu"],"abstract":"One of the key drawbacks of 3D convolutional neural networks for segmentation is their memory footprint, which necessitates compromises in the network architecture in order to fit into a given memory budget. Motivated by the RevNet for image classification, we propose a partially reversible U-Net architecture that reduces memory consumption substantially. The reversible architecture allows us to exactly recover each layer's outputs from the subsequent layer's ones, eliminating the need to store activations for backpropagation. This alleviates the biggest memory bottleneck and enables very deep (theoretically infinitely deep) 3D architectures. On the BraTS challenge dataset, we demonstrate substantial memory savings. We further show that the freed memory can be used for processing the whole field-of-view (FOV) instead of patches. Increasing network depth led to higher segmentation accuracy while growing the memory footprint only by a very small fraction, thanks to the partially reversible architecture.","url_abs":"https://arxiv.org/abs/1906.06148v2","url_pdf":"https://arxiv.org/pdf/1906.06148v2.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":"a-partially-reversible-u-net-for-memory","repo_url":"https://github.com/RobinBruegger/PartiallyReversibleUnet","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"BSD-3-Clause"}},{"paper_slug":"a-partially-reversible-u-net-for-memory","repo_url":"https://github.com/RobinBruegger/RevTorch","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"BSD-3-Clause"}},{"paper_slug":"a-partially-reversible-u-net-for-memory","repo_url":"https://github.com/gigantenbein/UNet-Zoo","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"a-partially-reversible-u-net-for-memory","repo_url":"https://github.com/lucidrains/imagen-pytorch","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"image-classification","task_name":"Image Classification"},{"task_slug":"image-segmentation","task_name":"Image Segmentation"},{"task_slug":"medical-image-segmentation","task_name":"Medical Image Segmentation"},{"task_slug":"segmentation","task_name":"Segmentation"},{"task_slug":"semantic-segmentation","task_name":"Semantic Segmentation"},{"task_slug":"image-classification","task_name":"image-classification"}],"methods":[{"method_slug":"concatenated-skip-connection","method_name":"Concatenated Skip Connection"},{"method_slug":"max-pooling","method_name":"Max Pooling"},{"method_slug":"relu","method_name":"ReLU"},{"method_slug":"u-net","method_name":"U-Net"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1906.06148","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1906.06148"}},"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/gigantenbein/UNet-Zoo","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/RobinBruegger/RevTorch","reach":{"status":"ok","spdx":"BSD-3-Clause"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/RobinBruegger/PartiallyReversibleUnet","reach":{"status":"ok","spdx":"BSD-3-Clause"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/lucidrains/imagen-pytorch","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":15},"by_repo_kind":{"official":{"samples":15,"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":"655b6c41d66f6e08","entry":"convert_to_onehot","repo":"RobinBruegger/PartiallyReversibleUnet","repo_kind":"official","path":"dataProcessing/utils.py","file_url":"https://github.com/RobinBruegger/PartiallyReversibleUnet/blob/HEAD/dataProcessing/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"655b6c41d66f6e08"}},{"code_sha256_prefix":"490170484880eb83","entry":"cropToSize","repo":"RobinBruegger/PartiallyReversibleUnet","repo_kind":"official","path":"dataProcessing/augmentation.py","file_url":"https://github.com/RobinBruegger/PartiallyReversibleUnet/blob/HEAD/dataProcessing/augmentation.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"490170484880eb83"}},{"code_sha256_prefix":"6bdbaa82995e50da","entry":"crop_volume_allDim","repo":"RobinBruegger/PartiallyReversibleUnet","repo_kind":"official","path":"dataProcessing/brats18_data_loader.py","file_url":"https://github.com/RobinBruegger/PartiallyReversibleUnet/blob/HEAD/dataProcessing/brats18_data_loader.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"6bdbaa82995e50da"}},{"code_sha256_prefix":"a4685fdb16dd025a","entry":"crop_volume_allDim","repo":"RobinBruegger/PartiallyReversibleUnet","repo_kind":"official","path":"dataProcessing/brats18_validation_data_loader.py","file_url":"https://github.com/RobinBruegger/PartiallyReversibleUnet/blob/HEAD/dataProcessing/brats18_validation_data_loader.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"a4685fdb16dd025a"}},{"code_sha256_prefix":"bc6738cdc2e9cdac","entry":"dice","repo":"RobinBruegger/PartiallyReversibleUnet","repo_kind":"official","path":"bratsUtils.py","file_url":"https://github.com/RobinBruegger/PartiallyReversibleUnet/blob/HEAD/bratsUtils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"bc6738cdc2e9cdac"}},{"code_sha256_prefix":"ad0498c6f103c936","entry":"diceLoss","repo":"RobinBruegger/PartiallyReversibleUnet","repo_kind":"official","path":"bratsUtils.py","file_url":"https://github.com/RobinBruegger/PartiallyReversibleUnet/blob/HEAD/bratsUtils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"ad0498c6f103c936"}},{"code_sha256_prefix":"cfad01770826b0d7","entry":"getChannelsAtIndex","repo":"RobinBruegger/PartiallyReversibleUnet","repo_kind":"official","path":"experiments/noNewReversible.py","file_url":"https://github.com/RobinBruegger/PartiallyReversibleUnet/blob/HEAD/experiments/noNewReversible.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"cfad01770826b0d7"}},{"code_sha256_prefix":"64238175a9a6b6ce","entry":"ncc","repo":"RobinBruegger/PartiallyReversibleUnet","repo_kind":"official","path":"dataProcessing/utils.py","file_url":"https://github.com/RobinBruegger/PartiallyReversibleUnet/blob/HEAD/dataProcessing/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"64238175a9a6b6ce"}},{"code_sha256_prefix":"40982e09ede903ad","entry":"norm_l2","repo":"RobinBruegger/PartiallyReversibleUnet","repo_kind":"official","path":"dataProcessing/utils.py","file_url":"https://github.com/RobinBruegger/PartiallyReversibleUnet/blob/HEAD/dataProcessing/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"40982e09ede903ad"}},{"code_sha256_prefix":"9146f30cacc79517","entry":"normalise_image","repo":"RobinBruegger/PartiallyReversibleUnet","repo_kind":"official","path":"dataProcessing/brats18_data_loader.py","file_url":"https://github.com/RobinBruegger/PartiallyReversibleUnet/blob/HEAD/dataProcessing/brats18_data_loader.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"9146f30cacc79517"}},{"code_sha256_prefix":"796feb0e31cfb904","entry":"normalise_image","repo":"RobinBruegger/PartiallyReversibleUnet","repo_kind":"official","path":"dataProcessing/brats18_validation_data_loader.py","file_url":"https://github.com/RobinBruegger/PartiallyReversibleUnet/blob/HEAD/dataProcessing/brats18_validation_data_loader.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"796feb0e31cfb904"}},{"code_sha256_prefix":"abd3eebccec9f78b","entry":"padToSize","repo":"RobinBruegger/PartiallyReversibleUnet","repo_kind":"official","path":"dataProcessing/augmentation.py","file_url":"https://github.com/RobinBruegger/PartiallyReversibleUnet/blob/HEAD/dataProcessing/augmentation.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"abd3eebccec9f78b"}},{"code_sha256_prefix":"3b9462f9056ee95e","entry":"softDice","repo":"RobinBruegger/PartiallyReversibleUnet","repo_kind":"official","path":"bratsUtils.py","file_url":"https://github.com/RobinBruegger/PartiallyReversibleUnet/blob/HEAD/bratsUtils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"3b9462f9056ee95e"}},{"code_sha256_prefix":"407af86815254b44","entry":"test_train_val_split","repo":"RobinBruegger/PartiallyReversibleUnet","repo_kind":"official","path":"dataProcessing/brats18_data_loader.py","file_url":"https://github.com/RobinBruegger/PartiallyReversibleUnet/blob/HEAD/dataProcessing/brats18_data_loader.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"407af86815254b44"}},{"code_sha256_prefix":"ea35d2f3d8516236","entry":"test_train_val_split","repo":"RobinBruegger/PartiallyReversibleUnet","repo_kind":"official","path":"dataProcessing/brats18_validation_data_loader.py","file_url":"https://github.com/RobinBruegger/PartiallyReversibleUnet/blob/HEAD/dataProcessing/brats18_validation_data_loader.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"ea35d2f3d8516236"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}