arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2106.13302cs.CLcs.LG
收藏

byteSteady:使用字节级n-Gram嵌入的快速分类

byteSteady: Fast Classification Using Byte-Level n-Gram Embeddings

Element AI(Element AI公司);ServiceNow(ServiceNow公司)

Xiang Zhang, Alexandre Drouin, Raymond Li

摘要:

本文介绍了byteSteady --一种使用字节级n-gram嵌入的快速分类模型。byteSteady假设每个输入都是一个字节序列。使用字节级n-gram的平均嵌入向量产生表示向量,其中预定义的集合为n。哈希技巧用于减少嵌入向量的数量。然后将该输入表示向量馈送到线性分类器中。byteSteady的一个直接应用是文本分类。我们还将byteSteady应用于一种非语言数据-用于基因分类的DNA序列。对于这两个问题,我们在强大的基线上取得了有竞争力的分类结果,这表明byteSteady可以应用于语言和非语言数据。此外,我们发现,使用霍夫曼编码的简单压缩不会显着影响结果,这提供了一个以前在机器学习中未探索的准确性-速度权衡。

英文摘要:

This article introduces byteSteady -- a fast model for classification using byte-level n-gram embeddings. byteSteady assumes that each input comes as a sequence of bytes. A representation vector is produced using the averaged embedding vectors of byte-level n-grams, with a pre-defined set of n. The hashing trick is used to reduce the number of embedding vectors. This input representation vector is then fed into a linear classifier. A straightforward application of byteSteady is text classification. We also apply byteSteady to one type of non-language data -- DNA sequences for gene classification. For both problems we achieved competitive classification results against strong baselines, suggesting that byteSteady can be applied to both language and non-language data. Furthermore, we find that simple compression using Huffman coding does not significantly impact the results, which offers an accuracy-speed trade-off previously unexplored in machine learning.

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

↑