Effectiveness of MPC-friendly Softmax Replacement

作者
Marcel Keller,Ke Sun
出处
期刊:Cornell University - arXiv [Cornell University]
被引量:3
标识
DOI:10.48550/arxiv.2011.11202
摘要

Softmax is widely used in deep learning to map some representation to a probability distribution. As it is based on exp/log functions that are relatively expensive in multi-party computation, Mohassel and Zhang (2017) proposed a simpler replacement based on ReLU to be used in secure computation. However, we could not reproduce the accuracy they reported for training on MNIST with three fully connected layers. Later works (e.g., Wagh et al., 2019 and 2021) used the softmax replacement not for computing the output probability distribution but for approximating the gradient in back-propagation. In this work, we analyze the two uses of the replacement and compare them to softmax, both in terms of accuracy and cost in multi-party computation. We found that the replacement only provides a significant speed-up for a one-layer network while it always reduces accuracy, sometimes significantly. Thus we conclude that its usefulness is limited and one should use the original softmax function instead.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
科研通AI6.4应助上岸采纳,获得10
刚刚
LY发布了新的文献求助10
1秒前
气11发布了新的文献求助10
3秒前
张开心应助杜欢采纳,获得10
6秒前
6秒前
上官若男应助科研通管家采纳,获得10
6秒前
SciGPT应助科研通管家采纳,获得10
6秒前
桐桐应助科研通管家采纳,获得10
6秒前
完美世界应助科研通管家采纳,获得30
6秒前
小妮基操勿六完成签到,获得积分10
7秒前
Akim应助科研通管家采纳,获得10
7秒前
Owen应助科研通管家采纳,获得10
7秒前
Akim应助还单身的含烟采纳,获得10
7秒前
DengLipan应助科研通管家采纳,获得10
7秒前
NexusExplorer应助科研通管家采纳,获得10
7秒前
乐乐应助科研通管家采纳,获得10
7秒前
桐桐应助科研通管家采纳,获得10
7秒前
8秒前
爆米花应助科研通管家采纳,获得10
8秒前
英姑应助科研通管家采纳,获得10
8秒前
CodeCraft应助科研通管家采纳,获得10
8秒前
Eyrie2001完成签到,获得积分10
8秒前
耶耶完成签到,获得积分10
8秒前
虚心蜻蜓完成签到,获得积分10
13秒前
14秒前
ayawbb完成签到,获得积分10
14秒前
14秒前
明亮板栗完成签到,获得积分10
16秒前
16秒前
16秒前
酷波er应助雪季语采纳,获得10
16秒前
17秒前
叶子发布了新的文献求助10
17秒前
18秒前
19秒前
犹豫大树发布了新的文献求助10
21秒前
21秒前
鱼鱼鱼发布了新的文献求助10
21秒前
蓝天0812发布了新的文献求助10
22秒前
22秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Reducing Compassion Fatigue, Secondary Traumatic Stress and Burnout 600
China Pluperfect I: Epistemology of Past and Outside in Chinese Art 520
Matrix Methods in Data Mining and Pattern Recognition Second Edition 510
Mammalian Synthetic Biology 500
Auslegungsgeschichte 500
Cosmos as Art Object: Studies in Plato's Timaeus and Other Dialogues 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7638376
求助须知:如何正确求助?哪些是违规求助? 9211625
关于积分的说明 19759499
捐赠科研通 7205380
什么是DOI,文献DOI怎么找? 3275862
关于科研通互助平台的介绍 2437447
邀请新用户注册赠送积分活动 2273040