{"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/arxiv-2602-03292","title":"A3-TTA: Adaptive Anchor Alignment Test-Time Adaptation for Image Segmentation","arxiv_id":"2602.03292","date":"2026-02-03","proceeding":null,"authors":["Jianghao Wu","Xiangde Luo","Yubo Zhou","Lianming Wu","Guotai Wang","Shaoting Zhang"],"abstract":"Test-Time Adaptation (TTA) offers a practical solution for deploying image segmentation models under domain shift without accessing source data or retraining. Among existing TTA strategies, pseudo-label-based methods have shown promising performance. However, they often rely on perturbation-ensemble heuristics (e.g., dropout sampling, test-time augmentation, Gaussian noise), which lack distributional grounding and yield unstable training signals. This can trigger error accumulation and catastrophic forgetting during adaptation. To address this, we propose \\textbf{A3-TTA}, a TTA framework that constructs reliable pseudo-labels through anchor-guided supervision. Specifically, we identify well-predicted target domain images using a class compact density metric, under the assumption that confident predictions imply distributional proximity to the source domain. These anchors serve as stable references to guide pseudo-label generation, which is further regularized via semantic consistency and boundary-aware entropy minimization. Additionally, we introduce a self-adaptive exponential moving average strategy to mitigate label noise and stabilize model update during adaptation. Evaluated on both multi-domain medical images (heart structure and prostate segmentation) and natural images, A3-TTA significantly improves average Dice scores by 10.40 to 17.68 percentage points compared to the source model, outperforming several state-of-the-art TTA methods under different segmentation model architectures. A3-TTA also excels in continual TTA, maintaining high performance across sequential target domains with strong anti-forgetting ability. The code will be made publicly available at https://github.com/HiLab-git/A3-TTA.","url_abs":"https://arxiv.org/abs/2602.03292","url_pdf":"https://arxiv.org/pdf/2602.03292","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2602.03292","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2602.03292"}},"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":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/HiLab-git/A3-TTA","reach":null}],"summary":{"ran":2,"ran_draft_wrong":4,"unverified":2},"by_repo_kind":{"found_in_text":{"samples":8,"ran":6,"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":8,"samples":[{"code_sha256_prefix":"4a0d07671a29d409","entry":"ClassRatioLoss","repo":"HiLab-git/A3-TTA","repo_kind":"found_in_text","path":"a3_tta.py","file_url":"https://github.com/HiLab-git/A3-TTA/blob/HEAD/a3_tta.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"4a0d07671a29d409"}},{"code_sha256_prefix":"cde46238259ccdbc","entry":"Prototype_Pool","repo":"HiLab-git/A3-TTA","repo_kind":"found_in_text","path":"a3_tta.py","file_url":"https://github.com/HiLab-git/A3-TTA/blob/HEAD/a3_tta.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":"cde46238259ccdbc"}},{"code_sha256_prefix":"6177049536217f2c","entry":"apply_affine","repo":"HiLab-git/A3-TTA","repo_kind":"found_in_text","path":"a3_tta.py","file_url":"https://github.com/HiLab-git/A3-TTA/blob/HEAD/a3_tta.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":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"6177049536217f2c"}},{"code_sha256_prefix":"86cad815e8943774","entry":"apply_invert_affine","repo":"HiLab-git/A3-TTA","repo_kind":"found_in_text","path":"a3_tta.py","file_url":"https://github.com/HiLab-git/A3-TTA/blob/HEAD/a3_tta.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":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"86cad815e8943774"}},{"code_sha256_prefix":"1c838b49ddce9877","entry":"copy_model_and_optimizer","repo":"HiLab-git/A3-TTA","repo_kind":"found_in_text","path":"a3_tta.py","file_url":"https://github.com/HiLab-git/A3-TTA/blob/HEAD/a3_tta.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":"1c838b49ddce9877"}},{"code_sha256_prefix":"006d7b109e1c73e7","entry":"update_ema_variables","repo":"HiLab-git/A3-TTA","repo_kind":"found_in_text","path":"a3_tta.py","file_url":"https://github.com/HiLab-git/A3-TTA/blob/HEAD/a3_tta.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":"006d7b109e1c73e7"}},{"code_sha256_prefix":"91e62e341262d1fa","entry":"TTA","repo":"HiLab-git/A3-TTA","repo_kind":"found_in_text","path":"a3_tta.py","file_url":"https://github.com/HiLab-git/A3-TTA/blob/HEAD/a3_tta.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":"91e62e341262d1fa"}},{"code_sha256_prefix":"3e869ad77e4775a0","entry":"softmax_entropy","repo":"HiLab-git/A3-TTA","repo_kind":"found_in_text","path":"a3_tta.py","file_url":"https://github.com/HiLab-git/A3-TTA/blob/HEAD/a3_tta.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":"3e869ad77e4775a0"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.CV","source":"arxiv_2026.jsonl"},"syntology_extracted_results":null}