Skip to main content

Learning compressed sentence representations for on-device text processing

Publication ,  Conference
Shen, D; Cheng, P; Sundararaman, D; Zhang, X; Yang, Q; Tang, M; Celikyilmaz, A; Carin, L
Published in: ACL 2019 - 57th Annual Meeting of the Association for Computational Linguistics, Proceedings of the Conference
January 1, 2020

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.

Duke Scholars

Published In

ACL 2019 - 57th Annual Meeting of the Association for Computational Linguistics, Proceedings of the Conference

Publication Date

January 1, 2020

Start / End Page

107 / 116
 

Citation

APA
Chicago
ICMJE
MLA
NLM
Shen, D., Cheng, P., Sundararaman, D., Zhang, X., Yang, Q., Tang, M., … Carin, L. (2020). Learning compressed sentence representations for on-device text processing. In ACL 2019 - 57th Annual Meeting of the Association for Computational Linguistics, Proceedings of the Conference (pp. 107–116).
Shen, D., P. Cheng, D. Sundararaman, X. Zhang, Q. Yang, M. Tang, A. Celikyilmaz, and L. Carin. “Learning compressed sentence representations for on-device text processing.” In ACL 2019 - 57th Annual Meeting of the Association for Computational Linguistics, Proceedings of the Conference, 107–16, 2020.
Shen D, Cheng P, Sundararaman D, Zhang X, Yang Q, Tang M, et al. Learning compressed sentence representations for on-device text processing. In: ACL 2019 - 57th Annual Meeting of the Association for Computational Linguistics, Proceedings of the Conference. 2020. p. 107–16.
Shen, D., et al. “Learning compressed sentence representations for on-device text processing.” ACL 2019 - 57th Annual Meeting of the Association for Computational Linguistics, Proceedings of the Conference, 2020, pp. 107–16.
Shen D, Cheng P, Sundararaman D, Zhang X, Yang Q, Tang M, Celikyilmaz A, Carin L. Learning compressed sentence representations for on-device text processing. ACL 2019 - 57th Annual Meeting of the Association for Computational Linguistics, Proceedings of the Conference. 2020. p. 107–116.

Published In

ACL 2019 - 57th Annual Meeting of the Association for Computational Linguistics, Proceedings of the Conference

Publication Date

January 1, 2020

Start / End Page

107 / 116