{"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/recall-replay-based-continual-learning-in","title":"RECALL: Replay-based Continual Learning in Semantic Segmentation","arxiv_id":"2108.03673","date":"2021-08-08","proceeding":"ICCV 2021 10","authors":["Andrea Maracani","Umberto Michieli","Marco Toldo","Pietro Zanuttigh"],"abstract":"Deep networks allow to obtain outstanding results in semantic segmentation, however they need to be trained in a single shot with a large amount of data. Continual learning settings where new classes are learned in incremental steps and previous training data is no longer available are challenging due to the catastrophic forgetting phenomenon. Existing approaches typically fail when several incremental steps are performed or in presence of a distribution shift of the background class. We tackle these issues by recreating no longer available data for the old classes and outlining a content inpainting scheme on the background class. We propose two sources for replay data. The first resorts to a generative adversarial network to sample from the class space of past learning steps. The second relies on web-crawled data to retrieve images containing examples of old classes from online databases. In both scenarios no samples of past steps are stored, thus avoiding privacy concerns. Replay data are then blended with new samples during the incremental steps. Our approach, RECALL, outperforms state-of-the-art methods.","url_abs":"https://arxiv.org/abs/2108.03673v2","url_pdf":"https://arxiv.org/pdf/2108.03673v2.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":"recall-replay-based-continual-learning-in","repo_url":"https://github.com/lttm/recall","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"continual-learning","task_name":"Continual Learning"},{"task_slug":null,"task_name":"Generative Adversarial Network"},{"task_slug":"semantic-segmentation","task_name":"Semantic Segmentation"}],"methods":[{"method_slug":"pixel-prediction","method_name":"Inpainting"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2108.03673","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2108.03673"}},"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/lttm/recall","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/LTTM/RECALL","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":1,"ran_honours":2,"ran_fixture":2,"unverified":13},"by_repo_kind":{"official":{"samples":18,"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":"a3f7331bbdb98e59","entry":"Model","repo":"LTTM/RECALL","repo_kind":"official","path":"model_resnet.py","file_url":"https://github.com/LTTM/RECALL/blob/HEAD/model_resnet.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a3f7331bbdb98e59"}},{"code_sha256_prefix":"a96ff10f26036567","entry":"add","repo":"LTTM/RECALL","repo_kind":"official","path":"model_resnet.py","file_url":"https://github.com/LTTM/RECALL/blob/HEAD/model_resnet.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":"a96ff10f26036567"}},{"code_sha256_prefix":"ded213268c033a96","entry":"max_pool2d","repo":"LTTM/RECALL","repo_kind":"official","path":"model_resnet.py","file_url":"https://github.com/LTTM/RECALL/blob/HEAD/model_resnet.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":"ded213268c033a96"}},{"code_sha256_prefix":"37e49142da9ee0cd","entry":"relu","repo":"LTTM/RECALL","repo_kind":"official","path":"model_resnet.py","file_url":"https://github.com/LTTM/RECALL/blob/HEAD/model_resnet.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"37e49142da9ee0cd"}},{"code_sha256_prefix":"5d9c5fe9e4c597a9","entry":"upsampling","repo":"LTTM/RECALL","repo_kind":"official","path":"model_resnet.py","file_url":"https://github.com/LTTM/RECALL/blob/HEAD/model_resnet.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":"5d9c5fe9e4c597a9"}},{"code_sha256_prefix":"7130868dd7f4080f","entry":"ASPP","repo":"LTTM/RECALL","repo_kind":"official","path":"model_resnet.py","file_url":"https://github.com/LTTM/RECALL/blob/HEAD/model_resnet.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":"7130868dd7f4080f"}},{"code_sha256_prefix":"54d981e50a6f3e0f","entry":"batch_norm","repo":"LTTM/RECALL","repo_kind":"official","path":"model_resnet.py","file_url":"https://github.com/LTTM/RECALL/blob/HEAD/model_resnet.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":"54d981e50a6f3e0f"}},{"code_sha256_prefix":"22aa81d960081ea7","entry":"conv2d","repo":"LTTM/RECALL","repo_kind":"official","path":"model_resnet.py","file_url":"https://github.com/LTTM/RECALL/blob/HEAD/model_resnet.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":"22aa81d960081ea7"}},{"code_sha256_prefix":"391774518dbd2cc0","entry":"dilated_conv2d","repo":"LTTM/RECALL","repo_kind":"official","path":"model_resnet.py","file_url":"https://github.com/LTTM/RECALL/blob/HEAD/model_resnet.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":"391774518dbd2cc0"}},{"code_sha256_prefix":"92fa3b85dd6d9930","entry":"get_classes_accuracy","repo":"lttm/recall","repo_kind":"official","path":"metrics.py","file_url":"https://github.com/lttm/recall/blob/HEAD/metrics.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":"92fa3b85dd6d9930"}},{"code_sha256_prefix":"8e11a0aa76c799b6","entry":"get_classes_iou","repo":"lttm/recall","repo_kind":"official","path":"metrics.py","file_url":"https://github.com/lttm/recall/blob/HEAD/metrics.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":"8e11a0aa76c799b6"}},{"code_sha256_prefix":"48bc91b33344e330","entry":"get_mean_pixel_accuracy","repo":"lttm/recall","repo_kind":"official","path":"metrics.py","file_url":"https://github.com/lttm/recall/blob/HEAD/metrics.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":"48bc91b33344e330"}},{"code_sha256_prefix":"7045941346cccb6f","entry":"im2int","repo":"lttm/recall","repo_kind":"official","path":"gan/generate_gan.py","file_url":"https://github.com/lttm/recall/blob/HEAD/gan/generate_gan.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":"7045941346cccb6f"}},{"code_sha256_prefix":"e74234eaa6937655","entry":"interleave_datasets","repo":"lttm/recall","repo_kind":"official","path":"data_loader.py","file_url":"https://github.com/lttm/recall/blob/HEAD/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":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e74234eaa6937655"}},{"code_sha256_prefix":"3cdee8d3ea4218a4","entry":"preprocess_training_op","repo":"lttm/recall","repo_kind":"official","path":"preprocessing.py","file_url":"https://github.com/lttm/recall/blob/HEAD/preprocessing.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":"3cdee8d3ea4218a4"}},{"code_sha256_prefix":"94725ecbda96c654","entry":"preprocess_validation_op","repo":"lttm/recall","repo_kind":"official","path":"preprocessing.py","file_url":"https://github.com/lttm/recall/blob/HEAD/preprocessing.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":"94725ecbda96c654"}},{"code_sha256_prefix":"423a14145bc09771","entry":"resize_image_op","repo":"lttm/recall","repo_kind":"official","path":"preprocessing.py","file_url":"https://github.com/lttm/recall/blob/HEAD/preprocessing.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":"423a14145bc09771"}},{"code_sha256_prefix":"2e9c72ac0591430c","entry":"serialize_sample","repo":"lttm/recall","repo_kind":"official","path":"data_loader.py","file_url":"https://github.com/lttm/recall/blob/HEAD/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":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2e9c72ac0591430c"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}