AdaDSF: Allocating Dynamic Depth Compute by Layer Similarity¶
Fidelity: core mechanism. Executes dense calibration, layer-wise token budgets, Top-K routing, and feature alignment with a smaller model and training budget.
Paper information¶
| Field | Details |
|---|---|
| Paper | arXiv 2607.21291 |
| Organization | Huawei ACS Lab / Southern University of Science and Technology |
| First public release | 2026-07-23 (arXiv v1) |
| Authors' code | No official or author implementation is linked by the paper (checked 2026-08-09). |
| Adapter / method | adadsf |
| Local reproduction code | src/auto_research/reproductions/adadsf/ |
Original paper¶
Motivation and method¶
Fixed-ratio Mixture-of-Depths budgets every layer alike even though some layers change representations more. AdaDSF measures layer input/output cosine on a dense teacher and assigns more compute where representations change most. An MLP router sends only Top-K tokens through the original Transformer block; other tokens take a residual bypass. Hidden states and output distributions are aligned jointly.
flowchart LR
C["dense calibration batch"] --> S["layer input/output cosine"]
S --> B["similarity-driven retention ratios"]
X["layer tokens"] --> R["lightweight MLP router"]
B --> R
R --> K["Top-K tokens"]
R --> P["bypass tokens"]
K --> T["original Transformer block"]
T --> M["scatter and merge"]
P --> M
D["dense teacher trajectory"] --> A["hidden + output alignment"]
M --> A
Key figure from the paper¶
Figure 1: Core architecture, its modules, and their connections. From the original paper; copyright remains with the authors.
Core equations¶
Layer transformation similarity and temperature-normalized weights:
Map \(w_i\) to bounded ratios and correct the allocation to global budget \(t\):
The alignment objective is:
Paper results¶
On WikiText-103, dense GPT-NeoX-130M has PPL 17.9. At 80% retention, MoD has 21.6 and AdaDSF 18.9, with normalized FLOPs 0.787. For Qwen2.5-0.5B, the mean over six commonsense tasks moves from dense 51.7 to AdaDSF 49.1, above equal-FLOPs MoD 44.4. Industrial online A/B is not a criterion for this LLM paper.
Local reproduction¶
Local comparison. One 96-dimensional, four-layer dense teacher; Uniform MoD and AdaDSF share 80% token budget, checkpoint, 35 alignment steps, and optimizer. AdaDSF PPL 321.933 is 0.30% worse than uniform MoD 320.969 and 1.01% worse than the dense teacher 318.717.
Layer cosine calibration gives [0.560, 0.749, 0.793, 0.928]; the paper formula allocates retention [1.0, 1.0, 1.0, 0.2], with actual mean active fraction 0.7995. This small-model negative result does not support automatic superiority over uniform allocation. See stable metrics.
The executable micro-llm Evolve stage first trains a dense checkpoint and then calibrates and aligns the sparse model.
Limits¶
A WikiText-2 tiny decoder replaces GPT-NeoX-130M/Qwen2.5 and WikiText-103; those checkpoints and dataset were not downloaded. Active-token fraction is not measured GPU FLOPs. Top-K physically selects tokens for the block, rather than masking outputs, but does not reproduce large-model kernels or the full six-task commonsense evaluation.
