Language Models as Zero-shot Lossless Gradient Compressors: Towards General Neural Parameter Prior Models
Not on the map. Why?
Abstract (arXiv)
Despite the widespread use of statistical prior models in various fields, such models for neural network gradients have long been overlooked. The inherent challenge stems from their high-dimensional structures and complex interdependencies, which complicate effective modeling. In this work, we demonstrate the potential of large language models (LLMs) to act as gradient priors in a zero-shot setting. We examine the property by considering lossless gradient compression -- a critical application in distributed learning -- that depends heavily on precise probability modeling. To achieve this, we introduce LM-GC, a novel method that integrates LLMs with arithmetic coding. Our technique converts plain gradients into text-like formats, enhancing token efficiency by up to 38 times compared to their plain representations. We ensure that this data conversion maintains a close alignment with the structure of plain gradients and the symbols commonly recognized by LLMs. Our experiments indicate that LM-GC surpasses existing state-of-the-art lossless compression methods, improving compression rates by 10% up to 17.2% across various datasets and architectures. Additionally, our approach shows promising compatibility with lossy compression techniques such as quantization and sparsification. These findings highlight the significant potential of LLMs as a model for effectively handling gradients. Code is available at https://github.com/hui-po-wang/LM-GC.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 30 of its 49 references that are in the map. First posted on arXiv 26 Sep 2024.
Builds on
30 of 49 references.
References · 30
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2023GPT-4 Technical Reportcited by 18,132
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,267
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
- 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,838
- 2017Deep Image Priorcited by 1,097
- 2016HyperNetworkscited by 1,003
18 more
- 2023Distilling Step-by-Step! Outperforming Larger Language Models with Less Training Data and Smaller Model Sizescited by 710
- 2023LLM-Pruner: On the Structural Pruning of Large Language Modelscited by 643
- 2024TinyLlama: An Open-Source Small Language Modelcited by 604
- 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationcited by 571
- 2018signSGD: Compressed Optimisation for Non-Convex Problemscited by 561
- 2023Large Language Models Are Zero-Shot Time Series Forecasterscited by 491
- 2018The Convergence of Sparsified Gradient Methodscited by 228
- 2023Language Modeling Is Compressioncited by 225
- 2017Gradient Sparsification for Communication-Efficient Distributed Optimizationcited by 199
- 2023Large Language Models as General Pattern Machinescited by 196
- 2019All about Structure: Adapting Structural Information across Domains for Boosting Semantic Segmentationcited by 104
- 2022FedDM: Iterative Distribution Matching for Communication-Efficient Federated Learningcited by 65
- 2024Neural Network Diffusioncited by 39
- 2020Language Model Prior for Low-Resource Neural Machine Translationcited by 37
- 2021ProgFed: Effective, Communication, and Computation Efficient Federated Learning by Progressive Trainingcited by 27
- 2020Hijack-GAN: Unintended-Use of Pretrained, Black-Box GANscited by 23
- 2020CosSGD: Communication-Efficient Federated Learning with a Simple Cosine-Based Quantizationcited by 6
- 2023FedLAP-DP: Federated Learning by Sharing Differentially Private Loss Approximationscited by 4
Built on by
Citing papers per year: 2024: 1; 2025: 2; 2026: 1.
4 papers.
- 2025Distributed LLMs and Multimodal Large Language Models: A Survey on Advances, Challenges, and Future Directionscited by 10
- 2024DP-2Stage: Adapting Language Models as Differentially Private Tabular Data Generatorscited by 5
- 2025Is Compression Really Linear with Code Intelligence?cited by 2
- 2026Entropy Reveals Block Importance in Masked Self-Supervised Vision Transformerscited by 1
- 2026Entropy Reveals Block Importance in Masked Self-Supervised Vision Transformers3 Feb 2026
- 2025Is Compression Really Linear with Code Intelligence?16 May 2025
- 2025Distributed LLMs and Multimodal Large Language Models: A Survey on Advances, Challenges, and Future Directions20 Mar 2025
- 2024DP-2Stage: Adapting Language Models as Differentially Private Tabular Data Generators3 Dec 2024