다음 영어를 한글로 번역해주세요. QuaRot consists of two stages. In the first stage, the model weights…
- User
다음 영어를 한글로 번역해주세요. QuaRot consists of two stages. In the first stage, the model weights are manipulated (in full precision), and two additional Hadamard operations are inserted into the model’s forward pass. In the second stage, the weights are quantized using some existing method, and quantization operations are added to the forward pass to enable on-line quantization of the activations. By default, we use GPTQ for quantizing weights, whilst activations are quantized on-the-fly using a simple round-tonearest scheme. Figures 4 and 5 show updated block diagrams for the forward pass with QuaRot modifications, including updated weight matrices, inserted blocks and the bit-width of weights and activations.
- Assistant
QuaRot는 두 단계로 구성됩니다. 첫 번째 단계에서는 모델 가중치가 (정밀하게) 조작되고, 두 개의 추가적인 아다마르드 연산이 모델의 순전파 과정에 삽입됩니다. 두 번째 단계에서는 기존의 방법을 사용하여 가중치가 양자화되고, 활성화의 온라인 양자화를 가능하게 하는 순전파 과정에 양자화 연산이 추가됩니다. 기본적으로 우리는 가중치 양자화에 GPTQ를 사용하며, 활성화는 간단한 최근접 반올림 방식으로 즉시 양자화됩니다. 그림 4와 그림 5는 양자화된 QuaRot 수정 사항을 포함한 순전파의 업데이트된 블록 다이어그램을 보여주며, 여기에는 업데이트된 가중치 행렬, 삽입된 블록, 가중치 및 활성화의 비트 폭이 포함됩니다.
- User
다음 영어를 한글로 번역해주세요. QuaRot consists of two stages. In the first stage, the model weights are manipulated (in full precision), and two additional Hadamard operations are inserted into the model’s forward pass. In the second stage, the weights are quantized using some existing method, and quantization operations are added to the forward pass to enable on-line quantization of the activations. By default, we use GPTQ for quantizing weights, whilst activations are quantized on-the-fly using a simple round-tonearest scheme. Figures 4 and 5 show updated block diagrams for the forward pass with QuaRot modifications, including updated weight matrices, inserted blocks and the bit-width of weights and activations.
- Assistant
QuaRot는 두 단계로 구성됩니다. 첫 번째 단계에서는 모델 가중치가 (정밀하게) 조작되고, 두 개의 추가적인 아다마르드 연산이 모델의 순전파 과정에 삽입됩니다. 두 번째 단계에서는 기존의 방법을 사용하여 가중치가 양자화되고, 활성화의 온라인 양자화를 가능하게 하는 순전파 과정에 양자화 연산이 추가됩니다. 기본적으로 우리는 가중치 양자화에 GPTQ를 사용하며, 활성화는 간단한 최근접 반올림 방식으로 즉시 양자화됩니다. 그림 4와 그림 5는 양자화된 QuaRot 수정 사항을 포함한 순전파의 업데이트된 블록 다이어그램을 보여주며, 여기에는 업데이트된 가중치 행렬, 삽입된 블록, 가중치 및 활성화의 비트 폭이 포함됩니다.
1a 단계: 가중치 수정. 먼저, 계산 불변성을 활용하여 각 가중치 행렬을 직교 행렬로 곱합니다. 이를 가능하게 하기 위해, LayerNorm 또는 RMSNorm의 선형 부분을 인접한 가중치 행렬에 융합합니다. 그림 4는 RMSNorm의 스케일링 연산(diag(α))을 제거하고 이를 후속 가중치 행렬에 흡수하여 변환기의 피드포워드 블록이 어떻게 수정되는지 보여줍니다. 우리는 모델의 숨겨진 차원과 일치하는 크기의 무작위 아다마르드 행렬을 선택하고 각 가중치 행렬에 사전 또는 사후 곱합니다. 그림 4와 그림 5에서 이 행렬은 Q로 표시됩니다. 예를 들어, 키 프로젝션 가중치 행렬 Wk는 다음과 같이 수정됩니다:
\mathrm{W}_k\leftarrow\mathrm{Q}^\top\mathrm{diag}(\alpha)\mathrm{W}_k
다른 가중치 행렬도 유사하게 수정됩니다. 블록의 출력 측에 나타나는 행렬은 Q로 사후 곱해집니다. 이 가중치 수정은 계산 불변성 정리에 따라 (충분한 정밀도가 가정될 때) 모델의 출력을 변경하지 않습니다 [Ashkboos et al., 2024]. 수정된 가중치는 QUiP# [Tseng et al., 2024]에서 사용된 수정과 유사하여 가중치의 비일관성을 줄이지만, 우리의 수정은 실행 시 추가 처리를 필요로 하지 않습니다. 추가적으로, 변환기의 블록 간에 전달되는 활성화 행렬도 비일관성 처리가 되어 X ← XQ가 됩니다. 그림 1은 이 처리의 결과를 보여줍니다: 처리된 활성화는 더 이상 이상값을 포함하지 않음을 알 수 있습니다.