松田研究室
FindingID: a-7-multi-scene-batched
Status: stable / task A.7
← Findings Index
Multi-scene finding · scene-dependent batching

A.7 × multi-scene — batching 効果は scene 依存 (-1.6% 〜 -18.6% で 12x の幅)

A.7 batched cmd buffer (env SPLAT_BATCHED_FORWARD=1) を chair / ficus / drums / hotdog で 30k 実行。wallclock 改善は -1.6% (ficus) 〜 -18.6% (chair) と scene 依存で 12 倍の幅。splat 数だけでは説明不可、scene geometry の compute/commit ratio が batching benefit を決定。PSNR drift は hotdog で -0.83 dB と高品質シーンほど SIMD atomic 非決定性の影響大。

mixedrank: highpartial第 3 軸phase-5a-7icbbatchedmulti-scenescene-dependencyapple-silicon
Δ PSNR
+0.130 dB 〜 -0.828 dB (mean -0.21 dB)
Δ Wallclock
-1.6% 〜 -18.6% (mean -7.0%)
Impact
A.7 batched cmd buffer の wallclock 改善は scene 依存で chair -18.6% / hotdog -5.4% / drums -3.4% / ficus -1.6% / lego -6.16% の 5 シーン (12x の幅)。chair の突出は splat 数最大 (~130k) + scene geometry の compute/commit ratio が高いことが要因と推測。一方 ficus / drums は variance 範囲内、独立 effect 断定不可。卒論で「A.7 effective ≠ universal、scene 選択 + workload analysis 必須」と honest framing。
01

本文

A.7 lego 単独 finding (-6.16%) の汎化性を確認するため、chair / ficus / drums / hotdog で同じ env SPLAT_BATCHED_FORWARD=1 を適用し 30k bench。結果は scene 依存で 12 倍の幅、A.7 batching は scene-specific な workload で大きく effect が変動することが判明。

実施日
2026-05-23 Phase B (bench chain Phase B)
config
configs/2026-05-23-1000-{chair,ficus,drums,hotdog}-batched-30k.toml
binary
main HEAD (5573681 A.7 cherry-pick 適用後)
env
SPLAT_BATCHED_FORWARD=1 (trainer.forward_with_state_batched_tail + backward_combined_batched 経由)

実測値 (multi-scene wallclock 改善)

scenebaseline wallbatched wallΔ wall %baseline PSNRbatched PSNRΔ PSNR
**chair**22m54s (1374s)**18m39s (1119s)****-18.6%**22.88322.780-0.103
lego23m13s (1393s)21m47s (1307s)**-6.16%**24.87924.577-0.302
**hotdog**23m52s (1432s)22m35s (1355s)**-5.4%**30.290**29.462****-0.828**
drums21m27s (1287s)20m43s (1243s)-3.4%17.77317.903+0.130
ficus22m54s (1374s)22m33s (1353s)-1.6%13.95914.054+0.095
wallclock 改善は chair で突出 (-18.6%)、ficus でほぼゼロ (-1.6%)。PSNR drift も hotdog で -0.83 dB、他 scene は ±0.13 dB 程度。

scene 依存性の analysis

(1) wallclock 改善 vs splat 数の弱相関

scenefinal splats (baseline)wallclock Δ %
chair~130k**-18.6%**
hotdog~80k-5.4%
lego83,734-6.16%
drums~65k-3.4%
ficus~50k-1.6%
splat 数が多いほど batching 効果が大きい trend は見えるが、hotdog (80k) と lego (84k) で大きな差。単純な correlation でない。

(2) 仮説: compute/commit ratio + scene geometry

batching benefit は "commit overhead 削減量" だが、その効果が iter time に占める割合は scene による:

  • chair (-18.6%): 椅子の thin geometry (脚 / 背) は per-tile 多数 splat 通過 → per-tile compute は重いが各 dispatch は短く済む → commit overhead 占有率 高 → batching 効果 大
  • hotdog (-5.4%): 平面 + 滑らかな形状 は per-pixel compositing が単純、iter time は GPU compute bound → commit overhead 占有率 低 → batching 効果 小
  • ficus (-1.6%): 細い枝の繰り返し、refine の grad-driven split が高頻度 → per-iter で host CPU 側 refine 判定が dominant → batching 対象外 (refine は変更不可)

(3) PSNR drift は高品質シーンで顕在化

hotdog -0.828 dB は variance σ ±0.32 dB の 2.6x で有意。低品質シーン (ficus 13.9 dB) では drift +0.095 dB と variance 内。これは SIMD atomic 非決定性が absolute PSNR 値が高いシーンほど visible という性質 (relative ratio で同じ drift でも高品質シーンで「目立つ」)。

有意性判定 (variance baseline 適用)

A.10 variance baseline から PSNR σ ±0.32 dB / wall σ ±2.4% を有意性 noise floor とすると:

scenewall Δwall 有意?PSNR ΔPSNR 有意?
chair-18.6%**有意** (7.8 σ)-0.103× 内 (0.3 σ)
lego-6.16%**有意** (2.6 σ)-0.302× 内 (0.9 σ)
hotdog-5.4%**有意** (2.3 σ)-0.828**有意** (2.6 σ)
drums-3.4%× 内 (1.4 σ)+0.130× 内 (0.4 σ)
ficus-1.6%× 内 (0.7 σ)+0.095× 内 (0.3 σ)
5 scene 中 3 scene (chair / lego / hotdog) で wallclock 有意改善、drums / ficus は variance 内。PSNR drift は hotdog のみ有意悪化。

卒論への含意

Chapter 第 3 軸 (Apple Silicon 固有最適化) で A.7 batching を「scene-specific positive finding」として記述:

  • 適用シーンを選べば wallclock -5〜-19% 改善 (chair / lego / hotdog で有意)
  • 適用シーンによっては PSNR drift -0.83 dB (hotdog) — atomic 非決定性が高品質シーンで顕在化
  • scene-independent な "汎用最適化" としては不採用が妥当
  • scene workload analysis (compute/commit ratio profiling) を deployment 前に行うべき
Lesson

single-scene bench の数字を universal claim に使うのは危険」が今回最大の方法論的 lesson。A.7 lego -6.16% で commit して、他 4 シーン bench せずに「+6% positive」と書けば misleading だった。卒論 evaluation には multi-scene bench を必須にすべき。

残作業 (defer)

  • scene geometry の compute/commit ratio を Instruments Metal Trace で profile (仮説の rigorous 検証)
  • backward atomic を non-atomic reduction に書き換え、hotdog の PSNR drift を解消する A.7 part 2
  • Tanks & Temples real-world scene で A.7 適用 (現状 NeRF Synthetic のみ、real-world は別 dynamics の可能性)

関連

  • A.7 lego 単独 finding: a-7-icb-batching-results
  • A.7 implementation plan: a-7-icb-batching-plan
  • A.10 variance baseline (有意性 noise floor): a-10-variance-baseline
  • A.4 NeRF Synthetic multi-scene 8 シーン: a-4-nerf-synthetic-scene-results
  • A.5 final ablation 表: final-ablation-table
02

関連する run

この finding が観測された / 言及している実験 run。

03

関連 finding

© 2026 大竹律輝 — 松田研究室