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

学习用于设备上文本处理的压缩句子表示

Learning Compressed Sentence Representations for On-Device Text Processing

Duke University(杜克大学);Stanford University(斯坦福大学);Microsoft Research(微软研究院)

Dinghan Shen, Pengyu Cheng, Dhanasekar Sundararaman, Xinyuan Zhang, Qian Yang, Meng Tang, Asli Celikyilmaz, Lawrence Carin

摘要:

在大量文本语料库上训练的句子的向量表示被广泛用作各种NLP问题中的通用句子嵌入。学习的表示通常被假设为连续的和实值的,从而导致大的存储器占用和缓慢的检索速度,这阻碍了它们对低资源(存储器和计算)平台(诸如移动设备)的适用性。在本文中,我们提出了四种不同的策略来转换连续和通用的句子嵌入到一个二进制化的形式,同时保留其丰富的语义信息。在广泛的下游任务,二进制化的句子嵌入被证明是降低性能只有约2%,相对于他们的连续同行,同时减少了超过98%的存储需求的方法进行评估。此外,通过学习的二进制表示,可以通过简单地计算它们的汉明距离来评估两个句子的语义相关性,与连续嵌入之间的内积运算相比,这是计算效率更高的。详细的分析和实例研究进一步验证了所提方法的有效性。

英文摘要:

Vector representations of sentences, trained on massive text corpora, are widely used as generic sentence embeddings across a variety of NLP problems. The learned representations are generally assumed to be continuous and real-valued, giving rise to a large memory footprint and slow retrieval speed, which hinders their applicability to low-resource (memory and computation) platforms, such as mobile devices. In this paper, we propose four different strategies to transform continuous and generic sentence embeddings into a binarized form, while preserving their rich semantic information. The introduced methods are evaluated across a wide range of downstream tasks, where the binarized sentence embeddings are demonstrated to degrade performance by only about 2% relative to their continuous counterparts, while reducing the storage requirement by over 98%. Moreover, with the learned binary representations, the semantic relatedness of two sentences can be evaluated by simply calculating their Hamming distance, which is more computational efficient compared with the inner product operation between continuous embeddings. Detailed analysis and case study further validate the effectiveness of proposed methods.

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

↑