Abstract
Class-Incremental Learning (CIL) presents a significant challenge for deep learning models, which often suffer from catastrophic forgetting when learning new tasks sequentially. Traditional approaches typically append a linear classification head to a pre-trained language model (PLM), leading to representation collapse and biased predictions. This paper discusses Vocabulary-Aware Label Generation (VAG), a novel framework that reframes CIL as a text generation task. By leveraging the semantic knowledge of encoder-decoder models and employing a sparse update strategy via vocabulary masking, VAG significantly mitigates forgetting and maintains discriminative feature spaces without requiring extensive stored data.
Introduction
In the real-world deployment of machine learning systems, data often arrives in a stream of distinct tasks. Class-Incremental Learning (CIL) requires a model to learn these new classes over time while maintaining performance on all previously encountered categories. Unlike Task-Incremental Learning, CIL models do not receive a task identifier at inference time; they must distinguish between all seen classes simultaneously.
The primary obstacle in CIL is Catastrophic Forgetting (CF). When a model is fine-tuned on new data, the weights associated with previous tasks are overwritten. In standard NLP pipelines, this often manifests as "representation collapse," where the rich, generalized features of a Pre-trained Language Model (PLM) degrade into narrow, task-specific clusters that fail to generalize to future or past classes. VAG addresses this by moving away from the traditional "feature extractor + linear head" architecture in favor of a generative paradigm.
The VAG Framework
VAG introduces three core components to transform the CIL process:
1. Classification via Generation
Instead of mapping an input to an arbitrary integer index, VAG fine-tunes an encoder-decoder model (such as BART) to generate the literal text of the class label (e.g., "calendar update"). At inference, the model generates a text string, which is then compared against a "Label Pool" of all known classes. By using Sentence-BERT (S-BERT) embeddings to find the closest semantic match in the pool, the system can robustly map generated text to the correct class even if the output is not character-perfect.
2. Vocabulary-Aware Generation (VAG) Loss
Standard PLMs possess massive vocabularies (often exceeding 50,000 tokens), but specific classification tasks only utilize a tiny fraction of these. VAG implements a masking strategy that restricts the model's output space to only those tokens present in the current task's labels. This forces a "sparse update" to the model's weights. By only updating the parameters relevant to the specific labels being learned, VAG prevents the global weight shifts that typically lead to the erasure of old knowledge.
3. Label-based Pseudo Replay
To maintain decision boundaries without the privacy risks or storage costs of keeping old user data, VAG utilizes the semantic meaning of the labels themselves. The framework generates "pseudo-samples" by augmenting label names into descriptive sentences. These synthetic samples act as anchors, reminding the model of the semantic space occupied by previous classes during the training of new tasks.
Experimental Evaluation
The researchers evaluated VAG across five diverse NLP benchmarks, including intent classification (CLINC150, Banking77), topic classification (20News), and relation classification (FewRel, TACRED).
Key Results
- Non-Exemplar Performance: In settings where no previous data can be stored, VAG outperformed state-of-the-art methods by a substantial margin. On the CLINC150 dataset, VAG achieved 65.69% final accuracy, compared to 48.78% for the best baseline (ACM) and 7.67% for traditional Elastic Weight Consolidation (EWC).
- Exemplar-Based Learning: When allowed a small buffer of real samples (1-5%), VAG consistently outperformed specialized replay methods like DER++ and LDBR, showing particular resilience when the available buffer size was minimal.
- Cross-Dataset Consistency: Across all five benchmarks, VAG maintained an average accuracy of 58.56%, while the next best generative baseline reached only 42.54%.
Discussion: Why Generation Works
The success of VAG stems from its ability to act as a regularizer. Analysis of Neural Collapse (NC) metrics indicates that while traditional classifiers cause internal representations to lose discriminative power over time, the generative objective keeps these representations healthy.
Furthermore, using actual words as labels provides a semantic anchor. An integer index is an arbitrary target, but words like "pay bill" carry inherent meaning that the pre-trained model already understands. This allows the model to leverage its prior knowledge to retain information more effectively than a model learning abstract mappings.
Conclusion and Future Work
VAG represents a significant shift in Class-Incremental Learning by demonstrating that generation is a more robust objective than classification for preventing catastrophic forgetting. While the method does not achieve "zero forgetting" and remains dependent on the quality of provided label names, it sets a new standard for non-exemplar CIL. Future research may focus on automatically generating label descriptions from training samples to further enhance the semantic anchoring of the model.
Summary updated