[论文解读] xCos: An Explainable Cosine Metric for Face Verification Task
本文提出 xCos,一种用于人脸验证的可解释余弦相似度度量方法,通过将整体相似度分解为局部块状余弦相似度与注意力图,实现对模型决策中贡献最大的面部区域的可视化。该方法在保持最先进准确率的同时,提供了可解释的、空间局部化的模型预测解释。
We study the XAI (explainable AI) on the face recognition task, particularly the face verification here. Face verification is a crucial task in recent days and it has been deployed to plenty of applications, such as access control, surveillance, and automatic personal log-on for mobile devices. With the increasing amount of data, deep convolutional neural networks can achieve very high accuracy for the face verification task. Beyond exceptional performances, deep face verification models need more interpretability so that we can trust the results they generate. In this paper, we propose a novel similarity metric, called explainable cosine ($xCos$), that comes with a learnable module that can be plugged into most of the verification models to provide meaningful explanations. With the help of $xCos$, we can see which parts of the two input faces are similar, where the model pays its attention to, and how the local similarities are weighted to form the output $xCos$ score. We demonstrate the effectiveness of our proposed method on LFW and various competitive benchmarks, resulting in not only providing novel and desiring model interpretability for face verification but also ensuring the accuracy as plugging into existing face recognition models.
研究动机与目标
- 为解决深度人脸验证模型缺乏可解释性的问题,这些模型通常被视为黑箱。
- 开发一种相似度度量方法,能够提供关于为何两幅人脸被判定为匹配或不匹配的空间局部化解释。
- 在引入可解释性的同时,通过插件式模块保持高验证准确率。
- 使用户能够可视化模型关注的面部区域,以及局部相似度如何贡献于最终得分。
- 在移动设备认证和监控等安全关键应用中提升信任与透明度。
提出的方法
- xCos 将输入的人脸图像分解为空间块,并计算每对对应块之间的余弦相似度。
- 引入一个可学习的注意力模块,根据每对块对最终决策的相关性为其分配权重。
- 最终的 xCos 得分通过加权求和方式计算,其中权重由注意力图确定。
- 注意力图是可微分的,并与主干人脸嵌入网络联合训练。
- 该模块设计为插件式,可最小修改地集成到现有人脸验证模型中。
- 该方法可同时可视化局部相似度图与注意力图,为模型推理过程提供洞察。
实验结果
研究问题
- RQ1如何通过提供相似度决策的空间解释,使深度人脸验证模型更具可解释性?
- RQ2我们能否设计一种相似度度量方法,在保持最先进准确率的同时提供视觉可解释性?
- RQ3注意力图与局部相似度图在有意义且符合人类理解的方式下,如何贡献于最终的验证得分?
- RQ4与标准人脸验证模型相比,所提出的方法在遮挡情况下的鲁棒性是否有所提升?
- RQ5xCos 在非正面或具有挑战性的姿态人脸图像上的泛化能力如何?
主要发现
- 当集成到 ArcFace 等现有模型中时,xCos 在 LFW 及其他基准测试上保持了最先进水平的验证准确率。
- 该方法在遮挡情况下表现出更优的鲁棒性,在 AR 和 CASIA 数据集的合成遮挡设置下性能下降显著更小。
- 可视化结果表明,xCos 重点关注眼睛和鼻子等关键面部区域,与人类对身份的感知一致。
- 注意力图在决策过程中有效抑制了不相关或被遮挡的区域(如额头或嘴巴)。
- 即使不启用注意力模块,集成 xCos 的模型在鲁棒性方面仍优于原始 ArcFace 模型,表明其具有内在稳定性。
- 该框架通过局部相似度图与注意力图,实现了对模型行为的直观解释,增强了对人工智能驱动人脸验证的信任。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。