# Reproducible LoRA Inference Through Deterministic Split-K Reduction

決定論的Split-KリダクションによるLoRA推論の再現性

Dhayaneshwar Balusamy, Ankur Mohan · arXiv · 2026年11月7日

- **課題** LoRAを使う言語モデルの反復推論では、同じ入力でも結果が変わることがあり、監査や反復評価の妨げになります。
- **手法** LoRA shrinkのSplit-K部分結果を、アトミック加算ではなく、タイルごとの完了カウンタと固定順序のFP32加算で結合する決定論的Tritonカーネルを提案しています。

## LoRA推論で生じる再現性の問題

LoRAアダプタを付けた言語モデルは、反復評価や監査、意思決定に使われるため、同じ入力から同じ出力が得られることが重要です。しかし、Split-Kカーネルは低ランクLoRAの乗算で並列性を高めるために使われ、部分結果を浮動小数点のアトミック加算で合わせると、数値的な非決定性が生じることがあります。この論文では、vLLMのLoRA shrink演算でこの問題を調べ、同じ並列性を保ちながら結果を固定順序で合わせる決定論的なTriton Split-K実装を示しています。研究の対象は、GSM8Kの数学推論、MBPPのコード生成、Civil Commentsの毒性分類の実験です。

## Split-Kの縮約と決定論的な加算

Split-Kは縮約次元Hを複数の部分集合に分け、各スレッドブロックが部分結果を計算するようにします。アトミック実装では、これらの部分結果がFP32のアトミック加算で累積されるため、加算の順序はGPUのスケジューリングによって変わることがあります。論文では、浮動小数点加算は一般に結合法則を満たさないという例を挙げ、この違いによって同じ入力でも異なる中間値が生じうると説明しています。

決定論的Split-K=8の実装は、同じ8-way並列性を維持します。各タイルの8個の部分結果をscratchバッファに保存し、タイルごとの整数完了カウンタで最後のブロックを特定します。最後のブロックは部分結果をパーティション順にFP32で加算し、LoRAスケールを掛けてから出力タイルを書き込みます。整数のアトミック演算は完了順序の調整にだけ使われ、部分結果の累積には使われません。

## 同じ入力の再実行と反復生成のばらつき

Split-K=1とDeterministic Split-K=8では、同じ演算で差は確認されませんでした。

