arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.09554cs.LGcs.CL

探索基于树的线性模型在极限多标签分类中的空间效率

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

National Taiwan University(国立台湾大学);Mohamed bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学)

He-Zhe Lin, Cheng-Hung Liu, Chih-Jen Lin

AI总结:

针对极限多标签分类中基于树的线性模型的空间复杂度问题,通过理论和实证分析发现稀疏数据下权重向量存在零值,仅存储非零元素可实现高达95%的存储空间缩减,并提供训练前模型大小估计方法以避免不必要的剪枝。

摘要:

极限多标签分类(XMC)旨在从众多标签中识别相关子集。在各种 XMC 方法中,基于树的线性模型因其卓越的效率和简单性而非常有效。然而,基于树的方法的空间复杂度尚未得到充分研究。许多过去的工作假设存储模型是无法承受的,并采用诸如剪枝等技术来节省空间,这可能导致性能损失。在本工作中,我们在稀疏数据(文本数据中经常遇到的情况)的假设下,对存储树模型的空间进行了理论和实证分析。我们发现,在树方法中训练二元分类器时,某些特征可能未被使用,从而导致权重向量中出现零值。因此,仅存储非零元素可以极大地节省空间。我们的实验结果表明,在多标签文本分类中,与标准的 one-vs-rest 方法相比,树模型可以实现高达 95% 的存储空间缩减。我们的研究提供了一个简单的程序,可以在训练树节点中的任何分类器之前估计树模型的大小。然后,如果模型大小已经可以接受,这种方法可以帮助避免通过权重剪枝或其他技术来修改模型。

英文摘要:

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.

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

↑