Papers › Dual-Path Adversarial Lifting for Domain Shift Correction in Online Test-time Adaptation

Dual-Path Adversarial Lifting for Domain Shift Correction in Online Test-time Adaptation

26 Aug 2024arXiv:2408.13983archive 2025-07-28

Yushun Tang, Shuoshuo Chen, Zhihe Lu, Xinchao Wang, Zhihai He

Transformer-based methods have achieved remarkable success in various machine learning tasks. How to design efficient test-time adaptation methods for transformer models becomes an important research task. In this work, motivated by the dual-subband wavelet lifting scheme developed in multi-scale signal processing which is able to efficiently separate the input signals into principal components and noise components, we introduce a dual-path token lifting for domain shift correction in test time adaptation. Specifically, we introduce an extra token, referred to as \textit{domain shift token}, at each layer of the transformer network. We then perform dual-path lifting with interleaved token prediction and update between the path of domain shift tokens and the path of class tokens at all network layers. The prediction and update networks are learned in an adversarial manner. Specifically, the task of the prediction network is to learn the residual noise of domain shift which should be largely invariant across all classes and all samples in the target domain. In other words, the predicted domain shift noise should be indistinguishable between all sample classes. On the other hand, the task of the update network is to update the class tokens by removing the domain shift from the input image samples so that input samples become more discriminative between different classes in the feature space. To effectively learn the prediction and update networks with two adversarial tasks, both theoretically and practically, we demonstrate that it is necessary to use smooth optimization for the update network but non-smooth optimization for the prediction network. Experimental results on the benchmark datasets demonstrate that our proposed method significantly improves the online fully test-time domain adaptation performance. Code is available at \url{https://github.com/yushuntang/DPAL}.

PaperPDFCodeCode 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="2408.13983")

Code

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

By repository: official repository: 20 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.

yushuntang/dpal officialmentioned in papermentioned on GitHubpytorchMIT 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

20 samples harvested; 15 ran; 0 honoured the contract we drafted; 5 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.

2ran · our draft was wrong
1ran · fixture could not drive it
12ran
5unverified

Licence: 0 of the 20 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 yushuntang/dpal. “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.

clean_state_dict yushuntang/dpal/models/helpers.py official repository ran MIT (permissive) · 9d8a74383a0f33dc · report
collect_params yushuntang/dpal/dpal.py official repository ran MIT (permissive) · 841322c61130157b · report
collect_prodictor_params yushuntang/dpal/dpal.py official repository ran MIT (permissive) · 5eb7311dbc0e7ad9 · report
conv1x1 yushuntang/dpal/models/Res.py official repository ran · our draft was wrong MIT (permissive) · d9def42110729a85 · report
conv3x3 yushuntang/dpal/models/Res.py official repository ran · our draft was wrong MIT (permissive) · 160bb14bd76201b4 · report
forward_and_adapt yushuntang/dpal/tent.py official repository ran MIT (permissive) · dbdbd9c45e96c572 · report
generate_sample_indices_and_ys yushuntang/dpal/dataset/generate_shifted_sample_indices.py official repository ran MIT (permissive) · 5f093779a87d9678 · report
mish yushuntang/dpal/models/layers/activations.py official repository ran fingerprinted MIT (permissive) · 801c85b8903bfff5 · report
monotone_shift_constructor yushuntang/dpal/dataset/generate_shifted_sample_indices.py official repository ran MIT (permissive) · e0f5922439b9e115 · report
sigmoid yushuntang/dpal/models/layers/activations.py official repository ran fingerprinted MIT (permissive) · d83b6ecf3cdc1d6a · report
softmax_entropy yushuntang/dpal/dct.py official repository ran · fixture could not drive it MIT (permissive) · 3078648c75e3e1e3 · report
swish yushuntang/dpal/models/layers/activations.py official repository ran fingerprinted MIT (permissive) · 717e4d22b6d103e6 · report
tensor_rot_180 yushuntang/dpal/dataset/selectedRotateImageFolder.py official repository ran fingerprinted MIT (permissive) · 890d94991798f654 · report
tensor_rot_270 yushuntang/dpal/dataset/selectedRotateImageFolder.py official repository ran fingerprinted MIT (permissive) · 599b8f7cc5b4ef6d · report
tensor_rot_90 yushuntang/dpal/dataset/selectedRotateImageFolder.py official repository ran fingerprinted MIT (permissive) · de9a9c1253646b04 · report
conv2d_same yushuntang/dpal/models/helpers.py official repository unverified MIT (permissive) · d68221a69e61e4fc · report
create_conv2d_pad yushuntang/dpal/models/helpers.py official repository unverified MIT (permissive) · 2366213b73f20069 · report
generate_test_probs_and_ys yushuntang/dpal/dataset/generate_shifted_sample_indices.py official repository unverified MIT (permissive) · d0e36060db3376e6 · report
resnet18 yushuntang/dpal/models/Res.py official repository unverified MIT (permissive) · 48cd44b7f9a2e1d9 · report
update_ema yushuntang/dpal/dpal.py official repository unverified MIT (permissive) · 17259eab7993e1c7 · report

Tasks

Domain AdaptationPredictionTest-time Adaptation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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