Search engine for discovering works of Art, research articles, and books related to Art and Culture
ShareThis
Javascript must be enabled to continue!

Comparing pruned Llama 3 and Llama 2 models for on-device AI assistants

View through CrossRef
Abstract Sparse connectivity is ubiquitous in biological neural networks. In the machine learning field, it has a long history to train dense neural networks then prune them for sparse connectivity. Recently, this research direction was extended to pruning and sparsifying large language models (LLMs), for which many numerical methods have been invented. Previously, we adopted one of such methods to prune the Llama-2 7B model, in order to develop small-sized language models for on-device AI assistants. We figured out that its sparsity limit is 60\%, at which the pruned Llama-2 7B model could generate fluent and helpful answers to daily queries despite occasional factual inaccuracies. In this article, we extended previous pruning and evaluation methods to the newly-released Llama-3 8B model. We found that this Llama 3 model has a sparsity limit of 53\%, at which it produced fewer factual inaccuracies than Llama 2 at the sparsity limits but required more parameters. We hypothesized that the accuracy improvement is due to the longer context window and larger training dataset used in Llama 3, while the increased parameter requirement is due to its versatility in generating both text and code output. Based on these results and insights, we proposed future directions to boost the model performance after pruning, paving the way for lightweight LLMs as on-device AI assistants.
Springer Science and Business Media LLC
Title: Comparing pruned Llama 3 and Llama 2 models for on-device AI assistants
Description:
Abstract Sparse connectivity is ubiquitous in biological neural networks.
In the machine learning field, it has a long history to train dense neural networks then prune them for sparse connectivity.
Recently, this research direction was extended to pruning and sparsifying large language models (LLMs), for which many numerical methods have been invented.
Previously, we adopted one of such methods to prune the Llama-2 7B model, in order to develop small-sized language models for on-device AI assistants.
We figured out that its sparsity limit is 60\%, at which the pruned Llama-2 7B model could generate fluent and helpful answers to daily queries despite occasional factual inaccuracies.
In this article, we extended previous pruning and evaluation methods to the newly-released Llama-3 8B model.
We found that this Llama 3 model has a sparsity limit of 53\%, at which it produced fewer factual inaccuracies than Llama 2 at the sparsity limits but required more parameters.
We hypothesized that the accuracy improvement is due to the longer context window and larger training dataset used in Llama 3, while the increased parameter requirement is due to its versatility in generating both text and code output.
Based on these results and insights, we proposed future directions to boost the model performance after pruning, paving the way for lightweight LLMs as on-device AI assistants.

Related Results

Llama Llama Gram and Grandpa by A. Dewdney
Llama Llama Gram and Grandpa by A. Dewdney
Dewdney, Anna. Llama Llama Gram and Grandpa.  New York, NY:  Viking, 2015.  PrintThis is one of a series of Llama Llama books by author/illustrator Anna Dewdney.   In this volume, ...
Comparing sparse Llama 3 and Llama 2 models for on-device AI assistants
Comparing sparse Llama 3 and Llama 2 models for on-device AI assistants
Abstract Sparse connectivity is ubiquitous in biological neural networks. In the machine learning field, it has a long history to train dense neural networks then p...
Investigating user perceptions of commercial virtual assistants: A qualitative study
Investigating user perceptions of commercial virtual assistants: A qualitative study
As commercial virtual assistants become an integrated part of almost every smart device that we use on a daily basis, including but not limited to smartphones, speakers, personal c...
Blind Vision Voice Assistant
Blind Vision Voice Assistant
Visual Impaired Voice Assistants are software applications that have been designed to provide assistance to visually impaired people by using voice commands and text-to-speech tech...
Determining the Nutritional Value of Sausages made with Llama and Alpaca Meat with the Addition of Goose Flour and Mashua
Determining the Nutritional Value of Sausages made with Llama and Alpaca Meat with the Addition of Goose Flour and Mashua
This research determined the nutritional value of salami made with South American camelid meat as an alternative to non-traditional meat. The camelid meat in the form of sausages c...
Genomic prediction using information across years with epistatic models and dimension reduction via haplotype blocks
Genomic prediction using information across years with epistatic models and dimension reduction via haplotype blocks
The importance of accurate genomic prediction of phenotypes in plant breeding is undeniable, as higher prediction accuracy can increase selection responses. In this regard, epistas...
Bio-based flame retardant for sustainable building materials
Bio-based flame retardant for sustainable building materials
As new promising alternatives, novel bio-based materials are already developed to apply in construction sectors due to biodegradability, low toxicity, sustainability, renewability,...

Back to Top