{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/arxiv-2509-19674","title":"C^2Prompt: Class-aware Client Knowledge Interaction for Federated Continual Learning","arxiv_id":"2509.19674","date":"2025-09-24","proceeding":"NeurIPS","authors":["Kunlun Xu","Yibo Feng","Jiangmeng Li","Yongsheng Qi","Jiahuan Zhou"],"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","url_abs":"https://arxiv.org/abs/2509.19674","url_pdf":"https://arxiv.org/pdf/2509.19674","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2509.19674","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2509.19674"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/zhoujiahuan1991/NeurIPS2025-C2Prompt","reach":{"status":"ok"}}],"summary":{"ran_draft_wrong":2,"ran_honours":1,"unverified":8},"by_repo_kind":{"found_in_text":{"samples":11,"ran":3,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":11,"samples":[{"code_sha256_prefix":"fac5364e2f53c6db","entry":"conv3x3","repo":"zhoujiahuan1991/NeurIPS2025-C2Prompt","repo_kind":"found_in_text","path":"ResNet.py","file_url":"https://github.com/zhoujiahuan1991/NeurIPS2025-C2Prompt/blob/HEAD/ResNet.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"fac5364e2f53c6db"}},{"code_sha256_prefix":"c6ec173f19f5c34d","entry":"interpolate_pos_embed","repo":"zhoujiahuan1991/NeurIPS2025-C2Prompt","repo_kind":"found_in_text","path":"models_Cprompt/vision_transformer.py","file_url":"https://github.com/zhoujiahuan1991/NeurIPS2025-C2Prompt/blob/HEAD/models_Cprompt/vision_transformer.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c6ec173f19f5c34d"}},{"code_sha256_prefix":"238a8354f5b75bd3","entry":"tensor_prompt","repo":"zhoujiahuan1991/NeurIPS2025-C2Prompt","repo_kind":"found_in_text","path":"models_Cprompt/vit_coda_p_hard.py","file_url":"https://github.com/zhoujiahuan1991/NeurIPS2025-C2Prompt/blob/HEAD/models_Cprompt/vit_coda_p_hard.py","link_basis":"plan_row","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"238a8354f5b75bd3"}},{"code_sha256_prefix":"d85e54f53f9fe2ab","entry":"FedAvg_our_v1","repo":"zhoujiahuan1991/NeurIPS2025-C2Prompt","repo_kind":"found_in_text","path":"Fed_utils.py","file_url":"https://github.com/zhoujiahuan1991/NeurIPS2025-C2Prompt/blob/HEAD/Fed_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d85e54f53f9fe2ab"}},{"code_sha256_prefix":"453899a2d9cac459","entry":"get_one_hot","repo":"zhoujiahuan1991/NeurIPS2025-C2Prompt","repo_kind":"found_in_text","path":"models_Cprompt/vit_coda_p_hard.py","file_url":"https://github.com/zhoujiahuan1991/NeurIPS2025-C2Prompt/blob/HEAD/models_Cprompt/vit_coda_p_hard.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"453899a2d9cac459"}},{"code_sha256_prefix":"e1da3ea75e559fb9","entry":"jpg_image_to_array","repo":"zhoujiahuan1991/NeurIPS2025-C2Prompt","repo_kind":"found_in_text","path":"iDOMAINNET.py","file_url":"https://github.com/zhoujiahuan1991/NeurIPS2025-C2Prompt/blob/HEAD/iDOMAINNET.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e1da3ea75e559fb9"}},{"code_sha256_prefix":"90f8aa1cf4ecb2be","entry":"local_train_cprompt","repo":"zhoujiahuan1991/NeurIPS2025-C2Prompt","repo_kind":"found_in_text","path":"Fed_utils.py","file_url":"https://github.com/zhoujiahuan1991/NeurIPS2025-C2Prompt/blob/HEAD/Fed_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"90f8aa1cf4ecb2be"}},{"code_sha256_prefix":"febf8e5408ed0e01","entry":"model_to_device","repo":"zhoujiahuan1991/NeurIPS2025-C2Prompt","repo_kind":"found_in_text","path":"Fed_utils.py","file_url":"https://github.com/zhoujiahuan1991/NeurIPS2025-C2Prompt/blob/HEAD/Fed_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"febf8e5408ed0e01"}},{"code_sha256_prefix":"4cded09fb058f2b6","entry":"resnet18_cbam","repo":"zhoujiahuan1991/NeurIPS2025-C2Prompt","repo_kind":"found_in_text","path":"ResNet.py","file_url":"https://github.com/zhoujiahuan1991/NeurIPS2025-C2Prompt/blob/HEAD/ResNet.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"4cded09fb058f2b6"}},{"code_sha256_prefix":"7e00d29fd6c8423a","entry":"resnet34_cbam","repo":"zhoujiahuan1991/NeurIPS2025-C2Prompt","repo_kind":"found_in_text","path":"ResNet.py","file_url":"https://github.com/zhoujiahuan1991/NeurIPS2025-C2Prompt/blob/HEAD/ResNet.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"7e00d29fd6c8423a"}},{"code_sha256_prefix":"c6db6c2bceedd520","entry":"tensor_prompt","repo":"zhoujiahuan1991/NeurIPS2025-C2Prompt","repo_kind":"found_in_text","path":"models_Cprompt/vit_coda_p.py","file_url":"https://github.com/zhoujiahuan1991/NeurIPS2025-C2Prompt/blob/HEAD/models_Cprompt/vit_coda_p.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c6db6c2bceedd520"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.LG","source":"arxiv_api"},"syntology_extracted_results":null}