We present a latent variable model for classification that provides a novel probabilistic interpretation of neural network softmax classifiers. We derive a variational objective to train the model, analogous to the evidence lower bound (ELBO) used to train variational auto-encoders, that generalises the softmax cross-entropy loss. Treating inputs to the softmax layer as samples of a latent variable, our abstracted perspective reveals a potential inconsistency between their anticipated distribution, required for accurate label predictions, and their empirical distribution found in practice. We augment the variational objective to mitigate such inconsistency and induce a chosen latent distribution, instead of the implicit assumption found in a standard softmax layer. Overall, we provide new theoretical insight into the inner workings of widely-used softmax classifiers. Empirical evaluation on image and text classification datasets demonstrates that our proposed approach, variational classification, maintains classification accuracy while the reshaped latent space improves other desirable properties of a classifier, such as calibration, adversarial robustness, robustness to distribution shift and sample efficiency useful in low data settings.
Softmax-based Classification is k-means Clustering: Formal Proof, Consequences for Adversarial Attacks, and Improvement through Centroid Based Tailoring
Enhanced Isotropy Maximization Loss: Seamless and High-Performance Out-of-Distribution Detection Simply Replacing the SoftMax Loss
Centro de Informática, Universidade Federal de Pernambuco(伯南布哥联邦大学信息中心);Montreal Institute for Learning Algorithms (MILA)(蒙特利尔学习算法研究所(MILA));Université de Montréal (UdeM)(蒙特利尔大学(UdeM))
Entropic Out-of-Distribution Detection: Seamless Detection of Unknown Examples
Centro de Informática, Universidade Federal de Pernambuco(伯南布哥联邦大学信息中心);Montreal Institute for Learning Algorithms (MILA), Université de Montréal (UdeM)(蒙特利尔大学蒙特利尔学习算法研究所(MILA))
Unpacking Softmax: How Temperature Drives Representation Collapse, Compression, and Generalization
Warsaw University of Technology(华沙技术大学);University of Basel(巴塞尔大学);Mila, Québec AI Institute(魁北克人工智能研究所);IDEAS Research Institute(IDEAS研究所);Tooploox(Tooploox公司)
Centro de Informática, Universidade Federal de Pernambuco(伯南布哥联邦大学信息中心);Montreal Institute for Learning Algorithms, University of Montreal(蒙特利尔大学蒙特利尔学习算法研究所);Northwestern University(西北大学)
Towards Out-of-Distribution Detection for breast cancer classification in Point-of-Care Ultrasound Imaging
Centre for Mathematical Sciences, Lund University(隆德大学数学中心);Department of Diagnostic Radiology, Translational Medicine, Lund University(隆德大学转化医学系诊断放射学系);Unilabs Mammography Unit, Skåne University Hospital(斯科讷大学医院Unilabs乳腺钼靶检查科)
Federated Variational Preference Alignment with Gumbel-Softmax Prior for Personalized User Preferences
Graduate School of AI, POSTECH, Pohang, Republic of Korea(POSTECH人工智能研究生院);Department of CSE, POSTECH, Pohang, Republic of Korea(POSTECH计算机科学与工程系);National AI Research Lab, Seoul, Republic of Korea(首尔国家人工智能研究实验室)
Graph Similarity Regularized Softmax for Semi-Supervised Node Classification
School of Mathematics and Physics, North China Electric Power University(华北电力大学数理学院);School of Mathematical Sciences, Beijing Normal University(北京师范大学数学科学学院)
Sparse-softmax: A Simpler and Faster Alternative Softmax Transformation
Cardiff University(卡迪夫大学);Osaka City University(大阪市立大学);Beijing Jiaotong University(北京交通大学);Shenzhen University(深圳大学);Shenzhen Zhuiyi Technology Co., Ltd.(深圳追一科技有限公司);Chinese Academy of Science(中国科学院)
Adaptive Sparse Softmax: An Effective and Efficient Softmax Variant
School of Computer Science and Technology, Soochow University(苏州大学计算机科学与技术学院);School of Computer Science and Technology, Harbin Institute of Technology (Shenzhen)(哈尔滨工业大学(深圳)计算机科学与技术学院);School of Computer Science and Technology, Institution of Artificial Intelligence, Soochow University(苏州大学计算机科学与技术学院、人工智能研究所);Peking University(北京大学);Hong Kong Polytechnic University(香港理工大学)
From Softmax to Sparsemax: A Sparse Model of Attention and Multi-Label Classification
Unbabel Lda(Unbabel有限公司);Instituto de Telecomunicações (IT)(电信研究所(IT));Instituto Superior Técnico(高等技术学院);Instituto de Engenharia de Sistemas e Computadores (INESC-ID)(系统与计算机工程研究所(INESC-ID))
Fast Variational AutoEncoder with Inverted Multi-Index for Collaborative Filtering
University of Electronic Science and Technology of China(电子科技大学);University of Science and Technology of China(中国科学技术大学);Huawei Cloud Computing Technologies Co., Ltd.(华为云计算技术有限公司)
The Z-loss: a shift and scale invariant classification loss belonging to the Spherical Family
MILA(蒙特利尔学习算法研究所);University of Montréal(蒙特利尔大学);CIFAR(加拿大高等研究院)
尽管log-softmax是训练多类神经网络的标准损失函数,但它有两个潜在的局限性。首先,它涉及的计算与输出类的数量呈线性关系,这可能会限制我们能够用当前硬件解决的问题的大小。其次,它与任务损失(如top-k出错率或其他我们最终要优化的不可微评估指标)的匹配程度仍不清楚。在本文中,我们介绍了一种替代的分类损失函数,Z-损失,这是为了解决这两个问题。与log-softmax不同,它具有属于球形损失家族的理想属性(Vincent等人,2015),一类损失函数,可以以独立于输出类的数量的复杂度非常有效地对其执行训练。我们的实验表明,它显着优于其他球形损失函数以前研究。此外,我们在一个单词语言建模任务中表明,它在某些排名分数(如前k分数)方面也优于log-softmax,这表明Z损失具有更好地匹配任务损失的灵活性。因此,这些品质使得Z损失成为非常有效地训练诸如单词-语言模型或其他极端分类问题的大输出网络的吸引人的候选者。On the One Billion Word(Chelba et al.,2014)数据集,我们能够训练一个Z损失比log-softmax快40倍,比分层softmax快4倍以上的模型。
In-context classification: Calibration and noise in linear attention with softmax readout
Harvard University(哈佛大学);Williams College(威廉姆斯学院);Kempner Institute, Harvard University(哈佛肯珀研究所);Center for Brain Science and Society of Fellows, Harvard University(哈佛大学生脑科学与社会研究员院)
Diagnostic Accuracy of Content Based Dermatoscopic Image Retrieval with Deep Classification Features
背景:通过神经网络对医学图像进行自动分类可以达到很高的准确率,但缺乏可解释性。目的:比较使用基于内容的图像检索(CBIR)检索视觉上相似的皮肤镜图像(带有相应的疾病标签)与神经网络预测的诊断准确性。研究方法:一个神经网络进行训练,预测疾病类别的皮肤镜图像从三个回顾性收集的图像数据集,分别包含888,2750和16691图像。诊断预测是基于视觉相似图像中最常见的诊断,或者基于网络输出的softmax的前1类预测。结果测量是预测恶性病变的ROC曲线下面积(AUC),多类准确度和平均精度(mAP),在相应数据集的未见过的测试图像上测量。结果如下:在所有三个数据集中,来自CBIR的皮肤癌预测(评估16个最相似的图像)显示出与softmax预测相似的AUC值(分别为0.842,0.806和0.852与0.830,0.810和0.847;所有p值>0.99)。同样,CBIR的多类准确性与softmax预测相当。当使用CBIR时,与softmax预测相比,训练用于检测仅3个类的网络在具有8个类的数据集上表现更好(mAP分别为0.184 vs. 0.368和0.198 vs. 0.403)。结论:基于神经网络的特征呈现视觉上相似的图像显示出与卷积神经网络的softmax基于概率的诊断相当的准确性。CBIR可能比softmax分类器更有助于提高临床医生在常规临床环境中的诊断准确性。