Depth Hybrid Attention (DHA): Depth-Wise Value Mixing for Hybrid Attention Architectures
Summary
An architectural add-on for hybrid attention: let layers mix information across DEPTH, not just across time. DHA extends the group's earlier Depth-Attention (validated in plain GQA) to hybrid stacks. The forward pass for each token maintains a per-token 'depth bank' holding KV anchors written by preceding layers. Before its temporal attention, each layer runs a depth router: (1) Read historical anchors from the bank, (2) Mix - value mixing in the form of attention over those anchors, (3) Write its own anchors to the bank. The mixed values then feed the layer's ordinary temporal attention, whose design is untouched. Because the bank is per-token and holds one anchor set per layer rather than per position, it does not grow with context length - the hybrid's low KV-cache footprint is retained, at 'very little' added compute and cache (their characterization). Two variants, each keeping separate depth banks per layer type so a layer only reads anchors from its own kind: Depth Window Attention (DWA) for GQA + sliding-window attention hybrids, routing at KV-group granularity while SWA layers keep their temporal window; and Depth Delta Attention (DDA) for MLA + Kimi Delta Attention (KDA) hybrids, where MLA routes in latent space and KDA mixes values across depths using normalized queries/keys with depth-specific logit scaling before its delta-attention update. Results (short-context suite of 8 benchmarks - ARC-Challenge, HellaSwag, MMLU, CMMLU, GSM8K, MBPP, CMATH, MMLU-Pro; averages): DWA 39.68 vs GQA+SWA 37.84 vs full GQA 38.06, with the gains concentrated in generation tasks (GSM8K 44.43 vs 38.36 hybrid / 37.60 full) and MMLU a small exception (45.51, below full GQA's 46.19); DDA 40.92 vs MLA+KDA 39.12 vs full MLA 38.19 (GSM8K 43.67, CMATH 51.64). The README also reports better loss curves and long-context retrieval vs both baseline classes, but those results are figures only, with no numbers in text. Caveats: a code/project release, not a paper - no arXiv version, no stated model scale, token count, or training setup behind the benchmark tables in the README, all results first-party (Nanbeige LLM Lab, BOSS Zhipin), repo created 2026-10-29 with 3 commits and no LICENSE file in the root at catalog time. Relevance: DWA targets exactly the GQA+SWA hybrid family - in a 3:1 SWA:full stack the depth axis is orthogonal to the temporal hybrid split, but note the constraint that banks are per layer type, so window layers never read anchors written by full layers and vice versa; DDA's KDA branch is the Gated DeltaNet family paired with MLA instead.
- Venue
- Project / code release (GitHub)
- Source
- github
- Access
- free
- Language
- en
- Added
- Nov 3, 2026
- Verified
- Nov 3, 2026
Research notes
- Code/project release (repo created 2026-10-29; 3 commits; contributors leran95 and xzy-xzy per GitHub). No paper or arXiv version and no LICENSE file in the repo root at catalog time - flagged. Benchmark tables carry no model scale or training-token counts in the README; loss-curve and long-context results are figure-only. Shared via @nanbeige X post (status 2117570562264584671, 2026-11-03). The README cites a predecessor 'Depth-Attention' validated in full GQA (arXiv link in repo).
Similar entries
- Paper Native Hybrid Attention for Efficient Sequence Modeling
- Paper How Local Mixing Encodes Relative Position in Global NoPE Attention
- Paper DepthBench: Measuring How Residual Connections Enable More Computational Depth
- Paper Balancing Memory Pathways: Analyzing and Improving Memory Utilization in Hybrid LMs
- Paper LayerRoPE: Dynamic Depth-wise Magnitude & Angular Superposition
- Paper HySparse2: Hybrid Sparse Attention with Two-Level KV Sharing