Explore the research collection
4 entries · Follow this search
- Paper
On the Design of Hyper-Connections: Simplification, Stability, and Scalability
Ablation-driven simplification of Hyper-Connections (HC / mHC), the expanded-residual architecture increasingly adopted in frontier LMs, whose components the authors argue are poorly understood and carry non-negligible training overhead (arXiv 2611.05984, Nov 4 2026). Two findings drive the redesign: (1) the HC interaction decomposes into two independently effective groups - learned read/write gating WITHOUT residual mixing, and unconstrained mixing with FIXED gates - and either alone matches full mHC performance, so the full combination is redundant; (2) repeated access to the expanded residual state is a major source of training overhead even without any mixing. The resulting architecture, SimpleHC, removes residual mixing entirely and simplifies execution through shared memory access, exploiting the additive structure and shared gate inputs: layer-specific gates share a group-entry state, enabling batched reads and deferred writes, and scalar corrections exactly preserve the contributions of preceding sublayer outputs. Results: SimpleHC costs only 2.4% extra end-to-end training time over a vanilla residual baseline at the largest tested scale, maintains performance comparable to mHC when scaling from 15B to 30B MoE models, shows smoother gradient dynamics during standard training, and remains stable under stress tests. Flags, as entered: abstract-level record (ablation details and per-component numbers live in the full text); evidence is at 15B-30B MoE scale, far above small-model regimes, so the transferable claim for smaller stacks is the qualitative one - that HC's mixing machinery appears dispensable and its systems overhead is mostly memory access, not the mixing itself; license not confirmed from the arXiv record at cataloging time. Cross-references: the catalog's HC family - ID 1540 (Hyper-Connection Factory repo), ID 1688 (xHC: Expanded Hyper-Connections), ID 1654 (Multi-Stream Attention Residuals); Junchi Yan also co-authored ID 1805 (DepthGraft), whose references cite this work.
- Paper
xHC: Expanded Hyper-Connections
xHC (Expanded Hyper-Connections) is the first Hyper-Connections-family method to achieve meaningful residual-stream expansion beyond N=4. Hyper-Connections expand the Transformer residual stream into N parallel streams (memory scaling beyond width and depth); mHC stabilized this at scale but stopped at N=4, where scaling mHC further gives diminishing gains at rising cost. xHC combines (1) temporal feature augmentation — MLP write-back enriched with multi-scale local features from causal depthwise convolutions (kernels {4,8,12}) over neighboring tokens — with (2) sparse residual-stream updates: dense read access to all N=16 streams, but residual mixing/write-back routed through only k=4 active streams (2 fixed + 2 routed), cutting residual-mapping generation cost from O(N³C) to O(k³C); mixing is Sinkhorn-normalized over active streams. On an 18B MoE, xHC improves the average downstream score over mHC by 4.0 points across 12 benchmarks (3.1 points at 28B, winning 11/12), with only modest extra training FLOPs; vanilla and mHC need 1.50× and 1.19× xHC's compute to reach the same loss; expanding N=4→16 improves xHC's loss by 0.012 at +4% FLOPs vs 0.006 at +32% for mHC. xHC-Flash (sharing full-state ops across sublayers) cuts per-sublayer memory traffic from 73.5C to 40C (Flash-4sub), near mHC's 34C at N=4, while retaining the gains. Fused Triton forward/backward kernels: mHC adds ~15% training overhead over baseline, xHC-Flash-4sub ~11% on top of mHC; inference prefill +11.4%/+12.9%. Author-open-sourced the training code (Megatron-LM based; xHC-Flash not included): github.com/aHapBean/xHC (Apache 2.0).
- Paper
Native Hybrid Attention for Efficient Sequence Modeling
Native Hybrid Attention (NHA) unifies linear and full attention into a single softmax operation within one uniform layer design. Long-term history is compressed into fixed-size key-value memory slots updated by a linear RNN; short-term context comes from exact sliding-window tokens; one softmax over all keys and values learns per-token, per-head balancing dynamically with no extra fusion parameters. A single hyperparameter — the sliding window size — shifts each layer smoothly between pure linear attention (w=0), intra-layer hybrid, and full attention (w=N), with no structural changes; all layers share the same architecture. NHA beats Transformers and other hybrid baselines on recall-intensive and commonsense reasoning tasks, and pretrained LLMs (Llama-3, Qwen) can be structurally hybridized with NHA via lightweight finetuning (e.g., NHA-Qwen2.5-7B / NHA-Llama-3-8B trained on 10B tokens, NHA-Qwen3-30BA3B) to match accuracy with drastically lower GPU memory and inference latency.
- Paper
HySparse2: Hybrid Sparse Attention with Two-Level KV Sharing
Xiaomi LLM-Core paper (arXiv 2609.26368v1, 2026-09-22, cs.CL). HySparse2 extends HySparse with YOCO-style self-decoder (hybrid SWA) + cross-decoder (hybrid sparse attention) and two-level KV sharing: outer KV Bridging (full-attention layers only; cross-decoder K/V from self-decoder full-attn hidden states) and inner KV Reuse (HySparse-style shared KV + selection within hybrid blocks). Refinements vs HySparse: token-level sparsity (replacing block-level) and Forced SWA (recent tokens forced into sparse selection, no separate SWA branch). All cross-decoder KV can be built from self-decoder states, so prefill can exit after the self-decoder (~half the model). On matched 80B-A3B MoE training: after light post-training (~100B tokens), mean MRCR-v2 / RULER-v2 +11.30 / +19.81 vs HySparse; at 256k RULER-v2 58.45 vs HySparse 32.61 / Hybrid SWA 35.74; lower AgentPPL and LongPPL to 256k; at 1M tokens analysis claims 2.92× / 5.02× less prefill FLOPs vs HySparse / Hybrid SWA plus smaller KV cache. No public code link in paper; AlphaXiv abs live; HF papers page 404 at catalog time.