美文网首页深度学习-推荐系统-CV-NLP
人脸识别中的常见softmax函数总结(A-Softmax,AM

人脸识别中的常见softmax函数总结(A-Softmax,AM

作者: 昭君姐 | 来源:发表于2019-06-21 00:31 被阅读59次

本文整理、总结了常见softmax(如A-Softmax,AM-Softmax,ArcFace)的公式、论文出处等。
先总结几个重要的点:

  • L-Softmax 提出了angular margin的概念,重新思考w*x,引入cos角,认为各类之间的夹角需要有个margin。
  • A-Softmax将weight归一化,使得特征上的点映射到单位超球面上。
  • AM-Softmax将角度上的倍数关系改为cos值的比较。
  • Arcface将margin由cos值改为\theta值的比较。(和AM-Softmax比较下,两者的m前面的符号是不同的)
Name Loss公式 权重/特征归一 论文
softmax \frac{1}{N}\sum_i-log\frac{e^{w_{y_i}·x_i}}{\sum_ke^{w_k·x_i}} N/N
NormFace 同softmax Y/Y arxiv ACMMM 2017
L softmax \frac{1}{N}\sum_i-log\frac{e^{||w_{y_i}||·||x_i||·cos(m·\theta_{y_i, i})}}{e^{||w_{y_i}||·||x_i||·cos(m·\theta_{y_i, i})} + \sum_{k \neq y_i}e^{||w_k||·||x_i||·cos\theta_{k, i}}} 首次提出angular margin N/N arxiv ICML 2016
A softmax \frac{1}{N}\sum_i-log\frac{e^{||x_i||·cos(m·\theta_{y_i, i})}}{e^{||x_i||·cos(m·\theta_{y_i, i})} + \sum_{k \neq y_i}e^{||x_i||·cos\theta_{k, i}}} 增加weight norm Y/N arxiv CVPR 2017
AM softmax \frac{1}{N}\sum_i-log\frac{e^{s·(cos(\theta_{y_i, i})-m)}}{e^{s·(cos(\theta_{y_i, i})-m)} + \sum_{k \neq y_i}e^{cos\theta_{k, i}}} 增加feat norm和scale,margin由乘法变为加法 Y/Y arxiv ICLRw 2018
CosFace 同AM-Softmax,和AM-Softmax接近同时发布 Y/Y arxiv CVPR 2018
ArcFace \frac{1}{N}\sum_i-log\frac{e^{s·cos(\theta_{y_i, i}+m)}}{e^{s·cos(\theta_{y_i, i}+m)} + \sum_{k \neq y_i}e^{cos\theta_{k, i}}} 类似AM softmax,将margin由cos外移到内 Y/Y arxiv CVPR 2019
Adaptive Face \frac{1}{N}\sum_i-log\frac{e^{s·(cos(\theta_{y_i, i})-m_{y_i})}}{e^{s·(cos(\theta_{y_i, i})-m_{y_i})} + \sum_{k \neq y_i}e^{cos\theta_{k, i}}} - \lambda\frac{1}{K}\sum_km_k 将margin参数化,与类别相关 Y/Y pdf CVPR 2019

todo Decision Boundary

相关文章

网友评论

    本文标题:人脸识别中的常见softmax函数总结(A-Softmax,AM

    本文链接:https://www.haomeiwen.com/subject/xiasqctx.html