Papers › SURGEON: Memory-Adaptive Fully Test-Time Adaptation via Dynamic Activation Sparsity

SURGEON: Memory-Adaptive Fully Test-Time Adaptation via Dynamic Activation Sparsity

26 Mar 2025CVPR 2025 1arXiv:2503.20354archive 2025-07-28

Ke Ma, Jiaqi Tang, Bin Guo, Fan Dang, Sicong Liu, Zhui Zhu, Lei Wu, Cheng Fang, Ying-Cong Chen, Zhiwen Yu, Yunhao Liu

Despite the growing integration of deep models into mobile terminals, the accuracy of these models declines significantly due to various deployment interferences. Test-time adaptation (TTA) has emerged to improve the performance of deep models by adapting them to unlabeled target data online. Yet, the significant memory cost, particularly in resource-constrained terminals, impedes the effective deployment of most backward-propagation-based TTA methods. To tackle memory constraints, we introduce SURGEON, a method that substantially reduces memory cost while preserving comparable accuracy improvements during fully test-time adaptation (FTTA) without relying on specific network architectures or modifications to the original training procedure. Specifically, we propose a novel dynamic activation sparsity strategy that directly prunes activations at layer-specific dynamic ratios during adaptation, allowing for flexible control of learning ability and memory cost in a data-sensitive manner. Among this, two metrics, Gradient Importance and Layer Activation Memory, are considered to determine the layer-wise pruning ratios, reflecting accuracy contribution and memory efficiency, respectively. Experimentally, our method surpasses the baselines by not only reducing memory usage but also achieving superior accuracy, delivering SOTA performance across diverse datasets, architectures, and tasks.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2503.20354")

Code

Syntology Ran 15 of 19 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 5 ran · honoured contract; 1 ran · violated contract; 3 ran · our draft was wrong; 2 ran · fixture could not drive it; 4 ran with no contract checked.

By repository: community (archive-listed): 19 samples from 1 repository, 15 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

kadmkbl/SURGEON mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

19 samples harvested; 15 ran; 5 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

5ran · honoured contract
1ran · violated contract
3ran · our draft was wrong
2ran · fixture could not drive it
4ran
4unverified

Licence: 19 of the 19 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from kadmkbl/SURGEON. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: 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. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

AutoFreezeConv2dFunction kadmkbl/SURGEON/methods/das.py community (archive-listed) ran no licence file found · pointer only · 3ab07e39284c363b · report
AutoFreezeFCFunction kadmkbl/SURGEON/methods/das.py community (archive-listed) ran no licence file found · pointer only · a62d806a71151d70 · report
Clipper kadmkbl/SURGEON/methods/das.py community (archive-listed) ran no licence file found · pointer only · a75f9647bc45a8df · report
ImageNormalizer kadmkbl/SURGEON/methods/das.py community (archive-listed) ran · metamorphic tier: deterministic fingerprinted no licence file found · pointer only · ddaf38ed7b1cf5a6 · report
_ntuple kadmkbl/SURGEON/methods/das.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · 8a69f6beafdd8b41 · report
backward_compute kadmkbl/SURGEON/methods/das.py community (archive-listed) ran · fixture could not drive it fingerprinted no licence file found · pointer only · 62be6c250b9d0a8b · report
consistency kadmkbl/SURGEON/methods/das.py community (archive-listed) ran · honoured contract no licence file found · pointer only · 45406eec57fc2f7d · report
forward_compute kadmkbl/SURGEON/methods/das.py community (archive-listed) ran · fixture could not drive it fingerprinted no licence file found · pointer only · cfe53e17ff979be5 · report
gauss_kl_divergence kadmkbl/SURGEON/methods/das.py community (archive-listed) ran · honoured contract fingerprinted no licence file found · pointer only · b84c0781bc911e1e · report
gauss_symm_kl_divergence kadmkbl/SURGEON/methods/das.py community (archive-listed) ran · honoured contract fingerprinted no licence file found · pointer only · 2609b174a5a12537 · report
get_tgi kadmkbl/SURGEON/methods/das.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · 899f5102d34cc83e · report
get_tta_transforms kadmkbl/SURGEON/methods/das.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · d343b36a78d08d71 · report
simple_divergence kadmkbl/SURGEON/methods/das.py community (archive-listed) ran · honoured contract fingerprinted no licence file found · pointer only · 37fad9913f611960 · report
softmax_entropy kadmkbl/SURGEON/methods/das.py community (archive-listed) ran · violated contract no licence file found · pointer only · db8b634a36fc3530 · report
softmax_entropy_sample kadmkbl/SURGEON/methods/das.py community (archive-listed) ran · honoured contract no licence file found · pointer only · 30c492fa1b06fd3a · report
AutoFreezeNorm2dFunction kadmkbl/SURGEON/methods/das.py community (archive-listed) unverified no licence file found · pointer only · c91ae8a8f9eb5bf0 · report
DAS kadmkbl/SURGEON/methods/das.py community (archive-listed) unverified no licence file found · pointer only · 2b1c178da36a6016 · report
ResNetDomainNet126 kadmkbl/SURGEON/methods/das.py community (archive-listed) unverified no licence file found · pointer only · 58fd6b677c71df61 · report
TTAMethod kadmkbl/SURGEON/methods/das.py community (archive-listed) unverified no licence file found · pointer only · 3ae0a49e0a49f74e · report

Tasks

Test-time Adaptation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Pruning

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections