arXiv(opens in a new tab)cs.CVAug 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2608.31096

One Adapter, Many Tasks: Task-Conditioned Feature Transformations for Continual Learning

Yunxiang Fu, Meng Lou, Yizhou Yu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Class-incremental learning (CIL) requires a model to incrementally learn tasks that contain new classes without accessing earlier training data while preserving the ability to recognize all seen classes. Recently, pretrained-model-based approaches have become prevalent by adapting a frozen backbone with additional lightweight trainable modules. Existing methods, however, exhibit limitations: task-specific adapters learn explicit per-task representations but are parameter- and computation-inefficient, while LoRA-based merging methods combine per-task LoRA parameters into a single model whose static aggregated weights cause representation interference during inference. To address these problems, we present FACET: task-conditioned FeAture transformation with ConditionEd feature consisTency, achieving excellent parameter efficiency while producing highly discriminative features during inference. When continually trained on a task sequence, FACET learns a single shared adapter that employs a dynamic task-conditioned feature transformation, shaping the overall feature distribution of the adapter into a mixture of overlap-reduced task-specific components. On the other hand, we propose an efficient replay-free task-conditioned feature consistency loss, aiming to mitigate catastrophic forgetting of the learned mixture distribution in the adapter's feature space. Even when maintaining only a single adapter, FACET demonstrates robust scalability. On both very long task sequences (e.g., 200 tasks) and standard short task sequences (e.g., 20 tasks), our method achieves superior performance while using significantly fewer trainable parameters and GFLOPs. The code will be made open source upon acceptance.

1 Introduction

In real-world applications, training data may arrive sequentially from continuously changing environments, which requires a learning system to acquire new concepts while retaining previous knowledge [15, 25]. However, standard deep neural networks generally suffer from catastrophic forgetting: when trained on new data, their performance on previously learned tasks can severely degrade [17, 13, 27]. Continual learning (CL) aims to address this problem by enabling models to learn from continuous data streams without forgetting past knowledge. Among the many CL settings, class-incremental learning (CIL) is one of the most challenging because the model must learn new classes over time and, at test time, discriminate among all classes seen so far [23].

Traditional continual learning methods address catastrophic forgetting through regularization [13, 17], replay [26, 19], architectural expansion [27, 38], and parameter isolation/sub-networks [2, 21]. More recently, pretrained-model (PTM) based approaches have become prevalent for CIL, as large pretrained backbones provide general-purpose, powerful representations, and require relatively few additional parameters when adapted to new tasks [35, 28, 42, 43, 33, 30, 12]. A common strategy attaches task-specific learnable adapters to a frozen vision backbone [42, 33, 12, 32], which produces explicit task-specific feature perturbations but requires a separate adapter per task, resulting in

Preprint.

(a) Task-conditioned feature mixture distribution

Figure

FACET (Ours)

SD-LoRA

(b) Class-discriminative features

VIT block

Figure 1: Comparison of feature distributions. (a) t-SNE of block 1 features, colored based on task. FACET shows well-separated task-specific distributions, while SD-LoRA's are mixed. (b) Class-averaged silhouette score (higher values mean better intra-class compactness and inter-class separation) across blocks. FACET achieves higher scores than representative LoRA-based (SD-LoRA) and per-task adapter based (TUNA) methods, producing more class-discriminative features that are beneficial for classification.

parameter and computation inefficiency. Another popular solution trains separate LoRA modules [11] by task and merges all learned modules before inference, exemplified by InfLoRA [18] and SD-LoRA [36]. Although such methods improve parameter efficiency at inference time, an input is passed to the aggregated weights, which give rise to representation interference and diluted features that are suboptimal for classification.

To address these issues, we present FACET, a novel PTM-based CIL method that achieves parameter efficiency by using a single continually optimized adapter with an explicit task-conditioning mechanism. The core idea is to obtain task-dependent features by applying a dynamic task-conditioned transformation to the adapter's output. Specifically, we predict a task-dependent context vector for the input, and map it to a matrix that performs task-dependent channel-wise scaling and cross-channel mixing in the latent space of the adapter. This substantially improves the separability of task-specific feature distributions in the adapter's feature space, thereby reducing representation interference.

However, training the shared adapter on a new task might distort the conditional feature distributions of previous tasks and make them less discriminative. To this end, the adapter is required to preserve the conditional feature distribution of any earlier task. That is, given any training sample from the new task, the adapter should be able to reproduce its feature representation as if conditioned on any earlier task. This goal is achieved via a simple task-conditioned feature consistency objective.

