Table of Contents
Fetching ...

C^2Prompt: Class-aware Client Knowledge Interaction for Federated Continual Learning

Kunlun Xu, Yibo Feng, Jiangmeng Li, Yongsheng Qi, Jiahuan Zhou

TL;DR

A novel Class-aware Client Knowledge Interaction (C${}^2$Prompt) method is proposed that explicitly enhances class-wise knowledge coherence during prompt communication and is designed to alleviate inter-class knowledge confusion by selectively strengthening class-relevant knowledge aggregation.

Abstract

Federated continual learning (FCL) tackles scenarios of learning from continuously emerging task data across distributed clients, where the key challenge lies in addressing both temporal forgetting over time and spatial forgetting simultaneously. Recently, prompt-based FCL methods have shown advanced performance through task-wise prompt communication.In this study, we underscore that the existing prompt-based FCL methods are prone to class-wise knowledge coherence between prompts across clients. The class-wise knowledge coherence includes two aspects: (1) intra-class distribution gap across clients, which degrades the learned semantics across prompts, (2) inter-prompt class-wise relevance, which highlights cross-class knowledge confusion. During prompt communication, insufficient class-wise coherence exacerbates knowledge conflicts among new prompts and induces interference with old prompts, intensifying both spatial and temporal forgetting. To address these issues, we propose a novel Class-aware Client Knowledge Interaction (C${}^2$Prompt) method that explicitly enhances class-wise knowledge coherence during prompt communication. Specifically, a local class distribution compensation mechanism (LCDC) is introduced to reduce intra-class distribution disparities across clients, thereby reinforcing intra-class knowledge consistency. Additionally, a class-aware prompt aggregation scheme (CPA) is designed to alleviate inter-class knowledge confusion by selectively strengthening class-relevant knowledge aggregation. Extensive experiments on multiple FCL benchmarks demonstrate that C${}^2$Prompt achieves state-of-the-art performance. Our source code is available at https://github.com/zhoujiahuan1991/NeurIPS2025-C2Prompt

C^2Prompt: Class-aware Client Knowledge Interaction for Federated Continual Learning

TL;DR

A novel Class-aware Client Knowledge Interaction (CPrompt) method is proposed that explicitly enhances class-wise knowledge coherence during prompt communication and is designed to alleviate inter-class knowledge confusion by selectively strengthening class-relevant knowledge aggregation.

Abstract

Federated continual learning (FCL) tackles scenarios of learning from continuously emerging task data across distributed clients, where the key challenge lies in addressing both temporal forgetting over time and spatial forgetting simultaneously. Recently, prompt-based FCL methods have shown advanced performance through task-wise prompt communication.In this study, we underscore that the existing prompt-based FCL methods are prone to class-wise knowledge coherence between prompts across clients. The class-wise knowledge coherence includes two aspects: (1) intra-class distribution gap across clients, which degrades the learned semantics across prompts, (2) inter-prompt class-wise relevance, which highlights cross-class knowledge confusion. During prompt communication, insufficient class-wise coherence exacerbates knowledge conflicts among new prompts and induces interference with old prompts, intensifying both spatial and temporal forgetting. To address these issues, we propose a novel Class-aware Client Knowledge Interaction (CPrompt) method that explicitly enhances class-wise knowledge coherence during prompt communication. Specifically, a local class distribution compensation mechanism (LCDC) is introduced to reduce intra-class distribution disparities across clients, thereby reinforcing intra-class knowledge consistency. Additionally, a class-aware prompt aggregation scheme (CPA) is designed to alleviate inter-class knowledge confusion by selectively strengthening class-relevant knowledge aggregation. Extensive experiments on multiple FCL benchmarks demonstrate that CPrompt achieves state-of-the-art performance. Our source code is available at https://github.com/zhoujiahuan1991/NeurIPS2025-C2Prompt

Paper Structure

This paper contains 37 sections, 32 equations, 9 figures, 5 tables, 1 algorithm.

Figures (9)

  • Figure 1: In FCL, class-wise knowledge coherence includes two aspects: (a) inter-prompt class-wise relevance which influences prompt aggregation in the server, (b) intra-class distribution gap (overlap) across clients which influences the locally learned semantics of each class.
  • Figure 2: Overview of our C${}^2$Prompt approach. During the training stage $t$, given the data $D_{t,k}$ at each client $k$, the local class-aware feature distribution is collected and uploaded to the server to estimate the global distribution of each class. Then, the global distribution is distributed to the local clients to train client-specific class-distribution compensation prompts $\mathcal{P}_{t,k}^c$. During the later process, the discriminativity prompts $\mathcal{P}_{t,k}^d$ are introduced to learn classification-relevant knowledge, which are iteratively aggregated in the server according to the class knowledge relevance for $N_r$ rounds.
  • Figure 3: Avg-ACC curves on the seen tasks across training stages .
  • Figure 4: Ablation on the model components.
  • Figure 5: Visualization of attention across prompt and image regions.
  • ...and 4 more figures