paper-with-me

홈 › Papers

Compressing Word Embeddings via Deep Compositional Code Learning

2017-11-03 · ICLR 2018 1 · Raphael Shu, Hideki Nakayama

Natural language processing (NLP) models often require a massive number of parameters for word embeddings, resulting in a large storage or memory footprint. Deploying neural NLP models to mobile devices requires compressing the word embeddings without any significant sacrifices in performance. For this purpose, we propose to construct the embeddings with few basis vectors. For each word, the composition of basis vectors is determined by a hash code. To maximize the compression rate, we adopt the multi-codebook quantization approach instead of binary coding scheme. Each code is composed of multiple discrete numbers, such as (3, 2, 1, 8), where the value of each component is limited to a fixed range. We propose to directly learn the discrete codes in an end-to-end neural network by applying the Gumbel-softmax trick. Experiments show the compression rate achieves 98% in a sentiment analysis task and 94% ~ 99% in machine translation tasks without performance loss. In both tasks, the proposed method can improve the model performance by slightly lowering the compression rate. Compared to other approaches such as character-level segmentation, the proposed method is language-independent and does not require modifications to the network architecture.

📄 PDF Abstract BibTeX arXiv:1711.01068

Code (3)

mingu600/compositional_code_learning pytorch
wang-h/neuralcompressor pytorch
zomux/neuralcompressor tf

Tasks

Machine TranslationQuantizationSentiment AnalysisTranslationWord Embeddings

Similar Papers 제목 키워드 기반

Compressing Transformer-Based Semantic Parsing Models using Compositional Code Embeddings

2020-10-10 · Findings of the Association for Computational Linguistics 2020 · Prafull Prakash, Saurabh Kumar Shashidhar, Wenlong Zhao, Subendhu Rongali 외

The current state-of-the-art task-oriented semantic parsing models use BERT or RoBERTa as pretrained encoders; these models have huge memory footprints. This poses a challenge to their deployment for voice assistants suc…

Semantic Parsing

Quantifying Compositionality of Classic and State-of-the-Art Embeddings

2025-09-14 · Zhijin Guo, Chenhao Xue, Zhaozhen Xu, Hongbo Bo 외 arxiv

For language models to generalize correctly to novel expressions, it is critical that they exploit access compositional meanings when this is justified. Even if we don't know what a "pelp" is, we can use our knowledge of…

Knowledge Graphs

The Chinese Remainder Theorem for Compact, Task-Precise, Efficient and Secure Word Embeddings

2021-04-01 · EACL 2021 2 · Patricia Thaine, Gerald Penn

The growing availability of powerful mobile devices and other edge devices, together with increasing regulatory and security concerns about the exchange of personal information across networks of these devices has challe…

Sentiment AnalysisSentiment ClassificationWord Embeddings

Linear Spaces of Meanings: Compositional Structures in Vision-Language Models

2023-02-28 · ICCV 2023 1 · Matthew Trager, Pramuditha Perera, Luca Zancato, Alessandro Achille 외

We investigate compositional structures in data embeddings from pre-trained vision-language models (VLMs). Traditionally, compositionality has been associated with algebraic operations on embeddings of words from a pre-e…

DisentanglementRetrieval

Efficient, Compositional, Order-sensitive n-gram Embeddings

2017-04-01 · EACL 2017 4 · Adam Poliak, Pushpendre Rastogi, M. Patrick Martin, Benjamin Van Durme

We propose ECO: a new way to generate embeddings for phrases that is Efficient, Compositional, and Order-sensitive. Our method creates decompositional embeddings for words offline and combines them to create new embeddin…

Word Embeddings