arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1810.04254cs.DCcs.CCcs.LG
收藏

日志存储中的极端分类

Extreme Classification in Log Memory

Rice University(莱斯大学)

Qixuan Huang, Yiqiu Wang, Tharun Medini, Anshumali Shrivastava

摘要:

我们提出了通过哈希的合并平均分类器(MACH),用于超大K值的K分类。与传统的one-vs-all分类器需要O(Kd)的内存和推理开销相比,MACH只需要O(d log K)(d是维数)的内存,而只需要O(K log K + d log K)的推理运算。MACH是一个通用的K-分类算法,具有可证明的理论保证,它需要O(log K)的内存,而无需对类之间的关系进行任何假设。MACH使用通用散列将具有大量类别的分类减少到具有少量(恒定)类别的少数独立分类任务。我们提供了理论量化的辨别力记忆权衡。使用MACH,我们可以在单个Titan X GPU上训练具有100,000个类和400,000个特征的ODP数据集,分类准确率为19.28%,这是该数据集上报告的最佳准确率。在此之前,性能最好的基线是一个一对多分类器,需要400亿个参数(160 GB模型大小),并达到9%的准确率。相比之下,MACH可以实现9%的准确度,模型大小减少了480倍(仅为0.3GB)。通过MACH,我们还演示了在单个GPU上对细粒度imagenet数据集(压缩大小为104GB)进行完整训练,其中包含21,000个类。据我们所知,这是第一次在单个Titan X上展示这些极端类数据集的完整训练。

英文摘要:

We present Merged-Averaged Classifiers via Hashing (MACH) for K-classification with ultra-large values of K. Compared to traditional one-vs-all classifiers that require O(Kd) memory and inference cost, MACH only need O(d log K) (d is dimensionality )memory while only requiring O(K log K + d log K) operation for inference. MACH is a generic K-classification algorithm, with provably theoretical guarantees, which requires O(log K) memory without any assumption on the relationship between classes. MACH uses universal hashing to reduce classification with a large number of classes to few independent classification tasks with small (constant) number of classes. We provide theoretical quantification of discriminability-memory tradeoff. With MACH we can train ODP dataset with 100,000 classes and 400,000 features on a single Titan X GPU, with the classification accuracy of 19.28%, which is the best-reported accuracy on this dataset. Before this work, the best performing baseline is a one-vs-all classifier that requires 40 billion parameters (160 GB model size) and achieves 9% accuracy. In contrast, MACH can achieve 9% accuracy with 480x reduction in the model size (of mere 0.3GB). With MACH, we also demonstrate complete training of fine-grained imagenet dataset (compressed size 104GB), with 21,000 classes, on a single GPU. To the best of our knowledge, this is the first work to demonstrate complete training of these extreme-class datasets on a single Titan X.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