Exploring space efficiency in a tree-based linear model for extreme multi-label classification

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Lin, He-Zhe, Liu, Cheng-Hung, Lin, Chih-Jen
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866917801796567040
author Lin, He-Zhe
Liu, Cheng-Hung
Lin, Chih-Jen
author_facet Lin, He-Zhe
Liu, Cheng-Hung
Lin, Chih-Jen
contents Extreme multi-label classification (XMC) aims to identify relevant subsets from numerous labels. Among the various approaches for XMC, tree-based linear models are effective due to their superior efficiency and simplicity. However, the space complexity of tree-based methods is not well-studied. Many past works assume that storing the model is not affordable and apply techniques such as pruning to save space, which may lead to performance loss. In this work, we conduct both theoretical and empirical analyses on the space to store a tree model under the assumption of sparse data, a condition frequently met in text data. We found that, some features may be unused when training binary classifiers in a tree method, resulting in zero values in the weight vectors. Hence, storing only non-zero elements can greatly save space. Our experimental results indicate that tree models can achieve up to a 95% reduction in storage space compared to the standard one-vs-rest method for multi-label text classification. Our research provides a simple procedure to estimate the size of a tree model before training any classifier in the tree nodes. Then, if the model size is already acceptable, this approach can help avoid modifying the model through weight pruning or other techniques.
format Preprint
id arxiv_https___arxiv_org_abs_2410_09554
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Exploring space efficiency in a tree-based linear model for extreme multi-label classification
Lin, He-Zhe
Liu, Cheng-Hung
Lin, Chih-Jen
Machine Learning
Computation and Language
Extreme multi-label classification (XMC) aims to identify relevant subsets from numerous labels. Among the various approaches for XMC, tree-based linear models are effective due to their superior efficiency and simplicity. However, the space complexity of tree-based methods is not well-studied. Many past works assume that storing the model is not affordable and apply techniques such as pruning to save space, which may lead to performance loss. In this work, we conduct both theoretical and empirical analyses on the space to store a tree model under the assumption of sparse data, a condition frequently met in text data. We found that, some features may be unused when training binary classifiers in a tree method, resulting in zero values in the weight vectors. Hence, storing only non-zero elements can greatly save space. Our experimental results indicate that tree models can achieve up to a 95% reduction in storage space compared to the standard one-vs-rest method for multi-label text classification. Our research provides a simple procedure to estimate the size of a tree model before training any classifier in the tree nodes. Then, if the model size is already acceptable, this approach can help avoid modifying the model through weight pruning or other techniques.
title Exploring space efficiency in a tree-based linear model for extreme multi-label classification
topic Machine Learning
Computation and Language
url https://arxiv.org/abs/2410.09554