![Figure 3: Run-to-run numerical variability in the LoRA shrink op- eration during prefill and first decode. Atomic Split-K=8 exhibits numerical variation under…](https://refivu.com/papers/08d0cd4e-de21-47bd-aadd-21977c8da918/figures/figure-b9cb29d5a375957c829dacc3aed8c6ca.png?thumb=512)

**Figure 3** . Run-to-run numerical variability in the LoRA shrink op- eration during prefill and first decode. Atomic Split-K=8 exhibits numerical variation under identical inputs, while Split-K=1 and Deterministic Split-K=8 show no observed differences.

[出典](https://arxiv.org/abs/2611.10334v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Dhayaneshwar Balusamy, Ankur Mohan · Reproducible LoRA Inference Through Deterministic Split-K Reduction · 論文の図を引用 · 元のPDFの7ページ目から図の部分を抽出しています。

反復greedy生成では、GSM8KとMBPPでそれぞれ2,700件の比較を行い、Atomic Split-K=8は467件（17.30%）と404件（14.96%）でトークン列を変えました。GSM8Kでは151件の比較で抽出された最終回答が異なり、そのうち84件で正答かどうかが変わりました。MBPPでは53件の比較で、公開テストの合格可否が変わりました。Split-K=1とDeterministic Split-K=8では、同じ反復実行で出力の差は見られませんでした。

![Table 1: Output and correctness changes under repeated greedy inference. Each reduction method has 2,700 comparisons per dataset, using repetitions 1-9 against…](https://refivu.com/papers/08d0cd4e-de21-47bd-aadd-21977c8da918/figures/figure-a4abd5fbd4ead7235b0eda908f880fc9.png?thumb=512)

**Table 1** . Output and correctness changes under repeated greedy inference. Each reduction method has 2,700 comparisons per dataset, using repetitions 1-9 against repetition 0.

[出典](https://arxiv.org/abs/2611.10334v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Dhayaneshwar Balusamy, Ankur Mohan · Reproducible LoRA Inference Through Deterministic Split-K Reduction · 論文の図を引用 · 元のPDFの9ページ目から図の部分を抽出しています。

## 差分がKVキャッシュとトークン選択に伝わる過程

事例研究では、Llama-3.2-3B-Instructとrank-16のGSM8Kアダプタを使いました。2つのAtomic Split-K=8実行は最初の35トークンを共有しましたが、36番目の位置で異なるトークンを選び、最終回答はそれぞれ7と8でした。最初の伝播差は、prompt位置47のlayer-2 MLP up-projectionで現れ、2つのFP32 shrink値はBF16の丸め境界の両側に分かれ、異なるBF16値になりました。

![Figure 4: Numerical differences between two Atomic Split-K=8 executions during prefill and decode at generated token 36. Colors indicate maximum absolute tenso…](https://refivu.com/papers/08d0cd4e-de21-47bd-aadd-21977c8da918/figures/figure-9ece6b782603bd174e66bb305e7506c3.png?thumb=512)

**Figure 4** . Numerical differences between two Atomic Split-K=8 executions during prefill and decode at generated token 36. Colors indicate maximum absolute tensor differences on a logarithmic scale; gray denotes exact agreement. The first propagating difference appears in layer 2, with cached K/V differences from layer 3 onward. Subsequent differences reflect both accumulated state variation and numerical variation during later operations.

[出典](https://arxiv.org/abs/2611.10334v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Dhayaneshwar Balusamy, Ankur Mohan · Reproducible LoRA Inference Through Deterministic Split-K Reduction · 論文の図を引用 · 元のPDFの8ページ目から図の部分を抽出しています。

論文では、このshrink差分だけを注入した実験ではlayer-3のK/V差分は再現されたものの、後続トークンの切り替えは再現されなかったと報告されています。逆に、36番目のトークン直前のatomic実行のKVキャッシュをSplit-K=1の連続実行に入れたところ、Thereのlogitが21.625に下がり、Eachが選ばれました。したがって、この結果はKVキャッシュの差分がそのトークンの決定を変えうることを示していますが、個別のshrink摂動だけで十分であることの証明は別の実験に依存します。

## 構造化された決定インターフェースの確率と二値決定

Civil Comments実験では、vLLMのnoulインターフェースでQwen3-0.6B rank-16 LoRAアダプタを使い、毒性確率を返させる方法です。1,000件のコメントを1つのエンジンで10回順次評価し、各手法で9,000件の比較を得ました。Atomic Split-K=8は、9,000件の比較のうち7,332件（81.47%）で返された確率が異なり、平均絶対差は0.00143、最大値は0.05672でした。

![Table 2: Probability and decision stability on Civil Comments. Each reduction method has 9,000 comparisons across 1,000 com- ments](https://refivu.com/papers/08d0cd4e-de21-47bd-aadd-21977c8da918/figures/figure-083b866e3157c416256f7c8608d3cd6b.png?thumb=512)

**Table 2** . Probability and decision stability on Civil Comments. Each reduction method has 9,000 comparisons across 1,000 com- ments.

[出典](https://arxiv.org/abs/2611.10334v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Dhayaneshwar Balusamy, Ankur Mohan · Reproducible LoRA Inference Through Deterministic Split-K Reduction · 論文の図を引用 · 元のPDFの10ページ目から図の部分を抽出しています。

ただし、二値分類の結果が変わったのは7件、0.078%で、2つのコメントでのみ発生しました。この2つのコメントの初期確率は正確に0.5で、反転した反復では約0.46879まで下がりました。

## レイテンシのコストとバッチサイズの限界

性能実験では、12個のモデル-データセット-ランク構成で、各50件の逐次リクエストを生成しました。各リクエストでは正確に150トークンを生成し、5回の独立したエンジン試験を行いました。決定論的Split-K=8では、Split-K=1と比べてレイテンシに基づく速度向上が16.8-21.1%で、平均は19.2%でした。Atomic Split-K=8と比べたレイテンシのオーバーヘッドは1.02-2.62%、平均は1.69%でした。

![Table 4: End-to-end latency comparison of Deterministic Split- K=8 against SK1 and Atomic Split-K=8, averaged across GSM8K and MBPP](https://refivu.com/papers/08d0cd4e-de21-47bd-aadd-21977c8da918/figures/figure-0da7cdddd418a1810714828ff41f8be0.png?thumb=512)

**Table 4** . End-to-end latency comparison of Deterministic Split- K=8 against SK1 and Atomic Split-K=8, averaged across GSM8K and MBPP.

[出典](https://arxiv.org/abs/2611.10334v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Dhayaneshwar Balusamy, Ankur Mohan · Reproducible LoRA Inference Through Deterministic Split-K Reduction · 論文の図を引用 · 元のPDFの10ページ目から図の部分を抽出しています。

バッチサイズ実験では、Atomic Split-K=8がすべてのバッチサイズで出力のばらつきを示しました。Split-K=1と決定論的実装は、同じ固定バッチサイズ内では繰り返し出力が同じでしたが、バッチサイズ1と他のバッチサイズの最初の実行を比べると、それぞれ39.58%と39.06%で出力が異なりました。したがって、縮約カーネルの決定性だけでは、システム全体のバッチ不変性は保証されません。

![Table 3: Output differences under fixed and changing batch sizes, aggregated across LoRA ranks 16 and 32](https://refivu.com/papers/08d0cd4e-de21-47bd-aadd-21977c8da918/figures/figure-214e6bfeddd6f3c2968e1942d12a119b.png?thumb=512)

**Table 3** . Output differences under fixed and changing batch sizes, aggregated across LoRA ranks 16 and 32.

[出典](https://arxiv.org/abs/2611.10334v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Dhayaneshwar Balusamy, Ankur Mohan · Reproducible LoRA Inference Through Deterministic Split-K Reduction · 論文の図を引用 · 元のPDFの10ページ目から図の部分を抽出しています。

## 論文情報

- **著者**: Dhayaneshwar Balusamy, Ankur Mohan
- **学会・ジャーナル**: arXiv · プレプリント
- **公開日**: 2026年11月7日
- **登録日**: 2026年11月10日
- **更新日**: 2026年11月7日
- **バージョン**: v1
- **arXiv**: 2611.10334
- **カテゴリ**: cs.LG · cs.AI · cs.DC · cs.PF
- **ライセンス**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **掲載内容**: 論文情報・解説・論文の図

[元論文 ↗](https://arxiv.org/abs/2611.10334v1) · [PDF ↗](https://arxiv.org/pdf/2611.10334v1)

この解説は、Refivuの韓国語解説をAIで翻訳したものです。不正確な翻訳や誤りが含まれる可能性があります。論文と図の利用条件は各出典に従います。

## アブストラクト

Reproducibility is important for LoRA-adapted language models used in repeated evaluation, auditing, and decision-making. However, Split-K kernels used to introduce parallelism in low-rank LoRA multiplications can have the unintended consequence of numerical nondeterminism when partial results are combined using floating-point atomic additions. We investigate this non-determinism in vLLM across GSM8K mathematical reasoning, MBPP code generation, and Jev-style structured toxicity decisions on Civil Comments and introduce a deterministic Triton Split-K implementation. Under identical-input replay, Atomic Split-K=8 produces different FP32 shrink outputs in 97.61% of comparisons, while our Deterministic Split-K=8 shows no observed variation. Repeated atomic inference changes generated outputs in 17.30% of GSM8K and 14.96% of MBPP comparisons, sometimes altering task correctness. Structured-decision probabilities vary in 81.47% of atomic comparisons, with decision flips. Controlled tracing demonstrates how shrink-output differences propagate into the KV cache and how accumulated cache differences can change token decisions and final answers. Our deterministic Triton Split-K=8 implementation preserves parallelism, achieving 16.8-21.1% latency-based speedup over unsplit reduction with only 1.02-2.62% additional latency relative to Atomic Split-K=8.

## この論文を引用

Dhayaneshwar Balusamy, Ankur Mohan (2026). Reproducible LoRA Inference Through Deterministic Split-K Reduction. arXiv:2611.10334v1. https://arxiv.org/abs/2611.10334v1

**BibTeX**

```
@misc{balusamy2026reproducible,
  title = {{Reproducible LoRA Inference Through Deterministic Split-K Reduction}},
  author = {Dhayaneshwar Balusamy and Ankur Mohan},
  year = {2026},
  eprint = {2611.10334},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.10334v1}
}
```

## この論文の用語

- [LoRA](https://refivu.com/ja/terms/84da7a415b66-low-rank-adaptation-lora)
- [GSM8K](https://refivu.com/ja/terms/e48f0e01064d-gsm8k)
- [vLLM](https://refivu.com/ja/terms/fe3c96648564-vllm)
- [KV cache](https://refivu.com/ja/terms/cbf2f6d2bcc1-kv-cache)
- [MBPP](https://refivu.com/ja/terms/717e657dd0b2-mbpp)

## ほかの論文解説

- [From LoRA to Language: Recovering Skill Documents from Adapters](https://refivu.com/ja/papers/503c1228-a1d9-4599-9515-08727ae9ff50-from-lora-to-language-recovering-skill-documents-from.md)
- [FOSCAR: Accelerating Decode Attention over 2- and 4-Bit KV Caches through Affine Folding](https://refivu.com/ja/papers/25f2b187-e0d8-4c67-863e-a4af04718667-foscar-accelerating-decode-attention-over-2-and-4.md)
- [ResQAdam: Residual-Preserving Adaptive Optimization for Memory-Efficient Quantization Aware Training](https://refivu.com/ja/papers/8334faf5-0339-44da-beec-bc9e0f68356f-resqadam-residual-preserving-adaptive-optimization-for.md)
- [PhysioWave-T: Token-Efficient Wavelet Foundation Models for Biosignals](https://refivu.com/ja/papers/bcb7cd27-d47d-4acf-b2c4-e89097e090e0-physiowave-t-token-efficient-wavelet-foundation-models-for.md)
- [Uncovering near-wall blood flow from sparse data with physics-informed neural networks](https://refivu.com/ja/papers/5532e81a-0a00-4722-b226-e72f33cb333a-uncovering-near-wall-blood-flow-from-sparse-data.md)
- [Adaptive Fourier Neural Operators: Efficient Token Mixers for Transformers](https://refivu.com/ja/papers/e1ad5f0d-a89a-4cb3-8342-dd757fe4cb2a-adaptive-fourier-neural-operators-efficient-token-mixers-for.md)
- [Evaluating classification and explainability in multimodal petrographic image analysis](https://refivu.com/ja/papers/17298a4b-352b-4273-9ab4-b451803ecd99-evaluating-classification-and-explainability-in-multimodal.md)
- [A Clinical Evaluation of Conformal Prediction for Chest Radiograph Report Generation](https://refivu.com/ja/papers/36d050a6-379f-4a2f-9396-f91fd2ea8f9a-a-clinical-evaluation-of-conformal-prediction-for-chest.md)
- [Longtail-SWE: High-Quality SWE Tasks for Underrepresented Languages](https://refivu.com/ja/papers/1446fa74-26d9-4736-9fd5-48f610ba048a-longtail-swe-high-quality-swe-tasks-for-underrepresented.md)
- [Who Taught the Robot That? Removing One User's Corrections from a Robot Policy That Learns Online](https://refivu.com/ja/papers/684aa8db-cdcd-4f3e-8d3d-b409f7dec090-who-taught-the-robot-that-removing-one-user.md)
- [Match the Geometry Before the Surrogate: Extreme Low-Budget Optimization in High Dimensions](https://refivu.com/ja/papers/ea26beb1-1e63-4a93-a52d-77652ffeed9b-match-the-geometry-before-the-surrogate-extreme-low.md)
- [From Weapons to Events: Evaluating Evidential Support in Multimodal AI for Policing](https://refivu.com/ja/papers/a6ff4b65-1ba3-40fe-b1a4-02072d833a43-from-weapons-to-events-evaluating-evidential-support-in.md)

---

AI解説には誤りが含まれることがあります。 [Refivu](https://refivu.com/ja/papers/08d0cd4e-de21-47bd-aadd-21977c8da918-reproducible-lora-inference-through-deterministic-split-k)
