pith. sign in

arxiv: 1806.09464 · v1 · pith:2F4RKJINnew · submitted 2018-06-21 · 💻 cs.LG · cs.AI· stat.ML

Learning K-way D-dimensional Discrete Codes for Compact Embedding Representations

classification 💻 cs.LG cs.AIstat.ML
keywords embeddingdiscreteencodingsymbolapproachcodecodescompact
0
0 comments X
read the original abstract

Conventional embedding methods directly associate each symbol with a continuous embedding vector, which is equivalent to applying a linear transformation based on a "one-hot" encoding of the discrete symbols. Despite its simplicity, such approach yields the 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 the proposed "KD encoding", each symbol is represented by a $D$-dimensional code with a cardinality of $K$, and the final symbol embedding vector is generated by composing the code embedding vectors. To end-to-end learn semantically meaningful codes, we derive a relaxed discrete optimization approach based on stochastic gradient descent, which can be generally applied to any differentiable computational graph with an embedding layer. In our experiments with various applications from natural language processing to graph convolutional networks, the total size of the embedding layer can be reduced up to 98\% while achieving similar or better performance.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 2 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. Latent Multi-Criteria Ratings for Recommendations

    cs.LG 2019-06 unverdicted novelty 5.0

    Uses variational autoencoders on user reviews to generate latent multi-criteria ratings that outperform baselines on multiple datasets.

  2. Learning Compressed Sentence Representations for On-Device Text Processing

    cs.CL 2019-06 unverdicted novelty 5.0

    Four binarization strategies turn continuous sentence embeddings into binary form, cutting storage by over 98% with only about 2% performance drop on downstream tasks.