{"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/persistent-test-time-adaptation-in-episodic","title":"Persistent Test-time Adaptation in Recurring Testing Scenarios","arxiv_id":"2311.18193","date":"2023-11-30","proceeding":null,"authors":["Trung-Hieu Hoang","Duc Minh Vo","Minh N. Do"],"abstract":"Current test-time adaptation (TTA) approaches aim to adapt a machine learning model to environments that change continuously. Yet, it is unclear whether TTA methods can maintain their adaptability over prolonged periods. To answer this question, we introduce a diagnostic setting - recurring TTA where environments not only change but also recur over time, creating an extensive data stream. This setting allows us to examine the error accumulation of TTA models, in the most basic scenario, when they are regularly exposed to previous testing environments. Furthermore, we simulate a TTA process on a simple yet representative $\\epsilon$-perturbed Gaussian Mixture Model Classifier, deriving theoretical insights into the dataset- and algorithm-dependent factors contributing to gradual performance degradation. Our investigation leads us to propose persistent TTA (PeTTA), which senses when the model is diverging towards collapse and adjusts the adaptation strategy, striking a balance between the dual objectives of adaptation and model collapse prevention. The supreme stability of PeTTA over existing approaches, in the face of lifelong TTA scenarios, has been demonstrated over comprehensive experiments on various benchmarks. Our project page is available at https://hthieu166.github.io/petta.","url_abs":"https://arxiv.org/abs/2311.18193v4","url_pdf":"https://arxiv.org/pdf/2311.18193v4.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":"persistent-test-time-adaptation-in-episodic","repo_url":"https://github.com/hthieu166/petta","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"diagnostic","task_name":"Diagnostic"},{"task_slug":"test-time-adaptation","task_name":"Test-time Adaptation"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2311.18193","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2311.18193"}},"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/hthieu166/petta","reach":null}],"summary":{"ran":6,"ran_draft_wrong":4,"ran_fixture":2,"unverified":5},"by_repo_kind":{"official":{"samples":17,"ran":12,"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":17,"samples":[{"code_sha256_prefix":"96a5a462737f2b96","entry":"ColorJitterPro","repo":"hthieu166/petta","repo_kind":"official","path":"src/adapter/petta.py","file_url":"https://github.com/hthieu166/petta/blob/HEAD/src/adapter/petta.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"96a5a462737f2b96"}},{"code_sha256_prefix":"3fa65932f3503ca1","entry":"ImageList","repo":"hthieu166/petta","repo_kind":"official","path":"src/adapter/petta.py","file_url":"https://github.com/hthieu166/petta/blob/HEAD/src/adapter/petta.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3fa65932f3503ca1"}},{"code_sha256_prefix":"396338a54ba1eba6","entry":"ImageNormalizer","repo":"hthieu166/petta","repo_kind":"official","path":"src/adapter/petta.py","file_url":"https://github.com/hthieu166/petta/blob/HEAD/src/adapter/petta.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"396338a54ba1eba6"}},{"code_sha256_prefix":"5e69882c492dedf9","entry":"MomentumBN","repo":"hthieu166/petta","repo_kind":"official","path":"src/adapter/petta.py","file_url":"https://github.com/hthieu166/petta/blob/HEAD/src/adapter/petta.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5e69882c492dedf9"}},{"code_sha256_prefix":"82eb95a8d9d858cf","entry":"RobustBN1d","repo":"hthieu166/petta","repo_kind":"official","path":"src/adapter/petta.py","file_url":"https://github.com/hthieu166/petta/blob/HEAD/src/adapter/petta.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"82eb95a8d9d858cf"}},{"code_sha256_prefix":"3290e5fe60d2293f","entry":"RobustBN2d","repo":"hthieu166/petta","repo_kind":"official","path":"src/adapter/petta.py","file_url":"https://github.com/hthieu166/petta/blob/HEAD/src/adapter/petta.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3290e5fe60d2293f"}},{"code_sha256_prefix":"9ffa7a7ccd232586","entry":"complete_data_dir_path","repo":"hthieu166/petta","repo_kind":"official","path":"src/adapter/petta.py","file_url":"https://github.com/hthieu166/petta/blob/HEAD/src/adapter/petta.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9ffa7a7ccd232586"}},{"code_sha256_prefix":"b0c4eab726f2ba98","entry":"get_transform","repo":"hthieu166/petta","repo_kind":"official","path":"src/adapter/petta.py","file_url":"https://github.com/hthieu166/petta/blob/HEAD/src/adapter/petta.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b0c4eab726f2ba98"}},{"code_sha256_prefix":"36688c7857b983fd","entry":"get_tta_transforms","repo":"hthieu166/petta","repo_kind":"official","path":"src/adapter/petta.py","file_url":"https://github.com/hthieu166/petta/blob/HEAD/src/adapter/petta.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"36688c7857b983fd"}},{"code_sha256_prefix":"b1c468877aaa60d4","entry":"self_training","repo":"hthieu166/petta","repo_kind":"official","path":"src/adapter/petta.py","file_url":"https://github.com/hthieu166/petta/blob/HEAD/src/adapter/petta.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b1c468877aaa60d4"}},{"code_sha256_prefix":"8cc4004512e3fa2f","entry":"softmax_entropy","repo":"hthieu166/petta","repo_kind":"official","path":"src/adapter/petta.py","file_url":"https://github.com/hthieu166/petta/blob/HEAD/src/adapter/petta.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8cc4004512e3fa2f"}},{"code_sha256_prefix":"34146179c8a52772","entry":"split_up_model","repo":"hthieu166/petta","repo_kind":"official","path":"src/adapter/petta.py","file_url":"https://github.com/hthieu166/petta/blob/HEAD/src/adapter/petta.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"34146179c8a52772"}},{"code_sha256_prefix":"688c1c2a9a37f39e","entry":"BaseAdapter","repo":"hthieu166/petta","repo_kind":"official","path":"src/adapter/petta.py","file_url":"https://github.com/hthieu166/petta/blob/HEAD/src/adapter/petta.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"688c1c2a9a37f39e"}},{"code_sha256_prefix":"2ff8432b1e1c68ee","entry":"PeTTA","repo":"hthieu166/petta","repo_kind":"official","path":"src/adapter/petta.py","file_url":"https://github.com/hthieu166/petta/blob/HEAD/src/adapter/petta.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"2ff8432b1e1c68ee"}},{"code_sha256_prefix":"91692a77659382c6","entry":"ResNetDomainNet126","repo":"hthieu166/petta","repo_kind":"official","path":"src/adapter/petta.py","file_url":"https://github.com/hthieu166/petta/blob/HEAD/src/adapter/petta.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"91692a77659382c6"}},{"code_sha256_prefix":"8c308dba19373e9c","entry":"get_augmentation","repo":"hthieu166/petta","repo_kind":"official","path":"src/adapter/petta.py","file_url":"https://github.com/hthieu166/petta/blob/HEAD/src/adapter/petta.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8c308dba19373e9c"}},{"code_sha256_prefix":"31ed6a79ea94f774","entry":"get_source_loader","repo":"hthieu166/petta","repo_kind":"official","path":"src/adapter/petta.py","file_url":"https://github.com/hthieu166/petta/blob/HEAD/src/adapter/petta.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"31ed6a79ea94f774"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}