Deriving Coding-Specific Sub-Models from LLMs using Resource-Efficient Pruning

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Puccioni, Laura, Farshin, Alireza, Scazzariello, Mariano, Wang, Changjie, Chiesa, Marco, Kostic, Dejan
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866917887772459008
author Puccioni, Laura
Farshin, Alireza
Scazzariello, Mariano
Wang, Changjie
Chiesa, Marco
Kostic, Dejan
author_facet Puccioni, Laura
Farshin, Alireza
Scazzariello, Mariano
Wang, Changjie
Chiesa, Marco
Kostic, Dejan
contents Large Language Models (LLMs) have demonstrated their exceptional performance in various complex code generation tasks. However, their broader adoption is limited by significant computational demands and high resource requirements, particularly memory and processing power. To mitigate such requirements, model pruning techniques are used to create more compact models with significantly fewer parameters. However, current approaches do not focus on the efficient extraction of programming-language-specific sub-models. In this work, we explore the idea of efficiently deriving coding-specific sub-models through unstructured pruning (i.e., Wanda). We investigate the impact of different domain-specific calibration datasets on pruning outcomes across three distinct domains and extend our analysis to extracting four language-specific sub-models: Python, Java, C++, and JavaScript. We are the first to efficiently extract programming-language-specific sub-models using appropriate calibration datasets while maintaining acceptable accuracy w.r.t. full models. We are also the first to provide analytical evidence that domain-specific tasks activate distinct regions within LLMs, supporting the creation of specialized sub-models through unstructured pruning. We believe that this work has significant potential to enhance LLM accessibility for coding by reducing computational requirements to enable local execution on consumer-grade hardware, and supporting faster inference times critical for real-time development feedback.
format Preprint
id arxiv_https___arxiv_org_abs_2501_05248
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Deriving Coding-Specific Sub-Models from LLMs using Resource-Efficient Pruning
Puccioni, Laura
Farshin, Alireza
Scazzariello, Mariano
Wang, Changjie
Chiesa, Marco
Kostic, Dejan
Machine Learning
Artificial Intelligence
Software Engineering
I.2.2; I.2.6; D.1.2
Large Language Models (LLMs) have demonstrated their exceptional performance in various complex code generation tasks. However, their broader adoption is limited by significant computational demands and high resource requirements, particularly memory and processing power. To mitigate such requirements, model pruning techniques are used to create more compact models with significantly fewer parameters. However, current approaches do not focus on the efficient extraction of programming-language-specific sub-models. In this work, we explore the idea of efficiently deriving coding-specific sub-models through unstructured pruning (i.e., Wanda). We investigate the impact of different domain-specific calibration datasets on pruning outcomes across three distinct domains and extend our analysis to extracting four language-specific sub-models: Python, Java, C++, and JavaScript. We are the first to efficiently extract programming-language-specific sub-models using appropriate calibration datasets while maintaining acceptable accuracy w.r.t. full models. We are also the first to provide analytical evidence that domain-specific tasks activate distinct regions within LLMs, supporting the creation of specialized sub-models through unstructured pruning. We believe that this work has significant potential to enhance LLM accessibility for coding by reducing computational requirements to enable local execution on consumer-grade hardware, and supporting faster inference times critical for real-time development feedback.
title Deriving Coding-Specific Sub-Models from LLMs using Resource-Efficient Pruning
topic Machine Learning
Artificial Intelligence
Software Engineering
I.2.2; I.2.6; D.1.2
url https://arxiv.org/abs/2501.05248