[Paper Review] DualPrompt: Complementary Prompting for Rehearsal-free Continual Learning
DualPrompt proposes a rehearsal-free continual learning framework that uses two complementary prompt types—G-Prompt for task-invariant knowledge and E-Prompt for task-specific knowledge—attached to a frozen pre-trained backbone. By decoupling general and specific knowledge via learnable prompts, it achieves state-of-the-art performance on class-incremental benchmarks with minimal additional parameters, outperforming methods requiring large rehearsal buffers.
Continual learning aims to enable a single model to learn a sequence of tasks without catastrophic forgetting. Top-performing methods usually require a rehearsal buffer to store past pristine examples for experience replay, which, however, limits their practical value due to privacy and memory constraints. In this work, we present a simple yet effective framework, DualPrompt, which learns a tiny set of parameters, called prompts, to properly instruct a pre-trained model to learn tasks arriving sequentially without buffering past examples. DualPrompt presents a novel approach to attach complementary prompts to the pre-trained backbone, and then formulates the objective as learning task-invariant and task-specific "instructions". With extensive experimental validation, DualPrompt consistently sets state-of-the-art performance under the challenging class-incremental setting. In particular, DualPrompt outperforms recent advanced continual learning methods with relatively large buffer sizes. We also introduce a more challenging benchmark, Split ImageNet-R, to help generalize rehearsal-free continual learning research. Source code is available at https://github.com/google-research/l2p.
Motivation & Objective
- To address catastrophic forgetting in continual learning without relying on rehearsal buffers due to privacy and memory constraints.
- To develop a memory-efficient, rehearsal-free method that maintains high performance in the challenging class-incremental setting with unknown task identities at test time.
- To explicitly decouple task-invariant and task-specific knowledge using learnable prompts, inspired by the Complementary Learning Systems theory.
- To introduce a new benchmark, Split ImageNet-R, to better evaluate rehearsal-free continual learning methods under realistic conditions.
- To demonstrate that prompt-based knowledge encoding can surpass traditional rehearsal-based methods in performance while using far fewer parameters.
Proposed method
- DualPrompt introduces two distinct prompt spaces: G-Prompt (general) for shared, transferable knowledge and E-Prompt (expert) for task-specific knowledge, both attached to the pre-trained model.
- The method formulates the learning objective as optimizing both G-Prompt and E-Prompt to minimize forgetting while maximizing task-specific accuracy.
- Prompts are implemented as learnable embedding vectors inserted at specific layers of the transformer backbone, with configurable start and end positions for each prompt type.
- The prompting function uses prefix-tuning (Pre-T) rather than prompt-tuning (Pro-T), which maintains sequence length and improves scalability across multiple layers.
- DualPrompt employs multi-layered prompt application, allowing both G-Prompt and E-Prompt to be injected at multiple transformer layers to enhance representational capacity.
- The framework is trained end-to-end with a standard cross-entropy loss, where the classification head is fine-tuned while the backbone remains frozen.
Experimental results
Research questions
- RQ1Can a rehearsal-free continual learning method achieve state-of-the-art performance by explicitly separating task-invariant and task-specific knowledge?
- RQ2How does the design of complementary prompts (G-Prompt and E-Prompt) compare to single-pool prompting (e.g., L2P) in mitigating catastrophic forgetting?
- RQ3What is the impact of multi-layered prompt injection on performance and generalization in continual learning?
- RQ4How does the choice of prompting function (Pro-T vs. Pre-T) affect scalability and performance in multi-layer settings?
- RQ5Can a new benchmark like Split ImageNet-R better evaluate the robustness and generalization of rehearsal-free continual learning methods?
Key findings
- DualPrompt achieves 68.13% average accuracy on Split ImageNet-R with only 4.68% forgetting, outperforming recent rehearsal-based methods like DER++ and ER, which require much larger buffers.
- The method requires only about the size of a single 224×224 RGB image in additional parameters, making it highly memory-efficient compared to other rehearsal-free or architecture-based methods.
- Adding E-Prompt alone improves performance over G-Prompt alone, but combining both yields the best results, confirming the benefit of decoupling general and specific knowledge.
- Multi-layered prompting (ML) consistently improves performance over single-layered versions, with the best result achieved when both G-Prompt and E-Prompt are applied across multiple layers.
- t-SNE visualization confirms that E-Prompts are well-separated across tasks (indicating task-specific learning), while G-Prompts remain stable and centralized (indicating task-invariant learning).
- The Pre-T prompting function outperforms Pro-T, especially in multi-layer settings, due to its ability to preserve sequence length and improve 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.