Compressing Transformer Language Models via Matrix Product Operator Decomposition: A Case Study on PicoGPT
Younes Javanmard, Tanmoy Pandit, Masoud Mardani

TL;DR
This paper explores MPO decomposition as a method to compress transformer language models, achieving significant size reduction while maintaining high accuracy, demonstrated on a small GPT-2 style model.
Contribution
It introduces MPO-based linear layers for transformers, showing effective compression and competitive performance on a character-level language model.
Findings
Up to 13x compression per transformer block at bond dimension 4.
Model with 16 bond dimension retains 97.7% accuracy with 191,872 parameters.
MPO compression outperforms low-rank and pruning methods in efficiency and effectiveness.
Abstract
Transformer-based language models achieve strong performance across NLP tasks, but their quadratic parameter scaling with hidden dimension makes deployment on resource-constrained hardware expensive. We study Matrix Product Operator (MPO) decomposition as a principled compression method for transformers. MPO factorises weight matrices into chains of low-rank cores, with approximation quality controlled by the bond dimension chi. We replace every nn.Linear layer in PicoGPT, a GPT-2-style character-level language model with about 1M parameters, with an MPOLinear module parameterised as an MPO chain. Cores are initialised either by TT-SVD from pretrained dense weights or from random initialisation, and trained using standard PyTorch autograd without a custom backward pass. We derive balanced factorisation schemes for the five distinct weight shapes in PicoGPT and evaluate bond dimensions…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
