Papers › Differentiable Product Quantization for End-to-End Embedding Compression

Differentiable Product Quantization for End-to-End Embedding Compression

26 Aug 2019arXiv:1908.09756archive 2025-07-28

Ting Chen, Lala Li, Yizhou Sun

Embedding layers are commonly used to map discrete symbols into continuous embedding vectors that reflect their semantic meanings. Despite their effectiveness, the number of parameters in an embedding layer increases linearly with the number of symbols and poses a critical challenge on memory and storage constraints. In this work, we propose a generic and end-to-end learnable compression framework termed differentiable product quantization (DPQ). We present two instantiations of DPQ that leverage different approximation techniques to enable differentiability in end-to-end learning. Our method can readily serve as a drop-in alternative for any existing embedding layer. Empirically, DPQ offers significant compression ratios (14-238×) at negligible or no performance cost on 10 datasets across three different language tasks.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1908.09756")

Code

Syntology Ran 0 of 21 code samples harvested from 2 repositories linked to this paper; 21 have no recorded run.

By repository: official repository: 19 samples from 1 repository, 0 ran; community (archive-listed): 2 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

chentingpc/dpq_embedding_compression officialmentioned in papermentioned on GitHubtfMIT report
badranX/dpq-embedding-compression-torch mentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

21 samples harvested; 0 ran; 0 honoured the contract we drafted; 21 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

21unverified

Licence: 0 of the 21 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

create_attention_mechanism chentingpc/dpq_embedding_compression/nmt/attention_model.py official repository unverified MIT (permissive) · ea4b66669118df2a · report
create_hparams chentingpc/dpq_embedding_compression/nmt/nmt.py official repository unverified MIT (permissive) · 832ca854f7902512 · report
create_train_model chentingpc/dpq_embedding_compression/nmt/model_helper.py official repository unverified MIT (permissive) · 88f3138a4297b1a4 · report
ensure_compatible_hparams chentingpc/dpq_embedding_compression/nmt/nmt.py official repository unverified MIT (permissive) · b5cf13bcd19f3b4f · report
extend_hparams chentingpc/dpq_embedding_compression/nmt/nmt.py official repository unverified MIT (permissive) · 83180a35260f562c · report
full_embed chentingpc/dpq_embedding_compression/core/kdq_embedding.py official repository unverified MIT (permissive) · c50945e9a7543186 · report
get_device_str chentingpc/dpq_embedding_compression/nmt/model_helper.py official repository unverified MIT (permissive) · 2a36567acaec78fc · report
get_initializer chentingpc/dpq_embedding_compression/nmt/model_helper.py official repository unverified MIT (permissive) · a37117218aee8b75 · report
get_model_creator chentingpc/dpq_embedding_compression/nmt/inference.py official repository unverified MIT (permissive) · 13a71c88520430e1 · report
gnmt_residual_fn chentingpc/dpq_embedding_compression/nmt/gnmt_model.py official repository unverified MIT (permissive) · c983781db93a0034 · report
import_state_tuples chentingpc/dpq_embedding_compression/lm/util.py official repository unverified MIT (permissive) · 6c3e8d655ba4f96f · report
load_data chentingpc/dpq_embedding_compression/nmt/inference.py official repository unverified MIT (permissive) · 103f4f775fb6e2a1 · report
ptb_producer chentingpc/dpq_embedding_compression/lm/reader.py official repository unverified MIT (permissive) · 04184dc6f54720cb · report
ptb_raw_data chentingpc/dpq_embedding_compression/lm/reader.py official repository unverified MIT (permissive) · 561a2b80babeec15 · report
safer_log chentingpc/dpq_embedding_compression/core/kd_quantizer.py official repository unverified MIT (permissive) · ca301ee7fca5613b · report
sample_gumbel chentingpc/dpq_embedding_compression/core/kd_quantizer.py official repository unverified MIT (permissive) · 021c15a57e72960e · report
start_sess_and_load_model chentingpc/dpq_embedding_compression/nmt/inference.py official repository unverified MIT (permissive) · ac479d3b7f4ad5dc · report
with_autoparallel_prefix chentingpc/dpq_embedding_compression/lm/util.py official repository unverified MIT (permissive) · 35837a902c6818e0 · report
with_prefix chentingpc/dpq_embedding_compression/lm/util.py official repository unverified MIT (permissive) · d8bb8f7714a59b82 · report
safer_log badranX/dpq-embedding-compression-torch/dpq/kd_quantizer.py community (archive-listed) unverified MIT (permissive) · 738a6c900ea8fbb6 · report
sample_gumbel badranX/dpq-embedding-compression-torch/dpq/kd_quantizer.py community (archive-listed) unverified MIT (permissive) · 374759d95c8eb54c · report

Tasks

Quantization

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections