# From Low Rank Gradient Subspace Stabilization to Low-Rank Weights: Observations, Theories, and Applications

저랭크 그래디언트 부분공간 안정화에서 저랭크 가중치로: 관찰, 이론, 그리고 응용

Jaiswal, Ajay, Wang, Yifan, Yin, Lu, Liu, Shiwei, Chen, Runjin, Zhao, Jiawei 외 3명 · arXiv · 2024년 7월 15일

- **연구 문제** 대형 언어 모델의 가중치 저랭크 구조가 학습 중 그래디언트 안정화와 어떻게 연결되는지 설명하고, 이를 압축과 fine-tuning에 활용할 방법이 필요합니다.
- **연구 방법** Hessian 고유공간 안정화 이론을 바탕으로 레이어별 정규화 특이값 임계값으로 LRC와 N-LRC를 나누고, LRC만 압축하거나 미세조정하는 WeLore를 제안합니다.
- **주요 결과** WeLore-COMP는 여러 perplexity 비교에서 Uniform 감소보다 낮은 perplexity를 보였고, LRC 중심 fine-tuning은 50% 압축 설정에서 학습 가능한 파라미터 35%로 전체 fine-tuning과 비슷하거나 나은 성능을 보고합니다.

## 저랭크 구조가 왜 생기는가

대형 언어 모델의 가중치 행렬은 실제로 저랭크 형태로 근사될 수 있어 메모리와 연산 자원을 줄일 여지가 있습니다. 그러나 이 저랭크 구조가 어떻게 생겨나는지는 충분히 설명되지 않았습니다. 이 논문은 저랭크 구조의 출현을 pre-training 중 그래디언트 부분공간이 안정화되는 과정과 연결해서 살펴봅니다. 이를 위해 손실 함수의 Hessian 고유공간이 학습 중 어떻게 변하는지 이론적으로 분석합니다.

![Figure 2: (Row 1) Gradients subspace similarity obtained from various checkpoints during pretraining of LLaMA-130M on C4 dataset for 25,000 training steps usin…](https://refivu.com/papers/3719b5df-ba28-43e0-9d65-ae8a5299fea6/figures/figure-f44ff3cf2d9c851f9b55c0d800f3fa7e.png?thumb=512)

**Figure 2** . (Row 1) Gradients subspace similarity obtained from various checkpoints during pretraining of LLaMA-130M on C4 dataset for 25,000 training steps using Adam Optimizer. (Row 2) Emergence of Low-rank Weight Subspace during pretraining of LLaMA-130M. Each row of individual subplot represents the singular values of weights in a given training step.

[원문](https://arxiv.org/abs/2407.11239v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Jaiswal, Ajay, Wang, Yifan, Yin, Lu, Liu, Shiwei, Chen, Runjin, Zhao, Jiawei, Grama, Ananth, Tian, Yuandong, Wang, Zhangyang · From Low Rank Gradient Subspace Stabilization to Low-Rank Weights: Observations, Theories, and Applications · 원문 그림 인용 · 원본 PDF 4쪽에서 그림 영역을 추출했습니다.

## Hessian 고유공간의 안정화와 그래디언트 정렬

Theorem 2.1은 Hessian의 고유값과 상위 r개 고유공간이 학습 중 안정화된다는 결과입니다. 증명은 Hessian의 단계별 변화를 Lipschitz 조건으로 제한하고, KŁ 조건에서 그래디언트 노름이 거듭제곱 법칙으로 줄어든다는 사실을 사용합니다. Theorem 2.2는 그래디언트 G\_t가 Hessian의 주요 고유공간에 점근적으로 정렬된다는 결과입니다. 이 증명은 비지배 성분에 스펙트럴 갭 조건을 적용해 그 성분이 기하급수적으로 줄어든다는 점을 보입니다.

![Figure 1: Hessian gap across layers and components of LLaMA2-7B. We observe that: 1) mlp.up proj, mlp.down proj, and self attn.v proj exhibit less pronounced…](https://refivu.com/papers/3719b5df-ba28-43e0-9d65-ae8a5299fea6/figures/figure-7265cc8a0d04688a66d4792fd0d3cc4c.png?thumb=512)

**Figure 1** . Hessian gap across layers and components of LLaMA2-7B. We observe that: 1) mlp.up proj, mlp.down proj, and self attn.v proj exhibit less pronounced Hessian gaps compared to self attn.k proj, self attn.q proj, self attn.o proj, and mlp.gate proj; 2) early and late layers generally display clearer gaps than middle layers; 3) components with a pronounced Hessian gap (self attn.k proj, self attn.q proj, self attn.o proj, and mlp.gate proj) tend to be more low-rank, as shown in our experiments.

