[Paper Review] CODA-Prompt: COntinual Decomposed Attention-based Prompting for Rehearsal-Free Continual Learning
CODA-Prompt introduces an end-to-end, decomposed attention-based prompting method for rehearsal-free continual learning that enhances model plasticity and scalability by learning prompt components assembled via input-conditioned attention weights. It achieves state-of-the-art performance, outperforming DualPrompt by up to 4.5% in average accuracy on standard benchmarks and 4.4% on a dual-shift benchmark with both class- and domain-incremental shifts.
Computer vision models suffer from a phenomenon known as catastrophic forgetting when learning novel concepts from continuously shifting training data. Typical solutions for this continual learning problem require extensive rehearsal of previously seen data, which increases memory costs and may violate data privacy. Recently, the emergence of large-scale pre-trained vision transformer models has enabled prompting approaches as an alternative to data-rehearsal. These approaches rely on a key-query mechanism to generate prompts and have been found to be highly resistant to catastrophic forgetting in the well-established rehearsal-free continual learning setting. However, the key mechanism of these methods is not trained end-to-end with the task sequence. Our experiments show that this leads to a reduction in their plasticity, hence sacrificing new task accuracy, and inability to benefit from expanded parameter capacity. We instead propose to learn a set of prompt components which are assembled with input-conditioned weights to produce input-conditioned prompts, resulting in a novel attention-based end-to-end key-query scheme. Our experiments show that we outperform the current SOTA method DualPrompt on established benchmarks by as much as 4.5% in average final accuracy. We also outperform the state of art by as much as 4.4% accuracy on a continual learning benchmark which contains both class-incremental and domain-incremental task shifts, corresponding to many practical settings. Our code is available at https://github.com/GT-RIPL/CODA-Prompt
Motivation & Objective
- Address catastrophic forgetting in continual learning without data rehearsal, especially in privacy-sensitive or large-scale deployment scenarios.
- Overcome the plasticity-elasticity trade-off in existing prompt-based methods that lack end-to-end optimization and cannot scale prompting capacity effectively.
- Enable scalable, parameter-efficient continual learning by introducing a decomposed prompt mechanism that expands capacity through prompt components rather than prompt pool size.
- Improve generalization to real-world distribution shifts, including both semantic (class-incremental) and covariate (domain-incremental) shifts.
- Achieve state-of-the-art performance in rehearsal-free continual learning while maintaining end-to-end differentiability and avoiding gradient vanishing in prompt selection.
Proposed method
- Replace the fixed prompt pool in prior methods with a set of learnable prompt components that are dynamically combined via attention-based, input-conditioned weights.
- Introduce a novel attention-based component-weighting mechanism that enables end-to-end backpropagation through the entire prompting pipeline, unlike prior key-query methods that require separate optimization for keys.
- Decompose the prompt into a weighted sum of components, where the weights are computed via a learnable query mechanism applied to the input embedding, enabling dynamic, context-aware prompt generation.
- Apply orthogonality regularization to the prompt components to improve stability and reduce forgetting during continual learning.
- Freeze previously learned prompt components during subsequent task training to preserve knowledge while allowing new components to be learned for new tasks.
- Optimize the entire model, including prompt components and attention weights, end-to-end using standard backpropagation, enabling full gradient flow and improved plasticity.
Experimental results
Research questions
- RQ1Can an end-to-end trainable, decomposed prompting mechanism improve plasticity and performance in rehearsal-free continual learning compared to non-differentiable key-query selection?
- RQ2Does expanding prompting capacity through the number of prompt components, rather than the size of a fixed prompt pool, lead to better scalability and performance gains?
- RQ3How does the proposed method perform under dual-shift scenarios involving both class-incremental and domain-incremental distribution shifts?
- RQ4To what extent does the absence of data rehearsal and the use of end-to-end optimization affect forgetting and final accuracy?
- RQ5Can the method maintain high performance under equivalent parameter counts while still scaling with increased capacity?
Key findings
- CODA-Prompt achieves a new state-of-the-art average accuracy of 71.35% on the 10-task ImageNet-R benchmark with domain shifts, outperforming DualPrompt by 4.4%.
- On standard class-incremental benchmarks, CODA-Prompt improves average accuracy by up to 4.5% over the SOTA method DualPrompt.
- Abllation studies show that removing attention keys reduces average accuracy by 0.93%, while removing freezing or orthogonality regularization causes drops of 0.85% and 4.79%, respectively, confirming their critical role.
- CODA-Prompt maintains high performance even when prompt length is fixed, demonstrating that performance gains come from increasing the number of components, not prompt length, which saturates quickly.
- The method scales effectively with increased component count, approaching the upper bound performance more closely than DualPrompt or L2P, which plateau or degrade with larger prompt pools.
- In the 5-task ImageNet-R setting, CODA-P with 10 components (equal to DualPrompt’s prompt pool size) already exceeds DualPrompt’s performance, and further increases in components yield significant gains, confirming scalability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.