paper-with-me

Papers

DictFormer: Tiny Transformer with Shared Dictionary

2021-09-29 · ICLR 2022 4 · Qian Lou, Ting Hua, Yen-Chang Hsu, Yilin Shen, Hongxia Jin

We introduce DictFormer with 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 compact, shared dictionary, a few unshared coefficients, and indices. Also, DictFormer enables faster computations since expensive weights multiplications are converted into cheap shared look-ups on dictionary and a 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 $l_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 improves performance on multiple tasks, e.g., machine translation, abstractive summarization, and language modeling. Extensive experiments show that DictFormer outperforms prior light-weight transformer by $\sim2$ BLEU for machine translation task and achieves $\sim 1.7$ lower perplexity for the language modeling task, when matching or reducing the model size of the original transformer. Also, DictFormer reduces $6.3\times$ to $8.9\times$ model size on average without losing accuracy.

📄 PDF Abstract BibTeX

Code (0)

등록된 구현이 없습니다.

Tasks

Abstractive Text SummarizationLanguage ModelingLanguage ModellingMachine TranslationTranslation

Similar Papers 제목 키워드 기반

Share Your Attention: Transformer Weight Sharing via Matrix-based Dictionary Learning

2025-08-06 · Magauiya Zhussip, Dmitriy Shopkhoev, Ammar Ali, Stamatios Lefkimmiatis arxiv

Large language models have revolutionized AI applications, yet their high computational and memory demands hinder their widespread deployment. Existing compression techniques focus on intra-block optimizations (e.g., low…

Image Classification

DNF: Unconditional 4D Generation with Dictionary-based Neural Fields

2024-12-06 · CVPR 2025 1 · Xinyi Zhang, Naiqi Li, Angela Dai

While remarkable success has been achieved through diffusion-based 3D generative models for shapes, 4D generative modeling remains challenging due to the complexity of object deformations over time. We propose DNF, a new…

Dictionary Learning

Class specific or shared? A cascaded dictionary learning framework for image classification

2019-04-17 · Yan-Jiang Wang, Shuai Shao, Rui Xu, Werifeng Liu 외

Dictionary learning methods can be split into: i) class specific dictionary learning ii) class shared dictionary learning. The difference between the two categories is how to use discriminative information. With the firs…

Dictionary LearningGeneral Classificationimage-classificationImage Classification

On The Alignment Problem In Multi-Head Attention-Based Neural Machine Translation

2018-09-11 · WS 2018 10 · Tamer Alkhouli, Gabriel Bretschner, Hermann Ney

This work investigates the alignment problem in state-of-the-art multi-head attention models based on the transformer architecture. We demonstrate that alignment extraction in transformer models can be improved by augmen…

Machine TranslationTranslation

COMPOT: Calibration-Optimized Matrix Procrustes Orthogonalization for Transformers Compression

2026-02-16 · Denis Makhov, Dmitriy Shopkhoev, Magauiya Zhussip, Ammar Ali 외 arxiv

Post-training compression of Transformer models commonly relies on truncated singular value decomposition (SVD). However, enforcing a single shared subspace can degrade accuracy even at moderate compression. Sparse dicti…