English

Learning K-way D-dimensional Discrete Code For Compact Embedding Representations

Machine Learning 2017-12-12 v3 Artificial Intelligence Machine Learning

Abstract

Embedding methods such as word embedding have become pillars for many applications containing discrete structures. Conventional embedding methods directly associate each symbol with a continuous embedding vector, which is equivalent to applying linear transformation based on "one-hot" encoding of the discrete symbols. Despite its simplicity, such approach yields number of parameters that grows linearly with the vocabulary size and can lead to overfitting. In this work we propose a much more compact K-way D-dimensional discrete encoding scheme to replace the "one-hot" encoding. In "KD encoding", each symbol is represented by a DD-dimensional code, and each of its dimension has a cardinality of KK. The final symbol embedding vector can be generated by composing the code embedding vectors. To learn the semantically meaningful code, we derive a relaxed discrete optimization technique based on stochastic gradient descent. By adopting the new coding system, the efficiency of parameterization can be significantly improved (from linear to logarithmic), and this can also mitigate the over-fitting problem. In our experiments with language modeling, the number of embedding parameters can be reduced by 97\% while achieving similar or better performance.

Keywords

Cite

@article{arxiv.1711.03067,
  title  = {Learning K-way D-dimensional Discrete Code For Compact Embedding Representations},
  author = {Ting Chen and Martin Renqiang Min and Yizhou Sun},
  journal= {arXiv preprint arXiv:1711.03067},
  year   = {2017}
}

Comments

NIPS'17 DISCML

R2 v1 2026-06-22T22:40:14.281Z