{"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/robust-test-time-adaptation-in-dynamic","title":"Robust Test-Time Adaptation in Dynamic Scenarios","arxiv_id":"2303.13899","date":"2023-03-24","proceeding":"CVPR 2023 1","authors":["Longhui Yuan","Binhui Xie","Shuang Li"],"abstract":"Test-time adaptation (TTA) intends to adapt the pretrained model to test distributions with only unlabeled test data streams. Most of the previous TTA methods have achieved great success on simple test data streams such as independently sampled data from single or multiple distributions. However, these attempts may fail in dynamic scenarios of real-world applications like autonomous driving, where the environments gradually change and the test data is sampled correlatively over time. In this work, we explore such practical test data streams to deploy the model on the fly, namely practical test-time adaptation (PTTA). To do so, we elaborate a Robust Test-Time Adaptation (RoTTA) method against the complex data stream in PTTA. More specifically, we present a robust batch normalization scheme to estimate the normalization statistics. Meanwhile, a memory bank is utilized to sample category-balanced data with consideration of timeliness and uncertainty. Further, to stabilize the training procedure, we develop a time-aware reweighting strategy with a teacher-student model. Extensive experiments prove that RoTTA enables continual testtime adaptation on the correlatively sampled data streams. Our method is easy to implement, making it a good choice for rapid deployment. The code is publicly available at https://github.com/BIT-DA/RoTTA","url_abs":"https://arxiv.org/abs/2303.13899v1","url_pdf":"https://arxiv.org/pdf/2303.13899v1.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":"robust-test-time-adaptation-in-dynamic","repo_url":"https://github.com/bit-da/rotta","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"autonomous-driving","task_name":"Autonomous Driving"},{"task_slug":"test-time-adaptation","task_name":"Test-time Adaptation"}],"methods":[{"method_slug":"batch-normalization","method_name":"Batch Normalization"},{"method_slug":"test","method_name":"Test"},{"method_slug":"fail","method_name":"fail"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2303.13899","atlas_url":"https://app.syntology.ai/?focus=2303.13899","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2303.13899"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/bit-da/rotta","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/BIT-DA/RoTTA","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":1,"ran_draft_wrong":1,"unverified":3},"by_repo_kind":{"official":{"samples":5,"ran":2,"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":"a0c7ae238f5f94ce","entry":"ColorJitterPro","repo":"BIT-DA/RoTTA","repo_kind":"official","path":"core/adapter/rotta.py","file_url":"https://github.com/BIT-DA/RoTTA/blob/HEAD/core/adapter/rotta.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a0c7ae238f5f94ce"}},{"code_sha256_prefix":"2fd0610ee153f304","entry":"timeliness_reweighting","repo":"BIT-DA/RoTTA","repo_kind":"official","path":"core/adapter/rotta.py","file_url":"https://github.com/BIT-DA/RoTTA/blob/HEAD/core/adapter/rotta.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":"2fd0610ee153f304"}},{"code_sha256_prefix":"8d1f9b683822a8a0","entry":"BaseAdapter","repo":"BIT-DA/RoTTA","repo_kind":"official","path":"core/adapter/rotta.py","file_url":"https://github.com/BIT-DA/RoTTA/blob/HEAD/core/adapter/rotta.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":"8d1f9b683822a8a0"}},{"code_sha256_prefix":"a381237713615fae","entry":"RoTTA","repo":"BIT-DA/RoTTA","repo_kind":"official","path":"core/adapter/rotta.py","file_url":"https://github.com/BIT-DA/RoTTA/blob/HEAD/core/adapter/rotta.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":"a381237713615fae"}},{"code_sha256_prefix":"2810e57d868cd873","entry":"get_tta_transforms","repo":"BIT-DA/RoTTA","repo_kind":"official","path":"core/adapter/rotta.py","file_url":"https://github.com/BIT-DA/RoTTA/blob/HEAD/core/adapter/rotta.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":"2810e57d868cd873"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}