NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Visual Prompt-Agnostic Evolution

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

Abstract

Visual Prompt Tuning (VPT) adapts a frozen Vision Transformer (ViT) to downstream tasks by inserting a small number of learnable prompt tokens into the token sequence at each layer. However, we observe that existing VPT variants often suffer from unstable training dynamics, characterized by gradient oscillations. A layer-wise analysis reveals that shallow-layer prompts tend to stagnate early, while deeper-layer prompts exhibit high-variance oscillations, leading to cross-layer mismatch. These issues slow convergence and degrade final performance. To address these challenges, we propose Prompt-Agnostic Evolution (PAE), which strengthens vision prompt tuning by explicitly modeling prompt dynamics. From a frequency-domain perspective, we initialize prompts in a task-aware direction by uncovering and propagating frequency shortcut patterns that the backbone inherently exploits for recognition. To ensure coherent evolution across layers, we employ a shared Koopman operator that imposes a global linear transformation instead of uncoordinated, layer-specific updates. Finally, inspired by Lyapunov stability theory, we introduce a regularizer that constrains error amplification during evolution. Extensive experiments show that PAE accelerates convergence with an average 1.41x speedup and improves accuracy by 1-3% on 25 datasets across multiple downstream tasks. Beyond performance, PAE is prompt-agnostic and lightweight, and it integrates seamlessly with diverse VPT variants without backbone modification or inference-time changes.

TL;DR

Visual Prompt-Agnostic Evolution (PAE) stabilizes and accelerates Visual Prompt Tuning (VPT) by initializing prompts via frequency-domain shortcuts and coordinating their evolution across layers using dynamical systems theory. This plug-and-play framework boosts accuracy by 1-3% and speeds up convergence by 1.41x with zero inference overhead.

Introduction: The Stability Challenge in VPT

Adapting large-scale pre-trained Vision Transformers (ViTs) to downstream tasks is computationally demanding. Visual Prompt Tuning (VPT) offers a parameter-efficient alternative by freezing the backbone and training only a few "prompt" tokens inserted at each layer.

Despite its efficiency, VPT faces significant training instability. Gradients backpropagating through numerous frozen layers often vanish before reaching shallow prompts, causing them to stagnate near random initialization. Conversely, deep-layer prompts exhibit high-variance gradient oscillations as they attempt to compensate for the lack of informative signals from earlier layers. This cross-layer mismatch results in slow convergence and suboptimal final performance. Furthermore, standard task-agnostic initialization forces the model to spend initial training epochs merely finding a viable learning direction.

Proposed Method: Prompt-Agnostic Evolution (PAE)

The PAE framework addresses these issues by treating layer-wise prompt tuning as a discrete dynamical system. It introduces two core components to stabilize and coordinate prompt updates.

1. Modal Pre-Alignment (MPA) for Initialization

Instead of random initialization, PAE identifies "frequency shortcuts"—spectral patterns the pre-trained backbone naturally utilizes for the target task. By performing a lightweight search in the frequency domain via Fourier transforms, PAE encodes these shortcuts into the initial prompts. This provides a task-aware starting point, significantly reducing the warm-up phase.

2. Koopman-Lyapunov Dynamics (KLD) for Optimization

To resolve the lack of coordination between layers, KLD projects prompts into a shared latent space. A global Koopman operator is then employed to govern the evolution of prompts across layers, enforcing a smooth, linear transformation. To ensure stability and prevent error accumulation, a Lyapunov-style regularizer is introduced, penalizing trajectory instability throughout the network.

The PAE framework: (a) modeling prompts as a Koopman-Lyapunov discrete dynamical system, and (b) the two-phase process for discovering frequency shortcuts and initializing prompts.

Experimental Evaluation

The authors evaluated PAE across 25 datasets, including the VTAB-1k benchmark (19 tasks) and 5 Fine-Grained Visual Classification (FGVC) datasets, as well as semantic segmentation on ADE20K.

Key Results

  • Performance Gains: Integrating PAE into existing VPT variants (e.g., E2VPT, VFPT, SA2VP) yielded an average 1.41x speedup in convergence and a 1-3% accuracy improvement.
  • Gradient Stability: Analysis of gradient dynamics confirms that PAE mitigates the shallow-layer stagnation and deep-layer oscillation observed in standard VPT.
  • Zero Inference Overhead: Since PAE only modifies the training and initialization phases, it adds no computational cost during inference.
Empirical analysis of PAE: (a) accuracy and convergence speed, (b) layer-mean gradients, and (c) shallow vs. deep gradient dynamics.

Discussion and Insights

  • Coordinated Evolution: The shift from independent layer-wise tuning to a coordinated dynamical system is central to PAE's success. By forcing prompts to follow a predictable trajectory, the model avoids the "layer-specific hacks" common in standard tuning.
  • Frequency-Domain Awareness: Leveraging frequency shortcuts allows the model to exploit the backbone's inherent recognition patterns from the start of training.
  • Robustness on Hard Classes: PAE shows the most significant improvements on classes with high intra-class variance, where standard VPT often fails to capture complex representational nuances.

Conclusion

Prompt-Agnostic Evolution (PAE) provides a robust, plug-and-play solution to the instability of Visual Prompt Tuning. By combining frequency-domain initialization with dynamical systems theory, PAE achieves superior accuracy and faster convergence across a wide range of tasks without increasing inference latency.

Summary updated

BibTeX
@inproceedings{wang2026visual,
  author = {Junze Wang and Lei Fan and Dezheng Zhang and Weipeng Jing and Donglin Di and Yang Song and Sidong Liu and Cong Cong},
  title = {{Visual Prompt-Agnostic Evolution}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=3vmDyYC9Tn},
}
Figure