paper-with-me

홈 › Papers

CompactifAI: Extreme Compression of Large Language Models using Quantum-Inspired Tensor Networks

2024-01-25 · Andrei Tomut, Saeed S. Jahromi, Abhijoy Sarkar, Uygar Kurt, Sukhbinder Singh, Faysal Ishtiaq, Cesar Muñoz, Prabdeep Singh Bajaj, Ali Elborady, Gianni Del Bimbo, Mehrazin Alizadeh, David Montero, Pablo Martin-Ramiro, Muhammad Ibrahim, Oussama Tahiri Alaoui, John Malcolm, Samuel Mugel, Roman Orus

Large Language Models (LLMs) such as ChatGPT and LlaMA are advancing rapidly in generative Artificial Intelligence (AI), but their immense size poses significant challenges, such as huge training and inference costs, substantial energy demands, and limitations for on-site deployment. Traditional compression methods such as pruning, distillation, and low-rank approximation focus on reducing the effective number of neurons in the network, while quantization focuses on reducing the numerical precision of individual weights to reduce the model size while keeping the number of neurons fixed. While these compression methods have been relatively successful in practice, there is no compelling reason to believe that truncating the number of neurons is an optimal strategy. In this context, this paper introduces CompactifAI, an innovative LLM compression approach using quantum-inspired Tensor Networks that focuses on the model's correlation space instead, allowing for a more controlled, refined and interpretable model compression. Our method is versatile and can be implemented with - or on top of - other compression techniques. As a benchmark, we demonstrate that a combination of CompactifAI with quantization allows to reduce a 93% the memory size of LlaMA 7B, reducing also 70% the number of parameters, accelerating 50% the training and 25% the inference times of the model, and just with a small accuracy drop of 2% - 3%, going much beyond of what is achievable today by other compression techniques. Our methods also allow to perform a refined layer sensitivity profiling, showing that deeper layers tend to be more suitable for tensor network compression, which is compatible with recent observations on the ineffectiveness of those layers for LLM performance. Our results imply that standard LLMs are, in fact, heavily overparametrized, and do not need to be large at all.

📄 PDF Abstract BibTeX arXiv:2401.14109

Code (0)

등록된 구현이 없습니다.

Tasks

Model CompressionQuantizationTensor Networks

Methods 이 논문이 사용한 방법론

Focus 설명 없음

Similar Papers 제목 키워드 기반

Accuracy and Consumption analysis from a compressed model by CompactifAI from Multiverse Computing

2025-07-07 · Damien Fovet, Shashank Chamoli, Sarah Oury, Srishti Singhal arxiv

This study evaluates the performance of a compression method, called CompactifAI, developed by Multiverse Computing, applied to the large language model Llama 3.1 8B\cite{llama}. The evaluation focused on model efficienc…

Quantum Data Compression and Quantum Cross Entropy

2021-06-25 · Zhou Shangnan

The emerging field of quantum machine learning has the potential of revolutionizing our perspectives of quantum computing and artificial intelligence. In the predominantly empirical realm of quantum machine learning, a t…

BIG-bench Machine LearningData CompressionQuantum Machine Learning

Quantum adaptive agents with efficient long-term memories

2021-08-24 · Thomas J. Elliott, Mile Gu, Andrew J. P. Garner, Jayne Thompson

Central to the success of adaptive systems is their ability to interpret signals from their environment and respond accordingly -- they act as agents interacting with their surroundings. Such agents typically perform bet…

On compression rate of quantum autoencoders: Control design, numerical and experimental realization

2020-05-22 · Hailan Ma, Chang-Jiang Huang, Chunlin Chen, Daoyi Dong 외

Quantum autoencoders which aim at compressing quantum information in a low-dimensional latent space lie in the heart of automatic data compression in the field of quantum information. In this paper, we establish an upper…

Data Compression

Extreme Model Compression for On-device Natural Language Understanding

2020-11-30 · COLING 2020 8 · Kanthashree Mysore Sathyendra, Samridhi Choudhary, Leah Nicolich-Henkin

In this paper, we propose and experiment with techniques for extreme compression of neural natural language understanding (NLU) models, making them suitable for execution on resource-constrained devices. We propose a tas…

Model CompressionNatural Language Understanding