Navigation menu
DepthGraft: Structural Regularization through Hierarchical Cross-Layer KV Reconstruction
DepthGraft: Structural Regularization through Hierarchical Cross-Layer KV Reconstruction
Xiaohan Qin, Xiangdong Zhang, Yu Wang, Huaijin Wu, Zhuo Xia, Yebin Yang et al.
2026-11-11▲ 14arXiv 2611.03142v1Hugging FaceCode
AI-generated from the full paper (deepseek-flash). It may contain mistakes; check the original.
TL;DR
DepthGraft turns cross-layer KV sharing into a hierarchical, stride-aligned reconstruction that regularizes KV geometry and reduces KV cache while improving downstream performance from 0.5B to 16B models.
Problem
Pre-LN depth scaling suffers from depth-wise information dilution, making deep layers less effective. Cross-layer connectivity can help, but dense cross-layer access adds computation and memory traffic. Existing KV-sharing methods treat sharing mainly as cache compression and do not systematically study how sharing topology shapes cross-layer gradients and KV representation geometry.
Method
The paper views KV sharing as a memory-routing graph whose reuse edges also create direct cross-layer gradient paths to source KV projections. It analyzes K/V effective rank: cross-layer sharing can sharpen key retrieval directions while enriching the value content subspace, depending on topology. Adjacent sharing lacks query-space separation; global-anchor sharing concentrates heterogeneous gradients on few anchors. DepthGraft partitions the L-layer model into shallow, middle, and deep stages of about L/3 layers. Shallow and middle stages compute KV normally; each deep layer reconstructs KV from a stride-aligned shallow-middle source pair with learnable channel-wise coefficients, tying key coefficients across RoPE pairs.
Results
- On the 16B MoE model, DepthGraft reports absolute gains on MMLU-Pro, CMMLU, and C3. §Abstract
- Dense models improve average score at 0.5B, 1B, and 1.5B. §4.2
- GQA-based MoE models improve average score at 3B, 9B, and 16B. §4.2
- At 128K context, TTFT is reduced by 26.8% on 9B MLA and 28.8% on 16B GQA, while TPOT overhead remains below 1%. §4.2
- Ablation isolates cross-layer gradients: detached shallow-copy 42.86 vs baseline 42.38, enabled shallow-copy 45.30, DepthGraft 47.56 average. §4.3
- RULER average is higher at every evaluated length, including 4K and 32K. §4.4
Limitations
- The theoretical analysis is conditional/local: Appendix C states the proposition does not claim that effective rank must change monotonically under arbitrary training dynamics.
- Future work calls for a more rigorous theoretical understanding, more effective sharing topologies, and scaling to larger pretraining regimes.
- The paper states the gap to the theoretical TTFT speedup can be further reduced with specialized kernel optimizations.
- Long-context RULER evaluation is reported only for the 16B A3B model after 32K context extension; other scales are not covered.
Key points
- A KV-sharing scheme is a cross-layer memory-routing graph with source and reuse layers; it specifies sources, fan-out, and how reused KV is constructed. §3.1
- Every reuse edge is also a direct cross-layer gradient path to the source W_K and W_V projections. §3.1
- Keys and values specialize asymmetrically: key effective rank tends to decrease and value effective rank to increase during training, and proper sharing amplifies this. §3.2
- Adjacent sharing lacks query-space separation; global-anchor sharing creates high fan-in gradient congestion and uneven regularization. §3.3
- DepthGraft uses three stages of about L/3 layers and reconstructs deep-stage KV from stride-aligned shallow and middle sources. §3.4
- Key reconstruction coefficients are tied across RoPE pairs, so reconstruction commutes with RoPE and preserves KV-cache storage logic. §B
- DepthGraft stores KV for roughly 2L/3 layers, giving a cache ratio near 2/3 and about one-third reduction, and allows prefill early completion. §F.1
- For the 16B A3B GQA MoE, removing K/V projections in 9 reuse layers removes 37.7M activated parameters, about 1.3%. §F.2
Mind map
Sign In
Choose a method to continue
By signing in, you agree to our Terms and Privacy Policy

