[논문 리뷰] On the Importance of a Multi-Scale Calibration for Quantization
MaCa는 per-sample 정규화를 통해 여러 시퀀스 길이에 걸친 보정 데이터를 모아 PTQ를 위한 길이 인식 해essian 구성을 도입하여 LLM의 저비트 양자화 성능을 향상시킵니다.
Post-training quantization (PTQ) is a cornerstone for efficiently deploying large language models (LLMs), where a small calibration set critically affects quantization performance. However, conventional practices rely on random sequences of fixed length, overlooking the variable-length nature of LLM inputs. Input length directly influences the activation distribution and, consequently, the weight importance captured by the Hessian, which in turn affects quantization outcomes. As a result, Hessian estimates derived from fixed-length calibration may fail to represent the true importance of weights across diverse input scenarios. We propose MaCa (Matryoshka Calibration), a simple yet effective method for length-aware Hessian construction. MaCa (i) incorporates multi-scale sequence length information into Hessian estimation and (ii) regularizes each sequence as an independent sample, yielding a more stable and fruitful Hessian for accurate quantization. Experiments on state-of-the-art LLMs (e.g., Qwen3, Gemma3, LLaMA3) demonstrate that MaCa consistently improves accuracy under low bit quantization, offering a lightweight enhancement compatible with existing PTQ frameworks. To the best of our knowledge, this is the first work to systematically highlight the role of multi-scale calibration in LLM quantization.
연구 동기 및 목표
- LLM용 Hessian 기반 PTQ에서 입력 시퀀스 길이가 미치는 영향을 동인으로 삼는다.
- MaCa를 제안하여 해essian 추정에 다중 규모 시퀀스 길이를 포함시킨다.
- 추가 보정 비용 없이 Hessian 기반 양자화의 안정성과 효과를 개선한다.
제안 방법
- 업데이트 시 Hessian을 길이 무관하게 정규화하여 길이 독립적으로 Hessian 축적을 재정의한다.
- 다양한 시퀀스 길이 세트를 통해 보정 길이를 다중 규모로 추출하여 길이 다중 축적을 도입한다.
- 토큰 단위가 아닌 샘플 단위의 이동 평균으로 Hessian을 업데이트하여 각 보정 샘플에 동등한 중요도를 부여한다.
- MaCa를 GPTQ 및 GPTAQ에 적용하고 다수의 LLM 및 비트 정밀도에서 평가한다.
- 짧은 시퀀스와 긴 시퀀스를 결합하여 더 풍부한 Hessian을 도출하고 재구성 오차 및 양자화를 개선한다는 결과를 보여준다.
실험 결과
연구 질문
- RQ1입력 시퀀스 길이가 LLM의 PTQ에서 입력 측 Hessian H_in에 어떤 영향을 미치는가?
- RQ2다중 규모, 길이 독립적 보정 전략이 양자화를 위한 더 대표적인 Hessian을 생성할 수 있는가?
- RQ3다중 규모 길이 축적 및 시퀀스별 정규화가 서로 다른 모델과 비트 폭에서 양자화 정확도를 개선하는가?
주요 결과
- MaCa는 Qwen3, Gemma3, LLaMA3 패밀리 간 동일한 보정 예산 하에서 평균 하류 정확도를 일관되게 향상시킨다.
- 다중 규모 길이 축적 및 시퀀스별 정규화는 GPTQ 및 GPTAQ에서 4비트, 3비트, 2비트/g128 설정에서 측정 가능한 이점을 제공한다.
- MaCa는 레이어 간 재구성 오차를 낮추고 더 정확한 양자화를 시사하며 GPTQ보다 낮은 재구성 오차를 얻는다.
- MaCa는 LongBench의 긴 컨텍스트 벤치마크에서 주목할 만한 성능 향상을 보여주며, MultiFieldQA, NarrativeQA, Qasper를 포함한다.
- 변경 연구들은 다중 규모 축적과 시퀀스별 정규화가 성능 향상에 기여함을 보여준다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.