# Advancing Multimodal Large Language Models with Quantization-Aware Scale Learning for Efficient Adaptation

효율적 적응을 위한 양자화 인식 스케일 학습으로 멀티모달 대형 언어 모델 발전시키기

Jingjing Xie, Yuxin Zhang, Mingbao Lin, Liujuan Cao, Rongrong Ji · arXiv · 2024년 8월 7일

- **연구 문제** MLLM의 VL 명령어 튜닝은 LLM 백본 때문에 메모리와 학습 시간 비용이 크며, QLoRA 같은 양자화 PEFT는 멀티모달 입력의 활성 이상치 때문에 ScienceQA 정확도가 떨어집니다.
- **연구 방법** 그룹별 학습 가능한 스케일 인자로 양자화 가중치를 조정하고, 멀티모달 데이터만으로 시작해 이후 WikiText를 섞는 멀티모달 워밍업으로 과적합과 과소적합을 함께 다룹니다.
- **주요 결과** LLaVA-13B 기반 ScienceQA 정확도에서 QSLAW는 QLoRA 대비 향상을 보이며, LaVIN-7B에서도 LoRA 대비 향상이 보고됩니다. 다만 일부 본문 수치와 표 값에 불일치가 있습니다.

## VL 명령어 튜닝의 비용 문제와 QLoRA의 한계

멀티모달 대규모 언어 모델(MLLM)의 시각-언어(VL) 명령어 튜닝은 LLM 백본이 크기 때문에 많은 GPU 메모리와 학습 시간을 요구합니다. 원문은 LLaVA-13B가 LLM 전체를 완전 미세조정하며 수백 GPU 시간이 필요하다고 설명하고, LaVIN도 최소 8개의 NVIDIA Tesla A100 GPU를 요구한다고 보고합니다. 이 논문은 이러한 학습 부담을 줄이기 위해 파라미터 양자화를 MLLM 튜닝에 적용하는 가능성을 탐색합니다.

양자화를 PEFT에 적용한 대표적인 방법은 QLoRA입니다. QLoRA는 선형 계층 가중치를 4-bit NormalFloat(NF4)로 양자화하고 LoRA 어댑터로 미세조정합니다. 그런데 Table 1 실험에서 QLoRA는 메모리와 시간을 줄이지만 ScienceQA 정확도가 약 4% 떨어집니다. 저자들은 이 원인을 MLLM 중간 계층의 활성 이상치(activation outlier)에서 찾습니다. 이상치의 밀도와 빈도는 멀티모달 입력에서 텍스트 전용 입력보다 뚜렷하게 증가하며, 작은 양자화 오차가 이 이상치와 상호작용해 출력을 왜곡할 수 있다고 원문은 설명합니다.

