# Test-Time Prompt-Agnostic Decomposition

*Junze Wang, Lei Fan, Dezheng Zhang, Donglin Di, Yang Song, Sidong Liu, Cong Cong*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/151200) · [OpenReview](https://openreview.net/forum?id=cDRO2AY7N6) · [Open on the map](../papers.html#p151200)

Category: [Graphs, OOD Detection & Medical Imaging](../pcat/7.md) › [Test-Time Adaptation and Robustness](../pgroup/23.md) · Type: new method · Keywords: test-time prompt tuning, prompt update stability, dynamical systems analysis, magnitude control, direction decomposition

Areas: [Continual Learning & Adaptation](../areas/continual-adaptation.md) › Long-Tailed Incremental Recognition › Test-Time Adaptation

## Summary
Test-Time Prompt-Agnostic Decomposition (TPD) stabilizes prompt updates in test-time adaptation by decomposing update trajectories into magnitude and direction components and applying control mechanisms.

## Explained to a 5-year-old
When a computer model sees new things at test time, it can get confused if it changes its memory too much. The paper looks at how the model changes its memory and finds that sometimes it moves too far or jumps in different directions. It then splits the changes into two parts: how big they are and which way they go. It makes the big changes smaller and keeps the steady parts while ignoring the wobbly ones. This helps the model stay stable and learn new things better.

## Explained to a 5-year-old, longer
When a computer model is trained to do a job, it can also learn new things when it sees new data at test time. One way to do this is by using small pieces of text called prompts that the model can change. If the model changes its prompts too much or in different directions, it can become unstable and make mistakes. The paper studies how these changes happen over time, looking at them like a dance. It finds that sometimes the changes get bigger and sometimes they wiggle back and forth. To help, the paper splits each change into two parts: how large it is and which direction it points. It then makes the large changes smaller when they are getting too big. It also keeps the steady parts of the direction and removes the wobbly parts. This makes the overall change smoother and more reliable. The new method can be added to many existing prompt-tuning techniques without changing them. In experiments, the method improves accuracy on many different tasks, especially for visual and text prompts. Overall, it helps computer models adapt to new situations more reliably.

## For a technical reader
The paper identifies that test-time prompt tuning can become unstable because noisy unlabeled objectives accumulate across adaptation steps, causing prompt updates to drift or expand excessively. It proposes a dynamical-systems analysis that decomposes each update into magnitude and direction components, measuring expansion with a spectral radius and separating persistent, oscillatory, and residual direction parts. Based on this decomposition, two plug-and-play controllers are introduced: a magnitude regulator that shrinks updates under expansive dynamics and a direction router that preserves persistent components while suppressing oscillatory and residual parts. These controllers, called Adaptive Koopman Control and Hankel Update Router, can be inserted into any existing prompt-tuning framework without modifying the backbone or loss. Evaluated on 15 datasets, the method consistently improves ten baseline adapters, delivering 3-8% gains for visual prompts and over 2% for text prompts.

## Problem
Adapting large pretrained models to new test distributions using lightweight prompt tokens can become unstable as noisy unlabeled objectives accumulate across steps, leading to prompt updates that diverge or oscillate.

## Method
The approach analyzes prompt-update trajectories from a dynamical-systems perspective, decomposing updates into magnitude and directional components. It then regulates magnitude by shrinking updates under expansive dynamics and refines direction by preserving persistent components while suppressing oscillatory and residual parts. These controls are applied as plug-and-play modules to existing prompt tuning frameworks.

## Results
The approach yields accuracy improvements of 3-8% on visual prompts and over 2% on text prompts across 15 datasets, consistently outperforming 10 baseline methods.

## Contributions
It provides a dynamical-systems analysis of prompt-update instability and introduces magnitude-control and direction-refinement mechanisms that can be integrated into any test-time prompt tuning method. The framework is plug-and-play and demonstrates robust gains on diverse datasets.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/151200)
