一次模型适应异构客户端:客户端内和图像间的注意设计
One-Time Model Adaptation to Heterogeneous Clients: An Intra-Client and Inter-Image Attention Design
摘要:
图像识别应用程序的主流工作流程是首先在云上为各种类别训练一个全局模型,然后为众多客户端提供服务,每个客户端都有来自一小部分类别的异构图像要识别。从云客户端在图像类别范围上的差异来看,识别模型期望具有强适应性,直观地通过将焦点集中在每个单独客户端的本地动态类别子集上,同时产生可忽略的开销。在这项工作中,我们建议将一个新的客户端内和图像间注意力(ICIIA)模块插入现有的骨干识别模型中,只需要一次性的基于云的训练就可以适应客户端。特别地,给定来自某个客户端的目标图像,ICIIA引入多头自注意,从客户端的历史未标记图像中检索相关图像,从而校准焦点和识别结果。进一步考虑到ICIIA的开销主要是线性投影,我们提出了分区线性投影与功能洗牌更换,并允许增加分区的数量,以显着提高效率,而不会牺牲太多的准确性。最后,我们使用3种不同的识别任务,在5个代表性的数据集上使用9个骨干模型来评估ICIIA。广泛的评估结果表明,ICIIA的有效性和效率。具体来说,对于具有MobileNetV 3-L和Swin-B骨干模型的ImageNet-1 K,ICIIA可以将测试准确率提高到83.37%(+8.11%)和88.86%(+5.28%),而仅分别增加1.62%和0.02%的FLOP。
英文摘要:
The mainstream workflow of image recognition applications is first training one global model on the cloud for a wide range of classes and then serving numerous clients, each with heterogeneous images from a small subset of classes to be recognized. From the cloud-client discrepancies on the range of image classes, the recognition model is desired to have strong adaptiveness, intuitively by concentrating the focus on each individual client's local dynamic class subset, while incurring negligible overhead. In this work, we propose to plug a new intra-client and inter-image attention (ICIIA) module into existing backbone recognition models, requiring only one-time cloud-based training to be client-adaptive. In particular, given a target image from a certain client, ICIIA introduces multi-head self-attention to retrieve relevant images from the client's historical unlabeled images, thereby calibrating the focus and the recognition result. Further considering that ICIIA's overhead is dominated by linear projection, we propose partitioned linear projection with feature shuffling for replacement and allow increasing the number of partitions to dramatically improve efficiency without scarifying too much accuracy. We finally evaluate ICIIA using 3 different recognition tasks with 9 backbone models over 5 representative datasets. Extensive evaluation results demonstrate the effectiveness and efficiency of ICIIA. Specifically, for ImageNet-1K with the backbone models of MobileNetV3-L and Swin-B, ICIIA can improve the testing accuracy to 83.37% (+8.11%) and 88.86% (+5.28%), while adding only 1.62% and 0.02% of FLOPs, respectively.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。