Papers

Position-Skipped Distillation:用 8K 训练让稀疏注意力 Indexer 服务到 64K

Position-Skipped Distillation of Sparse-Attention Indexers: Train Short, Serve Long

Why we picked it

训练长上下文稀疏注意力的 indexer 不再需要付 64K 的算力账单:只在 8K 短序列上挖个位置空隙就能泛化,DeepSeek-V2-Lite 和 Qwen3-30B-A3B 上省了约 6 倍训练算力。做长上下文推理优化或自己蒸馏 sparse attention 的团队直接能抄这套做法。

一项新研究提出 position-skipped distillation(PSD),解决 Top-k 稀疏注意力中 indexer(负责对缓存 token 打分排序的轻量每层模块)难以从短序列泛化到长上下文的问题。研究发现泛化失败主要由 RoPE 旋转位置编码引起,而非内容匹配退化,于是让 indexer 与冻结的教师模型只处理带随机位置空隙的短序列,训练长度不超过 8K。

Body

在 DeepSeek-V2-Lite 和 Qwen3-30B-A3B 上,用 8K token 蒸馏出的 indexer 在 32K 内与 32K 蒸馏版本困惑度差距约 0.5;在 DeepSeek-V2-Lite 上 64K 处匹配 64K 蒸馏版本,每 token 训练算力约省 6 倍。在 Llama-3.1-8B 上则落后 32K 蒸馏版本 0.6 困惑度,说明主要收益在训练成本。研究还把 indexer 键量化到 3-4 bit 并用整数融合内核打分,4 bit 下困惑度变化不超过 0.05,扫描速度比半精度快 1.6-2.2 倍。

论文也指出局限:在现有 serving 引擎中,indexer 仅在长上下文且多路并发流的解码场景下才有加速收益。

Original · arXiv: DeepSeek

Position-Skipped Distillation of Sparse-Attention Indexers: Train Short, Serve Long

Top-k sparse attention relies on an indexer, a lightweight per-layer module that ranks cached tokens so attention covers only the k highest-scoring ones. Indexers are usually distilled from dense attention at the full serving length, so every training step pays for long-context dense attention. We show that when an indexer is distilled on short sequences, its failure to generalise to longer contexts is driven mainly by rotary positional encoding (RoPE), not by degraded content matching. We propose position-skipped distillation: the indexer and the frozen teacher see short sequences whose position IDs contain a randomly placed gap, so neither ever processes more than the short training length. On DeepSeek-V2-Lite and Qwen3-30B-A3B, an indexer distilled on 8K tokens this way matches a 32K-distilled indexer to within about 0.5 perplexity up to 32K, and on DeepSeek-V2-Lite matches a 64K-distilled indexer at 64K with roughly 6x less training compute per token. On Llama-3.1-8B it trails the stronger 32K run by 0.6 perplexity, and at 64K simple position compression is often as good, so the main gain is training cost rather than quality. We also quantise indexer keys to 3-4 bits without retraining and score them with a fused integer kernel: at 4 bits, perplexity changes by at most 0.05 and the scan is 1.6-2.2x faster than half precision. In a current serving engine, the indexer speeds up decoding only for long contexts with multiple concurrent streams.

Industry Coordinates & Source Verification

This report is categorized under AITOP's "Papers" desk. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include DeepSeek-V2-Lite, Qwen3-30B-A3B, Llama-3.1-8B, sparse attention.

Primary source verification: published directly by arXiv: DeepSeek with first-party authority.