Skip to main content
QUICK REVIEW

[論文レビュー] Scaling DoRA: High-Rank Adaptation via Factored Norms and Fused Kernels

Alexandra Zelenin, Alexandra Zhuravlyova|arXiv (Cornell University)|Mar 23, 2026
Parallel Computing and Optimization TechniquesComputer Science被引用数 0
ひとこと要約

論文は、dense B@Aを実現的に展開することなく高ランク DoRA のための因数分解ノルムアプローチを提案し、前方と後方パスを高速化し VRAM 使用量を削減する fused Triton カーネル実装を提示する。複数GPUで6つの vision-language モデルに対して検証。

ABSTRACT

Weight-Decomposed Low-Rank Adaptation (DoRA) extends LoRA by decoupling weight magnitude from direction, but its forward pass requires the row-wise norm of W + sBA, a computation that every major framework we surveyed implements by materializing the dense [d_out, d_in] product BA. At d_in = 8192 and rank r = 384, a single module's norm requires about 512 MB of transient working memory in bf16, making high-rank DoRA costly and often infeasible on common single-GPU setups once hundreds of adapted modules and checkpointing are involved. We present two systems contributions. A factored norm decomposes the squared norm into base, cross, and Gram terms computable through O(d_out r + r^2) intermediates, eliminating the dense product. Fused Triton kernels collapse the four-kernel DoRA composition into a single pass, reducing memory traffic by about 4x and using a numerically stable form that avoids catastrophic cancellation in the near-unity rescaling regime where magnitude scales concentrate in practice. Across six 8-32B vision-language models (VLMs) on three NVIDIA GPUs (RTX 6000 PRO, H200, B200) at r = 384 in bf16, the fused implementation is 1.5-2.0x faster than Hugging Face PEFT's DoRA implementation for inference and 1.5-1.9x faster for gradient computation (optimizer step excluded), with up to 7 GB lower peak VRAM. Microbenchmarks on six GPUs spanning four architecture generations (L40S, A100, RTX 6000 PRO, H200, B200, B300) confirm 1.5-2.7x compose-kernel speedup. Final-logit cosine similarity exceeds 0.9999 across all model/GPU pairs, and multi-seed training curves match within 7.1 x 10^-4 mean per-step loss delta over 2000 steps.

研究の動機と目的

  • 高ランク DoRA のメモリと速度のボトルネックをパラメータ-efficient な微調整で動機づける。
  • dense な B@A の展開を回避する ||W + sBA||_row^2 のメモリ効率のある因数分解ノルム形式を開発する。
  • 前方・後方の計算を単一パスに統合する fused Triton カーネルを設計し DoRA パイプラインを統合する。
  • 実行時ディスパッチ戦略と一般的な PEFT フレームワークおよび分散学習体制との互換性を提供する。
  • 複数GPUアーキテクチャとモデルスケールに対してメモリ、速度、忠実度、収束を経験的に検証する。

提案手法

  • row-wise ノルムを base、cross、BA-norm の項に分解して B@A を実現展開せずに計算できる因数分解を導出する(計算量は O(d_out r + r^2))。
  • 精度を管理するために明示的なキャスティングを伴うチャンク化された fp32 集積で per-row ノルムを組み立てる(式2-6)。
  • DoRA パイプラインを単一パスに融合し数値安定性を確保するために、前方/後方の2つのフォワード/バックワード、ノルム組み立て、組み合わせの4つのカーネルを Triton で実装する。
  • ハードウェアと形状に応じて fused 後方(訓練)、fused 前方(推論)、または eager フォールバックの3段階のランタイムディスパッチを提供する。
  • torch.compile、勾配チェックポイント、Deepspeed ZeRO、FSDP との互換性を確保し、精度を維持するために明示的な大きさの除算を扱う。
  • 6GPUと6つの8–32B Vision-Language モデルでの微細ベンチマークとモデルレベルのベンチマークを実施する。
Figure 1 : The stable compose form achieves $3.0$ × lower peak error near $g\approx 1$ (bf16, $d_{\text{out}}=8192$ , $d_{\text{in}}=2048$ ). The naive form $g\odot(s\cdot\text{lora}+\text{base})-\text{base}$ exhibits catastrophic cancellation; the stable form and fused kernel both remain near the b
Figure 1 : The stable compose form achieves $3.0$ × lower peak error near $g\approx 1$ (bf16, $d_{\text{out}}=8192$ , $d_{\text{in}}=2048$ ). The naive form $g\odot(s\cdot\text{lora}+\text{base})-\text{base}$ exhibits catastrophic cancellation; the stable form and fused kernel both remain near the b

実験結果

リサーチクエスチョン

  • RQ1B@A の dense 積を展開せずに DoRA の row-wise ノルムを計算できるか。これにより高ランク適応がスケール可能になるか。
  • RQ2融合カーネルは DoRA の前方と後方パスのメモリ帯域を削減し、さまざまな GPU やモデルサイズでスループットを向上させるか。
  • RQ3因数分解ノルムアプローチは標準 DoRA 実装と比較して数値安定性と訓練収束にどのような影響を与えるか。
  • RQ4提案システムは既存の PEFT フレームワークや分散学習ツールチェーンとどのように統合され、忠実度を保てるか。
  • RQ5異なるランクおよびモデルスケール(r=384–768、8–32B モデル)でのメモリと速度のトレードオフはどのようになるか。

主な発見

  • 因数分解ノルムはランク依存の長期的なメモリを O(d_out d_in) から O(d_out r + r^2) に削減し、B@A の展開を不要にする。
  • 融合された Triton カーネルは4つの DoRA 操作を単一パスに凝縮し、前方速度を 1.5–2.7×、後方速度を 1.06–1.23×向上させ、ピーク VRAM を最大 7 GB削減する。
  • 6つの 8–32B VLM を 3つの GPU で実行した場合、勾配計算は HF PEFT の DoRA ベースラインより 1.46–1.87×、著者の eager ベースラインより 1.18–1.24×高速で、推論速度は 1.5–2.0×向上する。
  • fused と eager の最終ロジット間のコサイン類似度は、すべてのモデル/GPUペアで 0.9999 超えの高忠実度を示す。
  • fused カーネル下での収束は、複数のシードにわたり 2000 ステップで平均 7.1e-4 の損失の変化量内で eager 訓練と同等の収束を達成する。
  • メモリプロファイル実験では後方の統合が前方のピーク VRAM を削減し、同じメモリ予算内でより大きな構成の訓練を可能にする。
Figure 2 : Three-tier dispatch: fused backward for training (Tier 1), fused forward for inference (Tier 2), eager fallback for CPU, no-Triton, or sub-crossover shapes (Tier 3).
Figure 2 : Three-tier dispatch: fused backward for training (Tier 1), fused forward for inference (Tier 2), eager fallback for CPU, no-Triton, or sub-crossover shapes (Tier 3).

この論文を読む

Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。

Nubintでこの論文を読む

このレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。