Skip to main content
QUICK REVIEW

[Paper Review] Distilled embedding: non-linear embedding factorization using knowledge distillation

Vasileios Lioutas, Ahmad Rashid|arXiv (Cornell University)|Oct 2, 2019
Topic ModelingComputer Science25 references8 citations
TL;DR

This paper proposes Distilled Embedding, a non-linear word-embedding compression method using low-rank matrix decomposition with knowledge distillation. By first pre-training the factorized embedding to reconstruct full embeddings and then fine-tuning via knowledge distillation on downstream tasks, it achieves superior performance over low-rank factorization and recent compression methods, especially at high compression rates in machine translation.

ABSTRACT

Word-embeddings are a vital component of Natural Language Processing (NLP) systems and have been extensively researched. Better representations of words have come at the cost of huge memory footprints, which has made deploying NLP models on edge-devices challenging due to memory limitations. Compressing embedding matrices without sacrificing model performance is essential for successful commercial edge deployment. In this paper, we propose Distilled Embedding, an (input/output) embedding compression method based on low-rank matrix decomposition with an added non-linearity. First, we initialize the weights of our decomposition by learning to reconstruct the full word-embedding and then fine-tune on the downstream task employing knowledge distillation on the factorized embedding. We conduct extensive experimentation with various compression rates on machine translation, using different data-sets with a shared word-embedding matrix for both embedding and vocabulary projection matrices. We show that the proposed technique outperforms conventional low-rank matrix factorization, and other recently proposed word-embedding matrix compression methods.

Motivation & Objective

  • Address the challenge of high memory usage in word-embedding matrices, which hinders deployment of NLP models on memory-constrained edge devices.
  • Improve upon conventional low-rank matrix factorization by introducing non-linearity and knowledge distillation to preserve model performance during compression.
  • Enable effective compression of shared word-embedding and vocabulary projection matrices in sequence-to-sequence models without performance degradation.
  • Demonstrate that the proposed method outperforms existing embedding compression techniques across multiple datasets and compression rates.

Proposed method

  • Apply low-rank matrix decomposition to factorize the full word-embedding matrix into two smaller matrices, introducing non-linear transformations to enhance representational capacity.
  • Pre-train the factorized embedding by minimizing reconstruction loss between the original embedding matrix and the product of the decomposed matrices.
  • Fine-tune the compressed embedding using knowledge distillation, where the student model (factorized embedding) learns from the logits of the teacher model (full embedding) on downstream tasks.
  • Use a shared embedding and projection matrix setup in sequence-to-sequence models to maintain consistency and reduce redundancy during compression.
  • Optimize the entire pipeline end-to-end with cross-entropy loss on downstream tasks to align the compressed embedding with task-specific representations.
  • Employ a residual connection or skip-connection mechanism to preserve information flow during the non-linear transformation in the factorized structure.

Experimental results

Research questions

  • RQ1Can non-linear low-rank decomposition with knowledge distillation outperform standard low-rank factorization in compressing word embeddings?
  • RQ2To what extent does the proposed method preserve performance on downstream NLP tasks at high compression rates?
  • RQ3How does the combination of pre-training and knowledge distillation affect the generalization of compressed embeddings in machine translation?
  • RQ4Does the method maintain performance when the same embedding matrix is shared between input and output projections in sequence-to-sequence models?

Key findings

  • The proposed Distilled Embedding method achieves better performance than conventional low-rank matrix factorization across all tested compression rates.
  • It outperforms recently proposed word-embedding compression techniques, particularly at high compression ratios, in machine translation tasks.
  • Knowledge distillation during fine-tuning significantly improves the generalization of the compressed embeddings on downstream tasks.
  • The method maintains competitive performance even when the same embedding matrix is used for both input and output projections, which is common in sequence-to-sequence models.
  • The pre-training phase on full embedding reconstruction enables the factorized model to learn a more accurate approximation of the original embedding space.
  • The non-linear component in the decomposition contributes to better representation learning compared to linear factorization alone.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.