TL;DR
InfoComp is a novel prompt-tuning framework for Continual Text Classification that mimics the human brain's dual-system learning (hippocampus and neocortex). By using two distinct prompt spaces—one for task-specific "private" knowledge and one for "shared" invariant knowledge—and optimizing them via mutual information, the model achieves state-of-the-art performance without the computational bloat or memory requirements of previous methods.
What Problem Does This Paper Address?
In the world of NLP, Continual Text Classification (CTC) is a major hurdle. When a model learns a sequence of new tasks, it often suffers from Catastrophic Forgetting (CF)—it "overwrites" what it learned previously. Conversely, it often fails at Forward Knowledge Transfer (FKT)—the ability to use old knowledge to learn new things faster.
Existing solutions like ProgPrompt try to solve this by adding new prompts for every new task. However, this creates two big problems:
- Redundancy: They focus only on task-specific details and ignore knowledge shared across tasks.
- Scaling Issues: As the number of tasks ($N$) grows, the prompt list grows linearly, but the computational complexity of Transformer models grows quadratically ($O(N^2)$). This makes long-term learning prohibitively expensive.
Methods
The authors introduce InfoComp (Information-Theoretic Complementary Prompts), which uses a dual-prompt architecture inspired by Complementary Learning Systems (CLS) theory:
- P-Prompt (Private): Like the brain's hippocampus, this encodes specific, pattern-separated representations for individual tasks to prevent interference.
- S-Prompt (Shared): Like the neocortex, this captures general, transferable knowledge shared across all tasks.
To make these prompts truly "informative," the authors use an Information-Theoretic framework with two novel loss functions:
- Enhancing Task-Specific Knowledge ($L^{p-info}$): This maximizes the Mutual Information (MI) between the P-Prompt and the task-specific classifier. Since classifiers hold the most critical task-relevant data, this "pulls" that rich information into the prompt.
- Preserving Task-Invariant Knowledge ($L^{s-info}$): Inspired by the SimSiam contrastive learning method, this maximizes MI between the representations of the same input under the current S-Prompt and the previous task's S-Prompt. This ensures the shared knowledge doesn't drift or get forgotten as new tasks are added.
Crucially, InfoComp keeps the prompt length constant, regardless of how many tasks are learned, solving the scaling bottleneck.
Datasets
The researchers evaluated InfoComp on two main fronts:
- Standard CTC Benchmark: A sequence of 5 classic datasets (AG News, Amazon reviews, DBpedia, Yelp reviews, and Yahoo Answers).
- Long-sequence CTC Benchmark: A much tougher 15-task sequence. This includes the 5 standard datasets plus 4 from GLUE (MNLI, QQP, RTE, SST2), 5 from SuperGLUE (WiC, CB, COPA, MultiRC, BoolQ), and the IMDB movie reviews dataset.
- Data Scales: They tested performance across varying data limits (20, 200, and 1000 samples per class) to simulate few-shot learning scenarios.
Key Insights and Ideas
- The Power of Separation: By explicitly separating "private" and "shared" prompts, the model can be specialized for a task without losing the "big picture" logic that applies to all text classification.
- Breaking the $O(N^2)$ Barrier: Unlike previous state-of-the-art methods that concatenate prompts (leading to escalating costs), InfoComp uses only the current P-Prompt and the global S-Prompt. This makes it truly scalable for real-world applications where a model might encounter hundreds of tasks.
- MI as a Regularizer: Using Mutual Information to align prompts with classifiers and previous states provides a more principled way to "anchor" knowledge than simple weight regularization.
Key Results
- Standard Benchmark: InfoComp achieved an average accuracy of 80.0%, outperforming the previous SOTA (ProgPrompt) by roughly 2.1% and the recent SLM method by 0.9%.
- Long-Sequence Performance: On the 15-task benchmark, InfoComp consistently beat all competitors across all data scales. For example, in the 20-sample-per-class (few-shot) setting, it improved over ProgPrompt by 3.7%.
- Efficiency: Because it doesn't rely on "data replay" (storing old examples), it is highly privacy-friendly and memory-efficient.
Limitations and Future Work
The authors acknowledge a few areas for growth:
- Backbone Diversity: The current study focused on the
bert-base-uncasedmodel. Future work could investigate how this method scales to much larger Pretrained Language Models (PLMs) or different architectures. - Task Identity: The current setup assumes the model knows which task it is performing during inference (task-incremental setup). Moving toward a "class-incremental" setup where the model must also infer the task identity would be a significant next step.
Summary updated