Test-Time Prompt-Agnostic Decomposition
Junze Wang, Lei Fan, Dezheng Zhang, Donglin Di, Yang Song, Sidong Liu, Cong Cong
NeurIPS 2026
Abstract. Test-Time Prompt Tuning (TPT) adapts large pretrained models to unseen target distribution shifts by updating only lightweight prompt tokens. Existing TPT methods are effective, but they mainly optimize each prompt update locally. Across test-time steps, prompts updated at the current step are reused for the corresponding predictions and updates, so noisy or biased unlabeled objectives can accumulate and destabilize the prompt-update trajectory. We identify two failure modes: magnitude expansion, where updates move the prompt too far, and directional drift, where consecutive updates point in inconsistent directions. To analyze and control these failures, we propose Test-Time Prompt-Agnostic Decomposition (), which characterizes observed prompt-update trajectories from a dynamical-systems view and decomposes base prompt updates into magnitude and direction. computes a spectral radius to measure update expansion and decomposes update directions into persistent, oscillatory, and residual components. Building on this decomposition, Adaptive Koopman Control () regulates update magnitude by shrinking updates under expansive recent dynamics, while Hankel Update Router () refines update direction by preserving persistent components and suppressing oscillatory and residual components. Together, and produce a stabilized prompt update. As a prompt-agnostic framework, can be plugged into visual and text TPT methods without modifying the backbone, prompt architecture, or adaptation loss. Experiments on 15 datasets show that consistently improves 10 baselines, with accuracy gains of -- for visual prompts and over for text prompts.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:46 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
The reviewers view the submission as presenting an interesting perspective on test-time prompt tuning. However, several aspects of the proposed decomposition and its applicability require clarification.
The necessity and interpretation of the Koopman/Hankel construction are not yet fully established. Reviewers wdFC and o7NT both question whether the proposed machinery provides a sufficiently clear advantage over simpler history-based stabilization methods.
The dependence on recent update history raises questions about robustness to realistic test-stream conditions. Reviewer wdFC asks about sensitivity to test-sample ordering and abrupt or alternating domain changes, while Reviewer 8zpN raises related concerns regarding small-batch streaming and long-term continuous non-stationary shifts.
Practical deployment and evaluation details should be strengthened. Reviewers o7NT and 8zpN ask how the history length, effective rank, spectral threshold, ... can be selected without labelled target validation data. Reviewer wdFC additionally requests variance across seeds or test orders.
The AC’s current assessment is that the paper is heading toward acceptance. The raised concerns appear addressable, and a clear response would further strengthen the case.
Final justification
The authors provided a detailed rebuttal with several additional experiments. In particular, they provided additional results on calibration, computational overhead, and small-batch adaptation. Reviewers wdFC and o7NT indicated that their main concerns had been addressed, with wdFC increasing the rating from 4 (Borderline Accept) to 5 (Accept).
The remaining concern from Reviewer 8zpN is the performance degradation at small batch sizes. The AC agrees that this is a relevant limitation, however, small-batch adaptation is itself a challenging regime for test-time adaptation. Overall, the paper presents an interesting perspective on test-time prompt tuning, supported by broad empirical results. As such and considering the rebuttal, the AC recommends Accept.
Read meta-review
Meta-review
The reviewers view the submission as presenting an interesting perspective on test-time prompt tuning. However, several aspects of the proposed decomposition and its applicability require clarification.
The necessity and interpretation of the Koopman/Hankel construction are not yet fully established. Reviewers wdFC and o7NT both question whether the proposed machinery provides a sufficiently clear advantage over simpler history-based stabilization methods.
The dependence on recent update history raises questions about robustness to realistic test-stream conditions. Reviewer wdFC asks about sensitivity to test-sample ordering and abrupt or alternating domain changes, while Reviewer 8zpN raises related concerns regarding small-batch streaming and long-term continuous non-stationary shifts.
Practical deployment and evaluation details should be strengthened. Reviewers o7NT and 8zpN ask how the history length, effective rank, spectral threshold, ... can be selected without labelled target validation data. Reviewer wdFC additionally requests variance across seeds or test orders.
The AC’s current assessment is that the paper is heading toward acceptance. The raised concerns appear addressable, and a clear response would further strengthen the case.
Final justification
The authors provided a detailed rebuttal with several additional experiments. In particular, they provided additional results on calibration, computational overhead, and small-batch adaptation. Reviewers wdFC and o7NT indicated that their main concerns had been addressed, with wdFC increasing the rating from 4 (Borderline Accept) to 5 (Accept).
The remaining concern from Reviewer 8zpN is the performance degradation at small batch sizes. The AC agrees that this is a relevant limitation, however, small-batch adaptation is itself a challenging regime for test-time adaptation. Overall, the paper presents an interesting perspective on test-time prompt tuning, supported by broad empirical results. As such and considering the rebuttal, the AC recommends Accept.
2 comments
Follow-up Response to Area Chair WVo6
All three reviewers have responded to our rebuttal. Reviewers wdFC and o7NT raised no concerns, leaving only Reviewer 8zpN’s low-batch robustness concern. We provided a further response clarifying that small-batch sensitivity is a general TTA challenge and that TPD improves the VPT baseline in 21 of 22 settings.
Reviewer 8zpN also reiterated the unpolished presentation concern. Since manuscript revisions are not permitted at this stage, we will correct and polish the relevant figures and captions in the final version.
We remain grateful for your positive assessment and hope this follow-up assists the final evaluation.
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper identifies two failure modes of existing test-time prompt tuning methods, namely magnitude expansion and directional drift. To analyze and control these failures, the authors propose Test-Time Prompt-Agnostic Decomposition, which decomposes prompt updates into magnitude and direction and stabilizes them through Adaptive Koopman Control and Hankel Update Router. The work provides an insightful perspective on understanding prompt-update trajectories during test-time adaptation, and the proposed framework is shown to be applicable to both visual and text prompt tuning methods.
Strengths and weaknesses
Strengths
- The paper studies an important and under-explored problem in test-time prompt tuning. Existing TPT methods usually focus on each local update, while this paper emphasizes the trajectory-level behavior of prompt updates across test steps. This perspective is meaningful and helps explain why unstable updates may hurt test-time adaptation.
- The two identified failure modes, magnitude expansion and directional drift, are intuitive and well-motivated. Fig. 1 gives a clear illustration of the relation between unstable prompt updates and performance degradation, making the motivation easy to follow.
- The proposed method is prompt-agnostic. Since it directly operates on the base prompt update, it can be plugged into different TPT methods without modifying the backbone, prompt architecture, or adaptation loss. This makes the method practically useful.
- The experimental results are strong. The paper evaluates the method on a broad set of datasets and baselines. The improvements in Table 1 and Table 2 are consistent for both ViT-based visual prompt tuning and CLIP-based text prompt tuning. The comparison with simple stabilization rules in Table 3 also helps show that the proposed decomposition is more effective than basic update clipping or smoothing.
- The ablation studies and analysis further support the design choices. In particular, the studies on Koopman operator modes, Hankel projection, and routing components help justify the main modules of the method.
Weaknesses
- The mathematical notation needs to be improved. For example, Eq. 6 introduces and , but their relation to the diagonal estimator in Eq. 7 is not written clearly enough. More importantly, Eq. 7 appears problematic as written: if the products are interpreted as standard inner products, then becomes a scalar rather than a vector. Since , the authors should clarify that Eq. 7 is computed coordinate-wise or rewrite it using element-wise products.
- The method section would benefit from a more concise presentation. While the Koopman/Hankel formulation is interesting, the paper should more clearly explain why this formulation is necessary beyond standard update stabilization techniques.
- Although the paper provides sensitivity analysis, the method still relies on several design choices, such as the history window, rank selection, magnitude-control threshold, and routing coefficients. In practical test-time deployment, selecting these parameters may be non-trivial because no labeled validation data are available and the target distribution is unknown beforehand. This may limit the ease of deploying the method in real-world test-time adaptation scenarios.
Questions
I do not have major concerns about the core contribution. My remaining questions are mainly about notation, presentation, and practical deployment, as detailed in the Weaknesses section. In particular, it would be helpful if the authors could clarify the notation in Eq. 7, better explain why the Koopman/Hankel formulation is needed beyond standard update stabilization techniques, and discuss how the key design choices can be selected in real-world test-time deployment.
Limitations
yes
Final justification
My concerns have been adequately addressed; therefore, I will maintain my original score.
Formatting concerns
n/a.
3 comments
Response to Reviewer o7NT
Thank you for the thoughtful questions and constructive suggestions.
[W1] Clarifying the notation in Eqs. 6 and 7
The multiplication in Eq. 7 can be misread as an inner product. At step , define the current-basis coordinates as . We will rewrite Eq. 6 as
Eq. 7 then becomes scalar least-squares estimators:
Here is the -th entry of . Each uses the transitions of one coordinate, and collects the estimates.
[W2] Why Koopman/Hankel beyond standard update stabilizers?
Table 3 already compares clipping, norm control, EMA, and low-pass filtering. We further compare three history-based methods. Recent Mean [1] averages recent updates and is motivated by trajectory averaging. Recent PCA [2] projects the current update onto the static principal subspace of these updates and is motivated by low-rank gradient projection. Clip+Cosine applies norm clipping [3] followed by a cosine-consistency gate [4], which forms a simple controller for both magnitude and direction.
| VPT/ImageNet-A | VPT/ImageNet-R | TPT/ImageNet-A | TPT/ImageNet-R | |
|---|---|---|---|---|
| Base | 19.17 | 42.14 | 54.77 | 77.06 |
| Recent Mean | 18.54 | 42.83 | 53.98 | 78.87 |
| Recent PCA | 19.28 | 42.61 | 55.74 | 78.03 |
| Clip + Cosine | 19.15 | 42.56 | 54.69 | 77.90 |
| 38.98 | 46.47 | 56.73 | 79.98 |
The simple controllers provide only marginal and inconsistent improvements. For example, Clip+Cosine remains essentially unchanged from Base for VPT on ImageNet-A, whereas TPD improves accuracy by 19.81%. TPD also performs best in the other three settings. The norm and cosine gates rely on separate statistics, so they can attenuate large or misaligned updates but cannot model ordered transitions. TPD connects magnitude and direction control through a unified order-sensitive trajectory decomposition.
[1] Averaging Weights Leads to Wider Optima and Better Generalization. UAI 2018.
[2] GaLore: Memory-Efficient LLM Training by Gradient Low-Rank Projection. ICML 2024.
[3] On the Difficulty of Training Recurrent Neural Networks. ICML 2013.
[4] Gradient Surgery for Multi-Task Learning. NeurIPS 2020.
[W3] Selecting design choices for real-world test-time deployment
TPD has five fixed design choices: , , , , and . The history length is derived, and the effective rank is selected adaptively from the current singular spectrum as stated in Footnote 2.
We set to obtain two consecutive transitions while keeping the delay local. We set , giving seven transition pairs and [5], to balance estimation stability against locality.
For magnitude control, we set at the unit-circle boundary between non-expansive and expanding discrete-time DMD/Koopman modes [6]. We set to prevent update shutdown while allowing up to tenfold attenuation.
For direction routing, preserves persistent content, attenuates explained oscillation, and more strongly suppresses unexplained residual.
The sensitivity results across VPT and TPT on all datasets (Appendix D.3, Figures 5 to 10) show broad high-performing regions around these defaults. Performance remains stable under moderate variations and degrades mainly with overly long windows, large gain floors, or routing weights close to one.
For real-world deployment, we recommend using the same configuration unchanged. If deployment constraints differ, and can be selected according to update cadence and numerical stability, can reflect the minimum acceptable update fraction, and the routing weights can trade damping for responsiveness. These choices require no labels or domain identities.
[5] Ergodic Theory, Dynamic Mode Decomposition, and Computation of Spectral Properties of the Koopman Operator. SIAM Journal on Applied Dynamical Systems, 2017.
[6] Dynamic mode decomposition of numerical and experimental data. Journal of Fluid Mechanics, 2010.
Thank you for the rebuttal. My concerns have been adequately addressed; therefore, I will maintain my original score.
We sincerely appreciate your feedback and support for our work.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 2/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper addresses a key issue in Test-Time Prompt Tuning (TPT): the accumulation of noise and trajectory instability over continuous adaptation steps. Because TPT methods locally update and reuse prompts, biased gradients from unlabeled test data can easily cause the updates to spiral in magnitude or drift in direction.
To solve this, the authors introduce Test-Time Prompt-Agnostic Decomposition (TPD), which models the sequence of prompt updates as a dynamical system. TPD relies on two main mechanisms: Adaptive Koopman Control (AKC) to monitor and shrink unstable update magnitudes, and a Hankel Update Router (HUR) to filter out oscillatory noise while preserving persistent adaptation signals. The framework operates as a plug-and-play module directly on the base prompt updates. It demonstrates consistent accuracy improvements across 15 datasets and multiple visual and text TPT baselines without requiring changes to the underlying model or loss function.
Strengths and weaknesses
Strengths
- A Fresh Trajectory-Level Perspective: Treating prompt updates as a dynamical system using Hankel-DMD and Koopman operators is an insightful way to look at TTA. It captures the temporal dependencies of consecutive updates, which local optimization methods usually miss.
- Solid, Broad Empirical Gains: The method is backed by consistent accuracy improvements across 15 different datasets and multiple visual and text baselines. Seeing steady performance boosts of 3-8% for visual prompts and over 2% for text prompts shows that the concept works reliably under standard benchmark conditions.
- Modular and Model-Agnostic Design: Because TPD runs directly on the base prompt update vectors, it is highly versatile. Being able to seamlessly drop it into both ViT-based visual tuning and CLIP-based text tuning without changing the network backbones makes it an attractive tool for practitioners.
Weaknesses
1. Exploring the Calibration and Reliability Impact The baseline adaptation process relies significantly on entropy minimization, which naturally forces the model's predictions to become much sharper. In unsupervised settings where we do not have true labels, this can sometimes cause the model to make highly overconfident mistakes on challenging data. While TPD successfully stabilizes the mathematical trajectory of the updates, it would be incredibly valuable to show whether this accuracy boost impacts calibration.
Suggestion: Including a detailed ablation on standard calibration metrics (like Expected Calibration Error) would strengthen the submission. Specifically, since TPD is evaluated on top of calibration-focused text baselines like C-TPT and O-TPT, showing how TPD preserves or interacts with the calibration properties of those models would provide excellent reassurance regarding deployment safety.
2. Evaluation under Low Batch Sizes and Confidence Filtering The experiments for the ViT-based visual prompt tuning currently use a relatively large batch size of 128, selecting the top 10% most confident samples to calculate the adaptation loss. However, real-world online streaming pipelines often deal with much smaller, sequential batches. Suggestion: It would be very helpful to see an ablation study analyzing how TPD behaves under low batch sizes typical of streaming data. Gradients become inherently noisier when batches are small, and checking if the spectral radius triggers overly aggressive update shrinking would demonstrate the framework's robustness. Along with low batch sizes, exploring how the method responds to variations in the 10% confidence filtering threshold under these noisier streaming conditions would add great depth to the empirical section.
3. Providing Absolute Hardware Footprint Metrics TTA is incredibly useful for edge-deployment scenarios where computational resources are restricted. Since TPD involves setting up a delay-embedded Hankel matrix and computing a Singular Value Decomposition (SVD) at every adaptation step, there is a natural curiosity about its resource footprint. The relative wall-clock overhead provided is a helpful start, but absolute figures for peak memory usage (in MB) and step latency (in milliseconds) on standard hardware would make the practical utility of the method immediately clear to practitioners.
4. Assessing Long-Term Behavior under Continuous Non-Stationary Shifts The historical window used by TPD is kept intentionally short (), which keeps things light and fast. However, in environments that experience a very slow, continuous environmental drift, a short 10-step window might look at that slow drift and classify it as a "persistent" same-sign signal. HUR would then pass this through with full weight, which could slowly cause directional bias to pile up over long periods. Discussing or showing how the system behaves over an extended, continuously shifting stream would thoroughly demonstrate its long-term stability.
Minor Weaknesses
- Figure 2 Layout: The architectural diagram in Figure 2 is cleanly designed, but it would be completely self-explanatory if acronyms like AKC and HUR were explicitly spelled out either in the image itself or directly within the caption for effortless reading.
- Clarification on Initial Hyperparameters: The default settings of and work well across the board. To make the setup perfectly clear and address any concerns about potential data leakage, it would be wonderful if the authors could briefly state how these initial values were selected prior to running the main experiments, confirming that they were established without looking at the final test-set distributions.
- Missing Dataset Specifications in Analysis: In Section 4.4, the representative visualizations for the Koopman spectra, component ratios, and CKA matrices (Figures 3 and 4a-c) track metrics over thousands of test steps, indicating they are drawn from specific dataset trajectories. However, the authors fail to specify which dataset(s) were used to generate these figures. While Appendix D.4 expands on Figure 4(d) for all datasets, the exact data source for the remaining trajectory visualizations remains undocumented, which limits reproducibility.
Questions
Please see and address the specific points raised in the Weaknesses above. I am particularly interested in seeing the ablations regarding calibration metrics under entropy minimization, as well as the method's stability under low batch sizes typical of online streaming.
Limitations
Yes
Final justification
I thank the authors for a thorough rebuttal that resolved my concerns regarding calibration (ECE). However, I am maintaining my Borderline Accept score because the method's absolute performance at low batch sizes (e.g., ~12% at ) remains too low for practical edge deployment, leaving its headline stability functionally dependent on large batches like . Furthermore, my evaluation reflects the unpolished state of the initial submission, which lacked crucial dataset specifications in Section 4.4 and diagram clarity in Figure 2. While the dynamical-systems approach is novel, these practical deployment bottlenecks and presentation deficits prevent a full Accept.
Formatting concerns
No
5 comments
Response to Reviewer 8zpN (1/3)
Thank you for the detailed feedback and helpful experimental suggestions.
[W1] Calibration under entropy minimization
We report the Expected Calibration Error (ECE, ) [1] on ImageNet-A/R for VPT and TPT. We use Base for direct entropy-minimization updates to VPT/TPT prompts, and +TPD for controlling the same updates with TPD. C-TPT [2] and O-TPT [3] are CLIP-based text-prompt calibration methods, so their VPT entries are not applicable.
| Method | VPT/ImageNet-A | VPT/ImageNet-R | TPT/ImageNet-A | TPT/ImageNet-R |
|---|---|---|---|---|
| Base | 9.89 | 6.67 | 16.42 | 4.36 |
| Base + TPD | 7.54 | 4.29 | 12.27 | 1.62 |
| C-TPT | N/A | N/A | 8.16 | 1.54 |
| C-TPT + TPD | N/A | N/A | 7.31 | 1.68 |
| O-TPT | N/A | N/A | 7.22 | 1.46 |
| O-TPT + TPD | N/A | N/A | 6.93 | 1.37 |
TPD improves ECE in seven of eight comparisons. For example, for TPT on ImageNet-A, ECE decreases from 16.42% to 12.27%. It also improves three of four comparisons on C-TPT and O-TPT. The only exception is C-TPT on ImageNet-R, where ECE increases slightly from 1.54% to 1.68% while accuracy improves by 3.85%. Thus, TPD's accuracy gains generally do not sacrifice calibration and can complement dedicated calibration methods.
[1] Obtaining well calibrated probabilities using bayesian binning. AAAI 2015.
[2] C-TPT: Calibrated Test-Time Prompt Tuning for Vision-Language Models via Text Feature Dispersion. ICLR 2024.
[3] O-TPT: Orthogonality Constraints for Calibrating Test-time Prompt Tuning in Vision-Language Models. CVPR 2025.
[W2] Low batch sizes and confidence filtering
Following [4], we vary the incoming batch size and retained top-confidence fraction for VPT on ImageNet-A, selecting samples. Each setting requires an independent sequential run because it changes every later prompt state and TPD history. Relative to , the and streams require 128 and 32 times as many adaptation steps, respectively. Rounding makes all fractions identical at , and it also makes and identical at . Our evaluation code computes spectral instability during the full sequential run, so it cannot be recovered from saved final accuracy alone. Obtaining the missing values for and would therefore require complete reruns at these much larger step counts, which were computationally infeasible during rebuttal. We denote duplicate settings as “same” and unavailable entries as “N/A.” Each completed cell for reports Base accuracy / +TPD accuracy / TPD spectral instability (%), where Base denotes VPT. TPD spectral instability is measured as the percentage of test-time adaptation steps with an estimated spectral radius (), with lower values indicating more stable update dynamics.
| Batch | Conf. 10% | Conf. 25% | Conf. 50% | Conf. 100% |
|---|---|---|---|---|
| 1 | 1.14 / 12.82 / N/A | same | same | same |
| 4 | 21.09 / 22.13 / N/A | same | N/A | N/A |
| 8 | 26.21 / 25.29 / 19.93 | 15.27 / 19.96 / 20.27 | 10.27 / 15.04 / 12.94 | 8.79 / 9.25 / 11.64 |
| 16 | 24.31 / 27.98 / 19.38 | 20.15 / 23.82 / 16.72 | 17.73 / 21.62 / 10.66 | 10.48 / 16.65 / 10.21 |
| 32 | 22.56 / 29.45 / 14.05 | 22.41 / 27.08 / 11.41 | 21.39 / 26.17 / 9.59 | 17.57 / 22.08 / 14.46 |
| 64 | 19.99 / 32.33 / 10.59 | 24.84 / 30.07 / 9.21 | 24.36 / 29.25 / 11.11 | 21.13 / 27.61 / 20.36 |
| 128 | 19.17 / 38.98 / 8.84 | 26.22 / 32.49 / 9.97 | 25.99 / 31.68 / 16.25 | 16.35 / 24.79 / 29.03 |
At , spectral instability decreases monotonically from 19.93% at to 8.84% at , while TPD's accuracy gain increases from to 19.81%. This trend indicates that larger high-confidence sets provide more reliable local trajectory estimates. At , retaining additional lower-confidence samples increases instability and reduces accuracy, explaining why the default performs best. Overall, TPD improves 21 of 22 runs, including every unfiltered setting for . The isolated loss at and the low single-sample accuracy identify the remaining noisy-gradient regime.
[4] Test-Time Adaptation by Causal Trimming. NeurIPS 2025.
Response to Reviewer 8zpN (2/3)
[W3] Absolute hardware footprint
On a single NVIDIA H100 GPU, we measure GPU-event latency and per-process NVML peak memory after 20 warm-up and 200 synchronized steps. Base is the corresponding VPT/TPT adaptation step without TPD, and is the incremental latency or peak memory from enabling TPD.
| Setting | Update dim. | Latency ms (Base ) | Peak MiB (Base ) | History MiB | |
|---|---|---|---|---|---|
| VPT | tok5/depth12 | 46,080 | 367.340 + 3.955 | 14,464 + 266 | 3.516 |
| VPT | tok10/depth12 (main) | 92,160 | 370.008 + 3.827 | 14,880 + 282 | 7.031 |
| VPT | tok20/depth12 | 184,320 | 380.125 + 3.959 | 15,664 + 318 | 14.062 |
| TPT | ctx2 | 1,024 | 62.320 + 7.471 | 4,936 + 258 | 0.078 |
| TPT | ctx4 (main) | 2,048 | 65.380 + 5.255 | 4,936 + 258 | 0.156 |
| TPT | ctx8 | 4,096 | 64.904 + 1.824 | 4,936 + 258 | 0.312 |
| TPT | ctx16 | 8,192 | 62.442 + 3.110 | 4,936 + 258 | 0.625 |
History storage scales linearly with update dimension. At the main settings, it occupies only 7.031 MiB for VPT and 0.156 MiB for TPT, which is below 0.05% of total peak memory in both cases. Enabling TPD increases peak memory by 282 MiB for VPT and 258 MiB for TPT. Across the VPT settings, the peak increment grows from 266 MiB to 318 MiB as the update dimension increases. For TPT, the context-dependent storage remains small relative to the dominant CLIP adaptation footprint and transient SVD workspace, and its growth stays within the same allocator peak. Consequently, both the Base peak of 4,936 MiB and the TPD increment of 258 MiB remain unchanged across context lengths. The measured peak increments are therefore dominated by transient SVD workspace and allocator granularity rather than persistent history. The added latency never exceeds 7.471 ms per step.
[W4] Long-term behavior under continuous non-stationary drift
We construct a label-free 500-unit ImageNet-V2/Sketch stream. We use adaptation units rather than individual images as the common time axis. One VPT batch and one TPT episode each produce one base-update vector that is appended as one step in TPD's trajectory history. Thus, both protocols contain 500 TPD update steps, although VPT processes 16,000 images while TPT processes 500 episodes. During Up (units 1 to 200), the Sketch proportion increases linearly from 0 to 100%. During Down (units 201 to 400), it decreases to 0%. The V2 tail (units 401 to 500) contains only ImageNet-V2. One unit is a non-repeating batch of 32 for VPT, for which we report the mean over three seeds, and one episode for TPT, for which we use seed 0. Overall and ECE-15 cover the full stream, while the remaining columns report segment accuracy. No method receives domain or mixture information.
| Method | Overall | ECE-15 | Up | Down | V2 tail |
|---|---|---|---|---|---|
| VPT | 52.83 | 7.00 | 46.81 | 50.69 | 69.13 |
| VPT + TPD | 54.64 | 6.84 | 49.15 | 52.37 | 70.46 |
| TPT | 54.37 | 14.98 | 54.73 | 48.52 | 61.59 |
| TPT + TPD | 55.62 | 8.45 | 55.56 | 51.94 | 65.42 |
TPD improves accuracy in every stream segment for both VPT and TPT. For example, it improves TPT recovery accuracy by 3.83% and reduces ECE by 6.53%. Although HUR may pass gradual drift as persistent, AKC continues to regulate its magnitude. The gains during Down and the V2 tail provide evidence against irreversible accumulation over this stream. This finite evaluation does not guarantee stability under arbitrarily long or adversarial drift, which we will state as a limitation.
Response to Reviewer 8zpN (3/3)
[W5 (Minor 1)] Expanding AKC and HUR in Figure 2
AKC denotes Adaptive Koopman Control, and HUR denotes Hankel Update Router. We will spell out both terms in Figure 2 and its caption. We will also audit all in-figure text, acronyms, and annotations to ensure that every visual is self-contained.
[W6 (Minor 2)] How were the initial hyperparameters selected?
TPD has five fixed design choices: , , , , and . The history length is derived, while the effective rank is selected adaptively from the current singular spectrum. We fixed every default before the main target experiments using structural criteria rather than validation accuracy.
We set to obtain two consecutive transitions while keeping the delay local. We set , giving seven transition pairs and [6], to balance estimation stability against locality.
We set at the unit-circle boundary between non-expansive and expanding discrete-time modes [5], and to prevent update shutdown while allowing up to tenfold attenuation. For direction routing, preserves persistent content, attenuates explained oscillation, and more strongly suppresses unexplained residual.
The sensitivity results across VPT and TPT on all datasets (Appendix D.3, Figures 5 to 10) show broad high-performing regions around these defaults. Performance remains stable under moderate variations and degrades mainly with overly long windows, large gain floors, or routing weights close to one.
[5] Dynamic mode decomposition of numerical and experimental data. Journal of Fluid Mechanics, 2010.
[6] Ergodic Theory, Dynamic Mode Decomposition, and Computation of Spectral Properties of the Koopman Operator. SIAM Journal on Applied Dynamical Systems, 2017.
[W7 (Minor 3)] Dataset sources for Figures 3 and 4
Figure 3 and Figures 4(a), 4(b), and 4(c) use ImageNet-R. Figure 3 compares VPT with VPT+TPD, while Figures 4(a), 4(b), and 4(c) compare TPT with TPT+TPD. Figure 4(d) averages all 15 target datasets. We will identify the dataset or dataset collection used for every experimental result and visualization in the main text, tables, figures, and captions.
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 2/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper aims to stabilize the prompt update in test-time prompt tuning (TPT) . Unlike prompt tuning, test-time prompts are updated using unlabeled examples. Existing methods update lightweight prompt tokens using this test data, but these updates are defined locally at each step. The authors argue that such local update is incomplete because the updated prompts are used across later predictions and subsequent updates. A noisy or biased update can accumulate error over a period of time and destabilize the prompt trajectory. The paper identifies two main failure modes. First one is magnitude expansion, when updates become large, and directional drift or oscillation, where consecutive updates point in inconsistent directions. To address this, this paper proposed TPD, a test-time prompt-agnostic decomposition method, which helps to stabilize the prompt updates of existing test-time approaches. TPD treats the prompt update as a dynamical-system view. It constructs a Hankel-window representation, estimates a diagonal Koopman operator, and decomposes the update into magnitude and direction components. Based on theses components, TPD checks whether consecutive prompt updates are consistent with others in magnitude and direction, and update otherwise. TPD applies both prefix tokens both in ViT-based visual prompt tuning methods and CLIP-based text prompt tuning methods. TPD consistently improves many TPT baselines without modifying the backbone, prompt architecutre or objective function, making it as a plug-and-play module.
Strengths and weaknesses
Strengths
Motivation: The paper addresses a critical challenge in prompt tuning methods in test-time adaptation. Paper builds the motivation clearly from a trajectory view of prompt updates and shows that errors in early unbalanced updates and noise can affect later prompt states.
Decomposition View: The magnitude and direction decomposition view is useful in TPT setting. TPD shows that large update magnitudes can move prompts too far from useful regions while inconsistent or oscillatory directions hinders stability.
Modularity: TPD acts directly on the base update vector , therefore, it does not require any architectural modification, prompt design changes ot test-time objective. This makes the method potentially applicable across many visual text prompt tuning methods.
Experimental Setup: The method is evaluated broadly on several ViT-based visual prompt tuning and CLIP-based text prompt tuning methods. Also it covers reasonably extensive benchmarks, including domain generalization and cross-dataset transfer. The comparison with simple stabilization methods such as clipping, EMA, and norm control is helpful.
Results: TPD shows consistent gains both in visual prompt tuning and text prompt tuning across domain-varying datasets. The paper compares different aspects of the components, such as diagonal Koopman vs Full set Koopman, plain projection vs Hankel Projection, and routing choices in HUR, which support the internal design choices of TPD.
Hyperparameter Analysis: TPD provides comprehensive analysis on its choice of hyperparameters for delay length, Hankel columns, effective rank or spectral radius threshold (Available in appendix).
Theoretical Analysis: TPD provides some theoretical support including AKC’s non-amplification property and the controlled-update theorem formalize the intended boundedness of the transformed update. Additionally, the analysis figures such as Koopman spectra, component ratios, spectral-radius trajectories, CKA plots, and persistent-ratio analysis provide some evidence that TPD changes the update dynamics in the intended direction.
Weaknesses
Method: The motivation for viewing prompt update as a dynamical system view and using different components under this formulation is not well established. The mathematical framing seems overly complicated, whereas the practical mechanism may need simpler approaches. At its core, TPD behaves like a history-based update filter, reducing update magnitude when recent dynamics look unstable and suppressing non-persistent update components. Proposed Koopman/Hankel/DMD components look interesting in this setting, their necessity is not fully explained. While some ablation studies are helpful (Table 3), it is not clear how alternate methods are implemented. Have authors studies some simpler alternatives such as running average, adaptive EMA, PCA/SVD over recent updates, projection onto the recent mean direction, sign-consistency gating, Fourier filtering, or wavelet filtering.
*History of Updates: * TPD explicitly uses recent update history. This raises the question of how the ordering of test samples affect TPD. Paper should report robustness under shuffled test orders to ensure the components are sample agnostic. Additionally, TPD assumes recent history is informatiive, but not explicitly validated. This may fail under abrupt distribution changes, rapidly alternating domains, or highly nonstationary test streams. While authors mention it as a limitation, but it requires a stronger empirical analysis on this aspect.
Prompt Agnostic Definition: The “prompt-agnostic” claim needs qualification because TPD operates on prompt-update vectors (prefix tokens for VPT and CLIP models), but it still depends on having a meaningful sequence of prompt updates. This may not equally applicable to setting with episodic methods, single-sample adaptation or any methods with sparse update histories.
Text Prompt Tuning: In the episodinc mode prompts are typically reset after each episode. TPD argues that cross step updates are used only for trajectory analysis while prompts are reset after each episode. This confuses that if prompt state is reset, what is stablized in dynamical trajectory across episodes?
Interpretaion: The interpretation of “persistent,” “oscillatory,” and “residual” components seems overly stated and strong. Paper defines peristence through same-sign continuation under the digonal Koopman model, but TPD doesn't provide any validation that this provides a semantically useful adaptation direction. Additionally, oscillatory or residual components may sometimes contain useful corrective information, especially under nonstationary test streams. TPD doesn't have any experiments to show that the useful information in such components are negligible.
Results: The gains from visual prompting approaches are weaker than the zero-shot baseline, but gains obtained with TPD are reasonably large (Table 1). This may confuse the claimed role of TPT as a prompt stabilizer, whether TPD is improving a strong TPT method or mainly preventing harmful unstable adaptation from weak baselines. The paper should more clearly compare against the no-adaptation backbone and explain when TPT+TPD is actually better than not adapting at all. Additionally, TPDmay be less useful when the base TPT method is already stable. The paper shows consistent improvements but lack in details whether TPD’s gains correlate with initial instability metrics such as spectral radius, persistent ratio, or update norm variance.
Visualization: The figures in the main content are compress too many details making it difficult to interprest. For example, Figure 1 compresses several concepts—accuracy, spectral radius, direction distance, persistent ratio.
Questions
-
Why is Hankel delay embedding necessary instead of a running average, adaptive EMA, PCA/SVD over recent updates, or projection onto the recent mean update direction?
- Can the authors compare HUR with Fourier or wavelet-based update filtering?
-
Why is the diagonal Koopman approximation appropriate? Can the authors provide more evidence that this approximation captures useful prompt-update dynamics?
-
How does TPD operate in episodic CLIP TPT?
-
How does TPD behave under abrupt domain changes or mixed-domain streams?
-
Can the authors compare TPD against stronger adaptive trust-region or step-size controllers?
- AKC should be compared with running-norm controllers, variance-aware scaling, cosine-consistency scaling, and adaptive clipping.
-
Are the large visual-prompt gains mainly due to improving adaptation or preventing harmful adaptation?
- Please compare TPT+TPD directly against the frozen no-adaptation backbone across datasets.
-
Can the authors report confidence intervals, seed variance, or test-order variance?
- Test-time adaptation can be sensitive to sample order, augmentation randomness, and optimizer details.
-
How does the runtime and memory overhead scale with prompt dimension and prompt depth?
Limitations
No. The paper includes a limitation stating that TPD may be less effective when recent update history is sparse or highly nonstationary. This is useful, but incomplete. The limitations section should also discuss:
- dependence on test-sample order;
- ambiguity in episodic reset settings;
- limited theoretical guarantees beyond update non-amplification;
- possible suppression of useful oscillatory or residual signals;
- dependence on meaningful recent update history;
- comparison with simpler temporal and frequency-domain filters;
Final justification
The new evaluations on non-stationary test streams directly resolve my concerns regarding sample ordering and distribution drift. Additionally, the detailed responses across all reviewers, including comparisons against simpler history-based heuristics, label-free hyperparameter design choices, and detailed deployment benchmarks, thoroughly validate the necessity and stability of the framework. Because my main concerns and those raised across the broader review panel have been convincingly addressed
Formatting concerns
N/A
6 comments
Response to Reviewer wdFC (1/4)
Thank you for the careful review and comprehensive suggestions.
[W1/Q1] Necessity beyond simpler history-based and frequency-domain filters
Table 3 already compares clipping, norm control, EMA, and low-pass filtering. We further compare five history-based methods. Recent Mean [1] averages recent updates and is motivated by trajectory averaging. Recent PCA [2] projects the current update onto the static principal subspace of these updates and is motivated by low-rank gradient projection. Clip+Cosine applies norm clipping [3] followed by a cosine-consistency gate [4], which forms a simple controller for both magnitude and direction. Fourier [5] and Wavelet [6] filter each coordinate's temporal history in fixed frequency or multiscale bases before reconstruction.
| Method | VPT/ImageNet-A | VPT/ImageNet-R | TPT/ImageNet-A | TPT/ImageNet-R |
|---|---|---|---|---|
| Base | 19.17 | 42.14 | 54.77 | 77.06 |
| Recent Mean | 18.54 | 42.83 | 53.98 | 78.87 |
| Recent PCA | 19.28 | 42.61 | 55.74 | 78.03 |
| Clip+Cosine | 19.15 | 42.56 | 54.69 | 77.90 |
| Fourier | 22.67 | 43.83 | 55.32 | 78.15 |
| Wavelet | 24.79 | 45.72 | 55.98 | 77.84 |
| HUR | 26.25 | 49.21 | 56.77 | 79.05 |
The results show that frequency filtering is useful because Fourier and Wavelet improve over Base in several settings. HUR outperforms every alternative in all four settings. The difference is that these alternatives apply fixed summaries or filters, whereas HUR fits the ordered local trajectory and routes persistent, oscillatory, and residual directions in its Hankel subspace.
[1] Averaging Weights Leads to Wider Optima and Better Generalization. UAI 2018.
[2] GaLore: Memory-Efficient LLM Training by Gradient Low-Rank Projection. ICML 2024.
[3] On the Difficulty of Training Recurrent Neural Networks. ICML 2013.
[4] Gradient Surgery for Multi-Task Learning. NeurIPS 2020.
[5] Doppler: Differentially private optimizers with low-pass filter for privacy noise reduction. NeurIPS 2024.
[6] T-WaveNet: A Tree-Structured Wavelet Neural Network for Time Series Signal Analysis. ICLR 2022.
[W2] Dependence on test order and rapidly changing streams
| Stream | Actual sequence | Samples | Main stress |
|---|---|---|---|
| Abrupt | 15,000 | Sudden shift and return-domain recovery | |
| Mixed | 20,000 | No domain boundary; a batch may mix domains | |
| Rapid Alternation | 20,000 | Domain changes after every adaptation update |
Let denote ImageNet-V2 and denote ImageNet-Sketch. For each stream, Base and TPD use the same five predefined test orders. For Abrupt, the orders vary the samples within each segment, the split of between the two segments, and the 5,000-sample subset. For Mixed, they vary the global shuffle and the 10,000-sample subset. For Rapid Alternation, they vary the order within each domain and the 10,000-sample subset.
| Stream | Overall Base TPD | V2 Base TPD | Sketch Base TPD | First-10 Base TPD |
|---|---|---|---|---|
| Abrupt | ||||
| Mixed | N/A | |||
| Rapid Alternation |
Overall accuracy is reported as the mean and order-std, while V2 and Sketch accuracies are the corresponding means. First-10 measures the first ten batches after a domain switch and is undefined for Mixed. TPD improves overall accuracy in all three streams and lowers every order std. Under Rapid Alternation, it improves overall accuracy by 4.44% and First-10 accuracy by 4.27%, indicating that short history does not inevitably cause cross-domain contamination. We will clarify these protocol details and note that finite two-domain streams do not cover arbitrary adversarial order.
Response to Reviewer wdFC (2/4)
[W3] Scope of the prompt-agnostic claim
“Prompt-agnostic” describes the interface of TPD. It accepts a flattened base update vector and is independent of prompt type, architecture, optimizer, and adaptation loss. For example, we apply the same TPD interface to visual prompt methods and text prompt methods. The term does not mean history-free. TPD still requires a meaningful update sequence, uses the uncontrolled Base update until vectors are available, and provides no trajectory control for one isolated update. We will qualify this scope explicitly.
[W4/Q3] What is stabilized in episodic CLIP TPT?
In episodic TPT, TPD stabilizes realized base updates rather than a continuously preserved prompt state. At episode , the base method first initializes its prompt and optimizer under the usual reset protocol. The current image and augmentations then produce base update . TPD appends to its short controller history and returns a controlled update, which is used for the current prediction before the model state is reset. Only the update-history statistics persist across episodes. TPD neither reads nor changes the prompt or optimizer reset. If the controller history were also reset after every episode, it would never complete the -update warm-up and would reduce to Base. We will state this distinction between model state and controller state explicitly in the method and protocol.
[W5] Interpretation of persistent, oscillatory, and residual components
We agree that same sign continuation alone would not establish task level semantic correctness. However, persistence in Eq. 9 is not defined from sign alone. The Hankel embeddings first represent the recent prompt update trajectory in a local subspace. In each projected coordinate, the diagonal Koopman model predicts . The persistence weight then combines two conditions: measures how well the fitted local dynamics explain the current coordinate, while measures same sign continuation rather than reversal. A coordinate therefore contributes strongly to only when it is both locally explained and predicted to continue without reversal. After mapping back through , the persistent component has a precise dynamical meaning as the part of the current update that is consistent with a locally predictable continuation of the recent trajectory.
This definition establishes local trajectory consistency, not semantic correctness. Lines 164 and 165 of the paper already state that persistent denotes a locally explained same sign component rather than an assumed task level semantic signal. Oscillatory similarly denotes an explained component with local sign reversal, while residual denotes content not explained by the retained local subspace and dynamics. Since either component may still contain corrective information, HUR applies soft routing and retains them. To test this behavior when the local dynamics change, we further evaluate TPD on the nonstationary streams defined in W2:
| Backbone | Stream | Persistent (%) | Oscillatory (%) | Residual (%) | Base TPD Acc. (%) |
|---|---|---|---|---|---|
| VPT | Abrupt | 17.54 | 0.71 | 81.75 | |
| VPT | Mixed | 12.83 | 0.48 | 86.69 | |
| VPT | Rapid Alternation | 5.09 | 1.26 | 93.65 | |
| TPT | Abrupt | 3.30 | 0.45 | 96.25 | |
| TPT | Mixed | 3.16 | 0.44 | 96.40 | |
| TPT | Rapid Alternation | 3.19 | 0.46 | 96.35 |
The component ratios measure local trajectory predictability, not semantic utility. As the VPT streams become less locally coherent, persistence decreases and the residual ratio increases, yet TPD improves every setting, with its largest gain under Rapid Alternation. TPT is similarly residual dominated and improves consistently. Thus, TPD does not assume that residual information is negligible. Its nonzero routing weights preserve possible corrections while conservatively attenuating less predictable updates.
Figure 4(d) relates the persistent ratio to subsequent accuracy gain, and Table 4 shows that the full routing rule outperforms its ablations. Together with the nonstationary results above, this evidence supports trajectory based soft routing without assuming semantic correctness or that any component is useless. We will revise the surrounding descriptions to make this scope explicit.
Response to Reviewer wdFC (3/4)
[W6] Improvement versus prevention of harmful adaptation
Tables 1 and 2 directly compare TPD with the Frozen backbone. On DG, VPT improves from 39.66% to 47.84% after adding TPD, surpassing Frozen ViT at 46.17%. On CSD, TPD raises all visual prompt variants to approach or exceed Frozen. Native CLIP TTA methods also improve consistently, showing that TPD is not limited to rescuing harmful visual adaptation. Figures 1(c) and 4(d) provide diagnostic correlations between trajectory stability and performance rather than causal evidence.
[W7] Visualization clarity
We agree that Figure 1 is information-dense. We will separate accuracy from stability diagnostics, enlarge labels and legends, and define spectral radius, direction distance, and persistent ratio directly in the caption.
[Q2] Evidence for the diagonal Koopman approximation
The diagonal operator is a low-variance local approximation, not a claim that prompt dynamics are globally diagonal. The SVD basis first captures the correlated update subspace, after which the diagonal operator estimates one coefficient per coordinate. At , a full operator contains 64 coefficients but only seven transition pairs are available, making the full fit rank-deficient. Table 4 empirically supports the diagonal approximation. For example, it improves VPT accuracy on DG from 43.58% to 45.92%, with the same trend on VPT CSD and both TPT settings. The diagonal form is therefore better matched to the short local window.
[Q4] Abrupt changes and mixed-domain streams
Please refer to W2, which reports abrupt, mixed, and rapid alternation streams together with immediate post-switch results and order variance.
[Q5] Strong adaptive trust-region and step-size controllers
Table 3 and W1 cover running-norm and cosine-consistency controls. We additionally test two label-free magnitude controllers on the same base updates and evaluation streams. Adaptive Clipping [7] applies an AGC-style adaptive magnitude cap. Variance-aware Scaling [8] maps the running variance of recent update norms to a multiplicative gain. Both methods adapt step magnitude from one statistic without modeling ordered directional persistence.
| Controller | VPT/ImageNet-A | VPT/ImageNet-R | TPT/ImageNet-A | TPT/ImageNet-R |
|---|---|---|---|---|
| Base | 19.17 | 42.14 | 54.77 | 77.06 |
| Adaptive clipping | 23.52 | 41.92 | 54.85 | 77.31 |
| Variance-aware scaling | 22.76 | 43.65 | 55.19 | 77.26 |
| TPD | 38.98 | 46.47 | 56.73 | 79.98 |
Adaptive Clipping provides its clearest gain for VPT on ImageNet-A but is neutral or slightly harmful elsewhere. Variance-aware Scaling is more consistent, although its gains remain modest. TPD performs best in all four settings and, for example, exceeds Adaptive Clipping by 15.46% for VPT on ImageNet-A. The alternatives react only to current scale or norm variance, whereas TPD estimates ordered transitions and coordinates magnitude control with directional routing. We will add the implementations, shared protocol, and results.
[7] High-Performance Large-Scale Image Recognition Without Normalization. ICML 2021.
[8] AdaScale SGD: A User-Friendly Algorithm for Distributed Training. ICML 2020.
[Q6] Direct comparison with the frozen backbone
Please refer to W6, which compares Frozen, visual Base with and without TPD, and native CLIP TTA methods on both DG and CSD.
[Q7] Seed and test-order variance
| Controller | VPT/ImageNet-A | VPT/ImageNet-R | TPT/ImageNet-A | TPT/ImageNet-R |
|---|---|---|---|---|
| Base | ||||
| TPD |
Across random seeds (4827, 7316, 9054), TPD improves all four means and lowers the seed std in three of four settings; the remaining TPT result on ImageNet-A has a comparable std. W2 reports test-order variance over five predefined test orders. We do not treat trajectory windows as independent replications.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Response to Area Chair WVo6
We sincerely thank you for summarizing the reviewer feedback and providing the initial meta-review.
1. Necessity and interpretation
We added comparisons with simple history-based methods, including static subspace projection, magnitude and direction heuristics, and frequency-domain filters, as detailed in Reviewer wdFC [W1/Q1] and Reviewer o7NT [W2/Q2]. We also clarified that persistence represents local trajectory predictability instead of semantic correctness; see Reviewer wdFC [W5].
2. Robustness to realistic test streams
We added abrupt, mixed-domain, and rapid-alternation streams across five predefined test orders; details on these protocols are provided in our response to Reviewer wdFC [W2, Q4]. Different batch sizes and confidence-filtering fractions are evaluated in Reviewer 8zpN [W2]. The continuous drift and recovery experiment is reported in Reviewer 8zpN [W4].
3. Practical deployment and evaluation
We provided label-free design rationales for all fixed choices and clarified the adaptive effective-rank selection, as explained in Reviewer o7NT [W3/Q3] and Reviewer 8zpN [W6]. We also reported variation across seeds and test orders (Reviewer wdFC [Q7]), ECE under entropy minimization (Reviewer 8zpN [W1]), and absolute latency and memory usage (Reviewer 8zpN [W3]; Reviewer wdFC [Q8]).
We are grateful for the positive assessment. We hope these additions and clarifications fully resolve these concerns.