Skip to content
AI-generated research idea🟠Medium💡Moderate InnovationRelated work found

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

a couple of months

Compute level

Large cluster

Resources

TPU v5p-32 pod or multi-node 8x H100 cluster to reproduce XL (1.4B, 26B tokens) SwiGLU instability

What the paper used

JAX/MaxText pretraining on TPU v5p pods (v5p-16 for 432M/7B tokens, v5p-32 for 778M/14B and 1.4B/26B tokens, v5p-128 for 2.8B/300B tokens) on The Pile, plus single NVIDIA A800-80GB inference benchmarks.

Prerequisites

Optimization theory, muP scaling, LLM pretraining stability diagnostics

Scope

modify existing code

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.”
From the paper, Section D.1, page 17. Matched against the PDF text.

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.

  1. 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.
  2. 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.
  3. Apply QK-Norm on concatenated RoPE+MRead queries/keys and RMSNorm on FFN_M writes, alongside muP width-scaling of port generator learning rates.
  4. 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?

Related work found

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.

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 Attention

Da 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

Is this a good idea?

Share onXLinkedIn