SQFT: Low-cost Model Adaptation in Low-precision Sparse Foundation Models
Juan Pablo Muñoz, Jinjie Yuan, Nilesh Jain
TL;DR
SQFT presents a cohesive, end-to-end framework for low-precision sparse fine-tuning of large pre-trained models, tackling the longstanding challenge of merging adapters with compressed weights without sacrificing sparsity or accuracy. It introduces SparsePEFT and QA-SparsePEFT to enable mergeable PEFT in sparse and quantized regimes, coupled with Neural Low-rank Adapter Search to replace fixed-rank LoRA with elastic, task-adaptive adapters. Through extensive experiments across Llama-3-8B, Mistral-7B-v0.3, and Phi-3-Mini-4K-Instruct on GSM8K, math reasoning, and commonsense tasks, SQFT demonstrates competitive or superior performance to baselines while enabling efficient deployment and inference acceleration. The results highlight the practical impact of mergeable adapters for resource-constrained settings, offering a path toward scalable, efficient adaptation of foundation models with controllable trade-offs between accuracy, speed, and memory.
Abstract
Large pre-trained models (LPMs), such as large language models, have become ubiquitous and are employed in many applications. These models are often adapted to a desired domain or downstream task through a fine-tuning stage. This paper proposes SQFT, an end-to-end solution for low-precision sparse parameter-efficient fine-tuning of LPMs, allowing for effective model manipulation in resource-constrained environments. Additionally, an innovative strategy enables the merging of sparse weights with low-rank adapters without losing sparsity and accuracy, overcoming the limitations of previous approaches. SQFT also addresses the challenge of having quantized weights and adapters with different numerical precisions, enabling merging in the desired numerical format without sacrificing accuracy. Multiple adaptation scenarios, models, and comprehensive sparsity levels demonstrate the effectiveness of SQFT. Models and code are available at https://github.com/IntelLabs/Hardware-Aware-Automated-Machine-Learning.
