Lune

ICLR2022Top-tier venue

DictFormer: Tiny Transformer with Shared Dictionary

Qian Lou, Ting Hua, Yen-Chang Hsu, Yilin Shen, Hongxia Jin

Abstract

We introduce DictFormer with the efficient shared dictionary to provide a compact, fast, and accurate transformer model. DictFormer significantly reduces the redundancy in the transformer's parameters by replacing the prior transformer's parameters with a compact, shared dictionary, few unshared coefficients, and indices. Also, DictFormer enables faster computations since expensive weights multiplications are converted into cheap shared look-ups on dictionary and few linear projections. Training dictionary and coefficients are not trivial since indices used for looking up dictionary are not differentiable. We adopt a sparse-constraint training with l1  norml_1\,\,norm relaxation to learn coefficients and indices in DictFormer. DictFormer is flexible to support different model sizes by dynamically changing dictionary size. Compared to existing lightweight Transformers, DictFormer consistently reduces model size over Transformer on multiple tasks, e.g., machine translation, abstractive summarization, and language modeling. Extensive experiments show that DictFormer reduces 3.6×3.6\times to 8.9×8.9\times model size with similar accuracy over multiple tasks, compared to Transformer.

Ask Lune

Know where this paper stands in minutes, not an afternoon.

Lune can read the top-tier papers that cite it and the ones closest to it, and tells you what it claims, what came after and where it falls short, each point cited to the paper it comes from. No skimming, no AI slop.

6 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

its abstract · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • MoS: Unleashing Parameter Efficiency of Low-Rank Adaptation with Mixture of Shards cites PRoLoRA: Partial Rotation Empowers More Parameter-Efficient LoRA
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers6

  1. TrojText: Test-time Invisible Textual Trojan InsertionQian Lou, Yepeng Liu, Bo FengICLR 2023 · 5 citations
  2. DictPFL: Efficient and Private Federated Learning on Encrypted GradientsJiaqi Xue, Mayank Kumar, Yuzhang Shang, Shangqian Gao et al.NeurIPS 2025 · 4 citations
  3. PRoLoRA: Partial Rotation Empowers More Parameter-Efficient LoRASheng Wang, Boyang Xue, Jiacheng Ye, Jiyue Jiang et al.ACL 2024
  4. TrojViT: Trojan Insertion in Vision TransformersMengxin Zheng, Qian Lou, Lei JiangCVPR 2023
  5. MoS: Unleashing Parameter Efficiency of Low-Rank Adaptation with Mixture of ShardsSheng Wang, Liheng Chen, Pengan Chen, Jingwei Dong et al.ICLR 2025

Related papers

  1. LightFormer: Light-weight Transformer Using SVD-based Weight Transfer and Parameter SharingXiuqing Lv, Peng Zhang, Sunzhu Li, Guobing Gan et al.ACL Findings 2023 · 9 citations
  2. PartialFormer: Modeling Part Instead of Whole for Machine TranslationTong Zheng, Bei Li, Huiwen Bao, Jiale Wang et al.ACL Findings 2024 · 2 citations
  3. DenseFormer: Enhancing Information Flow in Transformers via Depth Weighted AveragingMatteo Pagliardini, Amirkeivan Mohtashami, François Fleuret, Martin JaggiNeurIPS 2024 · 60 citations
  4. Hypoformer: Hybrid Decomposition Transformer for Edge-friendly Neural Machine TranslationSunzhu Li, Peng Zhang, Guobing Gan, Xiuqing Lv et al.EMNLP 2022 · 3 citations
  5. Share Your Attention: Transformer Weight Sharing via Matrix-based Dictionary LearningMagauiya Zhussip, Dmitriy Shopkhoev, Ammar Ali, Stamatios LefkimmiatisAAAI 2026 · 5 citations
Dusk over the sea between two cliffs drawn in fine vertical lines