paper-with-me

홈 › Papers

PiSSA: Principal Singular Values and Singular Vectors Adaptation of Large Language Models

2024-04-03 · Fanxu Meng, Zhaohui Wang, Muhan Zhang

To parameter-efficiently fine-tune (PEFT) large language models (LLMs), the low-rank adaptation (LoRA) method approximates the model changes $\Delta W \in \mathbb{R}^{m \times n}$ through the product of two matrices $A \in \mathbb{R}^{m \times r}$ and $B \in \mathbb{R}^{r \times n}$, where $r \ll \min(m, n)$, $A$ is initialized with Gaussian noise, and $B$ with zeros. LoRA freezes the original model $W$ and updates the "Noise & Zero" adapter, which may lead to slow convergence. To overcome this limitation, we introduce Principal Singular values and Singular vectors Adaptation (PiSSA). PiSSA shares the same architecture as LoRA, but initializes the adaptor matrices $A$ and $B$ with the principal components of the original matrix $W$, and put the remaining components into a residual matrix $W^{res} \in \mathbb{R}^{m \times n}$ which is frozen during fine-tuning. Compared to LoRA, PiSSA updates the principal components while freezing the "residual" parts, allowing faster convergence and enhanced performance. Comparative experiments of PiSSA and LoRA across 12 different models, ranging from 184M to 70B, encompassing 5 NLG and 8 NLU tasks, reveal that PiSSA consistently outperforms LoRA under identical experimental setups. On the GSM8K benchmark, Mistral-7B fine-tuned with PiSSA achieves an accuracy of 72.86%, surpassing LoRA's 67.7% by 5.16%. Due to the same architecture, PiSSA is also compatible with quantization to further reduce the memory requirement of fine-tuning. Compared to QLoRA, QPiSSA (PiSSA with 4-bit quantization) exhibits smaller quantization errors in the initial stages. Fine-tuning LLaMA-3-70B on GSM8K, QPiSSA attains an accuracy of 86.05%, exceeding the performances of QLoRA at 81.73%. Leveraging a fast SVD technique, PiSSA can be initialized in only a few seconds, presenting a negligible cost for transitioning from LoRA to PiSSA.

📄 PDF Abstract BibTeX arXiv:2404.02948

Code (1)

graphpku/pissa 공식 구현 pytorch

Tasks

GSM8KQuantization

Similar Papers 제목 키워드 기반

SORSA: Singular Values and Orthonormal Regularized Singular Vectors Adaptation of Large Language Models

2024-08-21 · Yang Cao

In this paper, we propose Singular Values and Orthonormal Regularized Singular Vectors Adaptation, or SORSA, a novel PEFT method. Each SORSA adapter consists of two main parts: trainable principal singular weights $W_p =…

8kGSM8KMathparameter-efficient fine-tuning

CLOVER: Cross-Layer Orthogonal Vectors Pruning and Fine-Tuning

2024-11-26 · Fanxu Meng, Pingzhi Tang, Fan Jiang, Muhan Zhang

Decoder-only models generate tokens autoregressively by caching key/value vectors, but as the cache grows, inference becomes memory-bound. To address this issue, we introduce CLOVER (Cross-Layer Orthogonal Vectors), a no…

LoRA-PT: Low-Rank Adapting UNETR for Hippocampus Segmentation Using Principal Tensor Singular Values and Vectors

2024-07-16 · Guanghua He, Wangang Cheng, Hancan Zhu, Gaohang Yu

The hippocampus is a crucial brain structure associated with various psychiatric disorders, and its automatic and precise segmentation is essential for studying these diseases. In recent years, deep learning-based method…

BraTS2021HippocampusImage SegmentationMedical Image Segmentation+4

Spectral-Aware Low-Rank Adaptation for Speaker Verification

2025-01-07 · Zhe Li, Man-Wai Mak, Mert Pilanci, Hung-Yi Lee 외

Previous research has shown that the principal singular vectors of a pre-trained model's weight matrices capture critical knowledge. In contrast, those associated with small singular values may contain noise or less reli…

parameter-efficient fine-tuningSpeaker Verification

On the Noise Sensitivity of the Randomized SVD

2023-05-27 · Elad Romanov

The randomized singular value decomposition (R-SVD) is a popular sketching-based algorithm for efficiently computing the partial SVD of a large matrix. When the matrix is low-rank, the R-SVD produces its partial SVD exac…

DenoisingDimensionality ReductionSensitivity