[원문](https://arxiv.org/abs/2407.11239v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Jaiswal, Ajay, Wang, Yifan, Yin, Lu, Liu, Shiwei, Chen, Runjin, Zhao, Jiawei, Grama, Ananth, Tian, Yuandong, Wang, Zhangyang · From Low Rank Gradient Subspace Stabilization to Low-Rank Weights: Observations, Theories, and Applications · 원문 그림 인용 · 원본 PDF 3쪽에서 그림 영역을 추출했습니다.

## WeLore-COMP 압축과 LRC 분류

WeLore-COMP는 각 레이어의 가중치 행렬에 대해 torch.svd로 얻은 정규화 특이값을 전역 임계값 k와 비교합니다. 임계값 이상의 특이값 개수로 각 레이어의 랭크 r을 정하며, 전체 랭크 감소 비율인 ERR가 목표값에 맞도록 k를 선형 탐색으로 찾습니다. 레이어의 저랭크 분해 랭크가 원래 랭크의 0.5배보다 작으면 LRC로 분류되고 나머지는 N-LRC로 남습니다. LRC의 가중치 행렬은 두 작은 행렬의 곱으로 바뀌어 압축됩니다.

![Figure 3: Normalized singular values of the weight matrices cor- responding to different layers of LLaMa-2 7B pretrained check- point from HuggingFace. Each su…](https://refivu.com/papers/3719b5df-ba28-43e0-9d65-ae8a5299fea6/figures/figure-c9ef0ce0efa1764b0827ff37b452b6c1.png?thumb=512)

**Figure 3** . Normalized singular values of the weight matrices cor- responding to different layers of LLaMa-2 7B pretrained check- point from HuggingFace. Each subplot indicates 4096 sorted and normalized singular values corresponding to a layer ( e.g., self attn.q proj) from 32 transformer blocks.

[원문](https://arxiv.org/abs/2407.11239v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Jaiswal, Ajay, Wang, Yifan, Yin, Lu, Liu, Shiwei, Chen, Runjin, Zhao, Jiawei, Grama, Ananth, Tian, Yuandong, Wang, Zhangyang · From Low Rank Gradient Subspace Stabilization to Low-Rank Weights: Observations, Theories, and Applications · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.

## LRC 중심 fine-tuning

WeLore-PEFT는 압축된 체크포인트에서 LRC만 역전파로 갱신하고 N-LRC는 고정합니다. LRC는 저랭크 형식으로 표현되어 그래디언트와 옵티마이저 상태도 저랭크로 유지됩니다. 원문은 50% 압축된 LLaMA-7B에서 LRC fine-tuning이 N-LRC fine-tuning보다 학습 손실과 검증 perplexity가 더 좋았고, 처리량은 약 2배라고 보고합니다. 이 결과는 해당 압축 설정과 연속 fine-tuning 조건에서 얻은 것입니다.

## 압축과 fine-tuning 결과

LLaMa-2 7B에서 EER 30% 조건의 perplexity는 WeLore-COMP가 Uniform 감소보다 약 6.4배 우수하다고 보고됩니다. 같은 표에서 OWL 감소는 Uniform보다 나은 경우도 있지만 감소 비율이 커질수록 성능 저하가 더 심합니다. 50% 압축된 LLaMA-2 7B에서 WeLore는 전체 fine-tuning 대비 학습 가능한 파라미터의 35%만 필요하고 처리량은 약 3배, GPU 메모리 사용량은 40% 감소한다고 보고됩니다. 사실 기반 질의응답 과제에서는 WeLore-COMP가 SVD-LLM보다 약간 낮습니다.

![Table 1: Perplexity (C4 dataset) comparison of LLaMa-2 7B, 13B and Mistral-7B pretrained checkpoints compressed with WeLore-COMP, Uniform, and outlier-sensitiv…](https://refivu.com/papers/3719b5df-ba28-43e0-9d65-ae8a5299fea6/figures/figure-af72591948dc71094ed08a9068c3878b.png?thumb=512)

**Table 1** . Perplexity (C4 dataset) comparison of LLaMa-2 7B, 13B and Mistral-7B pretrained checkpoints compressed with WeLore-COMP, Uniform, and outlier-sensitive rank reduction ratios.

[원문](https://arxiv.org/abs/2407.11239v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Jaiswal, Ajay, Wang, Yifan, Yin, Lu, Liu, Shiwei, Chen, Runjin, Zhao, Jiawei, Grama, Ananth, Tian, Yuandong, Wang, Zhangyang · From Low Rank Gradient Subspace Stabilization to Low-Rank Weights: Observations, Theories, and Applications · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

![Table 6: Downstream performance of Dense and WeLore compressed LLaMa-2 7B checkpoint under full-finetuning along with memory- efficient finetuning techniques (…](https://refivu.com/papers/3719b5df-ba28-43e0-9d65-ae8a5299fea6/figures/figure-7f5acf796fdec48411223a7292058b6f.png?thumb=512)

**Table 6** . Downstream performance of Dense and WeLore compressed LLaMa-2 7B checkpoint under full-finetuning along with memory- efficient finetuning techniques (LoRA and GaLore). All downstream finetuning is performed starting from the same initial checkpoint state for fair comparison.

[원문](https://arxiv.org/abs/2407.11239v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Jaiswal, Ajay, Wang, Yifan, Yin, Lu, Liu, Shiwei, Chen, Runjin, Zhao, Jiawei, Grama, Ananth, Tian, Yuandong, Wang, Zhangyang · From Low Rank Gradient Subspace Stabilization to Low-Rank Weights: Observations, Theories, and Applications · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

## 이론과 적용의 한계

Theorem 2.1은 θ가 0과 1/2 사이일 때 수렴을 보장하지 않으며, 이 구간에서는 각 유한 구간의 단계별 변화에 대한 균일한 상한만 제공합니다. 스펙트럴 갭 가정은 Hessian의 상위 r개 고유값과 나머지 고유값 사이에 균일한 양의 간격 γ가 있다고 가정합니다. 사실 기반 질의응답처럼 일부 과제에서는 WeLore-COMP가 SVD-LLM보다 낮은 성능을 보였습니다.

## 논문 정보

- **저자**: Jaiswal, Ajay, Wang, Yifan, Yin, Lu, Liu, Shiwei, Chen, Runjin, Zhao, Jiawei, Grama, Ananth, Tian, Yuandong, Wang, Zhangyang
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2024년 7월 15일
- **등록일**: 2026년 10월 29일
- **수정일**: 2025년 6월 7일
- **버전**: v2
- **arXiv**: 2407.11239
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2407.11239v2) · [원문 PDF ↗](https://arxiv.org/pdf/2407.11239v2)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

Large Language Models' (LLMs) weight matrices can often be expressed in low-rank form with potential to relax memory and compute resource requirements. Unlike prior efforts that focus on developing novel matrix decompositions, in this work we study the non-uniform low-rank properties of weight matrices in LLMs through the lens of stabilizing gradient subspace. First, we provide a theoretical framework to understand the stabilization of gradient subspaces through Hessian analysis. Second, we empirically establish an important relationship between gradient dynamics and low-rank expressiveness of weight matrices. Our findings reveal that different LLM components exhibit varying levels of converged low-rank structures, necessitating variable rank reduction across them to minimize drop in performance due to compression. Drawing on this result, we present Weight Low-Rank Projection(WeLore) that unifies weight compression and memory-efficient fine-tuning into one, in a data-agnostic and one-shot manner. When used as a compression technique, WeLore categorizes weight matrices into Low-rank Components (LRCs) and Non-Low-rank Components (N-LRCs) and suitably encodes them for minimum performance loss. Our gradient dynamics perspective illustrates that LRCs tend to have better fine-tuning capabilities and their standalone fine-tuning can closely mimic and sometimes outperform the training loss trajectory and performance of full fine-tuning with notable memory and compute footprint reduction. Codes are available at https://github.com/VITA-Group/WeLore.

## 원문 인용

Jaiswal, Ajay, Wang, Yifan, Yin, Lu, Liu, Shiwei, Chen, Runjin, Zhao, Jiawei, Grama, Ananth, Tian, Yuandong, Wang, Zhangyang (2024). From Low Rank Gradient Subspace Stabilization to Low-Rank Weights: Observations, Theories, and Applications. arXiv:2407.11239v2. https://arxiv.org/abs/2407.11239v2

**BibTeX**

```
@misc{ajay2024from,
  title = {{From Low Rank Gradient Subspace Stabilization to Low-Rank Weights: Observations, Theories, and Applications}},
  author = {Jaiswal, Ajay and Wang, Yifan and Yin, Lu and Liu, Shiwei and Chen, Runjin and Zhao, Jiawei and Grama, Ananth and Tian, Yuandong and Wang, Zhangyang},
  year = {2024},
  eprint = {2407.11239},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.11239v2}
}
```

## 이 논문의 용어

- [LoRA](https://refivu.com/terms/84da7a415b66-low-rank-adaptation-lora)
- [Perplexity](https://refivu.com/terms/2b204e513801-perplexity)
- [C4](https://refivu.com/terms/87725552ed79-c4)
- [Hessian](https://refivu.com/terms/cb53640b58ff-hessian)
- [MT-bench](https://refivu.com/terms/0cad66f1f433-mt-bench)
- [Mistral-7B](https://refivu.com/terms/b89deef91181-mistral-7b)
- [GaLore](https://refivu.com/terms/c9f9d5bd84bb-galore)
- [StrategyQA](https://refivu.com/terms/da46e388b92b-strategyqa)
- [SVD](https://refivu.com/terms/cc705f427730-svd)
- [spectral gap](https://refivu.com/terms/809cb9d73136-spectral-gap)
- [CNN/DailyMail](https://refivu.com/terms/2782b075326c-cnn-dailymail)
- [Theorem 2.2](https://refivu.com/terms/f70a07bfc170-theorem-2-2)
- [SVD-LLM](https://refivu.com/terms/022176438147-svd-llm)
- [Lipschitz Hessian](https://refivu.com/terms/3695baab6256-lipschitz-hessian)
- [LLaMa-130M](https://refivu.com/terms/b33576329110-llama-130m)
- [LLaMa-2 7B](https://refivu.com/terms/5214ae8ac077-llama-2-7b)
- [Theorem 2.1](https://refivu.com/terms/785692d64783-theorem-2-1)

## 다른 논문 해설

- [PhantomWiki: On-Demand Datasets for Reasoning and Retrieval Evaluation](https://refivu.com/papers/58a31905-3d0e-4d66-aa5d-de3c4d505f3c-phantomwiki-on-demand-datasets-for-reasoning-and-retrieval.md)
- [Inference-Time Decomposition of Activations (ITDA): A Scalable Approach to Interpreting Large Language Models](https://refivu.com/papers/09a43597-957b-4a9d-9f9a-2d0e0dbc4063-inference-time-decomposition-of-activations-itda-a-scalable.md)
- [Multi-Turn Code Generation Through Single-Step Rewards](https://refivu.com/papers/3a44621c-ecca-42d4-9e3c-2a7f14a7cf58-multi-turn-code-generation-through-single-step-rewards.md)
- [Hardware and Software Platform Inference](https://refivu.com/papers/6781f817-b239-4485-abd3-92cc8cd29db4-hardware-and-software-platform-inference.md)
- [any4: Learned 4-bit Numeric Representation for LLMs](https://refivu.com/papers/7f8c7c0f-5cbf-497b-af22-9a5935d53aea-any4-learned-4-bit-numeric-representation-for-llms.md)
- [LaCache: Ladder-Shaped KV Caching for Efficient Long-Context Modeling of Large Language Models](https://refivu.com/papers/ab877a62-577c-4a9d-a2f5-5b6f0f04d0cb-lacache-ladder-shaped-kv-caching-for-efficient-long.md)
- [Policy Filtration for RLHF to Mitigate Noise in Reward Models](https://refivu.com/papers/88d53948-2490-439d-a3f5-e0dee2972670-policy-filtration-for-rlhf-to-mitigate-noise-in.md)
- [Log-Sum-Exponential Estimator for Off-Policy Evaluation and Learning](https://refivu.com/papers/f981cabb-dc09-4d5e-b52b-b7f0e1ca1699-log-sum-exponential-estimator-for-off-policy-evaluation.md)
- [Efficient Quantification of Multimodal Interaction at Sample Level](https://refivu.com/papers/5af37958-8cdb-46fc-82ad-98911683bddd-efficient-quantification-of-multimodal-interaction-at-sample.md)
- [A Cognac Shot To Forget Bad Memories: Corrective Unlearning for Graph Neural Networks](https://refivu.com/papers/a7ea0d59-7d2a-464e-af70-ef5fd8ad7487-a-cognac-shot-to-forget-bad-memories-corrective.md)
- [No Task Left Behind: Isotropic Model Merging with Common and Task-Specific Subspaces](https://refivu.com/papers/85f691d6-23f0-4b4f-8e0b-f09ccb43406a-no-task-left-behind-isotropic-model-merging-with.md)
- [TimeDART: A Diffusion Autoregressive Transformer for Self-Supervised Time Series Representation](https://refivu.com/papers/a240f8ac-50ed-43b3-8dcc-abe9364ba94f-timedart-a-diffusion-autoregressive-transformer-for-self.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/3719b5df-ba28-43e0-9d65-ae8a5299fea6-from-low-rank-gradient-subspace-stabilization-to-low)
