首个为语言增强模型设计的可证明鲁棒少样本分类器
Provably Robust Adaptation for Language-Empowered Foundation Models
- 融合文本与特征嵌入,用自适应加权机制提升稳定性
- 在最坏情况中毒攻击下仍保持高准确率,认证准确率达90%以上
- 适合对安全敏感的少样本场景,如医疗图像识别
语言增强基础模型(LeFMs)如CLIP和GraphCLIP通过对齐视觉(或图)特征与文本表示,推动了多模态学习的发展,支持少样本学习等强大下游任务。然而,其依赖开放环境中收集的小规模特定任务支持数据集,易受中毒攻击——攻击者操纵支持样本以降低性能。现有防御策略多基于经验,缺乏形式化保障且对未知自适应攻击仍脆弱。认证鲁棒性提供可证明保障,但此前未被应用于基于LeFMs的少样本分类器。本文提出首个专为LeFMs设计的可证明鲁棒少样本分类器——语言增强少样本认证(LeFCert)。该模型整合文本与特征嵌入,并引入自适应混合机制。为实现可证明鲁棒性,提出双路截断均值原型,并推导出分类得分的上下界,实现在最坏情况中毒攻击下的认证。为进一步提升性能,提出两个变体:LeFCert-L结合随机平滑,实现李普希茨连续性,在双重预算约束下保持鲁棒;LeFCert-C支持集体认证,适用于攻击者在多个样本间共享毒化预算的场景。实验表明,LeFCert在干净与认证准确率上均显著优于现有基线,且计算高效,具备实际应用可行性。
原文摘要 · Abstract (English)
Language-empowered foundation models (LeFMs), such as CLIP and GraphCLIP, have transformed multimodal learning by aligning visual (or graph) features with textual representations, enabling powerful downstream capabilities like few-shot learning. However, the reliance on small, task-specific support datasets collected in open environments exposes these models to poisoning attacks, where adversaries manipulate the support samples to degrade performance. Existing defenses rely on empirical strategies, which lack formal guarantees and remain vulnerable to unseen and adaptive attacks. Certified robustness offers provable guarantees but has been largely unexplored for few-shot classifiers based on LeFMs. This study seeks to fill these critical gaps by proposing the first provably robust few-shot classifier that is tailored for LeFMs. We term our model Language-empowered Few-shot Certification (\textbf{LeFCert}). It integrates both textual and feature embeddings with an adaptive blending mechanism. To achieve provable robustness, we propose a twofold trimmed mean prototype and derive provable upper and lower bounds for classification scores, enabling certification under worst-case poisoning scenarios. To further enhance the performance, we extend LeFCert with two variants by considering a more realistic and tighter attack budget: LeFCert-L incorporates randomized smoothing to provide Lipschitz continuity and derive robustness under dual budget constraints, and LeFCert-C provides collective certification for scenarios where attackers distribute a shared poisoning budget across multiple samples. Experiments demonstrate that LeFCert achieves state-of-the-art performance, significantly improving both clean and certified accuracy compared to existing baselines. Despite its advanced robustness mechanisms, LeFCert is computationally efficient, making it practical for real-world applications.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。