Add orthogonal Ref2VA B25-49 MLP fix for 10Eros_Max_8stepTurbo_v1.0_ref2va (baked + LoRA + visual proof)
Surgical Fix for Multi-Ref / Multi-RefMod Binding on 10Eros_Max_8stepTurbo_v1.0_ref2va
Hey TenStrip — massive props on v1.0_ref2va! Leaving condition_proj, token_refiner, and blocks.0..49.attn (0.88%–1.24% delta) close to stock minimax_h3_ref2va keeps single-ref likeness, voice timbre, and color way cleaner than typical merges.
While auditing why multi-ref / multi-RefMod prompts (3 <Picture> sheets at once) can occasionally drop a background ref or bleed outfits between subjects, I found a clean surgical fix that leaves 482 / 532 tensors byte-identical and preserves your entire Sulphur-3 / v1.0 look.
1. What Was Happening Under the Hood
Inspecting 10Eros_Max_8stepTurbo_v1.0_ref2va.safetensors tensor-by-tensor against minimax_h3_ref2va and minimax_h3_fl2va_pruned:
condition_proj,token_refiner,final_layer.*: Untouched stockref2va(0.00%–0.16%).blocks.0..49.attn.{qkv_proj, out_proj}: Preserved nearref2va(0.88%–1.24%rel L2).blocks.0..49.mlp.{fc1, fc2}: Bit-identical (0.0000diff) to10Eros_Max_8stepTurbo_v1.0_hybrid.safetensors(fl2va-based, so theB25–49Ref2VA MLP delta sits at-1.00).
With 1 reference, Attention alone carries routing. With 3 <Picture> / multi-panel RefMod sheets, the missing B25–49 Ref2VA MLP routing pushes all multi-subject separation onto Attention alone (which can drop <Picture 3>, bleed garments between subjects, or make Attn fragile under mseclip quantization).
(Side heads-up: 10Eros_Max_raw_v1.0_ref2va.safetensors also currently lists shape_merge_source_b = 10Eros_Max_8stepTurbo_v1.0_hybrid.safetensors — 0.0000 diff vs 8stepTurbo on adaln_t_table and mlp.fc2, 0.01% on attn.out_proj, so raw_v1.0_ref2va currently carries v1.0_hybrid's baked turbo too.)
2. The Surgical Fix (B_orth = B − Q_s3 (Q_s3^T B))
Adding raw (ref2va - fl2va) onto v1.0_ref2va fails in A/B tests because it collides with Sulphur-3's MLP tuning. Instead:
- Extract
SVD_256(minimax_h3_ref2va - minimax_h3_fl2va_pruned)strictly onblocks.25..49.mlp.{fc1, fc2}. - Project out
Sulphur-3's column basis (Q_s3 = qr(Sulphur-3_rl_lora_frob99_cap128)):
$$B_{\perp} = B - Q_{s3}(Q_{s3}^T B)$$- Orthogonal retention:
99.55%(fc1) /98.66%(fc2) blocks.0..24, allattn,token_refiner,adaln_t_table,condition_proj, andfinal_layerstay 100% untouched.
- Orthogonal retention:
3. Same-Seed Sweep Results (512x384x56, 8 steps, lcm / simple, shift 12 / 3)
Tested across 5 three-reference / 3-RefMod-sheet scenes comparing stock BF16, orth 0.75, orth 1.00 (fc1+fc2), orth fc1-only, and raw (unprojected):
Test Case (3 <Picture> Refs / Sheets) |
stock_bf16 (Unmodified) |
orth_100 (B25–49 fc1+fc2 @ 1.00) |
|---|---|---|
3-Ref Dialogue (seed 7701) + voice |
Dropped <Picture 3> green porthole door (raw unprojected dropped it too) |
Locks <Picture 3> exact green porthole door + hazard sticker; speech RMS 0.2338 → 0.2396 |
3-Ref Dialogue (seed 8802) + voice |
Bled Subject 2's bare legs + thigh garter onto Subject 1's trousers | Zero bleed — keeps Subject 1's dark trousers and preserves Subject 2's thigh garter (0.75 & fc1-only lost her garter); speech RMS 0.2547 → 0.2704 |
| 3 Multi-Panel RefMod Sheets (Bank Lobby + Voice) | Slight f=0 mouth/jaw puffiness |
All 3 RefMod sheets locked cleanly with tighter f=0 face/glasses alignment and smooth turn/speech sync |
| 3 Multi-Panel RefMod Sheets (Steel Vault) | Good separation (tdiff 0.0122) |
Zero outfit/hair bleed + +14% richer motion (tdiff 0.0139) |
4. Files Included
10Eros_v1_ref2va_B25-49_orth_fix.safetensors(656 MBBF16 MLP-only LoRA — drop directly on10Eros_Max_8stepTurbo_v1.0_ref2vaat strength1.0to A/B test in 30 seconds!)patch_v1_ref2va_orth.py— streaming, low-RAM script to bake the fix linearly into10Eros_Max_8stepTurbo_v1.0_ref2va.safetensorsin ~69s with--verifybit-parity checks.10Eros_v1_ref2va_Fix_Visual_Diff.html— self-contained interactive before/after wipe-slider explainer (SFW frames).- Baked checkpoint:
10Eros_Max_8stepTurbo_v1.0_ref2va_orthfix.safetensors(40.22 GB, BF16, bit-exact parity verified).
(Happy to also push the full pre-baked 40.22 GB 10Eros_Max_8stepTurbo_v1.0_ref2va_orthfix.safetensors directly if you'd like it in the repo!)
5. Inline Visual Proof (SFW Same-Seed A/B Strips)
Case 1: 3-Ref + Voice (seed 7701) — <Picture 3> Door Retained (stock & unprojected raw drop it)
Case 2: 3-Ref + Voice (seed 8802) — Cross-Subject Garter Bleed Fixed (1.00 fc1+fc2 keeps both outfits intact)
Case 3: 3 Full Multi-Panel RefMod Sheets (kuru_kyo_real2 + Cat-Eared Agent + htb_lobby) + Voice
Case 4: 3 Multi-Panel RefMod Sheets (bob_sheet + Blonde + htb_vault) — +14% Richer Motion, Zero Bleed
(All proof scripts & interactive 10Eros_v1_ref2va_Fix_Visual_Diff.html live in orthfix_proof/; pre-baked 10Eros_Max_8stepTurbo_v1.0_ref2va_orthfix.safetensors and standalone 10Eros_v1_ref2va_B25-49_orth_fix.safetensors are at repo root.)