We compare the representation quality of FACET with representative methods in Fig. 1. In early adapter blocks, FACET's task-specific feature distributions are widely separated, while those of SD-LoRA are completely mixed (Fig. 1 (a)). As CIL ultimately requires discrimination among classes, Fig. 1 (b) compares the block-wise class-averaged Silhouette score 1^{1}. A higher score suggests more class-discriminative features. Driven by dynamic task conditioning, FACET achieves a significantly higher score in the last block, which indicates that features have transitioned from task-scaffolded to class-discriminative as depth increases.

We evaluate FACET on standard class-incremental learning benchmarks. FACET achieves the highest final accuracy on ImageNet-R, ImageNet-A, CIFAR-100, and ObjectNet. Compared with SD-LoRA [36], FACET improves the final accuracy from 75.26% to 79.97% on ImageNet-R with 20 tasks and from 55.96% to 64.87% on ImageNet-A. Surprisingly, on OmniBenchmark-1K [20] with 200 tasks, FACET significantly improves over MIN [12] and TUNA [33] by 3.45% and 6.81% in final accuracy, respectively. FACET is also 3.85×3.85 \times faster and reduces GFLOPs by 62.69% relative to MIN (Table 3). Note that MIN and TUNA learn a task-specific adapter for every task.

Our main contributions are as follows:

A novel single-adapter design with task-conditioned transformations. We introduce a single, continually trained adapter that incorporates a dynamic task-conditioned transformation. This design achieves parameter efficiency and improves the separability of task-specific feature distributions, thus reducing representation interference.

1^{1}The Silhouette score of a class is (b−a)/max⁡(a,b)(b - a)/\max(a, b), where aa is the mean pairwise feature distance within the class and bb is the mean pairwise distance between any feature in the class and any feature in the nearest different class.

Figure

(a)

(b)

Figure 2: Illustration of FACET. (a) Task-conditioned feature transformation within a single adapter. We predict the task context c and use it to generate a transformation matrix McM_c to obtain task-dependent features. Activation functions are not shown for simplicity. (b) Task-conditioned feature consistency objective when training on a new task t with dataset DtD_t.

Conditioned feature consistency. We propose a conditioned feature consistency loss that aligns the feature representation of the latest adapter with its frozen snapshot under earlier task conditions, effectively mitigating forgetting.

State-of-the-art results. FACET achieves new state-of-the-art experimental results on class-incremental learning benchmarks with 10 to 200 tasks.

References (41)

  • Conditional channel gated networks for task-aware continual learning
  • Expert gate: Lifelong learning with a network of experts
  • Objectnet: A large-scale bias-controlled dataset for pushing the limits of object recognition models
  • Adaptformer: Adapting vision transformers for scalable visual recognition
  • An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Fecam: Exploiting the heterogeneity of class distributions in exemplar-free continual learning
  • Gaussian Error Linear Units (GELUs)
  • A critical analysis of out-of-distribution generalization
  • Natural adversarial examples
  • A comprehensive overhaul of feature distillation
  • Low-rank adaptation of large language models
  • Mixture of noise for pre-trained model-based class-incremental learning
  • Proceedings of the national academy of sciences, 114(13):3521–3526, 2017
  • Continual learning for robotics: Definition, framework, learning strategies, opportunities and challenges
  • Continual learning with knowledge distillation: A survey
  • Learning without forgetting
  • Inflora: Interference-free low-rank adaptation for continual learning
  • Gradient episodic memory for continual learning
  • Scaling continual learning with bi-level routing mixture-of-experts (opens arXiv in a new tab)
  • Packnet: Adding multiple tasks to a single network by iterative pruning
  • Magmax: Leveraging model merging for seamless continual learning
  • Class-incremental learning: survey and performance evaluation on image classification
  • Alleviating catastrophic forgetting using context-dependent gating and synaptic stabilization
  • Preserving and combining knowledge in robotic lifelong reinforcement learning
  • icarl: Incremental classifier and representation learning
  • Progressive Neural Networks
  • Coda-prompt: Continual decomposed attention-based prompting for rehearsal-free continual learning
  • Pilot: A pre-trained model-based continual learning toolbox
  • Mos: Model surgery for pre-trained model-based class-incremental learning
  • Merging models on the fly without retraining: A sequential approach to scalable continual model merging
  • Self-expansion of pre-trained models with mixture of adapters for continual learning
  • Integrating task-specific and universal adapters for pre-trained model-based class-incremental learning
  • Complementary prompting for rehearsal-free continual learning
  • Learning to prompt for continual learning
  • Sd-lora: Scalable decoupled low-rank adaptation for class incremental learning
  • Der: Dynamically expandable representation for class incremental learning
  • Lifelong learning with dynamically expandable networks (opens arXiv in a new tab)
  • Continual learning through synaptic intelligence
  • Slca: Slow learner with classifier alignment for continual learning on a pre-trained model
  • Benchmarking omni-vision representation through the lens of visual realms
  • Expandable subspace ensemble for pre-trained model-based class-incremental learning