深度学习-推荐系统-CV-NLP

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

2019-06-21  本文已影响59人  昭君姐

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

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

上一篇 下一篇

猜你喜欢

热点阅读