![Table 1: Cost and accuracy over various VL instruction tuning paradigms on ScienceQA. The symbol “ †” denotes advanced memory-saving strategies, while “OOM” in…](https://refivu.com/papers/35356cf7-bcb7-44f0-8fb3-6d156fdcda5f/figures/figure-998ceda488b29cf56ab70b61471a72d2.png?thumb=512)

**Table 1** : Cost and accuracy over various VL instruction tuning paradigms on ScienceQA. The symbol “ †” denotes advanced memory-saving strategies, while “OOM” indicates GPU mem- ory exhaustion. Results are evaluated using 4 A800 GPUs.

[원문](https://arxiv.org/abs/2408.03735v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Jingjing Xie, Yuxin Zhang, Mingbao Lin, Liujuan Cao, Rongrong Ji · Advancing Multimodal Large Language Models with Quantization-Aware Scale Learning for Efficient Adaptation · 원문 그림 인용 · 원본 PDF 2쪽에서 그림 영역을 추출했습니다.

## 그룹별 스케일 학습과 균일 양자화

QSLAW의 첫 번째 구성요소는 그룹별 학습 가능한 스케일 인자입니다. 원문은 LLM 가중치 W를 여러 그룹으로 나누고 각 그룹을 하나의 스케일 인자 s로 곱해 Ŵ = Ws를 만든다고 씁니다. 그 뒤 균일 양자화를 적용해 의사 양자화 가중치 W̃를 얻으며, 식은 W̃ = Δ×(clamp(⌊ŴΔ⌉+z\_p, 0, 2^k−1))−z\_p로 주어집니다. 여기서 ⌊·⌉는 가장 가까운 정수로의 반올림, k는 양자화 비트 수, Δ와 z\_p는 양자화 step-size와 zero-point입니다.

스케일 인자는 식 (4)의 교차엔트로피 손실에 따라 학습되어 활성 이상치가 있는 그룹의 양자화 오차를 다운스트림 과제 쪽에서 줄입니다. 원문은 LoRA가 레이어 전체의 출력을 대상으로 거칠게 미세조정하기 때문에 이상치 위치의 오차를 적응적으로 줄이지 못한다고 설명합니다. 또한 group size 128에서 스케일 학습에 필요한 파라미터는 LoRA fine-tuning 파라미터의 16.83%라고 보고됩니다. 이 수치는 해당 group size와 원문 설정에 한정됩니다.

양자화 파라미터 Δ와 z\_p는 OmniQuant로 초기화됩니다. 원문은 OmniQuant가 가중치 클리핑으로 양자화 난이도를 완화하는 사후 양자화 방법이라고 설명하며, 이는 NF4의 확률밀도 중심 방식과 대비됩니다.

## 멀티모달 워밍업과 과적합 억제

두 번째 구성요소는 멀티모달 워밍업입니다. 멀티모달 데이터만으로 스케일 인자를 학습하면 Figure 2에서 손실은 빠르게 줄지만 정확도는 전체 정밀도 모델을 넘지 못합니다. 저자들은 이를 LLM이 언어 데이터로만 사전학습되었기 때문에 멀티모달 데이터에 과적합되어 언어 능력이 손상되는 것으로 해석합니다. 반대로 처음부터 언어 데이터를 섞으면 초기에 멀티모달 감독이 부족해 과소적합이 생깁니다.

![Figure 2: Loss and accuracy curves of training scaling with dif- ferent strategies on ScienceQA. Solely utilizing multimodal data for training scaling tends to…](https://refivu.com/papers/35356cf7-bcb7-44f0-8fb3-6d156fdcda5f/figures/figure-00a10b12c08a19d78902bc3071bd1adf.png?thumb=512)

**Figure 2** : Loss and accuracy curves of training scaling with dif- ferent strategies on ScienceQA. Solely utilizing multimodal data for training scaling tends to lead the LLM overfitted to downstream tasks. This is evidenced by a rapid decrease in loss but the accuracy remain mediocre.

[원문](https://arxiv.org/abs/2408.03735v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Jingjing Xie, Yuxin Zhang, Mingbao Lin, Liujuan Cao, Rongrong Ji · Advancing Multimodal Large Language Models with Quantization-Aware Scale Learning for Efficient Adaptation · 원문 그림 인용 · 원본 PDF 4쪽에서 그림 영역을 추출했습니다.

이를 해결하기 위해 원문은 VL 튜닝의 초기 η 반복 동안에는 멀티모달 데이터만 사용해 스케일 학습을 하고, 이후 WikiText 언어 데이터를 섞은 하이브리드 데이터로 학습을 이어간다고 설명합니다. 원문 실험 설정에서 하이브리드 학습 데이터는 WikiText와 다운스트림 데이터를 1:1로 혼합한 것이며, 2 training epochs와 batch size 64가 명시되어 있습니다. Table 3의 절제에서 하이브리드 데이터만 추가하면 평균 정확도가 88.68로 0.30 오르고, 멀티모달 워밍업을 더하면 89.79로 1.41 오릅니다. 두 값은 모두 LaVIN-7B와 OmniQuant 설정에서의 결과입니다.

## ScienceQA와 ChatBot에서의 검증 범위

정량 검증의 중심은 ScienceQA 테스트 세트의 평균 정확도입니다. Table 2에서 LLaVA-13B 기반 QSLAW는 84.20%로 보고되며, 본문은 QLoRA의 74.04% 대비 10.16% 향상이라고 설명합니다. 같은 LLaVA 실험에서 개선된 설정의 QSLAW는 91.04%로 full-precision LLaVA-13B의 90.92%를 넘는다고 원문이 보고합니다. 다만 두 값은 각각 다른 설정(QLoRA 행 대비 QSLAW 행, 그리고 개선 설정)이므로 같은 조건의 결과로 합쳐 읽지 않습니다.

![Table 2: Quantitative accuracy on ScienceQA test dataset. Question classes: NAT = natural science, SOC = social science, LAN = language science, TXT = text con…](https://refivu.com/papers/35356cf7-bcb7-44f0-8fb3-6d156fdcda5f/figures/figure-418b059723fb49e0fb1ad45007941f1d.png?thumb=512)

**Table 2** : Quantitative accuracy on ScienceQA test dataset. Question classes: NAT = natural science, SOC = social science, LAN = language science, TXT = text context, IMG = image context, NO = no context, G1-6 = grades 1-6, G7-12 = grades 7-12. The symbol “†” denotes a larger rank used for LoRA and the best results in each class are underlined

[원문](https://arxiv.org/abs/2408.03735v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Jingjing Xie, Yuxin Zhang, Mingbao Lin, Liujuan Cao, Rongrong Ji · Advancing Multimodal Large Language Models with Quantization-Aware Scale Learning for Efficient Adaptation · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.

LaVIN 실험에서는 QSLAW가 89.79%로 보고되며, 본문은 QLoRA 88.33% 대비 1.46% 향상이라고 씁니다. 그러나 같은 Table 2에서 LaVIN-7B-QLoRA 값은 88.27로 표기되어 본문 수치와 일치하지 않습니다. 또한 Table 4의 NF4 기준 QLoRA 값도 88.27입니다. 독자는 이 차이를 본문과 표의 불일치로 알고 읽어야 합니다.

ChatBot 평가는 LLaVA-80k로 학습한 응답을 GPT-4가 1에서 10 사이 점수로 평가한 질적 비교입니다. Figure 4 예시에서 QSLAW는 9점, QLoRA는 6점을 받는 등 QSLAW가 더 높은 점수를 받았다고 원문은 보고합니다. 이 평가는 ScienceQA 정확도와 다른 지표이며 GPT-4 점수에 근거한 것입니다.

## 구성요소 절제와 초기화 비교

Table 3의 절제는 LaVIN-7B에서 OmniQuant 기준선에 스케일 학습, 하이브리드 데이터, 멀티모달 워밍업을 차례로 더한 결과입니다. OmniQuant 기준선의 평균은 88.38이고, 스케일 학습만 추가하면 84.65로 3.73 낮아집니다. 이는 같은 데이터로 스케일을 학습할 때 LLM 백본의 과적합이 발생했다는 저자들의 해석과 맞습니다. 하이브리드 데이터를 넣으면 88.68로 0.30 오르고, 멀티모달 워밍업을 넣으면 89.79로 추가 1.41 오릅니다.

![Table 3: Effect of each component on ScienceQA test dataset. All results are conducted with LaVIN-7B](https://refivu.com/papers/35356cf7-bcb7-44f0-8fb3-6d156fdcda5f/figures/figure-77e5cb745872c1dedeb01ed9e47e2e44.png?thumb=512)

**Table 3** : Effect of each component on ScienceQA test dataset. All results are conducted with LaVIN-7B.

[원문](https://arxiv.org/abs/2408.03735v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Jingjing Xie, Yuxin Zhang, Mingbao Lin, Liujuan Cao, Rongrong Ji · Advancing Multimodal Large Language Models with Quantization-Aware Scale Learning for Efficient Adaptation · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

Table 4는 LoRA와 QSLAW를 NF4 및 OmniQuant 초기화에서 비교합니다. 원문은 QSLAW가 NF4에서 LoRA 대비 0.71%, OmniQuant에서 1.41% 향상된다고 설명합니다. Table 4의 값으로는 QSLAW의 NF4 88.98과 OmniQuant-2 89.85가 있으며, 본문 수치와 표 수치는 실험 설정이 같은 범위에서 읽힙니다. 이 결과는 LaVIN-7B에 한정되며, NF4가 VL 튜닝에 부적합하다는 결론은 이 실험의 범위 안에서만 해석해야 합니다.

![Table 4: Different Quantization initialization method for LoRA and QSLA W. OmniQuant-1 and OmniQuant-2 means the calibration for quantization parameters are co…](https://refivu.com/papers/35356cf7-bcb7-44f0-8fb3-6d156fdcda5f/figures/figure-ab31e6b559fc5c7c1247fb6eeb98a207.png?thumb=512)

**Table 4** : Different Quantization initialization method for LoRA and QSLA W. OmniQuant-1 and OmniQuant-2 means the calibration for quantization parameters are conducted on language dataset and hybrid dataset, respectively.

[원문](https://arxiv.org/abs/2408.03735v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Jingjing Xie, Yuxin Zhang, Mingbao Lin, Liujuan Cao, Rongrong Ji · Advancing Multimodal Large Language Models with Quantization-Aware Scale Learning for Efficient Adaptation · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

## 적용 범위와 남은 질문

이 연구의 정량 검증은 주로 ScienceQA에 집중되어 있습니다. ChatBot 평가는 GPT-4 점수에 기반한 질적 비교이며, 정확도 지표와 같은 종류의 근거로 읽지 않습니다. 원문은 LLaVA-13B와 LaVIN-7B 두 MLLM 계열에서 실험했고, LLM 백본으로 LLaMA-7B, Vicuna-13B를 사용했다고 밝힙니다. 따라서 다른 백본이나 다른 MLLM 구조에 대한 일반화는 원문에서 확인되지 않습니다.

또한 멀티모달 데이터만 쓴 스케일 학습에서 정확도가 전체 정밀도 모델을 넘지 못했다는 관찰은 저자들이 과적합과 관련지은 해석입니다. Table 1의 실험은 4 A800 GPU 설정에서 이루어졌고, 메모리·시간 수치는 그 설정과 원문 표에 묶여 있습니다. 1.4배 시간과 GPU 소비 절감은 초록이 보고하는 결과이며, 이 논문은 다른 하드웨어나 설정에서의 절감을 검증하지 않았습니다.

## 논문 정보

- **저자**: Jingjing Xie, Yuxin Zhang, Mingbao Lin, Liujuan Cao, Rongrong Ji
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2024년 8월 7일
- **등록일**: 2026년 11월 5일
- **수정일**: 2024년 8월 7일
- **버전**: v1
- **arXiv**: 2408.03735
- **분류**: cs.CV · cs.AI · cs.LG
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

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

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

## 초록

This paper presents the first study to explore the potential of parameter quantization for multimodal large language models to alleviate the significant resource constraint encountered during vision-language instruction tuning. We introduce a Quantization-aware Scale LeArning method based on multimodal Warmup, termed QSLAW. This method is grounded in two key innovations: (1) The learning of group-wise scale factors for quantized LLM weights to mitigate the quantization error arising from activation outliers and achieve more effective vision-language instruction tuning; (2) The implementation of a multimodal warmup that progressively integrates linguistic and multimodal training samples, thereby preventing overfitting of the quantized model to multimodal data while ensuring stable adaptation of multimodal large language models to downstream vision-language tasks. Extensive experiments demonstrate that models quantized by QSLAW perform on par with, or even surpass, their full-precision counterparts, while facilitating up to 1.4 times reduction in VL tuning time and GPU consumption. Our code is released at https://github.com/xjjxmu/QSLAW.

## 원문 인용

Jingjing Xie, Yuxin Zhang, Mingbao Lin, Liujuan Cao, Rongrong Ji (2024). Advancing Multimodal Large Language Models with Quantization-Aware Scale Learning for Efficient Adaptation. arXiv:2408.03735v1. https://arxiv.org/abs/2408.03735v1

**BibTeX**

```
@misc{xie2024advancing,
  title = {{Advancing Multimodal Large Language Models with Quantization-Aware Scale Learning for Efficient Adaptation}},
  author = {Jingjing Xie and Yuxin Zhang and Mingbao Lin and Liujuan Cao and Rongrong Ji},
  year = {2024},
  eprint = {2408.03735},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.03735v1}
}
```

## 이 논문의 용어

- [accuracy](https://refivu.com/terms/1995c0cd6282-accuracy)
- [LoRA](https://refivu.com/terms/84da7a415b66-low-rank-adaptation-lora)
- [cosine similarity](https://refivu.com/terms/3baa01a8760d-cosine-similarity)
- [QLoRA](https://refivu.com/terms/242a88ee7f8c-qlora)
- [ScienceQA](https://refivu.com/terms/4deed9de0244-scienceqa)
- [WikiText](https://refivu.com/terms/b2db4641e2db-wikitext)
- [LLaMA-7B](https://refivu.com/terms/31b2db9bb595-llama-7b)
- [LLaVA](https://refivu.com/terms/d319ea83b703-llava)
- [OmniQuant](https://refivu.com/terms/e9efff0e651d-omniquant)
- [parameter-efficient fine-tuning (PEFT)](https://refivu.com/terms/75e397743a07-parameter-efficient-fine-tuning-peft)
- [Vicuna-13B](https://refivu.com/terms/831505d9bc14-vicuna-13b)
- [zero-point](https://refivu.com/terms/951a5928bb03-zero-point)

## 다른 논문 해설

- [Instruction Tuning Vs. In-Context Learning: Revisiting Large Language Models in Few-Shot Computational Social Science](https://refivu.com/papers/e48c2117-5c89-4d48-8ec1-48a7fb8331a1-instruction-tuning-vs-in-context-learning-revisiting-large.md)
- [LlaSMol: Advancing Large Language Models for Chemistry with a Large-Scale, Comprehensive, High-Quality Instruction Tuning Dataset](https://refivu.com/papers/a04cfe10-8c2c-40b6-ad31-5a013bb9eb21-llasmol-advancing-large-language-models-for-chemistry-with.md)
- [Instruction Tuning Chronologically Consistent Language Models](https://refivu.com/papers/9e4b2208-795b-4200-909d-af8bd7b7290b-instruction-tuning-chronologically-consistent-language.md)
- [MLAN: Language-Based Instruction Tuning Preserves and Transfers Knowledge in Multimodal Language Models](https://refivu.com/papers/383b925a-1b95-4fc1-97e6-b9874917052c-mlan-language-based-instruction-tuning-preserves-and.md)
- [Code Comparison Tuning for Code Large Language Models](https://refivu.com/papers/a0648f88-23de-40b7-8728-abfc653fee3a-code-comparison-tuning-for-code-large-language-models.md)
- [Parameter-Efficient Instruction Tuning of Large Language Models For Extreme Financial Numeral Labelling](https://refivu.com/papers/fe79f5fe-6112-4cdb-8ffe-b049c3d860a6-parameter-efficient-instruction-tuning-of-large-language.md)
- [Neuron-Aware Data Selection In Instruction Tuning For Large Language Models](https://refivu.com/papers/1804c30c-140b-474c-87dc-21d33fff29fd-neuron-aware-data-selection-in-instruction-tuning-for.md)
- [Vikhr: The Family of Open-Source Instruction-Tuned Large Language Models for Russian](https://refivu.com/papers/213f8125-9ee3-459b-ad47-fed9dd92b224-vikhr-the-family-of-open-source-instruction-tuned.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/35356cf7-bcb7-44f0-8fb3-6d156fdcda5f-advancing-multimodal-large-language-models-with-quantization)
