paper-with-me

홈 › Papers

Softmax Tree: An Accurate, Fast Classifier When the Number of Classes Is Large

2021-11-01 · EMNLP 2021 11 · Arman Zharmagambetov, Magzhan Gabidolla, Miguel A. Carreira-Perpinan

Classification problems having thousands or more classes naturally occur in NLP, for example language models or document classification. A softmax or one-vs-all classifier naturally handles many classes, but it is very slow at inference time, because every class score must be calculated to find the top class. We propose the “softmax tree”, consisting of a binary tree having sparse hyperplanes at the decision nodes (which make hard, not soft, decisions) and small softmax classifiers at the leaves. This is much faster at inference because the input instance follows a single path to a leaf (whose length is logarithmic on the number of leaves) and the softmax classifier at each leaf operates on a small subset of the classes. Although learning accurate tree-based models has proven difficult in the past, we are able to overcome this by using a variation of a recent algorithm, tree alternating optimization (TAO). Compared to a softmax and other classifiers, the resulting softmax trees are both more accurate in prediction and faster in inference, as shown in NLP problems having from one thousand to one hundred thousand classes.

📄 PDF Abstract BibTeX

Code (0)

등록된 구현이 없습니다.

Tasks

Document Classification

Similar Papers 제목 키워드 기반

What Does Softmax Probability Tell Us about Classifiers Ranking Across Diverse Test Conditions?

2024-06-14 · Weijie Tu, Weijian Deng, Liang Zheng, Tom Gedeon

This work aims to develop a measure that can accurately rank the performance of various classifiers when they are tested on unlabeled data from out-of-distribution (OOD) distributions. We commence by demonstrating that c…

Inverse classification with logistic and softmax classifiers: efficient optimization

2023-09-16 · Miguel Á. Carreira-Perpiñán, Suryabhan Singh Hada

In recent years, a certain type of problems have become of interest where one wants to query a trained classifier. Specifically, one wants to find the closest instance to a given input instance such that the classifier's…

counterfactualregression

Fast Task Adaptation for Few-Shot Learning

2019-09-25 · Yingying Zhang, Qiaoyong Zhong, Di Xie, ShiLiang Pu

Few-shot classification is a challenging task due to the scarcity of training examples for each class. The key lies in generalization of prior knowledge learned from large-scale base classes and fast adaptation of the cl…

Few-Shot Learning

Pointer Sentinel Mixture Models

2016-09-26 · Stephen Merity, Caiming Xiong, James Bradbury, Richard Socher

Recent neural network sequence models with softmax classifiers have achieved their best language modeling performance only with very large hidden states and large vocabularies. Even then they struggle to predict rare or …

Language ModelingLanguage Modelling

Probabilistic Label Trees for Extreme Multi-label Classification

2020-09-23 · Kalina Jasinska-Kobus, Marek Wydmuch, Krzysztof Dembczynski, Mikhail Kuznetsov 외

Extreme multi-label classification (XMLC) is a learning task of tagging instances with a small subset of relevant labels chosen from an extremely large pool of possible labels. Problems of this scale can be efficiently h…

ClassificationExtreme Multi-Label ClassificationGeneral ClassificationMulti-Label Classification+1