Principled Stabilization of Dual-Stream Optimization Without Bounded Activation Swaps
Identify and fix gradient-norm spikes in dual-stream depth-routing networks so large models train stably with standard activations instead of bounded substitutes.
Time
Compute level
Resources
What the paper used
Prerequisites
Scope
The Gap
In Appendix D.1 (page 17), LoomFormer relies on specialized asymmetric gate-bias initializations (0.05 dynamic read, 0.9 static read, 0.1 write, 0.5 MShift) and, at the XL scale (1.4B parameters), replaces standard SwiGLU in FFN_x with Kimi K3's bounded SiTU-GLU activation (beta_1 = 4, beta_2 = 7) to maintain training stability.
“To improve training stability at the XL scale, LoomFormer-XL replaces SwiGLU in FFNx with Kimi K3’s bounded SiTU-GLU activation (Kimi Team, 2026b) with β1 = 4, β2 = 7.”
Limitation
Requiring ad-hoc bounded activations and delicate gate initialization heuristics at 1.4B suggests underlying gradient or activation-norm instability in dual-stream coupling as models scale, which could cause divergence at 7B+ scales or under higher learning rates.
Proposed Solution
Analyze gradient norms, port-gate saturation, and FFN_M output variance across width/depth at the XL scale under SwiGLU, and introduce scale-invariant stabilization such as muP-based initialization/learning-rate scaling for port projections, QK-Norm on horizontal attention, and RMSNorm on FFN_M write vectors.
Why This Matters
Replacing architecture-specific activation workarounds with principled scale-invariant stabilization would make dual-stream architectures more predictable and reliable when scaling to frontier model sizes.
How to Get Started
How to test it: Test whether adding QK-Norm, FFN_M output RMSNorm, and muP port LR scaling enables SwiGLU LoomFormer-XL (1.4B, 26B tokens) to train without loss spikes and match or beat SiTU-GLU's 1.979 Pile validation loss; stop if SwiGLU still diverges at 2x peak LR.
- Reproduce LoomFormer-XL (1.4B, 26B tokens) from the released code using standard SwiGLU to log exact loss-spike onset, FFN_x/FFN_M activation norms, and port-gate gradients.
- Run controlled stress tests across elevated learning rates at Medium (432M) and Large (778M) scales to isolate whether instability originates in FFN_x, FFN_M writes, or horizontal Q/K.
- Apply QK-Norm on concatenated RoPE+MRead queries/keys and RMSNorm on FFN_M writes, alongside muP width-scaling of port generator learning rates.
- Validate stability and final Pile validation loss at XL (1.4B) with standard SwiGLU against the SiTU-GLU baseline.
Code linked to this paper on Hugging Face: github.com/Caiyun-AI/LoomFormer
Suggested by AI. Adapt it to your setup.
Has This Been Done?
Papers such as Taylor-Calibrate and Controlled LLM Training on Spectral Sphere discuss initialization and stabilization techniques for hybrid or normalized models, but do not target the specific stabilization of dual-stream optimization under SwiGLU with muP and QK-Norm.
- Controlled LLM Training on Spectral Sphere · 2026 · 44 citations
- Taylor-Calibrate: Principled Initialization for Hybrid Linear Attention Distillation · 2026 · 2 citations
- DNT: a Deeply Normalized Transformer that can be trained by Momentum SGD · 2025
We searched OpenAlex and arXiv for “transformer training stability SwiGLU bounded activation muP dual-stream” and “Principled Stabilization of Dual-Stream Optimization Without Bounded Activation Swaps” and an AI compared the idea with the top 10 results. A small search can miss relevant work.
Source Paper
Rewirable Circuits in Transformers with Loom AttentionDa Xiao, Qingye Meng, Shengping Li +1 more · 2026
The paper introduces loom attention and LoomFormer, a dual-stream Transformer architecture that makes inter-head circuits dynamically rewirable at every token rather than fixed by static virtual weights. By routing head outputs and inputs vertically through a shared per-token matrix memory alongside standard horizontal token attention, LoomFormer achieves the language modeling and downstream accuracy of Transformers trained with over 3x compute and recent residual-stream baselines trained with 1.7-2.8x compute at only 2.0-3.7% extra forward FLOPs.
Related Ideas
- Hybrid Sliding-Window and Fixed-State Depth Memory for Deeply Looped TransformersLoopback Transformer: Towards a Unified View of Residual Looped Transformers🔴Hard
- Controlled Block-Level Comparison of Content-Gated Recurrent Depth ReadersLoopback Transformer: Towards a Unified View of Residual Looped Transformers🟡Fairly easy
- Token-Conditioned Input Injection and Adaptive Update Budgets in Loopback ResidualsLoopback Transformer: Towards a Unified View of Residual Looped Transformers🟠Medium
- Manifold-Constrained Multi-Stream Normalization for Stable Diffusion TrainingDyLoMo-DiT: Dynamic Looped Mixture-of-Experts Diffusion Transformers🟡Fairly easy
- Accelerating Inference in Spatial-TTT via Predictive Fast-Weight UpdatesSpatial-TTT: Streaming Visual-based Spatial Intelligence with Test-Time Training🔴Hard